XML 37 R8.htm IDEA: XBRL DOCUMENT v3.23.2
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2023
Jun. 30, 2022
Operating Activities:    
Net loss $ (235,897) $ (307,077)
Reconciliation of net loss to net cash used in operating activities:    
Depreciation and amortization 19,110 13,485
Non-cash stock-based compensation 48,939 70,981
Provision for excess and obsolete inventory 31,546 155,662
Impairment of long-lived assets 10,081 0
Right-of-use assets expensed, net of credits received 0 (3,291)
Other items, net (89) (642)
Changes in operating assets and liabilities:    
Inventory (19,361) (403,725)
Accounts receivable, prepaid expenses, and other assets (266,482) 112,845
Accounts payable, accrued expenses, and other liabilities (443,238) 179,158
Deferred revenue 357,860 (76,809)
Net cash used in operating activities (497,531) (259,413)
Investing Activities:    
Capital expenditures (26,774) (41,402)
Internal-use software (4,563) 0
Net cash used in investing activities (31,337) (41,402)
Financing Activities:    
Net proceeds from sales of common stock 61,986 179,385
Net proceeds from the exercise of stock-based awards 345 1,050
Finance lease payments (26,784) (15,911)
Repayment of 2023 Convertible notes (325,000) 0
Payments of costs related to issuance of 2027 Convertible notes (3,591) 0
Net cash provided by (used in) financing activities (293,044) 164,524
Effect of exchange rate on cash, cash equivalents, and restricted cash (8,992) (4,453)
Net decrease in cash, cash equivalents, and restricted cash (830,904) (140,744)
Cash, cash equivalents, and restricted cash at beginning of period 1,348,845 1,528,259
Cash, cash equivalents, and restricted cash at end of period 517,941 1,387,515
Supplemental disclosure of non-cash activities:    
Sales of common stock not settled at end of period 5,986 0
Right-of-use assets from new lease agreements 0 69,366
Capital expenditures included in accounts payable and accrued expenses 6,591 17,890
Supplemental disclosure of cash flow information:    
Cash interest payments, net of amounts capitalized 11,294 8,604
Cash paid for income taxes $ 128 $ 17,778