XML 38 R86.htm IDEA: XBRL DOCUMENT v3.19.3.a.u2
Income taxes - Loss from operations before tax (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2017
Income Tax Disclosure [Abstract]      
Domestic $ (231,915) $ (68,461) $ (54,588)
Foreign (8,011) (59,649) (23,077)
Total $ (239,926) $ (128,110) $ (77,665)