Long-Term Debt - Summary of Convertible Notes (Details) - USD ($) $ in Thousands |
Sep. 30, 2022 |
Feb. 28, 2022 |
Dec. 31, 2021 |
Apr. 30, 2021 |
Apr. 30, 2020 |
Aug. 31, 2019 |
|---|---|---|---|---|---|---|
| 2025 Notes | ||||||
| Debt Instrument [Line Items] | ||||||
| Principal | $ 284,105 | $ 284,105 | $ 1,000,000 | |||
| Unamortized debt issuance costs | (1,683) | (2,168) | ||||
| Net carrying amount | 282,422 | 281,937 | ||||
| 2026 Notes | ||||||
| Debt Instrument [Line Items] | ||||||
| Principal | 838,482 | 838,493 | $ 1,265,000 | |||
| Unamortized debt issuance costs | (5,020) | (5,982) | ||||
| Net carrying amount | 833,462 | 832,511 | ||||
| 2027 Notes | ||||||
| Debt Instrument [Line Items] | ||||||
| Principal | 1,150,000 | 1,150,000 | $ 1,150,000 | |||
| Unamortized debt issuance costs | (9,770) | (11,361) | ||||
| Net carrying amount | 1,140,230 | $ 1,138,639 | ||||
| 2028 Notes | ||||||
| Debt Instrument [Line Items] | ||||||
| Principal | 1,500,000 | $ 1,500,000 | ||||
| Unamortized debt issuance costs | (15,310) | |||||
| Net carrying amount | $ 1,484,690 |