XML 20 R8.htm IDEA: XBRL DOCUMENT v3.19.2
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Operating activities    
Net loss $ (204,850) $ (111,751)
Adjustments to reconcile net loss to net cash used in operating activities:    
Amortization of debt discount and deferred financing 2,104 5,273
Depreciation and amortization 2,145 1,942
Stock-based compensation 22,679 13,819
Loss on exchange of convertible debt 40,624 0
Change in fair value of derivatives 0 2,739
Non-cash changes in the fair value of contingent consideration payable 1,863 1,400
Foreign currency remeasurement loss 530 2,107
Changes in operating assets and liabilities:    
Accounts receivable (6,829) (6,043)
Inventories (1,908) (3,449)
Prepaid expenses and other current assets (3,523) 4,584
Accounts payable and accrued expenses 12,453 (11,801)
Other non-current assets and liabilities (819) (336)
Deferred reimbursements (1,500) (5,000)
Net cash used in operating activities (137,031) (106,516)
Investing activities    
Sale and redemption of marketable securities 261,425 210,239
Purchases of marketable securities (191,318) (380,234)
Capital expenditures (5,110) (1,881)
Net cash provided by (used in) investing activities 64,997 (171,876)
Financing activities    
Proceeds from issuance of common stock, net of issuance costs 188,994 294,584
Payment of finance leases (98)  
Payment of finance leases   (142)
Purchase of vested restricted stock units (2,555) (2,027)
Proceeds from termination of capped call confirmations 19,875 0
Proceeds from exercise of stock options 6,760 7,580
Proceeds of exercise of warrants 812 3,617
Net cash provided by financing activities 213,788 303,612
Effect of exchange rate changes on cash, cash equivalents, and restricted cash (941) (1,016)
Net increase in cash, cash equivalents, and restricted cash 140,813 24,204
Cash, cash equivalents, and restricted cash at beginning of period 82,375 51,237
Cash, cash equivalents, and restricted cash at end of period 223,188 75,441
Cash paid during the period for interest    
Cash paid during the period for interest 9,302 3,774
Capital expenditures, unpaid 837 0
Capital expenditures funded by capital lease 0 81
Payment of contingent consideration in shares $ 9,316 $ 0