Quarterly report pursuant to Section 13 or 15(d)

Borrowings - Additional Information (Detail)

v3.22.2.2
Borrowings - Additional Information (Detail)
1 Months Ended 3 Months Ended 6 Months Ended
May 13, 2021
USD ($)
Tranche
Apr. 09, 2020
USD ($)
Mar. 07, 2019
USD ($)
Jan. 31, 2021
USD ($)
shares
Jun. 30, 2022
USD ($)
Jun. 30, 2021
USD ($)
Jun. 30, 2022
USD ($)
Jun. 30, 2021
USD ($)
Mar. 31, 2022
USD ($)
Dec. 31, 2021
USD ($)
Debt Instrument [Line Items]                    
Face amount         $ 36,383,000   $ 36,383,000      
Loss on extinguishment of debt         0 $ 0 0 $ 2,725,000    
Net carrying amount of convertible debt and derivative liability         10,817,000   10,817,000     $ 11,607,000
Amortization of debt issuance costs and discount         421,000 269,000 799,000 525,000    
Deferred offering costs         73,000   73,000     150,000
Repayment of deferred fee, 2023         0   0      
Repayment of deferred fee, 2024         23,874,000   23,874,000      
Repayment of deferred fee, 2025         11,126,000   11,126,000      
Other Liabilities                    
Debt Instrument [Line Items]                    
Deferred offering costs         $ 5,100,000   $ 5,100,000     3,300,000
Interest rate, deferred fees         12.75%   12.75%      
Percentage of repayment of deferred fee, 2023             15.00%      
Percentage of repayment of deferred fee, 2024             50.00%      
Percentage of repayment of deferred fee, 2025         35.00%   35.00%      
Repayment of deferred fee, 2023         $ 900,000   $ 900,000      
Repayment of deferred fee, 2024         2,700,000   2,700,000      
Repayment of deferred fee, 2025         1,900,000   1,900,000      
Success premium         0   0      
SVB                    
Debt Instrument [Line Items]                    
Minimum outstanding term loan principal percentage for financial covenant waived 50.00%                  
Loan and Security Agreement                    
Debt Instrument [Line Items]                    
Fair value of loan payable         $ 32,900,000   $ 32,900,000     $ 29,200,000
Loan and Security Agreement | Level 3 Inputs | Secured Spread                    
Debt Instrument [Line Items]                    
Debt instrument, measurement input         10.76   10.76     9.30
Loan and Security Agreement | Level 3 Inputs | Risk Free Rate                    
Debt Instrument [Line Items]                    
Debt instrument, measurement input         2.97   2.97     1.00
Loan and Security Agreement | Level 3 Inputs | Secured Yield                    
Debt Instrument [Line Items]                    
Debt instrument, measurement input         13.73   13.73     10.30
Term Loan | Loan and Security Agreement                    
Debt Instrument [Line Items]                    
Notes maturity date Mar. 03, 2025                  
Basis spread on variable rate (as a percent) 9.05%                  
Debt instrument maturity date subject to occurrence of certain conditions May 01, 2025                  
Term Loan | Loan and Security Agreement | Prime Rate                    
Debt Instrument [Line Items]                    
Basis spread on variable rate (as a percent) 5.80%                  
Term Loan | Loan and Security Agreement | Hercules Capital Inc. and Silicon Valley Bank                    
Debt Instrument [Line Items]                    
Face amount $ 60,000,000.0                  
Number of available tranches | Tranche 4                  
Initial Tranche of Term Loan | Loan and Security Agreement                    
Debt Instrument [Line Items]                    
Additional borrowing amount available $ 20,000,000.0                  
Second Tranche of Term Loan                    
Debt Instrument [Line Items]                    
Face amount           10,000,000.0   10,000,000.0    
Second Tranche of Term Loan | Loan and Security Agreement                    
Debt Instrument [Line Items]                    
Additional borrowing amount available 10,000,000.0                  
Third Tranche of Term Loan                    
Debt Instrument [Line Items]                    
Face amount                 $ 5,000,000.0  
Third Tranche of Term Loan | Loan and Security Agreement                    
Debt Instrument [Line Items]                    
Additional borrowing amount available 5,000,000.0                  
Fourth Tranche of Term Loan | Loan and Security Agreement                    
Debt Instrument [Line Items]                    
Additional borrowing amount available 25,000,000.0                  
Increment debt amount $ 5,000,000.0                  
April 2020 Note Purchase Agreement                    
Debt Instrument [Line Items]                    
Face amount   $ 10,000,000.0                
Date of issuance and sale of notes   Apr. 09, 2020                
Proceeds from debt, net of issuance costs   $ 9,500,000                
Payment of debt issuance costs   $ 500,000                
Conversion of convertible note, amount       $ 6,000,000.0            
Conversion of convertible note exchanged for shares | shares       959,080            
Loss on extinguishment of debt       $ 2,700,000            
Net carrying amount of convertible debt and derivative liability       4,800,000            
Fair value of the consideration issued       $ 7,500,000            
Senior Convertible Note Purchase Agreement                    
Debt Instrument [Line Items]                    
Face amount     $ 16,000,000.0              
Notes maturity date     Mar. 15, 2025              
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              
Senior convertible notes         $ 10,600,000   $ 10,600,000     $ 10,200,000
Unamortized debt issuance cost         300,000   300,000      
Bifurcated embedded conversion option derivative liability         200,000   200,000     1,400,000
Derivative, fair value         7,000,000.0   7,000,000.0      
Gain on fair value adjustment of derivative liability         200,000 0.5 1,200,000 400,000    
Amortization of debt issuance costs and discount         200,000 $ 200,000 400,000 $ 500,000    
Fair value of convertible debt and derivative liability         $ 10,400,000   $ 10,400,000     $ 12,300,000
Interest rate     6.00%              
Payment terms             The March 2019 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 March 2019 Notes will mature on March 15, 2025, unless earlier converted, redeemed or repurchased.