v3.22.0.1
Long-Term Debt - Additional Information (Details)
1 Months Ended 12 Months Ended
Jan. 01, 2021
USD ($)
Apr. 30, 2021
USD ($)
d
$ / shares
shares
Apr. 30, 2020
USD ($)
$ / shares
shares
Aug. 31, 2019
USD ($)
$ / shares
shares
Dec. 31, 2021
USD ($)
shares
Dec. 31, 2020
USD ($)
$ / shares
Dec. 31, 2019
USD ($)
Jan. 01, 2022
USD ($)
Debt Instrument [Line Items]                
Proceeds from issuance of convertible notes, net of issuance costs         $ 1,137,227,000 $ 988,582,000 $ 1,251,411,000  
Accumulated deficit         (8,284,466,000) (7,891,542,000)    
Convertible senior notes, net         2,253,087,000 1,675,169,000    
Amortization of debt discount and issuance costs         4,311,000 81,401,000 17,797,000  
Induced conversion expense related to convertible notes         41,538,000      
Senior Unsecured Revolving Credit Facility                
Debt Instrument [Line Items]                
Maximum borrowing capacity         $ 1,050,000,000.00      
Annual commitment fee         0.10%      
Credit facility expiration date         2023-08      
Amounts outstanding under the credit facility         $ 0      
Standby Letters of Credit                
Debt Instrument [Line Items]                
Outstanding letters of credit         $ 23,900,000      
LIBO | Senior Unsecured Revolving Credit Facility                
Debt Instrument [Line Items]                
Basis spread on variable interest rate (percentage)         0.75%      
Exchange Agreements                
Debt Instrument [Line Items]                
Induced conversion expense related to convertible notes         $ 41,500,000      
Shares issued under original terms of general conversion with net carrying amount         $ 1,132,600,000      
Cumulative Effect, Period of Adoption, Adjustment                
Debt Instrument [Line Items]                
Accumulated deficit               $ 95,000.0
Equity component of convertible senior notes, net $ 664,000.0              
Convertible senior notes, net               $ 569,000.0
Accounting Standards Update 2020-06                
Debt Instrument [Line Items]                
Change in accounting principle, accounting standards update, adoption date         Jan. 01, 2021      
Change in accounting principle, accounting standards update, early adoption [true false]         true      
Change in accounting principle, accounting standards update, transition option elected         us-gaap:AccountingStandardsUpdate202006RetrospectiveMember      
Class A Common Stock | Exchange Agreements                
Debt Instrument [Line Items]                
Shares issued upon conversion of each $1000 principal amount | shares         52,400,000      
Additional shares issued upon conversion | shares         700,000      
Fair value of induced conversion exchange shares | shares         700,000      
2027 Notes                
Debt Instrument [Line Items]                
Debt instrument, principal amount   $ 1,150,000,000     $ 1,150,000,000      
Indenture date   Apr. 30, 2021            
Proceeds from issuance of convertible notes, net of issuance costs   $ 1,050,000.00            
Debt instrument, maturity date   May 01, 2027            
Debt instrument, redemption price percentage   100.00%            
Debt instrument convertible, amortization period         5 years 3 months 18 days      
Cap price, net cost           $ 86,800    
2027 Notes | Class A Common Stock                
Debt Instrument [Line Items]                
Shares issued upon conversion of each $1000 principal amount | shares   11.2042            
Debt instrument, convertible principal amount used in conversion rate   $ 1,000            
Conversion price per share | $ / shares   $ 89.25            
Debt instrument convertible, percentage of conversion price   130.00%            
Debt instrument convertible, number of trading days | d   20            
Debt instrument, redemption price percentage   100.00%            
Cap price, per share | $ / shares           $ 121.02    
2027 Notes | Class A Common Stock | Scenario One                
Debt Instrument [Line Items]                
Debt instrument convertible, percentage of conversion price   130.00%            
Debt instrument convertible, number of trading days | d   20            
Debt instrument convertible, number of consecutive trading days | d   30            
2027 Notes | Class A Common Stock | Scenario Two                
Debt Instrument [Line Items]                
Debt instrument, convertible principal amount used in conversion rate   $ 1,000            
Debt instrument convertible, number of consecutive trading days | d   10            
Debt instrument, convertible, threshold business days   5 years            
2027 Notes | Class A Common Stock | Scenario Two | Maximum                
Debt Instrument [Line Items]                
Debt instrument convertible, percentage of conversion price   98.00%            
2025 Notes                
Debt Instrument [Line Items]                
Debt instrument, principal amount     $ 1,000,000,000.0   $ 284,105,000 $ 1,000,000,000    
Debt instrument, maturity date     May 01, 2025          
Debt issuance costs     $ 888,600,000          
Interest payment beginning date     Nov. 01, 2020          
Debt instrument, interest rate     0.25%          
Debt instrument, interest rate terms         Interest is payable in cash semi-annually in arrears beginning on November 1, 2020 at a rate of 0.25% per year.      
Debt instrument convertible, amortization period         3 years 3 months 18 days      
If-converted value exceeding principal amount         $ 332,200,000      
Cap price, net cost           $ 100,000,000.0    
2025 Notes | Exchange Agreements                
Debt Instrument [Line Items]                
Debt conversion, principal amount         715,900,000      
2025 Notes | Class A Common Stock                
Debt Instrument [Line Items]                
Shares issued upon conversion of each $1000 principal amount | shares     46.1233          
Debt instrument, convertible principal amount used in conversion rate     $ 1,000          
Conversion price per share | $ / shares     $ 21.68          
Cap price, per share | $ / shares           $ 32.12    
2026 Notes                
Debt Instrument [Line Items]                
Debt instrument, principal amount       $ 1,265,000,000 $ 838,493,000 $ 1,265,000,000    
Proceeds from issuance of convertible notes, net of issuance costs       $ 1,150,000,000        
Debt instrument, maturity date       Aug. 01, 2026        
Interest payment beginning date       Feb. 01, 2020        
Debt instrument, interest rate       0.75%        
Debt instrument, interest rate terms         Interest is payable in cash semi-annually in arrears beginning on February 1, 2020 at a rate of 0.75% per year.      
Debt instrument convertible, amortization period         4 years 7 months 6 days      
Amortization of debt issuance costs         $ 4,300,000      
Amortization of debt discount and issuance costs           81,400,000 17,800,000  
Contractual interest expense         8,900,000 11,200,000 $ 3,700,000  
If-converted value exceeding principal amount         890,600,000      
Cap price, net cost           $ 102,100,000    
2026 Notes | Exchange Agreements                
Debt Instrument [Line Items]                
Debt conversion, principal amount         $ 426,500,000      
2026 Notes | Class A Common Stock                
Debt Instrument [Line Items]                
Shares issued upon conversion of each $1000 principal amount | shares       43.8481        
Debt instrument, convertible principal amount used in conversion rate       $ 1,000        
Conversion price per share | $ / shares       $ 22.81        
Cap price, per share | $ / shares           $ 32.58    
Initial Placement | 2027 Notes                
Debt Instrument [Line Items]                
Debt instrument, principal amount   $ 1,000,000,000.0            
Over-Allotment Option | 2027 Notes                
Debt Instrument [Line Items]                
Debt instrument, principal amount   $ 150,000,000.0