"use strict";const n=require("./address-CSWlEusF.js"),r=e=>typeof e=="string"?n.dist.Buffer.from(e):e;function u(e,t){return n.PublicKey.findProgramAddressSync(Array.isArray(e)?e.map(r):[r(e)],new n.PublicKey(t))[0]}function c(e,t){return{pubkey:new n.PublicKey(e),isWritable:!0,isSigner:t}}function i(e,t){return{pubkey:new n.PublicKey(e),isWritable:!1,isSigner:t}}function a(e){if(e===null)throw Error("account info is null");return e.data}exports.deriveAddress=u;exports.getAccountData=a;exports.newAccountMeta=c;exports.newReadOnlyAccountMeta=i;
