v3.24.0.1
Income Taxes - Summary of Loss and Components Before Provision (Benefit) for Income Taxes (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Loss before provision for (benefit from) income taxes:      
United States $ (753,105) $ (1,329,931) $ (1,391,154)
Foreign (38,148) (113,027) (126,490)
Loss before income tax (benefit) provision (791,253) (1,442,958) (1,517,644)
Current:      
Federal 0 0 90
State 433 456 514
Foreign 3,888 5,085 23,174
Total current provision 4,321 5,541 23,778
Deferred:      
Federal 205 (52,411) (5,523)
State 2,643 (17,624) (2,075)
Foreign 3,001 (3,372) (7,911)
Total deferred provision 5,849 (73,407) (15,509)
Total income tax provision (benefit) $ 10,170 $ (67,866) $ 8,269