XML 49 R8.htm IDEA: XBRL DOCUMENT v3.19.3.a.u2
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2017
Operating activities      
Net loss $ (76,970) $ (86,420) $ (120,875)
Adjustments to reconcile net loss to net cash used in operating activities:      
Depreciation 11,147 6,562 6,099
Amortization of finance lease right-of-use assets 10,307 0 0
Net amortization (accretion) of premium (discount) on investments (3,667) (42) 1,844
Unrealized loss (gain) on cash equivalents and short-term equity investments (88) 1,120 2
Loss (gain) on disposal of property and equipment (42) 53 3
Stock-based compensation 66,267 52,142 37,539
Realized foreign currency gain 0 (1,074) 0
Realized gain on sales of available-for-sale securities 0 (87) (143)
Changes in operating assets and liabilities:      
Accounts receivable, net ($42,365, $(43,486) and $98 from a related party) 35,229 (55,232) 1,996
Inventories (6,887) 0 0
Prepaid expenses and other current assets ($(125,210), $0 and $0 from a related party) (128,598) (129) (1,911)
Other assets (3,253) 1,090 (2,365)
Accounts payable (3,051) 3,630 (714)
Accrued and other liabilities ($36,439, $172 and $(1,343) from a related party) 18,288 5,606 9,196
Deferred revenue (49,941) (5,031) 174
Lease obligations 0 32 1,023
Accrued interest for finance lease liabilities 194 0 0
Other long-term liabilities 52,360 1,636 1,619
Net cash used in operating activities (78,705) (76,144) (66,513)
Investing activities      
Purchases of property and equipment (5,762) (8,020) (8,500)
Proceeds from sale of property and equipment 7 184 5
Purchases of available-for-sale securities and term deposit (411,299) (576,880) (169)
Proceeds from sales of available-for-sale securities 0 8,167 21,109
Proceeds from maturities of investments 537,072 54,426 57,421
Net cash provided by (used in) investing activities 120,018 (522,123) 69,866
Financing activities      
Borrowings under capital lease obligations 0 49 0
Repayments of capital lease obligations 0 (6) 0
Repayments of finance lease liabilities (11,925) 0 0
Repayments of lease obligations (403) (403) (403)
Proceeds from follow-on offerings, net of underwriting discounts and commission costs 0 0 471,205
Cash paid for payroll taxes on restricted stock unit releases (12,750) (15,612) (8,296)
Proceeds from issuance of common stock 20,778 29,847 34,910
Payments of deferred offering costs 0 0 (944)
Net cash provided by (used in) financing activities (4,300) 13,875 496,472
Effect of exchange rate change on cash and cash equivalents (5) (8) 51
Net increase (decrease) in cash and cash equivalents 37,008 (584,400) 499,876
Total cash and cash equivalents at beginning of period 89,258 673,658 173,782
Total cash and cash equivalents at end of period 126,266 89,258 673,658
Supplemental cash flow information:      
Interest payments 174 218 255
Balance in accounts payable and accrued liabilities related to purchases of property and equipment 460 276 3,781
Deferred offering costs recorded in accounts payable and accrued liabilities $ 0 $ 24 $ 35