v3.20.4
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Cash flows from operating activities:      
Net loss $ (17,507) $ (59,937) $ (8,857)
Adjustments to reconcile net loss to net cash provided by operating activities:      
Depreciation and amortization 36,206 15,669 8,389
Stock-based compensation expense 134,076 85,175 37,674
Amortization of right-of-use assets 28,743 22,328  
Amortization of content assets 22,392 2,914  
Provision for doubtful accounts 3,801 704 876
Other items net 524 1,101 1,465
Changes in operating assets and liabilities:      
Accounts receivable (196,046) (110,225) (50,673)
Inventories (4,181) (14,129) (2,953)
Prepaid expenses and other current assets (3,450) (9,934) (306)
Deferred cost of revenue   1,143 2,261
Other noncurrent assets (1,128) (3,060) (732)
Accounts payable 6,410 9,409 (98)
Accrued liabilities 103,218 74,512 17,914
Operating lease liabilities 12,999 11,658  
Other long-term liabilities 618 (3,024) (1,101)
Deferred revenue 21,517 (10,597) 10,063
Net cash provided by operating activities 148,192 13,707 13,922
Cash flows from investing activities:      
Purchase of property and equipment (82,382) (77,180) (18,327)
Purchase of business, net of cash acquired   (68,132)  
Proceeds from escrows associated with acquisition 1,058    
Purchase of intangible assets   (7,428)  
Purchases of short-term investments   (12,365) (53,806)
Sales/maturities of short-term investments   54,810 12,000
Net cash used in investing activities (81,324) (110,295) (60,133)
Cash flows from financing activities:      
Proceeds from borrowings, net of issuance costs 69,325 99,608  
Repayments of borrowings (74,325)    
Holdback payment for a prior business acquisition     (500)
Proceeds from equity issued under incentive plans, net of repurchases 16,806 28,181 25,025
Proceeds from equity issued under at-the-market offerings, net of offering costs 497,242 330,539  
Net cash provided by financing activities 509,048 458,328 24,525
Net increase (decrease) in cash, cash equivalents and restricted cash 575,916 361,740 (21,686)
Effect of exchange rate changes on cash, cash equivalents and restricted cash   29  
Cash, cash equivalents and restricted cash —Beginning of period 517,333 155,564 177,250
Cash, cash equivalents and restricted cash —End of period 1,093,249 517,333 155,564
Cash, cash equivalents and restricted cash at end of period:      
Cash and cash equivalents 1,092,815 515,479 155,564
Restricted cash 434 1,854  
Cash, cash equivalents and restricted cash —End of period 1,093,249 517,333 155,564
Supplemental disclosures of cash flow information:      
Cash paid for interest 3,470 3,095 493
Cash paid for income taxes 1,014 759 564
Supplemental disclosures of noncash investing and financing activities:      
Issuance of common stock for business combinations   69,684  
Unpaid portion of property and equipment purchases $ 1,242 10,762 $ 1,617
Unpaid portion of acquisition related expenses   2,190  
Unpaid portion of purchased intangibles   400  
Unpaid portion of at-the-market offering costs   $ 144