v3.22.2.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
OPERATING ACTIVITIES:    
Net loss $ (93,938) $ (388)
Adjustments to reconcile net loss to net cash provided by operating activities:    
Depreciation and amortization 138,641 97,084
Stock-based compensation 50,193 28,521
Impairment of intangible assets 3,320 0
(Gain) loss on disposal of property and equipment (59) 78
Provision for doubtful accounts (357) 217
Amortization of debt discount and issuance costs 5,092 3,223
Non-cash lease expense 1,340 1,825
Deferred income taxes (1,626) (91,540)
Unrealized foreign currency gains, net (5,231) (2,578)
Changes in operating assets and liabilities, net of effect of business acquisitions:    
Accounts receivable 125,268 (92,131)
Prepaid expenses and other assets (1,751) (297)
Accounts payable and accrued expenses (116,575) 113,795
Other liabilities (472) 191
Net cash provided by operating activities 103,845 58,000
INVESTING ACTIVITIES:    
Purchases of property and equipment (18,004) (13,985)
Capitalized internal use software development costs (11,177) (8,525)
Mergers and acquisitions, net of cash acquired (20,755) (653,060)
Net cash used in investing activities (49,936) (675,570)
FINANCING ACTIVITIES:    
Proceeds from Convertible Senior Notes offering 0 400,000
Proceeds from issuance of debt, net of debt discount 0 349,200
Payment for capped call options 0 (38,960)
Payment for debt issuance costs 0 (30,378)
Proceeds from exercise of stock options 1,771 8,747
Proceeds from issuance of common stock under employee stock purchase plan 2,141 1,154
Repayment of debt (2,700) (900)
Repayment of financing lease (602) 0
Purchase of treasury stock (15,663) 0
Taxes paid related to net share settlement (11,859) 0
Payment of indemnification claims holdback (1,409) 0
Net cash (used in) provided by financing activities (28,321) 688,863
EFFECT OF EXCHANGE RATE CHANGES ON CASH, CASH EQUIVALENTS AND RESTRICTED CASH (2,484) (591)
CHANGE IN CASH, CASH EQUIVALENTS AND RESTRICTED CASH 23,104 70,702
CASH, CASH EQUIVALENTS AND RESTRICTED CASH — Beginning of period 230,693 117,731
CASH, CASH EQUIVALENTS AND RESTRICTED CASH — End of period 253,797 188,433
RECONCILIATION OF CASH, CASH EQUIVALENTS AND RESTRICTED CASH TO CONSOLIDATED BALANCE SHEETS    
Cash and cash equivalents 253,552 188,182
Restricted cash included in prepaid expenses and other current assets 245 0
Restricted cash included in other assets, non-current 0 251
Total cash, cash equivalents and restricted cash 253,797 188,433
SUPPLEMENTAL DISCLOSURES OF OTHER CASH FLOW INFORMATION:    
Cash paid for income taxes 4,356 1,221
Cash paid for interest 18,624 7,671
Capitalized assets financed by accounts payable and accrued expenses 10,195 1,513
Capitalized stock-based compensation 1,017 956
Operating lease right-of-use assets obtained in exchange for operating lease liabilities 11,542 22,651
Purchase consideration - indemnification claims holdback 2,293 1,409
Common stock and options issued for mergers and acquisitions 0 495,591
Debt discount, non-cash $ 0 $ 10,800