v3.26.1
Debt - Additional Information (Details)
$ / shares in Units, $ in Thousands
12 Months Ended
Jun. 30, 2026
USD ($)
tradingDay
consecutiveTradingDay
day
$ / shares
Jun. 30, 2025
USD ($)
Jun. 30, 2024
USD ($)
Line of Credit Facility [Line Items]      
Line of credit facility, maximum borrowing capacity $ 14,686,895    
Borrowings outstanding 3,333,248 $ 1,622,808  
Gain on extinguishment of debt $ 1,537 $ 82,418 $ 12,638
2029 Notes | Conversion Period One      
Line of Credit Facility [Line Items]      
Debt instrument, redemption price, percentage 100.00%    
2026 Notes | Conversion Period One      
Line of Credit Facility [Line Items]      
Debt instrument, redemption price, percentage 100.00%    
Convertible Debt | 2029 Notes      
Line of Credit Facility [Line Items]      
Debt instrument, face amount $ 920,000    
Interest rate, stated percentage 0.75%    
Debt instrument, convertible, trading day observation period | tradingDay 40    
Conversion ratio 0.0098992    
Conversion price of redeemable convertible preferred stock (in USD per share) | $ / shares $ 101.02    
Convertible Debt | 2029 Notes | Conversion Period One      
Line of Credit Facility [Line Items]      
Threshold percentage of stock price trigger 130.00%    
Threshold trading days | day 20    
Threshold consecutive trading days | day 30    
Convertible Debt | 2029 Notes | Conversion Period Two      
Line of Credit Facility [Line Items]      
Threshold consecutive trading days | day 5    
Period following threshold consecutive trading days 5 days    
Minimum percentage of common stock price trigger 98.00%    
Convertible Debt | 2026 Notes      
Line of Credit Facility [Line Items]      
Debt instrument, face amount $ 221,300    
Interest rate, stated percentage 0.00%    
Conversion ratio 0.0046371    
Conversion price of redeemable convertible preferred stock (in USD per share) | $ / shares $ 215.65    
Repayments of convertible debt $ 25,800    
Debt repurchased during the period 27,400    
Debt instrument, repurchased carrying amount 27,300    
Gain on extinguishment of debt $ 1,500    
Convertible Debt | 2026 Notes | Conversion Period One      
Line of Credit Facility [Line Items]      
Threshold percentage of stock price trigger 130.00%    
Threshold trading days | tradingDay 20    
Threshold consecutive trading days | consecutiveTradingDay 30    
Debt instrument, redemption price, percentage 100.00%    
Convertible Debt | 2026 Notes | Conversion Period Two      
Line of Credit Facility [Line Items]      
Threshold consecutive trading days | tradingDay 5    
Minimum percentage of common stock price trigger 98.00%    
Revolving credit facility      
Line of Credit Facility [Line Items]      
Line of credit facility, maximum borrowing capacity $ 675,000    
Basis spread 1.50%    
Unused commitment fees 0.15%    
Borrowings outstanding $ 0    
Revolving credit facility | Fed Funds Effective Rate Overnight Index Swap Rate      
Line of Credit Facility [Line Items]      
Basis spread 0.50%    
Revolving credit facility | One Month Secured Overnight Financing Rate (SOFR)      
Line of Credit Facility [Line Items]      
Basis spread 1.00%    
Revolving credit facility | Base Rate      
Line of Credit Facility [Line Items]      
Basis spread 0.50%