Income Taxes - Summary of Loss Before Provision for (benefit from) Income Taxes (Detail) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2023 |
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Schedule of Income (Loss) before Income Tax, Domestic and Foreign [Line Items] | |||
| Income (loss) before provision for income taxes | $ 237,091 | $ (361,027) | $ (488,494) |
| United States | |||
| Schedule of Income (Loss) before Income Tax, Domestic and Foreign [Line Items] | |||
| Income (loss) before provision for income taxes | 174,637 | (402,834) | (514,200) |
| Foreign | |||
| Schedule of Income (Loss) before Income Tax, Domestic and Foreign [Line Items] | |||
| Income (loss) before provision for income taxes | $ 62,454 | $ 41,807 | $ 25,706 |