Quarterly report pursuant to Section 13 or 15(d)

Convertible Debt (Details)

v3.23.1
Convertible Debt (Details)
$ / shares in Units, $ in Thousands, shares in Millions
3 Months Ended
Jan. 13, 2023
USD ($)
Dec. 31, 2022
USD ($)
Nov. 11, 2022
shares
Nov. 10, 2022
USD ($)
Sep. 06, 2022
shares
Jul. 22, 2022
USD ($)
$ / shares
Jul. 21, 2022
Jul. 20, 2022
USD ($)
$ / shares
May 10, 2022
Mar. 31, 2023
USD ($)
tradingDay
shares
Mar. 31, 2022
USD ($)
Oct. 05, 2022
USD ($)
Debt Conversion [Line Items]                        
Purchase price of common stock, percent           110.00% 95.00% 120.00%        
Proceeds from prepaid advance agreement                   $ 5,001 $ 0  
Repayments on pre-paid purchase agreement                   2,500    
Aggregate fair value                   40,000    
Loss on extinguishment of debt                   $ (26,739) $ 0  
Number of trading days | tradingDay                   10    
Pre Paid Advance Agreement                        
Debt Conversion [Line Items]                        
Redemption premium                   3.00%    
YA II PN, Ltd                        
Debt Conversion [Line Items]                        
Pre-paid advance agreement, in cash advances               $ 50,000        
Pre-paid advance agreement, in commitment amount               $ 300,000        
Purchase share price (in dollars per share) | $ / shares           $ 0.50   $ 1.00        
Pre-paid advance agreement, annual rate                 5.00%      
Pre-paid advance agreement, increase upon to default                 15.00%      
Other noncash income (expense)                   $ 500    
Loss on extinguishment of debt                   (26,700)    
YA II PN, Ltd | First Pre Paid Advance Agreement Member                        
Debt Conversion [Line Items]                        
Proceeds from prepaid advance agreement           $ 49,500            
YA II PN, Ltd | First Pre Paid Advance Agreement Member | Common stock                        
Debt Conversion [Line Items]                        
Issuance of shares - SEPA and PIPE (in shares) | shares         15.1              
YA II PN, Ltd | Second Pre Paid Advance Agreement Member                        
Debt Conversion [Line Items]                        
Proceeds from prepaid advance agreement           $ 39,600            
YA II PN, Ltd | Side Letter To Pre Paid Advance Agreement Member                        
Debt Conversion [Line Items]                        
Pre-paid advance to minimum of settlement                       $ 1,000
YA II PN, Ltd | Third Pre Paid Advance Agreement Member                        
Debt Conversion [Line Items]                        
Proceeds from prepaid advance agreement       $ 20,000                
YA II PN, Ltd | Fourth Pre Paid Advance Agreement Member                        
Debt Conversion [Line Items]                        
Proceeds from prepaid advance agreement   $ 32,000                    
Proceeds from additional amount of prepaid advance agreement   8,500                    
Proceeds from partial exercise prepaid advance agreement $ 5,300                      
Net proceeds from exercise in prepaid advance agreement $ 5,000                      
Aggregate fair value                   $ 14,800    
YA II PN, Ltd | Fourth Pre Paid Advance Agreement Member | Additional paid-in capital                        
Debt Conversion [Line Items]                        
Amount allocated to convertible debt from option exercised   $ 2,300                    
YA II PN, Ltd | Common stock                        
Debt Conversion [Line Items]                        
Exchange cap, maximum ownership percent                 19.90%      
YA II PN, Ltd | Common stock | Second Pre Paid Advance Agreement Member                        
Debt Conversion [Line Items]                        
Issuance of shares - SEPA and PIPE (in shares) | shares     19.4                  
YA II PN, Ltd | Common stock | Pre Paid Advance Agreement                        
Debt Conversion [Line Items]                        
Issuance of shares - SEPA and PIPE (in shares) | shares                   66.8