v3.24.0.1

Net Income (Loss) Per Share (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2023
Earnings Per Share [Abstract] |
Summary of Calculation of Basic and Diluted Net Loss Per Share | The following table presents the calculation of basic and diluted net income (loss) per share as follows (in thousands, except per share data):
| Years Ended December 31,
| 2023 |  | 2022 |  | 2021
Numerator: |  |  |  |  |
Net income (loss) | $ | (709,561) |  |  | $ | (498,005) |  |  | $ | 242,385 |
Denominator: |  |  |  |  |
Basic net income (loss) per share: |  |  |  |  |
Weighted-average common shares outstanding — basic | 141,572 |  | 137,668 |  | 132,710
Net income (loss) per share — basic | $ | (5.01) |  |  | $ | (3.62) |  |  | $ | 1.83 |
Diluted net income (loss) per share: |  |  |  |  |
Weighted-average common shares outstanding — basic | 141,572 |  | 137,668 |  | 132,710
Effect of potentially dilutive securities: |  |  |  |  |
Restricted stock units | — |  |  | — |  |  | 2,744 |
Stock options | — |  |  | — |  |  | 6,214 |
Weighted-average common shares outstanding — diluted | 141,572 |  | 137,668 |  | 141,668
Net income (loss) per share — diluted | $ | (5.01) |  |  | $ | (3.62) |  |  | $ | 1.71 |

X
- References No definition available. + Details
Name: | us-gaap_EarningsPerShareAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 260 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482662/260-10-50-1 + Details
Name: | us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration