import { a as te } from "./address-CBux52Na.mjs";
function re(e, u) {
  if (e.length >= 255)
    throw new TypeError("Alphabet too long");
  for (var t = new Uint8Array(256), r = 0; r < t.length; r++)
    t[r] = 255;
  for (var D = 0; D < e.length; D++) {
    var n = e.charAt(D), a = n.charCodeAt(0);
    if (t[a] !== 255)
      throw new TypeError(n + " is ambiguous");
    t[a] = D;
  }
  var i = e.length, s = e.charAt(0), o = Math.log(i) / Math.log(256), f = Math.log(256) / Math.log(i);
  function h(c) {
    if (c instanceof Uint8Array || (ArrayBuffer.isView(c) ? c = new Uint8Array(c.buffer, c.byteOffset, c.byteLength) : Array.isArray(c) && (c = Uint8Array.from(c))), !(c instanceof Uint8Array))
      throw new TypeError("Expected Uint8Array");
    if (c.length === 0)
      return "";
    for (var d = 0, w = 0, b = 0, C = c.length; b !== C && c[b] === 0; )
      b++, d++;
    for (var p = (C - b) * f + 1 >>> 0, _ = new Uint8Array(p); b !== C; ) {
      for (var O = c[b], m = 0, y = p - 1; (O !== 0 || m < w) && y !== -1; y--, m++)
        O += 256 * _[y] >>> 0, _[y] = O % i >>> 0, O = O / i >>> 0;
      if (O !== 0)
        throw new Error("Non-zero carry");
      w = m, b++;
    }
    for (var S = p - w; S !== p && _[S] === 0; )
      S++;
    for (var R = s.repeat(d); S < p; ++S)
      R += e.charAt(_[S]);
    return R;
  }
  function l(c) {
    if (typeof c != "string")
      throw new TypeError("Expected String");
    if (c.length === 0)
      return new Uint8Array();
    var d = 0;
    if (c[d] !== " ") {
      for (var w = 0, b = 0; c[d] === s; )
        w++, d++;
      for (var C = (c.length - d) * o + 1 >>> 0, p = new Uint8Array(C); c[d]; ) {
        var _ = t[c.charCodeAt(d)];
        if (_ === 255)
          return;
        for (var O = 0, m = C - 1; (_ !== 0 || O < b) && m !== -1; m--, O++)
          _ += i * p[m] >>> 0, p[m] = _ % 256 >>> 0, _ = _ / 256 >>> 0;
        if (_ !== 0)
          throw new Error("Non-zero carry");
        b = O, d++;
      }
      if (c[d] !== " ") {
        for (var y = C - b; y !== C && p[y] === 0; )
          y++;
        for (var S = new Uint8Array(w + (C - y)), R = w; y !== C; )
          S[R++] = p[y++];
        return S;
      }
    }
  }
  function v(c) {
    var d = l(c);
    if (d)
      return d;
    throw new Error(`Non-${u} character`);
  }
  return {
    encode: h,
    decodeUnsafe: l,
    decode: v
  };
}
var ne = re, De = ne;
const ae = (e) => {
  if (e instanceof Uint8Array && e.constructor.name === "Uint8Array")
    return e;
  if (e instanceof ArrayBuffer)
    return new Uint8Array(e);
  if (ArrayBuffer.isView(e))
    return new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
  throw new Error("Unknown type, must be binary type");
}, ie = (e) => new TextEncoder().encode(e), oe = (e) => new TextDecoder().decode(e);
class ce {
  constructor(u, t, r) {
    this.name = u, this.prefix = t, this.baseEncode = r;
  }
  encode(u) {
    if (u instanceof Uint8Array)
      return `${this.prefix}${this.baseEncode(u)}`;
    throw Error("Unknown type, must be binary type");
  }
}
class fe {
  constructor(u, t, r) {
    if (this.name = u, this.prefix = t, t.codePointAt(0) === void 0)
      throw new Error("Invalid prefix character");
    this.prefixCodePoint = t.codePointAt(0), this.baseDecode = r;
  }
  decode(u) {
    if (typeof u == "string") {
      if (u.codePointAt(0) !== this.prefixCodePoint)
        throw Error(`Unable to decode multibase string ${JSON.stringify(u)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);
      return this.baseDecode(u.slice(this.prefix.length));
    } else
      throw Error("Can only multibase decode strings");
  }
  or(u) {
    return Z(this, u);
  }
}
class se {
  constructor(u) {
    this.decoders = u;
  }
  or(u) {
    return Z(this, u);
  }
  decode(u) {
    const t = u[0], r = this.decoders[t];
    if (r)
      return r.decode(u);
    throw RangeError(`Unable to decode multibase string ${JSON.stringify(u)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`);
  }
}
const Z = (e, u) => new se({
  ...e.decoders || { [e.prefix]: e },
  ...u.decoders || { [u.prefix]: u }
});
class le {
  constructor(u, t, r, D) {
    this.name = u, this.prefix = t, this.baseEncode = r, this.baseDecode = D, this.encoder = new ce(u, t, r), this.decoder = new fe(u, t, D);
  }
  encode(u) {
    return this.encoder.encode(u);
  }
  decode(u) {
    return this.decoder.decode(u);
  }
}
const M = ({ name: e, prefix: u, encode: t, decode: r }) => new le(e, u, t, r), j = ({ prefix: e, name: u, alphabet: t }) => {
  const { encode: r, decode: D } = De(t, u);
  return M({
    prefix: e,
    name: u,
    encode: r,
    decode: (n) => ae(D(n))
  });
}, Ee = (e, u, t, r) => {
  const D = {};
  for (let f = 0; f < u.length; ++f)
    D[u[f]] = f;
  let n = e.length;
  for (; e[n - 1] === "="; )
    --n;
  const a = new Uint8Array(n * t / 8 | 0);
  let i = 0, s = 0, o = 0;
  for (let f = 0; f < n; ++f) {
    const h = D[e[f]];
    if (h === void 0)
      throw new SyntaxError(`Non-${r} character`);
    s = s << t | h, i += t, i >= 8 && (i -= 8, a[o++] = 255 & s >> i);
  }
  if (i >= t || 255 & s << 8 - i)
    throw new SyntaxError("Unexpected end of data");
  return a;
}, de = (e, u, t) => {
  const r = u[u.length - 1] === "=", D = (1 << t) - 1;
  let n = "", a = 0, i = 0;
  for (let s = 0; s < e.length; ++s)
    for (i = i << 8 | e[s], a += 8; a > t; )
      a -= t, n += u[D & i >> a];
  if (a && (n += u[D & i << t - a]), r)
    for (; n.length * t & 7; )
      n += "=";
  return n;
}, E = ({ name: e, prefix: u, bitsPerChar: t, alphabet: r }) => M({
  prefix: u,
  name: e,
  encode(D) {
    return de(D, r, t);
  },
  decode(D) {
    return Ee(D, r, t, e);
  }
}), _e = M({
  prefix: "\0",
  name: "identity",
  encode: (e) => oe(e),
  decode: (e) => ie(e)
}), Cu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  identity: _e
}, Symbol.toStringTag, { value: "Module" })), he = E({
  prefix: "0",
  name: "base2",
  alphabet: "01",
  bitsPerChar: 1
}), pu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  base2: he
}, Symbol.toStringTag, { value: "Module" })), be = E({
  prefix: "7",
  name: "base8",
  alphabet: "01234567",
  bitsPerChar: 3
}), Ou = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  base8: be
}, Symbol.toStringTag, { value: "Module" })), ye = j({
  prefix: "9",
  name: "base10",
  alphabet: "0123456789"
}), Su = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  base10: ye
}, Symbol.toStringTag, { value: "Module" })), Ce = E({
  prefix: "f",
  name: "base16",
  alphabet: "0123456789abcdef",
  bitsPerChar: 4
}), pe = E({
  prefix: "F",
  name: "base16upper",
  alphabet: "0123456789ABCDEF",
  bitsPerChar: 4
}), vu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  base16: Ce,
  base16upper: pe
}, Symbol.toStringTag, { value: "Module" })), Oe = E({
  prefix: "b",
  name: "base32",
  alphabet: "abcdefghijklmnopqrstuvwxyz234567",
  bitsPerChar: 5
}), Se = E({
  prefix: "B",
  name: "base32upper",
  alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",
  bitsPerChar: 5
}), ve = E({
  prefix: "c",
  name: "base32pad",
  alphabet: "abcdefghijklmnopqrstuvwxyz234567=",
  bitsPerChar: 5
}), me = E({
  prefix: "C",
  name: "base32padupper",
  alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",
  bitsPerChar: 5
}), we = E({
  prefix: "v",
  name: "base32hex",
  alphabet: "0123456789abcdefghijklmnopqrstuv",
  bitsPerChar: 5
}), Ae = E({
  prefix: "V",
  name: "base32hexupper",
  alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV",
  bitsPerChar: 5
}), ge = E({
  prefix: "t",
  name: "base32hexpad",
  alphabet: "0123456789abcdefghijklmnopqrstuv=",
  bitsPerChar: 5
}), Te = E({
  prefix: "T",
  name: "base32hexpadupper",
  alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUV=",
  bitsPerChar: 5
}), Ne = E({
  prefix: "h",
  name: "base32z",
  alphabet: "ybndrfg8ejkmcpqxot1uwisza345h769",
  bitsPerChar: 5
}), mu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  base32: Oe,
  base32hex: we,
  base32hexpad: ge,
  base32hexpadupper: Te,
  base32hexupper: Ae,
  base32pad: ve,
  base32padupper: me,
  base32upper: Se,
  base32z: Ne
}, Symbol.toStringTag, { value: "Module" })), Fe = j({
  prefix: "k",
  name: "base36",
  alphabet: "0123456789abcdefghijklmnopqrstuvwxyz"
}), Ue = j({
  prefix: "K",
  name: "base36upper",
  alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
}), wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  base36: Fe,
  base36upper: Ue
}, Symbol.toStringTag, { value: "Module" })), je = j({
  name: "base58btc",
  prefix: "z",
  alphabet: "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
}), Re = j({
  name: "base58flickr",
  prefix: "Z",
  alphabet: "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
}), Au = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  base58btc: je,
  base58flickr: Re
}, Symbol.toStringTag, { value: "Module" })), Me = E({
  prefix: "m",
  name: "base64",
  alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
  bitsPerChar: 6
}), Pe = E({
  prefix: "M",
  name: "base64pad",
  alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  bitsPerChar: 6
}), Ie = E({
  prefix: "u",
  name: "base64url",
  alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",
  bitsPerChar: 6
}), Be = E({
  prefix: "U",
  name: "base64urlpad",
  alphabet: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",
  bitsPerChar: 6
}), gu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  base64: Me,
  base64pad: Pe,
  base64url: Ie,
  base64urlpad: Be
}, Symbol.toStringTag, { value: "Module" })), x = Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"), Ye = x.reduce((e, u, t) => (e[t] = u, e), []), He = x.reduce((e, u, t) => (e[u.codePointAt(0)] = t, e), []);
function We(e) {
  return e.reduce((u, t) => (u += Ye[t], u), "");
}
function qe(e) {
  const u = [];
  for (const t of e) {
    const r = He[t.codePointAt(0)];
    if (r === void 0)
      throw new Error(`Non-base256emoji character: ${t}`);
    u.push(r);
  }
  return new Uint8Array(u);
}
const ze = M({
  prefix: "🚀",
  name: "base256emoji",
  encode: We,
  decode: qe
}), Tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  base256emoji: ze
}, Symbol.toStringTag, { value: "Module" }));
new TextEncoder();
new TextDecoder();
var $e = {};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var W = function(e, u) {
  return W = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
    t.__proto__ = r;
  } || function(t, r) {
    for (var D in r) r.hasOwnProperty(D) && (t[D] = r[D]);
  }, W(e, u);
};
function Ve(e, u) {
  W(e, u);
  function t() {
    this.constructor = e;
  }
  e.prototype = u === null ? Object.create(u) : (t.prototype = u.prototype, new t());
}
var q = function() {
  return q = Object.assign || function(u) {
    for (var t, r = 1, D = arguments.length; r < D; r++) {
      t = arguments[r];
      for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (u[n] = t[n]);
    }
    return u;
  }, q.apply(this, arguments);
};
function Ke(e, u) {
  var t = {};
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && u.indexOf(r) < 0 && (t[r] = e[r]);
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
    for (var D = 0, r = Object.getOwnPropertySymbols(e); D < r.length; D++)
      u.indexOf(r[D]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[D]) && (t[r[D]] = e[r[D]]);
  return t;
}
function Xe(e, u, t, r) {
  var D = arguments.length, n = D < 3 ? u : r === null ? r = Object.getOwnPropertyDescriptor(u, t) : r, a;
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") n = Reflect.decorate(e, u, t, r);
  else for (var i = e.length - 1; i >= 0; i--) (a = e[i]) && (n = (D < 3 ? a(n) : D > 3 ? a(u, t, n) : a(u, t)) || n);
  return D > 3 && n && Object.defineProperty(u, t, n), n;
}
function Ge(e, u) {
  return function(t, r) {
    u(t, r, e);
  };
}
function ke(e, u) {
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, u);
}
function Je(e, u, t, r) {
  function D(n) {
    return n instanceof t ? n : new t(function(a) {
      a(n);
    });
  }
  return new (t || (t = Promise))(function(n, a) {
    function i(f) {
      try {
        o(r.next(f));
      } catch (h) {
        a(h);
      }
    }
    function s(f) {
      try {
        o(r.throw(f));
      } catch (h) {
        a(h);
      }
    }
    function o(f) {
      f.done ? n(f.value) : D(f.value).then(i, s);
    }
    o((r = r.apply(e, u || [])).next());
  });
}
function Le(e, u) {
  var t = { label: 0, sent: function() {
    if (n[0] & 1) throw n[1];
    return n[1];
  }, trys: [], ops: [] }, r, D, n, a;
  return a = { next: i(0), throw: i(1), return: i(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
    return this;
  }), a;
  function i(o) {
    return function(f) {
      return s([o, f]);
    };
  }
  function s(o) {
    if (r) throw new TypeError("Generator is already executing.");
    for (; t; ) try {
      if (r = 1, D && (n = o[0] & 2 ? D.return : o[0] ? D.throw || ((n = D.return) && n.call(D), 0) : D.next) && !(n = n.call(D, o[1])).done) return n;
      switch (D = 0, n && (o = [o[0] & 2, n.value]), o[0]) {
        case 0:
        case 1:
          n = o;
          break;
        case 4:
          return t.label++, { value: o[1], done: !1 };
        case 5:
          t.label++, D = o[1], o = [0];
          continue;
        case 7:
          o = t.ops.pop(), t.trys.pop();
          continue;
        default:
          if (n = t.trys, !(n = n.length > 0 && n[n.length - 1]) && (o[0] === 6 || o[0] === 2)) {
            t = 0;
            continue;
          }
          if (o[0] === 3 && (!n || o[1] > n[0] && o[1] < n[3])) {
            t.label = o[1];
            break;
          }
          if (o[0] === 6 && t.label < n[1]) {
            t.label = n[1], n = o;
            break;
          }
          if (n && t.label < n[2]) {
            t.label = n[2], t.ops.push(o);
            break;
          }
          n[2] && t.ops.pop(), t.trys.pop();
          continue;
      }
      o = u.call(e, t);
    } catch (f) {
      o = [6, f], D = 0;
    } finally {
      r = n = 0;
    }
    if (o[0] & 5) throw o[1];
    return { value: o[0] ? o[1] : void 0, done: !0 };
  }
}
function Qe(e, u, t, r) {
  r === void 0 && (r = t), e[r] = u[t];
}
function Ze(e, u) {
  for (var t in e) t !== "default" && !u.hasOwnProperty(t) && (u[t] = e[t]);
}
function z(e) {
  var u = typeof Symbol == "function" && Symbol.iterator, t = u && e[u], r = 0;
  if (t) return t.call(e);
  if (e && typeof e.length == "number") return {
    next: function() {
      return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
    }
  };
  throw new TypeError(u ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function ee(e, u) {
  var t = typeof Symbol == "function" && e[Symbol.iterator];
  if (!t) return e;
  var r = t.call(e), D, n = [], a;
  try {
    for (; (u === void 0 || u-- > 0) && !(D = r.next()).done; ) n.push(D.value);
  } catch (i) {
    a = { error: i };
  } finally {
    try {
      D && !D.done && (t = r.return) && t.call(r);
    } finally {
      if (a) throw a.error;
    }
  }
  return n;
}
function xe() {
  for (var e = [], u = 0; u < arguments.length; u++)
    e = e.concat(ee(arguments[u]));
  return e;
}
function eu() {
  for (var e = 0, u = 0, t = arguments.length; u < t; u++) e += arguments[u].length;
  for (var r = Array(e), D = 0, u = 0; u < t; u++)
    for (var n = arguments[u], a = 0, i = n.length; a < i; a++, D++)
      r[D] = n[a];
  return r;
}
function U(e) {
  return this instanceof U ? (this.v = e, this) : new U(e);
}
function uu(e, u, t) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var r = t.apply(e, u || []), D, n = [];
  return D = {}, a("next"), a("throw"), a("return"), D[Symbol.asyncIterator] = function() {
    return this;
  }, D;
  function a(l) {
    r[l] && (D[l] = function(v) {
      return new Promise(function(c, d) {
        n.push([l, v, c, d]) > 1 || i(l, v);
      });
    });
  }
  function i(l, v) {
    try {
      s(r[l](v));
    } catch (c) {
      h(n[0][3], c);
    }
  }
  function s(l) {
    l.value instanceof U ? Promise.resolve(l.value.v).then(o, f) : h(n[0][2], l);
  }
  function o(l) {
    i("next", l);
  }
  function f(l) {
    i("throw", l);
  }
  function h(l, v) {
    l(v), n.shift(), n.length && i(n[0][0], n[0][1]);
  }
}
function tu(e) {
  var u, t;
  return u = {}, r("next"), r("throw", function(D) {
    throw D;
  }), r("return"), u[Symbol.iterator] = function() {
    return this;
  }, u;
  function r(D, n) {
    u[D] = e[D] ? function(a) {
      return (t = !t) ? { value: U(e[D](a)), done: D === "return" } : n ? n(a) : a;
    } : n;
  }
}
function ru(e) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var u = e[Symbol.asyncIterator], t;
  return u ? u.call(e) : (e = typeof z == "function" ? z(e) : e[Symbol.iterator](), t = {}, r("next"), r("throw"), r("return"), t[Symbol.asyncIterator] = function() {
    return this;
  }, t);
  function r(n) {
    t[n] = e[n] && function(a) {
      return new Promise(function(i, s) {
        a = e[n](a), D(i, s, a.done, a.value);
      });
    };
  }
  function D(n, a, i, s) {
    Promise.resolve(s).then(function(o) {
      n({ value: o, done: i });
    }, a);
  }
}
function nu(e, u) {
  return Object.defineProperty ? Object.defineProperty(e, "raw", { value: u }) : e.raw = u, e;
}
function Du(e) {
  if (e && e.__esModule) return e;
  var u = {};
  if (e != null) for (var t in e) Object.hasOwnProperty.call(e, t) && (u[t] = e[t]);
  return u.default = e, u;
}
function au(e) {
  return e && e.__esModule ? e : { default: e };
}
function iu(e, u) {
  if (!u.has(e))
    throw new TypeError("attempted to get private field on non-instance");
  return u.get(e);
}
function ou(e, u, t) {
  if (!u.has(e))
    throw new TypeError("attempted to set private field on non-instance");
  return u.set(e, t), t;
}
const cu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  get __assign() {
    return q;
  },
  __asyncDelegator: tu,
  __asyncGenerator: uu,
  __asyncValues: ru,
  __await: U,
  __awaiter: Je,
  __classPrivateFieldGet: iu,
  __classPrivateFieldSet: ou,
  __createBinding: Qe,
  __decorate: Xe,
  __exportStar: Ze,
  __extends: Ve,
  __generator: Le,
  __importDefault: au,
  __importStar: Du,
  __makeTemplateObject: nu,
  __metadata: ke,
  __param: Ge,
  __read: ee,
  __rest: Ke,
  __spread: xe,
  __spreadArrays: eu,
  __values: z
}, Symbol.toStringTag, { value: "Module" })), P = /* @__PURE__ */ te(cu);
var I = {}, N = {}, $;
function fu() {
  if ($) return N;
  $ = 1, Object.defineProperty(N, "__esModule", { value: !0 }), N.delay = void 0;
  function e(u) {
    return new Promise((t) => {
      setTimeout(() => {
        t(!0);
      }, u);
    });
  }
  return N.delay = e, N;
}
var A = {}, B = {}, g = {}, V;
function su() {
  return V || (V = 1, Object.defineProperty(g, "__esModule", { value: !0 }), g.ONE_THOUSAND = g.ONE_HUNDRED = void 0, g.ONE_HUNDRED = 100, g.ONE_THOUSAND = 1e3), g;
}
var Y = {}, K;
function lu() {
  return K || (K = 1, function(e) {
    Object.defineProperty(e, "__esModule", { value: !0 }), e.ONE_YEAR = e.FOUR_WEEKS = e.THREE_WEEKS = e.TWO_WEEKS = e.ONE_WEEK = e.THIRTY_DAYS = e.SEVEN_DAYS = e.FIVE_DAYS = e.THREE_DAYS = e.ONE_DAY = e.TWENTY_FOUR_HOURS = e.TWELVE_HOURS = e.SIX_HOURS = e.THREE_HOURS = e.ONE_HOUR = e.SIXTY_MINUTES = e.THIRTY_MINUTES = e.TEN_MINUTES = e.FIVE_MINUTES = e.ONE_MINUTE = e.SIXTY_SECONDS = e.THIRTY_SECONDS = e.TEN_SECONDS = e.FIVE_SECONDS = e.ONE_SECOND = void 0, e.ONE_SECOND = 1, e.FIVE_SECONDS = 5, e.TEN_SECONDS = 10, e.THIRTY_SECONDS = 30, e.SIXTY_SECONDS = 60, e.ONE_MINUTE = e.SIXTY_SECONDS, e.FIVE_MINUTES = e.ONE_MINUTE * 5, e.TEN_MINUTES = e.ONE_MINUTE * 10, e.THIRTY_MINUTES = e.ONE_MINUTE * 30, e.SIXTY_MINUTES = e.ONE_MINUTE * 60, e.ONE_HOUR = e.SIXTY_MINUTES, e.THREE_HOURS = e.ONE_HOUR * 3, e.SIX_HOURS = e.ONE_HOUR * 6, e.TWELVE_HOURS = e.ONE_HOUR * 12, e.TWENTY_FOUR_HOURS = e.ONE_HOUR * 24, e.ONE_DAY = e.TWENTY_FOUR_HOURS, e.THREE_DAYS = e.ONE_DAY * 3, e.FIVE_DAYS = e.ONE_DAY * 5, e.SEVEN_DAYS = e.ONE_DAY * 7, e.THIRTY_DAYS = e.ONE_DAY * 30, e.ONE_WEEK = e.SEVEN_DAYS, e.TWO_WEEKS = e.ONE_WEEK * 2, e.THREE_WEEKS = e.ONE_WEEK * 3, e.FOUR_WEEKS = e.ONE_WEEK * 4, e.ONE_YEAR = e.ONE_DAY * 365;
  }(Y)), Y;
}
var X;
function ue() {
  return X || (X = 1, function(e) {
    Object.defineProperty(e, "__esModule", { value: !0 });
    const u = P;
    u.__exportStar(su(), e), u.__exportStar(lu(), e);
  }(B)), B;
}
var G;
function Eu() {
  if (G) return A;
  G = 1, Object.defineProperty(A, "__esModule", { value: !0 }), A.fromMiliseconds = A.toMiliseconds = void 0;
  const e = ue();
  function u(r) {
    return r * e.ONE_THOUSAND;
  }
  A.toMiliseconds = u;
  function t(r) {
    return Math.floor(r / e.ONE_THOUSAND);
  }
  return A.fromMiliseconds = t, A;
}
var k;
function du() {
  return k || (k = 1, function(e) {
    Object.defineProperty(e, "__esModule", { value: !0 });
    const u = P;
    u.__exportStar(fu(), e), u.__exportStar(Eu(), e);
  }(I)), I;
}
var T = {}, J;
function _u() {
  if (J) return T;
  J = 1, Object.defineProperty(T, "__esModule", { value: !0 }), T.Watch = void 0;
  class e {
    constructor() {
      this.timestamps = /* @__PURE__ */ new Map();
    }
    start(t) {
      if (this.timestamps.has(t))
        throw new Error(`Watch already started for label: ${t}`);
      this.timestamps.set(t, { started: Date.now() });
    }
    stop(t) {
      const r = this.get(t);
      if (typeof r.elapsed < "u")
        throw new Error(`Watch already stopped for label: ${t}`);
      const D = Date.now() - r.started;
      this.timestamps.set(t, { started: r.started, elapsed: D });
    }
    get(t) {
      const r = this.timestamps.get(t);
      if (typeof r > "u")
        throw new Error(`No timestamp found for label: ${t}`);
      return r;
    }
    elapsed(t) {
      const r = this.get(t);
      return r.elapsed || Date.now() - r.started;
    }
  }
  return T.Watch = e, T.default = e, T;
}
var H = {}, F = {}, L;
function hu() {
  if (L) return F;
  L = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.IWatch = void 0;
  class e {
  }
  return F.IWatch = e, F;
}
var Q;
function bu() {
  return Q || (Q = 1, function(e) {
    Object.defineProperty(e, "__esModule", { value: !0 }), P.__exportStar(hu(), e);
  }(H)), H;
}
(function(e) {
  Object.defineProperty(e, "__esModule", { value: !0 });
  const u = P;
  u.__exportStar(du(), e), u.__exportStar(_u(), e), u.__exportStar(bu(), e), u.__exportStar(ue(), e);
})($e);
export {
  gu as a,
  Tu as b,
  $e as c,
  Au as d,
  wu as e,
  mu as f,
  vu as g,
  Su as h,
  Ou as i,
  pu as j,
  Cu as k
};
