Derivative financial instruments - Additional Information (Detail) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Jul. 31, 2024 |
Jul. 31, 2023 |
Jul. 31, 2024 |
Jul. 31, 2023 |
|
| Derivative Instruments and Hedging Activities Disclosure [Abstract] | ||||
| Maturity of foreign currency forward contracts | 90 days | |||
| Gains (losses) on foreign currency forward contracts | $ 2,954 | $ (93) | $ 8,624 | $ 12,086 |
| Change in unrealized gain (loss) on foreign currency derivative instruments | $ (3,418) | $ (855) | $ (11,035) | $ (19,710) |