Quarterly report pursuant to Section 13 or 15(d)

Borrowings - Additional Information (Details)

v3.19.1
Borrowings - Additional Information (Details)
1 Months Ended 3 Months Ended
Mar. 07, 2019
USD ($)
d
$ / shares
Sep. 30, 2016
USD ($)
Apr. 30, 2019
USD ($)
shares
Mar. 31, 2019
USD ($)
Mar. 31, 2018
USD ($)
Dec. 31, 2018
USD ($)
Debt Instrument [Line Items]            
Payment of debt issuance costs       $ 1,143,000 $ 0  
Loss on debt extinguishment       (814,000) $ 0  
Convertible debt and derivative liability       18,296,000   $ 0
Senior Convertible Note Purchase Agreement            
Debt Instrument [Line Items]            
Face amount $ 16,000,000          
Date of issuance and sale of notes Mar. 07, 2019          
Proceeds from debt, net of issuance costs $ 14,700,000          
Payment of debt issuance costs $ 1,300,000          
Loss on debt extinguishment       (800,000)    
Reacquisition price of outstanding debt       15,900,000    
Carrying value of debt obligation       15,100,000    
Senior convertible notes       8,500,000    
Unamortized debt issuance cost       600,000    
Bifurcated embedded conversion option derivative liability       9,800,000    
Debt issuance costs       600,000    
Loss on fair value adjustment of derivative liability       2,900,000    
Amortization of debt issuance costs       100,000    
Fair value of convertible debt and derivative liability       $ 19,100,000    
Purchase price as percentage of principal amount 100.00%          
Interest rate 6.00%          
Payment terms       The Notes bear interest at a rate of 6.0% per annum payable semiannually in arrears on March 15 and September 15 of each year, beginning September 15, 2019. The Notes will mature on March 15, 2025, unless earlier converted, redeemed or repurchased.    
Notes maturity date Mar. 15, 2025          
Notes maturity description       The Notes will mature on March 15, 2025, unless earlier converted, redeemed or repurchased    
Conversion terms       holder of the Notes may convert their Notes at their option at any time prior to the close of business on the business day immediately preceding March 15, 2025 into shares of the Company’s common stock.    
Conversion rate, number of shares to be issued per $1000 of principal (in shares) 739.0983          
Principal amount of notes used as the denominator for conversion into notes $ 1,000          
Initial conversion price of notes | $ / shares $ 1.35          
Conversion rate, number of shares to be issued per $1000 of principal (in shares) after adjustment to certain events 813          
Principal amount of notes used as the denominator for conversion into notes after adjustment of certain events $ 1,000          
Convertible notes, redemption start date Mar. 15, 2022          
Convertible notes, threshold percentage of stock price trigger 130.00%          
Convertible notes, threshold trading days | d 20          
Convertible notes, threshold consecutive trading days | d 30          
Redemption price as percentage of the principal amount 100.00%          
Redemption price as percentage of the principal amount subject to certain exceptions 100.00%          
Senior Convertible Note Purchase Agreement | Subsequent Event            
Debt Instrument [Line Items]            
Conversion of convertible note, amount     $ 2,000,000      
Conversion of convertible note exchanged for shares | shares     1,626,000      
Senior Convertible Note Purchase Agreement | ASC 815            
Debt Instrument [Line Items]            
Derivative, fair value       $ 7,000,000    
Secured Debt | Term Loan            
Debt Instrument [Line Items]            
Loan agreement term   48 months        
Face amount   $ 15,000,000        
Secured Debt | Term Loan | LIBOR            
Debt Instrument [Line Items]            
Basis spread on variable rate (as a percent)   8.49%