XML 64 R59.htm IDEA: XBRL DOCUMENT v3.23.4
Derivatives - Schedule of Gain Loss From Derivatives Not Designated As Hedging Instruments Statements of Financial Performance And Location (Detail) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Nov. 30, 2023
Nov. 30, 2022
Nov. 30, 2023
Nov. 30, 2022
Not Designated as Hedging Instrument [Member] | Forward Contracts [Member] | Other Expense [Member]        
Derivative [Line Items]        
Foreign currency forward contracts $ (221) $ (9,128) $ (541) $ (8,248)