XML 17 R7.htm IDEA: XBRL DOCUMENT v3.10.0.1
Condensed Consolidated Statement of Cash Flows (Unaudited) - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2018
Sep. 30, 2017
Operating activities    
Net loss $ (107,373) $ (86,981)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation 4,693 4,582
Amortization of premium on investments 584 1,503
Unrealized loss (gain) on short-term investments 1,103 3
Loss (gain) on disposal of property and equipment 53 3
Stock-based compensation 38,432 27,608
Realized foreign currency gain (1,074) 0
Realized gain on sales of available-for-sale securities (87) (143)
Changes in operating assets and liabilities:    
Accounts receivable (14,735) (13,180)
Prepaid expenses and other current assets 1,935 33
Other assets 1,350 (1,657)
Accounts payable 4,622 184
Accrued liabilities (9,885) (114)
Deferred revenue 19,660 2,021
Lease financing liability 35 474
Other long-term liabilities 2,008 337
Net cash used in operating activities (58,679) (65,327)
Investing activities    
Purchases of property and equipment (4,852) (4,992)
Proceeds from sale of property and equipment 184 5
Purchases of available-for-sale securities (110,156) (102)
Proceeds from sales of available-for-sale securities 8,167 21,109
Proceeds from maturities of available-for-sale securities 47,390 33,849
Net cash provided by investing activities (59,267) 49,869
Financing activities    
Borrowings under capital lease obligations 49 0
Repayments of lease liability (302) (302)
Proceeds from follow-on offerings, net of underwriting discounts and commission costs 0 471,205
Cash paid for payroll taxes on restricted stock unit releases (13,288) (5,970)
Proceeds from issuance of common stock 24,598 28,556
Payments of deferred offering costs 0 (430)
Net cash provided by financing activities 11,057 493,059
Effect of exchange rate change on cash and cash equivalents (47) (10)
Net decrease in cash and cash equivalents (106,936) 477,591
Total cash and cash equivalents at beginning of period 673,658 173,782
Total cash and cash equivalents at end of period $ 566,722 $ 651,373