v3.10.0.1
Convertible Notes - Debt issuance costs and interest expense (Details) - USD ($)
$ in Thousands
1 Months Ended 12 Months Ended
Oct. 31, 2018
Dec. 31, 2018
Dec. 31, 2017
Dec. 31, 2016
Convertible Notes        
Debt issuance costs incurred   $ 695 $ 0 $ 124
Convertible Notes        
Convertible Notes        
Debt issuance costs incurred $ 6,169      
Additional paid-in capital 1,442      
Amortizaton of remaining financing costs $ 4,727      
Interest expense related to the Convertible Notes        
Contractual interest expense   2,677    
Amortization of debt issuance costs   205    
Amortization of debt discount   1,992    
Total   $ 4,874    
Effective interest rate of the liability component   7.10%    
Amortization and interest expense capitalized   $ 508    
Convertible Notes | interest and other expense, net        
Interest expense related to the Convertible Notes        
Amortization of debt issuance costs   $ 205