Quarterly report pursuant to Section 13 or 15(d)

Borrowings - 2019 Term Loan (Details)

v3.20.2
Borrowings - 2019 Term Loan (Details) - USD ($)
6 Months Ended
Apr. 28, 2020
Mar. 23, 2020
Jun. 30, 2020
Dec. 31, 2019
May 23, 2019
Sep. 28, 2018
Debt Instrument [Line Items]            
Principal repayment obligation and other fees     $ 166,738,000 $ 144,955,000    
2019 Term Loan, due May 2020 (2)            
Debt Instrument [Line Items]            
Principal repayment obligation and other fees       $ 84,955,000    
2019 Term Loan, due May 2020 (2) | Term loan            
Debt Instrument [Line Items]            
Principal amount         $ 60,000,000.0 $ 60,000,000.0
Deferred financing costs         2,200,000  
Additional borrowing amount         $ 15,000,000.0  
Debt interest rate (as a percentage)         12.00%  
Paid-in-kind interest rate may add in per annum (as a percentage)         4.00%  
Final payment fee (as a percentage)         20.00%  
Debt required collateral amount         $ 30,000,000.0  
Amended 2019 Term Loan            
Debt Instrument [Line Items]            
Principal repayment obligation and other fees     54,238,000      
Term loan | 2019 Term Loan, due May 2020 (2)            
Debt Instrument [Line Items]            
Increase of warrant fair value   $ 300,000        
Term loan | Amended 2019 Term Loan            
Debt Instrument [Line Items]            
Principal amount   $ 75,000,000.0        
Debt interest rate (as a percentage)   16.00%        
Paid-in-kind interest rate may add in per annum (as a percentage)   8.00%        
Required principal payment   $ 3,000,000.0        
Debt required collateral amount   12,000,000.0        
Repayments of debt principal   $ 2,000,000.0        
Number of common stock issued for relief of debt final payment fee   11,019,298        
Increase in debt issuance discount   $ 900,000        
Increase of warrant fair value $ 2,900,000   $ 2,000,000.0      
Term loan | Third Amendment of 2019 Term Loan            
Debt Instrument [Line Items]            
Increase of warrant fair value 5,700,000          
Senior note | Third Amendment of 2019 Term Loan            
Debt Instrument [Line Items]            
Required principal payment 2,100,000          
Principal repayment obligation and other fees $ 17,100,000          
Number of common stock to be issued related to debt amendment (in shares) 9,348,706