TYK2 inhibitors and uses thereof

By developing a specific compound to inhibit the activity of TYK2, the problem of difficulty in effectively inhibiting TYK2 in the prior art is solved, and the potential therapeutic effect on TYK2-mediated diseases is achieved.

CN113490664BActive Publication Date: 2025-05-16ALUMIS INC
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN201980084885.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-09-27
Filing Date
2019-10-22
Publication Date
2025-05-16
Estimated Expiration
2039-10-22

AI Technical Summary

Technical Problem

The prior art is difficult to effectively inhibit non-receptor tyrosine-protein kinase 2 (TYK2), which plays an important role in a variety of diseases, including autoimmune diseases, inflammatory conditions and tumors.

Method used

A novel compound, formula (XII) or a pharmaceutically acceptable salt, solvate or stereoisomer thereof, has been developed to bind to TYK2 through a specific chemical structure, thereby inhibiting its activity.

Benefits of technology

This compound is effective in inhibiting TYK2, potentially used to treat TYK2-mediated conditions such as autoimmune diseases, inflammatory conditions and tumors, and has fewer side effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0003123452310000031
    Figure BDA0003123452310000031
  • Figure BDA0003123452310000061
    Figure BDA0003123452310000061
  • Figure BDA0003123452310000161
    Figure BDA0003123452310000161
Patent Text Reader

Abstract

Compounds useful for treating a TYK2-mediated disorder are described herein. In some embodiments, the TYK2-mediated disorder is an autoimmune disorder, an inflammatory disorder, a proliferative disorder, an endocrine disorder, a neurological disorder, or a transplantation-related disorder.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references

[0002] This patent application claims the benefit of U.S. Provisional Application No. 62 / 749,003, filed on October 22, 2018; U.S. Provisional Application No. 62 / 756,942, filed on November 7, 2018; U.S. Provisional Application No. 62 / 839,459, filed on April 26, 2019; U.S. Provisional Application No. 62 / 875,449, filed on July 17, 2019; U.S. Provisional Application No. 62 / 893,721, filed on August 29, 2019; and U.S. Provisional Application No. 62 / 907,354, filed on September 27, 2019, each of which is incorporated herein by reference in its entirety. Technical Field

[0003] Described herein are compounds, methods of making such compounds, pharmaceutical compositions and medicaments comprising such compounds, and methods of using such compounds to inhibit non-receptor tyrosine-protein kinase 2 ("TYK2"), also known as tyrosine kinase 2. Background Art

[0004] TYK2 is a non-receptor tyrosine kinase member of the Janus kinase (JAK) family of protein kinases. The mammalian JAK family consists of four members, TYK2, JAK1, JAK2, and JAK3. JAK proteins, including TYK2, are essential for cytokine signaling. TYK2 is associated with the cytoplasmic domains of type I and type II cytokine receptors and interferon type I and type III receptors, and is activated by those receptors upon cytokine binding. Cytokines involved in TYK2 activation include interferons (e.g., IFN-α, IFN-β, IFN-κ, IFN-δ, IFN-ε, IFN-τ, IFN-ω and IFN-ζ (also known as limitin), and interleukins (e.g., IL-4, IL-6, IL-10, IL-11, IL-12, IL-13, L-22, IL-23, IL-27, IL-31, oncostatin M, ciliary neurotrophic factor, cardiotrophin 1, cardiotrophin-like cytokine and LIF). Activated TYK2 then phosphorylates additional signaling proteins, such as members of the STAT family, including STAT1, STAT2, STAT4 and STAT6.

[0005] Activation of TYK2 by IL-23 is associated with inflammatory bowel disease (IBD), Crohn's disease, and ulcerative colitis. A genome-wide association study of 2,622 individuals with psoriasis identified an association between disease susceptibility and TYK2. Knockout of TYK2 or inhibition with tyrphostin significantly reduced IL-23- and IL-22-induced dermatitis.

[0006] TYK2 also plays a role in respiratory diseases such as asthma, chronic obstructive pulmonary disease (COPD), lung cancer and cystic fibrosis. Goblet cell hyperplasia (GCH) and mucus hypersecretion are mediated by IL-13-induced TYK2 activation, which in turn activates STAT6.

[0007] Reduced TYK2 activity protected joints from collagen antibody-induced arthritis, a model of human rheumatoid arthritis. Mechanistically, reduced Tyk2 activity reduced the production of Th1 / Th17-associated cytokines and matrix metalloproteinases, as well as other key markers of inflammation.

[0008] Compared to controls, TYK2 knockout mice exhibited complete resistance to experimental autoimmune encephalomyelitis (EAE), an animal model of multiple sclerosis (MS), with no CD4 T cell infiltration in the spinal cord, indicating that TYK2 is essential for pathogenic CD4-mediated disease development in MS. This confirms earlier studies linking increased TYK2 expression to MS susceptibility. Loss-of-function mutations in TYK2 lead to reduced neuronal demyelination and increased remyelination, further suggesting a role for TYK2 inhibitors in the treatment of MS and other CNS demyelinating disorders.

[0009] TYK2 is the only signaling messenger shared by both IL-12 and IL-23. TYK2 knockout reduced paw thickness induced by methylated BSA injection, imiquimod-induced psoriasis-like skin inflammation, and dextran sulfate sodium or 2,4,6-trinitrobenzenesulfonic acid-induced colitis in mice.

[0010] Joint association and association studies of various type I IFN signaling genes with systemic lupus erythematosus (SLE), an autoimmune disorder, have shown a strong and significant association between loss-of-function mutations in TYK2 and a reduced prevalence of SLE in families with affected members. Genome-wide association studies of individuals with SLE and unaffected populations have shown a highly significant association between the TYK2 locus and SLE.

[0011] TYK2 has been shown to play an important role in maintaining tumor surveillance, and TYK2 knockout mice show impaired cytotoxic T cell responses and accelerated tumor development. However, these effects are associated with potent inhibition of natural killer (NK) and cytotoxic T lymphocytes, suggesting that TYK2 inhibitors would be well suited for treating autoimmune disorders or transplant rejection. Although other JAK family members (e.g., JAK3) have similar roles in the immune system, TYK2 has been proposed as a superior target because it is involved in fewer and more closely related signaling pathways, resulting in fewer off-target effects.

[0012] Studies on T-cell acute lymphoblastic leukemia (T-ALL) have shown that T-ALL is highly dependent on IL-10 via TYK2 via STAT1-mediated signal transduction, thereby maintaining the survival of cancer cells by upregulation of the anti-apoptotic protein BCL2. Knockdown TYK2, but not knockdown other JAK family members reduces cell growth. Specific activating mutations of TYK2 that promote cancer cell survival include those mutations in the FERM domain (G36D, S47N, and R425H), the JH2 domain (V731I), and the kinase domain (E957D and R1027H). However, it has also been determined that the kinase function of TYK2 is necessary to increase cancer cell survival, because the TYK2 enzyme with a kinase-dead mutation (M978Y or M978F) in addition to the activating mutation (E957D) causes transformation failure.

[0013] Therefore, selective inhibition of TYK2 has been proposed as a suitable target for patients with IL-10 and / or BCL2 addicted tumors (e.g., 70% of adult T-cell leukemia cases). TYK2-mediated STAT3 signaling has also been shown to mediate neuronal cell death caused by amyloid beta (Aβ) peptide. Reduced TYK2 phosphorylation of STAT3 after administration of Aβ results in reduced neuronal cell death, and increased STAT3 phosphorylation has been observed in postmortem brains of Alzheimer's disease patients.

[0014] Inhibition of the JAK-STAT signaling pathway has also been associated with hair growth and reversal of hair loss associated with alopecia areata.

[0015] Therefore, compounds that inhibit TYK2 activity are beneficial, especially compounds that are selective for JAK2. Such compounds should provide a pharmacological response that is beneficial in treating one or more of the conditions described herein without the side effects associated with the inhibition of JAK2.

[0016] Therefore, there is a need to provide novel inhibitors with more potent or more advantageous pharmaceutically relevant properties, such as selectivity for other JAK kinases, in particular JAK2. Summary of the invention

[0017] Disclosed herein is a compound of formula (XII) or a pharmaceutically acceptable salt, solvate or stereoisomer thereof:

[0018]

[0019] in:

[0020] Ring B is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0021] R 16 -C(=O)NR 1 R 2 ,-C(=N-CN)NR 1 R 2 ,-P(=O)R 1 R 2 , or -C(=O)R 11 ;

[0022] R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0023] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0024] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O)2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b 、-P(=O)R b R b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0025] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0026] L is a bond or -C(=O)-;

[0027] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0028] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0029] or two R on the same carbon A Combined together to form an oxo group;

[0030] or -L-Ring A is absent;

[0031] Each X is independently -CR x -or-N-;

[0032] Each R x are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0033] R 5 Halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10 ,-NR 8 S(=O)R 7,-NR 8 S(=O) 2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=N-CN)R 7 ,-C(=O)R 7 ,-OC(=N-CN)R 7 ,-OC(=O)R 7 ,-C(=N-CN)OR 8 ,-C(=O)OR 8 ,-OC(=N-CN)OR 8 ,-OC(=O)OR 8 ,-C(=N-CN)NR 9 R 10 ,-C(=O)NR 9 R 10 ,-OC(=N-CN)NR 9 R 10 ,-OC(=O)NR 9 R 10 ,-NR 8 C(=N-CN)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=N-CN)R 7 ,-NR 8 C(=N-OH)R 7 ,-NR 8 C(=N-CN)OR 8 ,-NR 8 C(=O)OR 8 ,-NR 8 S(=O)(=NR 8 )R 7 ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C 1 -C 6 Alkyl (cycloalkyl), C 1 -C 6 Alkyl (heterocycloalkyl), C 1 -C 6 Alkyl (aryl) or C 1 -C 6 alkyl(heteroaryl); wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0034] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1-C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0035] Each R 8 are independently hydrogen, CN, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0036] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Hydroxydeuterated alkyl, cycloalkyl or heterocycloalkyl;

[0037] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0038] or R 8 and R 9 and the atoms to which they are attached are taken together to form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0039] R 11 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more R 11a ;

[0040] Each R 11a are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6Alkynyl;

[0041] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0042] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0043] Each R c and R dare independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0044] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0045] Also disclosed herein is a compound of formula (XIII) or a pharmaceutically acceptable salt, stereoisomer or solvate thereof:

[0046]

[0047] in:

[0048] Ring B is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0049] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0050] R4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b ,-P(=O)R b R b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0051] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0052] L is a bond or -C(=O)-;

[0053] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0054] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C1 -C 6 Haloalkyl;

[0055] or two R on the same carbon A Combined together to form an oxo group;

[0056] or -L-Ring A is absent;

[0057] Each X is independently -CR x -or-N-;

[0058] Each R x are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0059] R5 is halogen, -CN, -OR 8 , -SR 8 , -S(=O)R 7 , -S(=O) 2 R 7 , -NO 2 , -NR 9 R 10 , -NR 8 S(=O)R 7 , -NR 8 , -S(=O) 2 R 7 , -S(=O) 2 NR 9 R 10 , -C(=N-CN)R 7 , -C(=O)R 7 , -OC(=N-CN)R 7 , -OC(=O)R 7 , -C(=N-CN)OR 8 , -C(=O)OR 8 , -OC(=N-CN)OR 8 , -OC(=O)OR 8 , -C(=N-CN)NR 9 R 10 , -C(=O)NR 9 R 10 , -OC(=N-CN)NR 9 R 10 , -OC(=O)NR 9 R 10 , -NR 8 C(=N-CN)NR 9 R 10 , -NR 8 C(=O)NR 9 R 10 , -NR 8 C(=N-CN)R 7 , -NR 8 , -NR 7 , -NR 8 C(=O)R 7 , -NR 8 C(=N-CN)OR 8 , -NR 8 C(=O)OR 8 , -NR 8 , -S(=O)(=NR 8 )R 7 、C 1 , -C6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C 1 -C 6 Alkyl (cycloalkyl), C 1 -C 6 Alkyl (heterocycloalkyl), C 1 -C 6 Alkyl (aryl) or C 1 -C 6 alkyl(heteroaryl); wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NRc R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0060] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0061] Each R 8 are independently hydrogen, CN, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C1 -C 6 Haloalkyl;

[0062] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Hydroxydeuterated alkyl, cycloalkyl or heterocycloalkyl;

[0063] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0064] or R 8 and R 9 and the atoms to which they are attached are taken together to form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0065] R 11 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more R 11a ;

[0066] Each R 11a are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0067] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0068] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0069] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0070] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0071] Also disclosed herein is a pharmaceutical composition comprising a therapeutically effective amount of a compound disclosed herein or a pharmaceutically acceptable salt, stereoisomer or solvate thereof, and a pharmaceutically acceptable excipient.

[0072] Also disclosed herein is a method of inhibiting a TYK2 enzyme in a patient or a biological sample comprising contacting the patient or the biological sample with a compound disclosed herein, or a pharmaceutically acceptable salt, stereoisomer, or solvate thereof.

[0073] Also disclosed herein is a method of treating a TYK2-mediated disorder comprising administering to a patient in need thereof a compound disclosed herein or a pharmaceutically acceptable salt, stereoisomer, or solvate thereof. In some embodiments, the TYK2-mediated disorder is an autoimmune disorder, an inflammatory disorder, a proliferative disorder, an endocrine disorder, a neurological disorder, or a transplant-related disorder. In some embodiments, the disorder is associated with type I interferon, IL-10, IL-12, or IL-23 signaling.

[0074] Incorporated by Reference

[0075] All publications, patents, and patent applications mentioned in this specification are incorporated herein by reference for the specific purposes identified herein. DETAILED DESCRIPTION

[0076] definition

[0077] Unless the context clearly dictates otherwise, as used herein and in the appended claims, the singular forms "a," "an," and "the" include plural referents. Thus, for example, reference to "an agent" includes a plurality of such agents, and reference to "the cell" includes reference to one or more cells (or cells) and equivalents thereof known to those of skill in the art, and so forth. When ranges are used herein for physical properties (such as molecular weight) or chemical properties (such as chemical formula), all combinations and subcombinations of ranges and specific embodiments thereof are intended to be included. When referring to a number or a numerical range, the term "about" indicates that the number or numerical range referred to is an approximation of experimental variability (or within statistical experimental error), and thus, in some cases, the number or numerical range will vary between 1% and 15% of the stated number or numerical range. The term "comprising" (and related terms such as "comprise" or "comprises" or "having" or "including") is not intended to exclude certain other embodiments, for example, embodiments of any composition of matter, composition, method or process, etc. described herein "consisting of" or "consisting essentially of the described features."

[0078] As used in this specification and the appended claims, unless indicated to the contrary, the following terms have the meanings indicated below.

[0079] "Aliphatic chain" refers to a straight chain chemical moiety consisting only of carbon and hydrogen. In some embodiments, the aliphatic chain is saturated. In some embodiments, the aliphatic chain is unsaturated. In some embodiments, the unsaturated aliphatic chain contains one unsaturated group. In some embodiments, the unsaturated aliphatic chain contains more than one unsaturated group. In some embodiments, the unsaturated aliphatic chain contains two unsaturated groups. In some embodiments, the unsaturated aliphatic chain contains one double bond. In some embodiments, the unsaturated aliphatic chain contains two double bonds.

