XML 48 R34.htm IDEA: XBRL DOCUMENT v3.21.2
Description of Business and Summary of Significant Accounting Policies - Additional Information (Details) - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2021
Jan. 01, 2021
Dec. 31, 2020
Description Of Business And Summary Of Significant Accounting Policies [Line Items]      
Accumulated deficit $ (8,307,016)   $ (7,891,542)
Additional paid-in capital 11,737,338   10,200,141
Convertible senior notes, net $ 2,252,079   $ 1,675,169
Cumulative Effect, Period of Adoption, Adjustment      
Description Of Business And Summary Of Significant Accounting Policies [Line Items]      
Accumulated deficit   $ (95,000)  
Additional paid-in capital   (664,000)  
Convertible senior notes, net   $ 569,000  
Accounting Standards Update 2020-06      
Description Of Business And Summary Of Significant Accounting Policies [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    
Accounting Standards Update 2020-01      
Description Of Business And Summary Of Significant Accounting Policies [Line Items]      
Change in accounting principle, accounting standards update, adoption date Jan. 01, 2021    
Change in accounting principle, accounting standards update, adopted [true false] true    
Change in accounting principle, accounting standards update, immaterial effect [true false] true