Segment and Geographic Information - Summary of Reconciliation of Segment Financial Information to Loss from Operations (Detail) - USD ($) $ in Thousands |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2022 |
Jun. 30, 2021 |
Jun. 30, 2022 |
Jun. 30, 2021 |
|
| Segment Reporting Information [Line Items] | ||||
| Loss from operations | $ (41,745) | $ (146,148) | $ (81,184) | $ (260,162) |
| Total stock-based compensation expense | 145,769 | 232,742 | 295,092 | 426,473 |
| Reconciling items | ||||
| Segment Reporting Information [Line Items] | ||||
| Loss from operations | (41,745) | (146,148) | (81,184) | (260,162) |
| Research and development expenses | 63,193 | 59,894 | 124,889 | 120,491 |
| General and administrative expenses | 95,310 | 71,886 | 176,148 | 135,861 |
| Total stock-based compensation expense | 145,769 | 232,742 | 295,092 | 426,473 |
| Operating Segments | ||||
| Segment Reporting Information [Line Items] | ||||
| Total contribution | $ 262,527 | $ 218,374 | $ 514,945 | $ 422,663 |