Annual report pursuant to Section 13 and 15(d)

Convertible Senior Notes (Details)

v3.22.0.1
Convertible Senior Notes (Details)
$ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2021
USD ($)
Dec. 31, 2021
USD ($)
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
Dec. 31, 2017
USD ($)
Debt Instrument, Redemption [Line Items]          
Repurchase of convertible senior notes   $ 143,118 $ 0 $ 0  
Convertible senior notes $ 424,827 $ 424,827 $ 286,183    
Maturity Year 2022          
Debt Instrument, Redemption [Line Items]          
Proceeds from convertible senior notes         $ 282,200
Convertible senior notes conversion ratio   0.0632040 0.0632040    
Maturity Year 2026          
Debt Instrument, Redemption [Line Items]          
Convertible senior notes conversion ratio   0.1355014      
Convertible Debt [Member] | Maturity Year 2022          
Debt Instrument, Redemption [Line Items]          
Aggregate principal amount $ 143,800 $ 143,800 $ 287,500    
Convertible senior notes interest rate per annum 6.25% 6.25%      
Repurchase of convertible senior notes $ 143,700        
Convertible Debt [Member] | Maturity Year 2026          
Debt Instrument, Redemption [Line Items]          
Aggregate principal amount $ 287,500 $ 287,500      
Proceeds from convertible senior notes   $ 279,900      
Convertible senior notes interest rate per annum 6.25% 6.25%