XML 87 R44.htm IDEA: XBRL DOCUMENT v3.19.3.a.u2
BORROWINGS - Additional Information (Details)
12 Months Ended
Dec. 13, 2019
USD ($)
$ / shares
shares
Mar. 27, 2019
USD ($)
$ / shares
shares
Dec. 31, 2019
USD ($)
Dec. 31, 2018
USD ($)
Dec. 28, 2018
USD ($)
$ / shares
shares
Oct. 15, 2018
USD ($)
tranche
Apr. 10, 2018
USD ($)
Feb. 28, 2018
USD ($)
tranche
$ / shares
shares
Debt Instrument [Line Items]                
Principal outstanding     $ 58,374,000 $ 38,071,000        
Increase (decrease) in equity due to warrants         $ 900,000      
Percentage of principal amount     1.00%          
Term Loan                
Debt Instrument [Line Items]                
Debt aggregate principal amount           $ 100,000,000.0   $ 100,000,000.0
Debt, number of tranches | tranche           5   5
Principal outstanding     $ 40,000,000.0          
Debt payment terms, multiplier   7.55%            
Number of shares called by warrant (in shares) | shares               53,458
Exercise price of warrant (in USD per share) | $ / shares               $ 9.35
Warrant liability               $ 200,000
Increase (decrease) in equity due to warrants             $ 200,000  
Fair value of embedded derivative liability     1,000,000.0       $ 700,000  
Unamortized issuance costs and debt discounts     $ 3,600,000 $ 2,700,000        
Term Loan | Minimum                
Debt Instrument [Line Items]                
Debt prepayment fee, percentage   2.00%            
Term Loan | Tranche one, funded on closing date                
Debt Instrument [Line Items]                
Debt aggregate principal amount               25,000,000.0
Term Loan | Tranche two, funded on December 28, 2018                
Debt Instrument [Line Items]                
Debt aggregate principal amount           $ 15,000,000.0   $ 25,000,000.0
Number of shares called by warrant (in shares) | shares         53,458      
Exercise price of warrant (in USD per share) | $ / shares         $ 9.35      
New Term Loan                
Debt Instrument [Line Items]                
Principal outstanding   $ 200,000,000.00            
Additional payment of principal   $ 2,600,000            
Prepayment fee, percentage after month 12 before month 24   1.50%            
Prepayment fee, percentage after 24 months before 36 months   1.00%            
Prepayment fee, percentage after 36 months until maturity   0.00%            
Term of interest and principal payment   30 months            
New Term Loan | Maximum                
Debt Instrument [Line Items]                
Extension period of interest only payment   24 months            
New Term Loan | Tranche one, funded on closing date                
Debt Instrument [Line Items]                
Debt aggregate principal amount   $ 20,000,000.0            
New Term Loan | Tranche two, funded on December 28, 2018                
Debt Instrument [Line Items]                
Debt aggregate principal amount   15,000,000.0            
New Term Loan | Tranche three, funded on or before December 31, 2019                
Debt Instrument [Line Items]                
Debt aggregate principal amount   75,000,000.0            
New Term Loan | Tranche four, funded on or before December 15, 2020                
Debt Instrument [Line Items]                
Debt aggregate principal amount   $ 50,000,000.0            
Third Amendment To Term Loan                
Debt Instrument [Line Items]                
Exercise price of warrant (in USD per share) | $ / shares   $ 23.92            
Value of common stock warrants recorded in stockholders' equity (deficit) at fair value $ 300,000 $ 300,000            
Third Amendment to Term Loan                
Debt Instrument [Line Items]                
Number of shares called by warrant (in shares) | shares 8,361 16,721            
Exercise price of warrant (in USD per share) | $ / shares $ 23.92 $ 23.92            
Floating variable rate 1 | Term Loan                
Debt Instrument [Line Items]                
Debt interest rate     8.35%          
Floating variable rate 2 | Term Loan | Prime rate                
Debt Instrument [Line Items]                
Debt, basis spread on variable rate     8.35%          
Debt, basis spread on adjusted variable rate   6.00%            
Floating variable rate 3 | Term Loan                
Debt Instrument [Line Items]                
Debt interest rate     9.85%          
Time To Liquidity | Third Amendment To Term Loan                
Debt Instrument [Line Items]                
Measurement input assumption, time to liquidity 7 years 7 years            
Volatility | Third Amendment To Term Loan                
Debt Instrument [Line Items]                
Warrants measurement input 0.727 0.750            
Risk-free interest rate | Third Amendment To Term Loan                
Debt Instrument [Line Items]                
Warrants measurement input 0.018 0.023            
Discount rate                
Debt Instrument [Line Items]                
Measurement input assumption     0.107          
Probability of the occurrence of certain events                
Debt Instrument [Line Items]                
Measurement input assumption     0.200