Quarterly report pursuant to Section 13 or 15(d)

Notes Payable - Additional Information (Details)

v3.23.2
Notes Payable - Additional Information (Details)
$ / shares in Units, $ in Thousands
3 Months Ended 6 Months Ended
Mar. 15, 2023
USD ($)
$ / shares
shares
Feb. 10, 2023
USD ($)
$ / shares
shares
Nov. 21, 2022
USD ($)
$ / shares
shares
May 06, 2021
USD ($)
day
$ / shares
shares
Jun. 30, 2023
USD ($)
$ / shares
shares
Jun. 30, 2022
USD ($)
Jun. 30, 2023
USD ($)
$ / shares
shares
Jun. 30, 2022
USD ($)
Apr. 27, 2023
$ / shares
Dec. 31, 2022
USD ($)
$ / shares
Notes Payable                    
Common stock, par value (in dollars per share) | $ / shares         $ 0.0001   $ 0.0001   $ 0.0001 $ 0.0001
Gain on extinguishment of debt         $ 0 $ 0 $ (2,965) $ 0    
Amortization of debt discount             $ 4,170 4,413    
Convertible note warrants                    
Notes Payable                    
Warrants to purchase shares (in shares) | shares         434,782   434,782      
Adjustment to additional paid in capital, debt conversion, warrants issued       $ 14,522            
Convertible Note due in May 2024                    
Notes Payable                    
Interest rate (as a percent)       7.50%            
Convertible note       $ 100,000            
Issuance costs       $ 5,000            
Conversion price (in dollars per share) | $ / shares       $ 230.00            
Warrants to purchase shares (in shares) | shares       434,782            
Warrant exercise price (in dollars per share) | $ / shares       $ 230.00            
Percentage of stock price trigger       120.00%            
Stock price trigger (in dollars per share) | $ / shares       $ 276.00            
Threshold trading days | day       20            
Threshold consecutive trading days | day       30            
Average daily trading volume       $ 3,000            
Fair value of convertible debt       $ 17,063 $ 51,336   $ 51,336     $ 58,155
Debt conversion, original amount $ 10,500 $ 3,500 $ 14,000              
Common stock issued on conversion of notes (in shares) | shares 937,500 210,443 663,822              
Common stock, par value (in dollars per share) | $ / shares $ 0.0001 $ 0.0001 $ 0.0001              
Share issue price (in usd per share) | $ / shares $ 11.20 $ 15.80 $ 21.00              
Gain on extinguishment of debt $ (2,918) $ (47) $ (2,921)              
Fair value of common stock issued 5,756 2,811 8,138              
Carrying amount of converted debt 8,669 2,850 11,021              
Fair value of convertible note derivative liability $ 5 $ 8 $ 38              
Debt converted, percentage of par value   95.00%                
Interest expense         3,117 3,938 6,538 7,701    
Contractual interest expense         1,122 1,647 2,376 3,295    
Amortization of debt discount         $ 1,995 2,291 $ 4,162 4,406    
Convertible Note due in May 2024 | Convertible note warrants                    
Notes Payable                    
Stock price trigger (in dollars per share) | $ / shares       $ 230.00            
Facility                    
Notes Payable                    
Interest rate (as a percent)         15.00%   15.00%      
Interest expense         $ 120 $ 115 $ 238 $ 229    
Maximum borrowing capacity         9,800   9,800      
Threshold indebtedness         5,000   5,000      
Borrowings under line of credit         $ 3,000   $ 3,000     $ 3,000