[0080] "Alkyl" refers to an optionally substituted straight chain or optionally substituted branched chain saturated hydrocarbon monoradical having one to about ten carbon atoms, or one to six carbon atoms. Examples include, but are not limited to, methyl, ethyl, n-propyl, isopropyl, 2-methyl-1-propyl, 2-methyl-2-propyl, 2-methyl-1-butyl, 3-methyl-1-butyl, 2-methyl-3-butyl, 2,2-dimethyl-1-propyl, 2-methyl-1-pentyl, 3-methyl-1-pentyl, 4-methyl-1-pentyl, 2-methyl-2-pentyl, 3-methyl-2-pentyl, 4-methyl-2-pentyl, 2,2-dimethyl-1-butyl, 3,3-dimethyl-1-butyl, 2-ethyl-1-butyl, n-butyl, isobutyl, sec-butyl, tert-butyl, n-pentyl, isopentyl, neopentyl, tert-pentyl and hexyl, as well as longer alkyl groups such as heptyl, octyl, etc. In this article, whenever it appears, such as "C 1 -C 6 In some embodiments, the term "alkyl" is C alkyl, ... 1 -C 10 Alkyl, C 1 -C 9 Alkyl, C 1 -C 8 Alkyl, C 1 -C 7 Alkyl, C 1 -C 6 Alkyl, C 1 -C 5 Alkyl, C 1 -C 4 Alkyl, C 1 -C 3 Alkyl, C 1 -C 2 Alkyl or C 1Unless otherwise specifically stated in the specification, the alkyl group is optionally substituted with, for example, oxo, halogen, amino, nitrile, nitro, hydroxyl, haloalkyl, alkoxy, aryl, cycloalkyl, heterocycloalkyl, heteroaryl, etc. In some embodiments, the alkyl group is optionally substituted with oxo, halogen, -CN, -CF 3 ,OH,-OMe,NH 2 or-NO 2 In some embodiments, the alkyl group is optionally substituted with oxo, halogen, -CN, -CF 3 In some embodiments, the alkyl group is optionally substituted with halogen.

[0081] "Alkenyl" refers to an optionally substituted straight chain or optionally substituted branched hydrocarbon monoradical having one or more carbon-carbon double bonds and having two to about ten carbon atoms (more preferably, two to about six carbon atoms). The group may be in a cis or trans configuration about the one or more double bonds and should be understood to include both isomers. Examples include, but are not limited to, vinyl (-CH=CH 2 ), 1-propenyl (-CH 2 CH=CH 2 ), isopropenyl [-C(CH 3 )=CH 2 ], butenyl, 1,3-butadienyl, etc. In this article, whenever it appears, such as "C 2 -C 6 The numerical ranges such as "alkenyl" and "alkenyl" mean that the alkenyl group can be composed of 2 carbon atoms, 3 carbon atoms, 4 carbon atoms, 5 carbon atoms, or 6 carbon atoms, but the current definition also covers the occurrence of the term "alkenyl" without specifying a numerical range. In some embodiments, the alkenyl group is C 2 -C 10 Alkenyl, C 2 -C 9 Alkenyl, C 2 -C 8 Alkenyl, C 2 -C 7 Alkenyl, C 2 -C 6 Alkenyl, C 2 -C 5 Alkenyl, C 2 -C 4 Alkenyl, C 2 -C 3 Alkenyl or C 2 Unless otherwise specifically stated in the specification, alkenyl is optionally substituted with, for example, oxo, halogen, amino, nitrile, nitro, hydroxyl, haloalkyl, alkoxy, aryl, cycloalkyl, heterocycloalkyl, heteroaryl, etc. In some embodiments, alkenyl is optionally substituted with oxo, halogen, -CN, -CF3 ,OH,-OMe,NH 2 or-NO 2 In some embodiments, the alkenyl group is optionally substituted with oxo, halogen, -CN, -CF 3 , OH or -OMe. In some embodiments, the alkenyl group is optionally substituted with halogen.

[0082] "Alkynyl" refers to an optionally substituted straight chain or optionally substituted branched chain hydrocarbon monoradical having one or more carbon-carbon triple bonds and having two to about ten carbon atoms (more preferably, two to about six carbon atoms). Examples include, but are not limited to, ethynyl, 2-propynyl, 2-butynyl, 1,3-butadiynyl, and the like. Whenever it appears herein, the term "C 2 -C 6 The numerical ranges such as "alkynyl" and "alkynyl" mean that the alkynyl group can be composed of 2 carbon atoms, 3 carbon atoms, 4 carbon atoms, 5 carbon atoms, or 6 carbon atoms, but the current definition also covers the occurrence of the term "alkynyl" without specifying a numerical range. In some embodiments, the alkynyl group is C 2 -C 10 Alkynyl, C 2 -C 9 Alkynyl, C 2 -C 8 Alkynyl, C 2 -C 7 Alkynyl, C 2 -C 6 Alkynyl, C 2 -C 5 Alkynyl, C 2 -C 4 Alkynyl, C 2 -C 3 Alkynyl or C 2 Unless otherwise specifically stated in the specification, alkynyl is optionally substituted with, for example, oxo, halogen, amino, nitrile, nitro, hydroxyl, haloalkyl, alkoxy, aryl, cycloalkyl, heterocycloalkyl, heteroaryl, etc. In some embodiments, alkynyl is optionally substituted with oxo, halogen, -CN, -CF 3 ,OH,-OMe,NH 2 or-NO 2 In some embodiments, the alkynyl group is optionally substituted with oxo, halogen, -CN, -CF 3 , OH or -OMe. In some embodiments, the alkynyl group is optionally substituted with halogen.

[0083] "Alkylene" refers to a straight or branched divalent hydrocarbon chain. Unless otherwise specifically stated in the specification, alkylene may be optionally substituted with, for example, oxo, halogen, amino, nitrile, nitro, hydroxyl, haloalkyl, alkoxy, aryl, cycloalkyl, heterocycloalkyl, heteroaryl, etc. In some embodiments, alkylene may be optionally substituted with, for example, oxo, halogen, -CN, -CF 3 ,OH,-OMe,NH 2 or-NO 2 In some embodiments, the alkylene group is optionally substituted with oxo, halogen, -CN, -CF 3 , OH or -OMe. In some embodiments, the alkylene group is optionally substituted with halogen.

[0084] "Alkoxy" refers to a group of the formula -OR a A group in which R a is an alkyl group as defined. Unless otherwise specifically stated in the specification, an alkoxy group may be optionally substituted with, for example, oxo, halogen, amino, nitrile, nitro, hydroxyl, haloalkyl, alkoxy, aryl, cycloalkyl, heterocycloalkyl, heteroaryl, etc. In some embodiments, an alkoxy group may be optionally substituted with oxo, halogen, -CN, -CF 3 ,OH,-OMe,NH 2 or-NO 2 In some embodiments, the alkoxy group is optionally substituted with oxo, halogen, -CN, -CF 3 , OH or -OMe. In some embodiments, the alkoxy group is optionally substituted with halogen.

[0085] "Aminoalkyl" refers to an alkyl group as defined above that is substituted with one or more amines. In some embodiments, the alkyl group is substituted with one amine. In some embodiments, the alkyl group is substituted with one, two, or three amines. Hydroxyalkyl groups include, for example, aminomethyl, aminoethyl, aminopropyl, aminobutyl, or aminopentyl. In some embodiments, the hydroxyalkyl group is aminomethyl.

[0086] "Aryl" refers to a group derived from a hydrocarbon ring system comprising hydrogen, 6 to 30 carbon atoms and at least one aromatic ring. The aryl group may be a monocyclic, bicyclic, tricyclic or tetracyclic ring system, which may include a fused ring system (when fused to a cycloalkyl ring or a heterocycloalkyl ring, the aryl group is bonded by an aromatic ring atom) or a bridged ring system. In some embodiments, the aryl group is a 6-10 membered aryl group. In some embodiments, the aryl group is a 6-membered aryl group. The aryl group includes, but is not limited to, aryl groups derived from hydrocarbon ring systems of anthracene, naphthylene, phenanthrenes, anthracene, azulene, benzene, chrysene, fluoranthene, fluorene, asymmetric indacene, symmetric indacene, indane, indene, naphthalene, phenalene, phenanthrenes, pleiadene, pyrene and triphenylene. In some embodiments, the aryl group is phenyl. Unless otherwise specifically stated in the specification, aryl groups may be optionally substituted with, for example, halogen, amino, nitrile, nitro, hydroxy, alkyl, alkenyl, alkynyl, haloalkyl, alkoxy, aryl, cycloalkyl, heterocycloalkyl, heteroaryl, etc. In some embodiments, aryl groups are optionally substituted with halogen, methyl, ethyl, -CN, -CF 3 ,OH,-OMe,NH 2 or-NO 2 In some embodiments, the aryl group is optionally substituted with halogen, methyl, ethyl, -CN, -CF 3 , OH or -OMe. In some embodiments, aryl is optionally substituted with halogen.

[0087] "Cycloalkyl" refers to a stable, partially or fully saturated monocyclic or polycyclic carbocyclic ring, which may include a fused ring system (when fused to an aryl or heteroaryl ring, the cycloalkyl is bonded through a non-aromatic ring atom) or a bridged ring system. Representative cycloalkyl groups include, but are not limited to, the following cycloalkyl groups: having three to fifteen carbon atoms (C 3 -C 15 cycloalkyl), three to ten carbon atoms (C 3 -C 10 Cycloalkyl), three to eight carbon atoms (C 3 -C 8 Cycloalkyl), three to six carbon atoms (C 3 -C 6 Cycloalkyl), three to five carbon atoms (C 3 -C 5 Cycloalkyl) or three to four carbon atoms (C 3 -C 4Cycloalkyl). In some embodiments, cycloalkyl is 3 to 6 membered cycloalkyl. In some embodiments, cycloalkyl is 5 to 6 membered cycloalkyl. Monocyclic cycloalkyl includes, for example, cyclopropyl, cyclobutyl, cyclopentyl, cyclohexyl, cycloheptyl and cyclooctyl. Polycyclic cycloalkyl or carbocyclic ring includes, for example, adamantyl, norbornyl, decalinyl, bicyclo[3.3.0]octane, bicyclo[4.3.0]nonane, cis-decalin, trans-decalin, bicyclo[2.1.1]hexane, bicyclo[2.2.1]heptane, bicyclo[2.2.2]octane, bicyclo[3.2.2]nonane and bicyclo[3.3.2]decane, and 7,7-dimethyl-bicyclo[2.2.1]heptyl. Partially saturated cycloalkyl includes, for example, cyclopentenyl, cyclohexenyl, cycloheptenyl and cyclooctenyl. Unless otherwise specifically stated in the specification, cycloalkyl is optionally substituted with, for example, oxo, halogen, amino, nitrile, nitro, hydroxy, alkyl, alkenyl, alkynyl, haloalkyl, alkoxy, aryl, cycloalkyl, heterocycloalkyl, heteroaryl, etc. In some embodiments, cycloalkyl is optionally substituted with oxo, halogen, methyl, ethyl, -CN, -CF 3 ,OH,-OMe,NH 2 or-NO 2 In some embodiments, the cycloalkyl group is optionally substituted with oxo, halogen, methyl, ethyl, -CN, -CF 3 In some embodiments, the cycloalkyl group is optionally substituted with halogen.

[0088] "Deuterium alkyl" refers to an alkyl group as defined above that is substituted with one or more deuterium atoms. In some embodiments, the alkyl group is substituted with one deuterium atom. In some embodiments, the alkyl group is substituted with one, two, three, four, five, or six deuterium atoms. Deuterium alkyl groups include, for example, CD 3 ,CH 2 D,CHD 2 ,CH 2 CD 3 ,CD 2 CD 3 ,CHDCD 3 ,CH 2 CH 2 D, or CH 2 CHD 2 In some embodiments, the deuterated alkyl group is CD 3 .

[0089] "Haloalkyl" refers to an alkyl group as defined above that is substituted with one or more halogen atoms. In some embodiments, the alkyl group is substituted with one, two, or three halogen atoms. In some embodiments, the alkyl group is substituted with one, two, three, four, five, or six halogens. Haloalkyl groups include, for example, trifluoromethyl, difluoromethyl, fluoromethyl, trichloromethyl, 2,2,2-trifluoroethyl, 1,2-difluoroethyl, 3-bromo-2-fluoropropyl, 1,2-dibromoethyl, etc. In some embodiments, haloalkyl is trifluoromethyl.

[0090] "Halo" or "halogen" refers to bromine, chlorine, fluorine, or iodine. In some embodiments, halogen is fluorine or chlorine. In some embodiments, halogen is fluorine.

[0091] "Heteroalkyl" refers to an alkyl group in which one or more of the backbone atoms of the alkyl group is selected from atoms other than carbon, such as oxygen, nitrogen (e.g., -NH-, -N(alkyl)-), sulfur, or a combination thereof. The heteroalkyl group is attached to the remainder of the molecule at a carbon atom of the heteroalkyl group. In one aspect, the heteroalkyl group is C 1 -C 6 Heteroalkyl, wherein the heteroalkyl consists of 1 to 6 carbon atoms and one or more atoms other than carbon, such as oxygen, nitrogen (e.g., -NH-, -N(alkyl)-), sulfur, or a combination thereof, wherein the heteroalkyl is attached to the remainder of the molecule at a carbon atom of the heteroalkyl. Examples of such heteroalkyls are, for example, -CH 2 OCH 3 ,-CH 2 CH 2 OCH 3 ,-CH 2 CH 2 OCH 2 CH 2 OCH 3 or -CH(CH 3 )OCH 3 Unless otherwise specifically stated in the specification, heteroalkyl is optionally substituted with, for example, oxo, halogen, amino, nitrile, nitro, hydroxyl, alkyl, alkenyl, alkynyl, haloalkyl, alkoxy, aryl, cycloalkyl, heterocycloalkyl, heteroaryl, etc. In some embodiments, heteroalkyl is optionally substituted with oxo, halogen, methyl, ethyl, -CN, -CF 3 ,OH,-OMe,NH 2 or-NO 2 In some embodiments, the heteroalkyl group is optionally substituted with oxo, halogen, methyl, ethyl, -CN, -CF 3 , OH or -OMe. In some embodiments, the heteroalkyl group is optionally substituted with halogen.

[0092] "Hydroxyalkyl" refers to an alkyl group as defined above that is substituted with one or more hydroxyl groups. In some embodiments, the alkyl group is substituted with one hydroxyl group. In some embodiments, the alkyl group is substituted with one, two, or three hydroxyl groups. Hydroxyalkyl groups include, for example, hydroxymethyl, hydroxyethyl, hydroxypropyl, hydroxybutyl, or hydroxypentyl. In some embodiments, the hydroxyalkyl group is hydroxymethyl.

