v3.22.2.2
Net Income (Loss) per Share - Schedule of securities with antidilutive effect (Details) - shares
shares in Thousands
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]        
Antidilutive securities (in shares) 11,468 5,510 9,494 77,426
2026 Notes        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities (in shares) 0 0 0 11,086
Warrants        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities (in shares) 0 0 0 7,935
Escrow shares        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities (in shares) 74 74 74 74
Stock options        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities (in shares) 1,128 550 1,128 27,773
RSUs        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities (in shares) 10,266 4,777 8,292 29,816
Restricted stock awards        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities (in shares) 0 0 0 148
ESPP        
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]        
Antidilutive securities (in shares) 0 109 0 594