XML 54 R39.htm IDEA: XBRL DOCUMENT v3.22.2
Long-term Debt (Tables)
6 Months Ended
Jun. 30, 2022
Debt Disclosure [Abstract]  
Schedule of convertible debt The following table summarizes the carrying value of the long-term convertible debt as of June 30, 2022 and December 31, 2021 (in thousands):
June 30, 2022December 31, 2021
2024 Notes
Carrying value$114,893 $89,361 
Unamortized debt discount and issuance costs2,158 27,690 
Principal amount$117,051 $117,051 
Remaining amortization period (years)2.42.9
Fair value(1)
$197,477 $195,445 
2025 Notes
Carrying value$168,245 $126,315 
Unamortized debt discount and issuance costs4,255 46,185 
Principal amount$172,500 $172,500 
Remaining amortization period (years)3.33.8
Fair value(1)
$195,434 $177,251 
————————
(1)Fair values for notes are derived from available trading prices closest to the respective balance sheet date.