v3.23.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended 12 Months Ended
Jun. 30, 2023
Jun. 30, 2022
Jun. 30, 2023
Jun. 30, 2022
Dec. 31, 2022
Operating activities          
Net loss     $ (442,959) $ (329,785)  
Adjustments to reconcile net loss to net cash used in operating activities:          
Depreciation of long-lived assets     21,266 11,204  
Amortization of intangible assets $ 4,800 $ 5,200 9,755 10,374  
Lower of cost or net realizable value inventory adjustment and provision for excess and obsolete inventory     11,760    
Payments of contingent consideration     (2,895)    
Stock-based compensation     83,220 88,245  
Provision for losses on accounts receivable     896    
Amortization of debt issuance costs and discount on convertible senior notes     1,195 1,336  
Provision for common stock warrants     14,302 3,942  
Deferred income tax benefit     1,512 (916)  
Impairment 9,986   11,069    
Loss/(benefit) on service contracts     856 (18,131)  
Fair value adjustment to contingent consideration     24,077 (2,605)  
Net realized loss on investments (264) 468 (263) 1,315  
(Accretion)/amortization of premium on available-for-sale securities     (5,949) 4,560  
Lease origination costs     (5,567) (3,150)  
Loss on disposal of assets       268  
Change in fair value for equity securities     (8,917) 18,643  
Loss on equity method investments 7,623 2,191 12,940 6,024  
Changes in operating assets and liabilities that provide (use) cash:          
Accounts receivable     (88,091) 31,990  
Inventory     (269,707) (159,445)  
Contract assets     (23,807) (386)  
Prepaid expenses and other assets     9,178 (51,654)  
Accounts payable, accrued expenses, and other liabilities     (720) 38,663  
Deferred revenue and other contract liabilities     21,838 (55,605)  
Net cash used in operating activities     (625,011) (405,113)  
Investing activities          
Purchases of property, plant and equipment     (319,322) (157,838)  
Purchases of equipment related to power purchase agreements and equipment related to fuel delivered to customers     (19,309) (15,268)  
Purchase of available-for-sale securities       (143,230)  
Proceeds from sales of available-for-sale securities       475,676  
Proceeds from maturities of available-for-sale securities     908,749 167,629  
Purchase of equity securities       (4,990)  
Proceeds from sales of equity securities     76,263    
Net cash paid for acquisitions       (26,473)  
Cash paid for non-consolidated entities and non-marketable equity securities     (40,894) (30,139)  
Net cash provided by investing activities     605,487 265,367  
Financing activities          
Payments of contingent consideration     (10,105) (2,667)  
Payments of tax withholding on behalf of employees for net stock settlement of stock-based compensation     (2,954) (2,660)  
Proceeds from exercise of stock options     732 820  
Principal payments on long-term debt (5,100)   (5,407) (36,089)  
Proceeds from finance obligations     77,589 35,048  
Principal repayments of finance obligations and finance leases     (34,211) (25,168)  
Net cash provided by (used in) financing activities     25,644 (30,716)  
Effect of exchange rate changes on cash     (2,139) (55)  
Decrease in cash and cash equivalents     (111,212) (225,318)  
Increase in restricted cash     115,193 54,801  
Cash, cash equivalents, and restricted cash beginning of period     1,549,344 3,132,194 $ 3,132,194
Cash, cash equivalents, and restricted cash end of period 1,553,325 $ 2,961,677 1,553,325 2,961,677 $ 1,549,344
Supplemental disclosure of cash flow information          
Cash paid for interest, net of capitalized interest of $4.0 million     20,101 18,737  
Summary of non-cash activity          
Recognition of right of use asset - finance leases     4,818 12,644  
Recognition of right of use asset - operating leases     56,328 40,352  
Net tangible assets (liabilities) acquired (assumed) in a business combination       (5,124)  
Intangible assets acquired in a business combination       60,522  
Net transfers between inventory and long-lived assets     705 916  
Earnouts from acquisition paid in stock $ 8,000   8,000    
Accrued purchase of fixed assets, cash to be paid in subsequent period     $ 109,490 $ 39,681