XML 51 R40.htm IDEA: XBRL DOCUMENT v3.10.0.1
Debt - Additional Information (Details) - USD ($)
1 Months Ended 3 Months Ended 9 Months Ended
Aug. 31, 2018
Jul. 31, 2018
Apr. 30, 2018
Nov. 30, 2017
Oct. 31, 2017
Jan. 31, 2017
Sep. 30, 2018
Sep. 30, 2017
Sep. 30, 2018
Sep. 30, 2017
Dec. 31, 2017
Debt Instrument [Line Items]                      
Sale of stock             13,200,115   13,200,115   9,131,999
Net proceeds from the sale of redeemable convertible preferred stock                 $ 17,712,000    
Long-term debt, net of discount             $ 7,500,000   7,500,000    
Term Loan | Silicon Valley Bank                      
Debt Instrument [Line Items]                      
Number of warrants issued         49,713            
Exercise price of warrant         $ 9.659            
Warrants exercisable date         Oct. 18, 2027            
Interest expense             200,000   400,000    
Line of credit facility, maximum borrowing capacity         $ 7,500,000            
Interest only period extended         Dec. 31, 2018            
Amortization period of payments of principal plus interest amounts         24 months            
Percentage of aggregate principal amount         7.00%            
Debt instrument, maturity date     Jun. 01, 2020                
Long-term Debt, gross             7,500,000   7,500,000   $ 3,500,000
Long-term debt, net of discount             7,500,000   7,500,000   $ 3,400,000
Term Loan | Silicon Valley Bank | Tranche A                      
Debt Instrument [Line Items]                      
Line of credit facility, maximum borrowing capacity         $ 3,500,000            
Proceeds from lines of credit       $ 3,500,000              
Term Loan | Silicon Valley Bank | Tranche B                      
Debt Instrument [Line Items]                      
Line of credit facility, maximum borrowing capacity     $ 2,000,000   2,000,000            
Line of credit facility, extended period     Apr. 30, 2018                
Term Loan | Silicon Valley Bank | Tranche C                      
Debt Instrument [Line Items]                      
Line of credit facility, maximum borrowing capacity   $ 2,000,000     $ 2,000,000            
Interest only period extended   Aug. 31, 2018                  
Line of credit facility, extended period   Dec. 31, 2018 Jul. 31, 2018                
Term Loan | Silicon Valley Bank | Prepayment Made Prior To First Anniversary | Loan and Security Agreement                      
Debt Instrument [Line Items]                      
Prepayment fee percentage         3.00%            
Term Loan | Silicon Valley Bank | Prepayment Made By Second Anniversary | Loan and Security Agreement                      
Debt Instrument [Line Items]                      
Prepayment fee percentage         2.00%            
Term Loan | Silicon Valley Bank | Prepayment Made After Second Anniversary | Loan and Security Agreement                      
Debt Instrument [Line Items]                      
Prepayment fee percentage         1.00%            
Term Loan | Silicon Valley Bank | Tranche B and C                      
Debt Instrument [Line Items]                      
Debt discount             $ 400,000   $ 400,000    
Interest only period extended     Dec. 31, 2018                
Debt instrument, maturity date     Dec. 31, 2020                
Series D                      
Debt Instrument [Line Items]                      
Sale of stock 1,842,959           3,923,168   3,923,168    
Sale of stock price per share $ 9.659                    
Net proceeds from the sale of redeemable convertible preferred stock $ 17,700,000                    
Debt converted into shares 2,080,209                    
Series C-1                      
Debt Instrument [Line Items]                      
Sale of stock             2,319,228   2,319,228   2,174,280
Warrants | Series C-1                      
Debt Instrument [Line Items]                      
Number of warrants issued 368,582                    
Exercise price of warrant $ 0.12                    
2017 Notes                      
Debt Instrument [Line Items]                      
Debt instrument principal amount           $ 14,700,000          
Interest rate           8.00%          
Proceeds from sale of equity           $ 10,000,000          
Debt instrument, Redemption price, percentage           80.00%          
Debt discount             $ 3,000,000   $ 3,000,000    
Interest expense             700,000 $ 600,000 3,400,000 $ 1,600,000  
2017 Notes | Warrants                      
Debt Instrument [Line Items]                      
Debt discount             $ 1,700,000   $ 1,700,000    
Number of warrants issued             304,397   304,397    
Exercise price of warrant             $ 0.12   $ 0.12    
Warrants exercisable date                 Jan. 31, 2024