Quarterly report pursuant to Section 13 or 15(d)

Summary of Significant Accounting Policies - New accounting pronouncements (Details)

v3.10.0.1
Summary of Significant Accounting Policies - New accounting pronouncements (Details) - USD ($)
3 Months Ended 9 Months Ended
Sep. 30, 2018
Sep. 30, 2017
Sep. 30, 2018
Sep. 30, 2017
Dec. 31, 2017
New accounting pronouncements          
Total Revenue $ 40,792,000 $ 27,185,000 $ 58,026,000 $ 33,563,000  
Operating income (loss) 7,018,000 (4,960,000) (50,259,000) (50,961,000)  
Income (loss) before income taxes 5,375,000 (653,000) (58,979,000) (42,254,000)  
Net income (loss) attributable to ordinary shareholders $ 5,242,000 $ (878,000) $ (59,341,000) $ (42,875,000)  
Net income per ordinary share - Basic $ 0.01   $ (0.10) $ (0.08)  
Net income per ordinary share - Diluted $ 0.01   (0.10) $ (0.08)  
Net income (loss) per ordinary share basic and diluted (in dollars per share)     $ (0.10)    
Deferred revenue $ 1,345,000   $ 1,345,000   $ 38,735,000
Total current liabilities 29,566,000   29,566,000   74,314,000
Total liabilities 33,470,000   33,470,000   78,163,000
Accumulated other comprehensive loss (12,813,000)   (12,813,000)   (21,641,000)
Accumulated deficit (282,326,000)   (282,326,000)   (231,630,000)
Total stockholders' equity 276,155,000   276,155,000   202,984,000
Net loss     (59,341,000) $ (42,875,000)  
Decrease in payables and deferred revenue     (35,533,000) $ 859,000  
Cumulative effect of adopting ASC 606         $ 8,645,000
Right-of-use asset 20,000,000   20,000,000    
Lease liability 25,000,000   25,000,000    
ASU 2014-09 | Under previous revenue guidance          
New accounting pronouncements          
Total Revenue 56,999,000   69,262,000    
Operating income (loss) 23,225,000   (39,023,000)    
Income (loss) before income taxes 21,582,000   (47,743,000)    
Net income (loss) attributable to ordinary shareholders $ 21,449,000   $ (48,105.00)    
Net income per ordinary share - Basic $ 0.04        
Net income per ordinary share - Diluted $ 0.03        
Net income (loss) per ordinary share basic and diluted (in dollars per share)     $ (0.08)    
Deferred revenue $ 1,592,000   $ 1,592,000    
Total current liabilities 29,813,000   29,813,000    
Total liabilities 33,717,000   33,717,000    
Accumulated other comprehensive loss (15,651,000)   (15,651,000)    
Accumulated deficit (279,735,000)   (279,735,000)    
Total stockholders' equity 275,908,000   275,908,000    
Net loss     (48,105,000)    
Decrease in payables and deferred revenue     (46,769,000)    
ASU 2014-09 | Adjustment          
New accounting pronouncements          
Total Revenue (16,207,000)   (11,236,000)    
Operating income (loss) (16,207,000)   (11,236,000)    
Income (loss) before income taxes (16,207,000)   (11,236,000)    
Net income (loss) attributable to ordinary shareholders (16,207,000)   (11,236.00)    
Deferred revenue (247,000)   (247,000)    
Total current liabilities (247,000)   (247,000)    
Total liabilities (247,000)   (247,000)    
Accumulated other comprehensive loss 2,838,000   2,838,000    
Accumulated deficit (2,591,000)   (2,591,000)    
Total stockholders' equity $ 247,000   247,000    
Net loss     (11,236,000)    
Decrease in payables and deferred revenue     $ 11,236,000