XML 23 R7.htm IDEA: XBRL DOCUMENT v3.8.0.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Cash flows from operating activities      
Net loss $ (244,614) $ (194,375) $ (77,443)
Adjustments to reconcile net loss to net cash used in operating activities      
Depreciation and amortization 87,020 55,572 32,446
Equity based compensation 67,840 49,402 31,015
Gain on sale of a business 0 0 (2,997)
Amortization of discount and issuance costs on convertible notes 5,830 0 0
Other non-cash adjustments 1,198 331 3,027
Changes in operating assets and liabilities:      
Accounts receivable 18,172 9,217 4,033
Inventories (9,454) 1,351 (131)
Prepaid expenses and other current assets (39,124) (16,179) (29,513)
Accounts payable and accrued expenses 104,184 126,013 135,855
Deferred revenue and other liabilities 81,354 51,914 47,031
Other assets (2,428) (1,998) (136)
Net cash provided by operating activities 33,634 62,814 135,121
Cash flows from investing activities      
Purchase of short-term and long-term investments (54,551) (88,112) (207,303)
Sale and maturities of short-term investments 71,095 119,810 133,596
Purchase of property and equipment (100,451) (96,707) (44,648)
Site and software development costs (46,428) (31,379) (17,536)
Cash received from the sale of a business (net of cash sold) 0 1,508 2,860
Other investing activities, net 0 (1,000) (4,697)
Net cash used in investing activities (130,335) (95,880) (137,728)
Cash flows from financing activities      
Proceeds from issuance of convertible notes, net of issuance costs 420,449 0 0
Premiums paid for capped call confirmations (44,160) 0 0
Taxes paid related to net share settlement of equity awards (1,562) (21,092) (19,111)
Net proceeds from exercise of stock options 244 209 495
Net cash provided by (used in) financing activities 374,971 (20,883) (18,616)
Effect of exchange rate changes on cash and cash equivalents 850 (387) (460)
Net increase (decrease) in cash and cash equivalents 279,120 (54,336) (21,683)
Cash and cash equivalents      
Beginning of year 279,840 334,176 355,859
End of year 558,960 279,840 334,176
Supplemental disclosure of non-cash investing activities      
Purchase of property and equipment included in accounts payable and accrued expenses and in other liabilities 8,533 1,336 5,258
Construction costs capitalized under finance lease obligation and other leases $ 47,276 $ 53,894 $ 27,295