XML 71 R59.htm IDEA: XBRL DOCUMENT v3.22.2
DEBT - Components of Notes (Details) - USD ($)
$ in Thousands
Jun. 30, 2022
Jan. 01, 2022
Dec. 31, 2021
Jul. 24, 2020
May 31, 2017
Debt Instrument [Line Items]          
Net carrying amount $ 813,252 $ 564,220 $ 478,151    
2025 Convertible Notes          
Debt Instrument [Line Items]          
Gross carrying amount 575,000   575,000    
Unamortized debt discount 0   87,994    
Debt issuance costs 9,257   8,855 $ 12,000  
Net carrying amount 565,743   478,151    
2022 Convertible Notes          
Debt Instrument [Line Items]          
Gross carrying amount 0   169,659    
Unamortized debt discount 0   3,260    
Debt issuance costs 0   391   $ 7,400
Net carrying amount $ 0   $ 166,008