Income Taxes - Summary of Loss Before Provision for (benefit from) Income Taxes (Detail) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
Dec. 31, 2020 |
|
| Schedule of Income (Loss) before Income Tax, Domestic and Foreign [Line Items] | |||
| Loss before provision for (benefit from) income taxes | $ (361,027) | $ (488,494) | $ (1,179,027) |
| United States | |||
| Schedule of Income (Loss) before Income Tax, Domestic and Foreign [Line Items] | |||
| Loss before provision for (benefit from) income taxes | (402,834) | (514,200) | (1,203,682) |
| Foreign | |||
| Schedule of Income (Loss) before Income Tax, Domestic and Foreign [Line Items] | |||
| Loss before provision for (benefit from) income taxes | $ 41,807 | $ 25,706 | $ 24,655 |