XML 47 R8.htm IDEA: XBRL DOCUMENT v3.19.3
Condensed Consolidated Statement of Cash Flows (Unaudited) - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2019
Sep. 30, 2018
Operating activities    
Net income (loss) $ 21,153 $ (107,373)
Adjustments to reconcile net income (loss) to net cash used in operating activities:    
Depreciation 8,715 4,693
Amortization of finance lease right-of-use assets 7,720 0
Net amortization of premium and discount on investments (3,354) 584
Unrealized loss (gain) on cash equivalents and short-term equity investments (78) 1,103
Loss (gain) on disposal of property and equipment (10) 53
Stock-based compensation 48,865 38,432
Realized foreign currency gain 0 (1,074)
Realized gain on sales of available-for-sale securities 0 (87)
Changes in operating assets and liabilities:    
Accounts receivable 44,459 (14,735)
Inventories (4,908) 0
Prepaid expenses and other current assets (128,922) 1,935
Other assets (953) 1,350
Accounts payable (5,084) 4,622
Accrued and other liabilities 5,484 (9,885)
Deferred revenue (50,915) 19,660
Lease obligations 0 35
Accrued interest for finance lease liabilities 104 0
Other long-term liabilities 24,069 2,008
Net cash used in operating activities (33,655) (58,679)
Investing activities    
Purchases of property and equipment (4,017) (4,852)
Proceeds from sale of property and equipment 0 184
Purchases of available-for-sale securities and term deposit (155,932) (110,156)
Proceeds from sales of available-for-sale securities 0 8,167
Proceeds from maturities of investments 305,000 47,390
Net cash provided by (used in) investing activities 145,051 (59,267)
Financing activities    
Borrowings under capital lease obligations 0 49
Repayments of finance lease liabilities (8,810) 0
Repayments of lease obligations (302) (302)
Cash paid for payroll taxes on restricted stock unit releases (10,614) (13,288)
Proceeds from issuance of common stock 15,710 24,598
Net cash provided by (used in) financing activities (4,016) 11,057
Effect of exchange rate change on cash and cash equivalents (46) (47)
Net increase (decrease) in cash and cash equivalents 107,334 (106,936)
Total cash and cash equivalents at beginning of period 89,258 673,658
Total cash and cash equivalents at end of period $ 196,592 $ 566,722