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