XML 25 R8.htm IDEA: XBRL DOCUMENT v3.24.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Operating activities      
Net loss $ (1,368,833) $ (724,008) $ (459,965)
Adjustments to reconcile net loss to net cash used in operating activities:      
Depreciation of long-lived assets 51,986 30,402 20,900
Amortization of intangible assets 19,097 21,195 2,469
Lower of cost or net realizable value inventory adjustment and provision for excess and obsolete inventory 93,742 1,957 2,158
Stock-based compensation 162,908 179,627 76,470
Provision for losses on accounts receivable 8,407    
Loss on extinguishment of debt   986  
Amortization of debt issuance costs and discount on convertible senior notes 2,213 2,710 3,018
Provision for common stock warrants 11,209 12,683 6,566
Deferred income tax (benefit)/expense (8,534) 170 (16,197)
Impairment 20,014 5,218 10,224
Impairment of goodwill 249,480    
Loss/(benefit) on service contracts 56,633 (8,645) 63,124
Fair value adjustment to contingent consideration 30,024 16,468 11,176
Net realized loss on investments 12,806 1,395 81
(Accretion)/amortization of premium on available-for-sale securities (6,610) 990 9,232
Lease origination costs (9,600) (8,815) (10,410)
Loss on disposal of assets   268  
Change in fair value for equity securities (11,421) 18,159 (6,738)
Loss on equity method investments 41,786 20,166 5,704
Changes in operating assets and liabilities that provide (use) cash:      
Accounts receivable (122,768) (30,920) (27,601)
Inventory (408,631) (365,666) (100,949)
Contract assets (40,258) (39,515) (10,608)
Prepaid expenses and other assets 32,549 (92,521) (32,392)
Accounts payable, accrued expenses, and other liabilities 21,722 88,458 24,908
Payments of contingent consideration (2,895)    
Deferred revenue and other contract liabilities 58,404 40,615 70,654
Net cash used in operating activities (1,106,570) (828,623) (358,176)
Investing activities      
Purchases of property, plant and equipment (665,208) (436,610) (172,166)
Purchase of intangible assets     (928)
Proceeds from sales of long-lived assets 1,104    
Purchases of equipment related to power purchase agreements and equipment related to fuel delivered to customers (30,918) (27,263) (20,172)
Purchase of available-for-sale securities   (838,622) (3,159,372)
Proceeds from sales of available-for-sale securities 345,264 475,676 778,038
Proceeds from maturities of available-for-sale securities 1,006,161 247,879 1,129,088
Purchase of equity securities   (5,000) (169,793)
Proceeds from sales of equity securities 144,250   28,536
Net cash paid for acquisitions   (56,906) (136,526)
Cash paid for non-consolidated entities and non-marketable equity securities (72,601) (38,524) (17,596)
Net cash provided by/(used in) investing activities 728,052 (679,370) (1,740,891)
Financing activities      
Proceeds from exercise of warrants, net of transaction costs     15,445
Payments of contingent consideration (10,105) (2,667) (1,541)
Proceeds from public and private offerings, net of transaction costs     3,587,833
Payments of tax withholding on behalf of employees for net stock settlement of stock-based compensation (10,007) (23,735) (32,092)
Proceeds from exercise of stock options 1,613 2,301 7,520
Principal payments on long-term debt (6,010) (121,389) (48,681)
Proceeds from finance obligations 104,251 122,886 108,925
Principal repayments of finance obligations and finance leases (73,625) (54,853) (39,630)
Net cash provided by/(used in) financing activities 6,117 (77,457) 3,597,779
Effect of exchange rate changes on cash (7,799) 2,600 (802)
(Decrease)/increase in cash and cash equivalents (555,597) (1,790,639) 1,168,865
Increase in restricted cash 175,397 207,789 329,045
Cash, cash equivalents, and restricted cash beginning of period 1,549,344 3,132,194 1,634,284
Cash, cash equivalents, and restricted cash end of period 1,169,144 1,549,344 3,132,194
Supplemental disclosure of cash flow information      
Cash paid for interest, net of capitalized interest of $8.1 million, $13.1 million and $4.8 million 41,811 35,520 19,327
Summary of non-cash activity      
Recognition of right of use asset - finance leases 8,908 25,650 28,180
Recognition of right of use asset - operating leases 90,795 178,222 110,337
Net tangible assets (liabilities) acquired (assumed) in a business combination   5,342 (26,066)
Common stock issued for acquisitions   6,107 46,697
Intangible assets acquired in a business combination   73,952 120,962
Conversion of convertible senior notes to common stock     15,345
Net transfers between inventory and long-lived assets 728 1,619 6,297
Earnouts from acquisitions paid in stock 8,000    
Accrued purchase of fixed assets, cash to be paid in subsequent period $ 160,578 $ 62,320 14,006
Settlement of liability from acquisitions     $ 7,100