v3.19.3
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2019
Sep. 30, 2018
Sep. 30, 2019
Sep. 30, 2018
Cash flows from operating activities        
Net loss $ (227,375) $ (325,148) $ (792,956) $ (1,064,243)
Adjustments to reconcile net loss to net cash used in operating activities:        
Depreciation and amortization 20,646 24,898 66,625 68,966
Stock-based compensation 161,228 126,809 519,358 416,439
Deferred income taxes 170 (124) 195 129
Lease exit charges 0 29,340 0 33,268
Gain on divestiture 0 0 (39,883) 0
Amortization of debt discount and issuance costs 6,412 0 6,412 0
Other (1,245) 8,608 (4,561) (679)
Change in operating assets and liabilities, net of effect of acquisitions:        
Accounts receivable, net of allowance (62,855) (18,834) (30,736) 15,937
Prepaid expenses and other current assets (490) (435) (4,980) (3,059)
Operating lease right-of-use asset 35,633 0 57,254 0
Other assets 2,139 7,089 4,540 20,314
Accounts payable 4,220 2,084 28,319 (44,638)
Accrued expenses and other current liabilities 23,243 14,841 16,655 (14,664)
Operating lease liabilities (36,008) 0 (63,259) 0
Other liabilities (1,867) (1,671) (1,099) 8,360
Net cash used in operating activities (76,149) (132,543) (238,116) (563,870)
Cash flows from investing activities        
Purchases of property and equipment (7,938) (26,285) (27,385) (97,501)
Sales of property and equipment 0 0 29 0
Proceeds from divestiture, net 0 0 73,796 0
Non-marketable investments (1,050) (250) (3,750) (21,260)
Purchases of marketable securities (1,115,358) (444,369) (1,924,398) (1,318,467)
Sales of marketable securities 24,948 0 102,437 45,007
Maturities of marketable securities 411,079 560,465 1,193,739 1,926,802
Other 0 0 1,000 (2,565)
Net cash provided by (used in) investing activities (688,319) 89,561 (584,532) 532,016
Cash flows from financing activities        
Proceeds from issuance of convertible notes, net of issuance costs 1,251,848 0 1,251,848 0
Purchase of capped calls (102,086) 0 (102,086) 0
Proceeds from the exercise of stock options 7,788 142 14,726 47,865
Stock repurchases from employees for tax withholdings 0 0 0 (551)
Net cash provided by financing activities 1,157,550 142 1,164,488 47,314
Change in cash, cash equivalents, and restricted cash 393,082 (42,840) 341,840 15,460
Cash, cash equivalents, and restricted cash, beginning of period 337,732 395,307 388,974 337,007
Cash, cash equivalents, and restricted cash, end of period 730,814 352,467 730,814 352,467
Supplemental disclosures        
Cash paid for income taxes, net $ 643 $ 758 $ 564 $ 3,155