@spaceandtimelabs/makeinfinite-ui 0.27.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import Ne, { useContext as Jn, createElement as hh, createContext as fu, useState as St, useCallback as hc, useEffect as du, useMemo as ph } from "react";
1
+ import Ne, { useContext as Jn, createElement as hh, createContext as fu, useState as ht, useCallback as hc, useEffect as du, useMemo as ph } from "react";
2
2
  import * as hu from "@babel/standalone";
3
3
  import pu from "react-dom";
4
4
  var Hi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -55,10 +55,10 @@ function wh(e) {
55
55
  var j = b[v++] & 63;
56
56
  S[C++] = (A & 31) << 6 | j;
57
57
  } else if ((A & 240) === 224) {
58
- var j = b[v++] & 63, L = b[v++] & 63;
59
- S[C++] = (A & 31) << 12 | j << 6 | L;
58
+ var j = b[v++] & 63, M = b[v++] & 63;
59
+ S[C++] = (A & 31) << 12 | j << 6 | M;
60
60
  } else if ((A & 248) === 240) {
61
- var j = b[v++] & 63, L = b[v++] & 63, H = b[v++] & 63, Z = (A & 7) << 18 | j << 12 | L << 6 | H;
61
+ var j = b[v++] & 63, M = b[v++] & 63, U = b[v++] & 63, Z = (A & 7) << 18 | j << 12 | M << 6 | U;
62
62
  Z > 65535 && (Z -= 65536, S[C++] = Z >>> 10 & 1023 | 55296, Z = 56320 | Z & 1023), S[C++] = Z;
63
63
  }
64
64
  }
@@ -896,11 +896,11 @@ var ms = {}, ga = {};
896
896
  ga.byteLength = dp;
897
897
  ga.toByteArray = pp;
898
898
  ga.fromByteArray = gp;
899
- var zt = [], yt = [], up = typeof Uint8Array < "u" ? Uint8Array : Array, Va = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
899
+ var zt = [], bt = [], up = typeof Uint8Array < "u" ? Uint8Array : Array, Va = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
900
900
  for (var Ur = 0, fp = Va.length; Ur < fp; ++Ur)
