@wp-playground/storage 3.0.30 → 3.0.32

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.
package/index.js CHANGED
@@ -1,22 +1,22 @@
1
- import { Semaphore as ar, normalizePath as ce, joinPaths as Qr } from "@php-wasm/util";
2
- import { Octokit as tn } from "octokit";
3
- import en from "crc-32";
4
- import fe from "pako";
1
+ import { Semaphore as cr, normalizePath as fe, joinPaths as en } from "@php-wasm/util";
2
+ import { Octokit as rn } from "octokit";
3
+ import nn from "crc-32";
4
+ import ue from "pako";
5
5
  import { StreamedFile as K } from "@php-wasm/stream-compression";
6
- import { ZipReader as _e, BlobReader as $e, BlobWriter as rn } from "@zip.js/zip.js";
7
- function ua(n) {
8
- return new tn({
6
+ import { ZipReader as $e, BlobReader as Ue, BlobWriter as on } from "@zip.js/zip.js";
7
+ function ha(n) {
8
+ return new rn({
9
9
  auth: n
10
10
  });
11
11
  }
12
- function la(n, t = "") {
12
+ function pa(n, t = "") {
13
13
  t.length && !t.endsWith("/") && (t += "/");
14
14
  const e = {};
15
15
  for (const r of n)
16
16
  r.path.startsWith(t) && (e[r.path.substring(t.length)] = r.content);
17
17
  return e;
18
18
  }
19
- async function nn(n, t, e, r, o, c = {}) {
19
+ async function an(n, t, e, r, o, c = {}) {
20
20
  c.progress || (c.progress = {
21
21
  foundFiles: 0,
22
22
  downloadedFiles: 0
@@ -33,9 +33,9 @@ async function nn(n, t, e, r, o, c = {}) {
33
33
  );
34
34
  for (const b of y)
35
35
  b.type === "file" ? (++c.progress.foundFiles, f == null || f(c.progress), s.push(
36
- an(n, t, e, r, b).then((v) => (++c.progress.downloadedFiles, f == null || f(c.progress), v))
36
+ cn(n, t, e, r, b).then((v) => (++c.progress.downloadedFiles, f == null || f(c.progress), v))
37
37
  )) : b.type === "dir" && h.push(
38
- nn(
38
+ an(
39
39
  n,
40
40
  t,
41
41
  e,
@@ -49,9 +49,9 @@ async function nn(n, t, e, r, o, c = {}) {
49
49
  );
50
50
  return [...d, ...w];
51
51
  }
52
- const on = new ar({ concurrency: 15 });
53
- async function an(n, t, e, r, o) {
54
- const c = await on.acquire();
52
+ const sn = new cr({ concurrency: 15 });
53
+ async function cn(n, t, e, r, o) {
54
+ const c = await sn.acquire();
55
55
  try {
56
56
  const { data: f } = await n.rest.repos.getContent({
57
57
  owner: t,
@@ -64,19 +64,19 @@ async function an(n, t, e, r, o) {
64
64
  return {
65
65
  name: o.name,
66
66
  path: o.path,
67
- content: sn(f.content)
67
+ content: fn(f.content)
68
68
  };
69
69
  } finally {
70
70
  c();
71
71
  }
72
72
  }
73
- function sn(n) {
73
+ function fn(n) {
74
74
  const t = window.atob(n), e = t.length, r = new Uint8Array(e);
75
75
  for (let o = 0; o < e; o++)
76
76
  r[o] = t.charCodeAt(o);
77
77
  return r;
78
78
  }
79
- async function ha(n, t, e, r, o) {
79
+ async function da(n, t, e, r, o) {
80
80
  var d;
81
81
  const { data: c } = await n.rest.pulls.get({
82
82
  owner: t,
@@ -99,7 +99,7 @@ async function ha(n, t, e, r, o) {
99
99
  archive_format: "zip"
100
100
  })).data;
101
101
  }
102
- async function pa(n, t, e) {
102
+ async function ya(n, t, e) {
103
103
  var c;
104
104
  const { data: r, headers: o } = await n.request(
105
105
  "GET /repos/{owner}/{repo}",
@@ -110,7 +110,7 @@ async function pa(n, t, e) {
110
110
  );
111
111
  return !(!o["x-oauth-scopes"] || !((c = r.permissions) != null && c.push));
112
112
  }
113
- async function da(n, t, e, r, o) {
113
+ async function wa(n, t, e, r, o) {
114
114
  await n.request("GET /repos/{owner}/{repo}/branches/{branch}", {
115
115
  owner: t,
116
116
  repo: e,
@@ -130,7 +130,7 @@ async function da(n, t, e, r, o) {
130
130
  ref: `refs/heads/${r}`
131
131
  });
132
132
  }
133
- async function ya(n, t, e) {
133
+ async function ga(n, t, e) {
134
134
  const r = await n.request("GET /user");
135
135
  return (await n.request("GET /repos/{owner}/{repo}/forks", {
136
136
  owner: t,
@@ -142,7 +142,7 @@ async function ya(n, t, e) {
142
142
  repo: e
143
143
  }), r.data.login;
144
144
  }
145
- async function wa(n, t, e, r, o, c) {
145
+ async function ma(n, t, e, r, o, c) {
146
146
  const {
147
147
  data: { sha: f }
148
148
  } = await n.request("POST /repos/{owner}/{repo}/git/commits", {
@@ -154,8 +154,8 @@ async function wa(n, t, e, r, o, c) {
154
154
  });
155
155
  return f;
156
156
  }
157
- async function ga(n, t, e, r, o) {
158
- const c = await cn(
157
+ async function ba(n, t, e, r, o) {
158
+ const c = await un(
159
159
  n,
160
160
  t,
161
161
  e,
@@ -174,21 +174,21 @@ async function ga(n, t, e, r, o) {
174
174
  });
175
175
  return f;
176
176
  }
177
- async function cn(n, t, e, r, o) {
177
+ async function un(n, t, e, r, o) {
178
178
  const c = [];
179
179
  for (const [f, s] of o.create)
180
- c.push(Ue(n, t, e, f, s));
180
+ c.push(Pe(n, t, e, f, s));
181
181
  for (const [f, s] of o.update)
182
- c.push(Ue(n, t, e, f, s));
182
+ c.push(Pe(n, t, e, f, s));
183
183
  for (const f of o.delete)
184
- c.push(fn(n, t, e, r, f));
184
+ c.push(ln(n, t, e, r, f));
185
185
  return Promise.all(c).then(
186
186
  (f) => f.filter((s) => !!s)
187
187
  );
188
188
  }
189
- const sr = new ar({ concurrency: 10 });
190
- async function Ue(n, t, e, r, o) {
191
- const c = await sr.acquire();
189
+ const fr = new cr({ concurrency: 10 });
190
+ async function Pe(n, t, e, r, o) {
191
+ const c = await fr.acquire();
192
192
  try {
193
193
  if (ArrayBuffer.isView(o))
194
194
  try {
@@ -207,7 +207,7 @@ async function Ue(n, t, e, r, o) {
207
207
  owner: t,
208
208
  repo: e,
209
209
  encoding: "base64",
210
- content: un(o)
210
+ content: hn(o)
211
211
  });
212
212
  return {
213
213
  path: r,
@@ -225,8 +225,8 @@ async function Ue(n, t, e, r, o) {
225
225
  c();
226
226
  }
227
227
  }
228
- async function fn(n, t, e, r, o) {
229
- const c = await sr.acquire();
228
+ async function ln(n, t, e, r, o) {
229
+ const c = await fr.acquire();
230
230
  try {
231
231
  return await n.request("HEAD /repos/{owner}/{repo}/contents/:path", {
232
232
  owner: t,
@@ -244,14 +244,14 @@ async function fn(n, t, e, r, o) {
244
244
  c();
245
245
  }
246
246
  }
247
- function un(n) {
247
+ function hn(n) {
248
248
  const t = [], e = n.byteLength;
249
249
  for (let r = 0; r < e; r++)
250
250
  t.push(String.fromCharCode(n[r]));
251
251
  return window.btoa(t.join(""));
252
252
  }
253
- async function* ma(n, t, { exceptPaths: e = [] } = {}) {
254
- if (t = ce(t), !await n.isDir(t)) {
253
+ async function* va(n, t, { exceptPaths: e = [] } = {}) {
254
+ if (t = fe(t), !await n.isDir(t)) {
255
255
  await n.fileExists(t) && (yield {
256
256
  path: t,
257
257
  read: async () => await n.readFileAsBuffer(t)
@@ -265,7 +265,7 @@ async function* ma(n, t, { exceptPaths: e = [] } = {}) {
265
265
  return;
266
266
  const c = await n.listFiles(o);
267
267
  for (const f of c) {
268
- const s = Qr(o, f);
268
+ const s = en(o, f);
269
269
  e.includes(s.substring(t.length + 1)) || (await n.isDir(s) ? r.push(s) : yield {
270
270
  path: s,
271
271
  read: async () => await n.readFileAsBuffer(s)
@@ -273,7 +273,7 @@ async function* ma(n, t, { exceptPaths: e = [] } = {}) {
273
273
  }
274
274
  }
275
275
  }
276
- async function ba(n, t) {
276
+ async function Ea(n, t) {
277
277
  const e = {
278
278
  create: /* @__PURE__ */ new Map(),
279
279
  update: /* @__PURE__ */ new Map(),
@@ -282,26 +282,26 @@ async function ba(n, t) {
282
282
  for await (const o of t) {
283
283
  r.add(o.path);
284
284
  const c = n.get(o.path), f = await o.read();
285
- c ? ln(c, f) || e.update.set(o.path, f) : e.create.set(o.path, f);
285
+ c ? pn(c, f) || e.update.set(o.path, f) : e.create.set(o.path, f);
286
286
  }
287
287
  for (const o of n.keys())
288
288
  r.has(o) || e.delete.add(o);
289
289
  return e;
290
290
  }
291
- function ln(n, t) {
291
+ function pn(n, t) {
292
292
  return n.length === t.length && n.every((e, r) => e === t[r]);
293
293
  }
294
- async function hn(n) {
295
- return n.type === "local-fs" ? n.handle : pn(n.path);
294
+ async function dn(n) {
295
+ return n.type === "local-fs" ? n.handle : yn(n.path);
296
296
  }
297
- async function pn(n) {
297
+ async function yn(n) {
298
298
  const t = n.split("/").filter((r) => r.length > 0);
299
299
  let e = await navigator.storage.getDirectory();
300
300
  for (const r of t)
301
301
  e = await e.getDirectoryHandle(r, { create: !0 });
302
302
  return e;
303
303
  }
304
- async function va(n) {
304
+ async function xa(n) {
305
305
  const e = await (await navigator.storage.getDirectory()).resolve(n);
306
306
  if (e === null)
307
307
  throw new DOMException(
@@ -310,14 +310,14 @@ async function va(n) {
310
310
  );
311
311
  return "/" + e.join("/");
312
312
  }
313
- async function Ea(n) {
314
- const t = await hn(n);
313
+ async function Aa(n) {
314
+ const t = await dn(n);
315
315
  for await (const e of t.keys())
316
316
  await t.removeEntry(e, {
317
317
  recursive: !0
318
318
  });
319
319
  }
320
- function dn(n) {
320
+ function wn(n) {
321
321
  let t = [n];
322
322
  return {
323
323
  next() {
@@ -331,14 +331,14 @@ function dn(n) {
331
331
  }
332
332
  };
333
333
  }
334
- function cr(n) {
335
- return n[Symbol.asyncIterator] ? n[Symbol.asyncIterator]() : n[Symbol.iterator] ? n[Symbol.iterator]() : n.next ? n : dn(n);
334
+ function ur(n) {
335
+ return n[Symbol.asyncIterator] ? n[Symbol.asyncIterator]() : n[Symbol.iterator] ? n[Symbol.iterator]() : n.next ? n : wn(n);
336
336
  }
337
- class fr {
337
+ class lr {
338
338
  constructor(t) {
339
339
  if (typeof Buffer > "u")
340
340
  throw new Error("Missing Buffer dependency");
341
- this.stream = cr(t), this.buffer = null, this.cursor = 0, this.undoCursor = 0, this.started = !1, this._ended = !1, this._discardedBytes = 0;
341
+ this.stream = ur(t), this.buffer = null, this.cursor = 0, this.undoCursor = 0, this.started = !1, this._ended = !1, this._discardedBytes = 0;
342
342
  }
343
343
  eof() {
344
344
  return this._ended && this.cursor === this.buffer.length;
@@ -378,7 +378,7 @@ class fr {
378
378
  async _accumulate(t) {
379
379
  if (this._ended) return;
380
380
  const e = [this.buffer];
381
- for (; this.cursor + t > yn(e); ) {
381
+ for (; this.cursor + t > gn(e); ) {
382
382
  const r = await this._next();
383
383
  if (this._ended) break;
384
384
  e.push(r);
@@ -392,10 +392,10 @@ class fr {
392
392
  this.buffer = await this._next();
393
393
  }
394
394
  }
395
- function yn(n) {
395
+ function gn(n) {
396
396
  return n.reduce((t, e) => t + e.length, 0);
397
397
  }
398
- function wn(n, t) {
398
+ function mn(n, t) {
399
399
  const e = t.toString(16);
400
400
  return "0".repeat(n - e.length) + e;
401
401
  }
@@ -408,11 +408,11 @@ class D {
408
408
  }
409
409
  static encode(t) {
410
410
  typeof t == "string" && (t = Buffer.from(t));
411
- const e = t.length + 4, r = wn(4, e);
411
+ const e = t.length + 4, r = mn(4, e);
412
412
  return Buffer.concat([Buffer.from(r, "utf8"), t]);
413
413
  }
414
414
  static streamReader(t) {
415
- const e = new fr(t);
415
+ const e = new lr(t);
416
416
  return async function() {
417
417
  try {
418
418
  let o = await e.read(4);
@@ -467,19 +467,19 @@ class ut extends it {
467
467
  }
468
468
  }
469
469
  ut.code = "UnsafeFilepathError";
470
- function ur(n, t) {
470
+ function hr(n, t) {
471
471
  return -(n < t) || +(n > t);
472
472
  }
473
- function lr(n, t) {
474
- return ur(n.path, t.path);
473
+ function pr(n, t) {
474
+ return hr(n.path, t.path);
475
475
  }
476
- function gn(n, t) {
477
- return ur(Pe(n), Pe(t));
476
+ function bn(n, t) {
477
+ return hr(ke(n), ke(t));
478
478
  }
479
- function Pe(n) {
479
+ function ke(n) {
480
480
  return n.mode === "040000" ? n.path + "/" : n.path;
481
481
  }
482
- function hr(n) {
482
+ function dr(n) {
483
483
  switch (n) {
484
484
  case "040000":
485
485
  return "tree";
@@ -494,7 +494,7 @@ function hr(n) {
494
494
  }
495
495
  throw new F(`Unexpected GitTree entry mode: ${n}`);
496
496
  }
497
- function mn(n) {
497
+ function vn(n) {
498
498
  const t = [];
499
499
  let e = 0;
500
500
  for (; e < n.length; ) {
@@ -510,7 +510,7 @@ function mn(n) {
510
510
  );
511
511
  let c = n.slice(e, r).toString("utf8");
512
512
  c === "40000" && (c = "040000");
513
- const f = hr(c), s = n.slice(r + 1, o).toString("utf8");
513
+ const f = dr(c), s = n.slice(r + 1, o).toString("utf8");
514
514
  if (s.includes("\\") || s.includes("/"))
515
515
  throw new ut(s);
516
516
  const h = n.slice(o + 1, o + 21).toString("hex");
@@ -518,7 +518,7 @@ function mn(n) {
518
518
  }
519
519
  return t;
520
520
  }
521
- function bn(n) {
521
+ function En(n) {
522
522
  if (typeof n == "number" && (n = n.toString(8)), n.match(/^0?4.*/)) return "040000";
523
523
  if (n.match(/^1006.*/)) return "100644";
524
524
  if (n.match(/^1007.*/)) return "100755";
@@ -526,21 +526,21 @@ function bn(n) {
526
526
  if (n.match(/^160.*/)) return "160000";
527
527
  throw new F(`Could not understand file mode: ${n}`);
528
528
  }
529
- function vn(n) {
530
- return !n.oid && n.sha && (n.oid = n.sha), n.mode = bn(n.mode), n.type || (n.type = hr(n.mode)), n;
529
+ function xn(n) {
530
+ return !n.oid && n.sha && (n.oid = n.sha), n.mode = En(n.mode), n.type || (n.type = dr(n.mode)), n;
531
531
  }
532
- class ue {
532
+ class le {
533
533
  constructor(t) {
534
534
  if (Buffer.isBuffer(t))
535
- this._entries = mn(t);
535
+ this._entries = vn(t);
536
536
  else if (Array.isArray(t))
537
- this._entries = t.map(vn);
537
+ this._entries = t.map(xn);
538
538
  else
539
539
  throw new F("invalid type passed to GitTree constructor");
540
- this._entries.sort(lr);
540
+ this._entries.sort(pr);
541
541
  }
542
542
  static from(t) {
543
- return new ue(t);
543
+ return new le(t);
544
544
  }
545
545
  render() {
546
546
  return this._entries.map((t) => `${t.mode} ${t.type} ${t.oid} ${t.path}`).join(`
@@ -548,7 +548,7 @@ class ue {
548
548
  }
549
549
  toObject() {
550
550
  const t = [...this._entries];
551
- return t.sort(gn), Buffer.concat(
551
+ return t.sort(bn), Buffer.concat(
552
552
  t.map((e) => {
553
553
  const r = Buffer.from(e.mode.replace(/^0/, "")), o = Buffer.from(" "), c = Buffer.from(e.path, "utf8"), f = Buffer.from([0]), s = Buffer.from(e.oid, "hex");
554
554
  return Buffer.concat([r, o, c, f, s]);
@@ -566,21 +566,21 @@ class ue {
566
566
  yield t;
567
567
  }
568
568
  }
569
- function re({ name: n, email: t, timestamp: e, timezoneOffset: r }) {
570
- return r = En(r), `${n} <${t}> ${e} ${r}`;
569
+ function ne({ name: n, email: t, timestamp: e, timezoneOffset: r }) {
570
+ return r = An(r), `${n} <${t}> ${e} ${r}`;
571
571
  }
572
- function En(n) {
573
- const t = xn(An(n));
572
+ function An(n) {
573
+ const t = Bn(Sn(n));
574
574
  n = Math.abs(n);
575
575
  const e = Math.floor(n / 60);
576
576
  n -= e * 60;
577
577
  let r = String(e), o = String(n);
578
578
  return r.length < 2 && (r = "0" + r), o.length < 2 && (o = "0" + o), (t === -1 ? "-" : "+") + r + o;
579
579
  }
580
- function xn(n) {
580
+ function Bn(n) {
581
581
  return Math.sign(n) || (Object.is(n, -0) ? -1 : 1);
582
582
  }
583
- function An(n) {
583
+ function Sn(n) {
584
584
  return n === 0 ? n : -n;
585
585
  }
586
586
  function V(n) {
@@ -595,14 +595,14 @@ function Et(n) {
595
595
  name: t,
596
596
  email: e,
597
597
  timestamp: Number(r),
598
- timezoneOffset: Bn(o)
598
+ timezoneOffset: Fn(o)
599
599
  };
600
600
  }
601
- function Bn(n) {
601
+ function Fn(n) {
602
602
  let [, t, e, r] = n.match(/(\+|-)(\d\d)(\d\d)/);
603
- return r = (t === "+" ? 1 : -1) * (Number(e) * 60 + Number(r)), Sn(r);
603
+ return r = (t === "+" ? 1 : -1) * (Number(e) * 60 + Number(r)), In(r);
604
604
  }
605
- function Sn(n) {
605
+ function In(n) {
606
606
  return n === 0 ? n : -n;
607
607
  }
608
608
  class ot {
@@ -625,7 +625,7 @@ class ot {
625
625
  return `object ${t.object}
626
626
  type ${t.type}
627
627
  tag ${t.tag}
628
- tagger ${re(t.tagger)}
628
+ tagger ${ne(t.tagger)}
629
629
 
630
630
  ${t.message}
631
631
  ${t.gpgsig ? t.gpgsig : ""}`;
@@ -699,7 +699,7 @@ function Pt(n) {
699
699
  `) + `
700
700
  `;
701
701
  }
702
- function Fn(n) {
702
+ function _n(n) {
703
703
  return n.split(`
704
704
  `).map((t) => t.replace(/^ /, "")).join(`
705
705
  `);
@@ -777,10 +777,10 @@ gpgsig` + Pt(e) + `
777
777
  `;
778
778
  }
779
779
  const r = t.author;
780
- e += `author ${re(r)}
780
+ e += `author ${ne(r)}
781
781
  `;
782
782
  const o = t.committer || t.author;
783
- return e += `committer ${re(o)}
783
+ return e += `committer ${ne(o)}
784
784
  `, t.gpgsig && (e += "gpgsig" + Pt(t.gpgsig)), e;
785
785
  }
786
786
  static render(t) {
@@ -807,7 +807,7 @@ gpgsig`)), r = t.slice(
807
807
  this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),
808
808
  this._commit.indexOf("-----END PGP SIGNATURE-----") + 27
809
809
  );
810
- return Fn(t);
810
+ return _n(t);
811
811
  }
812
812
  static async sign(t, e, r) {
813
813
  const o = t.withoutSignature(), c = M.justMessage(t._commit);
@@ -819,7 +819,7 @@ gpgsig` + Pt(f) + `
819
819
  return M.from(h);
820
820
  }
821
821
  }
822
- class In {
822
+ class $n {
823
823
  static wrap({ type: t, object: e }) {
824
824
  return Buffer.concat([
825
825
  Buffer.from(`${t} ${e.byteLength.toString()}\0`),
@@ -892,22 +892,22 @@ class z {
892
892
  return this._start += 4, e;
893
893
  }
894
894
  }
895
- function _n(n, t) {
896
- const e = new z(n), r = ke(e);
895
+ function Un(n, t) {
896
+ const e = new z(n), r = Te(e);
897
897
  if (r !== t.byteLength)
898
898
  throw new F(
899
899
  `applyDelta expected source buffer to be ${r} bytes but the provided buffer was ${t.length} bytes`
900
900
  );
901
- const o = ke(e);
901
+ const o = Te(e);
902
902
  let c;
903
- const f = Oe(e, t);
903
+ const f = Re(e, t);
904
904
  if (f.byteLength === o)
905
905
  c = f;
906
906
  else {
907
907
  c = Buffer.alloc(o);
908
908
  const s = new z(c);
909
909
  for (s.copy(f); !e.eof(); )
910
- s.copy(Oe(e, t));
910
+ s.copy(Re(e, t));
911
911
  const h = s.tell();
912
912
  if (o !== h)
913
913
  throw new F(
@@ -916,30 +916,30 @@ function _n(n, t) {
916
916
  }
917
917
  return c;
918
918
  }
919
- function ke(n) {
919
+ function Te(n) {
920
920
  let t = 0, e = 0, r = null;
921
921
  do
922
922
  r = n.readUInt8(), t |= (r & 127) << e, e += 7;
923
923
  while (r & 128);
924
924
  return t;
925
925
  }
926
- function Te(n, t, e) {
926
+ function Oe(n, t, e) {
927
927
  let r = 0, o = 0;
928
928
  for (; e--; )
929
929
  t & 1 && (r |= n.readUInt8() << o), t >>= 1, o += 8;
930
930
  return r;
931
931
  }
932
- function Oe(n, t) {
932
+ function Re(n, t) {
933
933
  const e = n.readUInt8(), r = 128, o = 15, c = 112;
934
934
  if (e & r) {
935
- const f = Te(n, e & o, 4);
936
- let s = Te(n, (e & c) >> 4, 3);
935
+ const f = Oe(n, e & o, 4);
936
+ let s = Oe(n, (e & c) >> 4, 3);
937
937
  return s === 0 && (s = 65536), t.slice(f, f + s);
938
938
  } else
939
939
  return n.slice(e);
940
940
  }
941
- async function $n(n, t) {
942
- const e = new fr(n);
941
+ async function Pn(n, t) {
942
+ const e = new lr(n);
943
943
  let r = await e.read(4);
944
944
  if (r = r.toString("utf8"), r !== "PACK")
945
945
  throw new F(`Invalid PACK header '${r}'`);
@@ -949,7 +949,7 @@ async function $n(n, t) {
949
949
  let c = await e.read(4);
950
950
  if (c = c.readUInt32BE(0), !(c < 1))
951
951
  for (; !e.eof() && c--; ) {
952
- const f = e.tell(), { type: s, length: h, ofs: y, reference: d } = await Un(e), w = new fe.Inflate();
952
+ const f = e.tell(), { type: s, length: h, ofs: y, reference: d } = await kn(e), w = new ue.Inflate();
953
953
  for (; !w.result; ) {
954
954
  const b = await e.chunk();
955
955
  if (!b) break;
@@ -975,7 +975,7 @@ async function $n(n, t) {
975
975
  }
976
976
  }
977
977
  }
978
- async function Un(n) {
978
+ async function kn(n) {
979
979
  let t = await n.byte();
980
980
  const e = t >> 4 & 7;
981
981
  let r = t & 15;
@@ -997,15 +997,15 @@ async function Un(n) {
997
997
  }
998
998
  return e === 7 && (c = await n.read(20)), { type: e, length: r, ofs: o, reference: c };
999
999
  }
1000
- async function Pn(n) {
1001
- return fe.inflate(n);
1000
+ async function Tn(n) {
1001
+ return ue.inflate(n);
1002
1002
  }
1003
- var pr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1004
- function kn(n) {
1003
+ var yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1004
+ function On(n) {
1005
1005
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
1006
1006
  }
1007
- var ne = { exports: {} };
1008
- typeof Object.create == "function" ? ne.exports = function(t, e) {
1007
+ var ie = { exports: {} };
1008
+ typeof Object.create == "function" ? ie.exports = function(t, e) {
1009
1009
  e && (t.super_ = e, t.prototype = Object.create(e.prototype, {
1010
1010
  constructor: {
1011
1011
  value: t,
@@ -1014,7 +1014,7 @@ typeof Object.create == "function" ? ne.exports = function(t, e) {
1014
1014
  configurable: !0
1015
1015
  }
1016
1016
  }));
1017
- } : ne.exports = function(t, e) {
1017
+ } : ie.exports = function(t, e) {
1018
1018
  if (e) {
1019
1019
  t.super_ = e;
1020
1020
  var r = function() {
@@ -1022,16 +1022,16 @@ typeof Object.create == "function" ? ne.exports = function(t, e) {
1022
1022
  r.prototype = e.prototype, t.prototype = new r(), t.prototype.constructor = t;
1023
1023
  }
1024
1024
  };
1025
- var Tn = ne.exports, ie = { exports: {} }, le = {}, St = {};
1026
- St.byteLength = Dn;
1027
- St.toByteArray = Nn;
1028
- St.fromByteArray = Ln;
1029
- var W = [], L = [], On = typeof Uint8Array < "u" ? Uint8Array : Array, kt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1030
- for (var Z = 0, Rn = kt.length; Z < Rn; ++Z)
1025
+ var Rn = ie.exports, oe = { exports: {} }, he = {}, St = {};
1026
+ St.byteLength = Nn;
1027
+ St.toByteArray = Mn;
1028
+ St.fromByteArray = qn;
1029
+ var W = [], L = [], Dn = typeof Uint8Array < "u" ? Uint8Array : Array, kt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1030
+ for (var Z = 0, jn = kt.length; Z < jn; ++Z)
1031
1031
  W[Z] = kt[Z], L[kt.charCodeAt(Z)] = Z;
1032
1032
  L[45] = 62;
1033
1033
  L[95] = 63;
1034
- function dr(n) {
1034
+ function wr(n) {
1035
1035
  var t = n.length;
1036
1036
  if (t % 4 > 0)
1037
1037
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -1040,39 +1040,39 @@ function dr(n) {
1040
1040
  var r = e === t ? 0 : 4 - e % 4;
1041
1041
  return [e, r];
1042
1042
  }
1043
- function Dn(n) {
1044
- var t = dr(n), e = t[0], r = t[1];
1043
+ function Nn(n) {
1044
+ var t = wr(n), e = t[0], r = t[1];
1045
1045
  return (e + r) * 3 / 4 - r;
1046
1046
  }
1047
- function jn(n, t, e) {
1047
+ function Cn(n, t, e) {
1048
1048
  return (t + e) * 3 / 4 - e;
1049
1049
  }
1050
- function Nn(n) {
1051
- var t, e = dr(n), r = e[0], o = e[1], c = new On(jn(n, r, o)), f = 0, s = o > 0 ? r - 4 : r, h;
1050
+ function Mn(n) {
1051
+ var t, e = wr(n), r = e[0], o = e[1], c = new Dn(Cn(n, r, o)), f = 0, s = o > 0 ? r - 4 : r, h;
1052
1052
  for (h = 0; h < s; h += 4)
1053
1053
  t = L[n.charCodeAt(h)] << 18 | L[n.charCodeAt(h + 1)] << 12 | L[n.charCodeAt(h + 2)] << 6 | L[n.charCodeAt(h + 3)], c[f++] = t >> 16 & 255, c[f++] = t >> 8 & 255, c[f++] = t & 255;
1054
1054
  return o === 2 && (t = L[n.charCodeAt(h)] << 2 | L[n.charCodeAt(h + 1)] >> 4, c[f++] = t & 255), o === 1 && (t = L[n.charCodeAt(h)] << 10 | L[n.charCodeAt(h + 1)] << 4 | L[n.charCodeAt(h + 2)] >> 2, c[f++] = t >> 8 & 255, c[f++] = t & 255), c;
1055
1055
  }
1056
- function Cn(n) {
1056
+ function Ln(n) {
1057
1057
  return W[n >> 18 & 63] + W[n >> 12 & 63] + W[n >> 6 & 63] + W[n & 63];
1058
1058
  }
1059
- function Mn(n, t, e) {
1059
+ function Gn(n, t, e) {
1060
1060
  for (var r, o = [], c = t; c < e; c += 3)
1061
- r = (n[c] << 16 & 16711680) + (n[c + 1] << 8 & 65280) + (n[c + 2] & 255), o.push(Cn(r));
1061
+ r = (n[c] << 16 & 16711680) + (n[c + 1] << 8 & 65280) + (n[c + 2] & 255), o.push(Ln(r));
1062
1062
  return o.join("");
1063
1063
  }
1064
- function Ln(n) {
1064
+ function qn(n) {
1065
1065
  for (var t, e = n.length, r = e % 3, o = [], c = 16383, f = 0, s = e - r; f < s; f += c)
1066
- o.push(Mn(n, f, f + c > s ? s : f + c));
1066
+ o.push(Gn(n, f, f + c > s ? s : f + c));
1067
1067
  return r === 1 ? (t = n[e - 1], o.push(
1068
1068
  W[t >> 2] + W[t << 4 & 63] + "=="
1069
1069
  )) : r === 2 && (t = (n[e - 2] << 8) + n[e - 1], o.push(
1070
1070
  W[t >> 10] + W[t >> 4 & 63] + W[t << 2 & 63] + "="
1071
1071
  )), o.join("");
1072
1072
  }
1073
- var he = {};
1073
+ var pe = {};
1074
1074
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
1075
- he.read = function(n, t, e, r, o) {
1075
+ pe.read = function(n, t, e, r, o) {
1076
1076
  var c, f, s = o * 8 - r - 1, h = (1 << s) - 1, y = h >> 1, d = -7, w = e ? o - 1 : 0, b = e ? -1 : 1, v = n[t + w];
1077
1077
  for (w += b, c = v & (1 << -d) - 1, v >>= -d, d += s; d > 0; c = c * 256 + n[t + w], w += b, d -= 8)
1078
1078
  ;
@@ -1087,7 +1087,7 @@ he.read = function(n, t, e, r, o) {
1087
1087
  }
1088
1088
  return (v ? -1 : 1) * f * Math.pow(2, c - r);
1089
1089
  };
1090
- he.write = function(n, t, e, r, o, c) {
1090
+ pe.write = function(n, t, e, r, o, c) {
1091
1091
  var f, s, h, y = c * 8 - o - 1, d = (1 << y) - 1, w = d >> 1, b = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v = r ? 0 : c - 1, _ = r ? 1 : -1, U = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
1092
1092
  for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, f = d) : (f = Math.floor(Math.log(t) / Math.LN2), t * (h = Math.pow(2, -f)) < 1 && (f--, h *= 2), f + w >= 1 ? t += b / h : t += b * Math.pow(2, 1 - w), t * h >= 2 && (f++, h /= 2), f + w >= d ? (s = 0, f = d) : f + w >= 1 ? (s = (t * h - 1) * Math.pow(2, o), f = f + w) : (s = t * Math.pow(2, w - 1) * Math.pow(2, o), f = 0)); o >= 8; n[e + v] = s & 255, v += _, s /= 256, o -= 8)
1093
1093
  ;
@@ -1102,7 +1102,7 @@ he.write = function(n, t, e, r, o, c) {
1102
1102
  * @license MIT
1103
1103
  */
1104
1104
  (function(n) {
1105
- var t = St, e = he, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
1105
+ var t = St, e = pe, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
1106
1106
  n.Buffer = s, n.SlowBuffer = I, n.INSPECT_MAX_BYTES = 50;
1107
1107
  var o = 2147483647;
1108
1108
  n.kMaxLength = o, s.TYPED_ARRAY_SUPPORT = c(), !s.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
@@ -1330,7 +1330,7 @@ he.write = function(n, t, e, r, o, c) {
1330
1330
  case "hex":
1331
1331
  return a >>> 1;
1332
1332
  case "base64":
1333
- return Se(u).length;
1333
+ return Fe(u).length;
1334
1334
  default:
1335
1335
  if (p)
1336
1336
  return l ? -1 : $t(u).length;
@@ -1345,22 +1345,22 @@ he.write = function(n, t, e, r, o, c) {
1345
1345
  for (u || (u = "utf8"); ; )
1346
1346
  switch (u) {
1347
1347
  case "hex":
1348
- return Wr(this, i, a);
1348
+ return Jr(this, i, a);
1349
1349
  case "utf8":
1350
1350
  case "utf-8":
1351
- return ve(this, i, a);
1351
+ return Ee(this, i, a);
1352
1352
  case "ascii":
1353
- return Hr(this, i, a);
1353
+ return Wr(this, i, a);
1354
1354
  case "latin1":
1355
1355
  case "binary":
1356
- return zr(this, i, a);
1356
+ return Vr(this, i, a);
1357
1357
  case "base64":
1358
- return Gr(this, i, a);
1358
+ return Hr(this, i, a);
1359
1359
  case "ucs2":
1360
1360
  case "ucs-2":
1361
1361
  case "utf16le":
1362
1362
  case "utf-16le":
1363
- return Vr(this, i, a);
1363
+ return Yr(this, i, a);
1364
1364
  default:
1365
1365
  if (l) throw new TypeError("Unknown encoding: " + u);
1366
1366
  u = (u + "").toLowerCase(), l = !0;
@@ -1394,7 +1394,7 @@ he.write = function(n, t, e, r, o, c) {
1394
1394
  return this;
1395
1395
  }, s.prototype.toString = function() {
1396
1396
  var i = this.length;
1397
- return i === 0 ? "" : arguments.length === 0 ? ve(this, 0, i) : P.apply(this, arguments);
1397
+ return i === 0 ? "" : arguments.length === 0 ? Ee(this, 0, i) : P.apply(this, arguments);
1398
1398
  }, s.prototype.toLocaleString = s.prototype.toString, s.prototype.equals = function(i) {
1399
1399
  if (!s.isBuffer(i)) throw new TypeError("Argument must be a Buffer");
1400
1400
  return this === i ? !0 : s.compare(this, i) === 0;
@@ -1422,7 +1422,7 @@ he.write = function(n, t, e, r, o, c) {
1422
1422
  }
1423
1423
  return m < S ? -1 : S < m ? 1 : 0;
1424
1424
  };
1425
- function me(u, i, a, l, p) {
1425
+ function be(u, i, a, l, p) {
1426
1426
  if (u.length === 0) return -1;
1427
1427
  if (typeof a == "string" ? (l = a, a = 0) : a > 2147483647 ? a = 2147483647 : a < -2147483648 && (a = -2147483648), a = +a, Ut(a) && (a = p ? 0 : u.length - 1), a < 0 && (a = u.length + a), a >= u.length) {
1428
1428
  if (p) return -1;
@@ -1431,20 +1431,20 @@ he.write = function(n, t, e, r, o, c) {
1431
1431
  if (p) a = 0;
1432
1432
  else return -1;
1433
1433
  if (typeof i == "string" && (i = s.from(i, l)), s.isBuffer(i))
1434
- return i.length === 0 ? -1 : be(u, i, a, l, p);
1434
+ return i.length === 0 ? -1 : ve(u, i, a, l, p);
1435
1435
  if (typeof i == "number")
1436
- return i = i & 255, typeof Uint8Array.prototype.indexOf == "function" ? p ? Uint8Array.prototype.indexOf.call(u, i, a) : Uint8Array.prototype.lastIndexOf.call(u, i, a) : be(u, [i], a, l, p);
1436
+ return i = i & 255, typeof Uint8Array.prototype.indexOf == "function" ? p ? Uint8Array.prototype.indexOf.call(u, i, a) : Uint8Array.prototype.lastIndexOf.call(u, i, a) : ve(u, [i], a, l, p);
1437
1437
  throw new TypeError("val must be string, number or Buffer");
1438
1438
  }
1439
- function be(u, i, a, l, p) {
1439
+ function ve(u, i, a, l, p) {
1440
1440
  var g = 1, m = u.length, S = i.length;
1441
1441
  if (l !== void 0 && (l = String(l).toLowerCase(), l === "ucs2" || l === "ucs-2" || l === "utf16le" || l === "utf-16le")) {
1442
1442
  if (u.length < 2 || i.length < 2)
1443
1443
  return -1;
1444
1444
  g = 2, m /= 2, S /= 2, a /= 2;
1445
1445
  }
1446
- function $(Fe, Ie) {
1447
- return g === 1 ? Fe[Ie] : Fe.readUInt16BE(Ie * g);
1446
+ function $(Ie, _e) {
1447
+ return g === 1 ? Ie[_e] : Ie.readUInt16BE(_e * g);
1448
1448
  }
1449
1449
  var k;
1450
1450
  if (p) {
@@ -1468,11 +1468,11 @@ he.write = function(n, t, e, r, o, c) {
1468
1468
  s.prototype.includes = function(i, a, l) {
1469
1469
  return this.indexOf(i, a, l) !== -1;
1470
1470
  }, s.prototype.indexOf = function(i, a, l) {
1471
- return me(this, i, a, l, !0);
1471
+ return be(this, i, a, l, !0);
1472
1472
  }, s.prototype.lastIndexOf = function(i, a, l) {
1473
- return me(this, i, a, l, !1);
1473
+ return be(this, i, a, l, !1);
1474
1474
  };
1475
- function jr(u, i, a, l) {
1475
+ function Cr(u, i, a, l) {
1476
1476
  a = Number(a) || 0;
1477
1477
  var p = u.length - a;
1478
1478
  l ? (l = Number(l), l > p && (l = p)) : l = p;
@@ -1485,17 +1485,17 @@ he.write = function(n, t, e, r, o, c) {
1485
1485
  }
1486
1486
  return m;
1487
1487
  }
1488
- function Nr(u, i, a, l) {
1488
+ function Mr(u, i, a, l) {
1489
1489
  return gt($t(i, u.length - a), u, a, l);
1490
1490
  }
1491
- function Cr(u, i, a, l) {
1492
- return gt(Xr(i), u, a, l);
1491
+ function Lr(u, i, a, l) {
1492
+ return gt(Zr(i), u, a, l);
1493
1493
  }
1494
- function Mr(u, i, a, l) {
1495
- return gt(Se(i), u, a, l);
1494
+ function Gr(u, i, a, l) {
1495
+ return gt(Fe(i), u, a, l);
1496
1496
  }
1497
- function Lr(u, i, a, l) {
1498
- return gt(Kr(i, u.length - a), u, a, l);
1497
+ function qr(u, i, a, l) {
1498
+ return gt(Qr(i, u.length - a), u, a, l);
1499
1499
  }
1500
1500
  s.prototype.write = function(i, a, l, p) {
1501
1501
  if (a === void 0)
@@ -1515,21 +1515,21 @@ he.write = function(n, t, e, r, o, c) {
1515
1515
  for (var m = !1; ; )
1516
1516
  switch (p) {
1517
1517
  case "hex":
1518
- return jr(this, i, a, l);
1518
+ return Cr(this, i, a, l);
1519
1519
  case "utf8":
1520
1520
  case "utf-8":
1521
- return Nr(this, i, a, l);
1521
+ return Mr(this, i, a, l);
1522
1522
  case "ascii":
1523
1523
  case "latin1":
1524
1524
  case "binary":
1525
- return Cr(this, i, a, l);
1525
+ return Lr(this, i, a, l);
1526
1526
  case "base64":
1527
- return Mr(this, i, a, l);
1527
+ return Gr(this, i, a, l);
1528
1528
  case "ucs2":
1529
1529
  case "ucs-2":
1530
1530
  case "utf16le":
1531
1531
  case "utf-16le":
1532
- return Lr(this, i, a, l);
1532
+ return qr(this, i, a, l);
1533
1533
  default:
1534
1534
  if (m) throw new TypeError("Unknown encoding: " + p);
1535
1535
  p = ("" + p).toLowerCase(), m = !0;
@@ -1540,10 +1540,10 @@ he.write = function(n, t, e, r, o, c) {
1540
1540
  data: Array.prototype.slice.call(this._arr || this, 0)
1541
1541
  };
1542
1542
  };
1543
- function Gr(u, i, a) {
1543
+ function Hr(u, i, a) {
1544
1544
  return i === 0 && a === u.length ? t.fromByteArray(u) : t.fromByteArray(u.slice(i, a));
1545
1545
  }
1546
- function ve(u, i, a) {
1546
+ function Ee(u, i, a) {
1547
1547
  a = Math.min(u.length, a);
1548
1548
  for (var l = [], p = i; p < a; ) {
1549
1549
  var g = u[p], m = null, S = g > 239 ? 4 : g > 223 ? 3 : g > 191 ? 2 : 1;
@@ -1565,42 +1565,42 @@ he.write = function(n, t, e, r, o, c) {
1565
1565
  }
1566
1566
  m === null ? (m = 65533, S = 1) : m > 65535 && (m -= 65536, l.push(m >>> 10 & 1023 | 55296), m = 56320 | m & 1023), l.push(m), p += S;
1567
1567
  }
1568
- return qr(l);
1568
+ return zr(l);
1569
1569
  }
1570
- var Ee = 4096;
1571
- function qr(u) {
1570
+ var xe = 4096;
1571
+ function zr(u) {
1572
1572
  var i = u.length;
1573
- if (i <= Ee)
1573
+ if (i <= xe)
1574
1574
  return String.fromCharCode.apply(String, u);
1575
1575
  for (var a = "", l = 0; l < i; )
1576
1576
  a += String.fromCharCode.apply(
1577
1577
  String,
1578
- u.slice(l, l += Ee)
1578
+ u.slice(l, l += xe)
1579
1579
  );
1580
1580
  return a;
1581
1581
  }
1582
- function Hr(u, i, a) {
1582
+ function Wr(u, i, a) {
1583
1583
  var l = "";
1584
1584
  a = Math.min(u.length, a);
1585
1585
  for (var p = i; p < a; ++p)
1586
1586
  l += String.fromCharCode(u[p] & 127);
1587
1587
  return l;
1588
1588
  }
1589
- function zr(u, i, a) {
1589
+ function Vr(u, i, a) {
1590
1590
  var l = "";
1591
1591
  a = Math.min(u.length, a);
1592
1592
  for (var p = i; p < a; ++p)
1593
1593
  l += String.fromCharCode(u[p]);
1594
1594
  return l;
1595
1595
  }
1596
- function Wr(u, i, a) {
1596
+ function Jr(u, i, a) {
1597
1597
  var l = u.length;
1598
1598
  (!i || i < 0) && (i = 0), (!a || a < 0 || a > l) && (a = l);
1599
1599
  for (var p = "", g = i; g < a; ++g)
1600
- p += Zr[u[g]];
1600
+ p += tn[u[g]];
1601
1601
  return p;
1602
1602
  }
1603
- function Vr(u, i, a) {
1603
+ function Yr(u, i, a) {
1604
1604
  for (var l = u.slice(i, a), p = "", g = 0; g < l.length - 1; g += 2)
1605
1605
  p += String.fromCharCode(l[g] + l[g + 1] * 256);
1606
1606
  return p;
@@ -1730,25 +1730,25 @@ he.write = function(n, t, e, r, o, c) {
1730
1730
  }, s.prototype.writeInt32BE = function(i, a, l) {
1731
1731
  return i = +i, a = a >>> 0, l || C(this, i, a, 4, 2147483647, -2147483648), i < 0 && (i = 4294967295 + i + 1), this[a] = i >>> 24, this[a + 1] = i >>> 16, this[a + 2] = i >>> 8, this[a + 3] = i & 255, a + 4;
1732
1732
  };
1733
- function xe(u, i, a, l, p, g) {
1733
+ function Ae(u, i, a, l, p, g) {
1734
1734
  if (a + l > u.length) throw new RangeError("Index out of range");
1735
1735
  if (a < 0) throw new RangeError("Index out of range");
1736
1736
  }
1737
- function Ae(u, i, a, l, p) {
1738
- return i = +i, a = a >>> 0, p || xe(u, i, a, 4), e.write(u, i, a, l, 23, 4), a + 4;
1737
+ function Be(u, i, a, l, p) {
1738
+ return i = +i, a = a >>> 0, p || Ae(u, i, a, 4), e.write(u, i, a, l, 23, 4), a + 4;
1739
1739
  }
1740
1740
  s.prototype.writeFloatLE = function(i, a, l) {
1741
- return Ae(this, i, a, !0, l);
1741
+ return Be(this, i, a, !0, l);
1742
1742
  }, s.prototype.writeFloatBE = function(i, a, l) {
1743
- return Ae(this, i, a, !1, l);
1743
+ return Be(this, i, a, !1, l);
1744
1744
  };
1745
- function Be(u, i, a, l, p) {
1746
- return i = +i, a = a >>> 0, p || xe(u, i, a, 8), e.write(u, i, a, l, 52, 8), a + 8;
1745
+ function Se(u, i, a, l, p) {
1746
+ return i = +i, a = a >>> 0, p || Ae(u, i, a, 8), e.write(u, i, a, l, 52, 8), a + 8;
1747
1747
  }
1748
1748
  s.prototype.writeDoubleLE = function(i, a, l) {
1749
- return Be(this, i, a, !0, l);
1749
+ return Se(this, i, a, !0, l);
1750
1750
  }, s.prototype.writeDoubleBE = function(i, a, l) {
1751
- return Be(this, i, a, !1, l);
1751
+ return Se(this, i, a, !1, l);
1752
1752
  }, s.prototype.copy = function(i, a, l, p) {
1753
1753
  if (!s.isBuffer(i)) throw new TypeError("argument should be a Buffer");
1754
1754
  if (l || (l = 0), !p && p !== 0 && (p = this.length), a >= i.length && (a = i.length), a || (a = 0), p > 0 && p < l && (p = l), p === l || i.length === 0 || this.length === 0) return 0;
@@ -1792,9 +1792,9 @@ he.write = function(n, t, e, r, o, c) {
1792
1792
  }
1793
1793
  return this;
1794
1794
  };
1795
- var Jr = /[^+/0-9A-Za-z-_]/g;
1796
- function Yr(u) {
1797
- if (u = u.split("=")[0], u = u.trim().replace(Jr, ""), u.length < 2) return "";
1795
+ var Xr = /[^+/0-9A-Za-z-_]/g;
1796
+ function Kr(u) {
1797
+ if (u = u.split("=")[0], u = u.trim().replace(Xr, ""), u.length < 2) return "";
1798
1798
  for (; u.length % 4 !== 0; )
1799
1799
  u = u + "=";
1800
1800
  return u;
@@ -1849,18 +1849,18 @@ he.write = function(n, t, e, r, o, c) {
1849
1849
  }
1850
1850
  return g;
1851
1851
  }
1852
- function Xr(u) {
1852
+ function Zr(u) {
1853
1853
  for (var i = [], a = 0; a < u.length; ++a)
1854
1854
  i.push(u.charCodeAt(a) & 255);
1855
1855
  return i;
1856
1856
  }
1857
- function Kr(u, i) {
1857
+ function Qr(u, i) {
1858
1858
  for (var a, l, p, g = [], m = 0; m < u.length && !((i -= 2) < 0); ++m)
1859
1859
  a = u.charCodeAt(m), l = a >> 8, p = a % 256, g.push(p), g.push(l);
1860
1860
  return g;
1861
1861
  }
1862
- function Se(u) {
1863
- return t.toByteArray(Yr(u));
1862
+ function Fe(u) {
1863
+ return t.toByteArray(Kr(u));
1864
1864
  }
1865
1865
  function gt(u, i, a, l) {
1866
1866
  for (var p = 0; p < l && !(p + a >= i.length || p >= u.length); ++p)
@@ -1873,16 +1873,16 @@ he.write = function(n, t, e, r, o, c) {
1873
1873
  function Ut(u) {
1874
1874
  return u !== u;
1875
1875
  }
1876
- var Zr = function() {
1876
+ var tn = function() {
1877
1877
  for (var u = "0123456789abcdef", i = new Array(256), a = 0; a < 16; ++a)
1878
1878
  for (var l = a * 16, p = 0; p < 16; ++p)
1879
1879
  i[l + p] = u[a] + u[p];
1880
1880
  return i;
1881
1881
  }();
1882
- })(le);
1882
+ })(he);
1883
1883
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
1884
1884
  (function(n, t) {
1885
- var e = le, r = e.Buffer;
1885
+ var e = he, r = e.Buffer;
1886
1886
  function o(f, s) {
1887
1887
  for (var h in f)
1888
1888
  s[h] = f[h];
@@ -1909,14 +1909,14 @@ he.write = function(n, t, e, r, o, c) {
1909
1909
  throw new TypeError("Argument must be a number");
1910
1910
  return e.SlowBuffer(f);
1911
1911
  };
1912
- })(ie, ie.exports);
1913
- var pe = ie.exports, Gn = {}.toString, qn = Array.isArray || function(n) {
1914
- return Gn.call(n) == "[object Array]";
1915
- }, lt = TypeError, yr = Object, Hn = Error, zn = EvalError, Wn = RangeError, Vn = ReferenceError, wr = SyntaxError, Jn = URIError, Yn = Math.abs, Xn = Math.floor, Kn = Math.max, Zn = Math.min, Qn = Math.pow, ti = Math.round, ei = Number.isNaN || function(t) {
1912
+ })(oe, oe.exports);
1913
+ var de = oe.exports, Hn = {}.toString, zn = Array.isArray || function(n) {
1914
+ return Hn.call(n) == "[object Array]";
1915
+ }, lt = TypeError, gr = Object, Wn = Error, Vn = EvalError, Jn = RangeError, Yn = ReferenceError, mr = SyntaxError, Xn = URIError, Kn = Math.abs, Zn = Math.floor, Qn = Math.max, ti = Math.min, ei = Math.pow, ri = Math.round, ni = Number.isNaN || function(t) {
1916
1916
  return t !== t;
1917
- }, ri = ei, ni = function(t) {
1918
- return ri(t) || t === 0 ? t : t < 0 ? -1 : 1;
1919
- }, ii = Object.getOwnPropertyDescriptor, bt = ii;
1917
+ }, ii = ni, oi = function(t) {
1918
+ return ii(t) || t === 0 ? t : t < 0 ? -1 : 1;
1919
+ }, ai = Object.getOwnPropertyDescriptor, bt = ai;
1920
1920
  if (bt)
1921
1921
  try {
1922
1922
  bt([], "length");
@@ -1930,9 +1930,9 @@ if (vt)
1930
1930
  } catch {
1931
1931
  vt = !1;
1932
1932
  }
1933
- var Ft = vt, Tt, Re;
1934
- function gr() {
1935
- return Re || (Re = 1, Tt = function() {
1933
+ var Ft = vt, Tt, De;
1934
+ function br() {
1935
+ return De || (De = 1, Tt = function() {
1936
1936
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1937
1937
  return !1;
1938
1938
  if (typeof Symbol.iterator == "symbol")
@@ -1960,73 +1960,77 @@ function gr() {
1960
1960
  return !0;
1961
1961
  }), Tt;
1962
1962
  }
1963
- var Ot, De;
1964
- function oi() {
1965
- if (De) return Ot;
1966
- De = 1;
1967
- var n = typeof Symbol < "u" && Symbol, t = gr();
1963
+ var Ot, je;
1964
+ function si() {
1965
+ if (je) return Ot;
1966
+ je = 1;
1967
+ var n = typeof Symbol < "u" && Symbol, t = br();
1968
1968
  return Ot = function() {
1969
1969
  return typeof n != "function" || typeof Symbol != "function" || typeof n("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
1970
1970
  }, Ot;
1971
1971
  }
1972
- var Rt, je;
1973
- function mr() {
1974
- return je || (je = 1, Rt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Rt;
1972
+ var Rt, Ne;
1973
+ function vr() {
1974
+ return Ne || (Ne = 1, Rt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Rt;
1975
1975
  }
1976
- var Dt, Ne;
1977
- function br() {
1978
- if (Ne) return Dt;
1979
- Ne = 1;
1980
- var n = yr;
1976
+ var Dt, Ce;
1977
+ function Er() {
1978
+ if (Ce) return Dt;
1979
+ Ce = 1;
1980
+ var n = gr;
1981
1981
  return Dt = n.getPrototypeOf || null, Dt;
1982
1982
  }
1983
- var ai = "Function.prototype.bind called on incompatible ", si = Object.prototype.toString, ci = Math.max, fi = "[object Function]", Ce = function(t, e) {
1983
+ var ci = "Function.prototype.bind called on incompatible ", fi = Object.prototype.toString, ui = Math.max, li = "[object Function]", Me = function(t, e) {
1984
1984
  for (var r = [], o = 0; o < t.length; o += 1)
1985
1985
  r[o] = t[o];
1986
1986
  for (var c = 0; c < e.length; c += 1)
1987
1987
  r[c + t.length] = e[c];
1988
1988
  return r;
1989
- }, ui = function(t, e) {
1989
+ }, hi = function(t, e) {
1990
1990
  for (var r = [], o = e, c = 0; o < t.length; o += 1, c += 1)
1991
1991
  r[c] = t[o];
1992
1992
  return r;
1993
- }, li = function(n, t) {
1993
+ }, pi = function(n, t) {
1994
1994
  for (var e = "", r = 0; r < n.length; r += 1)
1995
1995
  e += n[r], r + 1 < n.length && (e += t);
1996
1996
  return e;
1997
- }, hi = function(t) {
1997
+ }, di = function(t) {
1998
1998
  var e = this;
1999
- if (typeof e != "function" || si.apply(e) !== fi)
2000
- throw new TypeError(ai + e);
2001
- for (var r = ui(arguments, 1), o, c = function() {
1999
+ if (typeof e != "function" || fi.apply(e) !== li)
2000
+ throw new TypeError(ci + e);
2001
+ for (var r = hi(arguments, 1), o, c = function() {
2002
2002
  if (this instanceof o) {
2003
2003
  var d = e.apply(
2004
2004
  this,
2005
- Ce(r, arguments)
2005
+ Me(r, arguments)
2006
2006
  );
2007
2007
  return Object(d) === d ? d : this;
2008
2008
  }
2009
2009
  return e.apply(
2010
2010
  t,
2011
- Ce(r, arguments)
2011
+ Me(r, arguments)
2012
2012
  );
2013
- }, f = ci(0, e.length - r.length), s = [], h = 0; h < f; h++)
2013
+ }, f = ui(0, e.length - r.length), s = [], h = 0; h < f; h++)
2014
2014
  s[h] = "$" + h;
2015
- if (o = Function("binder", "return function (" + li(s, ",") + "){ return binder.apply(this,arguments); }")(c), e.prototype) {
2015
+ if (o = Function("binder", "return function (" + pi(s, ",") + "){ return binder.apply(this,arguments); }")(c), e.prototype) {
2016
2016
  var y = function() {
2017
2017
  };
2018
2018
  y.prototype = e.prototype, o.prototype = new y(), y.prototype = null;
2019
2019
  }
2020
2020
  return o;
2021
- }, pi = hi, pt = Function.prototype.bind || pi, de = Function.prototype.call, ye = Function.prototype.apply, di = typeof Reflect < "u" && Reflect && Reflect.apply, yi = pt, wi = ye, gi = de, mi = di, vr = mi || yi.call(gi, wi), bi = pt, vi = lt, Ei = de, xi = vr, we = function(t) {
2021
+ }, yi = di, pt = Function.prototype.bind || yi, ye = Function.prototype.call, jt, Le;
2022
+ function we() {
2023
+ return Le || (Le = 1, jt = Function.prototype.apply), jt;
2024
+ }
2025
+ var wi = typeof Reflect < "u" && Reflect && Reflect.apply, gi = pt, mi = we(), bi = ye, vi = wi, xr = vi || gi.call(bi, mi), Ei = pt, xi = lt, Ai = ye, Bi = xr, ge = function(t) {
2022
2026
  if (t.length < 1 || typeof t[0] != "function")
2023
- throw new vi("a function is required");
2024
- return xi(bi, Ei, t);
2025
- }, jt, Me;
2026
- function Ai() {
2027
- if (Me) return jt;
2028
- Me = 1;
2029
- var n = we, t = ht, e;
2027
+ throw new xi("a function is required");
2028
+ return Bi(Ei, Ai, t);
2029
+ }, Nt, Ge;
2030
+ function Si() {
2031
+ if (Ge) return Nt;
2032
+ Ge = 1;
2033
+ var n = ge, t = ht, e;
2030
2034
  try {
2031
2035
  e = /** @type {{ __proto__?: typeof Array.prototype }} */
2032
2036
  [].__proto__ === Array.prototype;
@@ -2039,19 +2043,19 @@ function Ai() {
2039
2043
  /** @type {keyof typeof Object.prototype} */
2040
2044
  "__proto__"
2041
2045
  ), o = Object, c = o.getPrototypeOf;
2042
- return jt = r && typeof r.get == "function" ? n([r.get]) : typeof c == "function" ? (
2046
+ return Nt = r && typeof r.get == "function" ? n([r.get]) : typeof c == "function" ? (
2043
2047
  /** @type {import('./get')} */
2044
2048
  function(s) {
2045
2049
  return c(s == null ? s : o(s));
2046
2050
  }
2047
- ) : !1, jt;
2048
- }
2049
- var Nt, Le;
2050
- function Er() {
2051
- if (Le) return Nt;
2052
- Le = 1;
2053
- var n = mr(), t = br(), e = Ai();
2054
- return Nt = n ? function(o) {
2051
+ ) : !1, Nt;
2052
+ }
2053
+ var Ct, qe;
2054
+ function Ar() {
2055
+ if (qe) return Ct;
2056
+ qe = 1;
2057
+ var n = vr(), t = Er(), e = Si();
2058
+ return Ct = n ? function(o) {
2055
2059
  return n(o);
2056
2060
  } : t ? function(o) {
2057
2061
  if (!o || typeof o != "object" && typeof o != "function")
@@ -2059,33 +2063,33 @@ function Er() {
2059
2063
  return t(o);
2060
2064
  } : e ? function(o) {
2061
2065
  return e(o);
2062
- } : null, Nt;
2066
+ } : null, Ct;
2063
2067
  }
2064
- var Ct, Ge;
2065
- function Bi() {
2066
- if (Ge) return Ct;
2067
- Ge = 1;
2068
+ var Mt, He;
2069
+ function Fi() {
2070
+ if (He) return Mt;
2071
+ He = 1;
2068
2072
  var n = Function.prototype.call, t = Object.prototype.hasOwnProperty, e = pt;
2069
- return Ct = e.call(n, t), Ct;
2073
+ return Mt = e.call(n, t), Mt;
2070
2074
  }
2071
- var A, Si = yr, Fi = Hn, Ii = zn, _i = Wn, $i = Vn, rt = wr, et = lt, Ui = Jn, Pi = Yn, ki = Xn, Ti = Kn, Oi = Zn, Ri = Qn, Di = ti, ji = ni, xr = Function, Mt = function(n) {
2075
+ var A, Ii = gr, _i = Wn, $i = Vn, Ui = Jn, Pi = Yn, rt = mr, et = lt, ki = Xn, Ti = Kn, Oi = Zn, Ri = Qn, Di = ti, ji = ei, Ni = ri, Ci = oi, Br = Function, Lt = function(n) {
2072
2076
  try {
2073
- return xr('"use strict"; return (' + n + ").constructor;")();
2077
+ return Br('"use strict"; return (' + n + ").constructor;")();
2074
2078
  } catch {
2075
2079
  }
2076
- }, at = ht, Ni = Ft, Lt = function() {
2080
+ }, at = ht, Mi = Ft, Gt = function() {
2077
2081
  throw new et();
2078
- }, Ci = at ? function() {
2082
+ }, Li = at ? function() {
2079
2083
  try {
2080
- return arguments.callee, Lt;
2084
+ return arguments.callee, Gt;
2081
2085
  } catch {
2082
2086
  try {
2083
2087
  return at(arguments, "callee").get;
2084
2088
  } catch {
2085
- return Lt;
2089
+ return Gt;
2086
2090
  }
2087
2091
  }
2088
- }() : Lt, Q = oi()(), R = Er(), Mi = br(), Li = mr(), Ar = ye, dt = de, tt = {}, Gi = typeof Uint8Array > "u" || !R ? A : R(Uint8Array), Y = {
2092
+ }() : Gt, Q = si()(), R = Ar(), Gi = Er(), qi = vr(), Sr = we(), dt = ye, tt = {}, Hi = typeof Uint8Array > "u" || !R ? A : R(Uint8Array), Y = {
2089
2093
  __proto__: null,
2090
2094
  "%AggregateError%": typeof AggregateError > "u" ? A : AggregateError,
2091
2095
  "%Array%": Array,
@@ -2107,15 +2111,15 @@ var A, Si = yr, Fi = Hn, Ii = zn, _i = Wn, $i = Vn, rt = wr, et = lt, Ui = Jn, P
2107
2111
  "%decodeURIComponent%": decodeURIComponent,
2108
2112
  "%encodeURI%": encodeURI,
2109
2113
  "%encodeURIComponent%": encodeURIComponent,
2110
- "%Error%": Fi,
2114
+ "%Error%": _i,
2111
2115
  "%eval%": eval,
2112
2116
  // eslint-disable-line no-eval
2113
- "%EvalError%": Ii,
2117
+ "%EvalError%": $i,
2114
2118
  "%Float16Array%": typeof Float16Array > "u" ? A : Float16Array,
2115
2119
  "%Float32Array%": typeof Float32Array > "u" ? A : Float32Array,
2116
2120
  "%Float64Array%": typeof Float64Array > "u" ? A : Float64Array,
2117
2121
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? A : FinalizationRegistry,
2118
- "%Function%": xr,
2122
+ "%Function%": Br,
2119
2123
  "%GeneratorFunction%": tt,
2120
2124
  "%Int8Array%": typeof Int8Array > "u" ? A : Int8Array,
2121
2125
  "%Int16Array%": typeof Int16Array > "u" ? A : Int16Array,
@@ -2128,14 +2132,14 @@ var A, Si = yr, Fi = Hn, Ii = zn, _i = Wn, $i = Vn, rt = wr, et = lt, Ui = Jn, P
2128
2132
  "%MapIteratorPrototype%": typeof Map > "u" || !Q || !R ? A : R((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2129
2133
  "%Math%": Math,
2130
2134
  "%Number%": Number,
2131
- "%Object%": Si,
2135
+ "%Object%": Ii,
2132
2136
  "%Object.getOwnPropertyDescriptor%": at,
2133
2137
  "%parseFloat%": parseFloat,
2134
2138
  "%parseInt%": parseInt,
2135
2139
  "%Promise%": typeof Promise > "u" ? A : Promise,
2136
2140
  "%Proxy%": typeof Proxy > "u" ? A : Proxy,
2137
- "%RangeError%": _i,
2138
- "%ReferenceError%": $i,
2141
+ "%RangeError%": Ui,
2142
+ "%ReferenceError%": Pi,
2139
2143
  "%Reflect%": typeof Reflect > "u" ? A : Reflect,
2140
2144
  "%RegExp%": RegExp,
2141
2145
  "%Set%": typeof Set > "u" ? A : Set,
@@ -2145,45 +2149,45 @@ var A, Si = yr, Fi = Hn, Ii = zn, _i = Wn, $i = Vn, rt = wr, et = lt, Ui = Jn, P
2145
2149
  "%StringIteratorPrototype%": Q && R ? R(""[Symbol.iterator]()) : A,
2146
2150
  "%Symbol%": Q ? Symbol : A,
2147
2151
  "%SyntaxError%": rt,
2148
- "%ThrowTypeError%": Ci,
2149
- "%TypedArray%": Gi,
2152
+ "%ThrowTypeError%": Li,
2153
+ "%TypedArray%": Hi,
2150
2154
  "%TypeError%": et,
2151
2155
  "%Uint8Array%": typeof Uint8Array > "u" ? A : Uint8Array,
2152
2156
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? A : Uint8ClampedArray,
2153
2157
  "%Uint16Array%": typeof Uint16Array > "u" ? A : Uint16Array,
2154
2158
  "%Uint32Array%": typeof Uint32Array > "u" ? A : Uint32Array,
2155
- "%URIError%": Ui,
2159
+ "%URIError%": ki,
2156
2160
  "%WeakMap%": typeof WeakMap > "u" ? A : WeakMap,
2157
2161
  "%WeakRef%": typeof WeakRef > "u" ? A : WeakRef,
2158
2162
  "%WeakSet%": typeof WeakSet > "u" ? A : WeakSet,
2159
2163
  "%Function.prototype.call%": dt,
2160
- "%Function.prototype.apply%": Ar,
2161
- "%Object.defineProperty%": Ni,
2162
- "%Object.getPrototypeOf%": Mi,
2163
- "%Math.abs%": Pi,
2164
- "%Math.floor%": ki,
2165
- "%Math.max%": Ti,
2166
- "%Math.min%": Oi,
2167
- "%Math.pow%": Ri,
2168
- "%Math.round%": Di,
2169
- "%Math.sign%": ji,
2170
- "%Reflect.getPrototypeOf%": Li
2164
+ "%Function.prototype.apply%": Sr,
2165
+ "%Object.defineProperty%": Mi,
2166
+ "%Object.getPrototypeOf%": Gi,
2167
+ "%Math.abs%": Ti,
2168
+ "%Math.floor%": Oi,
2169
+ "%Math.max%": Ri,
2170
+ "%Math.min%": Di,
2171
+ "%Math.pow%": ji,
2172
+ "%Math.round%": Ni,
2173
+ "%Math.sign%": Ci,
2174
+ "%Reflect.getPrototypeOf%": qi
2171
2175
  };
2172
2176
  if (R)
2173
2177
  try {
2174
2178
  null.error;
2175
2179
  } catch (n) {
2176
- var qi = R(R(n));
2177
- Y["%Error.prototype%"] = qi;
2180
+ var zi = R(R(n));
2181
+ Y["%Error.prototype%"] = zi;
2178
2182
  }
2179
- var Hi = function n(t) {
2183
+ var Wi = function n(t) {
2180
2184
  var e;
2181
2185
  if (t === "%AsyncFunction%")
2182
- e = Mt("async function () {}");
2186
+ e = Lt("async function () {}");
2183
2187
  else if (t === "%GeneratorFunction%")
2184
- e = Mt("function* () {}");
2188
+ e = Lt("function* () {}");
2185
2189
  else if (t === "%AsyncGeneratorFunction%")
2186
- e = Mt("async function* () {}");
2190
+ e = Lt("async function* () {}");
2187
2191
  else if (t === "%AsyncGenerator%") {
2188
2192
  var r = n("%AsyncGeneratorFunction%");
2189
2193
  r && (e = r.prototype);
@@ -2192,7 +2196,7 @@ var Hi = function n(t) {
2192
2196
  o && R && (e = R(o.prototype));
2193
2197
  }
2194
2198
  return Y[t] = e, e;
2195
- }, qe = {
2199
+ }, ze = {
2196
2200
  __proto__: null,
2197
2201
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
2198
2202
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -2245,21 +2249,21 @@ var Hi = function n(t) {
2245
2249
  "%URIErrorPrototype%": ["URIError", "prototype"],
2246
2250
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2247
2251
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2248
- }, yt = pt, xt = Bi(), zi = yt.call(dt, Array.prototype.concat), Wi = yt.call(Ar, Array.prototype.splice), He = yt.call(dt, String.prototype.replace), At = yt.call(dt, String.prototype.slice), Vi = yt.call(dt, RegExp.prototype.exec), Ji = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Yi = /\\(\\)?/g, Xi = function(t) {
2252
+ }, yt = pt, xt = Fi(), Vi = yt.call(dt, Array.prototype.concat), Ji = yt.call(Sr, Array.prototype.splice), We = yt.call(dt, String.prototype.replace), At = yt.call(dt, String.prototype.slice), Yi = yt.call(dt, RegExp.prototype.exec), Xi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ki = /\\(\\)?/g, Zi = function(t) {
2249
2253
  var e = At(t, 0, 1), r = At(t, -1);
2250
2254
  if (e === "%" && r !== "%")
2251
2255
  throw new rt("invalid intrinsic syntax, expected closing `%`");
2252
2256
  if (r === "%" && e !== "%")
2253
2257
  throw new rt("invalid intrinsic syntax, expected opening `%`");
2254
2258
  var o = [];
2255
- return He(t, Ji, function(c, f, s, h) {
2256
- o[o.length] = s ? He(h, Yi, "$1") : f || c;
2259
+ return We(t, Xi, function(c, f, s, h) {
2260
+ o[o.length] = s ? We(h, Ki, "$1") : f || c;
2257
2261
  }), o;
2258
- }, Ki = function(t, e) {
2262
+ }, Qi = function(t, e) {
2259
2263
  var r = t, o;
2260
- if (xt(qe, r) && (o = qe[r], r = "%" + o[0] + "%"), xt(Y, r)) {
2264
+ if (xt(ze, r) && (o = ze[r], r = "%" + o[0] + "%"), xt(Y, r)) {
2261
2265
  var c = Y[r];
2262
- if (c === tt && (c = Hi(r)), typeof c > "u" && !e)
2266
+ if (c === tt && (c = Wi(r)), typeof c > "u" && !e)
2263
2267
  throw new et("intrinsic " + t + " exists, but is not available. Please file an issue!");
2264
2268
  return {
2265
2269
  alias: o,
@@ -2268,15 +2272,15 @@ var Hi = function n(t) {
2268
2272
  };
2269
2273
  }
2270
2274
  throw new rt("intrinsic " + t + " does not exist!");
2271
- }, Br = function(t, e) {
2275
+ }, Fr = function(t, e) {
2272
2276
  if (typeof t != "string" || t.length === 0)
2273
2277
  throw new et("intrinsic name must be a non-empty string");
2274
2278
  if (arguments.length > 1 && typeof e != "boolean")
2275
2279
  throw new et('"allowMissing" argument must be a boolean');
2276
- if (Vi(/^%?[^%]*%?$/, t) === null)
2280
+ if (Yi(/^%?[^%]*%?$/, t) === null)
2277
2281
  throw new rt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
2278
- var r = Xi(t), o = r.length > 0 ? r[0] : "", c = Ki("%" + o + "%", e), f = c.name, s = c.value, h = !1, y = c.alias;
2279
- y && (o = y[0], Wi(r, zi([0, 1], y)));
2282
+ var r = Zi(t), o = r.length > 0 ? r[0] : "", c = Qi("%" + o + "%", e), f = c.name, s = c.value, h = !1, y = c.alias;
2283
+ y && (o = y[0], Ji(r, Vi([0, 1], y)));
2280
2284
  for (var d = 1, w = !0; d < r.length; d += 1) {
2281
2285
  var b = r[d], v = At(b, 0, 1), _ = At(b, -1);
2282
2286
  if ((v === '"' || v === "'" || v === "`" || _ === '"' || _ === "'" || _ === "`") && v !== _)
@@ -2298,19 +2302,19 @@ var Hi = function n(t) {
2298
2302
  }
2299
2303
  }
2300
2304
  return s;
2301
- }, Sr = Br, Fr = we, Zi = Fr([Sr("%String.prototype.indexOf%")]), Ir = function(t, e) {
2305
+ }, Ir = Fr, _r = ge, to = _r([Ir("%String.prototype.indexOf%")]), $r = function(t, e) {
2302
2306
  var r = (
2303
2307
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
2304
- Sr(t, !!e)
2308
+ Ir(t, !!e)
2305
2309
  );
2306
- return typeof r == "function" && Zi(t, ".prototype.") > -1 ? Fr(
2310
+ return typeof r == "function" && to(t, ".prototype.") > -1 ? _r(
2307
2311
  /** @type {const} */
2308
2312
  [r]
2309
2313
  ) : r;
2310
- }, Gt, ze;
2311
- function Qi() {
2312
- if (ze) return Gt;
2313
- ze = 1;
2314
+ }, qt, Ve;
2315
+ function eo() {
2316
+ if (Ve) return qt;
2317
+ Ve = 1;
2314
2318
  var n = Function.prototype.toString, t = typeof Reflect == "object" && Reflect !== null && Reflect.apply, e, r;
2315
2319
  if (typeof t == "function" && typeof Object.defineProperty == "function")
2316
2320
  try {
@@ -2354,7 +2358,7 @@ function Qi() {
2354
2358
  return !1;
2355
2359
  });
2356
2360
  }
2357
- return Gt = t ? function(E) {
2361
+ return qt = t ? function(E) {
2358
2362
  if (B(E))
2359
2363
  return !0;
2360
2364
  if (!E || typeof E != "function" && typeof E != "object")
@@ -2377,13 +2381,13 @@ function Qi() {
2377
2381
  return !1;
2378
2382
  var P = s.call(E);
2379
2383
  return P !== y && P !== d && !/^\[object HTML/.test(P) ? !1 : f(E);
2380
- }, Gt;
2384
+ }, qt;
2381
2385
  }
2382
- var qt, We;
2383
- function to() {
2384
- if (We) return qt;
2385
- We = 1;
2386
- var n = Qi(), t = Object.prototype.toString, e = Object.prototype.hasOwnProperty, r = function(h, y, d) {
2386
+ var Ht, Je;
2387
+ function ro() {
2388
+ if (Je) return Ht;
2389
+ Je = 1;
2390
+ var n = eo(), t = Object.prototype.toString, e = Object.prototype.hasOwnProperty, r = function(h, y, d) {
2387
2391
  for (var w = 0, b = h.length; w < b; w++)
2388
2392
  e.call(h, w) && (d == null ? y(h[w], w, h) : y.call(d, h[w], w, h));
2389
2393
  }, o = function(h, y, d) {
@@ -2396,16 +2400,16 @@ function to() {
2396
2400
  function f(s) {
2397
2401
  return t.call(s) === "[object Array]";
2398
2402
  }
2399
- return qt = function(h, y, d) {
2403
+ return Ht = function(h, y, d) {
2400
2404
  if (!n(y))
2401
2405
  throw new TypeError("iterator must be a function");
2402
2406
  var w;
2403
2407
  arguments.length >= 3 && (w = d), f(h) ? r(h, y, w) : typeof h == "string" ? o(h, y, w) : c(h, y, w);
2404
- }, qt;
2408
+ }, Ht;
2405
2409
  }
2406
- var Ht, Ve;
2407
- function eo() {
2408
- return Ve || (Ve = 1, Ht = [
2410
+ var zt, Ye;
2411
+ function no() {
2412
+ return Ye || (Ye = 1, zt = [
2409
2413
  "Float16Array",
2410
2414
  "Float32Array",
2411
2415
  "Float64Array",
@@ -2418,25 +2422,25 @@ function eo() {
2418
2422
  "Uint32Array",
2419
2423
  "BigInt64Array",
2420
2424
  "BigUint64Array"
2421
- ]), Ht;
2425
+ ]), zt;
2422
2426
  }
2423
- var zt, Je;
2424
- function ro() {
2425
- if (Je) return zt;
2426
- Je = 1;
2427
- var n = eo(), t = typeof globalThis > "u" ? pr : globalThis;
2428
- return zt = function() {
2427
+ var Wt, Xe;
2428
+ function io() {
2429
+ if (Xe) return Wt;
2430
+ Xe = 1;
2431
+ var n = no(), t = typeof globalThis > "u" ? yr : globalThis;
2432
+ return Wt = function() {
2429
2433
  for (var r = [], o = 0; o < n.length; o++)
2430
2434
  typeof t[n[o]] == "function" && (r[r.length] = n[o]);
2431
2435
  return r;
2432
- }, zt;
2436
+ }, Wt;
2433
2437
  }
2434
- var Wt = { exports: {} }, Vt, Ye;
2435
- function no() {
2436
- if (Ye) return Vt;
2437
- Ye = 1;
2438
- var n = Ft, t = wr, e = lt, r = ht;
2439
- return Vt = function(c, f, s) {
2438
+ var Vt = { exports: {} }, Jt, Ke;
2439
+ function oo() {
2440
+ if (Ke) return Jt;
2441
+ Ke = 1;
2442
+ var n = Ft, t = mr, e = lt, r = ht;
2443
+ return Jt = function(c, f, s) {
2440
2444
  if (!c || typeof c != "object" && typeof c != "function")
2441
2445
  throw new e("`obj` must be an object or a function`");
2442
2446
  if (typeof f != "string" && typeof f != "symbol")
@@ -2461,12 +2465,12 @@ function no() {
2461
2465
  c[f] = s;
2462
2466
  else
2463
2467
  throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
2464
- }, Vt;
2468
+ }, Jt;
2465
2469
  }
2466
- var Jt, Xe;
2467
- function io() {
2468
- if (Xe) return Jt;
2469
- Xe = 1;
2470
+ var Yt, Ze;
2471
+ function ao() {
2472
+ if (Ze) return Yt;
2473
+ Ze = 1;
2470
2474
  var n = Ft, t = function() {
2471
2475
  return !!n;
2472
2476
  };
@@ -2478,14 +2482,14 @@ function io() {
2478
2482
  } catch {
2479
2483
  return !0;
2480
2484
  }
2481
- }, Jt = t, Jt;
2485
+ }, Yt = t, Yt;
2482
2486
  }
2483
- var Yt, Ke;
2484
- function oo() {
2485
- if (Ke) return Yt;
2486
- Ke = 1;
2487
- var n = Br, t = no(), e = io()(), r = ht, o = lt, c = n("%Math.floor%");
2488
- return Yt = function(s, h) {
2487
+ var Xt, Qe;
2488
+ function so() {
2489
+ if (Qe) return Xt;
2490
+ Qe = 1;
2491
+ var n = Fr, t = oo(), e = ao()(), r = ht, o = lt, c = n("%Math.floor%");
2492
+ return Xt = function(s, h) {
2489
2493
  if (typeof s != "function")
2490
2494
  throw new o("`fn` is not a function");
2491
2495
  if (typeof h != "number" || h < 0 || h > 4294967295 || c(h) !== h)
@@ -2508,21 +2512,21 @@ function oo() {
2508
2512
  "length",
2509
2513
  h
2510
2514
  )), s;
2511
- }, Yt;
2515
+ }, Xt;
2512
2516
  }
2513
- var Xt, Ze;
2514
- function ao() {
2515
- if (Ze) return Xt;
2516
- Ze = 1;
2517
- var n = pt, t = ye, e = vr;
2518
- return Xt = function() {
2517
+ var Kt, tr;
2518
+ function co() {
2519
+ if (tr) return Kt;
2520
+ tr = 1;
2521
+ var n = pt, t = we(), e = xr;
2522
+ return Kt = function() {
2519
2523
  return e(n, t, arguments);
2520
- }, Xt;
2524
+ }, Kt;
2521
2525
  }
2522
- var Qe;
2523
- function so() {
2524
- return Qe || (Qe = 1, function(n) {
2525
- var t = oo(), e = Ft, r = we, o = ao();
2526
+ var er;
2527
+ function fo() {
2528
+ return er || (er = 1, function(n) {
2529
+ var t = so(), e = Ft, r = ge, o = co();
2526
2530
  n.exports = function(f) {
2527
2531
  var s = r(arguments), h = f.length - (arguments.length - 1);
2528
2532
  return t(
@@ -2531,22 +2535,22 @@ function so() {
2531
2535
  !0
2532
2536
  );
2533
2537
  }, e ? e(n.exports, "apply", { value: o }) : n.exports.apply = o;
2534
- }(Wt)), Wt.exports;
2538
+ }(Vt)), Vt.exports;
2535
2539
  }
2536
- var Kt, tr;
2537
- function co() {
2538
- if (tr) return Kt;
2539
- tr = 1;
2540
- var n = gr();
2541
- return Kt = function() {
2540
+ var Zt, rr;
2541
+ function uo() {
2542
+ if (rr) return Zt;
2543
+ rr = 1;
2544
+ var n = br();
2545
+ return Zt = function() {
2542
2546
  return n() && !!Symbol.toStringTag;
2543
- }, Kt;
2547
+ }, Zt;
2544
2548
  }
2545
- var Zt, er;
2546
- function fo() {
2547
- if (er) return Zt;
2548
- er = 1;
2549
- var n = to(), t = ro(), e = so(), r = Ir, o = ht, c = Er(), f = r("Object.prototype.toString"), s = co()(), h = typeof globalThis > "u" ? pr : globalThis, y = t(), d = r("String.prototype.slice"), w = r("Array.prototype.indexOf", !0) || function(B, x) {
2549
+ var Qt, nr;
2550
+ function lo() {
2551
+ if (nr) return Qt;
2552
+ nr = 1;
2553
+ var n = ro(), t = io(), e = fo(), r = $r, o = ht, c = Ar(), f = r("Object.prototype.toString"), s = uo()(), h = typeof globalThis > "u" ? yr : globalThis, y = t(), d = r("String.prototype.slice"), w = r("Array.prototype.indexOf", !0) || function(B, x) {
2550
2554
  for (var I = 0; I < B.length; I += 1)
2551
2555
  if (B[I] === x)
2552
2556
  return I;
@@ -2602,7 +2606,7 @@ function fo() {
2602
2606
  }
2603
2607
  ), x;
2604
2608
  };
2605
- return Zt = function(B) {
2609
+ return Qt = function(B) {
2606
2610
  if (!B || typeof B != "object")
2607
2611
  return !1;
2608
2612
  if (!s) {
@@ -2610,36 +2614,36 @@ function fo() {
2610
2614
  return w(y, x) > -1 ? x : x !== "Object" ? !1 : _(B);
2611
2615
  }
2612
2616
  return o ? v(B) : null;
2613
- }, Zt;
2617
+ }, Qt;
2614
2618
  }
2615
- var Qt, rr;
2616
- function uo() {
2617
- if (rr) return Qt;
2618
- rr = 1;
2619
- var n = fo();
2620
- return Qt = function(e) {
2619
+ var te, ir;
2620
+ function ho() {
2621
+ if (ir) return te;
2622
+ ir = 1;
2623
+ var n = lo();
2624
+ return te = function(e) {
2621
2625
  return !!n(e);
2622
- }, Qt;
2626
+ }, te;
2623
2627
  }
2624
- var lo = lt, ho = Ir, po = ho("TypedArray.prototype.buffer", !0), yo = uo(), wo = po || function(t) {
2625
- if (!yo(t))
2626
- throw new lo("Not a Typed Array");
2628
+ var po = lt, yo = $r, wo = yo("TypedArray.prototype.buffer", !0), go = ho(), mo = wo || function(t) {
2629
+ if (!go(t))
2630
+ throw new po("Not a Typed Array");
2627
2631
  return t.buffer;
2628
- }, G = pe.Buffer, go = qn, mo = wo, bo = ArrayBuffer.isView || function(t) {
2632
+ }, G = de.Buffer, bo = zn, vo = mo, Eo = ArrayBuffer.isView || function(t) {
2629
2633
  try {
2630
- return mo(t), !0;
2634
+ return vo(t), !0;
2631
2635
  } catch {
2632
2636
  return !1;
2633
2637
  }
2634
- }, vo = typeof Uint8Array < "u", _r = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", Eo = _r && (G.prototype instanceof Uint8Array || G.TYPED_ARRAY_SUPPORT), xo = function(t, e) {
2638
+ }, xo = typeof Uint8Array < "u", Ur = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", Ao = Ur && (G.prototype instanceof Uint8Array || G.TYPED_ARRAY_SUPPORT), Bo = function(t, e) {
2635
2639
  if (G.isBuffer(t))
2636
2640
  return t.constructor && !("isBuffer" in t) ? G.from(t) : t;
2637
2641
  if (typeof t == "string")
2638
2642
  return G.from(t, e);
2639
- if (_r && bo(t)) {
2643
+ if (Ur && Eo(t)) {
2640
2644
  if (t.byteLength === 0)
2641
2645
  return G.alloc(0);
2642
- if (Eo) {
2646
+ if (Ao) {
2643
2647
  var r = G.from(t.buffer, t.byteOffset, t.byteLength);
2644
2648
  if (r.byteLength === t.byteLength)
2645
2649
  return r;
@@ -2648,9 +2652,9 @@ var lo = lt, ho = Ir, po = ho("TypedArray.prototype.buffer", !0), yo = uo(), wo
2648
2652
  if (c.length === t.byteLength)
2649
2653
  return c;
2650
2654
  }
2651
- if (vo && t instanceof Uint8Array)
2655
+ if (xo && t instanceof Uint8Array)
2652
2656
  return G.from(t);
2653
- var f = go(t);
2657
+ var f = bo(t);
2654
2658
  if (f)
2655
2659
  for (var s = 0; s < t.length; s += 1) {
2656
2660
  var h = t[s];
@@ -2660,12 +2664,12 @@ var lo = lt, ho = Ir, po = ho("TypedArray.prototype.buffer", !0), yo = uo(), wo
2660
2664
  if (f || G.isBuffer(t) && t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t))
2661
2665
  return G.from(t);
2662
2666
  throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.');
2663
- }, Ao = pe.Buffer, Bo = xo;
2667
+ }, So = de.Buffer, Fo = Bo;
2664
2668
  function It(n, t) {
2665
- this._block = Ao.alloc(n), this._finalSize = t, this._blockSize = n, this._len = 0;
2669
+ this._block = So.alloc(n), this._finalSize = t, this._blockSize = n, this._len = 0;
2666
2670
  }
2667
2671
  It.prototype.update = function(n, t) {
2668
- n = Bo(n, t || "utf8");
2672
+ n = Fo(n, t || "utf8");
2669
2673
  for (var e = this._block, r = this._blockSize, o = n.length, c = this._len, f = 0; f < o; ) {
2670
2674
  for (var s = c % r, h = Math.min(o - f, r - s), y = 0; y < h; y++)
2671
2675
  e[s + y] = n[f + y];
@@ -2690,73 +2694,73 @@ It.prototype.digest = function(n) {
2690
2694
  It.prototype._update = function() {
2691
2695
  throw new Error("_update must be implemented by subclass");
2692
2696
  };
2693
- var So = It, Fo = Tn, $r = So, Io = pe.Buffer, _o = [
2697
+ var Io = It, _o = Rn, Pr = Io, $o = de.Buffer, Uo = [
2694
2698
  1518500249,
2695
2699
  1859775393,
2696
2700
  -1894007588,
2697
2701
  -899497514
2698
- ], $o = new Array(80);
2702
+ ], Po = new Array(80);
2699
2703
  function wt() {
2700
- this.init(), this._w = $o, $r.call(this, 64, 56);
2704
+ this.init(), this._w = Po, Pr.call(this, 64, 56);
2701
2705
  }
2702
- Fo(wt, $r);
2706
+ _o(wt, Pr);
2703
2707
  wt.prototype.init = function() {
2704
2708
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
2705
2709
  };
2706
- function Uo(n) {
2710
+ function ko(n) {
2707
2711
  return n << 1 | n >>> 31;
2708
2712
  }
2709
- function Po(n) {
2713
+ function To(n) {
2710
2714
  return n << 5 | n >>> 27;
2711
2715
  }
2712
- function ko(n) {
2716
+ function Oo(n) {
2713
2717
  return n << 30 | n >>> 2;
2714
2718
  }
2715
- function To(n, t, e, r) {
2719
+ function Ro(n, t, e, r) {
2716
2720
  return n === 0 ? t & e | ~t & r : n === 2 ? t & e | t & r | e & r : t ^ e ^ r;
2717
2721
  }
2718
2722
  wt.prototype._update = function(n) {
2719
2723
  for (var t = this._w, e = this._a | 0, r = this._b | 0, o = this._c | 0, c = this._d | 0, f = this._e | 0, s = 0; s < 16; ++s)
2720
2724
  t[s] = n.readInt32BE(s * 4);
2721
2725
  for (; s < 80; ++s)
2722
- t[s] = Uo(t[s - 3] ^ t[s - 8] ^ t[s - 14] ^ t[s - 16]);
2726
+ t[s] = ko(t[s - 3] ^ t[s - 8] ^ t[s - 14] ^ t[s - 16]);
2723
2727
  for (var h = 0; h < 80; ++h) {
2724
- var y = ~~(h / 20), d = Po(e) + To(y, r, o, c) + f + t[h] + _o[y] | 0;
2725
- f = c, c = o, o = ko(r), r = e, e = d;
2728
+ var y = ~~(h / 20), d = To(e) + Ro(y, r, o, c) + f + t[h] + Uo[y] | 0;
2729
+ f = c, c = o, o = Oo(r), r = e, e = d;
2726
2730
  }
2727
2731
  this._a = e + this._a | 0, this._b = r + this._b | 0, this._c = o + this._c | 0, this._d = c + this._d | 0, this._e = f + this._e | 0;
2728
2732
  };
2729
2733
  wt.prototype._hash = function() {
2730
- var n = Io.allocUnsafe(20);
2734
+ var n = $o.allocUnsafe(20);
2731
2735
  return n.writeInt32BE(this._a | 0, 0), n.writeInt32BE(this._b | 0, 4), n.writeInt32BE(this._c | 0, 8), n.writeInt32BE(this._d | 0, 12), n.writeInt32BE(this._e | 0, 16), n;
2732
2736
  };
2733
- var Oo = wt;
2734
- const Ro = /* @__PURE__ */ kn(Oo);
2735
- function Do(n) {
2737
+ var Do = wt;
2738
+ const jo = /* @__PURE__ */ On(Do);
2739
+ function No(n) {
2736
2740
  let t = "";
2737
2741
  for (const e of new Uint8Array(n))
2738
2742
  e < 16 && (t += "0"), t += e.toString(16);
2739
2743
  return t;
2740
2744
  }
2741
- let te = null;
2745
+ let ee = null;
2742
2746
  async function Bt(n) {
2743
- return te === null && (te = await No()), te ? Ur(n) : jo(n);
2747
+ return ee === null && (ee = await Mo()), ee ? kr(n) : Co(n);
2744
2748
  }
2745
- function jo(n) {
2746
- return new Ro().update(n).digest("hex");
2749
+ function Co(n) {
2750
+ return new jo().update(n).digest("hex");
2747
2751
  }
2748
- async function Ur(n) {
2752
+ async function kr(n) {
2749
2753
  const t = await crypto.subtle.digest("SHA-1", n);
2750
- return Do(t);
2754
+ return No(t);
2751
2755
  }
2752
- async function No() {
2756
+ async function Mo() {
2753
2757
  try {
2754
- if (await Ur(new Uint8Array([])) === "da39a3ee5e6b4b0d3255bfef95601890afd80709") return !0;
2758
+ if (await kr(new Uint8Array([])) === "da39a3ee5e6b4b0d3255bfef95601890afd80709") return !0;
2755
2759
  } catch {
2756
2760
  }
2757
2761
  return !1;
2758
2762
  }
2759
- function Co(n) {
2763
+ function Lo(n) {
2760
2764
  const t = [];
2761
2765
  let e = 0, r = 0;
2762
2766
  do {
@@ -2766,7 +2770,7 @@ function Co(n) {
2766
2770
  } while (r);
2767
2771
  return t.reduce((o, c) => o + 1 << 7 | c, -1);
2768
2772
  }
2769
- function Mo(n, t) {
2773
+ function Go(n, t) {
2770
2774
  let e = t, r = 4, o = null;
2771
2775
  do
2772
2776
  o = n.readUInt8(), e |= (o & 127) << r, r += 7;
@@ -2819,7 +2823,7 @@ class nt {
2819
2823
  7: "ref-delta"
2820
2824
  }, c = {}, f = t.slice(-20).toString("hex"), s = [], h = {}, y = /* @__PURE__ */ new Map();
2821
2825
  let d = null, w = null;
2822
- await $n([t], async ({ data: B, type: x, reference: I, offset: E, num: P }) => {
2826
+ await Pn([t], async ({ data: B, type: x, reference: I, offset: E, num: P }) => {
2823
2827
  d === null && (d = P);
2824
2828
  const j = Math.floor(
2825
2829
  (d - P) * 100 / d
@@ -2841,7 +2845,7 @@ class nt {
2841
2845
  });
2842
2846
  const b = Object.keys(c).map(Number);
2843
2847
  for (const [B, x] of b.entries()) {
2844
- const I = B + 1 === b.length ? t.byteLength - 20 : b[B + 1], E = c[x], P = en.buf(t.slice(x, I)) >>> 0;
2848
+ const I = B + 1 === b.length ? t.byteLength - 20 : b[B + 1], E = c[x], P = nn.buf(t.slice(x, I)) >>> 0;
2845
2849
  E.end = I, E.crc = P;
2846
2850
  }
2847
2851
  const v = new nt({
@@ -2869,7 +2873,7 @@ class nt {
2869
2873
  v.readDepth = 0, v.externalReadDepth = 0;
2870
2874
  const { type: E, object: P } = await v.readSlice({ start: B });
2871
2875
  U[v.readDepth] += 1;
2872
- const j = await Bt(In.wrap({ type: E, object: P }));
2876
+ const j = await Bt($n.wrap({ type: E, object: P }));
2873
2877
  I.oid = j, s.push(j), y.set(j, B), h[j] = I.crc;
2874
2878
  } catch {
2875
2879
  continue;
@@ -2940,10 +2944,10 @@ class nt {
2940
2944
  throw new F("Unrecognized type: 0b" + f.toString(2));
2941
2945
  const h = c & 15;
2942
2946
  let y = h;
2943
- c & 128 && (y = Mo(o, h));
2947
+ c & 128 && (y = Go(o, h));
2944
2948
  let w = null, b = null;
2945
2949
  if (s === "ofs_delta") {
2946
- const _ = Co(o), U = t - _;
2950
+ const _ = Lo(o), U = t - _;
2947
2951
  ({ object: w, type: s } = await this.readSlice({ start: U }));
2948
2952
  }
2949
2953
  if (s === "ref_delta") {
@@ -2951,11 +2955,11 @@ class nt {
2951
2955
  ({ object: w, type: s } = await this.read({ oid: _ }));
2952
2956
  }
2953
2957
  const v = r.slice(o.tell());
2954
- if (b = Buffer.from(await Pn(v)), b.byteLength !== y)
2958
+ if (b = Buffer.from(await Tn(v)), b.byteLength !== y)
2955
2959
  throw new F(
2956
2960
  `Packfile told us object would have length ${y} but it had length ${b.byteLength}`
2957
2961
  );
2958
- return w && (b = Buffer.from(_n(b, w))), this.readDepth > 3 && (this.offsetCache[t] = { type: s, object: b }), { type: s, format: "content", object: b };
2962
+ return w && (b = Buffer.from(Un(b, w))), this.readDepth > 3 && (this.offsetCache[t] = { type: s, object: b }), { type: s, format: "content", object: b };
2959
2963
  }
2960
2964
  }
2961
2965
  class st extends it {
@@ -2981,27 +2985,27 @@ class _t extends it {
2981
2985
  }
2982
2986
  }
2983
2987
  _t.code = "ObjectTypeError";
2984
- function Lo(n) {
2988
+ function qo(n) {
2985
2989
  let t = n > 0 ? n >> 12 : 0;
2986
2990
  t !== 4 && t !== 8 && t !== 10 && t !== 14 && (t = 8);
2987
2991
  let e = n & 511;
2988
2992
  return e & 73 ? e = 493 : e = 420, t !== 8 && (e = 0), (t << 12) + e;
2989
2993
  }
2990
2994
  const H = 2 ** 32;
2991
- function nr(n, t, e, r) {
2995
+ function or(n, t, e, r) {
2992
2996
  if (n !== void 0 && t !== void 0)
2993
2997
  return [n, t];
2994
2998
  e === void 0 && (e = r.valueOf());
2995
2999
  const o = Math.floor(e / 1e3), c = (e - o * 1e3) * 1e6;
2996
3000
  return [o, c];
2997
3001
  }
2998
- function ir(n) {
2999
- const [t, e] = nr(
3002
+ function ar(n) {
3003
+ const [t, e] = or(
3000
3004
  n.ctimeSeconds,
3001
3005
  n.ctimeNanoseconds,
3002
3006
  n.ctimeMs,
3003
3007
  n.ctime
3004
- ), [r, o] = nr(
3008
+ ), [r, o] = or(
3005
3009
  n.mtimeSeconds,
3006
3010
  n.mtimeNanoseconds,
3007
3011
  n.mtimeMs,
@@ -3014,7 +3018,7 @@ function ir(n) {
3014
3018
  mtimeNanoseconds: o % H,
3015
3019
  dev: n.dev % H,
3016
3020
  ino: n.ino % H,
3017
- mode: Lo(n.mode % H),
3021
+ mode: qo(n.mode % H),
3018
3022
  uid: n.uid % H,
3019
3023
  gid: n.gid % H,
3020
3024
  // size of -1 happens over a BrowserFS HTTP Backend that doesn't serve Content-Length headers
@@ -3022,7 +3026,7 @@ function ir(n) {
3022
3026
  size: n.size > -1 ? n.size % H : 0
3023
3027
  };
3024
3028
  }
3025
- function Go(n) {
3029
+ function Ho(n) {
3026
3030
  return {
3027
3031
  assumeValid: !!(n & 32768),
3028
3032
  extended: !!(n & 16384),
@@ -3030,7 +3034,7 @@ function Go(n) {
3030
3034
  nameLength: n & 4095
3031
3035
  };
3032
3036
  }
3033
- function qo(n) {
3037
+ function zo(n) {
3034
3038
  const t = n.flags;
3035
3039
  return t.extended = !1, t.nameLength = Math.min(Buffer.from(n.path).length, 4095), (t.assumeValid ? 32768 : 0) + (t.extended ? 16384 : 0) + ((t.stage & 3) << 12) + (t.nameLength & 4095);
3036
3040
  }
@@ -3077,7 +3081,7 @@ class J {
3077
3081
  const d = {};
3078
3082
  d.ctimeSeconds = r.readUInt32BE(), d.ctimeNanoseconds = r.readUInt32BE(), d.mtimeSeconds = r.readUInt32BE(), d.mtimeNanoseconds = r.readUInt32BE(), d.dev = r.readUInt32BE(), d.ino = r.readUInt32BE(), d.mode = r.readUInt32BE(), d.uid = r.readUInt32BE(), d.gid = r.readUInt32BE(), d.size = r.readUInt32BE(), d.oid = r.slice(20).toString("hex");
3079
3083
  const w = r.readUInt16BE();
3080
- d.flags = Go(w);
3084
+ d.flags = Ho(w);
3081
3085
  const b = t.indexOf(0, r.tell() + 1) - r.tell();
3082
3086
  if (b < 1)
3083
3087
  throw new F(`Got a path length of: ${b}`);
@@ -3101,7 +3105,7 @@ class J {
3101
3105
  return [...this._unmergedPaths];
3102
3106
  }
3103
3107
  get entries() {
3104
- return [...this._entries.values()].sort(lr);
3108
+ return [...this._entries.values()].sort(pr);
3105
3109
  }
3106
3110
  get entriesMap() {
3107
3111
  return this._entries;
@@ -3125,7 +3129,7 @@ class J {
3125
3129
  uid: 0,
3126
3130
  gid: 0,
3127
3131
  size: 0
3128
- }), e = ir(e);
3132
+ }), e = ar(e);
3129
3133
  const c = Buffer.from(t), f = {
3130
3134
  ctimeSeconds: e.ctimeSeconds,
3131
3135
  ctimeNanoseconds: e.ctimeNanoseconds,
@@ -3171,8 +3175,8 @@ class J {
3171
3175
  `);
3172
3176
  }
3173
3177
  static async _entryToBuffer(t) {
3174
- const e = Buffer.from(t.path), r = Math.ceil((62 + e.length + 1) / 8) * 8, o = Buffer.alloc(r), c = new z(o), f = ir(t);
3175
- return c.writeUInt32BE(f.ctimeSeconds), c.writeUInt32BE(f.ctimeNanoseconds), c.writeUInt32BE(f.mtimeSeconds), c.writeUInt32BE(f.mtimeNanoseconds), c.writeUInt32BE(f.dev), c.writeUInt32BE(f.ino), c.writeUInt32BE(f.mode), c.writeUInt32BE(f.uid), c.writeUInt32BE(f.gid), c.writeUInt32BE(f.size), c.write(t.oid, 20, "hex"), c.writeUInt16BE(qo(t)), c.write(t.path, e.length, "utf8"), o;
3178
+ const e = Buffer.from(t.path), r = Math.ceil((62 + e.length + 1) / 8) * 8, o = Buffer.alloc(r), c = new z(o), f = ar(t);
3179
+ return c.writeUInt32BE(f.ctimeSeconds), c.writeUInt32BE(f.ctimeNanoseconds), c.writeUInt32BE(f.mtimeSeconds), c.writeUInt32BE(f.mtimeNanoseconds), c.writeUInt32BE(f.dev), c.writeUInt32BE(f.ino), c.writeUInt32BE(f.mode), c.writeUInt32BE(f.uid), c.writeUInt32BE(f.gid), c.writeUInt32BE(f.size), c.write(t.oid, 20, "hex"), c.writeUInt16BE(zo(t)), c.write(t.path, e.length, "utf8"), o;
3176
3180
  }
3177
3181
  async toObject() {
3178
3182
  const t = Buffer.alloc(12), e = new z(t);
@@ -3187,8 +3191,8 @@ class J {
3187
3191
  return Buffer.concat([c, Buffer.from(f, "hex")]);
3188
3192
  }
3189
3193
  }
3190
- async function Pr(n, t) {
3191
- const e = cr(n);
3194
+ async function Tr(n, t) {
3195
+ const e = ur(n);
3192
3196
  for (; ; ) {
3193
3197
  const { value: r, done: o } = await e.next();
3194
3198
  if (r && await t(r), o) break;
@@ -3198,7 +3202,7 @@ async function Pr(n, t) {
3198
3202
  async function ct(n) {
3199
3203
  let t = 0;
3200
3204
  const e = [];
3201
- await Pr(n, (c) => {
3205
+ await Tr(n, (c) => {
3202
3206
  e.push(c), t += c.byteLength;
3203
3207
  });
3204
3208
  const r = new Uint8Array(t);
@@ -3207,7 +3211,7 @@ async function ct(n) {
3207
3211
  r.set(c, o), o += c.byteLength;
3208
3212
  return r;
3209
3213
  }
3210
- class ee {
3214
+ class re {
3211
3215
  constructor() {
3212
3216
  this._queue = [];
3213
3217
  }
@@ -3243,9 +3247,9 @@ class ee {
3243
3247
  });
3244
3248
  }
3245
3249
  }
3246
- class Ho {
3250
+ class Wo {
3247
3251
  static demux(t) {
3248
- const e = D.streamReader(t), r = new ee(), o = new ee(), c = new ee(), f = async function() {
3252
+ const e = D.streamReader(t), r = new re(), o = new re(), c = new re(), f = async function() {
3249
3253
  const s = await e();
3250
3254
  if (s === null) return f();
3251
3255
  if (s === !0) {
@@ -3345,11 +3349,11 @@ class Ho {
3345
3349
  // return output
3346
3350
  // }
3347
3351
  }
3348
- async function kr(n) {
3349
- const { packetlines: t, packfile: e, progress: r } = Ho.demux(n), o = [], c = [], f = [];
3352
+ async function Or(n) {
3353
+ const { packetlines: t, packfile: e, progress: r } = Wo.demux(n), o = [], c = [], f = [];
3350
3354
  let s = !1, h = !1;
3351
3355
  return new Promise((y, d) => {
3352
- Pr(t, (w) => {
3356
+ Tr(t, (w) => {
3353
3357
  const b = w.toString("utf8").trim();
3354
3358
  if (b.startsWith("shallow")) {
3355
3359
  const v = b.slice(-41).trim();
@@ -3367,23 +3371,23 @@ async function kr(n) {
3367
3371
  });
3368
3372
  });
3369
3373
  }
3370
- typeof globalThis.Buffer > "u" && (globalThis.Buffer = le.Buffer);
3371
- class ge extends Error {
3374
+ typeof globalThis.Buffer > "u" && (globalThis.Buffer = he.Buffer);
3375
+ class me extends Error {
3372
3376
  constructor(t, e) {
3373
3377
  super(
3374
3378
  `Authentication required to access private repository: ${t}`
3375
3379
  ), this.name = "GitAuthenticationError", this.repoUrl = t, this.status = e;
3376
3380
  }
3377
3381
  }
3378
- async function xa(n, t, e, r) {
3379
- const o = (r == null ? void 0 : r.additionalHeaders) || {}, c = await Or(
3382
+ async function Ba(n, t, e, r) {
3383
+ const o = (r == null ? void 0 : r.additionalHeaders) || {}, c = await Dr(
3380
3384
  n,
3381
3385
  t,
3382
3386
  o
3383
- ), f = await Yo(c.idx, t, e), s = e.map((v) => f[v].oid), h = s.length > 0 ? await Xo(n, s, o) : null, y = {};
3387
+ ), f = await Ko(c.idx, t, e), s = e.map((v) => f[v].oid), h = s.length > 0 ? await Zo(n, s, o) : null, y = {};
3384
3388
  if (await Promise.all(
3385
3389
  e.map(async (v) => {
3386
- h && (y[v] = await Rr(
3390
+ h && (y[v] = await jr(
3387
3391
  h.idx,
3388
3392
  f[v].oid
3389
3393
  ));
@@ -3412,31 +3416,31 @@ async function xa(n, t, e, r) {
3412
3416
  files: y,
3413
3417
  packfiles: d,
3414
3418
  objects: [
3415
- ...await or(c),
3416
- ...await or(h)
3419
+ ...await sr(c),
3420
+ ...await sr(h)
3417
3421
  ],
3418
3422
  fileOids: b
3419
3423
  };
3420
3424
  }
3421
- const zo = /^[0-9a-f]{40}$/i;
3422
- async function Aa(n, t, e = {}) {
3423
- const r = await Or(
3425
+ const Vo = /^[0-9a-f]{40}$/i;
3426
+ async function Sa(n, t, e = {}) {
3427
+ const r = await Dr(
3424
3428
  n,
3425
3429
  t,
3426
3430
  e
3427
- ), o = await Jo(r.idx, t);
3428
- return o != null && o.object ? Tr(o) : [];
3431
+ ), o = await Xo(r.idx, t);
3432
+ return o != null && o.object ? Rr(o) : [];
3429
3433
  }
3430
- async function Ba(n, t, e = {}) {
3431
- const r = await Vo(n, t);
3434
+ async function Fa(n, t, e = {}) {
3435
+ const r = await Yo(n, t);
3432
3436
  if (r.resolvedOid)
3433
3437
  return r.resolvedOid;
3434
- const o = await oe(n, r.refname, e);
3438
+ const o = await ae(n, r.refname, e);
3435
3439
  if (!o)
3436
3440
  throw new Error(`Git ref "${r.refname}" not found at ${n}`);
3437
3441
  return o;
3438
3442
  }
3439
- function Tr(n) {
3443
+ function Rr(n) {
3440
3444
  return n.object.map((t) => {
3441
3445
  if (t.type === "blob")
3442
3446
  return {
@@ -3447,11 +3451,11 @@ function Tr(n) {
3447
3451
  return {
3448
3452
  name: t.path,
3449
3453
  type: "folder",
3450
- children: Tr(t)
3454
+ children: Rr(t)
3451
3455
  };
3452
3456
  }).filter((t) => !!(t != null && t.name));
3453
3457
  }
3454
- async function Wo(n, t, e = {}) {
3458
+ async function Jo(n, t, e = {}) {
3455
3459
  const r = Buffer.from(
3456
3460
  await ct([
3457
3461
  D.encode(`command=ls-refs
@@ -3479,17 +3483,17 @@ async function Wo(n, t, e = {}) {
3479
3483
  body: r
3480
3484
  });
3481
3485
  if (!o.ok)
3482
- throw o.status === 401 || o.status === 403 ? new ge(n, o.status) : new Error(
3486
+ throw o.status === 401 || o.status === 403 ? new me(n, o.status) : new Error(
3483
3487
  `Failed to fetch git refs from ${n}: ${o.status} ${o.statusText}`
3484
3488
  );
3485
3489
  const c = {};
3486
- for await (const f of Ko(o)) {
3490
+ for await (const f of Qo(o)) {
3487
3491
  const s = f.indexOf(" "), h = f.slice(0, s), d = f.slice(s + 1, f.length - 1).split(" ")[0];
3488
3492
  c[d] = h;
3489
3493
  }
3490
3494
  return c;
3491
3495
  }
3492
- async function Vo(n, t) {
3496
+ async function Yo(n, t) {
3493
3497
  switch (t.type ?? "infer") {
3494
3498
  case "commit":
3495
3499
  return {
@@ -3524,20 +3528,20 @@ async function Vo(n, t) {
3524
3528
  kind: "refname",
3525
3529
  refname: r
3526
3530
  };
3527
- if (zo.test(r))
3531
+ if (Vo.test(r))
3528
3532
  return {
3529
3533
  kind: "commit",
3530
3534
  refname: r,
3531
3535
  resolvedOid: r
3532
3536
  };
3533
- const o = `refs/heads/${r}`, c = await oe(n, o);
3537
+ const o = `refs/heads/${r}`, c = await ae(n, o);
3534
3538
  if (c)
3535
3539
  return {
3536
3540
  kind: "refname",
3537
3541
  refname: o,
3538
3542
  resolvedOid: c
3539
3543
  };
3540
- const f = `refs/tags/${r}`, s = await oe(n, f);
3544
+ const f = `refs/tags/${r}`, s = await ae(n, f);
3541
3545
  if (s)
3542
3546
  return {
3543
3547
  kind: "refname",
@@ -3550,8 +3554,8 @@ async function Vo(n, t) {
3550
3554
  throw new Error(`Invalid ref type: ${t.type}`);
3551
3555
  }
3552
3556
  }
3553
- async function oe(n, t, e) {
3554
- const r = await Wo(n, t, e), o = [t, `${t}^{}`];
3557
+ async function ae(n, t, e) {
3558
+ const r = await Jo(n, t, e), o = [t, `${t}^{}`];
3555
3559
  for (const c of o) {
3556
3560
  const f = c.trim();
3557
3561
  if (f in r)
@@ -3559,7 +3563,7 @@ async function oe(n, t, e) {
3559
3563
  }
3560
3564
  return null;
3561
3565
  }
3562
- async function Or(n, t, e) {
3566
+ async function Dr(n, t, e) {
3563
3567
  const r = Buffer.from(
3564
3568
  await ct([
3565
3569
  D.encode(
@@ -3589,10 +3593,10 @@ async function Or(n, t, e) {
3589
3593
  body: r
3590
3594
  });
3591
3595
  if (!o.ok)
3592
- throw o.status === 401 || o.status === 403 ? new ge(n, o.status) : new Error(
3596
+ throw o.status === 401 || o.status === 403 ? new me(n, o.status) : new Error(
3593
3597
  `Failed to fetch git objects from ${n}: ${o.status} ${o.statusText}`
3594
3598
  );
3595
- const c = Dr(o.body), f = await kr(c), s = Buffer.from(await ct(f.packfile)), h = await nt.fromPack({
3599
+ const c = Nr(o.body), f = await Or(c), s = Buffer.from(await ct(f.packfile)), h = await nt.fromPack({
3596
3600
  pack: s
3597
3601
  }), y = h.read;
3598
3602
  return h.read = async function({ oid: d, ...w }) {
@@ -3604,7 +3608,7 @@ async function Or(n, t, e) {
3604
3608
  promisor: !0
3605
3609
  };
3606
3610
  }
3607
- async function Jo(n, t) {
3611
+ async function Xo(n, t) {
3608
3612
  const e = await n.read({
3609
3613
  oid: t
3610
3614
  });
@@ -3618,7 +3622,7 @@ async function Jo(n, t) {
3618
3622
  }
3619
3623
  return r;
3620
3624
  }
3621
- async function or(n) {
3625
+ async function sr(n) {
3622
3626
  if (!n)
3623
3627
  return [];
3624
3628
  const t = [], e = /* @__PURE__ */ new Set();
@@ -3637,7 +3641,7 @@ async function or(n) {
3637
3641
  }
3638
3642
  return t;
3639
3643
  }
3640
- async function Yo(n, t, e) {
3644
+ async function Ko(n, t, e) {
3641
3645
  const r = await n.read({
3642
3646
  oid: t
3643
3647
  });
@@ -3669,7 +3673,7 @@ async function Yo(n, t, e) {
3669
3673
  }
3670
3674
  return c;
3671
3675
  }
3672
- async function Xo(n, t, e) {
3676
+ async function Zo(n, t, e) {
3673
3677
  const r = Buffer.from(
3674
3678
  await ct([
3675
3679
  ...t.map(
@@ -3693,10 +3697,10 @@ async function Xo(n, t, e) {
3693
3697
  body: r
3694
3698
  });
3695
3699
  if (!o.ok)
3696
- throw o.status === 401 || o.status === 403 ? new ge(n, o.status) : new Error(
3700
+ throw o.status === 401 || o.status === 403 ? new me(n, o.status) : new Error(
3697
3701
  `Failed to fetch git objects from ${n}: ${o.status} ${o.statusText}`
3698
3702
  );
3699
- const c = Dr(o.body), f = await kr(c), s = Buffer.from(await ct(f.packfile));
3703
+ const c = Nr(o.body), f = await Or(c), s = Buffer.from(await ct(f.packfile));
3700
3704
  return s.byteLength === 0 ? {
3701
3705
  idx: await nt.fromPack({
3702
3706
  pack: s
@@ -3711,7 +3715,7 @@ async function Xo(n, t, e) {
3711
3715
  promisor: !1
3712
3716
  };
3713
3717
  }
3714
- async function Rr(n, t) {
3718
+ async function jr(n, t) {
3715
3719
  const e = await n.read({ oid: t });
3716
3720
  if (X(e), e.type === "blob")
3717
3721
  return e.object;
@@ -3720,7 +3724,7 @@ async function Rr(n, t) {
3720
3724
  if (f === "blob") {
3721
3725
  const s = await n.read({ oid: c });
3722
3726
  X(s), r[o] = s.object;
3723
- } else f === "tree" && (r[o] = await Rr(n, c));
3727
+ } else f === "tree" && (r[o] = await jr(n, c));
3724
3728
  return r;
3725
3729
  }
3726
3730
  function X(n) {
@@ -3730,7 +3734,7 @@ function X(n) {
3730
3734
  n.object = M.from(n.object).parse();
3731
3735
  break;
3732
3736
  case "tree":
3733
- n.object = ue.from(n.object).entries();
3737
+ n.object = le.from(n.object).entries();
3734
3738
  break;
3735
3739
  case "blob":
3736
3740
  n.object = new Uint8Array(n.object), n.format = "content";
@@ -3746,7 +3750,7 @@ function X(n) {
3746
3750
  );
3747
3751
  }
3748
3752
  }
3749
- async function* Ko(n) {
3753
+ async function* Qo(n) {
3750
3754
  const t = await n.text();
3751
3755
  let e = 0;
3752
3756
  for (; e <= t.length; ) {
@@ -3756,7 +3760,7 @@ async function* Ko(n) {
3756
3760
  yield t.substring(e + 4, e + r), e += r;
3757
3761
  }
3758
3762
  }
3759
- function Dr(n) {
3763
+ function Nr(n) {
3760
3764
  if (n[Symbol.asyncIterator])
3761
3765
  return n;
3762
3766
  const t = n.getReader();
@@ -3775,8 +3779,8 @@ function Dr(n) {
3775
3779
  function ft(n) {
3776
3780
  return n instanceof Uint8Array, Uint8Array.from(n);
3777
3781
  }
3778
- const Zo = fe.deflate, Qo = /^[0-9a-f]{40}$/i;
3779
- async function ta(n) {
3782
+ const ta = ue.deflate, ea = /^[0-9a-f]{40}$/i;
3783
+ async function ra(n) {
3780
3784
  const t = {}, e = new TextEncoder();
3781
3785
  return await Promise.all(
3782
3786
  n.map(async ({ oid: r, type: o, body: c }) => {
@@ -3784,12 +3788,12 @@ async function ta(n) {
3784
3788
  return;
3785
3789
  const f = e.encode(`${o} ${c.length}\0`), s = new Uint8Array(f.length + c.length);
3786
3790
  s.set(f, 0), s.set(c, f.length);
3787
- const h = await Zo(s), y = r.slice(0, 2), d = r.slice(2);
3791
+ const h = await ta(s), y = r.slice(0, 2), d = r.slice(2);
3788
3792
  t[`.git/objects/${y}/${d}`] = h;
3789
3793
  })
3790
3794
  ), t;
3791
3795
  }
3792
- function ea(n, t, e) {
3796
+ function na(n, t, e) {
3793
3797
  const r = (n == null ? void 0 : n.trim()) ?? "";
3794
3798
  let o = null;
3795
3799
  switch (t) {
@@ -3806,7 +3810,7 @@ function ea(n, t, e) {
3806
3810
  o = null;
3807
3811
  break;
3808
3812
  default:
3809
- r.startsWith("refs/") ? o = r : Qo.test(r) ? o = null : r && r !== "HEAD" && (o = `refs/heads/${r}`);
3813
+ r.startsWith("refs/") ? o = r : ea.test(r) ? o = null : r && r !== "HEAD" && (o = `refs/heads/${r}`);
3810
3814
  break;
3811
3815
  }
3812
3816
  const c = o ? `ref: ${o}
@@ -3819,7 +3823,7 @@ function ea(n, t, e) {
3819
3823
  tagName: y
3820
3824
  };
3821
3825
  }
3822
- function ra(n, {
3826
+ function ia(n, {
3823
3827
  branchName: t,
3824
3828
  partialCloneFilter: e
3825
3829
  }) {
@@ -3844,7 +3848,7 @@ function ra(n, {
3844
3848
  `) + `
3845
3849
  `;
3846
3850
  }
3847
- async function Sa({
3851
+ async function Ia({
3848
3852
  repoUrl: n,
3849
3853
  commitHash: t,
3850
3854
  ref: e,
@@ -3853,8 +3857,8 @@ async function Sa({
3853
3857
  fileOids: c,
3854
3858
  pathPrefix: f
3855
3859
  }) {
3856
- const s = {}, h = ea(e, r, t);
3857
- s[".git/HEAD"] = h.headContent, s[".git/config"] = ra(n, {
3860
+ const s = {}, h = na(e, r, t);
3861
+ s[".git/HEAD"] = h.headContent, s[".git/config"] = ia(n, {
3858
3862
  branchName: h.branchName
3859
3863
  }), s[".git/description"] = `WordPress Playground clone
3860
3864
  `, s[".git/shallow"] = `${t}
@@ -3863,7 +3867,7 @@ async function Sa({
3863
3867
  `, s[`.git/refs/remotes/origin/${h.branchName}`] = `${t}
3864
3868
  `, s[".git/refs/remotes/origin/HEAD"] = `ref: refs/remotes/origin/${h.branchName}
3865
3869
  `), h.tagName && (s[`.git/refs/tags/${h.tagName}`] = `${t}
3866
- `), Object.assign(s, await ta(o));
3870
+ `), Object.assign(s, await ra(o));
3867
3871
  const y = new J();
3868
3872
  for (const [w, b] of Object.entries(c)) {
3869
3873
  const v = w.substring(f.length).replace(/^\/+/, "");
@@ -3888,8 +3892,8 @@ async function Sa({
3888
3892
  const d = await y.toObject();
3889
3893
  return s[".git/index"] = Uint8Array.from(d), s;
3890
3894
  }
3891
- function Fa(n, t) {
3892
- t = ce(t);
3895
+ function _a(n, t) {
3896
+ t = fe(t);
3893
3897
  const e = ["", ".", "/"].includes(t);
3894
3898
  let r = n;
3895
3899
  if (e)
@@ -3918,10 +3922,10 @@ function Fa(n, t) {
3918
3922
  }
3919
3923
  return o;
3920
3924
  }
3921
- function Ia(n, t) {
3925
+ function $a(n, t) {
3922
3926
  return n.startsWith(t) ? n.substring(t.length) : n;
3923
3927
  }
3924
- async function _a(n, t) {
3928
+ async function Ua(n, t) {
3925
3929
  await t.clear();
3926
3930
  const e = async (r) => {
3927
3931
  const o = await n.listFiles(r);
@@ -3937,7 +3941,7 @@ async function _a(n, t) {
3937
3941
  };
3938
3942
  await e("/");
3939
3943
  }
3940
- class $a extends EventTarget {
3944
+ class Pa extends EventTarget {
3941
3945
  constructor(t) {
3942
3946
  super(), this.encoder = new TextEncoder(), this.decoder = new TextDecoder(), this.backend = t;
3943
3947
  }
@@ -3977,7 +3981,7 @@ class $a extends EventTarget {
3977
3981
  await this.backend.clear(), this.dispatchEvent(new Event("change"));
3978
3982
  }
3979
3983
  }
3980
- class Ua {
3984
+ class ka {
3981
3985
  constructor(t) {
3982
3986
  this.fileTree = t;
3983
3987
  }
@@ -4009,24 +4013,24 @@ class Ua {
4009
4013
  throw new Error(`File not found at ${t}`);
4010
4014
  }
4011
4015
  }
4012
- class ae {
4016
+ class se {
4013
4017
  constructor(t) {
4014
4018
  this.entries = /* @__PURE__ */ new Map(), this.zipReader = t;
4015
4019
  }
4016
4020
  static fromStream(t) {
4017
- const e = new _e(
4018
- new $e(new K(t, "archive.zip"))
4021
+ const e = new $e(
4022
+ new Ue(new K(t, "archive.zip"))
4019
4023
  );
4020
- return new ae(e);
4024
+ return new se(e);
4021
4025
  }
4022
4026
  static fromArrayBuffer(t) {
4023
- const e = new _e(
4024
- new $e(new Blob([t]))
4027
+ const e = new $e(
4028
+ new Ue(new Blob([t]))
4025
4029
  );
4026
- return new ae(e);
4030
+ return new se(e);
4027
4031
  }
4028
4032
  async read(t) {
4029
- const e = await this.getEntry(t), r = await e.getData(new rn());
4033
+ const e = await this.getEntry(t), r = await e.getData(new on());
4030
4034
  return new K(r.stream(), t, {
4031
4035
  filesize: e.uncompressedSize
4032
4036
  });
@@ -4046,7 +4050,7 @@ class ae {
4046
4050
  return this.entries;
4047
4051
  }
4048
4052
  }
4049
- class Pa {
4053
+ class Ta {
4050
4054
  /**
4051
4055
  * Creates a new OverlayFilesystem.
4052
4056
  *
@@ -4086,7 +4090,7 @@ class Pa {
4086
4090
  );
4087
4091
  }
4088
4092
  }
4089
- class ka {
4093
+ class Oa {
4090
4094
  constructor(t) {
4091
4095
  if (this.baseUrl = "", this.options = t, this.isDataUrl = t.baseUrl.startsWith("data:"), this.isDataUrl)
4092
4096
  return;
@@ -4102,7 +4106,7 @@ class ka {
4102
4106
  throw new Error(
4103
4107
  "FetchFilesystem cannot fetch files from data URLs"
4104
4108
  );
4105
- t = ce(t);
4109
+ t = fe(t);
4106
4110
  const e = t.replace(/^\//, ""), r = new URL(e, this.baseUrl).toString();
4107
4111
  if (!r.startsWith(this.baseUrl))
4108
4112
  throw new Error(
@@ -4117,7 +4121,7 @@ class ka {
4117
4121
  return new K(c.body, t, { filesize: f });
4118
4122
  }
4119
4123
  }
4120
- class Ta {
4124
+ class Ra {
4121
4125
  constructor(t) {
4122
4126
  this.root = t;
4123
4127
  }
@@ -4154,7 +4158,7 @@ class Ta {
4154
4158
  )
4155
4159
  ) : e(
4156
4160
  new K(
4157
- na(c),
4161
+ oa(c),
4158
4162
  t,
4159
4163
  {
4160
4164
  filesize: s.size
@@ -4165,14 +4169,14 @@ class Ta {
4165
4169
  });
4166
4170
  }
4167
4171
  }
4168
- function na(n) {
4172
+ function oa(n) {
4169
4173
  return new ReadableStream({
4170
4174
  start(e) {
4171
4175
  n.on("data", (r) => e.enqueue(r)), n.on("end", () => e.close());
4172
4176
  }
4173
4177
  });
4174
4178
  }
4175
- class se {
4179
+ class ce {
4176
4180
  constructor(t) {
4177
4181
  this.opfsRoot = t;
4178
4182
  }
@@ -4180,7 +4184,7 @@ class se {
4180
4184
  * Create a backend for a specific OPFS directory handle.
4181
4185
  */
4182
4186
  static fromDirectoryHandle(t) {
4183
- return new se(t);
4187
+ return new ce(t);
4184
4188
  }
4185
4189
  /**
4186
4190
  * Create a backend for a specific path in OPFS.
@@ -4196,7 +4200,7 @@ class se {
4196
4200
  const o = t.split("/").filter(Boolean);
4197
4201
  for (const c of o)
4198
4202
  r = await r.getDirectoryHandle(c, { create: e });
4199
- return new se(r);
4203
+ return new ce(r);
4200
4204
  }
4201
4205
  async clear() {
4202
4206
  for await (const [t] of this.opfsRoot.entries())
@@ -4333,7 +4337,7 @@ class se {
4333
4337
  }
4334
4338
  }
4335
4339
  }
4336
- class Oa {
4340
+ class Da {
4337
4341
  constructor(t = {}) {
4338
4342
  this.root = { type: "dir", children: {} };
4339
4343
  for (const [e, r] of Object.entries(t))
@@ -4470,40 +4474,40 @@ class Oa {
4470
4474
  }
4471
4475
  }
4472
4476
  export {
4473
- $a as EventedFilesystem,
4474
- ka as FetchFilesystem,
4475
- ge as GitAuthenticationError,
4476
- Ua as InMemoryFilesystem,
4477
- Oa as InMemoryFilesystemBackend,
4478
- Ta as NodeJsFilesystem,
4479
- se as OpfsFilesystemBackend,
4480
- Pa as OverlayFilesystem,
4481
- ae as ZipFilesystem,
4482
- ba as changeset,
4483
- Ea as clearContentsFromMountDevice,
4484
- _a as copyFilesystem,
4485
- ua as createClient,
4486
- wa as createCommit,
4487
- Sa as createDotGitDirectory,
4488
- da as createOrUpdateBranch,
4489
- ga as createTree,
4490
- Ue as createTreeNode,
4491
- cn as createTreeNodes,
4492
- fn as deleteFile,
4493
- hn as directoryHandleFromMountDevice,
4494
- va as directoryHandleToOpfsPath,
4495
- la as filesListToObject,
4496
- ya as fork,
4497
- ha as getArtifact,
4498
- nn as getFilesFromDirectory,
4499
- ma as iterateFiles,
4500
- Fa as listDescendantFiles,
4501
- Aa as listGitFiles,
4502
- Wo as listGitRefs,
4503
- pa as mayPush,
4504
- pn as opfsPathToDirectoryHandle,
4505
- Ia as removePathPrefix,
4506
- Ba as resolveCommitHash,
4507
- xa as sparseCheckout
4477
+ Pa as EventedFilesystem,
4478
+ Oa as FetchFilesystem,
4479
+ me as GitAuthenticationError,
4480
+ ka as InMemoryFilesystem,
4481
+ Da as InMemoryFilesystemBackend,
4482
+ Ra as NodeJsFilesystem,
4483
+ ce as OpfsFilesystemBackend,
4484
+ Ta as OverlayFilesystem,
4485
+ se as ZipFilesystem,
4486
+ Ea as changeset,
4487
+ Aa as clearContentsFromMountDevice,
4488
+ Ua as copyFilesystem,
4489
+ ha as createClient,
4490
+ ma as createCommit,
4491
+ Ia as createDotGitDirectory,
4492
+ wa as createOrUpdateBranch,
4493
+ ba as createTree,
4494
+ Pe as createTreeNode,
4495
+ un as createTreeNodes,
4496
+ ln as deleteFile,
4497
+ dn as directoryHandleFromMountDevice,
4498
+ xa as directoryHandleToOpfsPath,
4499
+ pa as filesListToObject,
4500
+ ga as fork,
4501
+ da as getArtifact,
4502
+ an as getFilesFromDirectory,
4503
+ va as iterateFiles,
4504
+ _a as listDescendantFiles,
4505
+ Sa as listGitFiles,
4506
+ Jo as listGitRefs,
4507
+ ya as mayPush,
4508
+ yn as opfsPathToDirectoryHandle,
4509
+ $a as removePathPrefix,
4510
+ Fa as resolveCommitHash,
4511
+ Ba as sparseCheckout
4508
4512
  };
4509
4513
  //# sourceMappingURL=index.js.map