Quarterly report pursuant to Section 13 or 15(d)

Convertible Debt (Details)

v3.23.2
Convertible Debt (Details)
$ / shares in Units, shares in Millions
3 Months Ended 6 Months Ended
Apr. 24, 2023
USD ($)
$ / shares
Jan. 13, 2023
USD ($)
Dec. 31, 2022
USD ($)
Nov. 11, 2022
shares
Nov. 10, 2022
USD ($)
Sep. 06, 2022
shares
Aug. 26, 2022
USD ($)
Jul. 22, 2022
USD ($)
$ / shares
Jul. 21, 2022
Jul. 20, 2022
USD ($)
$ / shares
May 10, 2022
Jun. 30, 2023
USD ($)
$ / shares
Jun. 30, 2022
USD ($)
Jun. 30, 2023
USD ($)
tradingDay
$ / shares
shares
Jun. 30, 2022
USD ($)
Oct. 05, 2022
USD ($)
Debt Conversion [Line Items]                                
Purchase price of common stock, percent                           128.20%    
Purchase share price (in dollars per share) | $ / shares                       $ 0.48   $ 0.48    
Proceeds from prepaid advance agreement                           $ 5,001,000 $ 0  
Loss on extinguishment of debt                       $ (949,000) $ 0 (27,688,000) 0  
Amortization of debt issuance costs and non-cash interest expense                           $ 1,386,000 $ 0  
Convertible Debt                                
Debt Conversion [Line Items]                                
Purchase price of common stock, percent 95.00%                              
Common stock                                
Debt Conversion [Line Items]                                
Purchase share price (in dollars per share) | $ / shares                       $ 0.62   $ 0.62    
YA II PN, Ltd                                
Debt Conversion [Line Items]                                
Pre-paid advance agreement, in cash advances                   $ 50,000,000            
Pre-paid advance agreement, in commitment amount                   $ 300,000,000            
Purchase price of common stock, percent               110.00% 95.00% 120.00%            
Purchase share price (in dollars per share) | $ / shares $ 0.14             $ 0.50   $ 1.00            
Measurement period (in days)               5 days                
Pre-paid advance agreement, annual rate                     5.00%          
Pre-paid advance agreement, increase upon to default                     15.00%          
Maturity period (in months)               15 months                
Repayments on pre-paid purchase agreement                           $ 2,500,000    
Loss on extinguishment of debt                           (26,700,000)    
Other noncash income (expense)                           $ 500,000    
Number of trading days | tradingDay                           5    
Number of consecutive trading days | tradingDay                           7    
Option, number of trading days | tradingDay                           10    
Option, number of consecutive trading days | tradingDay                           3    
Amortization of debt issuance costs and non-cash interest expense                       $ 100,000   $ 1,500,000    
YA II PN, Ltd | Convertible Debt                                
Debt Conversion [Line Items]                                
Purchase share price (in dollars per share) | $ / shares $ 1.00                              
Measurement period (in days)               5 days                
Aggregate fair value                       41,400,000   $ 41,400,000    
Number of trading days | tradingDay                           5    
Number of consecutive trading days | tradingDay                           7    
Option, number of trading days | tradingDay                           10    
Option, number of consecutive trading days | tradingDay                           3    
Redemption premium 5.00%                              
Aggregate principal amount $ 48,000,000                              
Percentage of original issue discount 6.00%                              
Standby equity purchase agreement, exchange cap, maximum ownership amount $ 95,400,000                              
Stated interest rate 1.00%                              
Debt instrument, interest rate, increase (decrease) 15.00%                              
VWAP greater than floor price, number of consecutive trading days                           5    
YA II PN, Ltd | Additional paid-in capital                                
Debt Conversion [Line Items]                                
Amount allocated to convertible debt from option exercised $ 3,700,000                              
YA II PN, Ltd | First Pre Paid Advance Agreement Member                                
Debt Conversion [Line Items]                                
Proceeds from prepaid advance agreement               $ 49,500,000                
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,000                  
Prepaid advance agreement, discount percent             0.01                  
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,000
YA II PN, Ltd | Third Pre Paid Advance Agreement Member                                
Debt Conversion [Line Items]                                
Proceeds from prepaid advance agreement         $ 20,000,000                      
YA II PN, Ltd | Fourth Pre Paid Advance Agreement Member                                
Debt Conversion [Line Items]                                
Proceeds from prepaid advance agreement     $ 32,000,000                          
Proceeds from additional amount of prepaid advance agreement     8,500,000                          
Proceeds from partial exercise prepaid advance agreement   $ 5,300,000                            
Net proceeds from exercise in prepaid advance agreement   $ 5,000,000                            
Aggregate fair value                       $ 14,800,000   $ 14,800,000    
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,000                          
YA II PN, Ltd | Pre Paid Advance Agreement                                
Debt Conversion [Line Items]                                
Redemption premium                       3.00%   3.00%    
YA II PN, Ltd | Common stock                                
Debt Conversion [Line Items]                                
Exchange cap, maximum ownership percent                     19.90%          
Issuance of shares - SEPA and PIPE (in shares) | shares                           14.2    
YA II PN, Ltd | Common stock | Convertible Debt                                
Debt Conversion [Line Items]                                
Issuance of shares - SEPA and PIPE (in shares) | shares                           35.7    
Loss on extinguishment of debt                           $ (900,000)    
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