v3.24.2.u1
Earnings Per Share - Schedule of Potentially Dilutive Securities Excluded from the Computation of Diluted Net Loss Per Share (Details) - shares
shares in Thousands
6 Months Ended
Jun. 30, 2024
Jun. 30, 2023
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potentially dilutive securities excluded from the computation of diluted net loss per share (in shares) 46,916 45,915
Shares related to Convertible Notes    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potentially dilutive securities excluded from the computation of diluted net loss per share (in shares) 19,538 19,538
Stock options to purchase common stock    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potentially dilutive securities excluded from the computation of diluted net loss per share (in shares) 11,639 12,675
Restricted stock units    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potentially dilutive securities excluded from the computation of diluted net loss per share (in shares) 15,557 13,566
ESPP    
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]    
Potentially dilutive securities excluded from the computation of diluted net loss per share (in shares) 182 136