[0093] "Heterocycloalkyl" refers to a stable 3 to 24 membered partially or fully saturated ring group containing 2 to 23 carbon atoms and 1 to 8 heteroatoms selected from the group consisting of nitrogen, oxygen, phosphorus and sulfur. In some embodiments, the heterocycloalkyl contains 1 or 2 heteroatoms selected from nitrogen and oxygen. Unless otherwise specifically stated in the specification, the heterocycloalkyl can be a monocyclic, bicyclic, tricyclic or tetracyclic ring system, which can include a fused ring system (when fused to an aryl ring or a heteroaryl ring, the heterocycloalkyl is bonded by a non-aromatic ring atom) or a bridged ring system; and the nitrogen, carbon or sulfur atoms in the heterocycloalkyl can be optionally oxidized; the nitrogen atom can be optionally quaternized. Representative heterocycloalkyls include, but are not limited to, the following heterocycloalkyls: having two to fifteen carbon atoms (C 2 -C 15 Heterocycloalkyl), two to ten carbon atoms (C 2 -C 10 Heterocycloalkyl), two to eight carbon atoms (C 2 -C 8 Heterocycloalkyl), two to six carbon atoms (C 2 -C 6 Heterocycloalkyl), two to five carbon atoms (C 2 -C 5 Heterocycloalkyl) or two to four carbon atoms (C 2 -C 4In some embodiments, the heterocycloalkyl group is a 3- to 6-membered heterocycloalkyl group. In some embodiments, the cycloalkyl group is a 5- to 6-membered heterocycloalkyl group. Examples of such heterocycloalkyl groups include, but are not limited to, aziridinyl, azetidinyl, dioxolanyl, thienyl[1,3]dithianyl, decahydroisoquinolinyl, imidazolinyl, imidazolidinyl, isothiazolidinyl, isoxazolidinyl, morpholinyl, octahydroindolyl, octahydroisoindolyl, 2-oxopiperazinyl, 2-oxopiperidinyl, 2-oxopyrrolidinyl, oxazolidinyl, piperidinyl, piperazinyl, 4-piperidonyl, pyrrolidinyl, pyrazolidine The term heterocycloalkyl also includes all ring forms of carbohydrates, including but not limited to monosaccharides, disaccharides and oligosaccharides. It is understood that when referring to the number of carbon atoms in heterocycloalkyl, the number of carbon atoms in heterocycloalkyl is different from the total number (including heteroatoms) of the atoms (i.e., the skeleton atoms of the heterocycloalkyl ring) constituting the heterocycloalkyl. Unless otherwise specifically stated in the specification, heterocycloalkyl is optionally substituted with, for example, oxo, halogen, amino, nitrile, nitro, hydroxy, alkyl, alkenyl, alkynyl, haloalkyl, alkoxy, aryl, cycloalkyl, heterocycloalkyl, heteroaryl, etc. In some embodiments, heterocycloalkyl is optionally substituted with oxo, halogen, methyl, ethyl, -CN, -CF 3 ,OH,-OMe,NH 2 , or -NO 2 In some embodiments, the heterocycloalkyl group is optionally substituted with oxo, halogen, methyl, ethyl, -CN, -CF 3 , OH or -OMe. In some embodiments, the heterocycloalkyl group is optionally substituted with halogen.

[0094] "Heteroalkyl" refers to an alkyl group in which one or more of the backbone atoms of the alkyl group is selected from atoms other than carbon, such as oxygen, nitrogen (e.g., -NH-, -N(alkyl)-), sulfur, or a combination thereof. The heteroalkyl group is attached to the remainder of the molecule at a carbon atom of the heteroalkyl group. In one aspect, the heteroalkyl group is C 1 -C 6 Unless otherwise specifically stated in the specification, heteroalkyl is optionally substituted with, for example, oxo, halogen, amino, nitrile, nitro, hydroxyl, alkyl, alkenyl, alkynyl, haloalkyl, alkoxy, aryl, cycloalkyl, heterocycloalkyl, heteroaryl, etc. In some embodiments, heteroalkyl is optionally substituted with oxo, halogen, methyl, ethyl, -CN, -CF 3 ,OH,-OMe,NH2 or-NO 2 In some embodiments, the heteroalkyl group is optionally substituted with oxo, halogen, methyl, ethyl, -CN, -CF 3 , OH or -OMe. In some embodiments, the heteroalkyl group is optionally substituted with halogen.

[0095] "Heteroaryl" refers to a 5- to 14-membered ring system radical comprising hydrogen atoms, one to thirteen carbon atoms, one to six heteroatoms selected from the group consisting of nitrogen, oxygen, phosphorus and sulfur, and at least one aromatic ring. The heteroaryl group may be a monocyclic, bicyclic, tricyclic or tetracyclic ring system, which may include a fused ring system (when fused to a cycloalkyl ring or a heterocycloalkyl ring, the heteroaryl group is bonded through an aromatic ring atom) or a bridged ring system; and the nitrogen, carbon or sulfur atoms in the heteroaryl group may be optionally oxidized; the nitrogen atom may be optionally quaternized. In some embodiments, the heteroaryl group is a 5- to 10-membered heteroaryl group. In some embodiments, the heteroaryl group is a 5- to 6-membered heteroaryl group. Examples include, but are not limited to, azepine, acridinyl, benzimidazolyl, benzothiazolyl, benzindolyl, benzodioxolyl, benzofuranyl, benzoxazolyl, benzothiazolyl, benzothiadiazolyl, benzo[b][1,4]dioxolyl, 1,4-benzodioxanyl, benzonaphthofuranyl, benzoxazolyl, benzodioxolyl, benzodioxinyl, benzopyranyl, benzopyrone, benzofuranyl, benzofuranone, benzothienyl / benzothiophenyl, benzotriazolyl, benzo[4,6]imidazo[1,2-a]pyridinyl, carbazolyl, cinnolinyl, dibenzofuranyl, dibenzothiophenyl, furanyl, furanone, isothiophene, Thiazolyl, imidazolyl, indazolyl, indolyl, indazolyl, isoindolyl, indolinyl, isoindolyl, isoquinolinyl, indolizinyl, isoxazolyl, naphthyridinyl, oxadiazolyl, 2-oxazolyl, oxazolyl, oxiranyl, 1-oxopyridinyl, 1-oxopyrimidinyl, 1-oxopyrazinyl, 1-oxopyridazinyl, 1-phenyl-1H-pyrrolyl, phenazinyl, phenothiazinyl, phenoxazinyl, phthalazinyl, pteridinyl, purinyl, pyrrolyl, pyrazolyl, pyridinyl, pyrazinyl, pyrimidinyl, pyridazinyl, quinazolinyl, quinoxalinyl, quinolinyl, quinuclidinyl, isoquinolinyl, tetrahydroquinolinyl, thiazolyl, thiadiazolyl, triazolyl, tetrazolyl, triazinyl and thiophenyl (i.e., thienyl). Unless otherwise specifically stated in the specification, heteroaryl groups are optionally substituted with, for example, halogen, amino, nitrile, nitro, hydroxy, alkyl, alkenyl, alkynyl, haloalkyl, alkoxy, aryl, cycloalkyl, heterocycloalkyl, heteroaryl, etc. In some embodiments, heteroaryl groups are optionally substituted with halogen, methyl, ethyl, -CN, -CF 3 ,OH,-OMe,NH 2 , or -NO2 In some embodiments, the heteroaryl group is optionally substituted with halogen, methyl, ethyl, -CN, -CF 3 In some embodiments, the heteroaryl group is optionally substituted with halogen.

[0096] As used herein, the terms "treatment", "prevention", "improvement" and "inhibition" and words derived therefrom do not necessarily imply 100% or complete treatment, prevention, improvement or inhibition. Specifically, there are different degrees of treatment, prevention, improvement and inhibition, which are considered by ordinary technicians in the field to have potential benefits or therapeutic effects. In this regard, the disclosed methods can provide any level of treatment, prevention, improvement or inhibition of any amount of a disorder in a mammal. For example, a disorder, including its symptoms or conditions, can be reduced by, for example, about 100%, about 90%, about 80%, about 70%, about 60%, about 50%, about 40%, about 30%, about 20% or about 10%. In addition, the treatment, prevention, improvement or inhibition provided by the methods disclosed herein may include treating, preventing, improving or inhibiting one or more conditions or symptoms of a disorder (e.g., cancer or inflammatory disease). In addition, for the purposes of this article, "treatment", "prevention", "improvement" or "inhibition" covers delaying the onset of a disorder or its symptoms or conditions.

[0097] As used herein, the term "effective amount" or "therapeutically effective amount" refers to a sufficient amount of a compound disclosed herein administered that will alleviate to some extent one or more symptoms of the disease or condition being treated (e.g., cancer or inflammatory disease). In some embodiments, the result is a reduction and / or alleviation of the signs, symptoms, or causes of the disease, or any other desired change in a biological system. For example, an "effective amount" for therapeutic use is the amount of a composition (comprising a compound disclosed herein) required to clinically significantly alleviate the symptoms of the disease. In some embodiments, techniques such as dose escalation studies are used to determine the appropriate "effective" amount in any individual case.

[0098] As used herein, the term "TYK2-mediated" disorder, disease and / or condition as used herein means any disease or other condition in which TYK2 or a mutant thereof is known to play a role. Thus, another embodiment relates to treating or lessening the severity of one or more diseases in which TYK2 or a mutant thereof is known to play a role. Such TYK2-mediated disorders include, but are not limited to, autoimmune disorders, inflammatory disorders, proliferative disorders, endocrine disorders, neurological disorders, and transplantation-related disorders.

[0099] Compound

[0100] Described herein are compounds useful for treating a TYK2-mediated disorder. In some embodiments, the TYK2-mediated disorder is an autoimmune disorder, an inflammatory disorder, a proliferative disorder, an endocrine disorder, a neurological disorder, or a transplantation-related disorder.

[0101] Disclosed herein are compounds of formula (I) or pharmaceutically acceptable salts, solvates or stereoisomers thereof:

[0102]

[0103] in:

[0104] Z is a key, -CR Z 2 -or-(CR Z 2 ) 2 -;

[0105] Each R Z are independently hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0106] R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0107] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0108] R 4For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0109] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0110] L is a bond or -C(=O)-;

[0111] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0112] Each R A are independently deuterium, halogen, -CN, -OR b,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0113] or two R on the same carbon A Combined together to form an oxo group;

[0114] R 5 Halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10 ,-NHS(=O) 2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=O)R 7 ,-OC(=O)R 7 ,-C(=O)OR 8 ,-OC(=O)OR 8 ,-C(=O)NR 9 R 10 ,-OC(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0115] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0116] Each R 8 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6Alkyl or C 1 -C 6 Haloalkyl;

[0117] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0118] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0119] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2-C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0120] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0121] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0122] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0123] In some embodiments of compounds of formula (I), L is a bond. In some embodiments of compounds of formula (I), L is -C(=O)-.

[0124] In some embodiments of compounds of formula (I), Ring A is heterocycloalkyl or heteroaryl; each optionally substituted by one or more R A In some embodiments of the compound of formula (I), Ring A is a 5-membered heterocycloalkyl or a 5-membered heteroaryl; each optionally substituted by one or more R A In some embodiments of the compounds of formula (I), ring A is optionally substituted with one or more R A Substituted heteroaryl.

[0125] In some embodiments of compounds of Formula (I), each R A are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C6 In some embodiments of compounds of formula (I), each R A are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of formula (I), each R A are independently halogen or C 1 -C 6 In some embodiments of the compound of formula (I), each R A Independently for C 1 -C 6 alkyl.

[0126] In some embodiments of compounds of Formula (I), R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (I), R 4 is hydrogen or -OR b In some embodiments of the compound of formula (I), R 4 For-OR b In some embodiments of the compound of formula (I), R 4 For hydrogen.

[0127] In some embodiments of compounds of Formula (I), the compound has Formula (Ia):

[0128]

[0129] In some embodiments of compounds of Formula (I), the compound has Formula (Ib):

[0130]

[0131] In some embodiments of compounds of Formula (I), (Ia) or (Ib), R3 is hydrogen or C 1 -C 6 In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 3 For hydrogen.

[0132] In some embodiments of compounds of Formula (I), (Ia) or (Ib), Z is a bond or -CH 2 In some embodiments of compounds of Formula (I), (Ia) or (Ib), Z is -CH 2 -. In some embodiments of compounds of Formula (I), (Ia) or (Ib), Z is a bond.

[0133] In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 1 and R 2 are independently hydrogen or C 1 -C 6 In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 1 In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 2 C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 2 C 1 -C 6 Deuterated alkyl.

[0134] In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 5 Halogen, -CN, -OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 2 -C 6 Alkenyl, C 2 -C 6 alkynyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0135] In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 5 For-OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0136] In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 or aryl, which is optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0137] In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 5 For-NR 8 C(=O)R 7 In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 5is aryl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0138] In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 7 is cycloalkyl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 7 is an unsubstituted cycloalkyl group.

[0139] In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0140] In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (I), (Ia) or (Ib), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0141] Also disclosed herein are compounds of formula (II) or (II') or pharmaceutically acceptable salts, stereoisomers or solvates thereof:

[0142]

[0143] in:

[0144] R 11 Deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0145] R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0146] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0147] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O)2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0148] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0149] L is a bond or -C(=O)-;

[0150] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0151] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0152] or two R on the same carbon A Combined together to form an oxo group;

[0153] X is -CRx -or-N-;

[0154] R x For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0155] R 5 Halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10 ,-NHS(=O)2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=O)R 7 ,-OC(=O)R 7 ,-C(=O)OR 8 ,-OC(=O)OR 8 ,-C(=O)NR 9 R 10 ,-OC(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0156] or R x and R 5 Combined together to form optionally one or more R D substituted ring D;

[0157] Ring D is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0158] Each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0159] or two R on the same carbon D Combined together to form an oxo group;

[0160] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0161] Each R 8 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0162] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0163] or R 9 and R 10 Together with the nitrogen atom to which it is attached, it forms a heterocycloalkyl group optionally substituted with one or more oxo groups, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0164] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0165] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0166] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0167] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0168] In some embodiments of compounds of formula (II) or (II'), L is a bond. In some embodiments of compounds of formula (II) or (II'), L is -C(=O)-.

[0169] In some embodiments of compounds of formula (II) or (II'), Ring A is heterocycloalkyl or heteroaryl; each optionally substituted with one or more R A In some embodiments of the compound of formula (II) or (II'), Ring A is a 5-membered heterocycloalkyl or a 5-membered heteroaryl; each optionally substituted by one or more R A In some embodiments of the compounds of formula (II) or (II'), ring A is optionally substituted with one or more R A Substituted heteroaryl.

[0170] In some embodiments of compounds of formula (II) or (II'), each R A are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of formula (II) or (II'), each R A are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of formula (II) or (II'), each R A are independently halogen or C 1 -C 6 In some embodiments of the compound of formula (II) or (II'), each R A Independently for C 1 -C 6 alkyl.

[0171] In some embodiments of compounds of formula (II) or (II'), R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (II) or (II'), R 4 is hydrogen or -OR b In some embodiments of the compound of formula (II) or (II'), R 4 For-OR b In some embodiments of the compound of formula (II) or (II'), R 4 For hydrogen.

[0172] In some embodiments of compounds of formula (II) or (II'), X is -CH-. In some embodiments of compounds of formula (II) or (II'), X is -N-.

[0173] In some embodiments of compounds of formula (II) or (II'), the compound has formula (IIa) or (II'a):

[0174]

[0175] In some embodiments of compounds of formula (II) or (II'), the compound has formula (IIb) or (II'b):

[0176]

[0177] In some embodiments of compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 3 is hydrogen or C 1 -C 6 In some embodiments of the compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 3 For hydrogen.

[0178] In some embodiments of compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 1 and R 2 are independently hydrogen or C 1 -C 6 In some embodiments of the compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 1 In some embodiments of the compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 2 C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of the compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 2 C 1 -C 6 Deuterated alkyl.

[0179] In some embodiments of compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 5 Halogen, -CN, -OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 2 -C 6 Alkenyl, C 2 -C 6 alkynyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0180] In some embodiments of compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 5 For-OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0181] In some embodiments of compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 or aryl, which is optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0182] In some embodiments of compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of the compounds of formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 5 For-NR 8 C(=O)R 7 In some embodiments of the compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 5 is aryl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0183] In some embodiments of compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1-C 6 In some embodiments of the compounds of formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of the compounds of formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 7 is cycloalkyl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of the compounds of formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 7 is an unsubstituted cycloalkyl group.

[0184] In some embodiments of compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C6 In some embodiments of the compounds of formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0185] In some embodiments of compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of the compounds of formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0186] In some embodiments of compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 11 Deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 11 For deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compounds of Formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 11 In some embodiments of the compounds of formula (II), (II'), (IIa), (II'a), (IIb) or (II'b), R 11 For hydrogen.

[0187] Also disclosed herein is a compound of formula (III) or a pharmaceutically acceptable salt, stereoisomer or solvate thereof:

[0188]

[0189] in:

[0190] Ring B is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; provided that Not for

[0191] Each R B are independently hydrogen, deuterium, halogen, -CN, -OR b,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0192] or R on the same carbon B Combined together to form an oxo group;

