XML 78 R7.htm IDEA: XBRL DOCUMENT v3.19.3
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2019
Sep. 30, 2018
Cash flows from operating activities:    
Net loss $ (161,938) $ (121,175)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation and amortization of property, plant and equipment 21,750 14,349
Loss on disposal of property, plant and equipment 880 853
Realized gain on sale of marketable securities (3,340) (243)
Deferred tax benefit (341)  
Stock-based compensation 60,657 44,554
Loss on settlement of convertible notes 10,558  
Non-cash lease expense 2,681  
Amortization of liabilities 27,656 18,433
Amortization of premium on short-term investments (2,889) (2,338)
Amortization of intangible assets 2,426 1,847
Changes in assets and liabilities:    
Accrued interest (3,004) 1,901
Accounts receivable, net (36,871) (15,497)
Inventory, net (14,525) (12,590)
Prepaid expenses and other current assets 434 (13,777)
Accounts payable (8,983) 16,603
Accrued liabilities 24,779 (1,600)
Other short-term liabilities 196 87
Other long-term liabilities 16,302 504
Other long-term assets (22,754)  
Net cash used in operating activities (86,326) (68,089)
Cash flows from investing activities:    
Purchases of marketable securities (604,129) (1,081,662)
Maturities and sales of marketable securities 1,449,330 407,287
Purchases of property, plant and equipment (130,970) (97,987)
Internally developed software (530) (135)
Net cash provided by (used in) investing activities 713,701 (772,497)
Cash flows from financing activities:    
Proceeds from issuance of convertible notes, net 729,477 896,431
Proceeds from financing obligation   6,750
Proceeds from exercise of common stock options 6,389 6,376
Proceeds in connection with the Company's employee stock purchase plan 4,137 2,663
Payments on settlement of convertible notes (493,356)  
Payments of deferred financing costs   (25)
Proceeds from construction loan 319 17,271
Payments on mortgage payable   (4,678)
Stock issuance costs (409)  
Net cash provided by financing activities 246,557 924,788
Effects of exchange rate changes on cash and cash equivalents (28) 12
Net increase in cash and cash equivalents 873,904 84,214
Cash and cash equivalents, beginning of period 160,430 77,491
Cash and cash equivalents, end of period 1,034,334 161,705
Supplemental disclosure of non-cash investing and financing activities:    
Property, plant and equipment acquired but not paid 16,933 25,714
Unrealized gain (loss) on available-for-sale investments, before tax 1,431 (668)
Issuance of 86,532 and 86,882 shares of common stock to fund the Company's 401(k) matching contribution for 2018 and 2017, respectively 7,409 4,303
Issuance of 2,159,017 shares of common stock upon settlement of convertible notes 182,436  
Retirement of equity component of convertible notes settled (300,768)  
Interest paid $ 9,117 $ 4,638