XML 43 R7.htm IDEA: XBRL DOCUMENT v3.25.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2024
Dec. 31, 2023
Dec. 31, 2022
Operating activities      
Net loss $ (2,104,905) $ (1,368,833) $ (724,008)
Adjustments to reconcile net loss to net cash used in operating activities:      
Depreciation of long-lived assets 61,115 51,986 30,402
Amortization of intangible assets 23,441 19,097 21,195
Lower of cost or net realizable value inventory adjustments and provision for excess and obsolete inventory 171,980 93,742 1,957
Stock-based compensation 82,203 162,908 179,627
Loss on extinguishment of convertible senior notes and debt 15,666   986
Provision for losses on accounts receivable 28,914 8,407  
Amortization of (premium)/discount of debt issuance costs on convertible senior notes and long-term debt (2,826) 2,213 2,710
Provision for common stock warrants 38,984 11,209 12,683
Deferred income tax (benefit)/expense (3,155) (8,534) 170
Impairment 949,315 269,494 5,218
Impairment of goodwill   249,500  
(Recovery)/loss on service contracts (3,039) 56,633 (8,645)
Loss on sale of long-lived assets 2,885   268
Fair value adjustment to contingent consideration (15,847) 30,024 16,468
Net realized loss on investments   12,806 1,395
(Accretion)/amortization of premium on available-for-sale securities   (6,610) 990
Lease origination costs (3,508) (9,600) (8,815)
Change in fair value for equity securities   (11,421) 18,159
Change in fair value of convertible senior note 3,424    
Loss on equity method investments 32,177 41,786 20,166
Change in fair value of derivative financial instruments 1,665    
Changes in operating assets and liabilities that provide/(use) cash:      
Accounts receivable 57,653 (122,768) (30,920)
Inventory 129,291 (408,631) (365,666)
Contract assets (2,493) (40,258) (39,515)
Prepaid expenses and other assets (31,175) 32,549 (92,521)
Accounts payable, accrued expenses, and other liabilities (59,464) 21,722 88,458
Payments of contingent consideration (9,924) (2,895)  
Payments of operating lease liability, net (5,343)    
Deferred revenue and other contract liabilities (85,677) 58,404 40,615
Net cash used in operating activities 728,643 1,106,570 828,623
Investing activities      
Purchases of property, plant and equipment (287,098) (665,208) (436,610)
Proceeds from sales of long-lived assets 500 1,104  
Purchases of equipment related to power purchase agreements and equipment related to fuel delivered to customers (47,150) (30,918) (27,263)
Purchases of available-for-sale securities     (838,622)
Proceeds from sales of available-for-sale securities   345,264 475,676
Proceeds from maturities of available-for-sale securities   1,006,161 247,879
Purchases of equity securities     (5,000)
Proceeds from sales of equity securities   144,250  
Net cash paid for acquisitions     (56,906)
Cash paid for non-consolidated entities and non-marketable equity securities (68,616) (72,601) (38,524)
Net cash (used in)/provided by investing activities (402,364) 728,052 (679,370)
Financing activities      
Payments of contingent consideration (19,901) (10,105) (2,667)
Proceeds from public and private offerings, net of transaction costs 857,872    
Payments of tax withholding on behalf of employees for net stock settlement of stock-based compensation (2,527) (10,007) (23,735)
Proceeds from non-controlling interests 10,163    
Proceeds from exercise of stock options 154 1,613 2,301
Proceeds from convertible debentures 190,000    
Cash penalty from early settlement of convertible senior notes 612    
Principal payment on convertible debentures (22,500)    
Principal payments on long-term debt (3,526) (6,010) (121,389)
Proceeds from finance obligations 60,287 104,251 122,886
Principal repayments of finance obligations (87,464) (73,625) (54,853)
Net cash provided by/(used in) financing activities 983,170 6,117 (77,457)
Effect of exchange rate changes on cash 19,402 (7,799) 2,600
Increase/(decrease) in cash and cash equivalents 70,660 (555,597) (1,790,639)
(Decrease)/increase in restricted cash (199,095) 175,397 207,789
Cash, cash equivalents, and restricted cash beginning of period 1,169,144 1,549,344 3,132,194
Cash, cash equivalents, and restricted cash end of period 1,040,709 1,169,144 1,549,344
Supplemental disclosure of cash flow information      
Cash paid for interest, net of capitalized interest of $8.3 million, $8.1 million and $13.1 million, respectively 44,962 41,811 35,520
Summary of non-cash activity      
Recognition of right of use asset - finance leases 163 8,908 25,650
Recognition of right of use asset - operating leases 21,267 90,795 178,222
Net tangible assets (liabilities) acquired (assumed) in a business combination     5,342
Common stock issued for acquisitions     6,107
Contributions of propert, plant, and equipment from consolidated VIE 10,495    
Intangible assets acquired in a business combination     73,952
Net transfers between inventory and long-lived assets 22,161 728 1,619
Earnouts from acquisitions paid in common stock and warrants 18,241 8,000  
Purchases of long-lived asset from financing agreement 2,000    
Accrued purchase of fixed assets, cash to be paid in subsequent period $ 54,948 $ 160,578 $ 62,320