XML 66 R47.htm IDEA: XBRL DOCUMENT v3.23.2
BORROWINGS- Schedule of Borrowings (Details) - USD ($)
$ in Thousands
Jun. 30, 2023
Dec. 31, 2022
Debt Instrument [Line Items]    
Senior Secured Convertible Notes, current $ 0 $ 163,556
Senior Secured Convertible Notes, non-current 383,571 382,208
Principal repayment obligation 391,012 557,678
Unamortized DFC (7,441) (11,914)
Carrying value 383,571 545,764
6.00% Senior Secured Convertible Notes Due 2025    
Debt Instrument [Line Items]    
Principal repayment obligation, current 0 166,666
Unamortized debt issuance costs, current 0 (3,110)
Senior Secured Convertible Notes, current 0 163,556
Principal repayment obligation, non-current 333,334 333,334
Unamortized debt issuance costs, noncurrent (5,024) (6,219)
Senior Secured Convertible Notes, non-current 328,310 327,115
Senior Notes due 2028    
Debt Instrument [Line Items]    
Principal repayment obligation, non-current 57,678 57,678
Unamortized debt issuance costs, noncurrent (2,417) (2,585)
Senior Secured Convertible Notes, non-current $ 55,261 $ 55,093