Related Party Transactions - Additional Information (Detail) - USD ($) | | | | | | | | | 3 Months Ended | 6 Months Ended | | | | |
Aug. 08, 2023 | Jul. 31, 2023 | Apr. 05, 2023 | Dec. 17, 2021 | Dec. 16, 2021 | Dec. 14, 2021 | Nov. 21, 2021 | Aug. 04, 2021 | Jun. 30, 2023 | Jun. 30, 2022 | Jun. 30, 2023 | Jun. 30, 2022 | Jun. 14, 2023 | Jun. 12, 2023 | Dec. 31, 2022 | Aug. 03, 2021 |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Share price | | | | | | | | | | | | | $ 0.024 | | | |
Ordinary shares issued to Sponsor | | | | | | | | $ 25,000 | | | | | | | | |
Ordinary shares outstanding | | | | | | | | | | | | | | 20,061,925 | | |
Proceeds from issuance of private placement | | | | $ 351,900,000 | | | | | | | | | | | | |
Related Party Costs | | | | | | | | | | $ 0 | | $ 45,000 | | | | |
Notes payable current | | | | | | | | | $ 475,000 | | $ 475,000 | | | | | |
Due to related parties current | | | | | | | | | 998,965 | | 998,965 | | | | $ 11,820 | |
Sponsor Working Capital Loans [Member] | Subsequent Event [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Debt conversion, original debt, amount | | $ 6,900,000 | | | | | | | | | | | | | | |
Pala Trust Extension Loans [Member] | Subsequent Event [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Debt conversion, original debt, amount | | 1,500,000 | | | | | | | | | | | | | | |
Maximum [Member] | Sponsor Working Capital Loans [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Effective interest rate for the funds borrowed | 20% | | | | | | | | | | | | | | | |
Maximum [Member] | Pala Trust Extension Loans [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Effective interest rate for the funds borrowed | 20% | | | | | | | | | | | | | | | |
Debt conversion, original debt, amount | $ 6,900,000 | | | | | | | | | | | | | | | |
Maximum [Member] | Pala Trust Extension Loans [Member] | Subsequent Event [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Effective interest rate for the funds borrowed | 20% | | | | | | | | | | | | | | | |
Debt conversion, original debt, amount | $ 6,900,000 | | | | | | | | | | | | | | | |
Sponsor [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Interest expense on borrowings | | | | | | | | | 5,000 | | 5,000 | | | | | |
Sponsor [Member] | Private Placement Warrants [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Class of warrants or rights number of warrants issued during the period | | | | 9,445,000 | | | | | | | | | | | | |
Sponsor [Member] | Promissory Note [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | | | | | | | | | | | | $ 300,000 |
Due to related party | | | | | | | | | 0 | | 0 | | | | 0 | |
Sponsor [Member] | Administrative Support Agreement [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Due to related party | | | | | | | | | 0 | | 0 | | | | 11,820 | |
Sponsor [Member] | Working Capital Loans [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | | | | | 1,500,000 | | 1,500,000 | | | | | |
Due to related party | | | | | | | | | $ 975,000 | | $ 975,000 | | | | $ 0 | |
Debt instrument conversion price per warrant | | | | | | | | | $ 1 | | $ 1 | | | | | |
Sponsor [Member] | Office Space, Secretarial and Administrative Services [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Related party transaction fees payable per month | | | | | | | | | | | $ 15,000 | | | | | |
Sponsor [Member] | Extension Loan [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | | | | | | | | | | | $ 2,000,000 | | | |
Debt instrument stated interest rate percentage | | | | | | | | | 10% | | 10% | | | | | |
Notes payable current | | | | | | | | | $ 500,000 | | $ 500,000 | | | | | |
Sponsor [Member] | Extension Loan Amended And Restated [Member] | Subsequent Event [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | $ 5,000,000 | | | | | | | | | | | | | | |
Pala [Member] | Unsecured Promissory Note [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Debt Instrument, Face Amount | | | $ 1,000,000 | | | | | | | | | | | | | |
Debt instrument stated interest rate percentage | | | 10% | | | | | | | | | | | | | |
Debt Instrument, Maturity Date | | | Jun. 16, 2023 | | | | | | | | | | | | | |
Pala [Member] | Minimum [Member] | Unsecured Promissory Note [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Due to related parties current | | | $ 500,000 | | | | | | | | | | | | | |
Pala Working Capital Note [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Interest expense on borrowings | | | | | | | | | $ 7,000 | | 7,000 | | | | | |
Private Placement [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Proceeds from issuance of private placement | | | | $ 16,300,000 | | | | | | | $ 16,300,000 | | | | | |
Private Placement [Member] | Private Placement Warrants [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Class of warrants or rights number of warrants issued during the period | | | | 16,300,000 | | | | | | | 16,300,000 | | | | | |
Private Placement [Member] | Sponsor [Member] | Private Placement Warrants [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Class of warrants or rights number of warrants issued during the period | | | | | | | | | | | 9,445,000 | | | | | |
Private Placement [Member] | Pala [Member] | Private Placement Warrants [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Class of warrants or rights number of warrants issued during the period | | | | 3,095,000 | | | | | | | 3,095,000 | | | | | |
Private Placement Warrant Issued During Period | | | | | | | 3,095,000 | | | | | | | | | |
Private Placement [Member] | Roth [Member] | Private Placement Warrants [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Class of warrants or rights number of warrants issued during the period | | | | 1,000,000 | | | | | | | 1,000,000 | | | | | |
Private Placement Warrant Issued During Period | | | | | | | 1,000,000 | | | | | | | | | |
Common Class A [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Shares issued during the period new issues shares | | | | | | | | | | | 26,425,000 | | | | | |
Share price | | | | $ 12 | | | | | | | | | | | | |
Ordinary shares par or stated value per share | | | | | | | | | $ 0.0001 | | $ 0.0001 | | | | $ 0.0001 | |
Ordinary shares outstanding | | | | | | | | | 0 | | 0 | | | 11,436,925 | 0 | |
Common Class B [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Ordinary shares par or stated value per share | | | | | | | | | $ 0.0001 | | $ 0.0001 | | | | $ 0.0001 | |
Ordinary shares outstanding | | | | | 8,625,000 | 8,540,556 | | | 8,625,000 | | 8,625,000 | | | 8,625,000 | 8,625,000 | |
Common shares subject to forfeiture | | | | 0 | 1,625,000 | | | | 1,625,000 | | 1,625,000 | | | | 1,625,000 | |
Common Class B [Member] | Sponsor [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Share price | | | | | | | | $ 0.003 | | | | | | | | |
Ordinary shares issued to Sponsor | | | | | | | | $ 25,000 | | | | | | | | |
Ordinary shares issued to Sponsor (in shares) | | | | | | | | 7,187,500 | | | | | | | | |
Ordinary shares par or stated value per share | | | | | | | | $ 0.0001 | | | | | | | | |
Stock surrendered during period shares | | | | | | | 2,966,667 | | | | | | | | | |
Share issued during the period by way of recapitalization | | | | | | 1,353,056 | | | | | | | | | | |
Ordinary shares outstanding | | | | | 5,573,889 | 5,573,889 | | | | | | | | | | |
Common Class B [Member] | Pala [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Shares issued during the period new issues shares | | | | | 84,444 | | | | | | | | | | | |
Ordinary shares outstanding | | | | | 2,751,111 | 2,666,667 | | | | | | | | | | |
Class of warrants or rights number of warrants issued during the period | | | | | 95,000 | | | | | | | | | | | |
Proceeds from issuance of private placement | | | | | $ 190,000 | | | | | | | | | | | |
Common Class B [Member] | Roth [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Ordinary shares outstanding | | | | | 300,000 | 300,000 | | | | | | | | | | |
Common Class B [Member] | Private Placement [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Shares issued during the period new issues shares | | | | 3,051,111 | | | | | | | 3,051,111 | | | | | |
Ordinary shares par or stated value per share | | | | $ 0.0001 | | | | | | | | | | | $ 0.0001 | |
Common Class B [Member] | Private Placement [Member] | Pala [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Shares issued during the period new issues shares | | | | 2,751,111 | | | | | | | 2,751,111 | | | | | |
Ordinary shares issued to Sponsor (in shares) | | | | | | | 2,751,111 | | | | | | | | | |
Common Class B [Member] | Private Placement [Member] | Roth [Member] | | | | | | | | | | | | | | | | |
Related Party Transaction [Line Items] | | | | | | | | | | | | | | | | |
Shares issued during the period new issues shares | | | | 300,000 | | | | | | | 300,000 | | | | | |
Ordinary shares issued to Sponsor (in shares) | | | | | | | 300,000 | 300,000 | | | | | | | | |