[0193] or two R on adjacent atoms B are combined together to form a cycloalkyl, heterocycloalkyl, aryl or heteroaryl group; each optionally substituted with one or more deuterium, oxo, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c Rd , C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl or C 1 -C 6 Haloalkyl;

[0194] n is 0-4;

[0195] Each Y is independently C or N;

[0196] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0197] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0198] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0199] L is a bond or -C(=O)-;

[0200] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0201] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1-C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0202] or two R on the same carbon A Combined together to form an oxo group;

[0203] X is -CR x -or-N-;

[0204] R x For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR bC(=O)OR b ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0205] R 5 Halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10 ,-NHS(=O) 2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=O)R 7 ,-OC(=O)R 7 ,-C(=O)OR 8 ,-OC(=O)OR 8 ,-C(=O)NR 9 R 10 ,-OC(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0206] or R x and R 5 Combined together to form optionally one or more R D substituted ring D;

[0207] Ring D is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0208] Each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0209] or two R on the same carbon D Combined together to form an oxo group;

[0210] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1-C 6 Haloalkyl;

[0211] Each R 8 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0212] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0213] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0214] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0215] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0216] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0217] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0218] In some embodiments of compounds of formula (III), L is a bond. In some embodiments of compounds of formula (III), L is -C(=O)-.

[0219] In some embodiments of the compound of formula (III), Ring A is heterocycloalkyl or heteroaryl; each optionally substituted by one or more R A In some embodiments of the compound of formula (III), Ring A is a 5-membered heterocycloalkyl or a 5-membered heteroaryl; each optionally substituted by one or more R A In some embodiments of the compound of formula (III), ring A is optionally substituted with one or more R A Substituted heteroaryl.

[0220] In some embodiments of the compound of formula (III), each R A are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (III), each R A are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (III), each R A are independently halogen or C 1 -C 6 In some embodiments of the compound of formula (III), each R A Independently for C 1 -C 6 alkyl.

[0221] In some embodiments of the compound of formula (III), R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (III), R 4 is hydrogen or -OR b In some embodiments of the compound of formula (III), R 4 For-OR b In some embodiments of the compound of formula (III), R 4 For hydrogen.

[0222] In some embodiments of compounds of formula (III), X is -CH-. In some embodiments of compounds of formula (III), X is -N-.

[0223] In some embodiments of compounds of formula (III), the compound has formula (IIIa):

[0224]

[0225] In some embodiments of compounds of formula (III), the compound has formula (IIIb):

[0226]

[0227] In some embodiments of compounds of Formula (III), (IIIa) or (IIIb), R 3 is hydrogen or C 1 -C 6 In some embodiments of compounds of formula (III), (IIIa) or (IIIb), R 3 For hydrogen.

[0228] In some embodiments of compounds of Formula (III), (IIIa) or (IIIb), R 5 Halogen, -CN, -OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR8 C(=O)OR 8 ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 2 -C 6 Alkenyl, C 2 -C 6 alkynyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0229] In some embodiments of compounds of Formula (III), (IIIa) or (IIIb), R 5 For-OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6Alkyl or C 1 -C 6 Haloalkyl.

[0230] In some embodiments of compounds of Formula (III), (IIIa) or (IIIb), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 or aryl, which is optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0231] In some embodiments of compounds of Formula (III), (IIIa) or (IIIb), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of the compound of formula (III), (IIIa) or (IIIb), R 5 For-NR 8 C(=O)R 7 In some embodiments of compounds of formula (III), (IIIa) or (IIIb), R 5 is aryl optionally substituted with one or more oxo, deuterium, halogen, -CN, -ORb ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0232] In some embodiments of compounds of Formula (III), (IIIa) or (IIIb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of the compound of formula (III), (IIIa) or (IIIb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of the compound of formula (III), (IIIa) or (IIIb), R 7 is cycloalkyl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C1 -C 6 Alkyl or C 1 -C 6 In some embodiments of the compound of formula (III), (IIIa) or (IIIb), R 7 is an unsubstituted cycloalkyl group.

[0233] In some embodiments of compounds of Formula (III), (IIIa) or (IIIb), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of the compound of formula (III), (IIIa) or (IIIb), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0234] In some embodiments of compounds of Formula (III), (IIIa) or (IIIb), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of the compound of formula (III), (IIIa) or (IIIb), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0235] In some embodiments of compounds of Formula (III), (IIIa), or (IIIb), Ring B is heterocycloalkyl or heteroaryl.

[0236] In some embodiments of compounds of Formula (III), (IIIa) or (IIIb), for And n' is 0-3.

[0237] In some embodiments of compounds of Formula (III), (IIIa) or (IIIb), each R B are independently hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C6 Deuterated alkyl; or two R on the same carbon B In some embodiments of compounds of formula (III), (IIIa) or (IIIb), each R B are independently hydrogen, deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl; two R on the same carbon B Combined together to form an oxo group.

[0238] In some embodiments of compounds of Formula (III), (IIIa) or (IIIb), two R on adjacent atoms B are combined together to form a cycloalkyl, heterocycloalkyl, aryl or heteroaryl group; each optionally substituted with one or more deuterium, oxo, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl or C 1 -C 6 In some embodiments of the compounds of formula (III), (IIIa) or (IIIb), two R on adjacent atoms B are combined together to form heterocycloalkyl or heteroaryl; each optionally substituted by one or more deuterium, oxo, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl or C 1 -C 6 Haloalkyl.

[0239] In some embodiments of compounds of formula (III), (IIIa) or (IIIb), n is 0. In some embodiments of compounds of formula (III), (IIIa) or (IIIb), n is 1. In some embodiments of compounds of formula (III), (IIIa) or (IIIb), n is 2. In some embodiments of compounds of formula (III), (IIIa) or (IIIb), n is 0-2. In some embodiments of compounds of formula (III), (IIIa) or (IIIb), n is 0 or 1. In some embodiments of compounds of formula (III), (IIIa) or (IIIb), n is 1 or 2. In some embodiments of compounds of formula (III), (IIIa) or (IIIb), n is 1-3.

[0240] In some embodiments of compounds of formula (III), (IIIa) or (IIIb), n' is 0. In some embodiments of compounds of formula (III), (IIIa) or (IIIb), n' is 1. In some embodiments of compounds of formula (III), (IIIa) or (IIIb), n' is 2. In some embodiments of compounds of formula (III), (IIIa) or (IIIb), n' is 0-2. In some embodiments of compounds of formula (III), (IIIa) or (IIIb), n' is 0 or 1. In some embodiments of compounds of formula (III), (IIIa) or (IIIb), n' is 1 or 2.

[0241] Also disclosed herein is a compound of formula (IV) or a pharmaceutically acceptable salt, stereoisomer or solvate thereof:

[0242]

[0243] in:

[0244] Ring C is a bicyclic system;

[0245] Each R C are independently hydrogen, oxo, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0246] m is 0-4;

[0247] R 12 -C(=O)NR 1 R 2 or -L 1 -R 13 ;

[0248] R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0249] L 1 is -O-, -NH- or -N(CH 3 )-;

[0250] R13 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0251] L is a bond or -C(=O)-;

[0252] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0253] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NRc R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0254] or two R on the same carbon A Combined together to form an oxo group;

[0255] X is -CR x -or-N-;

[0256] R x For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0257] R 5 Halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10 ,-NHS(=O) 2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=O)R 7 ,-OC(=O)R 7 ,-C(=O)OR 8 ,-OC(=O)OR 8 ,-C(=O)NR 9 R 10 ,-OC(=O)NR 9 R10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0258] or R x and R 5 Combined together to form optionally one or more R D substituted ring D;

[0259] Ring D is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0260] Each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0261] or two R on the same carbon D Combined together to form an oxo group;

[0262] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0263] Each R 8 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0264] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0265] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0266] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0267] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0268] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0269] or R c and Rd and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0270] In some embodiments of compounds of formula (IV), L is a bond. In some embodiments of compounds of formula (IV), L is -C(=O)-.

[0271] In some embodiments of compounds of formula (IV), Ring A is heterocycloalkyl or heteroaryl; each optionally substituted with one or more R A In some embodiments of the compound of formula (IV), Ring A is a 5-membered heterocycloalkyl or a 5-membered heteroaryl; each optionally substituted with one or more R A In some embodiments of the compound of formula (IV), ring A is optionally substituted with one or more R A Substituted heteroaryl.

[0272] In some embodiments of the compound of formula (IV), each R A are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (IV), each R A are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (IV), each R A are independently halogen or C 1 -C 6In some embodiments of the compound of formula (IV), each R A Independently for C 1 -C 6 alkyl.

[0273] In some embodiments of the compound of formula (IV), R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (IV), R 4 is hydrogen or -OR b In some embodiments of the compound of formula (IV), R 4 For-OR b In some embodiments of the compound of formula (IV), R 4 For hydrogen.

[0274] In some embodiments of compounds of formula (IV), X is -CH-. In some embodiments of compounds of formula (IV), X is -N-.

[0275] In some embodiments of compounds of formula (IV), the compound has formula (IVa):

[0276]

[0277] In some embodiments of compounds of formula (IV), the compound has formula (IVb):

[0278]

[0279] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 12 -C(=O)NR 1 R 2 .

[0280] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 1 and R 2 are independently hydrogen, C1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 1 and R 2 are independently hydrogen or C 1 -C 6 In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 1 In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 2 C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 2 C 1 -C 6 Deuterated alkyl.

[0281] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 12 For -L 1 -R 13 .

[0282] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), L 1 In some embodiments of compounds of Formula (IV), (IVa) or (IVb), L 1 It is -O- or -NH-.

[0283] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 13 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl.

[0284] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 5 Halogen, -CN, -OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 2 -C 6 Alkenyl, C 2 -C 6 alkynyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0285] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 5 For-OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c Rd ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0286] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 or aryl, which is optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0287] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of formula (IV), (IVa) or (IVb), R 5 For-NR8 C(=O)R 7 In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 5 is aryl optionally substituted with one or more oxo groups, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0288] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of formula (IV), (IVa) or (IVb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of formula (IV), (IVa) or (IVb), R7 is cycloalkyl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of formula (IV), (IVa) or (IVb), R 7 is an unsubstituted cycloalkyl group.

[0289] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of formula (IV), (IVa) or (IVb), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0290] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), R 9 and R 10 are independently hydrogen, C 1 -C6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of formula (IV), (IVa) or (IVb), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0291] In some embodiments of compounds of Formula (IV), (IVa), or (IVb), Ring C is indole or benzimidazole.

[0292] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), each R C are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C6 Deuterated alkyl.

[0293] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), each R C are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (IV), (IVa) or (IVb), each R C are independently halogen or C 1 -C 6 alkyl.

[0294] In some embodiments of compounds of Formula (IV), (IVa) or (IVb), m is 0. In some embodiments of compounds of Formula (IV), (IVa) or (IVb), m is 1. In some embodiments of compounds of Formula (IV), (IVa) or (IVb), m is 2. In some embodiments of compounds of Formula (IV), (IVa) or (IVb), m is 0 or 1. In some embodiments of compounds of Formula (IV), (IVa) or (IVb), m is 0-2. In some embodiments of compounds of Formula (IV), (IVa) or (IVb), m is 1 or 2. In some embodiments of compounds of Formula (IV), (IVa) or (IVb), m is 1-3.

[0295] Also disclosed herein is a compound of formula (V) or a pharmaceutically acceptable salt, stereoisomer or solvate thereof:

[0296]

[0297]

[0298] in:

[0299] Ring D is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0300] Each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O)2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0301] or two R on the same carbon D Combined together to form an oxo group;

[0302] or two R on adjacent atoms D are combined together to form a cycloalkyl, heterocycloalkyl, aryl or heteroaryl group; each optionally substituted with one or more deuterium, oxo, halogen, -CN, -OR b,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl or C 1 -C 6 Haloalkyl;

[0303] r is 0-4;

[0304] Each Y is independently C or N;

[0305] R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0306] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0307] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0308] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0309] L is a bond or -C(=O)-;

[0310] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0311] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0312] or two R on the same carbon A Combined together to form an oxo group;

[0313] Each X is independently -CR x -or-N-;

[0314] Each R x are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0315] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0316] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0317] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0318] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0319] In some embodiments of compounds of Formula (V), L is a bond. In some embodiments of compounds of Formula (V), L is -C(=O)-.

[0320] In some embodiments of compounds of Formula (V), Ring A is heterocycloalkyl or heteroaryl; each optionally substituted with one or more R A In some embodiments of the compound of formula (V), Ring A is a 5-membered heterocycloalkyl or a 5-membered heteroaryl; each optionally substituted with one or more R A In some embodiments of the compound of formula (V), ring A is optionally substituted with one or more R A Substituted heteroaryl.

[0321] In some embodiments of compounds of Formula (V), each R A are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C6 In some embodiments of the compound of formula (V), each R A are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (V), each R A are independently halogen or C 1 -C 6 In some embodiments of the compound of formula (V), each R A Independently for C 1 -C 6 alkyl.

[0322] In some embodiments of compounds of Formula (V), R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (V), R 4 is hydrogen or -OR b In some embodiments of the compound of formula (V), R 4 For-OR b In some embodiments of the compound of formula (V), R 4 For hydrogen.

[0323] In some embodiments of compounds of formula (V), each X is -N-. In some embodiments of compounds of formula (V), each X is -CH-. In some embodiments of compounds of formula (V), one X is -N- and the other is -CH-.

[0324] In some embodiments of compounds of Formula (V), the compound has Formula (Va):

[0325]

[0326] In some embodiments of compounds of Formula (V), the compound has Formula (Vb):

[0327]

[0328] In some embodiments of compounds of Formula (V), (Va) or (Vb), R 3 is hydrogen or C 1 -C 6 In some embodiments of compounds of Formula (V), (Va) or (Vb), R 3 For hydrogen.

[0329] In some embodiments of compounds of Formula (V), (Va) or (Vb), R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (V), (Va) or (Vb), R 1 and R 2 are independently hydrogen or C 1 -C 6 In some embodiments of compounds of Formula (V), (Va) or (Vb), R 1 In some embodiments of compounds of Formula (V), (Va) or (Vb), R 2 C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (V), (Va) or (Vb), R 2 C 1 -C 6 Deuterated alkyl.

[0330] In some embodiments of compounds of Formula (V), (Va), or (Vb), Ring D is heterocycloalkyl or heteroaryl.

[0331] In some embodiments of compounds of Formula (V), (Va) or (Vb), for

[0332] and R' is 0-3.

[0333] In some embodiments of compounds of Formula (V), (Va) or (Vb), each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-NRc R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 In some embodiments of compounds of Formula (V), (Va) or (Vb), each R D are independently hydrogen, deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 In some embodiments of compounds of Formula (V), (Va) or (Vb), each R D are independently hydrogen or cycloalkyl.

[0334] In some embodiments of compounds of Formula (V), (Va) or (Vb), r is 0. In some embodiments of compounds of Formula (V), (Va) or (Vb), r is 1. In some embodiments of compounds of Formula (V), (Va) or (Vb), r is 2. In some embodiments of compounds of Formula (V), (Va) or (Vb), r is 0-2. In some embodiments of compounds of Formula (V), (Va) or (Vb), r is 0 or 1. In some embodiments of compounds of Formula (V), (Va) or (Vb), r is 1 or 2. In some embodiments of compounds of Formula (V), (Va) or (Vb), r is 1-3.

[0335] In some embodiments of compounds of formula (V), (Va) or (Vb), r' is 0. In some embodiments of compounds of formula (V), (Va) or (Vb), r' is 1. In some embodiments of compounds of formula (V), (Va) or (Vb), r' is 2. In some embodiments of compounds of formula (V), (Va) or (Vb), r' is 0-2. In some embodiments of compounds of formula (V), (Va) or (Vb), r' is 0 or 1. In some embodiments of compounds of formula (V), (Va) or (Vb), r' is 1 or 2. In some embodiments of compounds of formula (V), (Va) or (Vb), r' is 1-3.

