v3.26.1
Net income (loss) per share of Ordinary shares - Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share (Details) - shares
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Total antidilutive securities (in shares) 146,132,206 26,345,147 15,523,182
Stock options      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Total antidilutive securities (in shares) 5,504,194 4,381,787 8,906,840
Restricted stock units      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Total antidilutive securities (in shares) 23,250,808 15,508,896 6,616,342
Investment Rights      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Total antidilutive securities (in shares) 4,520,548 0 0
Convertible notes      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Total antidilutive securities (in shares) 71,831,847 6,454,464 0
Capped call transactions      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Total antidilutive securities (in shares) 32,114,455 0 0
Prepaid forward transactions      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Total antidilutive securities (in shares) 8,910,354 0 0