Stock Repurchase Program - Additional Information (Detail) - USD ($) $ / shares in Units, $ in Thousands |
1 Months Ended | 12 Months Ended | |||
|---|---|---|---|---|---|
Jan. 31, 2021 |
May 31, 2024 |
May 31, 2023 |
May 31, 2022 |
May 31, 2021 |
|
| Stock Repurchase Programs [Line Items] | |||||
| Authorization of stock repurchase program | Jan. 08, 2008 | ||||
| Capital to be returned to stockholders through share repurchases | $ 1,000,000 | ||||
| Stock repurchase program, remaining authorized repurchase, value | $ 469,700 | $ 262,300 | $ 600,000 | ||
| Stock repurchase program expiration date | May 31, 2021 | ||||
| Shares repurchased | 526,113 | 598,653 | 601,155 | ||
| Shares repurchased, value | $ 55,000 | $ 50,000 | $ 52,500 | ||
| Repurchase of common stock price per shares | $ 104.5 | $ 83.52 | $ 87.33 | ||