[0336] Also disclosed herein is a compound of formula (VI) or a pharmaceutically acceptable salt, stereoisomer or solvate thereof:

[0337]

[0338] in:

[0339] Ring E is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R E replace;

[0340] Each R E are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NRc R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0341] or two R on the same carbon E Combined together to form an oxo group;

[0342] L 2 is a key, -O- or

[0343] R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0344] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0345] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)Ra ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0346] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0347] L is a bond or -C(=O)-;

[0348] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0349] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)Ra ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0350] or two R on the same carbon A Combined together to form an oxo group;

[0351] X is -CR x -or-N-;

[0352] R x For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0353] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0354] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0355] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0356] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0357] In some embodiments of compounds of formula (VI), L is a bond. In some embodiments of compounds of formula (VI), L is -C(=O)-.

[0358] In some embodiments of compounds of formula (VI), Ring A is heterocycloalkyl or heteroaryl; each optionally substituted by one or more R A In some embodiments of the compound of formula (VI), Ring A is a 5-membered heterocycloalkyl or a 5-membered heteroaryl; each optionally substituted with one or more R A In some embodiments of the compound of formula (VI), ring A is optionally substituted with one or more R A Substituted heteroaryl.

[0359] In some embodiments of compounds of Formula (VI), each R A are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C1 -C 6 In some embodiments of the compound of formula (VI), each R A are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (VI), each R A are independently halogen or C 1 -C 6 In some embodiments of the compound of formula (VI), each R A Independently for C 1 -C 6 alkyl.

[0360] In some embodiments of the compound of formula (VI), R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (VI), R 4 is hydrogen or -OR b In some embodiments of the compound of formula (VI), R 4 For-OR b In some embodiments of the compound of formula (VI), R 4 For hydrogen.

[0361] In some embodiments of compounds of formula (VI), X is -CH-. In some embodiments of compounds of formula (VI), X is -N-.

[0362] In some embodiments of compounds of Formula (VI), the compound has Formula (VIa):

[0363]

[0364] In some embodiments of compounds of Formula (VI), the compound has Formula (VIb):

[0365]

[0366] In some embodiments of compounds of Formula (VI), (VIa) or (VIb), R 3 is hydrogen or C 1 -C 6 In some embodiments of compounds of Formula (VI), (VIa) or (VIb), R 3 For hydrogen.

[0367] In some embodiments of compounds of Formula (VI), (VIa) or (VIb), R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (VI), (VIa) or (VIb), R 1 and R 2 are independently hydrogen or C 1 -C 6 In some embodiments of compounds of Formula (VI), (VIa) or (VIb), R 1 In some embodiments of compounds of Formula (VI), (VIa) or (VIb), R 2 C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (VI), (VIa) or (VIb), R 2 C 1 -C 6 Deuterated alkyl.

[0368] In some embodiments of compounds of Formula (VI), (VIa) or (VIb), L 2 is the key.

[0369] In some embodiments of compounds of Formula (VI), (VIa) or (VIb), Ring E is cycloalkyl, heterocycloalkyl or aryl; each optionally substituted with one or more R E replace.

[0370] In some embodiments of compounds of Formula (VI), (VIa) or (VIb), Ring E is aryl optionally substituted with one or more R E .

[0371] In some embodiments of compounds of Formula (VI), (VIa) or (VIb), each R E are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl.

[0372] In some embodiments of compounds of Formula (VI), (VIa) or (VIb), each R E are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl.

[0373] In some embodiments of compounds of Formula (VI), (VIa) or (VIb), each R E are independently halogen.

[0374] Also disclosed herein is a compound of formula (VII) or a pharmaceutically acceptable salt, stereoisomer or solvate thereof:

[0375]

[0376] in:

[0377] R 14 is hydrogen, -S(=O)R a ,-S(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 Alkynyl, C 1 -C 6 Alkyl (cycloalkyl), C 1 -C 6 Alkyl (heterocycloalkyl), C 1 -C 6 Alkyl (aryl), C 1 -C 6 Alkyl(heteroaryl), cycloalkyl or heterocycloalkyl;

[0378] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0379] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0380] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0381] L is a bond or -C(=O)-;

[0382] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0383] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1-C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0384] or two R on the same carbon A Combined together to form an oxo group;

[0385] X is -CR x -or-N-;

[0386] R x For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NRb C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0387] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0388] R 5 Halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10,-NHS(=O) 2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=O)R 7 ,-OC(=O)R 7 ,-C(=O)OR 8 ,-OC(=O)OR 8 ,-C(=O)NR 9 R 10 ,-OC(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0389] or R x and R 5 Combined together to form optionally one or more R D substituted ring D;

[0390] Ring D is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0391] Each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c Rd , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0392] or two R on the same carbon D Combined together to form an oxo group;

[0393] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0394] Each R 8 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0395] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0396] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0397] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0398] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0399] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0400] In some embodiments of compounds of formula (VII), L is a bond. In some embodiments of compounds of formula (VII), L is -C(=O)-.

[0401] In some embodiments of compounds of formula (VII), Ring A is heterocycloalkyl or heteroaryl; each optionally substituted by one or more R A In some embodiments of the compound of formula (VII), Ring A is a 5-membered heterocycloalkyl or a 5-membered heteroaryl; each optionally substituted with one or more R A In some embodiments of the compound of formula (VII), ring A is optionally substituted with one or more R A Substituted heteroaryl.

[0402] In some embodiments of compounds of Formula (VII), each R A are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (VII), each R A are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (VII), each R A are independently halogen or C 1 -C 6 In some embodiments of the compound of formula (VII), each R A Independently for C 1 -C 6 alkyl.

[0403] In some embodiments of the compound of formula (VII), R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (VII), R 4 is hydrogen or -OR b In some embodiments of the compound of formula (VII), R 4 For-OR b In some embodiments of the compound of formula (VII), R 4 For hydrogen.

[0404] In some embodiments of compounds of formula (VII), X is -CH-. In some embodiments of compounds of formula (VII), X is -N-.

[0405] In some embodiments of compounds of Formula (VII), the compound has Formula (VIIa):

[0406]

[0407] In some embodiments of compounds of Formula (VII), the compound has Formula (VIIb):

[0408]

[0409] In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 3 is hydrogen or C 1 -C 6 In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 3 For hydrogen.

[0410] In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 5 Halogen, -CN, -OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 2 -C 6 Alkenyl, C 2 -C 6 alkynyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0411] In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 5 For-OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)ORb ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0412] In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 or aryl, which is optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0413] In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 5 For-NR 8 C(=O)R 7In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 5 is aryl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0414] In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 7is cycloalkyl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 7 is an unsubstituted cycloalkyl group.

[0415] In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0416] In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 9 and R 10 are independently hydrogen, C 1 -C6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0417] In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 14 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl or C 1 -C 6 In some embodiments of compounds of Formula (VII), (VIIa) or (VIIb), R 14 C 1 -C 6 Alkyl or C 1 -C 6 Alkyl (cycloalkyl).

[0418] Also disclosed herein is a compound of formula (VIII) or a pharmaceutically acceptable salt, stereoisomer or solvate thereof:

[0419]

[0420] in:

[0421] R 15 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0422] L 3 is -O-, -NH- or -N(CH 3 )-;

[0423] L 4 For-NR 3 - or -C(=O)-;

[0424] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0425] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O)2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0426] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0427] L is a bond or -C(=O)-;

[0428] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0429] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0430] or two R on the same carbon A Combined together to form an oxo group;

[0431] X is -CRx -or-N-;

[0432] R x For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0433] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0434] R 5 Halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10 ,-NHS(=O) 2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=O)R 7 ,-OC(=O)R 7 ,-C(=O)OR 8 ,-OC(=O)OR 8 ,-C(=O)NR 9 R 10 ,-OC(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0435] or R x and R 5 Combined together to form optionally one or more R D substituted ring D;

[0436] Ring D is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0437] Each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NRb C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0438] or two R on the same carbon D Combined together to form an oxo group;

[0439] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1-C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0440] Each R 8 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0441] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6Haloalkyl;

[0442] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0443] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0444] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0445] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0446] In some embodiments of compounds of formula (VIII), L is a bond. In some embodiments of compounds of formula (VIII), L is -C(=O)-.

[0447] In some embodiments of compounds of formula (VIII), Ring A is heterocycloalkyl or heteroaryl; each optionally substituted by one or more R A In some embodiments of the compound of formula (VIII), Ring A is a 5-membered heterocycloalkyl or a 5-membered heteroaryl; each optionally substituted by one or more R A In some embodiments of the compound of formula (VIII), ring A is optionally substituted with one or more R A Substituted heteroaryl.

[0448] In some embodiments of compounds of Formula (VIII), each R A are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (VIII), each R A are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (VIII), each R A are independently halogen or C 1 -C 6 In some embodiments of the compound of formula (VIII), each R A Independently for C 1 -C 6 alkyl.

[0449] In some embodiments of compounds of Formula (VIII), R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (VIII), R 4 is hydrogen or -OR b In some embodiments of the compound of formula (VIII), R 4 For-OR b In some embodiments of the compound of formula (VIII), R 4 For hydrogen.

[0450] In some embodiments of compounds of formula (VIII), X is -CH-. In some embodiments of compounds of formula (VIII), X is -N-.

[0451] In some embodiments of compounds of Formula (VIII), the compound has Formula (VIIIa):

[0452]

[0453] In some embodiments of compounds of Formula (VIII), the compound has Formula (VIIIb):

[0454]

[0455] In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 5 Halogen, -CN, -OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 2 -C 6 Alkenyl, C 2 -C 6 alkynyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0456] In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 5 For-OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0457] In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 or aryl, which is optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0458] In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 5 For-NR 8 C(=O)R 7 In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 5 is aryl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0459] In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 7 is cycloalkyl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 7 is an unsubstituted cycloalkyl group.

[0460] In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 8 For hydrogen, C1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0461] In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0462] In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), L 3 In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), L 3 It is -NH-.

[0463] In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 15 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl or cycloalkyl.

[0464] In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), L 4 For-NR 3 -.

[0465] In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 3 is hydrogen or C 1 -C 6 In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), R 3 For hydrogen.

[0466] In some embodiments of compounds of Formula (VIII), (VIIIa) or (VIIIb), L 4 It is -C(=O)-.

[0467] A compound of formula (IX) or a pharmaceutically acceptable salt, stereoisomer or solvate thereof:

[0468]

[0469] in:

[0470] Ring F is heterocycloalkyl or heteroaryl;

[0471] Each R F are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0472] or two R on the same carbon F Combined together to form an oxo group;

[0473] or two R on adjacent atoms F are combined together to form a cycloalkyl, heterocycloalkyl, aryl or heteroaryl group; each optionally substituted with one or more deuterium, oxo, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl or C 1 -C 6 Haloalkyl;

[0474] p is 0-4;

[0475] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0476] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0477] or R 3 and R 4are joined together to form an optionally substituted ring;

[0478] L is a bond or -C(=O)-;

[0479] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0480] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -ORb ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0481] or two R on the same carbon A Combined together to form an oxo group;

[0482] X is -CR x -or-N-;

[0483] R x For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1-C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0484] R 5 Halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10 ,-NHS(=O) 2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=O)R 7 ,-OC(=O)R 7 ,-C(=O)OR 8 ,-OC(=O)OR 8 ,-C(=O)NR 9 R 10 ,-OC(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)Ra ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0485] or R x and R 5 Combined together to form optionally one or more R D substituted ring D;

[0486] Ring D is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0487] Each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0488] or two R on the same carbon D Combined together to form an oxo group;

[0489] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0490] Each R 8 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0491] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0492] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6Alkyl or C 1 -C 6 Haloalkyl;

[0493] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0494] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0495] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0496] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0497] In some embodiments of compounds of formula (IX), L is a bond. In some embodiments of compounds of formula (IX), L is -C(=O)-.

[0498] In some embodiments of compounds of formula (IX), Ring A is heterocycloalkyl or heteroaryl; each optionally substituted by one or more R A In some embodiments of the compound of formula (IX), Ring A is a 5-membered heterocycloalkyl or a 5-membered heteroaryl; each optionally substituted by one or more R A In some embodiments of the compound of formula (IX), ring A is optionally substituted with one or more R A Substituted heteroaryl.

[0499] In some embodiments of compounds of Formula (IX), each RA are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (IX), each R A are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (IX), each R A are independently halogen or C 1 -C 6 In some embodiments of the compound of formula (IX), each R A Independently for C 1 -C 6 alkyl.

[0500] In some embodiments of the compound of formula (IX), R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (IX), R 4 is hydrogen or -OR b In some embodiments of the compound of formula (IX), R 4 For-OR bIn some embodiments of the compound of formula (IX), R 4 For hydrogen.

[0501] In some embodiments of compounds of formula (IX), X is -CH-. In some embodiments of compounds of formula (IX), X is -N-.

[0502] In some embodiments of compounds of Formula (IX), the compound has Formula (IXa):

[0503]

[0504] In some embodiments of compounds of Formula (IX), the compound has Formula (IXb):

[0505]

[0506] In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 3 is hydrogen or C 1 -C 6 In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 3 For hydrogen.

[0507] In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 5 Halogen, -CN, -OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 2 -C 6 Alkenyl, C 2 -C 6alkynyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0508] In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 5 For-OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0509] In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7or aryl, which is optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0510] In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 5 For-NR 8 C(=O)R 7 In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 5 is aryl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0511] In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 7 is cycloalkyl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 7 is an unsubstituted cycloalkyl group.

[0512] In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 8 For hydrogen, C 1 -C 6Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0513] In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (IX), (IXa) or (IXb), R 9 and R10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0514] In some embodiments of compounds of Formula (IX), (IXa), or (IXb), Ring F is heterocycloalkyl.

[0515] In some embodiments of compounds of Formula (IX), (IXa) or (IXb), for

[0516] In some embodiments of compounds of Formula (IX), (IXa) or (IXb), each R F are independently hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (IX), (IXa) or (IXb), each R F are independently hydrogen, deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl.

[0517] In some embodiments of compounds of Formula (IX), (IXa) or (IXb), p is 0. In some embodiments of compounds of Formula (IX), (IXa) or (IXb), p is 1. In some embodiments of compounds of Formula (IX), (IXa) or (IXb), p is 2. In some embodiments of compounds of Formula (IX), (IXa) or (IXb), p is 0-2. In some embodiments of compounds of Formula (IX), (IXa) or (IXb), p is 0 or 1. In some embodiments of compounds of Formula (IX), (IXa) or (IXb), p is 1 or 2. In some embodiments of compounds of Formula (IX), (IXa) or (IXb), p is 1-3.

[0518] Also disclosed herein is a compound of formula (X) or a pharmaceutically acceptable salt, solvate or stereoisomer thereof:

[0519]

[0520] in:

[0521] L 5 is a saturated or unsaturated straight aliphatic chain having 1 to 10 carbon atoms, optionally substituted by one or more R L5 substituted, wherein 1-5 carbon atoms are optionally substituted by -NH-, -N(CH 3 )-,-O-,-S-,-S(=O)-,-S(=O) 2 -or -P(=O)- replacement;

[0522] Each R L5 are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR bC(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0523] or two R on the same carbon atom L5 Combined together to form an oxo group;

[0524] R 12 -C(=O)NR 1 R 2 or -L 1 -R 13 ;

[0525] R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0526] L 1 is -O-, -NH- or -N(CH 3 )-;

[0527] R 13 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0528] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0529] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NRc R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0530] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0531] L is a bond or -C(=O)-;

[0532] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0533] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NRb C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0534] or two R on the same carbon A Combined together to form an oxo group;

[0535] X is -CR x -or-N-;

