Annual report pursuant to Section 13 and 15(d)

Long-term Debt - Narrative (Details)

v3.23.1
Long-term Debt - Narrative (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 2 Months Ended 12 Months Ended
Jun. 21, 2021
USD ($)
shares
Jun. 30, 2021
USD ($)
shares
Dec. 31, 2020
USD ($)
$ / shares
shares
Sep. 30, 2020
USD ($)
Feb. 28, 2021
USD ($)
Dec. 31, 2022
USD ($)
shares
Dec. 31, 2021
USD ($)
shares
Dec. 31, 2020
USD ($)
$ / shares
shares
Dec. 22, 2025
Dec. 21, 2025
Dec. 21, 2024
Dec. 21, 2023
Debt Instrument [Line Items]                        
Number of shares purchased from issuance of warrants (in shares) | shares           16,746,194 16,746,194          
Public warrant liability     $ 1     $ 6,124 $ 11,030 $ 1        
Loss on extinguishment of debt           $ 0 12,685          
Derivative Liability Statement Of Financial Position Extensible Enumeration Not Disclosed Flag           derivative liability            
Term loans payable           $ 30,000            
Convertible Notes Payable 2020                        
Debt Instrument [Line Items]                        
Face amount of debt     3,000         3,000        
Interest rate       6.00%                
Gross proceeds from issuance       $ 2,000                
Minimum gross proceeds from sale of preferred stock required for conversion       $ 10,000       2,000        
Conversion price as percentage of the price per share paid by the other investors       80.00%                
Embedded derivative fair value     1,000         1,000        
Total interest incurred             300          
2021 Convertible Notes.                        
Debt Instrument [Line Items]                        
Face amount of debt $ 29,600       $ 23,000              
Interest rate         8.00%              
Gross proceeds from issuance         $ 30,000              
Conversion price as percentage of the price per share paid by the other investors         80.00%              
Embedded derivative fair value         $ 7,000 $ 19,700            
Total interest incurred             $ 4,900          
Additional gross proceeds made available upon achievement of the integration milestone         $ 100,000              
Number of shares issued upon conversion of debt | shares 1,000,000 1,000,000       4,408,672            
Loss on extinguishment of debt   $ 11,800       $ 900            
Carrying value of notes derecognized $ 26,700                      
Derivative liability recognized in the extinguishment accounting $ 19,200                      
Term loans payable           32,800            
Accrued interest derecognized           $ 200            
2022 SVB Term Loan                        
Debt Instrument [Line Items]                        
Interest rate           8.50%            
JPM Credit Agreement                        
Debt Instrument [Line Items]                        
Face amount of debt     $ 10,000         $ 10,000        
Interest rate     4.50%         4.50%        
Number of shares purchased from issuance of warrants (in shares) | shares     377,837         377,837        
Weighted average exercise price (in dollars per share) | $ / shares     $ 0.42         $ 0.42        
Public warrant liability     $ 100         $ 100        
Debt issuances costs     $ 100                  
JPM Credit Agreement | Prime Rate                        
Debt Instrument [Line Items]                        
Interest rate     1.25%         1.25%        
JPM Credit Agreement | Maximum                        
Debt Instrument [Line Items]                        
Interest rate     5.50%         5.50%        
JPM Credit Agreement | Maximum | Prime Rate                        
Debt Instrument [Line Items]                        
Interest rate     2.25%         2.25%        
Revolving Credit Facility                        
Debt Instrument [Line Items]                        
Maximum borrowing capacity     $ 10,000         $ 10,000        
2022 SVB Term Loan                        
Debt Instrument [Line Items]                        
Face amount of debt           $ 30,000            
Debt instrument, term           18 months            
Unamortized discount           $ (300)            
Increase, accrued interest           100            
Total interest incurred           $ 100            
2022 SVB Term Loan | Forecast                        
Debt Instrument [Line Items]                        
Prepayment premium                 0 0.0050 0.0075 0.010
2022 SVB Term Loan | Maximum                        
Debt Instrument [Line Items]                        
Interest rate           7.25%            
2022 SVB Term Loan | Maximum | Prime Rate                        
Debt Instrument [Line Items]                        
Interest rate           1.00%            
2022 Additional SVB Term Loan                        
Debt Instrument [Line Items]                        
Face amount of debt           $ 20,000            
Debt instrument, term           36 months            
Debt instrument, increase           $ 25,000