var a = function(n, e, i, t) {
  if (i === "a" && !t) throw new TypeError("Private accessor was defined without a getter");
  if (typeof e == "function" ? n !== e || !t : !e.has(n)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
  return i === "m" ? t : i === "a" ? t.call(n) : t ? t.value : e.get(n);
}, r = function(n, e, i, t, s) {
  if (t === "m") throw new TypeError("Private method is not writable");
  if (t === "a" && !s) throw new TypeError("Private accessor was defined without a setter");
  if (typeof e == "function" ? n !== e || !s : !e.has(n)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
  return t === "a" ? s.call(n, i) : s ? s.value = i : e.set(n, i), i;
}, l, o, d, f, u, c;
class h {
  /** Implementation of {@link "@wallet-standard/base".WalletAccount.address | WalletAccount::address} */
  get address() {
    return a(this, l, "f");
  }
  /** Implementation of {@link "@wallet-standard/base".WalletAccount.publicKey | WalletAccount::publicKey} */
  get publicKey() {
    return a(this, o, "f").slice();
  }
  /** Implementation of {@link "@wallet-standard/base".WalletAccount.chains | WalletAccount::chains} */
  get chains() {
    return a(this, d, "f").slice();
  }
  /** Implementation of {@link "@wallet-standard/base".WalletAccount.features | WalletAccount::features} */
  get features() {
    return a(this, f, "f").slice();
  }
  /** Implementation of {@link "@wallet-standard/base".WalletAccount.label | WalletAccount::label} */
  get label() {
    return a(this, u, "f");
  }
  /** Implementation of {@link "@wallet-standard/base".WalletAccount.icon | WalletAccount::icon} */
  get icon() {
    return a(this, c, "f");
  }
  /**
   * Create and freeze a read-only account.
   *
   * @param account Account to copy properties from.
   */
  constructor(e) {
    l.set(this, void 0), o.set(this, void 0), d.set(this, void 0), f.set(this, void 0), u.set(this, void 0), c.set(this, void 0), new.target === h && Object.freeze(this), r(this, l, e.address, "f"), r(this, o, e.publicKey.slice(), "f"), r(this, d, e.chains.slice(), "f"), r(this, f, e.features.slice(), "f"), r(this, u, e.label, "f"), r(this, c, e.icon, "f");
  }
}
l = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap();
function w(n, e) {
  if (n === e)
    return !0;
  const i = n.length;
  if (i !== e.length)
    return !1;
  for (let t = 0; t < i; t++)
    if (n[t] !== e[t])
      return !1;
  return !0;
}
export {
  h as R,
  w as a
};
