Net Loss per Share - Schedule of Potentially Dilutive Shares Excluded from Calculation of Diluted Net Loss per Share (Details) - shares shares in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
Dec. 31, 2020 |
|
| Stock options | |||
| Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items] | |||
| Anti-dilutive securities excluded from calculation of diluted net loss per share (in shares) | 3,159 | 4,304 | 5,624 |
| Unvested RSUs and RSAs | |||
| Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items] | |||
| Anti-dilutive securities excluded from calculation of diluted net loss per share (in shares) | 132,392 | 86,180 | 131,172 |
| Convertible Notes (if-converted) | |||
| Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items] | |||
| Anti-dilutive securities excluded from calculation of diluted net loss per share (in shares) | 89,379 | 62,755 | 101,591 |