Quarterly report pursuant to Section 13 or 15(d)

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

v3.8.0.1
Summary of Significant Accounting Policies - New accounting pronouncements (Details) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2018
Mar. 31, 2018
Mar. 31, 2017
Jan. 01, 2018
Dec. 31, 2017
New accounting pronouncements          
Revenue $ 8,196 $ 8,196 $ 2,857    
Operating loss (28,740)   (22,221)    
Loss before income taxes (20,951)   (21,551)    
Net loss attributable to ordinary shareholders (21,078)   (21,782)    
Deferred revenue 27,221 27,221     $ 38,735
Cumulative effect of adopting ASC 606         8,645
Total current liabilities 51,922 51,922     74,314
Total liabilities 55,806 55,806     78,163
Accumulated deficit (244,063) (244,063)     (231,630)
Total stockholders' equity 191,262 191,262     $ 202,984
Net loss (21,078)   (21,782)    
Decrease in payables and deferred revenue (15,879)   $ (8,507)    
ASU 2014-09          
New accounting pronouncements          
Cumulative effect of adopting ASC 606       $ (8,645)  
ASU 2014-09 | Under previous revenue guidance          
New accounting pronouncements          
Revenue 8,996        
Operating loss (27,940)        
Loss before income taxes (20,151)        
Net loss attributable to ordinary shareholders (20,278)        
Deferred revenue 35,066 35,066      
Total current liabilities 59,767 59,767      
Total liabilities 63,651 63,651      
Accumulated deficit (251,908) (251,908)      
Total stockholders' equity 183,417 183,417      
Net loss (20,278)        
Decrease in payables and deferred revenue (16,679)        
ASU 2014-09 | Adjustment          
New accounting pronouncements          
Revenue (800)        
Operating loss (800)        
Loss before income taxes (800)        
Net loss attributable to ordinary shareholders (800)        
Deferred revenue (7,845) (7,845)      
Total current liabilities (7,845) (7,845)      
Total liabilities (7,845) (7,845)      
Accumulated deficit 7,845 7,845      
Total stockholders' equity 7,845 $ 7,845      
Net loss (800)        
Decrease in payables and deferred revenue $ 800