[0536] R x For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)ORb ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0537] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0538] Each R b are independently hydrogen, C 1 -C6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0539] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0540] or R c and R dand the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0541] In some embodiments of compounds of formula (X), L is a bond. In some embodiments of compounds of formula (X), L is -C(=O)-.

[0542] In some embodiments of compounds of formula (X), Ring A is heterocycloalkyl or heteroaryl; each optionally substituted with one or more R A In some embodiments of the compound of formula (X), Ring A is a 5-membered heterocycloalkyl or a 5-membered heteroaryl; each optionally substituted with one or more R A In some embodiments of the compound of formula (X), ring A is optionally substituted with one or more R A Substituted heteroaryl.

[0543] In some embodiments of compounds of Formula (X), each R A are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (X), each R A are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (X), each R A are independently halogen or C 1 -C 6 In some embodiments of compounds of formula (X), each RA Independently for C 1 -C 6 alkyl.

[0544] In some embodiments of compounds of Formula (X), R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of formula (X), R 4 is hydrogen or -OR b In some embodiments of the compound of formula (X), R 4 For-OR b In some embodiments of the compound of formula (X), R 4 For hydrogen.

[0545] In some embodiments of compounds of formula (X), X is -CH-. In some embodiments of compounds of formula (X), X is -N-.

[0546] In some embodiments of compounds of formula (X), the compound has the formula In some embodiments of compounds of formula (X), the compound has the formula

[0547] In some embodiments of compounds of Formula (X), the compound has Formula (Xa):

[0548]

[0549] In some embodiments of compounds of formula (X), the compound has formula (Xb):

[0550]

[0551] In some embodiments of compounds of formula (X), the compound has formula (Xa-1):

[0552]

[0553] In some embodiments of compounds of formula (X), the compound has formula (Xb-1):

[0554]

[0555] In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), R 3 is hydrogen or C 1 -C 6 In some embodiments of the compound of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), R 3 For hydrogen.

[0556] In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), R 12 -C(=O)NR 1 R 2 .

[0557] In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), R 1 and R 2 are independently hydrogen or C 1 -C 6 In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), R 1 In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), R 2 C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), R 2 C 1 -C 6 Deuterated alkyl.

[0558] In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), R12 For -L 1 -R 13 .

[0559] In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 1 In some embodiments of the compound of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 1 It is -O- or -NH-.

[0560] In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), R 13 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl.

[0561] In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 5 is a saturated straight aliphatic chain having 1 to 8 carbon atoms, optionally substituted by one or more R L5 substituted, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 )-,-O-,-S-,-S(=O)-,-S(=O) 2 In some embodiments of the compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 5 is a saturated straight aliphatic chain having 1 to 8 carbon atoms, optionally substituted by one or more R L5 substituted, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 5 is a saturated straight aliphatic chain having 1 to 8 carbon atoms, optionally substituted by one or more R L5 Substitution, wherein 1, 2 or 3 carbon atoms are optionally replaced by -NH- or -O-.

[0562] In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 5 is a saturated straight aliphatic chain having 1 to 8 carbon atoms, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3)-,-O-,-S-,-S(=O)-, or -S(=O) 2 -substituted. In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 5 is a saturated straight aliphatic chain having 1 to 8 carbon atoms, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 5 is a saturated straight aliphatic chain having 1 to 8 carbon atoms, wherein 1, 2 or 3 carbon atoms are optionally replaced by -NH- or -O-.

[0563] In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 5 is an unsaturated straight aliphatic chain having 1 to 8 carbon atoms, optionally substituted by one or more R L5 substituted, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 )-,-O-,-S-,-S(=O)-, or -S(=O) 2 -substituted. In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 5 is an unsaturated straight aliphatic chain having 1 to 8 carbon atoms, optionally substituted by one or more R L5 substituted, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 5 is an unsaturated straight aliphatic chain having 1 to 8 carbon atoms, optionally substituted by one or more R L5 Substitution, wherein 1, 2 or 3 carbon atoms are optionally replaced by -NH- or -O-.

[0564] In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 5 is an unsaturated straight aliphatic chain having 1 to 8 carbon atoms, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 )-,-O-,-S-,-S(=O)-,-S(=O) 2 In some embodiments of the compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 5is an unsaturated straight aliphatic chain having 1 to 8 carbon atoms, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 5 is an unsaturated straight aliphatic chain having 1 to 8 carbon atoms, wherein 1, 2 or 3 carbon atoms are optionally replaced by -NH- or -O-.

[0565] In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), each R L5 are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), each R L5 are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), each R L5 is independently deuterium or a halogen.

[0566] In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), two R L5 Combined together to form an oxo group.

[0567] In some embodiments of compounds of Formula (X), (Xa), (Xa-1), (Xb) or (Xb-1), L 5 for

[0568] Also disclosed herein is a compound of formula (XI) or a pharmaceutically acceptable salt, solvate or stereoisomer thereof:

[0569]

[0570] in:

[0571] L 6 is a saturated or unsaturated straight aliphatic chain having 1 to 10 carbon atoms, optionally substituted by one or more R L6 substituted, wherein 1-5 carbon atoms are optionally substituted by -NH-, -N(CH 3 )-,-O-,-S-,-S(=O)-,-S(=O) 2 -, or -P(=O)- replacement;

[0572] Each R L6 are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C6 Alkynyl;

[0573] or two R on the same carbon atom L6 Combined together to form an oxo group;

[0574] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0575] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6Alkynyl;

[0576] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0577] L is a bond or -C(=O)-;

[0578] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0579] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0580] or two R on the same carbon A Combined together to form an oxo group;

[0581] X is -CR x -or-N-;

[0582] R x For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0583] R 5 For hydrogen, halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10 ,-NHS(=O) 2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=O)R 7 ,-OC(=O)R 7 ,-C(=O)OR 8 ,-OC(=O)OR 8 ,-C(=O)NR 9 R 10 ,-OC(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0584] or R x and R 5 Combined together to form optionally one or more R D substituted ring D;

[0585] Ring D is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0586] Each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0587] or two R on the same carbon D Combined together to form an oxo group;

[0588] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0589] Each R 8 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0590] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0591] or R 9 and R 10and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0592] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0593] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0594] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0595] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0596] In some embodiments of compounds of formula (XI), L is a bond. In some embodiments of compounds of formula (XI), L is -C(=O)-.

[0597] In some embodiments of compounds of formula (XI), Ring A is heterocycloalkyl or heteroaryl; each optionally substituted with one or more R AIn some embodiments of the compound of formula (XI), Ring A is a 5-membered heterocycloalkyl or a 5-membered heteroaryl; each optionally substituted with one or more R A In some embodiments of the compound of formula (XI), ring A is optionally substituted with one or more R A Substituted heteroaryl.

[0598] In some embodiments of compounds of Formula (XI), each R A are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (XI), each R A are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (XI), each R A are independently halogen or C 1 -C 6 In some embodiments of the compound of formula (XI), each R A Independently for C 1 -C 6 alkyl.

[0599] In some embodiments of compounds of Formula (XI), R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of the compound of formula (XI), R 4 is hydrogen or -OR b In some embodiments of the compound of formula (XI), R 4 For-OR b In some embodiments of the compound of formula (XI), R 4 For hydrogen.

[0600] In some embodiments of compounds of Formula (XI), X is -CH-. In some embodiments of compounds of Formula (XI), X is -N-.

[0601] In some embodiments of compounds of Formula (XI), the compound has Formula (XIa):

[0602]

[0603] In some embodiments of compounds of Formula (XI), the compound has Formula (XIb):

[0604]

[0605] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 3 is hydrogen or C 1 -C 6 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 3 For hydrogen.

[0606] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 5 Halogen, -CN, -OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , C 1 -C 6 Alkyl, C 1 -C 6Haloalkyl, C 1 -C 6 Deuterated alkyl, C 2 -C 6 Alkenyl, C 2 -C 6 alkynyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0607] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 5 For-OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0608] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 or aryl, which is optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0609] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 5 For-NR 8 C(=O)R 7 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 5 is aryl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c Rd , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0610] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 7 is cycloalkyl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 7 is an unsubstituted cycloalkyl group.

[0611] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 8 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0612] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0613] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), L 6 is a saturated straight aliphatic chain having 1 to 8 carbon atoms, optionally substituted by one or more R L6 substituted, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 )-,-O-,-S-,-S(=O)-, or -S(=O) 2 -substituted. In some embodiments of compounds of Formula (XI), (XIa) or (XIb), L 6 is a saturated straight aliphatic chain having 1 to 8 carbon atoms, optionally substituted by one or more R L6 substituted, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), L 6 is a saturated straight aliphatic chain having 1 to 8 carbon atoms, optionally substituted by one or more R L6 Substitution, wherein 1, 2 or 3 carbon atoms are optionally replaced by -NH- or -O-.

[0614] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), L 6 is a saturated straight aliphatic chain having 1 to 8 carbon atoms, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 )-,-O-,-S-,-S(=O)-, or -S(=O) 2-substituted. In some embodiments of compounds of Formula (XI), (XIa) or (XIb), L 6 is a saturated straight aliphatic chain having 1 to 8 carbon atoms, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), L 6 is a saturated straight aliphatic chain having 1 to 8 carbon atoms, wherein 1, 2 or 3 carbon atoms are optionally replaced by -NH- or -O-.

[0615] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), L 6 is an unsaturated straight aliphatic chain having 1 to 8 carbon atoms, optionally substituted by one or more R L6 substituted, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 )-,-O-,-S-,-S(=O)-,-S(=O) 2 - or -P(=O)-. In some embodiments of compounds of Formula (XI), (XIa) or (XIb), L 6 is an unsaturated straight aliphatic chain having 1 to 8 carbon atoms, optionally substituted by one or more R L6 substituted, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), L 6 is an unsaturated straight aliphatic chain having 1 to 8 carbon atoms, optionally substituted by one or more R L6 Substitution, wherein 1, 2 or 3 carbon atoms are optionally replaced by -NH- or -O-.

[0616] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), L 6 is an unsaturated straight aliphatic chain having 1 to 8 carbon atoms, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 )-,-O-,-S-,-S(=O)-,-S(=O) 2 - or -P(=O)-. In some embodiments of compounds of Formula (XI), (XIa) or (XIb), L 6 is an unsaturated straight aliphatic chain having 1 to 8 carbon atoms, wherein 1, 2 or 3 carbon atoms are optionally substituted by -NH-, -N(CH 3 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), L 6is an unsaturated straight aliphatic chain having 1 to 8 carbon atoms, wherein 1, 2 or 3 carbon atoms are optionally replaced by -NH- or -O-.

[0617] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), each R L6 are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), each R L6 are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (XI), (XIa) or (XIb), each R L6 is independently deuterium or a halogen.

[0618] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), two R on the same carbon atom L6 Combined together to form an oxo group.

[0619] In some embodiments of compounds of Formula (XI), (XIa) or (XIb), L 6 for

[0620] Also disclosed herein is a compound of formula (XII) or a pharmaceutically acceptable salt, solvate or stereoisomer thereof:

[0621]

[0622] in:

[0623] Ring B is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0624] R 16 -C(=O)NR 1 R 2 ,-C(=N-CN)NR1 R 2 ,-P(=O)R 1 R 2 or -C(=O)R 11 ;

[0625] R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0626] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0627] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d,-NR b C(=O)R a ,-NR b C(=O)OR b 、-P(=O)R b R b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0628] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0629] L is a bond or -C(=O)-;

[0630] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0631] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c Rd ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0632] or two R on the same carbon A Combined together to form an oxo group;

[0633] or -L-Ring A is absent;

[0634] Each X is independently -CR x -or-N-;

[0635] Each R x are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c Rd ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0636] R 5 Halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10 ,-NR 8 S(=O)R 7 ,-NR 8 S(=O) 2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=N-CN)R 7 ,-C(=O)R 7 ,-OC(=N-CN)R 7 ,-OC(=O)R 7 ,-C(=N-CN)OR 8 ,-C(=O)OR 8 ,-OC(=N-CN)OR8 ,-OC(=O)OR 8 ,-C(=N-CN)NR 9 R 10 ,-C(=O)NR 9 R 10 ,-OC(=N-CN)NR 9 R 10 ,-OC(=O)NR 9 R 10 ,-NR 8 C(=N-CN)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=N-CN)R 7 ,-NR 8 C(=N-OH)R 7 ,-NR 8 C(=O)R 7 ,-NR 8 C(=N-CN)OR 8 ,-NR 8 C(=O)OR 8 ,-NR 8 S(=O)(=NR 8 )R 7 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C 1 -C 6 Alkyl (cycloalkyl), C 1 -C 6 Alkyl (heterocycloalkyl), C 1 -C 6 Alkyl (aryl) or C 1 -C 6 alkyl(heteroaryl); wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0637] or R x and R 5 Combined together to form optionally one or more R D substituted ring D;

[0638] Ring D is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0639] Each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 Ra ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0640] or two R on the same carbon D Combined together to form an oxo group;

[0641] R 7 C 1 -C 6 Alkyl, C 1 -C 6Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0642] Each R 8 are independently hydrogen, CN, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0643] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Hydroxydeuterated alkyl, cycloalkyl or heterocycloalkyl;

[0644] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0645] or R 8 and R 9 and the atoms to which they are attached are taken together to form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0646] R 11 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more R 11a ;

[0647] Each R 11a are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C6 Alkynyl;

[0648] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0649] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0650] Each R c and Rd are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0651] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0652] Also disclosed herein is a compound of formula (XII) or a pharmaceutically acceptable salt, stereoisomer or solvate thereof:

[0653]

[0654] in:

[0655] Ring B is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0656] R 16 -C(=O)NR 1 R 2 ,-C(=N-CN)NR 1 R 2 ,-P(=O)R 1 R 2 or -C(=O)R11 ;

[0657] R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0658] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0659] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b、-P(=O)R b R b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0660] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0661] L is a bond or -C(=O)-;

[0662] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0663] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)ORb , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0664] or two R on the same carbon A Combined together to form an oxo group;

[0665] or -L-Ring A is absent;

[0666] Each X is independently -CR x -or-N-;

[0667] Each R x are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0668] R 5 Halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10 ,-NR 8 S(=O)R 7 ,-NR 8 S(=O) 2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=N-CN)R 7 ,-C(=O)R 7 ,-OC(=N-CN)R 7 ,-OC(=O)R 7 ,-C(=N-CN)OR 8 ,-C(=O)OR 8 ,-OC(=N-CN)OR 8 ,-OC(=O)OR 8 ,-C(=N-CN)NR 9 R 10,-C(=O)NR 9 R 10 ,-OC(=N-CN)NR 9 R 10 ,-OC(=O)NR 9 R 10 ,-NR 8 C(=N-CN)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=N-CN)R 7 ,-NR 8 C(=N-OH)R 7 ,-NR 8 C(=N-CN)OR 8 ,-NR 8 C(=O)OR 8 ,-NR 8 S(=O)(=NR 8 )R 7 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C 1 -C 6 Alkyl (cycloalkyl), C 1 -C 6 Alkyl (heterocycloalkyl), C 1 -C 6 Alkyl (aryl) or C 1 -C 6 alkyl(heteroaryl); wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0669] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6Haloalkyl;

[0670] Each R 8 are independently hydrogen, CN, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0671] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Haloalkyl, C1 -C 6 Hydroxyalkyl, C 1 -C 6 Hydroxydeuterated alkyl, cycloalkyl or heterocycloalkyl;

[0672] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0673] or R 8 and R 9 and the atoms to which they are attached are taken together to form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0674] R 11 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more R 11a ;

[0675] Each R 11a are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 Ra ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0676] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0677] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0678] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0679] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0680] Also disclosed herein is a compound of formula (XII) or a pharmaceutically acceptable salt, solvate or stereoisomer thereof:

[0681]

[0682] in:

