v3.25.1
Lines of Credit and Term Loans - Schedule of Short-term and Long-term Debt (Details) - USD ($)
$ in Thousands
Mar. 31, 2025
Jun. 30, 2024
Short-term Debt [Line Items]    
Total lines of credit and term loans $ 106,974 $ 476,429
Lines of credit and current portion of term loans 63,971 402,346
Term loans, non-current 43,003 74,083
Secured debt | Term loan    
Short-term Debt [Line Items]    
Total term loans 82,808 114,557
Secured debt | Chang Hwa Bank Credit Facility due October 15, 2026 | Term loan    
Short-term Debt [Line Items]    
Total term loans 11,957 17,918
Secured debt | CTBC Term Loan Facility, due June 4, 2030 | Term loan    
Short-term Debt [Line Items]    
Total term loans 26,756 31,155
Secured debt | CTBC Term Loan Facility, due August 15, 2026 | Term loan    
Short-term Debt [Line Items]    
Total term loans 1,980 3,079
Secured debt | E.SUN Bank Term Loan Facility, due September 15, 2026 | Term loan    
Short-term Debt [Line Items]    
Total term loans 14,500 22,116
Secured debt | E.SUN Bank Term Loan Facility, due August 15, 2027 | Term loan    
Short-term Debt [Line Items]    
Total term loans 9,490 12,645
Secured debt | Mega Bank Term Loan Facility, due October 3, 2026 | Term loan    
Short-term Debt [Line Items]    
Total term loans 18,125 27,644
Line of Credit | Revolving Credit Facility    
Short-term Debt [Line Items]    
Total line of credit 24,166 361,872
Line of Credit | Revolving Credit Facility | CTBC Credit Lines    
Short-term Debt [Line Items]    
Total line of credit 24,166 184,573
Line of Credit | Revolving Credit Facility | Chang Hwa Bank Credit Lines    
Short-term Debt [Line Items]    
Total line of credit 0 9,215
Line of Credit | Revolving Credit Facility | HSBC Bank Credit Lines    
Short-term Debt [Line Items]    
Total line of credit 0 30,000
Line of Credit | Revolving Credit Facility | E.SUN Bank Credit Lines    
Short-term Debt [Line Items]    
Total line of credit 0 60,000
Line of Credit | Revolving Credit Facility | Mega Bank Credit Lines    
Short-term Debt [Line Items]    
Total line of credit 0 50,000
Line of Credit | Revolving Credit Facility | First Bank Credit Lines    
Short-term Debt [Line Items]    
Total line of credit $ 0 $ 28,084