v3.20.1
Condensed Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
3 Months Ended
Mar. 31, 2020
Mar. 31, 2019
Cash flows from operating activities:    
Net loss $ (54,612) $ (9,732)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:    
Depreciation and amortization 8,448 2,849
Stock-based compensation expense 30,405 17,864
Provision for doubtful accounts 3,788 181
Non-cash interest expense   344
Amortization of premiums on short-term investments   (182)
Other items, net (14)  
Changes in operating assets and liabilities:    
Accounts receivable 32,458 8,702
Inventories 5,736 2,187
Prepaid expenses and other current assets (13,814) (8,116)
Operating lease right-of-use assets 9,213 3,440
Deferred cost of revenue   552
Other noncurrent assets 1,469 685
Accounts payable and accrued liabilities 10,117 (18,606)
Operating lease liabilities 13,560 (2,491)
Other long-term liabilities 1,166 (581)
Deferred revenue (1,979) (7,800)
Net cash provided by (used in) operating activities 45,941 (10,704)
Cash flows from investing activities:    
Purchase of property and equipment (45,317) (5,071)
Proceeds from resolution of purchase acquisition contingencies 1,058  
Purchases of short-term investments   (12,365)
Sales/maturities of short-term investments   27,310
Net cash provided by (used in) investing activities (44,259) 9,874
Cash flows from financing activities:    
Proceeds from borrowing, net of issuance costs 69,325  
Repayments made on borrowings (1,250)  
Proceeds from equity issued under at-the-market program, net of offering costs   98,025
Proceeds from equity issued under incentive plans 2,743 10,091
Net cash provided by financing activities 70,818 108,116
Net Increase in cash, cash equivalents and restricted cash 72,500 107,286
Cash, cash equivalents and restricted cash—Beginning of period 517,333 155,564
Cash, cash equivalents and restricted cash—End of period 589,833 262,850
Cash, cash equivalents and restricted cash at end of period:    
Cash and cash equivalents 588,294 236,500
Restricted cash 1,539 26,350
Cash, cash equivalents and restricted cash—End of period 589,833 262,850
Supplemental disclosures of cash flow information:    
Cash paid for interest 1,067 542
Cash paid for income taxes 238 557
Supplemental disclosures of non-cash investing and financing activities:    
Unpaid portion of property and equipment purchases 14,148 4,769
Unpaid portion of purchased intangibles $ 400  
Unpaid portion of at-the-market offering costs   $ 249