XML 96 R83.htm IDEA: XBRL DOCUMENT v3.10.0.1
Revenue recognition - Cash Flow Impacts (Details) - USD ($)
$ in Thousands
1 Months Ended 3 Months Ended 12 Months Ended
Apr. 30, 2018
Dec. 31, 2018
Sep. 30, 2018
Jun. 30, 2018
Mar. 31, 2018
Dec. 31, 2017
Sep. 30, 2017
Jun. 30, 2017
Mar. 31, 2017
Dec. 31, 2018
Dec. 31, 2017
Dec. 31, 2016
Cash flows from operating activities                        
Net loss   $ (48,330) $ (50,969) $ (9,520) $ (19,263) $ 1,270 $ (33,738) $ (17,475) $ (29,057) $ (128,081) $ (79,000) $ (142,110)
Adjustments to reconcile net loss to net cash used in operating activities:                        
Depreciation and amortization                   26,087 17,682 3,290
Change in the fair value of deferred and contingent consideration                   19,340 0 0
Amortization of premiums and accretion of discounts on investments, net                   (433) 535 1,885
Non-cash interest expense                   7,518 6,755 6,065
Loss on disposal of asset                   2 5 0
Amortization of debt issuance costs                   524 433 302
Share-based compensation expense                   33,252 30,559 35,009
Unrealized foreign currency transaction gains                   (59) (459) 1,202
Changes in operating assets and liabilities:                        
Inventory                   (5,823) (6,454) 0
Prepaid expenses and other current assets                   (1,609) (1,784) 1,171
Trade receivables, net                   (29,589) (12,203) (14,842)
Deposits and other assets                   (1,093) (544) (278)
Accounts payable and accrued expenses                   43,877 24,011 4,259
Deferred revenue                   6,514 9,469 1,526
Net cash used in operating activities                   (27,641) (10,063) (103,566)
Cash flows from investing activities                        
Purchases of fixed assets                   (7,097) (3,101) (1,776)
Purchases of marketable securities                   (68,614) (81,368) (85,377)
Sale & redemption of marketable securities                   90,423 174,749 191,634
Acquisition of product rights                   (8,433) (77,163) 0
Business acquisition, net of cash acquired                   (48,892) 0 0
Net cash (used in) provided by investing activities                   (42,613) 13,117 104,481
Cash flows from financing activities                        
Proceeds from exercise of options                   10,868 2,182 968
Net proceeds from public offerings $ 0                 117,916 0 0
Proceeds from shares issued under employee stock purchase plan                   2,787 2,468 0
Net cash provided by financing activities                   131,571 44,218 968
Effect of exchange rate changes on cash                   (3,611) 6,199 (1,584)
Net increase in cash and cash equivalents                   57,706 53,471 299
Cash and cash equivalents, beginning of period         111,792       $ 58,321 111,792 58,321 58,022
Cash and cash equivalents, end of period   169,498       111,792       169,498 111,792 $ 58,321
Adjustments | ASU 2014-09                        
Cash flows from operating activities                        
Net loss                   (5,093)    
Adjustments to reconcile net loss to net cash used in operating activities:                        
Depreciation and amortization                   0    
Change in the fair value of deferred and contingent consideration                   0    
Amortization of premiums and accretion of discounts on investments, net                   0    
Non-cash interest expense                   0    
Loss on disposal of asset                   0    
Amortization of debt issuance costs                   0    
Share-based compensation expense                   0    
Unrealized foreign currency transaction gains                   0    
Changes in operating assets and liabilities:                        
Inventory                   (84)    
Prepaid expenses and other current assets                   0    
Trade receivables, net                   0    
Deposits and other assets                   0    
Accounts payable and accrued expenses                   (2,120)    
Other liabilities                   0    
Deferred revenue                   7,297    
Net cash used in operating activities                   0    
Cash flows from investing activities                        
Purchases of fixed assets                   0    
Purchases of marketable securities                   0    
Sale & redemption of marketable securities                   0    
Acquisition of product rights                   0    
Business acquisition, net of cash acquired                   0    
Net cash (used in) provided by investing activities                   0    
Cash flows from financing activities                        
Proceeds from exercise of options                   0    
Net proceeds from public offerings                   0    
Proceeds from shares issued under employee stock purchase plan                   0    
Net cash provided by financing activities                   0    
Effect of exchange rate changes on cash                   0    
Net increase in cash and cash equivalents                   0    
Cash and cash equivalents, beginning of period         0         0    
Cash and cash equivalents, end of period   0       0       0 0  
Balances without adoption of Topic 606                        
Cash flows from operating activities                        
Net loss                   (133,174)    
Adjustments to reconcile net loss to net cash used in operating activities:                        
Depreciation and amortization                   26,087    
Change in the fair value of deferred and contingent consideration                   19,340    
Amortization of premiums and accretion of discounts on investments, net                   (433)    
Non-cash interest expense                   7,518    
Loss on disposal of asset                   2    
Amortization of debt issuance costs                   524    
Share-based compensation expense                   33,252    
Unrealized foreign currency transaction gains                   (59)    
Changes in operating assets and liabilities:                        
Inventory                   (5,907)    
Prepaid expenses and other current assets                   (1,609)    
Trade receivables, net                   (29,589)    
Deposits and other assets                   (1,093)    
Accounts payable and accrued expenses                   41,757    
Other liabilities                   1,932    
Deferred revenue                   13,811    
Net cash used in operating activities                   (27,641)    
Cash flows from investing activities                        
Purchases of fixed assets                   (7,097)    
Purchases of marketable securities                   (68,614)    
Sale & redemption of marketable securities                   90,423    
Acquisition of product rights                   (8,433)    
Business acquisition, net of cash acquired                   (48,892)    
Net cash (used in) provided by investing activities                   (42,613)    
Cash flows from financing activities                        
Proceeds from exercise of options                   10,868    
Net proceeds from public offerings                   117,916    
Proceeds from shares issued under employee stock purchase plan                   2,787    
Net cash provided by financing activities                   131,571    
Effect of exchange rate changes on cash                   (3,611)    
Net increase in cash and cash equivalents                   57,706    
Cash and cash equivalents, beginning of period         $ 111,792         111,792    
Cash and cash equivalents, end of period   $ 169,498       $ 111,792       $ 169,498 $ 111,792