XML 72 R61.htm IDEA: XBRL DOCUMENT v3.19.2
DEBT - Summary of Liability Component of Convertible Notes (Details) - USD ($)
$ in Thousands
Jun. 30, 2019
Dec. 31, 2018
Debt Instrument [Line Items]    
Total $ 117,527 $ 158,309
Convertible debt    
Debt Instrument [Line Items]    
Principal amount of the Convertible Notes 345,000 345,000
Unamortized discount of the liability component (45,273) (54,521)
Unamortized debt issuance costs (2,177) (2,681)
Total $ 297,550 $ 287,798