v3.10.0.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2018
Dec. 31, 2017
Dec. 31, 2016
Cash flows from operating activities      
Net loss $ (1,255,911) $ (3,445,066) $ (514,643)
Adjustments to reconcile net loss to net cash used in operating activities:      
Depreciation and amortization 91,648 61,288 29,115
Stock-based compensation 538,211 2,639,895 31,842
Deferred income taxes (383) (17,490) (7,952)
Excess inventory reserve and related asset impairment 0 21,997 0
Lease exit charges 33,033 0 0
Other (903) (6,356) 889
Change in operating assets and liabilities, net of effect of acquisitions:      
Accounts receivable, net of allowance (77,506) (104,357) (118,434)
Prepaid expenses and other current assets 1,594 (39,783) (20,521)
Other assets 21,785 (4,771) (5,064)
Accounts payable (33,532) 49,696 6,486
Accrued expenses and other current liabilities (14,325) 100,988 (19,728)
Other liabilities 6,365 9,292 6,765
Net cash used in operating activities (689,924) (734,667) (611,245)
Cash flows from investing activities      
Purchases of property and equipment (120,242) (84,518) (66,441)
Sales of property and equipment 11,276 0 0
Purchases of intangible assets (2,565) (8,107) (572)
Non-marketable investments (22,495) (10,030) (6,513)
Cash paid for acquisitions, net of cash acquired (815) (386,011) (104,001)
Issuance of notes receivable from officers/stockholders 0 0 (15,000)
Repayment of notes receivables from officers/stockholders 0 0 15,000
Purchases of marketable securities (1,653,918) (3,862,637) (1,565,347)
Sales of marketable securities 45,007 511,068 195,898
Maturities of marketable securities 2,438,206 2,483,225 532,690
Net cash provided by (used in) investing activities 694,454 (1,357,010) (1,014,286)
Cash flows from financing activities      
Proceeds from the exercise of stock options 47,988 11,379 731
Stock repurchases from employees for tax withholdings (551) (394,156) 0
Proceeds from issuance of Class A common stock in initial public offering, net of underwriting commissions 0 2,657,797 0
Borrowings from revolving credit facility 0 0 5,000
Principal payments on revolving credit facility 0 0 (5,000)
Payments of initial public offering issuance costs 0 (9,672) (5,395)
Repurchase of Class B voting common stock and Series FP voting preferred stock 0 0 (10,593)
Proceeds from issuances of preferred stock, net of issuance costs 0 0 1,157,147
Net cash provided by financing activities 47,437 2,265,348 1,141,890
Change in cash, cash equivalents, and restricted cash 51,967 173,671 (483,641)
Cash, cash equivalents, and restricted cash, beginning of period 337,007 163,336 646,977
Cash, cash equivalents, and restricted cash, end of period 388,974 337,007 163,336
Supplemental disclosures      
Cash paid for income taxes 3,598 6,226 1,686
Supplemental disclosures of non-cash activities      
Assumed equity awards in acquisitions 0 3,911 0
Purchase consideration liabilities related to acquisitions 0 16,486 21,085
Repurchase of Class B voting common stock and Series FP voting preferred stock in exchange for notes receivable from officers/stockholders 0 0 13,500
Recognition of leased facility asset and lease financing obligation 1,735 1,451 1,789
Net change in accounts payable and accrued expenses and other current liabilities related to property and equipment additions (7,764) 13,139 2,084
Deferred offering costs accrued, unpaid 0 0 1,739
Class B Common Stock      
Supplemental disclosures of non-cash activities      
Issuance of Class B common stock related to acquisitions $ 0 $ 0 $ 96,145