XML 35 R25.htm IDEA: XBRL DOCUMENT v3.22.2.2
Summary of Significant Accounting Policies - Additional Information (Details) - USD ($)
$ in Thousands
Sep. 30, 2022
Jun. 30, 2022
Mar. 31, 2022
Dec. 31, 2021
Sep. 30, 2021
Jun. 30, 2021
Mar. 31, 2021
Dec. 31, 2020
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Long-term convertible senior notes $ 195,496     $ 150,038        
Increase (decrease) in stockholders' equity 56,351 $ (16,461) $ 30,159 121,463 $ 169,809 $ 220,693 $ 272,084 $ 320,684
Additional paid-in capital                
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Increase (decrease) in stockholders' equity 1,033,385 901,141 891,121 932,944 924,914 915,414 907,089 897,607
Accumulated deficit                
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Increase (decrease) in stockholders' equity $ (976,459) $ (917,096) $ (860,630) (811,534) $ (755,250) $ (695,003) $ (635,171) $ (577,530)
Cumulative Effect, Period of Adoption, Adjustment                
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Long-term convertible senior notes       44,800        
Write-off of deferred tax liabilities       9,400        
Increase (decrease) in stockholders' equity       (44,838)        
Cumulative Effect, Period of Adoption, Adjustment | Additional paid-in capital                
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Increase (decrease) in stockholders' equity       (53,527)        
Cumulative Effect, Period of Adoption, Adjustment | Accumulated deficit                
New Accounting Pronouncements or Change in Accounting Principle [Line Items]                
Increase (decrease) in stockholders' equity       $ 8,689