901
- zt[Ur] = Va[Ur], yt[Va.charCodeAt(Ur)] = Ur;
902
- yt[45] = 62;
903
- yt[95] = 63;
901
+ zt[Ur] = Va[Ur], bt[Va.charCodeAt(Ur)] = Ur;
902
+ bt[45] = 62;
903
+ bt[95] = 63;
904
904
  function _u(e) {
905
905
  var t = e.length;
906
906
  if (t % 4 > 0)
@@ -920,8 +920,8 @@ function hp(e, t, r) {
920
920
  function pp(e) {
921
921
  var t, r = _u(e), n = r[0], i = r[1], a = new up(hp(e, n, i)), o = 0, s = i > 0 ? n - 4 : n, l;
922
922
  for (l = 0; l < s; l += 4)
923
- t = yt[e.charCodeAt(l)] << 18 | yt[e.charCodeAt(l + 1)] << 12 | yt[e.charCodeAt(l + 2)] << 6 | yt[e.charCodeAt(l + 3)], a[o++] = t >> 16 & 255, a[o++] = t >> 8 & 255, a[o++] = t & 255;
924
- return i === 2 && (t = yt[e.charCodeAt(l)] << 2 | yt[e.charCodeAt(l + 1)] >> 4, a[o++] = t & 255), i === 1 && (t = yt[e.charCodeAt(l)] << 10 | yt[e.charCodeAt(l + 1)] << 4 | yt[e.charCodeAt(l + 2)] >> 2, a[o++] = t >> 8 & 255, a[o++] = t & 255), a;
923
+ t = bt[e.charCodeAt(l)] << 18 | bt[e.charCodeAt(l + 1)] << 12 | bt[e.charCodeAt(l + 2)] << 6 | bt[e.charCodeAt(l + 3)], a[o++] = t >> 16 & 255, a[o++] = t >> 8 & 255, a[o++] = t & 255;
924
+ return i === 2 && (t = bt[e.charCodeAt(l)] << 2 | bt[e.charCodeAt(l + 1)] >> 4, a[o++] = t & 255), i === 1 && (t = bt[e.charCodeAt(l)] << 10 | bt[e.charCodeAt(l + 1)] << 4 | bt[e.charCodeAt(l + 2)] >> 2, a[o++] = t >> 8 & 255, a[o++] = t & 255), a;
925
925
  }
926
926
  function mp(e) {
927
927
  return zt[e >> 18 & 63] + zt[e >> 12 & 63] + zt[e >> 6 & 63] + zt[e & 63];
@@ -1227,7 +1227,7 @@ ws.write = function(e, t, r, n, i, a) {
1227
1227
  case "binary":
1228
1228
  return be(this, f, h);
1229
1229
  case "base64":
1230
- return H(this, f, h);
1230
+ return U(this, f, h);
1231
1231
  case "ucs2":
1232
1232
  case "ucs-2":
1233
1233
  case "utf16le":
@@ -1363,16 +1363,16 @@ ws.write = function(e, t, r, n, i, a) {
1363
1363
  return z;
1364
1364
  }
1365
1365
  function T(w, f, h, E) {
1366
- return gt(re(f, w.length - h), w, h, E);
1366
+ return yt(re(f, w.length - h), w, h, E);
1367
1367
  }
1368
1368
  function A(w, f, h, E) {
1369
- return gt(ne(f), w, h, E);
1369
+ return yt(ne(f), w, h, E);
1370
1370
  }
1371
1371
  function j(w, f, h, E) {
1372
- return gt(_e(f), w, h, E);
1372
+ return yt(_e(f), w, h, E);
1373
1373
  }
1374
- function L(w, f, h, E) {
1375
- return gt(Ee(f, w.length - h), w, h, E);
1374
+ function M(w, f, h, E) {
1375
+ return yt(Ee(f, w.length - h), w, h, E);
1376
1376
  }
1377
1377
  s.prototype.write = function(f, h, E, $) {
1378
1378
  if (h === void 0)
@@ -1407,7 +1407,7 @@ ws.write = function(e, t, r, n, i, a) {
1407
1407
  case "ucs-2":
1408
1408
  case "utf16le":
1409
1409
  case "utf-16le":
1410
- return L(this, f, h, E);
1410
+ return M(this, f, h, E);
1411
1411
  default:
1412
1412
  if (z) throw new TypeError("Unknown encoding: " + $);
1413
1413
  $ = ("" + $).toLowerCase(), z = !0;
@@ -1418,7 +1418,7 @@ ws.write = function(e, t, r, n, i, a) {
1418
1418
  data: Array.prototype.slice.call(this._arr || this, 0)
1419
1419
  };
1420
1420
  };
1421
- function H(w, f, h) {
1421
+ function U(w, f, h) {
1422
1422
  return f === 0 && h === w.length ? t.fromByteArray(w) : t.fromByteArray(w.slice(f, h));
1423
1423
  }
1424
1424
  function Z(w, f, h) {
@@ -1617,14 +1617,14 @@ ws.write = function(e, t, r, n, i, a) {
1617
1617
  return f = +f, h = h >>> 0, E || F(this, f, h, 4, 4294967295, 0), this[h] = f >>> 24, this[h + 1] = f >>> 16, this[h + 2] = f >>> 8, this[h + 3] = f & 255, h + 4;
1618
1618
  };
1619
1619
  function q(w, f, h, E, $) {
1620
- M(f, E, $, w, h, 7);
1620
+ L(f, E, $, w, h, 7);
1621
1621
  let B = Number(f & BigInt(4294967295));
1622
1622
  w[h++] = B, B = B >> 8, w[h++] = B, B = B >> 8, w[h++] = B, B = B >> 8, w[h++] = B;
1623
1623
  let z = Number(f >> BigInt(32) & BigInt(4294967295));
1624
1624
  return w[h++] = z, z = z >> 8, w[h++] = z, z = z >> 8, w[h++] = z, z = z >> 8, w[h++] = z, h;
1625
1625
  }
1626
1626
  function W(w, f, h, E, $) {
1627
- M(f, E, $, w, h, 7);
1627
+ L(f, E, $, w, h, 7);
1628
1628
  let B = Number(f & BigInt(4294967295));
1629
1629
  w[h + 7] = B, B = B >> 8, w[h + 6] = B, B = B >> 8, w[h + 5] = B, B = B >> 8, w[h + 4] = B;
1630
1630
  let z = Number(f >> BigInt(32) & BigInt(4294967295));
@@ -1785,7 +1785,7 @@ ws.write = function(e, t, r, n, i, a) {
1785
1785
  function Y(w, f, h) {
1786
1786
  V(f, "offset"), (w[f] === void 0 || w[f + h] === void 0) && te(f, w.length - (h + 1));
1787
1787
  }
1788
- function M(w, f, h, E, $, B) {
1788
+ function L(w, f, h, E, $, B) {
1789
1789
  if (w > h || w < f) {
1790
1790
  const z = typeof f == "bigint" ? "n" : "";
1791
1791
  let he;
@@ -1881,7 +1881,7 @@ ws.write = function(e, t, r, n, i, a) {
1881
1881
  function _e(w) {
1882
1882
  return t.toByteArray(oe(w));
1883
1883
  }
1884
- function gt(w, f, h, E) {
1884
+ function yt(w, f, h, E) {
1885
1885
  let $;
1886
1886
  for ($ = 0; $ < E && !($ + h >= f.length || $ >= w.length); ++$)
1887
1887
  f[$ + h] = w[$];
@@ -1982,7 +1982,7 @@ async function Ep({
1982
1982
  headers: n
1983
1983
  };
1984
1984
  }
1985
- var gs = { request: Ep }, ht = function(e) {
1985
+ var gs = { request: Ep }, pt = function(e) {
1986
1986
  if (e = e || {}, this.Promise = e.Promise || Promise, this.queues = /* @__PURE__ */ Object.create(null), this.domainReentrant = e.domainReentrant || !1, this.domainReentrant) {
1987
1987
  if (typeof process > "u" || typeof process.domain > "u")
1988
1988
  throw new Error(
@@ -1990,13 +1990,13 @@ var gs = { request: Ep }, ht = function(e) {
1990
1990
  );
1991
1991
  this.domains = /* @__PURE__ */ Object.create(null);
1992
1992
  }
1993
- this.timeout = e.timeout || ht.DEFAULT_TIMEOUT, this.maxOccupationTime = e.maxOccupationTime || ht.DEFAULT_MAX_OCCUPATION_TIME, this.maxExecutionTime = e.maxExecutionTime || ht.DEFAULT_MAX_EXECUTION_TIME, e.maxPending === 1 / 0 || Number.isInteger(e.maxPending) && e.maxPending >= 0 ? this.maxPending = e.maxPending : this.maxPending = ht.DEFAULT_MAX_PENDING;
1993
+ this.timeout = e.timeout || pt.DEFAULT_TIMEOUT, this.maxOccupationTime = e.maxOccupationTime || pt.DEFAULT_MAX_OCCUPATION_TIME, this.maxExecutionTime = e.maxExecutionTime || pt.DEFAULT_MAX_EXECUTION_TIME, e.maxPending === 1 / 0 || Number.isInteger(e.maxPending) && e.maxPending >= 0 ? this.maxPending = e.maxPending : this.maxPending = pt.DEFAULT_MAX_PENDING;
1994
1994
  };
1995
- ht.DEFAULT_TIMEOUT = 0;
1996
- ht.DEFAULT_MAX_OCCUPATION_TIME = 0;
1997
- ht.DEFAULT_MAX_EXECUTION_TIME = 0;
1998
- ht.DEFAULT_MAX_PENDING = 1e3;
1999
- ht.prototype.acquire = function(e, t, r, n) {
1995
+ pt.DEFAULT_TIMEOUT = 0;
1996
+ pt.DEFAULT_MAX_OCCUPATION_TIME = 0;
1997
+ pt.DEFAULT_MAX_EXECUTION_TIME = 0;
1998
+ pt.DEFAULT_MAX_PENDING = 1e3;
1999
+ pt.prototype.acquire = function(e, t, r, n) {
2000
2000
  if (Array.isArray(e))
2001
2001
  return this._acquireBatch(e, t, r, n);
2002
2002
  if (typeof t != "function")
@@ -2056,7 +2056,7 @@ ht.prototype.acquire = function(e, t, r, n) {
2056
2056
  }, b)), o)
2057
2057
  return o;
2058
2058
  };
2059
- ht.prototype._acquireBatch = function(e, t, r, n) {
2059
+ pt.prototype._acquireBatch = function(e, t, r, n) {
2060
2060
  typeof r != "function" && (n = r, r = null);
2061
2061
  var i = this, a = function(s, l) {
2062
2062
  return function(c) {
@@ -2074,17 +2074,17 @@ ht.prototype._acquireBatch = function(e, t, r, n) {
2074
2074
  }) : s(o());
2075
2075
  });
2076
2076
  };
2077
- ht.prototype.isBusy = function(e) {
2077
+ pt.prototype.isBusy = function(e) {
2078
2078
  return e ? !!this.queues[e] : Object.keys(this.queues).length > 0;
2079
2079
  };
2080
- ht.prototype._promiseTry = function(e) {
2080
+ pt.prototype._promiseTry = function(e) {
2081
2081
  try {
2082
2082
  return this.Promise.resolve(e());
2083
2083
  } catch (t) {
2084
2084
  return this.Promise.reject(t);
2085
2085
  }
2086
2086
  };
2087
- var Sp = ht, kp = Sp;
2087
+ var Sp = pt, kp = Sp;
2088
2088
  const Hn = /* @__PURE__ */ Ot(kp);
2089
2089
  var Io = { exports: {} };
2090
2090
  typeof Object.create == "function" ? Io.exports = function(t, r) {
@@ -2402,27 +2402,27 @@ var N = Jr, ku = {};
2402
2402
  }
2403
2403
  var n = r();
2404
2404
  function i(R) {
2405
- var T = 0, A = 0, j = 0, L = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
2406
- for (j = 0; j != 256; ++j) L[j] = R[j];
2405
+ var T = 0, A = 0, j = 0, M = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
2406
+ for (j = 0; j != 256; ++j) M[j] = R[j];
2407
2407
  for (j = 0; j != 256; ++j)
2408
- for (A = R[j], T = 256 + j; T < 4096; T += 256) A = L[T] = A >>> 8 ^ R[A & 255];
2409
- var H = [];
2410
- for (j = 1; j != 16; ++j) H[j - 1] = typeof Int32Array < "u" ? L.subarray(j * 256, j * 256 + 256) : L.slice(j * 256, j * 256 + 256);
2411
- return H;
2408
+ for (A = R[j], T = 256 + j; T < 4096; T += 256) A = M[T] = A >>> 8 ^ R[A & 255];
2409
+ var U = [];
2410
+ for (j = 1; j != 16; ++j) U[j - 1] = typeof Int32Array < "u" ? M.subarray(j * 256, j * 256 + 256) : M.slice(j * 256, j * 256 + 256);
2411
+ return U;
2412
2412
  }
2413
2413
  var a = i(n), o = a[0], s = a[1], l = a[2], c = a[3], u = a[4], d = a[5], p = a[6], m = a[7], g = a[8], _ = a[9], x = a[10], b = a[11], v = a[12], k = a[13], S = a[14];
2414
2414
  function y(R, T) {
2415
- for (var A = T ^ -1, j = 0, L = R.length; j < L; ) A = A >>> 8 ^ n[(A ^ R.charCodeAt(j++)) & 255];
2415
+ for (var A = T ^ -1, j = 0, M = R.length; j < M; ) A = A >>> 8 ^ n[(A ^ R.charCodeAt(j++)) & 255];
2416
2416
  return ~A;
2417
2417
  }
2418
2418
  function C(R, T) {
2419
- for (var A = T ^ -1, j = R.length - 15, L = 0; L < j; ) A = S[R[L++] ^ A & 255] ^ k[R[L++] ^ A >> 8 & 255] ^ v[R[L++] ^ A >> 16 & 255] ^ b[R[L++] ^ A >>> 24] ^ x[R[L++]] ^ _[R[L++]] ^ g[R[L++]] ^ m[R[L++]] ^ p[R[L++]] ^ d[R[L++]] ^ u[R[L++]] ^ c[R[L++]] ^ l[R[L++]] ^ s[R[L++]] ^ o[R[L++]] ^ n[R[L++]];
2420
- for (j += 15; L < j; ) A = A >>> 8 ^ n[(A ^ R[L++]) & 255];
2419
+ for (var A = T ^ -1, j = R.length - 15, M = 0; M < j; ) A = S[R[M++] ^ A & 255] ^ k[R[M++] ^ A >> 8 & 255] ^ v[R[M++] ^ A >> 16 & 255] ^ b[R[M++] ^ A >>> 24] ^ x[R[M++]] ^ _[R[M++]] ^ g[R[M++]] ^ m[R[M++]] ^ p[R[M++]] ^ d[R[M++]] ^ u[R[M++]] ^ c[R[M++]] ^ l[R[M++]] ^ s[R[M++]] ^ o[R[M++]] ^ n[R[M++]];
2420
+ for (j += 15; M < j; ) A = A >>> 8 ^ n[(A ^ R[M++]) & 255];
2421
2421
  return ~A;
2422
2422
  }
2423
2423
  function O(R, T) {
2424
- for (var A = T ^ -1, j = 0, L = R.length, H = 0, Z = 0; j < L; )
2425
- H = R.charCodeAt(j++), H < 128 ? A = A >>> 8 ^ n[(A ^ H) & 255] : H < 2048 ? (A = A >>> 8 ^ n[(A ^ (192 | H >> 6 & 31)) & 255], A = A >>> 8 ^ n[(A ^ (128 | H & 63)) & 255]) : H >= 55296 && H < 57344 ? (H = (H & 1023) + 64, Z = R.charCodeAt(j++) & 1023, A = A >>> 8 ^ n[(A ^ (240 | H >> 8 & 7)) & 255], A = A >>> 8 ^ n[(A ^ (128 | H >> 2 & 63)) & 255], A = A >>> 8 ^ n[(A ^ (128 | Z >> 6 & 15 | (H & 3) << 4)) & 255], A = A >>> 8 ^ n[(A ^ (128 | Z & 63)) & 255]) : (A = A >>> 8 ^ n[(A ^ (224 | H >> 12 & 15)) & 255], A = A >>> 8 ^ n[(A ^ (128 | H >> 6 & 63)) & 255], A = A >>> 8 ^ n[(A ^ (128 | H & 63)) & 255]);
2424
+ for (var A = T ^ -1, j = 0, M = R.length, U = 0, Z = 0; j < M; )
2425
+ U = R.charCodeAt(j++), U < 128 ? A = A >>> 8 ^ n[(A ^ U) & 255] : U < 2048 ? (A = A >>> 8 ^ n[(A ^ (192 | U >> 6 & 31)) & 255], A = A >>> 8 ^ n[(A ^ (128 | U & 63)) & 255]) : U >= 55296 && U < 57344 ? (U = (U & 1023) + 64, Z = R.charCodeAt(j++) & 1023, A = A >>> 8 ^ n[(A ^ (240 | U >> 8 & 7)) & 255], A = A >>> 8 ^ n[(A ^ (128 | U >> 2 & 63)) & 255], A = A >>> 8 ^ n[(A ^ (128 | Z >> 6 & 15 | (U & 3) << 4)) & 255], A = A >>> 8 ^ n[(A ^ (128 | Z & 63)) & 255]) : (A = A >>> 8 ^ n[(A ^ (224 | U >> 12 & 15)) & 255], A = A >>> 8 ^ n[(A ^ (128 | U >> 6 & 63)) & 255], A = A >>> 8 ^ n[(A ^ (128 | U & 63)) & 255]);
2426
2426
  return ~A;
2427
2427
  }
2428
2428
  t.table = n, t.bstr = y, t.buf = C, t.str = O;
@@ -2774,7 +2774,7 @@ var Uu = l0, xs = {
2774
2774
  /* Z_BUF_ERROR (-5) */
2775
2775
  "-6": "incompatible version"
2776
2776
  /* Z_VERSION_ERROR (-6) */
2777
- }, tt = er, _t = wn, Hu = Fu, or = Uu, u0 = xs, zr = 0, f0 = 1, d0 = 3, dr = 4, Oc = 5, Mt = 0, Cc = 1, vt = -2, h0 = -3, to = -5, p0 = -1, m0 = 1, Pi = 2, w0 = 3, g0 = 4, y0 = 0, b0 = 2, ba = 8, _0 = 9, v0 = 15, x0 = 8, E0 = 29, S0 = 256, No = S0 + 1 + E0, k0 = 30, R0 = 19, O0 = 2 * No + 1, C0 = 15, pe = 3, lr = 258, kt = lr + pe + 1, P0 = 32, _a = 42, Mo = 69, qi = 73, Gi = 91, Yi = 103, Rr = 113, In = 666, Fe = 1, ni = 2, Tr = 3, yn = 4, $0 = 3;
2777
+ }, tt = er, vt = wn, Hu = Fu, or = Uu, u0 = xs, zr = 0, f0 = 1, d0 = 3, dr = 4, Oc = 5, Mt = 0, Cc = 1, xt = -2, h0 = -3, to = -5, p0 = -1, m0 = 1, Pi = 2, w0 = 3, g0 = 4, y0 = 0, b0 = 2, ba = 8, _0 = 9, v0 = 15, x0 = 8, E0 = 29, S0 = 256, No = S0 + 1 + E0, k0 = 30, R0 = 19, O0 = 2 * No + 1, C0 = 15, pe = 3, lr = 258, kt = lr + pe + 1, P0 = 32, _a = 42, Mo = 69, qi = 73, Gi = 91, Yi = 103, Rr = 113, In = 666, Fe = 1, ni = 2, Tr = 3, yn = 4, $0 = 3;
2778
2778
  function ur(e, t) {
2779
2779
  return e.msg = u0[t], t;
2780
2780
  }
@@ -2790,7 +2790,7 @@ function sr(e) {
2790
2790
  r > e.avail_out && (r = e.avail_out), r !== 0 && (tt.arraySet(e.output, t.pending_buf, t.pending_out, r, e.next_out), e.next_out += r, t.pending_out += r, e.total_out += r, e.avail_out -= r, t.pending -= r, t.pending === 0 && (t.pending_out = 0));
2791
2791
  }
2792
2792
  function Ge(e, t) {
2793
- _t._tr_flush_block(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, t), e.block_start = e.strstart, sr(e.strm);
2793
+ vt._tr_flush_block(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, t), e.block_start = e.strstart, sr(e.strm);
2794
2794
  }
2795
2795
  function ye(e, t) {
2796
2796
  e.pending_buf[e.pending++] = t;
@@ -2866,7 +2866,7 @@ function ro(e, t) {
2866
2866
  break;
2867
2867
  }
2868
2868
  if (r = 0, e.lookahead >= pe && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + pe - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), r !== 0 && e.strstart - r <= e.w_size - kt && (e.match_length = Wu(e, r)), e.match_length >= pe)
2869
- if (n = _t._tr_tally(e, e.strstart - e.match_start, e.match_length - pe), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= pe) {
2869
+ if (n = vt._tr_tally(e, e.strstart - e.match_start, e.match_length - pe), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= pe) {
2870
2870
  e.match_length--;
2871
2871
  do
2872
2872
  e.strstart++, e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + pe - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart;
@@ -2875,7 +2875,7 @@ function ro(e, t) {
2875
2875
  } else
2876
2876
  e.strstart += e.match_length, e.match_length = 0, e.ins_h = e.window[e.strstart], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 1]) & e.hash_mask;
2877
2877
  else
2878
- n = _t._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
2878
+ n = vt._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
2879
2879
  if (n && (Ge(e, !1), e.strm.avail_out === 0))
2880
2880
  return Fe;
2881
2881
  }
@@ -2890,19 +2890,19 @@ function Hr(e, t) {
2890
2890
  break;
2891
2891
  }
2892
2892
  if (r = 0, e.lookahead >= pe && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + pe - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = pe - 1, r !== 0 && e.prev_length < e.max_lazy_match && e.strstart - r <= e.w_size - kt && (e.match_length = Wu(e, r), e.match_length <= 5 && (e.strategy === m0 || e.match_length === pe && e.strstart - e.match_start > 4096) && (e.match_length = pe - 1)), e.prev_length >= pe && e.match_length <= e.prev_length) {
2893
- i = e.strstart + e.lookahead - pe, n = _t._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - pe), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
2893
+ i = e.strstart + e.lookahead - pe, n = vt._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - pe), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
2894
2894
  do
2895
2895
  ++e.strstart <= i && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + pe - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
2896
2896
  while (--e.prev_length !== 0);
2897
2897
  if (e.match_available = 0, e.match_length = pe - 1, e.strstart++, n && (Ge(e, !1), e.strm.avail_out === 0))
2898
2898
  return Fe;
2899
2899
  } else if (e.match_available) {
2900
- if (n = _t._tr_tally(e, 0, e.window[e.strstart - 1]), n && Ge(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0)
2900
+ if (n = vt._tr_tally(e, 0, e.window[e.strstart - 1]), n && Ge(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0)
2901
2901
  return Fe;
2902
2902
  } else
2903
2903
  e.match_available = 1, e.strstart++, e.lookahead--;
2904
2904
  }
2905
- return e.match_available && (n = _t._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < pe - 1 ? e.strstart : pe - 1, t === dr ? (Ge(e, !0), e.strm.avail_out === 0 ? Tr : yn) : e.last_lit && (Ge(e, !1), e.strm.avail_out === 0) ? Fe : ni;
2905
+ return e.match_available && (n = vt._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < pe - 1 ? e.strstart : pe - 1, t === dr ? (Ge(e, !0), e.strm.avail_out === 0 ? Tr : yn) : e.last_lit && (Ge(e, !1), e.strm.avail_out === 0) ? Fe : ni;
2906
2906
  }
2907
2907
  function D0(e, t) {
2908
2908
  for (var r, n, i, a, o = e.window; ; ) {
@@ -2919,7 +2919,7 @@ function D0(e, t) {
2919
2919
  while (n === o[++i] && n === o[++i] && n === o[++i] && n === o[++i] && n === o[++i] && n === o[++i] && n === o[++i] && n === o[++i] && i < a);
2920
2920
  e.match_length = lr - (a - i), e.match_length > e.lookahead && (e.match_length = e.lookahead);
2921
2921
  }
2922
- if (e.match_length >= pe ? (r = _t._tr_tally(e, 1, e.match_length - pe), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (r = _t._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), r && (Ge(e, !1), e.strm.avail_out === 0))
2922
+ if (e.match_length >= pe ? (r = vt._tr_tally(e, 1, e.match_length - pe), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (r = vt._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), r && (Ge(e, !1), e.strm.avail_out === 0))
2923
2923
  return Fe;
2924
2924
  }
2925
2925
  return e.insert = 0, t === dr ? (Ge(e, !0), e.strm.avail_out === 0 ? Tr : yn) : e.last_lit && (Ge(e, !1), e.strm.avail_out === 0) ? Fe : ni;
@@ -2931,7 +2931,7 @@ function I0(e, t) {
2931
2931
  return Fe;
2932
2932
  break;
2933
2933
  }
2934
- if (e.match_length = 0, r = _t._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, r && (Ge(e, !1), e.strm.avail_out === 0))
2934
+ if (e.match_length = 0, r = vt._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, r && (Ge(e, !1), e.strm.avail_out === 0))
2935
2935
  return Fe;
2936
2936
  }
2937
2937
  return e.insert = 0, t === dr ? (Ge(e, !0), e.strm.avail_out === 0 ? Tr : yn) : e.last_lit && (Ge(e, !1), e.strm.avail_out === 0) ? Fe : ni;
@@ -2971,21 +2971,21 @@ function j0() {
2971
2971
  }
2972
2972
  function qu(e) {
2973
2973
  var t;
2974
- return !e || !e.state ? ur(e, vt) : (e.total_in = e.total_out = 0, e.data_type = b0, t = e.state, t.pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? _a : Rr, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = zr, _t._tr_init(t), Mt);
2974
+ return !e || !e.state ? ur(e, xt) : (e.total_in = e.total_out = 0, e.data_type = b0, t = e.state, t.pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? _a : Rr, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = zr, vt._tr_init(t), Mt);
2975
2975
  }
2976
2976
  function Gu(e) {
2977
2977
  var t = qu(e);
2978
2978
  return t === Mt && B0(e.state), t;
2979
2979
  }
2980
2980
  function z0(e, t) {
2981
- return !e || !e.state || e.state.wrap !== 2 ? vt : (e.state.gzhead = t, Mt);
2981
+ return !e || !e.state || e.state.wrap !== 2 ? xt : (e.state.gzhead = t, Mt);
2982
2982
  }
2983
2983
  function Yu(e, t, r, n, i, a) {
2984
2984
  if (!e)
2985
- return vt;
2985
+ return xt;
2986
2986
  var o = 1;
2987
2987
  if (t === p0 && (t = 6), n < 0 ? (o = 0, n = -n) : n > 15 && (o = 2, n -= 16), i < 1 || i > _0 || r !== ba || n < 8 || n > 15 || t < 0 || t > 9 || a < 0 || a > g0)
2988
- return ur(e, vt);
2988
+ return ur(e, xt);
2989
2989
  n === 8 && (n = 9);
2990
2990
  var s = new j0();
2991
2991
  return e.state = s, s.strm = e, s.wrap = o, s.gzhead = null, s.w_bits = n, s.w_size = 1 << s.w_bits, s.w_mask = s.w_size - 1, s.hash_bits = i + 7, s.hash_size = 1 << s.hash_bits, s.hash_mask = s.hash_size - 1, s.hash_shift = ~~((s.hash_bits + pe - 1) / pe), s.window = new tt.Buf8(s.w_size * 2), s.head = new tt.Buf16(s.hash_size), s.prev = new tt.Buf16(s.w_size), s.lit_bufsize = 1 << i + 6, s.pending_buf_size = s.lit_bufsize * 4, s.pending_buf = new tt.Buf8(s.pending_buf_size), s.d_buf = 1 * s.lit_bufsize, s.l_buf = 3 * s.lit_bufsize, s.level = t, s.strategy = a, s.method = r, Gu(e);
@@ -2996,9 +2996,9 @@ function N0(e, t) {
2996
2996
  function M0(e, t) {
2997
2997
  var r, n, i, a;
2998
2998
  if (!e || !e.state || t > Oc || t < 0)
2999
- return e ? ur(e, vt) : vt;
2999
+ return e ? ur(e, xt) : xt;
3000
3000
  if (n = e.state, !e.output || !e.input && e.avail_in !== 0 || n.status === In && t !== dr)
3001
- return ur(e, e.avail_out === 0 ? to : vt);
3001
+ return ur(e, e.avail_out === 0 ? to : xt);
3002
3002
  if (n.strm = e, r = n.last_flush, n.last_flush = t, n.status === _a)
3003
3003
  if (n.wrap === 2)
3004
3004
  e.adler = 0, ye(n, 31), ye(n, 139), ye(n, 8), n.gzhead ? (ye(
@@ -3053,19 +3053,19 @@ function M0(e, t) {
3053
3053
  var l = n.strategy === Pi ? I0(n, t) : n.strategy === w0 ? D0(n, t) : Xr[n.level].func(n, t);
3054
3054
  if ((l === Tr || l === yn) && (n.status = In), l === Fe || l === Tr)
3055
3055
  return e.avail_out === 0 && (n.last_flush = -1), Mt;
3056
- if (l === ni && (t === f0 ? _t._tr_align(n) : t !== Oc && (_t._tr_stored_block(n, 0, 0, !1), t === d0 && (cr(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))), sr(e), e.avail_out === 0))
3056
+ if (l === ni && (t === f0 ? vt._tr_align(n) : t !== Oc && (vt._tr_stored_block(n, 0, 0, !1), t === d0 && (cr(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))), sr(e), e.avail_out === 0))
3057
3057
  return n.last_flush = -1, Mt;
3058
3058
  }
3059
3059
  return t !== dr ? Mt : n.wrap <= 0 ? Cc : (n.wrap === 2 ? (ye(n, e.adler & 255), ye(n, e.adler >> 8 & 255), ye(n, e.adler >> 16 & 255), ye(n, e.adler >> 24 & 255), ye(n, e.total_in & 255), ye(n, e.total_in >> 8 & 255), ye(n, e.total_in >> 16 & 255), ye(n, e.total_in >> 24 & 255)) : ($n(n, e.adler >>> 16), $n(n, e.adler & 65535)), sr(e), n.wrap > 0 && (n.wrap = -n.wrap), n.pending !== 0 ? Mt : Cc);
3060
3060
  }
3061
3061
  function L0(e) {
3062
3062
  var t;
3063
- return !e || !e.state ? vt : (t = e.state.status, t !== _a && t !== Mo && t !== qi && t !== Gi && t !== Yi && t !== Rr && t !== In ? ur(e, vt) : (e.state = null, t === Rr ? ur(e, h0) : Mt));
3063
+ return !e || !e.state ? xt : (t = e.state.status, t !== _a && t !== Mo && t !== qi && t !== Gi && t !== Yi && t !== Rr && t !== In ? ur(e, xt) : (e.state = null, t === Rr ? ur(e, h0) : Mt));
3064
3064
  }
3065
3065
  function F0(e, t) {
3066
3066
  var r = t.length, n, i, a, o, s, l, c, u;
3067
3067
  if (!e || !e.state || (n = e.state, o = n.wrap, o === 2 || o === 1 && n.status !== _a || n.lookahead))
3068
- return vt;
3068
+ return xt;
3069
3069
  for (o === 1 && (e.adler = Hu(e.adler, t, r, 0)), n.wrap = 0, r >= n.w_size && (o === 0 && (cr(n.head), n.strstart = 0, n.block_start = 0, n.insert = 0), u = new tt.Buf8(n.w_size), tt.arraySet(u, t, r - n.w_size, n.w_size, 0), t = u, r = n.w_size), s = e.avail_in, l = e.next_in, c = e.input, e.avail_in = r, e.next_in = 0, e.input = t, Ar(n); n.lookahead >= pe; ) {
3070
3070
  i = n.strstart, a = n.lookahead - (pe - 1);
3071
3071
  do
@@ -3440,26 +3440,26 @@ var ii = {}, Ct = {}, $i = 30, V0 = 12, K0 = function(t, r) {
3440
3440
  64,
3441
3441
  64
3442
3442
  ], rm = function(t, r, n, i, a, o, s, l) {
3443
- var c = l.bits, u = 0, d = 0, p = 0, m = 0, g = 0, _ = 0, x = 0, b = 0, v = 0, k = 0, S, y, C, O, R, T = null, A = 0, j, L = new Ac.Buf16(Wr + 1), H = new Ac.Buf16(Wr + 1), Z = null, fe = 0, Ce, me, be;
3443
+ var c = l.bits, u = 0, d = 0, p = 0, m = 0, g = 0, _ = 0, x = 0, b = 0, v = 0, k = 0, S, y, C, O, R, T = null, A = 0, j, M = new Ac.Buf16(Wr + 1), U = new Ac.Buf16(Wr + 1), Z = null, fe = 0, Ce, me, be;
3444
3444
  for (u = 0; u <= Wr; u++)
3445
- L[u] = 0;
3445
+ M[u] = 0;
3446
3446
  for (d = 0; d < i; d++)
3447
- L[r[n + d]]++;
3448
- for (g = c, m = Wr; m >= 1 && L[m] === 0; m--)
3447
+ M[r[n + d]]++;
3448
+ for (g = c, m = Wr; m >= 1 && M[m] === 0; m--)
3449
3449
  ;
3450
3450
  if (g > m && (g = m), m === 0)
3451
3451
  return a[o++] = 1 << 24 | 64 << 16 | 0, a[o++] = 1 << 24 | 64 << 16 | 0, l.bits = 1, 0;
3452
- for (p = 1; p < m && L[p] === 0; p++)
3452
+ for (p = 1; p < m && M[p] === 0; p++)
3453
3453
  ;
3454
3454
  for (g < p && (g = p), b = 1, u = 1; u <= Wr; u++)
3455
- if (b <<= 1, b -= L[u], b < 0)
3455
+ if (b <<= 1, b -= M[u], b < 0)
3456
3456
  return -1;
3457
3457
  if (b > 0 && (t === Bc || m !== 1))
3458
3458
  return -1;
3459
- for (H[1] = 0, u = 1; u < Wr; u++)
3460
- H[u + 1] = H[u] + L[u];
3459
+ for (U[1] = 0, u = 1; u < Wr; u++)
3460
+ U[u + 1] = U[u] + M[u];
3461
3461
  for (d = 0; d < i; d++)
3462
- r[n + d] !== 0 && (s[H[r[n + d]]++] = d);
3462
+ r[n + d] !== 0 && (s[U[r[n + d]]++] = d);
3463
3463
  if (t === Bc ? (T = Z = s, j = 19) : t === io ? (T = J0, A -= 257, Z = Q0, fe -= 257, j = 256) : (T = em, Z = tm, j = -1), k = 0, d = 0, u = p, R = o, _ = g, x = 0, C = -1, v = 1 << g, O = v - 1, t === io && v > Dc || t === jc && v > Ic)
3464
3464
  return 1;
3465
3465
  for (; ; ) {
@@ -3469,13 +3469,13 @@ var ii = {}, Ct = {}, $i = 30, V0 = 12, K0 = function(t, r) {
3469
3469
  while (y !== 0);
3470
3470
  for (S = 1 << u - 1; k & S; )
3471
3471
  S >>= 1;
3472
- if (S !== 0 ? (k &= S - 1, k += S) : k = 0, d++, --L[u] === 0) {
3472
+ if (S !== 0 ? (k &= S - 1, k += S) : k = 0, d++, --M[u] === 0) {
3473
3473
  if (u === m)
3474
3474
  break;
3475
3475
  u = r[n + s[d]];
3476
3476
  }
3477
3477
  if (u > g && (k & O) !== C) {
3478
- for (x === 0 && (x = g), R += p, _ = u - x, b = 1 << _; _ + x < m && (b -= L[_ + x], !(b <= 0)); )
3478
+ for (x === 0 && (x = g), R += p, _ = u - x, b = 1 << _; _ + x < m && (b -= M[_ + x], !(b <= 0)); )
3479
3479
  _++, b <<= 1;
3480
3480
  if (v += 1 << _, t === io && v > Dc || t === jc && v > Ic)
3481
3481
  return 1;
@@ -3483,28 +3483,28 @@ var ii = {}, Ct = {}, $i = 30, V0 = 12, K0 = function(t, r) {
3483
3483
  }
3484
3484
  }
3485
3485
  return k !== 0 && (a[R + k] = u - x << 24 | 64 << 16 | 0), l.bits = g, 0;
3486
- }, pt = er, Uo = Fu, Dt = Uu, nm = K0, Ln = rm, im = 0, Qu = 1, ef = 2, zc = 4, am = 5, Ti = 6, Ir = 0, om = 1, sm = 2, xt = -2, tf = -3, rf = -4, cm = -5, Nc = 8, nf = 1, Mc = 2, Lc = 3, Fc = 4, Uc = 5, Hc = 6, Wc = 7, qc = 8, Gc = 9, Yc = 10, Qi = 11, Gt = 12, ao = 13, Zc = 14, oo = 15, Xc = 16, Vc = 17, Kc = 18, Jc = 19, Ai = 20, Di = 21, Qc = 22, el = 23, tl = 24, rl = 25, nl = 26, so = 27, il = 28, al = 29, $e = 30, af = 31, lm = 32, um = 852, fm = 592, dm = 15, hm = dm;
3486
+ }, mt = er, Uo = Fu, Dt = Uu, nm = K0, Ln = rm, im = 0, Qu = 1, ef = 2, zc = 4, am = 5, Ti = 6, Ir = 0, om = 1, sm = 2, Et = -2, tf = -3, rf = -4, cm = -5, Nc = 8, nf = 1, Mc = 2, Lc = 3, Fc = 4, Uc = 5, Hc = 6, Wc = 7, qc = 8, Gc = 9, Yc = 10, Qi = 11, Gt = 12, ao = 13, Zc = 14, oo = 15, Xc = 16, Vc = 17, Kc = 18, Jc = 19, Ai = 20, Di = 21, Qc = 22, el = 23, tl = 24, rl = 25, nl = 26, so = 27, il = 28, al = 29, $e = 30, af = 31, lm = 32, um = 852, fm = 592, dm = 15, hm = dm;
3487
3487
  function ol(e) {
3488
3488
  return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
3489
3489
  }
3490
3490
  function pm() {
3491
- this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new pt.Buf16(320), this.work = new pt.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
3491
+ this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new mt.Buf16(320), this.work = new mt.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
3492
3492
  }
3493
3493
  function of(e) {
3494
3494
  var t;
3495
- return !e || !e.state ? xt : (t = e.state, e.total_in = e.total_out = t.total = 0, e.msg = "", t.wrap && (e.adler = t.wrap & 1), t.mode = nf, t.last = 0, t.havedict = 0, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new pt.Buf32(um), t.distcode = t.distdyn = new pt.Buf32(fm), t.sane = 1, t.back = -1, Ir);
3495
+ return !e || !e.state ? Et : (t = e.state, e.total_in = e.total_out = t.total = 0, e.msg = "", t.wrap && (e.adler = t.wrap & 1), t.mode = nf, t.last = 0, t.havedict = 0, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new mt.Buf32(um), t.distcode = t.distdyn = new mt.Buf32(fm), t.sane = 1, t.back = -1, Ir);
3496
3496
  }
3497
3497
  function sf(e) {
3498
3498
  var t;
3499
- return !e || !e.state ? xt : (t = e.state, t.wsize = 0, t.whave = 0, t.wnext = 0, of(e));
3499
+ return !e || !e.state ? Et : (t = e.state, t.wsize = 0, t.whave = 0, t.wnext = 0, of(e));
3500
3500
  }
3501
3501
  function cf(e, t) {
3502
3502
  var r, n;
3503
- return !e || !e.state || (n = e.state, t < 0 ? (r = 0, t = -t) : (r = (t >> 4) + 1, t < 48 && (t &= 15)), t && (t < 8 || t > 15)) ? xt : (n.window !== null && n.wbits !== t && (n.window = null), n.wrap = r, n.wbits = t, sf(e));
3503
+ return !e || !e.state || (n = e.state, t < 0 ? (r = 0, t = -t) : (r = (t >> 4) + 1, t < 48 && (t &= 15)), t && (t < 8 || t > 15)) ? Et : (n.window !== null && n.wbits !== t && (n.window = null), n.wrap = r, n.wbits = t, sf(e));
3504
3504
  }
3505
3505
  function lf(e, t) {
3506
3506
  var r, n;
3507
- return e ? (n = new pm(), e.state = n, n.window = null, r = cf(e, t), r !== Ir && (e.state = null), r) : xt;
3507
+ return e ? (n = new pm(), e.state = n, n.window = null, r = cf(e, t), r !== Ir && (e.state = null), r) : Et;
3508
3508
  }
3509
3509
  function mm(e) {
3510
3510
  return lf(e, hm);
@@ -3513,7 +3513,7 @@ var sl = !0, co, lo;
3513
3513
  function wm(e) {
3514
3514
  if (sl) {
3515
3515
  var t;
3516
- for (co = new pt.Buf32(512), lo = new pt.Buf32(32), t = 0; t < 144; )
3516
+ for (co = new mt.Buf32(512), lo = new mt.Buf32(32), t = 0; t < 144; )
3517
3517
  e.lens[t++] = 8;
3518
3518
  for (; t < 256; )
3519
3519
  e.lens[t++] = 9;
@@ -3529,15 +3529,15 @@ function wm(e) {
3529
3529
  }
3530
3530
  function uf(e, t, r, n) {
3531
3531
  var i, a = e.state;
3532
- return a.window === null && (a.wsize = 1 << a.wbits, a.wnext = 0, a.whave = 0, a.window = new pt.Buf8(a.wsize)), n >= a.wsize ? (pt.arraySet(a.window, t, r - a.wsize, a.wsize, 0), a.wnext = 0, a.whave = a.wsize) : (i = a.wsize - a.wnext, i > n && (i = n), pt.arraySet(a.window, t, r - n, i, a.wnext), n -= i, n ? (pt.arraySet(a.window, t, r - n, n, 0), a.wnext = n, a.whave = a.wsize) : (a.wnext += i, a.wnext === a.wsize && (a.wnext = 0), a.whave < a.wsize && (a.whave += i))), 0;
3532
+ return a.window === null && (a.wsize = 1 << a.wbits, a.wnext = 0, a.whave = 0, a.window = new mt.Buf8(a.wsize)), n >= a.wsize ? (mt.arraySet(a.window, t, r - a.wsize, a.wsize, 0), a.wnext = 0, a.whave = a.wsize) : (i = a.wsize - a.wnext, i > n && (i = n), mt.arraySet(a.window, t, r - n, i, a.wnext), n -= i, n ? (mt.arraySet(a.window, t, r - n, n, 0), a.wnext = n, a.whave = a.wsize) : (a.wnext += i, a.wnext === a.wsize && (a.wnext = 0), a.whave < a.wsize && (a.whave += i))), 0;
3533
3533
  }
3534
3534
  function gm(e, t) {
3535
- var r, n, i, a, o, s, l, c, u, d, p, m, g, _, x = 0, b, v, k, S, y, C, O, R, T = new pt.Buf8(4), A, j, L = (
3535
+ var r, n, i, a, o, s, l, c, u, d, p, m, g, _, x = 0, b, v, k, S, y, C, O, R, T = new mt.Buf8(4), A, j, M = (
3536
3536
  /* permutation of code lengths */
3537
3537
  [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
3538
3538
  );
3539
3539
  if (!e || !e.state || !e.output || !e.input && e.avail_in !== 0)
3540
- return xt;
3540
+ return Et;
3541
3541
  r = e.state, r.mode === Gt && (r.mode = ao), o = e.next_out, i = e.output, l = e.avail_out, a = e.next_in, n = e.input, s = e.avail_in, c = r.hold, u = r.bits, d = s, p = l, R = Ir;
3542
3542
  e:
3543
3543
  for (; ; )
@@ -3613,7 +3613,7 @@ function gm(e, t) {
3613
3613
  } else r.head && (r.head.extra = null);
3614
3614
  r.mode = Hc;
3615
3615
  case Hc:
3616
- if (r.flags & 1024 && (m = r.length, m > s && (m = s), m && (r.head && (O = r.head.extra_len - r.length, r.head.extra || (r.head.extra = new Array(r.head.extra_len)), pt.arraySet(
3616
+ if (r.flags & 1024 && (m = r.length, m > s && (m = s), m && (r.head && (O = r.head.extra_len - r.length, r.head.extra || (r.head.extra = new Array(r.head.extra_len)), mt.arraySet(
3617
3617
  r.head.extra,
3618
3618
  n,
3619
3619
  a,
@@ -3724,7 +3724,7 @@ function gm(e, t) {
3724
3724
  if (m = r.length, m) {
3725
3725
  if (m > s && (m = s), m > l && (m = l), m === 0)
3726
3726
  break e;
3727
- pt.arraySet(i, n, a, m, o), s -= m, a += m, l -= m, o += m, r.length -= m;
3727
+ mt.arraySet(i, n, a, m, o), s -= m, a += m, l -= m, o += m, r.length -= m;
3728
3728
  break;
3729
3729
  }
3730
3730
  r.mode = Gt;
@@ -3747,10 +3747,10 @@ function gm(e, t) {
3747
3747
  break e;
3748
3748
  s--, c += n[a++] << u, u += 8;
3749
3749
  }
3750
- r.lens[L[r.have++]] = c & 7, c >>>= 3, u -= 3;
3750
+ r.lens[M[r.have++]] = c & 7, c >>>= 3, u -= 3;
3751
3751
  }
3752
3752
  for (; r.have < 19; )
3753
- r.lens[L[r.have++]] = 0;
3753
+ r.lens[M[r.have++]] = 0;
3754
3754
  if (r.lencode = r.lendyn, r.lenbits = 7, A = { bits: r.lenbits }, R = Ln(im, r.lens, 0, 19, r.lencode, 0, r.work, A), r.lenbits = A.bits, R) {
3755
3755
  e.msg = "invalid code lengths set", r.mode = $e;
3756
3756
  break;
@@ -3953,24 +3953,24 @@ function gm(e, t) {
3953
3953
  return rf;
3954
3954
  case lm:
3955
3955
  default:
3956
- return xt;
3956
+ return Et;
3957
3957
  }
3958
3958
  return e.next_out = o, e.avail_out = l, e.next_in = a, e.avail_in = s, r.hold = c, r.bits = u, (r.wsize || p !== e.avail_out && r.mode < $e && (r.mode < so || t !== zc)) && uf(e, e.output, e.next_out, p - e.avail_out), d -= e.avail_in, p -= e.avail_out, e.total_in += d, e.total_out += p, r.total += p, r.wrap && p && (e.adler = r.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
3959
3959
  r.flags ? Dt(r.check, i, p, e.next_out - p) : Uo(r.check, i, p, e.next_out - p)), e.data_type = r.bits + (r.last ? 64 : 0) + (r.mode === Gt ? 128 : 0) + (r.mode === Ai || r.mode === oo ? 256 : 0), (d === 0 && p === 0 || t === zc) && R === Ir && (R = cm), R;
3960
3960
  }
3961
3961
  function ym(e) {
3962
3962
  if (!e || !e.state)
3963
- return xt;
3963
+ return Et;
3964
3964
  var t = e.state;
3965
3965
  return t.window && (t.window = null), e.state = null, Ir;
3966
3966
  }
3967
3967
  function bm(e, t) {
3968
3968
  var r;
3969
- return !e || !e.state || (r = e.state, !(r.wrap & 2)) ? xt : (r.head = t, t.done = !1, Ir);
3969
+ return !e || !e.state || (r = e.state, !(r.wrap & 2)) ? Et : (r.head = t, t.done = !1, Ir);
3970
3970
  }
3971
3971
  function _m(e, t) {
3972
3972
  var r = t.length, n, i, a;
3973
- return !e || !e.state || (n = e.state, n.wrap !== 0 && n.mode !== Qi) ? xt : n.mode === Qi && (i = 1, i = Uo(i, t, r, 0), i !== n.check) ? tf : (a = uf(e, t, r, r), a ? (n.mode = af, rf) : (n.havedict = 1, Ir));
3973
+ return !e || !e.state || (n = e.state, n.wrap !== 0 && n.mode !== Qi) ? Et : n.mode === Qi && (i = 1, i = Uo(i, t, r, 0), i !== n.check) ? tf : (a = uf(e, t, r, r), a ? (n.mode = af, rf) : (n.havedict = 1, Ir));
3974
3974
  }
3975
3975
  Ct.inflateReset = sf;
3976
3976
  Ct.inflateReset2 = cf;
@@ -4445,10 +4445,10 @@ var rw = function(e, t) {
4445
4445
  t: R
4446
4446
  };
4447
4447
  }, y = function(O, R, T) {
4448
- var A, j, L;
4449
- for (R > T ? A = c[O - 1 + l] : A = c[O + 1 + l], L = Math.max(R, T), j = L - O; j < i && L < a && r[j] === n[L]; )
4450
- ++j, ++L;
4451
- return c[O + l] = u.length, u[u.length] = new k(j, L, A), L;
4448
+ var A, j, M;
4449
+ for (R > T ? A = c[O - 1 + l] : A = c[O + 1 + l], M = Math.max(R, T), j = M - O; j < i && M < a && r[j] === n[M]; )
4450
+ ++j, ++M;
4451
+ return c[O + l] = u.length, u[u.length] = new k(j, M, A), M;
4452
4452
  }, C = function(O) {
4453
4453
  var R, T, A;
4454
4454
  for (R = T = 0, A = O.length - 1; A >= 0; --A)
@@ -4469,9 +4469,9 @@ var rw = function(e, t) {
4469
4469
  return d;
4470
4470
  },
4471
4471
  compose: function() {
4472
- var O, R, T, A, j, L, H, Z;
4473
- for (O = a - i, R = i + a + 3, T = {}, H = 0; H < R; ++H)
4474
- T[H] = -1, c[H] = -1;
4472
+ var O, R, T, A, j, M, U, Z;
4473
+ for (O = a - i, R = i + a + 3, T = {}, U = 0; U < R; ++U)
4474
+ T[U] = -1, c[U] = -1;
4475
4475
  A = -1;
4476
4476
  do {
4477
4477
  for (++A, Z = -A; Z <= O - 1; ++Z)
@@ -4480,9 +4480,9 @@ var rw = function(e, t) {
4480
4480
  T[Z + l] = y(Z, T[Z - 1 + l] + 1, T[Z + 1 + l]);
4481
4481
  T[O + l] = y(O, T[O - 1 + l] + 1, T[O + 1 + l]);
4482
4482
  } while (T[O + l] !== a);
4483
- for (s = O + 2 * A, j = c[O + l], L = []; j !== -1; )
4484
- L[L.length] = new k(u[j].x, u[j].y, null), j = u[j].k;
4485
- C(L);
4483
+ for (s = O + 2 * A, j = c[O + l], M = []; j !== -1; )
4484
+ M[M.length] = new k(u[j].x, u[j].y, null), j = u[j].k;
4485
+ C(M);
4486
4486
  }
4487
4487
  };
4488
4488
  }, nw = rw;
@@ -4518,19 +4518,19 @@ function hl(e, t) {
4518
4518
  }
4519
4519
  function aw(e, t, r) {
4520
4520
  var n, i = hl(t, e), a = hl(t, r), o = [];
4521
- function s(H, Z) {
4522
- o.push([H.file1[0], Z, H.file1[1], H.file2[0], H.file2[1]]);
4521
+ function s(U, Z) {
4522
+ o.push([U.file1[0], Z, U.file1[1], U.file2[0], U.file2[1]]);
4523
4523
  }
4524
4524
  for (n = 0; n < i.length; n++)
4525
4525
  s(i[n], 0);
4526
4526
  for (n = 0; n < a.length; n++)
4527
4527
  s(a[n], 2);
4528
- o.sort(function(H, Z) {
4529
- return H[0] - Z[0];
4528
+ o.sort(function(U, Z) {
4529
+ return U[0] - Z[0];
4530
4530
  });
4531
4531
  var l = [], c = 0;
4532
- function u(H) {
4533
- H > c && (l.push([1, c, H - c]), c = H);
4532
+ function u(U) {
4533
+ U > c && (l.push([1, c, U - c]), c = U);
4534
4534
  }
4535
4535
  for (var d = 0; d < o.length; d++) {
4536
4536
  for (var p = d, m = o[d], g = m[0], _ = g + m[2]; d < o.length - 1; ) {
@@ -4550,7 +4550,7 @@ function aw(e, t, r) {
4550
4550
  var k = m[1], S = v[k], y = m[0], C = y + m[2], O = m[3], R = O + m[4];
4551
4551
  S[0] = Math.min(O, S[0]), S[1] = Math.max(R, S[1]), S[2] = Math.min(y, S[2]), S[3] = Math.max(C, S[3]);
4552
4552
  }
4553
- var T = v[0][0] + (g - v[0][2]), A = v[0][1] + (_ - v[0][3]), j = v[2][0] + (g - v[2][2]), L = v[2][1] + (_ - v[2][3]);
4553
+ var T = v[0][0] + (g - v[0][2]), A = v[0][1] + (_ - v[0][3]), j = v[2][0] + (g - v[2][2]), M = v[2][1] + (_ - v[2][3]);
4554
4554
  l.push([
4555
4555
  -1,
4556
4556
  T,
@@ -4558,7 +4558,7 @@ function aw(e, t, r) {
4558
4558
  g,
4559
4559
  _ - g,
4560
4560
  j,
4561
- L - j
4561
+ M - j
4562
4562
  ]);
4563
4563
  }
4564
4564
  c = _;
@@ -5443,7 +5443,7 @@ let wo;
5443
5443
  async function nr(e, t) {
5444
5444
  return wo === void 0 && (wo = new Hn()), wo.acquire(e, t);
5445
5445
  }
5446
- class U {
5446
+ class H {
5447
5447
  static async updateRemoteRefs({
5448
5448
  fs: t,
5449
5449
  gitdir: r,
@@ -5466,12 +5466,12 @@ class U {
5466
5466
  }
5467
5467
  const d = Os.from(s), p = /* @__PURE__ */ new Map();
5468
5468
  if (c) {
5469
- const x = await U.listRefs({
5469
+ const x = await H.listRefs({
5470
5470
  fs: t,
5471
5471
  gitdir: r,
5472
5472
  filepath: "refs/tags"
5473
5473
  });
5474
- await U.deleteRefs({
5474
+ await H.deleteRefs({
5475
5475
  fs: t,
5476
5476
  gitdir: r,
5477
5477
  refs: x.map((b) => `refs/tags/${b}`)
@@ -5479,7 +5479,7 @@ class U {
5479
5479
  }
5480
5480
  if (o) {
5481
5481
  for (const x of i.keys())
5482
- if (x.startsWith("refs/tags") && !x.endsWith("^{}") && !await U.exists({ fs: t, gitdir: r, ref: x })) {
5482
+ if (x.startsWith("refs/tags") && !x.endsWith("^{}") && !await H.exists({ fs: t, gitdir: r, ref: x })) {
5483
5483
  const b = i.get(x);
5484
5484
  p.set(x, b);
5485
5485
  }
@@ -5497,7 +5497,7 @@ class U {
5497
5497
  const _ = [];
5498
5498
  if (l) {
5499
5499
  for (const x of d.localNamespaces()) {
5500
- const b = (await U.listRefs({
5500
+ const b = (await H.listRefs({
5501
5501
  fs: t,
5502
5502
  gitdir: r,
5503
5503
  filepath: x
@@ -5505,7 +5505,7 @@ class U {
5505
5505
  for (const v of b)
5506
5506
  p.has(v) || _.push(v);
5507
5507
  }
5508
- _.length > 0 && await U.deleteRefs({ fs: t, gitdir: r, refs: _ });
5508
+ _.length > 0 && await H.deleteRefs({ fs: t, gitdir: r, refs: _ });
5509
5509
  }
5510
5510
  for (const [x, b] of p)
5511
5511
  await nr(
@@ -5533,7 +5533,7 @@ class U {
5533
5533
  );
5534
5534
  }
5535
5535
  static async deleteRef({ fs: t, gitdir: r, ref: n }) {
5536
- return U.deleteRefs({ fs: t, gitdir: r, refs: [n] });
5536
+ return H.deleteRefs({ fs: t, gitdir: r, refs: [n] });
5537
5537
  }
5538
5538
  static async deleteRefs({ fs: t, gitdir: r, refs: n }) {
5539
5539
  await Promise.all(n.map((s) => t.rm(N.join(r, s))));
@@ -5561,23 +5561,23 @@ class U {
5561
5561
  if (i !== void 0 && (i--, i === -1))
5562
5562
  return n;
5563
5563
  if (n.startsWith("ref: "))
5564
- return n = n.slice(5), U.resolve({ fs: t, gitdir: r, ref: n, depth: i });
5564
+ return n = n.slice(5), H.resolve({ fs: t, gitdir: r, ref: n, depth: i });
5565
5565
  if (n.length === 40 && /[0-9a-f]{40}/.test(n))
5566
5566
  return n;
5567
- const a = await U.packedRefs({ fs: t, gitdir: r }), o = Ii(n).filter((s) => !Tw.includes(s));
5567
+ const a = await H.packedRefs({ fs: t, gitdir: r }), o = Ii(n).filter((s) => !Tw.includes(s));
5568
5568
  for (const s of o) {
5569
5569
  const l = await nr(
5570
5570
  s,
5571
5571
  async () => await t.read(`${r}/${s}`, { encoding: "utf8" }) || a.get(s)
5572
5572
  );
5573
5573
  if (l)
5574
- return U.resolve({ fs: t, gitdir: r, ref: l.trim(), depth: i });
5574
+ return H.resolve({ fs: t, gitdir: r, ref: l.trim(), depth: i });
5575
5575
  }
5576
5576
  throw new ke(n);
5577
5577
  }
5578
5578
  static async exists({ fs: t, gitdir: r, ref: n }) {
5579
5579
  try {
5580
- return await U.expand({ fs: t, gitdir: r, ref: n }), !0;
5580
+ return await H.expand({ fs: t, gitdir: r, ref: n }), !0;
5581
5581
  } catch {
5582
5582
  return !1;
5583
5583
  }
@@ -5585,7 +5585,7 @@ class U {
5585
5585
  static async expand({ fs: t, gitdir: r, ref: n }) {
5586
5586
  if (n.length === 40 && /[0-9a-f]{40}/.test(n))
5587
5587
  return n;
5588
- const i = await U.packedRefs({ fs: t, gitdir: r }), a = Ii(n);
5588
+ const i = await H.packedRefs({ fs: t, gitdir: r }), a = Ii(n);
5589
5589
  for (const o of a)
5590
5590
  if (await nr(
5591
5591
  o,
@@ -5603,14 +5603,14 @@ class U {
5603
5603
  if (n !== void 0 && (n--, n === -1))
5604
5604
  return { fullref: r, oid: t };
5605
5605
  if (t.startsWith("ref: "))
5606
- return t = t.slice(5), U.resolveAgainstMap({ ref: t, fullref: r, depth: n, map: i });
5606
+ return t = t.slice(5), H.resolveAgainstMap({ ref: t, fullref: r, depth: n, map: i });
5607
5607
  if (t.length === 40 && /[0-9a-f]{40}/.test(t))
5608
5608
  return { fullref: r, oid: t };
5609
5609
  const a = Ii(t);
5610
5610
  for (const o of a) {
5611
5611
  const s = i.get(o);
5612
5612
  if (s)
5613
- return U.resolveAgainstMap({
5613
+ return H.resolveAgainstMap({
5614
5614
  ref: s.trim(),
5615
5615
  fullref: o,
5616
5616
  depth: n,
@@ -5628,7 +5628,7 @@ class U {
5628
5628
  }
5629
5629
  // List all the refs that match the `filepath` prefix
5630
5630
  static async listRefs({ fs: t, gitdir: r, filepath: n }) {
5631
- const i = U.packedRefs({ fs: t, gitdir: r });
5631
+ const i = H.packedRefs({ fs: t, gitdir: r });
5632
5632
  let a = null;
5633
5633
  try {
5634
5634
  a = await t.readdirDeep(`${r}/${n}`), a = a.map((o) => o.replace(`${r}/${n}/`, ""));
@@ -5640,14 +5640,14 @@ class U {
5640
5640
  return a.sort(bw), a;
5641
5641
  }
5642
5642
  static async listBranches({ fs: t, gitdir: r, remote: n }) {
5643
- return n ? U.listRefs({
5643
+ return n ? H.listRefs({
5644
5644
  fs: t,
5645
5645
  gitdir: r,
5646
5646
  filepath: `refs/remotes/${n}`
5647
- }) : U.listRefs({ fs: t, gitdir: r, filepath: "refs/heads" });
5647
+ }) : H.listRefs({ fs: t, gitdir: r, filepath: "refs/heads" });
5648
5648
  }
5649
5649
  static async listTags({ fs: t, gitdir: r }) {
5650
- return (await U.listRefs({
5650
+ return (await H.listRefs({
5651
5651
  fs: t,
5652
5652
  gitdir: r,
5653
5653
  filepath: "refs/tags"
@@ -6820,7 +6820,7 @@ class Jw {
6820
6820
  const o = /* @__PURE__ */ new Map();
6821
6821
  let s;
6822
6822
  try {
6823
- s = await U.resolve({ fs: t, gitdir: r, ref: n });
6823
+ s = await H.resolve({ fs: t, gitdir: r, ref: n });
6824
6824
  } catch (c) {
6825
6825
  c instanceof ke && (s = "4b825dc642cb6eb9a060e54bf8d69288fbee4904");
6826
6826
  }
@@ -6895,7 +6895,7 @@ class Jw {
6895
6895
  return t._oid;
6896
6896
  }
6897
6897
  }
6898
- function bt({ ref: e = "HEAD" } = {}) {
6898
+ function _t({ ref: e = "HEAD" } = {}) {
6899
6899
  const t = /* @__PURE__ */ Object.create(null);
6900
6900
  return Object.defineProperty(t, Ea, {
6901
6901
  value: function({ fs: r, gitdir: n, cache: i }) {
@@ -7278,7 +7278,7 @@ async function ag({
7278
7278
  }) {
7279
7279
  try {
7280
7280
  P("fs", e), P("dir", t), P("gitdir", r);
7281
- const a = new K(e), o = [bt({ ref: n }), _i(), _n()];
7281
+ const a = new K(e), o = [_t({ ref: n }), _i(), _n()];
7282
7282
  let s = [];
7283
7283
  await Ue.acquire({ fs: a, gitdir: r, cache: i }, async function(c) {
7284
7284
  s = c.unmergedPaths;
@@ -7573,7 +7573,7 @@ async function Sa({
7573
7573
  tree: m
7574
7574
  }) {
7575
7575
  let g = !1;
7576
- d || (d = await U.resolve({
7576
+ d || (d = await H.resolve({
7577
7577
  fs: e,
7578
7578
  gitdir: n,
7579
7579
  ref: "HEAD",
@@ -7581,7 +7581,7 @@ async function Sa({
7581
7581
  }));
7582
7582
  let _, x;
7583
7583
  try {
7584
- _ = await U.resolve({
7584
+ _ = await H.resolve({
7585
7585
  fs: e,
7586
7586
  gitdir: n,
7587
7587
  ref: d
@@ -7616,7 +7616,7 @@ async function Sa({
7616
7616
  async function(k) {
7617
7617
  const y = _f(k.entries).get(".");
7618
7618
  if (m || (m = await Tf({ fs: e, gitdir: n, inode: y, dryRun: c })), p ? p = await Promise.all(
7619
- p.map((R) => U.resolve({ fs: e, gitdir: n, ref: R }))
7619
+ p.map((R) => H.resolve({ fs: e, gitdir: n, ref: R }))
7620
7620
  ) : l ? p = x.commit.parent : p = _ ? [_] : [], !i)
7621
7621
  if (l)
7622
7622
  i = x.commit.message;
@@ -7637,7 +7637,7 @@ async function Sa({
7637
7637
  object: C.toObject(),
7638
7638
  dryRun: c
7639
7639
  });
7640
- return !u && !c && await U.writeRef({
7640
+ return !u && !c && await H.writeRef({
7641
7641
  fs: e,
7642
7642
  gitdir: n,
7643
7643
  ref: d,
@@ -7761,7 +7761,7 @@ async function ug({
7761
7761
  }) {
7762
7762
  let d;
7763
7763
  try {
7764
- d = await U.resolve({ gitdir: n, fs: e, ref: i });
7764
+ d = await H.resolve({ gitdir: n, fs: e, ref: i });
7765
7765
  } catch (b) {
7766
7766
  if (!(b instanceof ke))
7767
7767
  throw b;
@@ -7893,9 +7893,9 @@ async function hg({
7893
7893
  signingKey: c,
7894
7894
  force: u = !1
7895
7895
  }) {
7896
- if (i = i.startsWith("refs/tags/") ? i : `refs/tags/${i}`, !u && await U.exists({ fs: e, gitdir: n, ref: i }))
7896
+ if (i = i.startsWith("refs/tags/") ? i : `refs/tags/${i}`, !u && await H.exists({ fs: e, gitdir: n, ref: i }))
7897
7897
  throw new Pt("tag", i);
7898
- const d = await U.resolve({
7898
+ const d = await H.resolve({
7899
7899
  fs: e,
7900
7900
  gitdir: n,
7901
7901
  ref: l || "HEAD"
@@ -7915,7 +7915,7 @@ async function hg({
7915
7915
  type: "tag",
7916
7916
  object: m.toObject()
7917
7917
  });
7918
- await U.writeRef({ fs: e, gitdir: n, ref: i, value: g });
7918
+ await H.writeRef({ fs: e, gitdir: n, ref: i, value: g });
7919
7919
  }
7920
7920
  async function pg({
7921
7921
  fs: e,
@@ -7963,14 +7963,14 @@ async function mg({
7963
7963
  if (r !== Ft.clean(r))
7964
7964
  throw new Rt(r, Ft.clean(r));
7965
7965
  const o = `refs/heads/${r}`;
7966
- if (!a && await U.exists({ fs: e, gitdir: t, ref: o }))
7966
+ if (!a && await H.exists({ fs: e, gitdir: t, ref: o }))
7967
7967
  throw new Pt("branch", r, !1);
7968
7968
  let s;
7969
7969
  try {
7970
- s = await U.resolve({ fs: e, gitdir: t, ref: n || "HEAD" });
7970
+ s = await H.resolve({ fs: e, gitdir: t, ref: n || "HEAD" });
7971
7971
  } catch {
7972
7972
  }
7973
- s && await U.writeRef({ fs: e, gitdir: t, ref: o, value: s }), i && await U.writeSymbolicRef({
7973
+ s && await H.writeRef({ fs: e, gitdir: t, ref: o, value: s }), i && await H.writeSymbolicRef({
7974
7974
  fs: e,
7975
7975
  gitdir: t,
7976
7976
  ref: "HEAD",
@@ -8019,17 +8019,17 @@ async function $s({
8019
8019
  let g;
8020
8020
  if (n)
8021
8021
  try {
8022
- g = await U.resolve({ fs: e, gitdir: a, ref: "HEAD" });
8022
+ g = await H.resolve({ fs: e, gitdir: a, ref: "HEAD" });
8023
8023
  } catch {
8024
8024
  g = "0000000000000000000000000000000000000000";
8025
8025
  }
8026
8026
  let _;
8027
8027
  try {
8028
- _ = await U.resolve({ fs: e, gitdir: a, ref: s });
8028
+ _ = await H.resolve({ fs: e, gitdir: a, ref: s });
8029
8029
  } catch (x) {
8030
8030
  if (s === "HEAD") throw x;
8031
8031
  const b = `${o}/${s}`;
8032
- if (_ = await U.resolve({
8032
+ if (_ = await H.resolve({
8033
8033
  fs: e,
8034
8034
  gitdir: a,
8035
8035
  ref: b
@@ -8037,7 +8037,7 @@ async function $s({
8037
8037
  const v = await Me.get({ fs: e, gitdir: a });
8038
8038
  await v.set(`branch.${s}.remote`, o), await v.set(`branch.${s}.merge`, `refs/heads/${s}`), await Me.save({ fs: e, gitdir: a, config: v });
8039
8039
  }
8040
- await U.writeRef({
8040
+ await H.writeRef({
8041
8041
  fs: e,
8042
8042
  gitdir: a,
8043
8043
  ref: `refs/heads/${s}`,
@@ -8125,30 +8125,30 @@ async function $s({
8125
8125
  const j = `${i}/${O}`;
8126
8126
  try {
8127
8127
  if (C !== "create-index" && C !== "mkdir-index") {
8128
- const { object: H } = await Ae({ fs: e, cache: t, gitdir: a, oid: R });
8128
+ const { object: U } = await Ae({ fs: e, cache: t, gitdir: a, oid: R });
8129
8129
  if (A && await e.rm(j), T === 33188)
8130
- await e.write(j, H);
8130
+ await e.write(j, U);
8131
8131
  else if (T === 33261)
8132
- await e.write(j, H, { mode: 511 });
8132
+ await e.write(j, U, { mode: 511 });
8133
8133
  else if (T === 40960)
8134
- await e.writelink(j, H);
8134
+ await e.writelink(j, U);
8135
8135
  else
8136
8136
  throw new se(
8137
8137
  `Invalid mode 0o${T.toString(8)} detected in blob ${R}`
8138
8138
  );
8139
8139
  }
8140
- const L = await e.lstat(j);
8141
- T === 33261 && (L.mode = 493), C === "mkdir-index" && (L.mode = 57344), y.insert({
8140
+ const M = await e.lstat(j);
8141
+ T === 33261 && (M.mode = 493), C === "mkdir-index" && (M.mode = 57344), y.insert({
8142
8142
  filepath: O,
8143
- stats: L,
8143
+ stats: M,
8144
8144
  oid: R
8145
8145
  }), r && await r({
8146
8146
  phase: "Updating workdir",
8147
8147
  loaded: ++k,
8148
8148
  total: S
8149
8149
  });
8150
- } catch (L) {
8151
- console.log(L);
8150
+ } catch (M) {
8151
+ console.log(M);
8152
8152
  }
8153
8153
  })
8154
8154
  );
@@ -8159,13 +8159,13 @@ async function $s({
8159
8159
  });
8160
8160
  }
8161
8161
  if (!u) {
8162
- const x = await U.expand({ fs: e, gitdir: a, ref: s });
8163
- x.startsWith("refs/heads") ? await U.writeSymbolicRef({
8162
+ const x = await H.expand({ fs: e, gitdir: a, ref: s });
8163
+ x.startsWith("refs/heads") ? await H.writeSymbolicRef({
8164
8164
  fs: e,
8165
8165
  gitdir: a,
8166
8166
  ref: "HEAD",
8167
8167
  value: x
8168
- }) : await U.writeRef({ fs: e, gitdir: a, ref: "HEAD", value: _ });
8168
+ }) : await H.writeRef({ fs: e, gitdir: a, ref: "HEAD", value: _ });
8169
8169
  }
8170
8170
  }
8171
8171
  async function gg({
@@ -8184,7 +8184,7 @@ async function gg({
8184
8184
  cache: t,
8185
8185
  dir: n,
8186
8186
  gitdir: i,
8187
- trees: [bt({ ref: a }), _i(), _n()],
8187
+ trees: [_t({ ref: a }), _i(), _n()],
8188
8188
  map: async function(c, [u, d, p]) {
8189
8189
  if (c === ".") return;
8190
8190
  if (s && !s.some((g) => If(c, g)))
@@ -8381,7 +8381,7 @@ async function br({
8381
8381
  fullname: r = !1,
8382
8382
  test: n = !1
8383
8383
  }) {
8384
- const i = await U.resolve({
8384
+ const i = await H.resolve({
8385
8385
  fs: e,
8386
8386
  gitdir: t,
8387
8387
  ref: "HEAD",
@@ -8389,7 +8389,7 @@ async function br({
8389
8389
  });
8390
8390
  if (n)
8391
8391
  try {
8392
- await U.resolve({ fs: e, gitdir: t, ref: i });
8392
+ await H.resolve({ fs: e, gitdir: t, ref: i });
8393
8393
  } catch {
8394
8394
  return;
8395
8395
  }
@@ -8996,7 +8996,7 @@ async function Ts({
8996
8996
  throw new ct("remote OR url");
8997
8997
  const j = u || O && await R.get(`branch.${O}.merge`) || c || "HEAD";
8998
8998
  m === void 0 && (m = await R.get("http.corsProxy"));
8999
- const L = ka.getRemoteHelperFor({ url: A }), H = await L.discover({
8999
+ const M = ka.getRemoteHelperFor({ url: A }), U = await M.discover({
9000
9000
  http: r,
9001
9001
  onAuth: a,
9002
9002
  onAuthSuccess: o,
@@ -9006,29 +9006,29 @@ async function Ts({
9006
9006
  url: A,
9007
9007
  headers: S,
9008
9008
  protocolVersion: 1
9009
- }), Z = H.auth, fe = H.refs;
9009
+ }), Z = U.auth, fe = U.refs;
9010
9010
  if (fe.size === 0)
9011
9011
  return {
9012
9012
  defaultBranch: null,
9013
9013
  fetchHead: null,
9014
9014
  fetchHeadDescription: null
9015
9015
  };
9016
- if (g !== null && !H.capabilities.has("shallow"))
9016
+ if (g !== null && !U.capabilities.has("shallow"))
9017
9017
  throw new fr("shallow", "depth");
9018
- if (_ !== null && !H.capabilities.has("deepen-since"))
9018
+ if (_ !== null && !U.capabilities.has("deepen-since"))
9019
9019
  throw new fr("deepen-since", "since");
9020
- if (x.length > 0 && !H.capabilities.has("deepen-not"))
9020
+ if (x.length > 0 && !U.capabilities.has("deepen-not"))
9021
9021
  throw new fr("deepen-not", "exclude");
9022
- if (b === !0 && !H.capabilities.has("deepen-relative"))
9022
+ if (b === !0 && !U.capabilities.has("deepen-relative"))
9023
9023
  throw new fr("deepen-relative", "relative");
9024
- const { oid: Ce, fullref: me } = U.resolveAgainstMap({
9024
+ const { oid: Ce, fullref: me } = H.resolveAgainstMap({
9025
9025
  ref: j,
9026
9026
  map: fe
9027
9027
  });
9028
- for (const M of fe.keys())
9029
- M === me || M === "HEAD" || M.startsWith("refs/heads/") || v && M.startsWith("refs/tags/") || fe.delete(M);
9028
+ for (const L of fe.keys())
9029
+ L === me || L === "HEAD" || L.startsWith("refs/heads/") || v && L.startsWith("refs/tags/") || fe.delete(L);
9030
9030
  const be = zf(
9031
- [...H.capabilities],
9031
+ [...U.capabilities],
9032
9032
  [
9033
9033
  "multi_ack_detailed",
9034
9034
  "no-done",
@@ -9043,21 +9043,21 @@ async function Ts({
9043
9043
  ]
9044
9044
  );
9045
9045
  b && be.push("deepen-relative");
9046
- const Ye = k ? [Ce] : fe.values(), Ze = k ? [O] : await U.listRefs({
9046
+ const Ye = k ? [Ce] : fe.values(), Ze = k ? [O] : await H.listRefs({
9047
9047
  fs: e,
9048
9048
  gitdir: l,
9049
9049
  filepath: "refs"
9050
9050
  });
9051
9051
  let le = [];
9052
- for (let M of Ze)
9052
+ for (let L of Ze)
9053
9053
  try {
9054
- M = await U.expand({ fs: e, gitdir: l, ref: M });
9055
- const V = await U.resolve({ fs: e, gitdir: l, ref: M });
9054
+ L = await H.expand({ fs: e, gitdir: l, ref: L });
9055
+ const V = await H.resolve({ fs: e, gitdir: l, ref: L });
9056
9056
  await Al({ fs: e, cache: t, gitdir: l, oid: V }) && le.push(V);
9057
9057
  } catch {
9058
9058
  }
9059
9059
  le = [...new Set(le)];
9060
- const F = await Vn.read({ fs: e, gitdir: l }), q = H.capabilities.has("shallow") ? [...F] : [], W = Rg({
9060
+ const F = await Vn.read({ fs: e, gitdir: l }), q = U.capabilities.has("shallow") ? [...F] : [], W = Rg({
9061
9061
  capabilities: be,
9062
9062
  wants: Ye,
9063
9063
  haves: le,
@@ -9065,7 +9065,7 @@ async function Ts({
9065
9065
  depth: g,
9066
9066
  since: _,
9067
9067
  exclude: x
9068
- }), ee = Buffer.from(await sa(W)), I = await L.connect({
9068
+ }), ee = Buffer.from(await sa(W)), I = await M.connect({
9069
9069
  http: r,
9070
9070
  onProgress: n,
9071
9071
  corsProxy: m,
@@ -9076,58 +9076,58 @@ async function Ts({
9076
9076
  headers: S
9077
9077
  }), Q = await kg(I.body);
9078
9078
  I.headers && (Q.headers = I.headers);
9079
- for (const M of Q.shallows)
9080
- if (!F.has(M))
9079
+ for (const L of Q.shallows)
9080
+ if (!F.has(L))
9081
9081
  try {
9082
- const { object: V } = await Ae({ fs: e, cache: t, gitdir: l, oid: M }), te = new Te(V), J = await Promise.all(
9082
+ const { object: V } = await Ae({ fs: e, cache: t, gitdir: l, oid: L }), te = new Te(V), J = await Promise.all(
9083
9083
  te.headers().parent.map((re) => Al({ fs: e, cache: t, gitdir: l, oid: re }))
9084
9084
  );
9085
- J.length === 0 || J.every((re) => re) || F.add(M);
9085
+ J.length === 0 || J.every((re) => re) || F.add(L);
9086
9086
  } catch {
9087
- F.add(M);
9087
+ F.add(L);
9088
9088
  }
9089
- for (const M of Q.unshallows)
9090
- F.delete(M);
9089
+ for (const L of Q.unshallows)
9090
+ F.delete(L);
9091
9091
  if (await Vn.write({ fs: e, gitdir: l, oids: F }), k) {
9092
- const M = /* @__PURE__ */ new Map([[me, Ce]]), V = /* @__PURE__ */ new Map();
9092
+ const L = /* @__PURE__ */ new Map([[me, Ce]]), V = /* @__PURE__ */ new Map();
9093
9093
  let te = 10, J = me;
9094
9094
  for (; te--; ) {
9095
- const ne = H.symrefs.get(J);
9095
+ const ne = U.symrefs.get(J);
9096
9096
  if (ne === void 0) break;
9097
9097
  V.set(J, ne), J = ne;
9098
9098
  }
9099
9099
  const oe = fe.get(J);
9100
- oe && M.set(J, oe);
9101
- const { pruned: re } = await U.updateRemoteRefs({
9100
+ oe && L.set(J, oe);
9101
+ const { pruned: re } = await H.updateRemoteRefs({
9102
9102
  fs: e,
9103
9103
  gitdir: l,
9104
9104
  remote: T,
9105
- refs: M,
9105
+ refs: L,
9106
9106
  symrefs: V,
9107
9107
  tags: v,
9108
9108
  prune: y
9109
9109
  });
9110
9110
  y && (Q.pruned = re);
9111
9111
  } else {
9112
- const { pruned: M } = await U.updateRemoteRefs({
9112
+ const { pruned: L } = await H.updateRemoteRefs({
9113
9113
  fs: e,
9114
9114
  gitdir: l,
9115
9115
  remote: T,
9116
9116
  refs: fe,
9117
- symrefs: H.symrefs,
9117
+ symrefs: U.symrefs,
9118
9118
  tags: v,
9119
9119
  prune: y,
9120
9120
  pruneTags: C
9121
9121
  });
9122
- y && (Q.pruned = M);
9122
+ y && (Q.pruned = L);
9123
9123
  }
9124
- if (Q.HEAD = H.symrefs.get("HEAD"), Q.HEAD === void 0) {
9125
- const { oid: M } = U.resolveAgainstMap({
9124
+ if (Q.HEAD = U.symrefs.get("HEAD"), Q.HEAD === void 0) {
9125
+ const { oid: L } = H.resolveAgainstMap({
9126
9126
  ref: "HEAD",
9127
9127
  map: fe
9128
9128
  });
9129
9129
  for (const [V, te] of fe.entries())
9130
- if (V !== "HEAD" && te === M) {
9130
+ if (V !== "HEAD" && te === L) {
9131
9131
  Q.HEAD = V;
9132
9132
  break;
9133
9133
  }
@@ -9137,8 +9137,8 @@ async function Ts({
9137
9137
  oid: Ce,
9138
9138
  description: `${D} '${Or(me)}' of ${A}`
9139
9139
  }, n || i) {
9140
- const M = Nf(Q.progress);
9141
- Ei(M, async (V) => {
9140
+ const L = Nf(Q.progress);
9141
+ Ei(L, async (V) => {
9142
9142
  if (i && await i(V), n) {
9143
9143
  const te = V.match(/([^:]*).*\((\d+?)\/(\d+?)\)/);
9144
9144
  te && await n({
@@ -9158,14 +9158,14 @@ async function Ts({
9158
9158
  };
9159
9159
  if (Q.headers && (Y.headers = Q.headers), y && (Y.pruned = Q.pruned), X !== "" && !Eg(G)) {
9160
9160
  Y.packfile = `objects/pack/pack-${X}.pack`;
9161
- const M = N.join(l, Y.packfile);
9162
- await e.write(M, G);
9161
+ const L = N.join(l, Y.packfile);
9162
+ await e.write(L, G);
9163
9163
  const V = (J) => Ae({ fs: e, cache: t, gitdir: l, oid: J }), te = await on.fromPack({
9164
9164
  pack: G,
9165
9165
  getExternalRefDelta: V,
9166
9166
  onProgress: n
9167
9167
  });
9168
- await e.write(M.replace(/\.pack$/, ".idx"), await te.toBuffer());
9168
+ await e.write(L.replace(/\.pack$/, ".idx"), await te.toBuffer());
9169
9169
  }
9170
9170
  return Y;
9171
9171
  }
@@ -9383,14 +9383,14 @@ async function $g({
9383
9383
  }
9384
9384
  }
9385
9385
  async function Tg({ fs: e, gitdir: t, ref: r }) {
9386
- if (r = r.startsWith("refs/heads/") ? r : `refs/heads/${r}`, !await U.exists({ fs: e, gitdir: t, ref: r }))
9386
+ if (r = r.startsWith("refs/heads/") ? r : `refs/heads/${r}`, !await H.exists({ fs: e, gitdir: t, ref: r }))
9387
9387
  throw new ke(r);
9388
- const i = await U.expand({ fs: e, gitdir: t, ref: r }), a = await br({ fs: e, gitdir: t, fullname: !0 });
9388
+ const i = await H.expand({ fs: e, gitdir: t, ref: r }), a = await br({ fs: e, gitdir: t, fullname: !0 });
9389
9389
  if (i === a) {
9390
- const l = await U.resolve({ fs: e, gitdir: t, ref: i });
9391
- await U.writeRef({ fs: e, gitdir: t, ref: "HEAD", value: l });
9390
+ const l = await H.resolve({ fs: e, gitdir: t, ref: i });
9391
+ await H.writeRef({ fs: e, gitdir: t, ref: "HEAD", value: l });
9392
9392
  }
9393
- await U.deleteRef({ fs: e, gitdir: t, ref: i });
9393
+ await H.deleteRef({ fs: e, gitdir: t, ref: i });
9394
9394
  const o = Or(r), s = await Me.get({ fs: e, gitdir: t });
9395
9395
  await s.deleteSection("branch", o), await Me.save({ fs: e, gitdir: t, config: s });
9396
9396
  }
@@ -9412,7 +9412,7 @@ async function Ag({
9412
9412
  }
9413
9413
  async function Dg({ fs: e, dir: t, gitdir: r = N.join(t, ".git"), ref: n }) {
9414
9414
  try {
9415
- P("fs", e), P("ref", n), await U.deleteRef({ fs: new K(e), gitdir: r, ref: n });
9415
+ P("fs", e), P("ref", n), await H.deleteRef({ fs: new K(e), gitdir: r, ref: n });
9416
9416
  } catch (i) {
9417
9417
  throw i.caller = "git.deleteRef", i;
9418
9418
  }
@@ -9438,7 +9438,7 @@ async function Bg({
9438
9438
  }
9439
9439
  }
9440
9440
  async function jg({ fs: e, gitdir: t, ref: r }) {
9441
- r = r.startsWith("refs/tags/") ? r : `refs/tags/${r}`, await U.deleteRef({ fs: e, gitdir: t, ref: r });
9441
+ r = r.startsWith("refs/tags/") ? r : `refs/tags/${r}`, await H.deleteRef({ fs: e, gitdir: t, ref: r });
9442
9442
  }
9443
9443
  async function zg({ fs: e, dir: t, gitdir: r = N.join(t, ".git"), ref: n }) {
9444
9444
  try {
@@ -9512,7 +9512,7 @@ async function Fg({
9512
9512
  }
9513
9513
  async function Ug({ fs: e, dir: t, gitdir: r = N.join(t, ".git"), ref: n }) {
9514
9514
  try {
9515
- return P("fs", e), P("gitdir", r), P("ref", n), await U.expand({
9515
+ return P("fs", e), P("gitdir", r), P("ref", n), await H.expand({
9516
9516
  fs: new K(e),
9517
9517
  gitdir: r,
9518
9518
  ref: n
@@ -9569,15 +9569,15 @@ async function Wg({
9569
9569
  abortOnConflict: p = !0,
9570
9570
  mergeDriver: m
9571
9571
  }) {
9572
- const g = bt({ ref: a }), _ = bt({ ref: o }), x = bt({ ref: s }), b = [], v = [], k = [], S = [], y = await wr({
9572
+ const g = _t({ ref: a }), _ = _t({ ref: o }), x = _t({ ref: s }), b = [], v = [], k = [], S = [], y = await wr({
9573
9573
  fs: e,
9574
9574
  cache: t,
9575
9575
  dir: r,
9576
9576
  gitdir: n,
9577
9577
  trees: [g, _, x],
9578
9578
  map: async function(C, [O, R, T]) {
9579
- const A = ra(C), j = await oa(O, R), L = await oa(T, R);
9580
- switch (`${j}-${L}`) {
9579
+ const A = ra(C), j = await oa(O, R), M = await oa(T, R);
9580
+ switch (`${j}-${M}`) {
9581
9581
  case "false-false":
9582
9582
  return {
9583
9583
  mode: await R.mode(),
@@ -9612,19 +9612,19 @@ async function Wg({
9612
9612
  baseName: c,
9613
9613
  theirName: u,
9614
9614
  mergeDriver: m
9615
- }).then(async (H) => {
9616
- if (H.cleanMerge)
9617
- p || i.insert({ filepath: C, oid: H.mergeResult.oid, stage: 0 });
9615
+ }).then(async (U) => {
9616
+ if (U.cleanMerge)
9617
+ p || i.insert({ filepath: C, oid: U.mergeResult.oid, stage: 0 });
9618
9618
  else if (b.push(C), v.push(C), !p) {
9619
9619
  const Z = await R.oid(), fe = await O.oid(), Ce = await T.oid();
9620
9620
  i.delete({ filepath: C }), i.insert({ filepath: C, oid: Z, stage: 1 }), i.insert({ filepath: C, oid: fe, stage: 2 }), i.insert({ filepath: C, oid: Ce, stage: 3 });
9621
9621
  }
9622
- return H.mergeResult;
9622
+ return U.mergeResult;
9623
9623
  });
9624
9624
  if (R && !O && T && await R.type() === "blob" && await T.type() === "blob") {
9625
9625
  if (b.push(C), k.push(C), !p) {
9626
- const H = await R.oid(), Z = await T.oid();
9627
- i.delete({ filepath: C }), i.insert({ filepath: C, oid: H, stage: 1 }), i.insert({ filepath: C, oid: Z, stage: 3 });
9626
+ const U = await R.oid(), Z = await T.oid();
9627
+ i.delete({ filepath: C }), i.insert({ filepath: C, oid: U, stage: 1 }), i.insert({ filepath: C, oid: Z, stage: 3 });
9628
9628
  }
9629
9629
  return {
9630
9630
  mode: await T.mode(),
@@ -9635,8 +9635,8 @@ async function Wg({
9635
9635
  }
9636
9636
  if (R && O && !T && await R.type() === "blob" && await O.type() === "blob") {
9637
9637
  if (b.push(C), S.push(C), !p) {
9638
- const H = await R.oid(), Z = await O.oid();
9639
- i.delete({ filepath: C }), i.insert({ filepath: C, oid: H, stage: 1 }), i.insert({ filepath: C, oid: Z, stage: 2 });
9638
+ const U = await R.oid(), Z = await O.oid();
9639
+ i.delete({ filepath: C }), i.insert({ filepath: C, oid: U, stage: 1 }), i.insert({ filepath: C, oid: Z, stage: 2 });
9640
9640
  }
9641
9641
  return {
9642
9642
  mode: await O.mode(),
@@ -9677,7 +9677,7 @@ async function Wg({
9677
9677
  cache: t,
9678
9678
  dir: r,
9679
9679
  gitdir: n,
9680
- trees: [bt({ ref: y.oid })],
9680
+ trees: [_t({ ref: y.oid })],
9681
9681
  map: async function(C, [O]) {
9682
9682
  const R = `${r}/${C}`;
9683
9683
  if (await O.type() === "blob") {
@@ -9754,20 +9754,20 @@ async function Ff({
9754
9754
  onSign: _,
9755
9755
  mergeDriver: x
9756
9756
  }) {
9757
- i === void 0 && (i = await br({ fs: e, gitdir: n, fullname: !0 })), i = await U.expand({
9757
+ i === void 0 && (i = await br({ fs: e, gitdir: n, fullname: !0 })), i = await H.expand({
9758
9758
  fs: e,
9759
9759
  gitdir: n,
9760
9760
  ref: i
9761
- }), a = await U.expand({
9761
+ }), a = await H.expand({
9762
9762
  fs: e,
9763
9763
  gitdir: n,
9764
9764
  ref: a
9765
9765
  });
9766
- const b = await U.resolve({
9766
+ const b = await H.resolve({
9767
9767
  fs: e,
9768
9768
  gitdir: n,
9769
9769
  ref: i
9770
- }), v = await U.resolve({
9770
+ }), v = await H.resolve({
9771
9771
  fs: e,
9772
9772
  gitdir: n,
9773
9773
  ref: a
@@ -9786,7 +9786,7 @@ async function Ff({
9786
9786
  alreadyMerged: !0
9787
9787
  };
9788
9788
  if (o && S === b)
9789
- return !l && !c && await U.writeRef({ fs: e, gitdir: n, ref: i, value: v }), {
9789
+ return !l && !c && await H.writeRef({ fs: e, gitdir: n, ref: i, value: v }), {
9790
9790
  oid: v,
9791
9791
  fastForward: !0
9792
9792
  };
@@ -10361,7 +10361,7 @@ async function cy({
10361
10361
  remote: n
10362
10362
  }) {
10363
10363
  try {
10364
- return P("fs", e), P("gitdir", r), U.listBranches({
10364
+ return P("fs", e), P("gitdir", r), H.listBranches({
10365
10365
  fs: new K(e),
10366
10366
  gitdir: r,
10367
10367
  remote: n
@@ -10372,7 +10372,7 @@ async function cy({
10372
10372
  }
10373
10373
  async function ly({ fs: e, gitdir: t, ref: r, cache: n }) {
10374
10374
  if (r) {
10375
- const i = await U.resolve({ gitdir: t, fs: e, ref: r }), a = [];
10375
+ const i = await H.resolve({ gitdir: t, fs: e, ref: r }), a = [];
10376
10376
  return await Gf({
10377
10377
  fs: e,
10378
10378
  cache: n,
@@ -10426,7 +10426,7 @@ async function uy({
10426
10426
  async function fy({ fs: e, cache: t, gitdir: r, ref: n }) {
10427
10427
  let i;
10428
10428
  try {
10429
- i = await U.resolve({ gitdir: r, fs: e, ref: n });
10429
+ i = await H.resolve({ gitdir: r, fs: e, ref: n });
10430
10430
  } catch (s) {
10431
10431
  if (s instanceof ke)
10432
10432
  return [];
@@ -10466,7 +10466,7 @@ async function hy({
10466
10466
  filepath: n
10467
10467
  }) {
10468
10468
  try {
10469
- return P("fs", e), P("gitdir", r), U.listRefs({ fs: new K(e), gitdir: r, filepath: n });
10469
+ return P("fs", e), P("gitdir", r), H.listRefs({ fs: new K(e), gitdir: r, filepath: n });
10470
10470
  } catch (i) {
10471
10471
  throw i.caller = "git.listRefs", i;
10472
10472
  }
@@ -10556,7 +10556,7 @@ async function yy({
10556
10556
  }
10557
10557
  async function by({ fs: e, dir: t, gitdir: r = N.join(t, ".git") }) {
10558
10558
  try {
10559
- return P("fs", e), P("gitdir", r), U.listTags({ fs: new K(e), gitdir: r });
10559
+ return P("fs", e), P("gitdir", r), H.listTags({ fs: new K(e), gitdir: r });
10560
10560
  } catch (n) {
10561
10561
  throw n.caller = "git.listTags", n;
10562
10562
  }
@@ -10622,7 +10622,7 @@ async function xy({
10622
10622
  force: s,
10623
10623
  follow: l
10624
10624
  }) {
10625
- const c = typeof o > "u" ? void 0 : Math.floor(o.valueOf() / 1e3), u = [], d = await Vn.read({ fs: e, gitdir: r }), p = await U.resolve({ fs: e, gitdir: r, ref: i }), m = [await fn({ fs: e, cache: t, gitdir: r, oid: p })];
10625
+ const c = typeof o > "u" ? void 0 : Math.floor(o.valueOf() / 1e3), u = [], d = await Vn.read({ fs: e, gitdir: r }), p = await H.resolve({ fs: e, gitdir: r, ref: i }), m = [await fn({ fs: e, cache: t, gitdir: r, oid: p })];
10626
10626
  let g, _, x;
10627
10627
  function b(v) {
10628
10628
  x && n && u.push(v);
@@ -10919,10 +10919,10 @@ async function Py({
10919
10919
  }) {
10920
10920
  const o = await Vn.read({ fs: e, gitdir: n }), s = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set();
10921
10921
  for (const d of i)
10922
- s.add(await U.resolve({ fs: e, gitdir: n, ref: d }));
10922
+ s.add(await H.resolve({ fs: e, gitdir: n, ref: d }));
10923
10923
  for (const d of a)
10924
10924
  try {
10925
- const p = await U.resolve({ fs: e, gitdir: n, ref: d });
10925
+ const p = await H.resolve({ fs: e, gitdir: n, ref: d });
10926
10926
  l.add(p);
10927
10927
  } catch {
10928
10928
  }
@@ -11047,7 +11047,7 @@ async function Ay({
11047
11047
  if (typeof S > "u")
11048
11048
  throw new ct("remoteRef");
11049
11049
  x === void 0 && (x = await k.get("http.corsProxy"));
11050
- const C = await U.expand({ fs: e, gitdir: c, ref: v }), O = _ ? "0000000000000000000000000000000000000000" : await U.resolve({ fs: e, gitdir: c, ref: C }), R = ka.getRemoteHelperFor({ url: S }), T = await R.discover({
11050
+ const C = await H.expand({ fs: e, gitdir: c, ref: v }), O = _ ? "0000000000000000000000000000000000000000" : await H.resolve({ fs: e, gitdir: c, ref: C }), R = ka.getRemoteHelperFor({ url: S }), T = await R.discover({
11051
11051
  http: r,
11052
11052
  onAuth: a,
11053
11053
  onAuthSuccess: o,
@@ -11063,7 +11063,7 @@ async function Ay({
11063
11063
  j = C;
11064
11064
  else
11065
11065
  try {
11066
- j = await U.expandAgainstMap({
11066
+ j = await H.expandAgainstMap({
11067
11067
  ref: y,
11068
11068
  map: T.refs
11069
11069
  });
@@ -11073,28 +11073,28 @@ async function Ay({
11073
11073
  else
11074
11074
  throw F;
11075
11075
  }
11076
- const L = T.refs.get(j) || "0000000000000000000000000000000000000000";
11076
+ const M = T.refs.get(j) || "0000000000000000000000000000000000000000";
11077
11077
  if (l && !await l({
11078
11078
  remote: p,
11079
11079
  url: S,
11080
11080
  localRef: { ref: _ ? "(delete)" : C, oid: O },
11081
- remoteRef: { ref: j, oid: L }
11081
+ remoteRef: { ref: j, oid: M }
11082
11082
  }))
11083
11083
  throw new Sn();
11084
- const H = !T.capabilities.has("no-thin");
11084
+ const U = !T.capabilities.has("no-thin");
11085
11085
  let Z = /* @__PURE__ */ new Set();
11086
11086
  if (!_) {
11087
11087
  const F = [...T.refs.values()];
11088
11088
  let q = /* @__PURE__ */ new Set();
11089
- if (L !== "0000000000000000000000000000000000000000") {
11089
+ if (M !== "0000000000000000000000000000000000000000") {
11090
11090
  const W = await As({
11091
11091
  fs: e,
11092
11092
  cache: t,
11093
11093
  gitdir: c,
11094
- oids: [O, L]
11094
+ oids: [O, M]
11095
11095
  });
11096
11096
  for (const ee of W) F.push(ee);
11097
- H && (q = await xo({ fs: e, cache: t, gitdir: c, oids: W }));
11097
+ U && (q = await xo({ fs: e, cache: t, gitdir: c, oids: W }));
11098
11098
  }
11099
11099
  if (!F.includes(O)) {
11100
11100
  const W = await Py({
@@ -11106,14 +11106,14 @@ async function Ay({
11106
11106
  });
11107
11107
  Z = await xo({ fs: e, cache: t, gitdir: c, oids: W });
11108
11108
  }
11109
- if (H) {
11109
+ if (U) {
11110
11110
  try {
11111
- const W = await U.resolve({
11111
+ const W = await H.resolve({
11112
11112
  fs: e,
11113
11113
  gitdir: c,
11114
11114
  ref: `refs/remotes/${p}/HEAD`,
11115
11115
  depth: 2
11116
- }), { oid: ee } = await U.resolveAgainstMap({
11116
+ }), { oid: ee } = await H.resolveAgainstMap({
11117
11117
  ref: W.replace(`refs/remotes/${p}/`, ""),
11118
11118
  fullref: W,
11119
11119
  map: T.refs
@@ -11125,15 +11125,15 @@ async function Ay({
11125
11125
  for (const W of q)
11126
11126
  Z.delete(W);
11127
11127
  }
11128
- if (O === L && (g = !0), !g) {
11129
- if (C.startsWith("refs/tags") && L !== "0000000000000000000000000000000000000000")
11128
+ if (O === M && (g = !0), !g) {
11129
+ if (C.startsWith("refs/tags") && M !== "0000000000000000000000000000000000000000")
11130
11130
  throw new cn("tag-exists");
11131
- if (O !== "0000000000000000000000000000000000000000" && L !== "0000000000000000000000000000000000000000" && !await qf({
11131
+ if (O !== "0000000000000000000000000000000000000000" && M !== "0000000000000000000000000000000000000000" && !await qf({
11132
11132
  fs: e,
11133
11133
  cache: t,
11134
11134
  gitdir: c,
11135
11135
  oid: O,
11136
- ancestor: L,
11136
+ ancestor: M,
11137
11137
  depth: -1
11138
11138
  }))
11139
11139
  throw new cn("not-fast-forward");
@@ -11144,7 +11144,7 @@ async function Ay({
11144
11144
  ["report-status", "side-band-64k", `agent=${Ra.agent}`]
11145
11145
  ), Ce = await Ty({
11146
11146
  capabilities: fe,
11147
- triplets: [{ oldoid: L, oid: O, fullRef: j }]
11147
+ triplets: [{ oldoid: M, oid: O, fullRef: j }]
11148
11148
  }), me = _ ? [] : await Zf({
11149
11149
  fs: e,
11150
11150
  cache: t,
@@ -11172,7 +11172,7 @@ async function Ay({
11172
11172
  "refs/heads",
11173
11173
  ""
11174
11174
  )}`;
11175
- _ ? await U.deleteRef({ fs: e, gitdir: c, ref: F }) : await U.writeRef({ fs: e, gitdir: c, ref: F, value: O });
11175
+ _ ? await H.deleteRef({ fs: e, gitdir: c, ref: F }) : await H.writeRef({ fs: e, gitdir: c, ref: F, value: O });
11176
11176
  }
11177
11177
  if (le.ok && Object.values(le.refs).every((F) => F.ok))
11178
11178
  return le;
@@ -11295,7 +11295,7 @@ async function By({
11295
11295
  ref: n = "refs/notes/commits",
11296
11296
  oid: i
11297
11297
  }) {
11298
- const a = await U.resolve({ gitdir: r, fs: e, ref: n }), { blob: o } = await Vf({
11298
+ const a = await H.resolve({ gitdir: r, fs: e, ref: n }), { blob: o } = await Vf({
11299
11299
  fs: e,
11300
11300
  cache: t,
11301
11301
  gitdir: r,
@@ -11464,7 +11464,7 @@ async function Uy({
11464
11464
  }) {
11465
11465
  let c;
11466
11466
  try {
11467
- c = await U.resolve({ gitdir: n, fs: e, ref: i });
11467
+ c = await H.resolve({ gitdir: n, fs: e, ref: i });
11468
11468
  } catch (g) {
11469
11469
  if (!(g instanceof ke))
11470
11470
  throw g;
@@ -11545,21 +11545,21 @@ async function Wy({
11545
11545
  if (r !== Ft.clean(r))
11546
11546
  throw new Rt(r, Ft.clean(r));
11547
11547
  const a = `refs/heads/${r}`, o = `refs/heads/${n}`;
11548
- if (await U.exists({ fs: e, gitdir: t, ref: o }))
11548
+ if (await H.exists({ fs: e, gitdir: t, ref: o }))
11549
11549
  throw new Pt("branch", n, !1);
11550
- const l = await U.resolve({
11550
+ const l = await H.resolve({
11551
11551
  fs: e,
11552
11552
  gitdir: t,
11553
11553
  ref: a,
11554
11554
  depth: 1
11555
11555
  });
11556
- await U.writeRef({ fs: e, gitdir: t, ref: o, value: l }), await U.deleteRef({ fs: e, gitdir: t, ref: a });
11556
+ await H.writeRef({ fs: e, gitdir: t, ref: o, value: l }), await H.deleteRef({ fs: e, gitdir: t, ref: a });
11557
11557
  const u = await br({
11558
11558
  fs: e,
11559
11559
  gitdir: t,
11560
11560
  fullname: !0
11561
11561
  }) === a;
11562
- (i || u) && await U.writeSymbolicRef({
11562
+ (i || u) && await H.writeSymbolicRef({
11563
11563
  fs: e,
11564
11564
  gitdir: t,
11565
11565
  ref: "HEAD",
@@ -11602,7 +11602,7 @@ async function Gy({
11602
11602
  const o = new K(e);
11603
11603
  let s, l;
11604
11604
  try {
11605
- s = await U.resolve({ fs: o, gitdir: r, ref: i || "HEAD" });
11605
+ s = await H.resolve({ fs: o, gitdir: r, ref: i || "HEAD" });
11606
11606
  } catch (d) {
11607
11607
  if (i)
11608
11608
  throw d;
@@ -11649,7 +11649,7 @@ async function Yy({
11649
11649
  depth: i
11650
11650
  }) {
11651
11651
  try {
11652
- return P("fs", e), P("gitdir", r), P("ref", n), await U.resolve({
11652
+ return P("fs", e), P("gitdir", r), P("ref", n), await H.resolve({
11653
11653
  fs: new K(e),
11654
11654
  gitdir: r,
11655
11655
  ref: n,
@@ -11808,7 +11808,7 @@ async function Jy({
11808
11808
  cache: {},
11809
11809
  dir: t,
11810
11810
  gitdir: r,
11811
- trees: [bt({ ref: i }), bt({ ref: n })],
11811
+ trees: [_t({ ref: i }), _t({ ref: n })],
11812
11812
  map: async (c, [u, d]) => {
11813
11813
  if (c === "." || await kn.isIgnored({ fs: e, dir: t, gitdir: r, filepath: c }))
11814
11814
  return;
@@ -11928,7 +11928,7 @@ class Vt {
11928
11928
  }) : {};
11929
11929
  }
11930
11930
  async writeStashRef(t) {
11931
- return U.writeRef({
11931
+ return H.writeRef({
11932
11932
  fs: this.fs,
11933
11933
  gitdir: this.gitdir,
11934
11934
  ref: Vt.refStash,
@@ -11960,17 +11960,17 @@ async function Qy({ fs: e, dir: t, gitdir: r, message: n = "" }) {
11960
11960
  fs: e,
11961
11961
  gitdir: r,
11962
11962
  fullname: !1
11963
- }), o = await U.resolve({
11963
+ }), o = await H.resolve({
11964
11964
  fs: e,
11965
11965
  gitdir: r,
11966
11966
  ref: "HEAD"
11967
11967
  }), l = (await Kf({ fs: e, dir: t, gitdir: r, oid: o })).commit.message, c = [o];
11968
- let u = null, d = bt({ ref: "HEAD" });
11968
+ let u = null, d = _t({ ref: "HEAD" });
11969
11969
  const p = await Il({
11970
11970
  fs: e,
11971
11971
  dir: t,
11972
11972
  gitdir: r,
11973
- treePair: [bt({ ref: "HEAD" }), "stage"]
11973
+ treePair: [_t({ ref: "HEAD" }), "stage"]
11974
11974
  });
11975
11975
  if (p) {
11976
11976
  const x = await i.writeStashCommit({
@@ -12200,7 +12200,7 @@ async function rd({ fs: e, cache: t, gitdir: r, tree: n, path: i }) {
12200
12200
  async function ab({ fs: e, cache: t, gitdir: r }) {
12201
12201
  let n;
12202
12202
  try {
12203
- n = await U.resolve({ fs: e, gitdir: r, ref: "HEAD" });
12203
+ n = await H.resolve({ fs: e, gitdir: r, ref: "HEAD" });
12204
12204
  } catch (a) {
12205
12205
  if (a instanceof ke)
12206
12206
  return [];
@@ -12226,7 +12226,7 @@ async function ob({
12226
12226
  cache: o,
12227
12227
  dir: t,
12228
12228
  gitdir: r,
12229
- trees: [bt({ ref: n }), _i(), _n()],
12229
+ trees: [_t({ ref: n }), _i(), _n()],
12230
12230
  map: async function(c, [u, d, p]) {
12231
12231
  if (!u && !p && d && !s && await kn.isIgnored({
12232
12232
  fs: l,
@@ -12272,14 +12272,14 @@ async function sb({
12272
12272
  if (n === void 0)
12273
12273
  throw new ct("ref");
12274
12274
  n = n.startsWith("refs/tags/") ? n : `refs/tags/${n}`;
12275
- const s = await U.resolve({
12275
+ const s = await H.resolve({
12276
12276
  fs: o,
12277
12277
  gitdir: r,
12278
12278
  ref: i || "HEAD"
12279
12279
  });
12280
- if (!a && await U.exists({ fs: o, gitdir: r, ref: n }))
12280
+ if (!a && await H.exists({ fs: o, gitdir: r, ref: n }))
12281
12281
  throw new Pt("tag", n);
12282
- await U.writeRef({ fs: o, gitdir: r, ref: n, value: s });
12282
+ await H.writeRef({ fs: o, gitdir: r, ref: n, value: s });
12283
12283
  } catch (o) {
12284
12284
  throw o.caller = "git.tag", o;
12285
12285
  }
@@ -12477,18 +12477,18 @@ async function pb({
12477
12477
  const s = new K(e);
12478
12478
  if (n !== Ft.clean(n))
12479
12479
  throw new Rt(n, Ft.clean(n));
12480
- if (!a && await U.exists({ fs: s, gitdir: r, ref: n }))
12480
+ if (!a && await H.exists({ fs: s, gitdir: r, ref: n }))
12481
12481
  throw new Pt("ref", n);
12482
- o ? await U.writeSymbolicRef({
12482
+ o ? await H.writeSymbolicRef({
12483
12483
  fs: s,
12484
12484
  gitdir: r,
12485
12485
  ref: n,
12486
12486
  value: i
12487
- }) : (i = await U.resolve({
12487
+ }) : (i = await H.resolve({
12488
12488
  fs: s,
12489
12489
  gitdir: r,
12490
12490
  ref: i
12491
- }), await U.writeRef({
12491
+ }), await H.writeRef({
12492
12492
  fs: s,
12493
12493
  gitdir: r,
12494
12494
  ref: n,
@@ -12533,7 +12533,7 @@ async function gb({ fs: e, dir: t, gitdir: r = N.join(t, ".git"), tree: n }) {
12533
12533
  var lt = {
12534
12534
  Errors: qw,
12535
12535
  STAGE: _n,
12536
- TREE: bt,
12536
+ TREE: _t,
12537
12537
  WORKDIR: _i,
12538
12538
  add: lg,
12539
12539
  abortMerge: ag,
@@ -12912,7 +12912,7 @@ var ge = ad.exports, cd = { exports: {} }, Se = {};
12912
12912
  * LICENSE file in the root directory of this source tree.
12913
12913
  */
12914
12914
  var He = typeof Symbol == "function" && Symbol.for, Is = He ? Symbol.for("react.element") : 60103, Bs = He ? Symbol.for("react.portal") : 60106, Oa = He ? Symbol.for("react.fragment") : 60107, Ca = He ? Symbol.for("react.strict_mode") : 60108, Pa = He ? Symbol.for("react.profiler") : 60114, $a = He ? Symbol.for("react.provider") : 60109, Ta = He ? Symbol.for("react.context") : 60110, js = He ? Symbol.for("react.async_mode") : 60111, Aa = He ? Symbol.for("react.concurrent_mode") : 60111, Da = He ? Symbol.for("react.forward_ref") : 60112, Ia = He ? Symbol.for("react.suspense") : 60113, zb = He ? Symbol.for("react.suspense_list") : 60120, Ba = He ? Symbol.for("react.memo") : 60115, ja = He ? Symbol.for("react.lazy") : 60116, Nb = He ? Symbol.for("react.block") : 60121, Mb = He ? Symbol.for("react.fundamental") : 60117, Lb = He ? Symbol.for("react.responder") : 60118, Fb = He ? Symbol.for("react.scope") : 60119;
12915
- function wt(e) {
12915
+ function gt(e) {
12916
12916
  if (typeof e == "object" && e !== null) {
12917
12917
  var t = e.$$typeof;
12918
12918
  switch (t) {
@@ -12943,7 +12943,7 @@ function wt(e) {
12943
12943
  }
12944
12944
  }
12945
12945
  function ld(e) {
12946
- return wt(e) === Aa;
12946
+ return gt(e) === Aa;
12947
12947
  }
12948
12948
  Se.AsyncMode = js;
12949
12949
  Se.ConcurrentMode = Aa;
@@ -12959,54 +12959,54 @@ Se.Profiler = Pa;
12959
12959
  Se.StrictMode = Ca;
12960
12960
  Se.Suspense = Ia;
12961
12961
  Se.isAsyncMode = function(e) {
12962
- return ld(e) || wt(e) === js;
12962
+ return ld(e) || gt(e) === js;
12963
12963
  };
12964
12964
  Se.isConcurrentMode = ld;
12965
12965
  Se.isContextConsumer = function(e) {
12966
- return wt(e) === Ta;
12966
+ return gt(e) === Ta;
12967
12967
  };
12968
12968
  Se.isContextProvider = function(e) {
12969
- return wt(e) === $a;
12969
+ return gt(e) === $a;
12970
12970
  };
12971
12971
  Se.isElement = function(e) {
12972
12972
  return typeof e == "object" && e !== null && e.$$typeof === Is;
12973
12973
  };
12974
12974
  Se.isForwardRef = function(e) {
12975
- return wt(e) === Da;
12975
+ return gt(e) === Da;
12976
12976
  };
12977
12977
  Se.isFragment = function(e) {
12978
- return wt(e) === Oa;
12978
+ return gt(e) === Oa;
12979
12979
  };
12980
12980
  Se.isLazy = function(e) {
12981
- return wt(e) === ja;
12981
+ return gt(e) === ja;
12982
12982
  };
12983
12983
  Se.isMemo = function(e) {
12984
- return wt(e) === Ba;
12984
+ return gt(e) === Ba;
12985
12985
  };
12986
12986
  Se.isPortal = function(e) {
12987
- return wt(e) === Bs;
12987
+ return gt(e) === Bs;
12988
12988
  };
12989
12989
  Se.isProfiler = function(e) {
12990
- return wt(e) === Pa;
12990
+ return gt(e) === Pa;
12991
12991
  };
12992
12992
  Se.isStrictMode = function(e) {
12993
- return wt(e) === Ca;
12993
+ return gt(e) === Ca;
12994
12994
  };
12995
12995
  Se.isSuspense = function(e) {
12996
- return wt(e) === Ia;
12996
+ return gt(e) === Ia;
12997
12997
  };
12998
12998
  Se.isValidElementType = function(e) {
12999
12999
  return typeof e == "string" || typeof e == "function" || e === Oa || e === Aa || e === Pa || e === Ca || e === Ia || e === zb || typeof e == "object" && e !== null && (e.$$typeof === ja || e.$$typeof === Ba || e.$$typeof === $a || e.$$typeof === Ta || e.$$typeof === Da || e.$$typeof === Mb || e.$$typeof === Lb || e.$$typeof === Fb || e.$$typeof === Nb);
13000
13000
  };
13001
- Se.typeOf = wt;
13001
+ Se.typeOf = gt;
13002
13002
  cd.exports = Se;
13003
13003
  var zs = cd.exports;
13004
13004
  function Ub(e) {
13005
13005
  function t(F, q, W, ee, I) {
13006
- for (var Q = 0, D = 0, G = 0, X = 0, Y, M, V = 0, te = 0, J, oe = J = Y = 0, re = 0, ne = 0, Ee = 0, _e = 0, gt = W.length, Le = gt - 1, Oe, ie = "", xe = "", On = "", w = "", f; re < gt; ) {
13007
- if (M = W.charCodeAt(re), re === Le && D + X + G + Q !== 0 && (D !== 0 && (M = D === 47 ? 10 : 47), X = G = Q = 0, gt++, Le++), D + X + G + Q === 0) {
13006
+ for (var Q = 0, D = 0, G = 0, X = 0, Y, L, V = 0, te = 0, J, oe = J = Y = 0, re = 0, ne = 0, Ee = 0, _e = 0, yt = W.length, Le = yt - 1, Oe, ie = "", xe = "", On = "", w = "", f; re < yt; ) {
13007
+ if (L = W.charCodeAt(re), re === Le && D + X + G + Q !== 0 && (D !== 0 && (L = D === 47 ? 10 : 47), X = G = Q = 0, yt++, Le++), D + X + G + Q === 0) {
13008
13008
  if (re === Le && (0 < ne && (ie = ie.replace(p, "")), 0 < ie.trim().length)) {
13009
- switch (M) {
13009
+ switch (L) {
13010
13010
  case 32:
13011
13011
  case 9:
13012
13012
  case 59:
@@ -13016,12 +13016,12 @@ function Ub(e) {
13016
13016
  default:
13017
13017
  ie += W.charAt(re);
13018
13018
  }
13019
- M = 59;
13019
+ L = 59;
13020
13020
  }
13021
- switch (M) {
13021
+ switch (L) {
13022
13022
  case 123:
13023
- for (ie = ie.trim(), Y = ie.charCodeAt(0), J = 1, _e = ++re; re < gt; ) {
13024
- switch (M = W.charCodeAt(re)) {
13023
+ for (ie = ie.trim(), Y = ie.charCodeAt(0), J = 1, _e = ++re; re < yt; ) {
13024
+ switch (L = W.charCodeAt(re)) {
13025
13025
  case 123:
13026
13026
  J++;
13027
13027
  break;
@@ -13029,20 +13029,20 @@ function Ub(e) {
13029
13029
  J--;
13030
13030
  break;
13031
13031
  case 47:
13032
- switch (M = W.charCodeAt(re + 1)) {
13032
+ switch (L = W.charCodeAt(re + 1)) {
13033
13033
  case 42:
13034
13034
  case 47:
13035
13035
  e: {
13036
13036
  for (oe = re + 1; oe < Le; ++oe)
13037
13037
  switch (W.charCodeAt(oe)) {
13038
13038
  case 47:
13039
- if (M === 42 && W.charCodeAt(oe - 1) === 42 && re + 2 !== oe) {
13039
+ if (L === 42 && W.charCodeAt(oe - 1) === 42 && re + 2 !== oe) {
13040
13040
  re = oe + 1;
13041
13041
  break e;
13042
13042
  }
13043
13043
  break;
13044
13044
  case 10:
13045
- if (M === 47) {
13045
+ if (L === 47) {
13046
13046
  re = oe + 1;
13047
13047
  break e;
13048
13048
  }
@@ -13052,12 +13052,12 @@ function Ub(e) {
13052
13052
  }
13053
13053
  break;
13054
13054
  case 91:
13055
- M++;
13055
+ L++;
13056
13056
  case 40:
13057
- M++;
13057
+ L++;
13058
13058
  case 34:
13059
13059
  case 39:
13060
- for (; re++ < Le && W.charCodeAt(re) !== M; )
13060
+ for (; re++ < Le && W.charCodeAt(re) !== L; )
13061
13061
  ;
13062
13062
  }
13063
13063
  if (J === 0) break;
@@ -13065,7 +13065,7 @@ function Ub(e) {
13065
13065
  }
13066
13066
  switch (J = W.substring(_e, re), Y === 0 && (Y = (ie = ie.replace(d, "").trim()).charCodeAt(0)), Y) {
13067
13067
  case 64:
13068
- switch (0 < ne && (ie = ie.replace(p, "")), M = ie.charCodeAt(1), M) {
13068
+ switch (0 < ne && (ie = ie.replace(p, "")), L = ie.charCodeAt(1), L) {
13069
13069
  case 100:
13070
13070
  case 109:
13071
13071
  case 115:
@@ -13075,7 +13075,7 @@ function Ub(e) {
13075
13075
  default:
13076
13076
  ne = Ce;
13077
13077
  }
13078
- if (J = t(q, ne, J, M, I + 1), _e = J.length, 0 < be && (ne = r(Ce, ie, Ee), f = s(3, J, ne, q, H, L, _e, M, I, ee), ie = ne.join(""), f !== void 0 && (_e = (J = f.trim()).length) === 0 && (M = 0, J = "")), 0 < _e) switch (M) {
13078
+ if (J = t(q, ne, J, L, I + 1), _e = J.length, 0 < be && (ne = r(Ce, ie, Ee), f = s(3, J, ne, q, U, M, _e, L, I, ee), ie = ne.join(""), f !== void 0 && (_e = (J = f.trim()).length) === 0 && (L = 0, J = "")), 0 < _e) switch (L) {
13079
13079
  case 115:
13080
13080
  ie = ie.replace(C, o);
13081
13081
  case 100:
@@ -13094,37 +13094,37 @@ function Ub(e) {
13094
13094
  default:
13095
13095
  J = t(q, r(q, ie, Ee), J, ee, I + 1);
13096
13096
  }
13097
- On += J, J = Ee = ne = oe = Y = 0, ie = "", M = W.charCodeAt(++re);
13097
+ On += J, J = Ee = ne = oe = Y = 0, ie = "", L = W.charCodeAt(++re);
13098
13098
  break;
13099
13099
  case 125:
13100
13100
  case 59:
13101
- if (ie = (0 < ne ? ie.replace(p, "") : ie).trim(), 1 < (_e = ie.length)) switch (oe === 0 && (Y = ie.charCodeAt(0), Y === 45 || 96 < Y && 123 > Y) && (_e = (ie = ie.replace(" ", ":")).length), 0 < be && (f = s(1, ie, q, F, H, L, xe.length, ee, I, ee)) !== void 0 && (_e = (ie = f.trim()).length) === 0 && (ie = "\0\0"), Y = ie.charCodeAt(0), M = ie.charCodeAt(1), Y) {
13101
+ if (ie = (0 < ne ? ie.replace(p, "") : ie).trim(), 1 < (_e = ie.length)) switch (oe === 0 && (Y = ie.charCodeAt(0), Y === 45 || 96 < Y && 123 > Y) && (_e = (ie = ie.replace(" ", ":")).length), 0 < be && (f = s(1, ie, q, F, U, M, xe.length, ee, I, ee)) !== void 0 && (_e = (ie = f.trim()).length) === 0 && (ie = "\0\0"), Y = ie.charCodeAt(0), L = ie.charCodeAt(1), Y) {
13102
13102
  case 0:
13103
13103
  break;
13104
13104
  case 64:
13105
- if (M === 105 || M === 99) {
13105
+ if (L === 105 || L === 99) {
13106
13106
  w += ie + W.charAt(re);
13107
13107
  break;
13108
13108
  }
13109
13109
  default:
13110
- ie.charCodeAt(_e - 1) !== 58 && (xe += i(ie, Y, M, ie.charCodeAt(2)));
13110
+ ie.charCodeAt(_e - 1) !== 58 && (xe += i(ie, Y, L, ie.charCodeAt(2)));
13111
13111
  }
13112
- Ee = ne = oe = Y = 0, ie = "", M = W.charCodeAt(++re);
13112
+ Ee = ne = oe = Y = 0, ie = "", L = W.charCodeAt(++re);
13113
13113
  }
13114
13114
  }
13115
- switch (M) {
13115
+ switch (L) {
13116
13116
  case 13:
13117
13117
  case 10:
13118
- D === 47 ? D = 0 : 1 + Y === 0 && ee !== 107 && 0 < ie.length && (ne = 1, ie += "\0"), 0 < be * Ze && s(0, ie, q, F, H, L, xe.length, ee, I, ee), L = 1, H++;
13118
+ D === 47 ? D = 0 : 1 + Y === 0 && ee !== 107 && 0 < ie.length && (ne = 1, ie += "\0"), 0 < be * Ze && s(0, ie, q, F, U, M, xe.length, ee, I, ee), M = 1, U++;
13119
13119
  break;
13120
13120
  case 59:
13121
13121
  case 125:
13122
13122
  if (D + X + G + Q === 0) {
13123
- L++;
13123
+ M++;
13124
13124
  break;
13125
13125
  }
13126
13126
  default:
13127
- switch (L++, Oe = W.charAt(re), M) {
13127
+ switch (M++, Oe = W.charAt(re), L) {
13128
13128
  case 9:
13129
13129
  case 32:
13130
13130
  if (X + Q + D === 0) switch (V) {
@@ -13135,7 +13135,7 @@ function Ub(e) {
13135
13135
  Oe = "";
13136
13136
  break;
13137
13137
  default:
13138
- M !== 32 && (Oe = " ");
13138
+ L !== 32 && (Oe = " ");
13139
13139
  }
13140
13140
  break;
13141
13141
  case 0:
@@ -13166,7 +13166,7 @@ function Ub(e) {
13166
13166
  break;
13167
13167
  case 34:
13168
13168
  case 39:
13169
- D === 0 && (X = X === M ? 0 : X === 0 ? M : X);
13169
+ D === 0 && (X = X === L ? 0 : X === 0 ? L : X);
13170
13170
  break;
13171
13171
  case 91:
13172
13172
  X + D + G === 0 && Q++;
@@ -13195,7 +13195,7 @@ function Ub(e) {
13195
13195
  case 47:
13196
13196
  if (!(0 < X + Q + G)) switch (D) {
13197
13197
  case 0:
13198
- switch (2 * M + 3 * W.charCodeAt(re + 1)) {
13198
+ switch (2 * L + 3 * W.charCodeAt(re + 1)) {
13199
13199
  case 235:
13200
13200
  D = 47;
13201
13201
  break;
@@ -13204,15 +13204,15 @@ function Ub(e) {
13204
13204
  }
13205
13205
  break;
13206
13206
  case 42:
13207
- M === 47 && V === 42 && _e + 2 !== re && (W.charCodeAt(_e + 2) === 33 && (xe += W.substring(_e, re + 1)), Oe = "", D = 0);
13207
+ L === 47 && V === 42 && _e + 2 !== re && (W.charCodeAt(_e + 2) === 33 && (xe += W.substring(_e, re + 1)), Oe = "", D = 0);
13208
13208
  }
13209
13209
  }
13210
13210
  D === 0 && (ie += Oe);
13211
13211
  }
13212
- te = V, V = M, re++;
13212
+ te = V, V = L, re++;
13213
13213
  }
13214
13214
  if (_e = xe.length, 0 < _e) {
13215
- if (ne = q, 0 < be && (f = s(2, xe, ne, F, H, L, _e, ee, I, ee), f !== void 0 && (xe = f).length === 0)) return w + xe + On;
13215
+ if (ne = q, 0 < be && (f = s(2, xe, ne, F, U, M, _e, ee, I, ee), f !== void 0 && (xe = f).length === 0)) return w + xe + On;
13216
13216
  if (xe = ne.join(",") + "{" + xe + "}", fe * Z !== 0) {
13217
13217
  switch (fe !== 2 || a(xe, 2) || (Z = 0), Z) {
13218
13218
  case 111:
@@ -13363,8 +13363,8 @@ function Ub(e) {
13363
13363
  return W !== q + ";" ? W.replace(O, " or ($1)").substring(4) : "(" + q + ")";
13364
13364
  }
13365
13365
  function s(F, q, W, ee, I, Q, D, G, X, Y) {
13366
- for (var M = 0, V = q, te; M < be; ++M)
13367
- switch (te = me[M].call(u, F, V, W, ee, I, Q, D, G, X, Y)) {
13366
+ for (var L = 0, V = q, te; L < be; ++L)
13367
+ switch (te = me[L].call(u, F, V, W, ee, I, Q, D, G, X, Y)) {
13368
13368
  case void 0:
13369
13369
  case !1:
13370
13370
  case !0:
@@ -13395,13 +13395,13 @@ function Ub(e) {
13395
13395
  function u(F, q) {
13396
13396
  var W = F;
13397
13397
  if (33 > W.charCodeAt(0) && (W = W.trim()), le = W, W = [le], 0 < be) {
13398
- var ee = s(-1, q, W, W, H, L, 0, 0, 0, 0);
13398
+ var ee = s(-1, q, W, W, U, M, 0, 0, 0, 0);
13399
13399
  ee !== void 0 && typeof ee == "string" && (q = ee);
13400
13400
  }
13401
13401
  var I = t(Ce, W, q, 0, 0);
13402
- return 0 < be && (ee = s(-2, I, W, W, H, L, I.length, 0, 0, 0), ee !== void 0 && (I = ee)), le = "", Z = 0, L = H = 1, I;
13402
+ return 0 < be && (ee = s(-2, I, W, W, U, M, I.length, 0, 0, 0), ee !== void 0 && (I = ee)), le = "", Z = 0, M = U = 1, I;
13403
13403
  }
13404
- var d = /^\0+/g, p = /[\0\r\f]/g, m = /: */g, g = /zoo|gra/, _ = /([,: ])(transform)/g, x = /,\r+?/g, b = /([\t\r\n ])*\f?&/g, v = /@(k\w+)\s*(\S*)\s*/, k = /::(place)/g, S = /:(read-only)/g, y = /[svh]\w+-[tblr]{2}/, C = /\(\s*(.*)\s*\)/g, O = /([\s\S]*?);/g, R = /-self|flex-/g, T = /[^]*?(:[rp][el]a[\w-]+)[^]*/, A = /stretch|:\s*\w+\-(?:conte|avail)/, j = /([^-])(image-set\()/, L = 1, H = 1, Z = 0, fe = 1, Ce = [], me = [], be = 0, Ye = null, Ze = 0, le = "";
13404
+ var d = /^\0+/g, p = /[\0\r\f]/g, m = /: */g, g = /zoo|gra/, _ = /([,: ])(transform)/g, x = /,\r+?/g, b = /([\t\r\n ])*\f?&/g, v = /@(k\w+)\s*(\S*)\s*/, k = /::(place)/g, S = /:(read-only)/g, y = /[svh]\w+-[tblr]{2}/, C = /\(\s*(.*)\s*\)/g, O = /([\s\S]*?);/g, R = /-self|flex-/g, T = /[^]*?(:[rp][el]a[\w-]+)[^]*/, A = /stretch|:\s*\w+\-(?:conte|avail)/, j = /([^-])(image-set\()/, M = 1, U = 1, Z = 0, fe = 1, Ce = [], me = [], be = 0, Ye = null, Ze = 0, le = "";
13405
13405
  return u.use = l, u.set = c, e !== void 0 && c(e), u;
13406
13406
  }
13407
13407
  var Hb = {
@@ -13936,19 +13936,19 @@ function bd(e, t, r) {
13936
13936
  } : e.shouldForwardProp);
13937
13937
  var g, _ = new g_(r, d, n ? e.componentStyle : void 0), x = _.isStatic && o.length === 0, b = function(v, k) {
13938
13938
  return function(S, y, C, O) {
13939
- var R = S.attrs, T = S.componentStyle, A = S.defaultProps, j = S.foldedComponentIds, L = S.shouldForwardProp, H = S.styledComponentId, Z = S.target, fe = function(ee, I, Q) {
13939
+ var R = S.attrs, T = S.componentStyle, A = S.defaultProps, j = S.foldedComponentIds, M = S.shouldForwardProp, U = S.styledComponentId, Z = S.target, fe = function(ee, I, Q) {
13940
13940
  ee === void 0 && (ee = hr);
13941
13941
  var D = Xt({}, I, { theme: ee }), G = {};
13942
13942
  return Q.forEach(function(X) {
13943
- var Y, M, V, te = X;
13944
- for (Y in Kn(te) && (te = te(D)), te) D[Y] = G[Y] = Y === "className" ? (M = G[Y], V = te[Y], M && V ? M + " " + V : M || V) : te[Y];
13943
+ var Y, L, V, te = X;
13944
+ for (Y in Kn(te) && (te = te(D)), te) D[Y] = G[Y] = Y === "className" ? (L = G[Y], V = te[Y], L && V ? L + " " + V : L || V) : te[Y];
13945
13945
  }), [D, G];
13946
13946
  }($_(y, Jn(yd), A) || hr, y, R), Ce = fe[0], me = fe[1], be = function(ee, I, Q, D) {
13947
13947
  var G = x_(), X = E_(), Y = I ? ee.generateAndInjectStyles(hr, G, X) : ee.generateAndInjectStyles(Q, G, X);
13948
13948
  return Y;
13949
13949
  }(T, O, Ce), Ye = C, Ze = me.$as || y.$as || me.as || y.as || Z, le = zi(Ze), F = me !== y ? Xt({}, y, {}, me) : y, q = {};
13950
- for (var W in F) W[0] !== "$" && W !== "as" && (W === "forwardedAs" ? q.as = F[W] : (L ? L(W, zl, Ze) : !le || zl(W)) && (q[W] = F[W]));
13951
- return y.style && me.style !== y.style && (q.style = Xt({}, y.style, {}, me.style)), q.className = Array.prototype.concat(j, H, be !== H ? be : null, y.className, me.className).filter(Boolean).join(" "), q.ref = Ye, hh(Ze, q);
13950
+ for (var W in F) W[0] !== "$" && W !== "as" && (W === "forwardedAs" ? q.as = F[W] : (M ? M(W, zl, Ze) : !le || zl(W)) && (q[W] = F[W]));
13951
+ return y.style && me.style !== y.style && (q.style = Xt({}, y.style, {}, me.style)), q.className = Array.prototype.concat(j, U, be !== U ? be : null, y.className, me.className).filter(Boolean).join(" "), q.ref = Ye, hh(Ze, q);
13952
13952
  }(g, v, k, x);
13953
13953
  };
13954
13954
  return b.displayName = u, (g = Ne.forwardRef(b)).attrs = p, g.componentStyle = _, g.displayName = u, g.shouldForwardProp = m, g.foldedComponentIds = n ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : fa, g.styledComponentId = d, g.target = n ? e.target : e, g.withComponent = function(v) {
@@ -14016,7 +14016,7 @@ const j_ = yr.div`
14016
14016
  throw new Error("useAPI must be used within an APIProvider");
14017
14017
  return e;
14018
14018
  }, M_ = ({ children: e }) => {
14019
- const [t, r] = St(0), n = hc(
14019
+ const [t, r] = ht(0), n = hc(
14020
14020
  async (a) => {
14021
14021
  r((o) => o + 1);
14022
14022
  try {
@@ -14356,40 +14356,40 @@ const q_ = (e) => {
14356
14356
  }, Us = fu(null);
14357
14357
  Us.Consumer;
14358
14358
  const G_ = (e) => {
14359
- const [t, r] = St({
14359
+ const [t, r] = ht({
14360
14360
  projectName: null,
14361
14361
  projectURL: null
14362
- }), [n, i] = St({
14362
+ }), [n, i] = ht({
14363
14363
  API_BASE_URL: null,
14364
14364
  WS_BASE_URL: null,
14365
14365
  GW_BASE_URL: null
14366
- }), [a, o] = St(
14366
+ }), [a, o] = ht(
14367
14367
  () => Zl(e.config.GW_BASE_URL)
14368
- ), [s, l] = St(""), [c, u] = St(Vl()), d = q_(e.config.API_BASE_URL), p = xd(e.config.API_BASE_URL), m = d || p, [g, _] = St(), [x, b] = St(!1), v = () => {
14369
- u(Vl());
14370
- }, k = (S, y) => {
14371
- if (!S) return;
14372
- g && (g.close(), b(!1));
14373
- const C = localStorage.getItem("accessToken") || "", O = `${n.WS_BASE_URL}/ws/chat/${S}?token=${C}`;
14374
- if (!O.startsWith("ws://") && !O.startsWith("wss://")) {
14375
- y.onerror({
14368
+ ), [s, l] = ht(""), [c, u] = ht(""), [d, p] = ht(""), [m, g] = ht(Vl()), _ = q_(e.config.API_BASE_URL), x = xd(e.config.API_BASE_URL), b = _ || x, [v, k] = ht(), [S, y] = ht(!1), C = () => {
14369
+ g(Vl());
14370
+ }, O = (R, T) => {
14371
+ if (!R) return;
14372
+ v && (v.close(), y(!1));
14373
+ const A = localStorage.getItem("accessToken") || "", j = `${n.WS_BASE_URL}/ws/chat/${R}?token=${A}`;
14374
+ if (!j.startsWith("ws://") && !j.startsWith("wss://")) {
14375
+ T.onerror({
14376
14376
  customWebsocketError: "INVALID_URL"
14377
14377
  });
14378
14378
  return;
14379
14379
  }
14380
- const R = new WebSocket(O);
14381
- R.onopen = () => {
14382
- b(!0), y.onopen();
14383
- }, R.onclose = (T) => {
14384
- b(!1), y.onclose(T);
14385
- }, R.onerror = (T) => {
14386
- y.onerror(T);
14387
- }, R.onmessage = (T) => {
14388
- y.onmessage(T);
14389
- }, _(R);
14380
+ const M = new WebSocket(j);
14381
+ M.onopen = () => {
14382
+ y(!0), T.onopen();
14383
+ }, M.onclose = (U) => {
14384
+ y(!1), T.onclose(U);
14385
+ }, M.onerror = (U) => {
14386
+ T.onerror(U);
14387
+ }, M.onmessage = (U) => {
14388
+ T.onmessage(U);
14389
+ }, k(M);
14390
14390
  };
14391
14391
  return du(() => (i(e.config), o(Zl(e.config.GW_BASE_URL)), e.metadata && r(e.metadata), () => {
14392
- g && g.close();
14392
+ v && v.close();
14393
14393
  }), [e.config]), /* @__PURE__ */ ge.jsx(
14394
14394
  Us.Provider,
14395
14395
  {
@@ -14397,15 +14397,19 @@ const G_ = (e) => {
14397
14397
  config: n,
14398
14398
  projectMetadata: t,
14399
14399
  setProjectMetadata: r,
14400
- syncToken: c,
14401
- setSyncToken: v,
14400
+ syncToken: m,
14401
+ setSyncToken: C,
14402
14402
  selectedComponentId: s,
14403
14403
  setSelectedComponentId: l,
14404
- APIHandler: m,
14404
+ selectedComponentXPath: c,
14405
+ setSelectedComponentXPath: u,
14406
+ selectedComponentHTML: d,
14407
+ setSelectedComponentHTML: p,
14408
+ APIHandler: b,
14405
14409
  gwAPIHandler: a,
14406
- startChatbot: k,
14407
- chatbotWebsocket: g,
14408
- chatbotWebsocketConnected: x
14410
+ startChatbot: O,
14411
+ chatbotWebsocket: v,
14412
+ chatbotWebsocketConnected: S
14409
14413
  },
14410
14414
  children: e.children
14411
14415
  }
@@ -14536,19 +14540,19 @@ var Sd = { exports: {} }, Ri = {}, es = { exports: {} };
14536
14540
  n(t);
14537
14541
  })(Hi, function(r) {
14538
14542
  function n(D) {
14539
- return function(X, Y, M, V, te, J, oe) {
14543
+ return function(X, Y, L, V, te, J, oe) {
14540
14544
  return D(X, Y, oe);
14541
14545
  };
14542
14546
  }
14543
14547
  function i(D) {
14544
- return function(X, Y, M, V) {
14548
+ return function(X, Y, L, V) {
14545
14549
  if (!X || !Y || typeof X != "object" || typeof Y != "object")
14546
- return D(X, Y, M, V);
14550
+ return D(X, Y, L, V);
14547
14551
  var te = V.get(X), J = V.get(Y);
14548
14552
  if (te && J)
14549
14553
  return te === Y && J === X;
14550
14554
  V.set(X, Y), V.set(Y, X);
14551
- var oe = D(X, Y, M, V);
14555
+ var oe = D(X, Y, L, V);
14552
14556
  return V.delete(X), V.delete(Y), oe;
14553
14557
  };
14554
14558
  }
@@ -14571,28 +14575,28 @@ var Sd = { exports: {} }, Ri = {}, es = { exports: {} };
14571
14575
  }
14572
14576
  var c = "[object Arguments]", u = "[object Boolean]", d = "[object Date]", p = "[object RegExp]", m = "[object Map]", g = "[object Number]", _ = "[object Object]", x = "[object Set]", b = "[object String]", v = Object.prototype.toString;
14573
14577
  function k(D) {
14574
- var G = D.areArraysEqual, X = D.areDatesEqual, Y = D.areMapsEqual, M = D.areObjectsEqual, V = D.areRegExpsEqual, te = D.areSetsEqual, J = D.createIsNestedEqual, oe = J(re);
14578
+ var G = D.areArraysEqual, X = D.areDatesEqual, Y = D.areMapsEqual, L = D.areObjectsEqual, V = D.areRegExpsEqual, te = D.areSetsEqual, J = D.createIsNestedEqual, oe = J(re);
14575
14579
  function re(ne, Ee, _e) {
14576
14580
  if (ne === Ee)
14577
14581
  return !0;
14578
14582
  if (!ne || !Ee || typeof ne != "object" || typeof Ee != "object")
14579
14583
  return ne !== ne && Ee !== Ee;
14580
14584
  if (o(ne) && o(Ee))
14581
- return M(ne, Ee, oe, _e);
14582
- var gt = Array.isArray(ne), Le = Array.isArray(Ee);
14583
- if (gt || Le)
14584
- return gt === Le && G(ne, Ee, oe, _e);
14585
+ return L(ne, Ee, oe, _e);
14586
+ var yt = Array.isArray(ne), Le = Array.isArray(Ee);
14587
+ if (yt || Le)
14588
+ return yt === Le && G(ne, Ee, oe, _e);
14585
14589
  var Oe = v.call(ne);
14586
- return Oe !== v.call(Ee) ? !1 : Oe === d ? X(ne, Ee, oe, _e) : Oe === p ? V(ne, Ee, oe, _e) : Oe === m ? Y(ne, Ee, oe, _e) : Oe === x ? te(ne, Ee, oe, _e) : Oe === _ || Oe === c ? s(ne) || s(Ee) ? !1 : M(ne, Ee, oe, _e) : Oe === u || Oe === g || Oe === b ? l(ne.valueOf(), Ee.valueOf()) : !1;
14590
+ return Oe !== v.call(Ee) ? !1 : Oe === d ? X(ne, Ee, oe, _e) : Oe === p ? V(ne, Ee, oe, _e) : Oe === m ? Y(ne, Ee, oe, _e) : Oe === x ? te(ne, Ee, oe, _e) : Oe === _ || Oe === c ? s(ne) || s(Ee) ? !1 : L(ne, Ee, oe, _e) : Oe === u || Oe === g || Oe === b ? l(ne.valueOf(), Ee.valueOf()) : !1;
14587
14591
  }
14588
14592
  return re;
14589
14593
  }
14590
14594
  function S(D, G, X, Y) {
14591
- var M = D.length;
14592
- if (G.length !== M)
14595
+ var L = D.length;
14596
+ if (G.length !== L)
14593
14597
  return !1;
14594
- for (; M-- > 0; )
14595
- if (!X(D[M], G[M], M, M, D, G, Y))
14598
+ for (; L-- > 0; )
14599
+ if (!X(D[L], G[L], L, L, D, G, Y))
14596
14600
  return !1;
14597
14601
  return !0;
14598
14602
  }
@@ -14601,28 +14605,28 @@ var Sd = { exports: {} }, Ri = {}, es = { exports: {} };
14601
14605
  return l(D.valueOf(), G.valueOf());
14602
14606
  }
14603
14607
  function O(D, G, X, Y) {
14604
- var M = D.size === G.size;
14605
- if (!M)
14608
+ var L = D.size === G.size;
14609
+ if (!L)
14606
14610
  return !1;
14607
14611
  if (!D.size)
14608
14612
  return !0;
14609
14613
  var V = {}, te = 0;
14610
14614
  return D.forEach(function(J, oe) {
14611
- if (M) {
14615
+ if (L) {
14612
14616
  var re = !1, ne = 0;
14613
14617
  G.forEach(function(Ee, _e) {
14614
14618
  !re && !V[ne] && (re = X(oe, _e, te, ne, D, G, Y) && X(J, Ee, oe, _e, D, G, Y)) && (V[ne] = !0), ne++;
14615
- }), te++, M = re;
14619
+ }), te++, L = re;
14616
14620
  }
14617
- }), M;
14621
+ }), L;
14618
14622
  }
14619
14623
  var R = i(O), T = "_owner", A = Object.prototype.hasOwnProperty;
14620
14624
  function j(D, G, X, Y) {
14621
- var M = Object.keys(D), V = M.length;
14625
+ var L = Object.keys(D), V = L.length;
14622
14626
  if (Object.keys(G).length !== V)
14623
14627
  return !1;
14624
14628
  for (var te; V-- > 0; ) {
14625
- if (te = M[V], te === T) {
14629
+ if (te = L[V], te === T) {
14626
14630
  var J = !!D.$$typeof, oe = !!G.$$typeof;
14627
14631
  if ((J || oe) && J !== oe)
14628
14632
  return !1;
@@ -14632,40 +14636,40 @@ var Sd = { exports: {} }, Ri = {}, es = { exports: {} };
14632
14636
  }
14633
14637
  return !0;
14634
14638
  }
14635
- var L = i(j);
14636
- function H(D, G) {
14639
+ var M = i(j);
14640
+ function U(D, G) {
14637
14641
  return D.source === G.source && D.flags === G.flags;
14638
14642
  }
14639
14643
  function Z(D, G, X, Y) {
14640
- var M = D.size === G.size;
14641
- if (!M)
14644
+ var L = D.size === G.size;
14645
+ if (!L)
14642
14646
  return !1;
14643
14647
  if (!D.size)
14644
14648
  return !0;
14645
14649
  var V = {};
14646
14650
  return D.forEach(function(te, J) {
14647
- if (M) {
14651
+ if (L) {
14648
14652
  var oe = !1, re = 0;
14649
14653
  G.forEach(function(ne, Ee) {
14650
14654
  !oe && !V[re] && (oe = X(te, ne, J, Ee, D, G, Y)) && (V[re] = !0), re++;
14651
- }), M = oe;
14655
+ }), L = oe;
14652
14656
  }
14653
- }), M;
14657
+ }), L;
14654
14658
  }
14655
14659
  var fe = i(Z), Ce = Object.freeze({
14656
14660
  areArraysEqual: S,
14657
14661
  areDatesEqual: C,
14658
14662
  areMapsEqual: O,
14659
14663
  areObjectsEqual: j,
14660
- areRegExpsEqual: H,
14664
+ areRegExpsEqual: U,
14661
14665
  areSetsEqual: Z,
14662
14666
  createIsNestedEqual: n
14663
14667
  }), me = Object.freeze({
14664
14668
  areArraysEqual: y,
14665
14669
  areDatesEqual: C,
14666
14670
  areMapsEqual: R,
14667
- areObjectsEqual: L,
14668
- areRegExpsEqual: H,
14671
+ areObjectsEqual: M,
14672
+ areRegExpsEqual: U,
14669
14673
  areSetsEqual: fe,
14670
14674
  createIsNestedEqual: n
14671
14675
  }), be = k(Ce);
@@ -14695,8 +14699,8 @@ var Sd = { exports: {} }, Ri = {}, es = { exports: {} };
14695
14699
  }
14696
14700
  function Q(D) {
14697
14701
  var G = k(a(me, D(me)));
14698
- return function(X, Y, M) {
14699
- return M === void 0 && (M = /* @__PURE__ */ new WeakMap()), G(X, Y, M);
14702
+ return function(X, Y, L) {
14703
+ return L === void 0 && (L = /* @__PURE__ */ new WeakMap()), G(X, Y, L);
14700
14704
  };
14701
14705
  }
14702
14706
  r.circularDeepEqual = q, r.circularShallowEqual = ee, r.createCustomCircularEqual = Q, r.createCustomEqual = I, r.deepEqual = Ye, r.sameValueZeroEqual = l, r.shallowEqual = le, Object.defineProperty(r, "__esModule", { value: !0 });
@@ -15289,7 +15293,7 @@ Be.outerWidth = jv;
15289
15293
  Be.removeClassName = Yd;
15290
15294
  Be.removeEvent = Iv;
15291
15295
  Be.removeUserSelectStyles = qv;
15292
- var mt = Wt, eu = Tv(Lr);
15296
+ var wt = Wt, eu = Tv(Lr);
15293
15297
  function Wd(e) {
15294
15298
  if (typeof WeakMap != "function") return null;
15295
15299
  var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
@@ -15315,9 +15319,9 @@ function Tv(e, t) {
15315
15319
  }
15316
15320
  let Mi = "";
15317
15321
  function qd(e, t) {
15318
- return Mi || (Mi = (0, mt.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(r) {
15319
- return (0, mt.isFunction)(e[r]);
15320
- })), (0, mt.isFunction)(e[Mi]) ? e[Mi](t) : !1;
15322
+ return Mi || (Mi = (0, wt.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(r) {
15323
+ return (0, wt.isFunction)(e[r]);
15324
+ })), (0, wt.isFunction)(e[Mi]) ? e[Mi](t) : !1;
15321
15325
  }
15322
15326
  function Av(e, t, r) {
15323
15327
  let n = e;
@@ -15347,22 +15351,22 @@ function Iv(e, t, r, n) {
15347
15351
  function Bv(e) {
15348
15352
  let t = e.clientHeight;
15349
15353
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
15350
- return t += (0, mt.int)(r.borderTopWidth), t += (0, mt.int)(r.borderBottomWidth), t;
15354
+ return t += (0, wt.int)(r.borderTopWidth), t += (0, wt.int)(r.borderBottomWidth), t;
15351
15355
  }
15352
15356
  function jv(e) {
15353
15357
  let t = e.clientWidth;
15354
15358
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
15355
- return t += (0, mt.int)(r.borderLeftWidth), t += (0, mt.int)(r.borderRightWidth), t;
15359
+ return t += (0, wt.int)(r.borderLeftWidth), t += (0, wt.int)(r.borderRightWidth), t;
15356
15360
  }
15357
15361
  function zv(e) {
15358
15362
  let t = e.clientHeight;
15359
15363
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
15360
- return t -= (0, mt.int)(r.paddingTop), t -= (0, mt.int)(r.paddingBottom), t;
15364
+ return t -= (0, wt.int)(r.paddingTop), t -= (0, wt.int)(r.paddingBottom), t;
15361
15365
  }
15362
15366
  function Nv(e) {
15363
15367
  let t = e.clientWidth;
15364
15368
  const r = e.ownerDocument.defaultView.getComputedStyle(e);
15365
- return t -= (0, mt.int)(r.paddingLeft), t -= (0, mt.int)(r.paddingRight), t;
15369
+ return t -= (0, wt.int)(r.paddingLeft), t -= (0, wt.int)(r.paddingRight), t;
15366
15370
  }
15367
15371
  function Mv(e, t, r) {
15368
15372
  const i = t === t.ownerDocument.body ? {
@@ -15395,7 +15399,7 @@ function ec(e, t, r) {
15395
15399
  return a;
15396
15400
  }
15397
15401
  function Uv(e, t) {
15398
- return e.targetTouches && (0, mt.findInArray)(e.targetTouches, (r) => t === r.identifier) || e.changedTouches && (0, mt.findInArray)(e.changedTouches, (r) => t === r.identifier);
15402
+ return e.targetTouches && (0, wt.findInArray)(e.targetTouches, (r) => t === r.identifier) || e.changedTouches && (0, wt.findInArray)(e.changedTouches, (r) => t === r.identifier);
15399
15403
  }
15400
15404
  function Hv(e) {
15401
15405
  if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
@@ -15579,7 +15583,7 @@ function i1(e, t) {
15579
15583
  }
15580
15584
  return (t === "string" ? String : Number)(e);
15581
15585
  }
15582
- const Et = {
15586
+ const St = {
15583
15587
  touch: {
15584
15588
  start: "touchstart",
15585
15589
  move: "touchmove",
@@ -15591,7 +15595,7 @@ const Et = {
15591
15595
  stop: "mouseup"
15592
15596
  }
15593
15597
  };
15594
- let ar = Et.mouse, Ha = class extends Co.Component {
15598
+ let ar = St.mouse, Ha = class extends Co.Component {
15595
15599
  constructor() {
15596
15600
  super(...arguments), et(this, "dragging", !1), et(this, "lastX", NaN), et(this, "lastY", NaN), et(this, "touchIdentifier", null), et(this, "mounted", !1), et(this, "handleDragStart", (t) => {
15597
15601
  if (this.props.onMouseDown(t), !this.props.allowAnyClick && typeof t.button == "number" && t.button !== 0) return !1;
@@ -15652,12 +15656,12 @@ let ar = Et.mouse, Ha = class extends Co.Component {
15652
15656
  if (this.props.onStop(t, a) === !1 || this.mounted === !1) return !1;
15653
15657
  const s = this.findDOMNode();
15654
15658
  s && this.props.enableUserSelectHack && (0, Ve.removeUserSelectStyles)(s.ownerDocument), (0, An.default)("DraggableCore: handleDragStop: %j", a), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, s && ((0, An.default)("DraggableCore: Removing handlers"), (0, Ve.removeEvent)(s.ownerDocument, ar.move, this.handleDrag), (0, Ve.removeEvent)(s.ownerDocument, ar.stop, this.handleDragStop));
15655
- }), et(this, "onMouseDown", (t) => (ar = Et.mouse, this.handleDragStart(t))), et(this, "onMouseUp", (t) => (ar = Et.mouse, this.handleDragStop(t))), et(this, "onTouchStart", (t) => (ar = Et.touch, this.handleDragStart(t))), et(this, "onTouchEnd", (t) => (ar = Et.touch, this.handleDragStop(t)));
15659
+ }), et(this, "onMouseDown", (t) => (ar = St.mouse, this.handleDragStart(t))), et(this, "onMouseUp", (t) => (ar = St.mouse, this.handleDragStop(t))), et(this, "onTouchStart", (t) => (ar = St.touch, this.handleDragStart(t))), et(this, "onTouchEnd", (t) => (ar = St.touch, this.handleDragStop(t)));
15656
15660
  }
15657
15661
  componentDidMount() {
15658
15662
  this.mounted = !0;
15659
15663
  const t = this.findDOMNode();
15660
- t && (0, Ve.addEvent)(t, Et.touch.start, this.onTouchStart, {
15664
+ t && (0, Ve.addEvent)(t, St.touch.start, this.onTouchStart, {
15661
15665
  passive: !1
15662
15666
  });
15663
15667
  }
@@ -15668,7 +15672,7 @@ let ar = Et.mouse, Ha = class extends Co.Component {
15668
15672
  const {
15669
15673
  ownerDocument: r
15670
15674
  } = t;
15671
- (0, Ve.removeEvent)(r, Et.mouse.move, this.handleDrag), (0, Ve.removeEvent)(r, Et.touch.move, this.handleDrag), (0, Ve.removeEvent)(r, Et.mouse.stop, this.handleDragStop), (0, Ve.removeEvent)(r, Et.touch.stop, this.handleDragStop), (0, Ve.removeEvent)(t, Et.touch.start, this.onTouchStart, {
15675
+ (0, Ve.removeEvent)(r, St.mouse.move, this.handleDrag), (0, Ve.removeEvent)(r, St.touch.move, this.handleDrag), (0, Ve.removeEvent)(r, St.mouse.stop, this.handleDragStop), (0, Ve.removeEvent)(r, St.touch.stop, this.handleDragStop), (0, Ve.removeEvent)(t, St.touch.start, this.onTouchStart, {
15672
15676
  passive: !1
15673
15677
  }), this.props.enableUserSelectHack && (0, Ve.removeUserSelectStyles)(r);
15674
15678
  }
@@ -15937,8 +15941,8 @@ et(Ha, "defaultProps", {
15937
15941
  y: A
15938
15942
  } = O;
15939
15943
  O.x += this.state.slackX, O.y += this.state.slackY;
15940
- const [j, L] = (0, o.getBoundPosition)(this, O.x, O.y);
15941
- O.x = j, O.y = L, O.slackX = this.state.slackX + (T - O.x), O.slackY = this.state.slackY + (A - O.y), C.x = O.x, C.y = O.y, C.deltaX = O.x - this.state.x, C.deltaY = O.y - this.state.y;
15944
+ const [j, M] = (0, o.getBoundPosition)(this, O.x, O.y);
15945
+ O.x = j, O.y = M, O.slackX = this.state.slackX + (T - O.x), O.slackY = this.state.slackY + (A - O.y), C.x = O.x, C.y = O.y, C.deltaX = O.x - this.state.x, C.deltaY = O.y - this.state.y;
15942
15946
  }
15943
15947
  if (this.props.onDrag(S, C) === !1) return !1;
15944
15948
  this.setState(O);
@@ -16003,8 +16007,8 @@ et(Ha, "defaultProps", {
16003
16007
  defaultClassNameDragged: T,
16004
16008
  position: A,
16005
16009
  positionOffset: j,
16006
- scale: L,
16007
- ...H
16010
+ scale: M,
16011
+ ...U
16008
16012
  } = this.props;
16009
16013
  let Z = {}, fe = null;
16010
16014
  const me = !!!A || this.state.dragging, be = A || C, Ye = {
@@ -16018,7 +16022,7 @@ et(Ha, "defaultProps", {
16018
16022
  [R]: this.state.dragging,
16019
16023
  [T]: this.state.dragged
16020
16024
  });
16021
- return /* @__PURE__ */ t.createElement(l.default, m({}, H, {
16025
+ return /* @__PURE__ */ t.createElement(l.default, m({}, U, {
16022
16026
  onStart: this.onDragStart,
16023
16027
  onDrag: this.onDrag,
16024
16028
  onStop: this.onDragStop
@@ -18404,7 +18408,6 @@ const dh = /* @__PURE__ */ Ot(dc), $x = dc.WidthProvider(dh), Tx = yr.div`
18404
18408
  justify-content: center;
18405
18409
  align-items: center;
18406
18410
 
18407
- background-color: gray;
18408
18411
  }
18409
18412
 
18410
18413
  .grid-item {
@@ -18412,8 +18415,6 @@ const dh = /* @__PURE__ */ Ot(dc), $x = dc.WidthProvider(dh), Tx = yr.div`
18412
18415
  height: 100%;
18413
18416
  position: relative;
18414
18417
  overflow: hidden;
18415
-
18416
- background-color: gray;
18417
18418
  }
18418
18419
 
18419
18420
  .selected {
@@ -18463,7 +18464,7 @@ const dh = /* @__PURE__ */ Ot(dc), $x = dc.WidthProvider(dh), Tx = yr.div`
18463
18464
  overflow: auto;
18464
18465
  }
18465
18466
  `, oE = () => {
18466
- const [e, t] = St([]), [r, n] = St([]), [i, a] = St(!1), { projectMetadata: o } = Ed(), s = async () => {
18467
+ const [e, t] = ht([]), [r, n] = ht([]), [i, a] = ht(!1), { projectMetadata: o } = Ed(), s = async () => {
18467
18468
  a(!0), await Ob(o.projectName, o.projectURL), a(!1), await Cb(o.projectName, o.projectURL), await Eb(o.projectName);
18468
18469
  const l = await Z_(
18469
18470
  o.projectName
@@ -18605,8 +18606,6 @@ const lE = (e) => /* @__PURE__ */ ge.jsx(ge.Fragment, { children: /* @__PURE__ *
18605
18606
 
18606
18607
  justify-content: center;
18607
18608
  align-items: center;
18608
-
18609
- background-color: gray;
18610
18609
  }
18611
18610
 
18612
18611
  .grid-item {
@@ -18614,8 +18613,6 @@ const lE = (e) => /* @__PURE__ */ ge.jsx(ge.Fragment, { children: /* @__PURE__ *
18614
18613
  height: 100%;
18615
18614
  position: relative;
18616
18615
  overflow: hidden;
18617
-
18618
- background-color: gray;
18619
18616
  }
18620
18617
 
18621
18618
  .selected {