v3.22.2.2
NET LOSS PER SHARE - POTENTIAL COMMON SHARES EXCLUDED FROM THE CALCULATION OF DILUTED NET INCOME (LOSS) PER SHARE (Details) - shares
3 Months Ended 9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Anti-dilutive securities (in shares) 161,518,164 142,376,772 161,518,164 142,376,772
RSUs        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Anti-dilutive securities (in shares) 130,510,263 112,492,359 130,510,263 112,492,359
Stock options        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Anti-dilutive securities (in shares) 15,905,575 15,447,206 15,905,575 15,447,206
Early-exercised stock options        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Anti-dilutive securities (in shares) 0 65,435 0 65,435
Warrants        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Anti-dilutive securities (in shares) 14,278,034 14,278,034 14,278,034 14,278,034
ESPP shares        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Anti-dilutive securities (in shares) 824,292 93,738 824,292 93,738