Restructuring Plan - Additional Information (Details) - USD ($) |
3 Months Ended | 6 Months Ended | |||
|---|---|---|---|---|---|
Jan. 25, 2023 |
Jun. 30, 2024 |
Jun. 30, 2023 |
Jun. 30, 2024 |
Jun. 30, 2023 |
|
| Restructuring Costs [Line Items] | |||||
| Employee reduction percentage | 7.00% | ||||
| Liabilities accrued | $ 0 | $ 0 | |||
| Restructuring charges | $ 1,077,000 | $ 63,880,000 | 1,859,000 | $ 92,450,000 | |
| Reduction in right-of use assets | 7,300,000 | ||||
| Increase in operating lease liabilities | $ 500,000 | ||||
| Severance, Employee Related Benefits And Other Costs [Member] | |||||
| Restructuring Costs [Line Items] | |||||
| Restructuring charges | 26,900,000 | ||||
| Stock-Based Compensation Expense [Member] | |||||
| Restructuring Costs [Line Items] | |||||
| Restructuring charges | 1,000,000 | ||||
| Facilities [Member] | |||||
| Restructuring Costs [Line Items] | |||||
| Restructuring charges | 65,600,000 | ||||
| Global Office Spaces Leases [Member] | |||||
| Restructuring Costs [Line Items] | |||||
| Restructuring charges | $ 63,800,000 | ||||
| Reduction in right-of use assets | 44,600,000 | ||||
| Increase in operating lease liabilities | $ 6,300,000 | ||||