[0683] Ring B is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0684] R 16 -C(=O)NR 1 R 2 ,-C(=N-CN)NR 1 R 2 ,-P(=O)R 1 R 2 or -C(=O)R 11 ;

[0685] R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0686] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0687] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b 、-P(=O)R b R b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C2 -C 6 Alkynyl;

[0688] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0689] L is a bond or -C(=O)-;

[0690] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0691] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0692] or two R on the same carbon A Combined together to form an oxo group;

[0693] Each X is independently -CR x -or-N-;

[0694] Each R x are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0695] R 5 Halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10 ,-NR 8 S(=O)R 7 ,-NR 8 S(=O) 2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=N-CN)R 7 ,-C(=O)R 7 ,-OC(=N-CN)R 7 ,-OC(=O)R 7 ,-C(=N-CN)OR 8 ,-C(=O)OR 8 ,-OC(=N-CN)OR 8 ,-OC(=O)OR 8 ,-C(=N-CN)NR 9 R 10 ,-C(=O)NR 9 R 10 ,-OC(=N-CN)NR 9 R 10 ,-OC(=O)NR 9 R 10 ,-NR 8 C(=N-CN)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=N-CN)R 7 ,-NR 8C(=N-OH)R 7 ,-NR 8 C(=O)R 7 ,-NR 8 C(=N-CN)OR 8 ,-NR 8 C(=O)OR 8 ,-NR 8 S(=O)(=NR 8 )R 7 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C 1 -C 6 Alkyl (cycloalkyl), C 1 -C 6 Alkyl (heterocycloalkyl), C 1 -C 6Alkyl (aryl) or C 1 -C 6 alkyl(heteroaryl); wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0696] or R x and R 5 Combined together to form optionally one or more R D substituted ring D;

[0697] Ring D is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0698] Each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0699] or two R on the same carbon D Combined together to form an oxo group;

[0700] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C6 Haloalkyl;

[0701] Each R 8 are independently hydrogen, CN, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0702] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6Haloalkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Hydroxydeuterated alkyl, cycloalkyl or heterocycloalkyl;

[0703] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0704] or R 8 and R 9 and the atoms to which they are attached are taken together to form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0705] R 11 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more R 11a ;

[0706] Each R 11a are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O)2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0707] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0708] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0709] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0710] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0711] Also disclosed herein is a compound of formula (XII) or a pharmaceutically acceptable salt, solvate or stereoisomer thereof:

[0712]

[0713] in:

[0714] Ring B is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0715] R 16 -C(=O)NR 1 R 2 ,-C(=N-CN)NR 1 R 2 ,-P(=O)R 1 R 2 or -C(=O)R 11 ;

[0716] R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0717] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0718] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b 、-P(=O)R b R b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C2 -C 6 Alkynyl;

[0719] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0720] Each X is independently -CR x -or-N-;

[0721] Each R x are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0722] R 5 Halogen, -CN, -OR8 , -SR 8 , -S(=O)R 7 , -S(=O) 2 R 7 , -NO 2 , -NR 9 R 10 , -NR 8 S(=O)R 7 , -NR 8 S(=O) 2 R 7 , -S(=O) 2 NR 9 R 10 , -C(=N - CN)R 7 , -C(=O)R 7 , -OC(=N - CN)R 7 , -OC(=O)R 7 , -C(=N - CN)OR 8 , -C(=O)OR 8 , -OC(=N - CN)OR 8 , -OC(=O)OR 8 , -C(=N - CN)NR 9 R 10 , -C(=O)NR 9 R 10 , -OC(=N - CN)NR 9 R 10 , -OC(=O)NR 9 R 10 , -NR 8 C(=N - CN)NR 9 R 10 , -NR 8 C(=O)NR 9 R 10 , -NR 8 C(=N - CN)R 7 , -NR 8 , -C(=N - OH)R 7 , -NR 8 C(=O)R 7 , -NR 8 , -C(=N - CN)OR 8 , -NR 8 , -C(=O)OR 8 , -NR 8 , -S(=O)(=NR 8 )R 7 、C 1 - C 6 烷基、C 1-C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C 1 -C 6 Alkyl (cycloalkyl), C 1 -C 6 Alkyl (heterocycloalkyl), C 1 -C 6 Alkyl (aryl) or C 1 -C 6 alkyl(heteroaryl); wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0723] or R x and R 5 Combined together to form optionally one or more R D substituted ring D;

[0724] Ring D is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0725] Each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0726] or two R on the same carbon D Combined together to form an oxo group;

[0727] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0728] Each R 8 are independently hydrogen, CN, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0729] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Hydroxydeuterated alkyl, cycloalkyl or heterocycloalkyl;

[0730] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0731] or R 8 and R 9 and the atoms to which they are attached are taken together to form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0732] R 11 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more R 11a ;

[0733] Each R 11a are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)ORb ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0734] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0735] Each R b are independently hydrogen, C 1 -C6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0736] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0737] or R c and R dand the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0738] In some embodiments of compounds of formula (XII), ring B is aryl or heteroaryl. In some embodiments of compounds of formula (XII), ring B is aryl. In some embodiments of compounds of formula (XII), ring B is phenyl. In some embodiments of compounds of formula (XII), ring B is heteroaryl. In some embodiments of compounds of formula (XII), ring B is 5 or 6 membered heteroaryl. In some embodiments of compounds of formula (XII), ring B is 6 membered heteroaryl. In some embodiments of compounds of formula (XII), ring B is pyridinyl.

[0739] Also disclosed herein is a compound of formula (XII') or a pharmaceutically acceptable salt, solvate or stereoisomer thereof:

[0740]

[0741] in:

[0742] R 16 -C(=O)NR 1 R 2 ,-C(=N-CN)NR 1 R 2 ,-P(=O)R 1 R 2 or -C(=O)R 11 ;

[0743] R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0744] R3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0745] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b 、-P(=O)R b R b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0746] or R 3 and R 4are joined together to form an optionally substituted ring;

[0747] L is a bond or -C(=O)-;

[0748] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0749] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -ORb ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0750] or two R on the same carbon A Combined together to form an oxo group;

[0751] Each X is independently -CR x -or-N-;

[0752] Each R x are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C1 -C 6 aminoalkyl, C 2 -C 6 alkenyl or C 2 -C 6 alkynyl;

[0753] R 5 is halogen, -CN, -OR 8 , -SR 8 , -S(=O)R 7 , -S(=O) 2 R 7 , -NO 2 , -NR 9 R 10 , -NR 8 S(=O)R 7 , -NR 8 , -NR 2 R 7 , -S(=O) 2 , -S(=O) 9 NR 10 , -C(=N-CN)R 7 , -C(=O)R 7 , -OC(=N-CN)R 7 , -OC(=O)R 7 , -C(=N-CN)OR 8 , -C(=O)OR 8 , -OC(=N-CN)OR 8 , -OC(=O)OR 8 , -C(=N-CN)NR 9 R 10 , -C(=O)NR 9 R 10 , -OC(=N-CN)NR 9 R 10 , -OC(=O)NR 9 R 10 , -NR 8 , -NR 9 C(=N-CN)NR 10 , -NR 8 , -NR 9 C(=O)NR 10 , -NR 8 , -NR 7 , -NR 8 , -NR 7 , -NR 8 , -NR 7 , -NR 8 , -C(=N-CN)OR8 ,-NR 8 C(=O)OR 8 ,-NR 8 S(=O)(=NR 8 )R 7 ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C 1 -C 6 Alkyl (cycloalkyl), C 1 -C 6 Alkyl (heterocycloalkyl), C 1 -C 6 Alkyl (aryl) or C 1 -C 6alkyl(heteroaryl); wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0754] or R x and R 5 Combined together to form optionally one or more R D substituted ring D;

[0755] Ring D is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0756] Each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0757] or two R on the same carbon D Combined together to form an oxo group;

[0758] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0759] Each R 8 are independently hydrogen, CN, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0760] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Haloalkyl, C 1 -C6 Hydroxyalkyl, C 1 -C 6 Hydroxydeuterated alkyl, cycloalkyl or heterocycloalkyl;

[0761] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0762] or R 8 and R 9 and the atoms to which they are attached are taken together to form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0763] R 11 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more R 11a ;

[0764] Each R 11a are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0765] Each R a Independently for C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0766] Each R b are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0767] Each R c and R d are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0768] or R c and R d and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0769] In some embodiments of compounds of formula (XII) or (XII'), L is a bond. In some embodiments of compounds of formula (XII) or (XII'), L is -C(=O)-.

[0770] In some embodiments of compounds of Formula (XII) or (XII'), -L-Ring A is absent.

[0771] In some embodiments of compounds of Formula (XII) or (XII'), Ring A is heterocycloalkyl or heteroaryl; each optionally substituted with one or more R A In some embodiments of the compound of formula (XII) or (XII'), Ring A is a 5-membered heterocycloalkyl or a 5-membered heteroaryl; each optionally substituted by one or more R A In some embodiments of the compounds of formula (XII) or (XII'), ring A is optionally substituted with one or more R A Substituted heteroaryl.

[0772] In some embodiments of compounds of Formula (XII) or (XII'), each R A are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of formula (XII) or (XII'), each R A are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of formula (XII) or (XII'), each R A are independently halogen or C 1 -C 6 In some embodiments of compounds of formula (XII) or (XII'), each R A Independently for C 1 -C 6 alkyl.

[0773] In some embodiments of compounds of Formula (XII), the compound has Formula (XIIa):

[0774]

[0775] In some embodiments of compounds of Formula (XII), the compound has Formula (XIIb):

[0776]

[0777] In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 4 is hydrogen or -OR b In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 4 For-OR b In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 4 In some embodiments of the compound of formula (XII), R 4 -P(=O)R b R b In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 4 -S(=O) 2 R a .

[0778] In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), each X is -N-. In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), each X is -CR X In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), two X are -N- and the other is -CR X In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), one X is -N- and the other is -CR X -. In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), each X is -CH-. In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), two X are -N- and the others are -CH-. In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), one X is -N- and the others are -CH-. In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), for In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), for In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), for

[0779] In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), each R X are independently hydrogen, deuterium, halogen, -CN, -OR b ,-NR c R d 、-C(=O)R a ,-C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), each R X are independently hydrogen, deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), each R X are independently hydrogen, deuterium or halogen.

[0780] In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), for In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), for In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), for

[0781] In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 3 is hydrogen or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 3 For hydrogen.

[0782] In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 16 -C(=O)NR 1 R 2 or -C(=O)R 11 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 16 -C(=O)NR 1 R 2 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 16 -C(=N-CN)NR 1 R 2 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 16 -P(=O)R 1 R 2 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 16 -C(=O)R 11 .

[0783] In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 1 and R 2 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 1 and R 2 are independently hydrogen or C 1 -C 6In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 1 and R 2 Independently for C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 1 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 2 C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 2 C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 2 C 1 -C 6 alkyl.

[0784] In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 11 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 aminoalkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more R 11a In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 11 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6Hydroxyalkyl, C 1 -C 6 aminoalkyl, cycloalkyl or heterocycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more R 11a In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 11 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl or heterocycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with: one or more R 11a In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 11 C 1 -C 6 Alkyl, C 1 -C 6 wherein each alkyl group and cycloalkyl group is independently optionally substituted by one or more R 11a In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 11 C 1 -C 6 wherein each alkyl group and cycloalkyl group is independently optionally substituted by one or more R 11a In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 11 C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 11 C 1 -C 6 Alkyl, C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 11 C 1 -C 6In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 11 C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 11 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), R 11 C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl or cycloalkyl.

[0785] In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), each R 11a are independently deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), each R 11a are independently deuterium, halogen, -CN, -OR b ,-NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl or C 1 -C 6In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), each R 11a are independently deuterium, halogen, -CN, -OR b ,-NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), each R 11a are independently deuterium, halogen, -CN, -OR b ,-NR c R d or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), each R 11a are independently deuterium, halogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa), (XIIb) or (XIIc), each R 11a are independently deuterium, halogen or C 1 -C 6 alkyl.

[0786] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 Halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10 ,-NHS(=O) 2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=N-CN)R 7 ,-C(=O)R7 ,-OC(=N-CN)R 7 ,-OC(=O)R 7 ,-C(=N-CN)OR 8 ,-C(=O)OR 8 ,-OC(=N-CN)OR 8 ,-OC(=O)OR 8 ,-C(=N-CN)NR 9 R 10 ,-C(=O)NR 9 R 10 ,-OC(=N-CN)NR 9 R 10 ,-OC(=O)NR 9 R 10 ,-NR 8 C(=N-CN)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=N-CN)R 7 ,-NR 8 C(=N-OH)R 7 ,-NR 8 C(=N-CN)OR 8 ,-NR 8 C(=O)OR 8 ,-NR 8 S(=O)(=NR 8 )R 7 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C 1 -C 6 Alkyl (cycloalkyl), C 1 -C 6 Alkyl (heterocycloalkyl), C 1 -C 6 Alkyl (aryl) or C 1 -C 6 alkyl(heteroaryl); wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0787] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 Halogen, -CN, -OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10,-NR 8 C(=N-CN)R 7 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 ,-NR 8 S(=O)(=NR 8 )R 7 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 2 -C 6 Alkenyl, C 2 -C 6 alkynyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0788] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 Halogen, -CN, -OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=N-CN)R 7 ,-NR 8 C(=O)OR 8 ,-NR 8 S(=O)(=NR 8 )R 7 ,C 1 -C6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 2 -C 6 Alkenyl, C 2 -C 6 alkynyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0789] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 Halogen, -CN, -OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=N-CN)R 7 ,-NR 8 C(=O)OR 8 ,-NR 8 S(=O)(=NR 8 )R 7 , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 2 -C 6 Alkenyl, C 2 -C 6alkynyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0790] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=N-CN)R 7 ,-NR 8 C(=O)R 7 ,-NR 8 C(=O)OR 8 ,-NR 8 S(=O)(=NR 8 )R 7 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0791] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-OR 8 ,-NR 9 R 10 ,-C(=O)R 7 ,-C(=O)OR 8 ,-C(=O)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR 8 C(=N-CN)R 7 ,-NR 8 C(=O)OR 8 ,-NR 8 S(=O)(=NR 8 )R 7 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 、-NR 8 C(=N-CN)R 7 ,-NR 8 S(=O)(=NR 8 )R 7 , or aryl, optionally substituted with one or more deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c Rd , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0792] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-OR 8 ,-NR 9 R 10 、-NR 8 C(=N-CN)R 7 ,-NR 8 S(=O)(=NR 8 )R 7 or aryl, optionally substituted with one or more deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0793] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-OR 8 ,-NR 9 R 10 ,-NR 8 C(=O)R 7 , cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5is aryl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0794] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 or -NR 8 C(=N-CN)R 7 .

[0795] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-NR 9 R 10 .

[0796] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-NR 9 R 10 or -NR 8 C(=O)NR 9 R 10 .

[0797] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-NR 8 C(=N-CN)R 7 .

[0798] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-NR 8 S(=O)(=NR 8 )R 7 .

[0799] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-NR 8 C(=O)NR 9 R 10 or -NR 8 C(=O)R 7 .

[0800] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-NR 8 C(=O)NR 9 R 10 .

[0801] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-NR 8 C(=O)R 7 .

[0802] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 Not for-NR 8 C(=O)R 7 .

[0803] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 For-NR 8 C(=O)NR 9 R 10 or heterocycloalkyl, optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C2 -C 6 Alkenyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C 1 -C 6 Alkyl (cycloalkyl), C 1 -C 6 Alkyl (heterocycloalkyl), C 1 -C 6 Alkyl (aryl) or C 1 -C 6 alkyl(heteroaryl); wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0804] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 is heterocycloalkyl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C1 -C 6 Alkyl (cycloalkyl), C 1 -C 6 Alkyl (heterocycloalkyl), C 1 -C 6 Alkyl (aryl), C 1 -C 6 alkyl(heteroaryl); wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0805] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 is heterocycloalkyl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C 1 -C 6 Alkyl (cycloalkyl) or C 1 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR cR d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0806] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 is heterocycloalkyl optionally substituted with one or more oxo, halogen, -OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, C 1 -C 6 Alkyl (cycloalkyl) or C 1 -C 6 wherein each alkyl, alkynyl, cycloalkyl, heterocycloalkyl, and aryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0807] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 The heterocycloalkyl group is

