INCOME TAXES - Reconciliation of Beginning and Ending Amount of Unrecognized Tax Benefit (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2023 |
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward] | |||
| Unrecognized tax benefit, beginning of the period | $ 506,512 | $ 448,392 | $ 295,182 |
| Gross increases and decreases related to prior period tax positions | (7,348) | ||
| Gross increases and decreases related to prior period tax positions | 5,431 | 6,552 | |
| Gross increases and decreases related to current period tax positions | (30,063) | ||
| Gross increases and decreases related to current period tax positions | 30,988 | 124,238 | |
| Reductions related to lapse of statute of limitations | (3,998) | (2,950) | 0 |
| Gross increases related to acquisitions | 0 | 24,651 | 22,420 |
| Unrecognized tax benefit, end of the period | $ 465,103 | $ 506,512 | $ 448,392 |