require(`../../../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../functions/utils/string.utils.cjs`);let t=require(`idb-keyval`);new class{balancesRecordLabel=`privateWalletsBalances`;async getBalances(){return await(0,t.get)(this.balancesRecordLabel)}async getBalancesByWallet(t,n){let r=await this.getBalances();if(r)return r[e.getStateKey(t,n,!0)]}async setBalances(n,r,i){await(0,t.update)(this.balancesRecordLabel,(t={})=>{let a=e.getStateKey(n,r,!0);return{...t,[a]:i}})}};