[0808] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 5 The heterocycloalkyl group is

[0809] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 7 C 1 -C 6 alkyl, cycloalkyl or heterocycloalkyl; wherein each alkyl, cycloalkyl or heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl and cycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 7 C 1 -C 6 wherein each alkyl and cycloalkyl group is independently optionally substituted with one or more oxo groups, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 7 is cycloalkyl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 7 In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 7 is heterocycloalkyl optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 7 is an unsubstituted heterocycloalkyl.

[0810] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 8 For hydrogen, CN, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 8 For hydrogen, CN, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0811] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl, cycloalkyl, heterocycloalkyl, aryl or heteroaryl; wherein each alkyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 deuterated alkyl or cycloalkyl; wherein each alkyl, cycloalkyl and heterocycloalkyl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Hydroxyalkyl.

[0812] In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 9 and R 10 Together with the nitrogen atom to which it is attached, it forms a C 2 -C 8 Heterocycloalkyl: one or more oxo groups, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 9 and R10 and the nitrogen atom to which it is attached form a bicyclic heterocycloalkyl or spiroheterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 In some embodiments of compounds of Formula (XII), (XII'), (XIIa) or (XIIb), R 9 and R 10 The nitrogen atom to which it is attached is taken together to form a heterocycloalkyl group selected from aziridinyl, azetidinyl, pyrrolidinyl, piperidinyl, 2-azabicyclo[1.1.1]pentyl or 2-azaspiro[3.3]heptyl, each of which is optionally substituted with one or more oxo groups, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl substitution.

[0813] In some embodiments of compounds of Formula (XII), the compound has Formula (XIIc):

[0814]

[0815] Where R 5a Deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkenyl, C 2 -C6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C 1 -C 6 Alkyl (cycloalkyl), C 1 -C 6 Alkyl (heterocycloalkyl), C 1 -C 6 Alkyl (aryl) or C 1 -C 6 alkyl(heteroaryl); wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0816] In some embodiments of the compound of Formula (XIIc), R 5a Deuterium, halogen, -CN, -OR b ,-NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C 1 -C 6 Alkyl (cycloalkyl), C 1 -C 6 Alkyl (heterocycloalkyl), C 1 -C 6 Alkyl (aryl) or C 1 -C 6alkyl(heteroaryl); wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0817] In some embodiments of the compound of Formula (XIIc), R 5a Halogen, -OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, C 1 -C 6 Alkyl (cycloalkyl) or C 1 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, and aryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl.

[0818] Also disclosed herein is a compound of formula (XIII) or a pharmaceutically acceptable salt, solvate or stereoisomer thereof:

[0819]

[0820] in:

[0821] Ring B is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0822] R 3 For hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl or C 1 -C 6 Deuterated alkyl;

[0823] R 4 For hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b 、-P(=O)R b R b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C6 Alkenyl or C 2 -C 6 Alkynyl;

[0824] or R 3 and R 4 are joined together to form an optionally substituted ring;

[0825] L is a bond or -C(=O)-;

[0826] Ring A is cycloalkyl, heterocycloalkyl, aryl or heteroaryl; each optionally substituted by one or more R A replace;

[0827] Each R A are independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2-C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0828] or two R on the same carbon A Combined together to form an oxo group;

[0829] or -L-Ring A is absent;

[0830] Each X is independently -CR x -or-N-;

[0831] Each R x are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0832] R 5 Halogen, -CN, -OR 8 ,-SR 8 ,-S(=O)R 7 ,-S(=O) 2 R 7 ,-NO 2 ,-NR 9 R 10 ,-NR 8 S(=O)R 7 ,-NR 8 S(=O) 2 R 7 ,-S(=O) 2 NR 9 R 10 ,-C(=N-CN)R 7 ,-C(=O)R 7 ,-OC(=N-CN)R 7 ,-OC(=O)R 7 ,-C(=N-CN)OR 8 ,-C(=O)OR 8 ,-OC(=N-CN)OR 8 ,-OC(=O)OR 8 ,-C(=N-CN)NR 9 R 10 ,-C(=O)NR 9 R 10 ,-OC(=N-CN)NR 9 R 10 ,-OC(=O)NR 9 R 10 ,-NR 8 C(=N-CN)NR 9 R 10 ,-NR 8 C(=O)NR 9 R 10 ,-NR8 C(=N-CN)R 7 ,-NR 8 C(=N-OH)R 7 ,-NR 8 C(=O)R 7 ,-NR 8 C(=N-CN)OR 8 ,-NR 8 C(=O)OR 8 ,-NR 8 S(=O)(=NR 8 )R 7 ,C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 1 -C 6 Heteroalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 Alkynyl, cycloalkyl, heterocycloalkyl, aryl, heteroaryl, C 1 -C 6 Alkyl (cycloalkyl), C 1-C 6 Alkyl (heterocycloalkyl), C 1 -C 6 Alkyl (aryl) or C 1 -C 6 alkyl(heteroaryl); wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0833] or R x and R 5 Combined together to form optionally one or more R D substituted ring D;

[0834] Ring D is cycloalkyl, heterocycloalkyl, aryl or heteroaryl;

[0835] Each R D are independently hydrogen, deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)Ra ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OR b ,-NR c R d ,-C(=O)R a ,-C(=O)OR b ,-C(=O)NR c R d , C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0836] or two R on the same carbon D Combined together to form an oxo group;

[0837] R 7 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0838] Each R 8 are independently hydrogen, CN, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0839] R 9 and R 10 are independently hydrogen, C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1-C 6 Alkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Hydroxydeuterated alkyl, cycloalkyl or heterocycloalkyl;

[0840] or R 9 and R 10 and the nitrogen atom to which it is attached form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0841] or R 8 and R 9 and the atoms to which they are attached are taken together to form a heterocycloalkyl group optionally substituted with one or more oxo, deuterium, halogen, -CN, -OH, -OMe, -NH 2 ,-C(=O)Me,-C(=O)OH,-C(=O)OMe,C 1 -C 6 Alkyl or C 1 -C 6 Haloalkyl;

[0842] R 11 C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl, C 2 -C 6 wherein each alkyl, alkenyl, alkynyl, cycloalkyl, heterocycloalkyl, aryl, and heteroaryl is independently optionally substituted with one or more R 11a ;

[0843] Each R 11aare independently deuterium, halogen, -CN, -OR b ,-SR b ,-S(=O)R a ,-S(=O) 2 R a ,-NO 2 ,-NR c R d ,-NHS(=O) 2 R a ,-S(=O) 2 NR c R d ,-C(=O)R a ,-OC(=O)R a ,-C(=O)OR b ,-OC(=O)OR b ,-C(=O)NR c R d ,-OC(=O)NR c R d ,-NR b C(=O)NR c R d ,-NR b C(=O)R a ,-NR b C(=O)OR b , C 1 -C 6 Alkyl, C 1 -C 6 Haloalkyl, C 1 -C 6 Deuterated alkyl, C 1 -C 6 Hydroxyalkyl, C 1 -C 6 Aminoalkyl, C 2 -C 6 Alkenyl or C 2 -C 6 Alkynyl;

[0844] Each R a Ind...

Claims

1. A compound of formula (XII) or a pharmaceutically acceptable salt or stereoisomer thereof: in: yes Ring B is selected from phenyl and pyridyl; R 16 -C(=O)R 11 ; R 3 is selected from hydrogen, C1-C6 alkyl and C1-C6 deuterated alkyl; R 4 is hydrogen or -OR b ; L is a key; Ring A is triazole, wherein Ring A is optionally substituted by one or more R A replace; Each R A Independently selected from deuterium, halogen, C1-C6 alkyl, C1-C6 haloalkyl and C1-C6 deuterated alkyl; R 5 Selected from -NR 9 R 10 、-NR 8 C(=O)NR 9 R 10 、-NR 8 C(=O)R 7 , C1-C6 aminoalkyl and 5-6 membered heterocycloalkyl containing 1 or 2 heteroatoms selected from nitrogen and oxygen; wherein each alkyl and heterocycloalkyl is optionally substituted with one or more substituents, each of which is independently selected from oxo, deuterium, halogen, -NR c R d , C1-C6 alkyl, C1-C6 haloalkyl, C1-C6 deuterated alkyl, C2-C6 alkenyl, C3-C5 cycloalkyl and 5-6 membered heterocycloalkyl; wherein each alkyl, alkenyl, cycloalkyl and heterocycloalkyl is optionally substituted with one or more substituents, each of which is independently selected from halogen, -CN, -OR b 、-NR c R d , C1-C6 alkyl and C1-C6 haloalkyl; R 7 is selected from C1-C6 alkyl, C2-C6 alkenyl and C3 cycloalkyl; wherein each alkyl, alkenyl and cycloalkyl is optionally substituted with one or more substituents, each of which is independently selected from deuterium, halogen, C1-C6 alkyl and C1-C6 haloalkyl; Each R 8 is hydrogen; R 9 and R 10 independently selected from hydrogen, C1-C6 alkyl and 5-6 membered heteroaryl containing one nitrogen atom; wherein each alkyl and heteroaryl is optionally substituted with one or more substituents, each of which is independently selected from halogen, -CN, C1-C6 alkyl, C1-C6 haloalkyl, C1-C6 hydroxydeuterated alkyl, C3 cycloalkyl and 5-6 membered heterocycloalkyl; or R 9 and R 10 Together with the nitrogen atom to which it is attached, it forms a 5-6 membered heterocycloalkyl group containing one nitrogen atom, which is optionally substituted with one or more substituents, each of which is independently selected from deuterium, halogen, -CN, -OH, -OMe, C1-C6 alkyl and C1-C6 haloalkyl; R 11 is selected from C1-C6 alkyl, C1-C6 haloalkyl, C1-C6 deuterated alkyl and C3 cycloalkyl; wherein each alkyl and cycloalkyl is optionally substituted by one or more R 11a replace; Each R 11a Each occurrence is independently selected from deuterium and halogen; Each R b independently selected from hydrogen, C1-C6 alkyl and C1-C6 deuterated alkyl; and Each R c and R d Independently selected from hydrogen, C1-C6 alkyl and C1-C6 deuterated alkyl.

2. The compound according to claim 1 or a pharmaceutically acceptable salt or stereoisomer thereof, wherein each R A are independently C1-C6 alkyl or C1-C6 deuterated alkyl.

3. The compound according to claim 1 or a pharmaceutically acceptable salt or stereoisomer thereof, wherein the compound has formula (XIIa): in yes 4. The compound according to any one of claims 1 to 3, or a pharmaceutically acceptable salt or stereoisomer thereof, wherein R 3 For hydrogen.

5. The compound according to any one of claims 1 to 3, or a pharmaceutically acceptable salt or stereoisomer thereof, wherein R 11 Selected from C1-C6 alkyl and C1-C6 deuterated alkyl.

6. The compound according to any one of claims 1 to 3 or a pharmaceutically acceptable salt or stereoisomer thereof, wherein: R 5 For-NR 8 C(=O)NR 9 R 10 , where R 8 is H, and R 9 and R 10 Independently selected from hydrogen, C1-C6 alkyl and 5-6 membered heteroaryl containing one nitrogen atom; wherein each alkyl and heteroaryl is optionally substituted with one or more substituents, each of which is independently selected from halogen, -CN, C1-C6 alkyl, C1-C6 haloalkyl, C1-C6 hydroxydeuterated alkyl, C3 cycloalkyl and 5-6 membered heterocycloalkyl.

7. The compound according to any one of claims 1 to 3, or a pharmaceutically acceptable salt or stereoisomer thereof, wherein: R 5 is a 5-6 membered heterocycloalkyl group containing 1 or 2 heteroatoms selected from nitrogen and oxygen, wherein the heterocycloalkyl group is optionally substituted by one or more substituents, each of which is independently selected from oxo, deuterium, halogen, -NR c R d , C1-C6 alkyl, C1-C6 haloalkyl, C1-C6 deuterated alkyl, C2-C6 alkenyl, C3-C5 cycloalkyl and 5-6 membered heterocycloalkyl; wherein each alkyl, alkenyl, cycloalkyl and heterocycloalkyl is optionally substituted with one or more substituents, each of which is independently selected from halogen, -CN, -OR b 、-NR c R d , C1-C6 alkyl and C1-C6 haloalkyl.

8. The compound according to any one of claims 1 to 3, or a pharmaceutically acceptable salt or stereoisomer thereof, wherein R 5 For-NR 8 C(=O)NR 9 R 10 .

9. The compound according to claim 8 or a pharmaceutically acceptable salt or stereoisomer thereof, wherein: R 9 and R 10 Together with the nitrogen atom to which it is attached, it forms a 5-6 membered heterocycloalkyl group containing one nitrogen atom, wherein the heterocycloalkyl group is optionally substituted by one or more substituents, each of which is independently selected from deuterium, halogen, -CN, -OH, -OMe, C1-C6 alkyl and C1-C6 haloalkyl.

10. The compound according to any one of claims 1 to 3, or a pharmaceutically acceptable salt or stereoisomer thereof, wherein R 5 For-NR 8 C(=O)R 7 .

11. The compound according to claim 10 or a pharmaceutically acceptable salt or stereoisomer thereof, wherein: R 7 is a C3 cycloalkyl group optionally substituted by one or more substituents, each of which is independently selected from deuterium, halogen, C1-C6 alkyl and C1-C6 haloalkyl.

12. A compound or a pharmaceutically acceptable salt or stereoisomer thereof selected from the group consisting of:

13. A compound or a pharmaceutically acceptable salt or stereoisomer thereof selected from the group consisting of:

14. A pharmaceutical composition comprising a therapeutically effective amount of a compound according to any one of claims 1 to 13 or a pharmaceutically acceptable salt or stereoisomer thereof, and a pharmaceutically acceptable excipient.

15. Use of a compound according to any one of claims 1 to 13 or a pharmaceutically acceptable salt or stereoisomer thereof in the preparation of a medicament for inhibiting the TYK2 enzyme in a patient or a biological sample.

16. Use of a compound according to any one of claims 1 to 13 or a pharmaceutically acceptable salt or stereoisomer thereof in the preparation of a medicament for treating a TYK2-mediated disorder.

17. The use according to claim 16, wherein the TYK2-mediated disorder is an autoimmune disorder, an inflammatory disorder, a proliferative disorder, an endocrine disorder, a neurological disorder or a transplantation-related disorder.

18. The use according to claim 16, wherein the condition is selected from Crohn's disease, rheumatoid arthritis, psoriasis, systemic lupus erythematosus, ulcerative colitis, psoriatic arthritis and multiple sclerosis.

19. The use according to claim 18, wherein the disease is rheumatoid arthritis.

20. The use according to claim 18, wherein the disease is psoriasis.

21. The use according to claim 18, wherein the disease is systemic lupus erythematosus.

22. The use according to claim 18, wherein the disease is ulcerative colitis.

23. The use according to claim 18, wherein the disease condition is psoriatic arthritis.

Citation Information

Patent Citations

  • Amide-substituted heterocyclic compounds useful as modulators of IL-12, IL-23 and / or IFN alpha responses

    CN104884454A

  • 4,6-diaminonicotinamide compound

    WO2010058846A1

  • Benzamides and nicotinamides as SYK modulators

    WO2012061418A2

  • Nicotinamides as JAK kinase modulators

    WO2012061428A2

  • Pyridazine amide compounds and their use as SYK inhibitors

    WO2013104573A1