import{bC as f,bD as s,bE as t,bF as c,bG as d,bH as O,R as o,bI as b,bJ as A}from"../main.js";class p extends Error{constructor(r){super(r)}}class l extends p{constructor(){super(...arguments),this.name="TokenOwnerOffCurveError"}}const y=f([s("mintAuthorityOption"),t("mintAuthority"),c("supply"),d("decimals"),O("isInitialized"),s("freezeAuthorityOption"),t("freezeAuthority")]);y.span;async function E(e,r,n=!1,u=b,a=A){if(!n&&!o.isOnCurve(r.toBuffer()))throw new l;const[i]=await o.findProgramAddress([r.toBuffer(),u.toBuffer(),e.toBuffer()],a);return i}export{A as ASSOCIATED_TOKEN_PROGRAM_ID,y as MintLayout,b as TOKEN_PROGRAM_ID,p as TokenError,l as TokenOwnerOffCurveError,E as getAssociatedTokenAddress};
