@wp-playground/client 3.0.15 → 3.0.17
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 +40 -40
- package/index.js +391 -391
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -107,7 +107,7 @@ class Ln {
|
|
|
107
107
|
return this.getBundle() || this.getDeclaration();
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
const nd = "playground-log",
|
|
110
|
+
const nd = "playground-log", Lo = (e, ...t) => {
|
|
111
111
|
Te.dispatchEvent(
|
|
112
112
|
new CustomEvent(nd, {
|
|
113
113
|
detail: {
|
|
@@ -117,10 +117,10 @@ const nd = "playground-log", Co = (e, ...t) => {
|
|
|
117
117
|
})
|
|
118
118
|
);
|
|
119
119
|
}, sd = (e, ...t) => {
|
|
120
|
-
switch (typeof e.message == "string" ? Reflect.set(e, "message",
|
|
120
|
+
switch (typeof e.message == "string" ? Reflect.set(e, "message", Ea(e.message)) : e.message.message && typeof e.message.message == "string" && Reflect.set(
|
|
121
121
|
e.message,
|
|
122
122
|
"message",
|
|
123
|
-
|
|
123
|
+
Ea(e.message.message)
|
|
124
124
|
), e.severity) {
|
|
125
125
|
case ut.Debug:
|
|
126
126
|
console.debug(e.message, ...t);
|
|
@@ -141,22 +141,22 @@ const nd = "playground-log", Co = (e, ...t) => {
|
|
|
141
141
|
console.log(e.message, ...t);
|
|
142
142
|
}
|
|
143
143
|
}, id = (e) => e instanceof Error ? [e.message, e.stack].join(`
|
|
144
|
-
`) : JSON.stringify(e, null, 2), hp = [],
|
|
144
|
+
`) : JSON.stringify(e, null, 2), hp = [], Ro = (e) => {
|
|
145
145
|
hp.push(e);
|
|
146
|
-
},
|
|
146
|
+
}, ka = (e) => {
|
|
147
147
|
if (e.raw === !0)
|
|
148
|
-
|
|
148
|
+
Ro(e.message);
|
|
149
149
|
else {
|
|
150
150
|
const t = fd(
|
|
151
151
|
typeof e.message == "object" ? id(e.message) : e.message,
|
|
152
152
|
e.severity,
|
|
153
153
|
e.prefix ?? gr.JS
|
|
154
154
|
);
|
|
155
|
-
|
|
155
|
+
Ro(t);
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
let gi = 0;
|
|
159
|
-
const
|
|
159
|
+
const Io = "/wordpress/wp-content/debug.log", ad = async (e) => await e.fileExists(Io) ? await e.readFileAsText(Io) : "", mp = (e, t) => {
|
|
160
160
|
t.addEventListener("request.end", async () => {
|
|
161
161
|
const r = await ad(t);
|
|
162
162
|
if (r.length > gi) {
|
|
@@ -203,7 +203,7 @@ class od extends EventTarget {
|
|
|
203
203
|
* @returns string[]
|
|
204
204
|
*/
|
|
205
205
|
getLogs() {
|
|
206
|
-
return this.handlers.includes(
|
|
206
|
+
return this.handlers.includes(ka) ? [...hp] : (this.error(`Logs aren't stored because the logToMemory handler isn't registered.
|
|
207
207
|
If you're using a custom logger instance, make sure to register logToMemory handler.
|
|
208
208
|
`), []);
|
|
209
209
|
}
|
|
@@ -317,11 +317,11 @@ class od extends EventTarget {
|
|
|
317
317
|
const ld = () => {
|
|
318
318
|
try {
|
|
319
319
|
if (process.env.NODE_ENV === "test")
|
|
320
|
-
return [
|
|
320
|
+
return [ka, Lo];
|
|
321
321
|
} catch {
|
|
322
322
|
}
|
|
323
|
-
return [
|
|
324
|
-
}, Te = new od(ld()),
|
|
323
|
+
return [ka, sd, Lo];
|
|
324
|
+
}, Te = new od(ld()), Ea = (e) => e.replace(/\t/g, ""), fd = (e, t, r) => {
|
|
325
325
|
const i = /* @__PURE__ */ new Date(), a = new Intl.DateTimeFormat("en-GB", {
|
|
326
326
|
year: "numeric",
|
|
327
327
|
month: "short",
|
|
@@ -335,7 +335,7 @@ const ld = () => {
|
|
|
335
335
|
timeZone: "UTC",
|
|
336
336
|
timeZoneName: "short"
|
|
337
337
|
}).format(i), n = a + " " + s;
|
|
338
|
-
return e =
|
|
338
|
+
return e = Ea(e), `[${n}] ${r} ${t.name}: ${e}`;
|
|
339
339
|
}, pd = 5 * 1024 * 1024;
|
|
340
340
|
function cd(e, t) {
|
|
341
341
|
const r = e.headers.get("content-length") || "", i = parseInt(r, 10) || pd;
|
|
@@ -382,7 +382,7 @@ function yp(e, t, r) {
|
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const _i = 1e-5;
|
|
386
386
|
class ti extends EventTarget {
|
|
387
387
|
constructor({
|
|
388
388
|
weight: t = 1,
|
|
@@ -427,7 +427,7 @@ class ti extends EventTarget {
|
|
|
427
427
|
* ```
|
|
428
428
|
*/
|
|
429
429
|
stage(t, r = "") {
|
|
430
|
-
if (t || (t = this._selfWeight), this._selfWeight - t < -
|
|
430
|
+
if (t || (t = this._selfWeight), this._selfWeight - t < -_i)
|
|
431
431
|
throw new Error(
|
|
432
432
|
`Cannot add a stage with weight ${t} as the total weight of registered stages would exceed 1.`
|
|
433
433
|
);
|
|
@@ -469,7 +469,7 @@ class ti extends EventTarget {
|
|
|
469
469
|
}, i);
|
|
470
470
|
}
|
|
471
471
|
set(t) {
|
|
472
|
-
this._selfProgress = Math.min(t, 100), this.notifyProgress(), this._selfProgress +
|
|
472
|
+
this._selfProgress = Math.min(t, 100), this.notifyProgress(), this._selfProgress + _i >= 100 && this.finish();
|
|
473
473
|
}
|
|
474
474
|
finish() {
|
|
475
475
|
this._fillInterval && clearInterval(this._fillInterval), this._selfDone = !0, this._selfProgress = 100, this._isFilling = !1, this._fillInterval = void 0, this.notifyProgress(), this.notifyDone();
|
|
@@ -487,7 +487,7 @@ class ti extends EventTarget {
|
|
|
487
487
|
this._selfCaption = t, this.notifyProgress();
|
|
488
488
|
}
|
|
489
489
|
get done() {
|
|
490
|
-
return this.progress +
|
|
490
|
+
return this.progress + _i >= 100;
|
|
491
491
|
}
|
|
492
492
|
get progress() {
|
|
493
493
|
if (this._selfDone)
|
|
@@ -607,7 +607,7 @@ function Ae(...e) {
|
|
|
607
607
|
const i = r[0] === "/", a = t(r);
|
|
608
608
|
return r = ri(r), !r && !i && (r = "."), r && a && !t(r) && (r += "/"), r;
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function Pa(e) {
|
|
611
611
|
if (e === "/")
|
|
612
612
|
return "/";
|
|
613
613
|
e = ri(e);
|
|
@@ -639,7 +639,7 @@ function md(e = 36, t = "!@#$%^&*()_+=-[]/.,<>?") {
|
|
|
639
639
|
i += r[Math.floor(Math.random() * r.length)];
|
|
640
640
|
return i;
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function Xa() {
|
|
643
643
|
return md(36, "-_");
|
|
644
644
|
}
|
|
645
645
|
function xt(e) {
|
|
@@ -688,7 +688,7 @@ const wd = {
|
|
|
688
688
|
201: "Created",
|
|
689
689
|
200: "OK"
|
|
690
690
|
};
|
|
691
|
-
class
|
|
691
|
+
class wi {
|
|
692
692
|
constructor(t, r, i, a) {
|
|
693
693
|
this.parsedHeaders = null, this.cachedStdoutBytes = null, this.cachedStderrText = null, this.headersStream = t, this.stdout = r, this.stderr = i, this.exitCode = a;
|
|
694
694
|
}
|
|
@@ -861,10 +861,10 @@ class kn {
|
|
|
861
861
|
}
|
|
862
862
|
const $o = "/internal/shared/php.ini";
|
|
863
863
|
var wp = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
864
|
-
function
|
|
864
|
+
function Ja(e) {
|
|
865
865
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
866
866
|
}
|
|
867
|
-
const { hasOwnProperty:
|
|
867
|
+
const { hasOwnProperty: bi } = Object.prototype, Aa = (e, t = {}) => {
|
|
868
868
|
typeof t == "string" && (t = { section: t }), t.align = t.align === !0, t.newline = t.newline === !0, t.sort = t.sort === !0, t.whitespace = t.whitespace === !0 || t.align === !0, t.platform = t.platform || typeof process < "u" && process.platform, t.bracketedArray = t.bracketedArray !== !1;
|
|
869
869
|
const r = t.platform === "win32" ? `\r
|
|
870
870
|
` : `
|
|
@@ -884,7 +884,7 @@ const { hasOwnProperty: wi } = Object.prototype, Pa = (e, t = {}) => {
|
|
|
884
884
|
}
|
|
885
885
|
t.section && o.length && (o = "[" + tr(t.section) + "]" + (t.newline ? r + r : r) + o);
|
|
886
886
|
for (const p of a) {
|
|
887
|
-
const c = bp(p, ".").join("\\."), m = (t.section ? t.section + "." : "") + c, h =
|
|
887
|
+
const c = bp(p, ".").join("\\."), m = (t.section ? t.section + "." : "") + c, h = Aa(e[p], {
|
|
888
888
|
...t,
|
|
889
889
|
section: m
|
|
890
890
|
});
|
|
@@ -929,17 +929,17 @@ const Do = (e, t = {}) => {
|
|
|
929
929
|
if (g === "__proto__")
|
|
930
930
|
continue;
|
|
931
931
|
const R = c[3] ? ks(c[4]) : !0, y = R === "true" || R === "false" || R === "null" ? JSON.parse(R) : R;
|
|
932
|
-
h && (
|
|
932
|
+
h && (bi.call(i, g) ? Array.isArray(i[g]) || (i[g] = [i[g]]) : i[g] = []), Array.isArray(i[g]) ? i[g].push(y) : i[g] = y;
|
|
933
933
|
}
|
|
934
934
|
const f = [];
|
|
935
935
|
for (const p of Object.keys(r)) {
|
|
936
|
-
if (!
|
|
936
|
+
if (!bi.call(r, p) || typeof r[p] != "object" || Array.isArray(r[p]))
|
|
937
937
|
continue;
|
|
938
938
|
const c = bp(p, ".");
|
|
939
939
|
i = r;
|
|
940
940
|
const m = c.pop(), h = m.replace(/\\\./g, ".");
|
|
941
941
|
for (const g of c)
|
|
942
|
-
g !== "__proto__" && ((!
|
|
942
|
+
g !== "__proto__" && ((!bi.call(i, g) || typeof i[g] != "object") && (i[g] = /* @__PURE__ */ Object.create(null)), i = i[g]);
|
|
943
943
|
i === r && h === m || (i[h] = r[p], f.push(p));
|
|
944
944
|
}
|
|
945
945
|
for (const p of f)
|
|
@@ -971,8 +971,8 @@ const Do = (e, t = {}) => {
|
|
|
971
971
|
var Ho = {
|
|
972
972
|
parse: Do,
|
|
973
973
|
decode: Do,
|
|
974
|
-
stringify:
|
|
975
|
-
encode:
|
|
974
|
+
stringify: Aa,
|
|
975
|
+
encode: Aa,
|
|
976
976
|
safe: tr,
|
|
977
977
|
unsafe: ks
|
|
978
978
|
};
|
|
@@ -1066,7 +1066,7 @@ ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symb
|
|
|
1066
1066
|
}, ReadableStream.prototype.iterate = // @ts-ignore
|
|
1067
1067
|
ReadableStream.prototype[Symbol.asyncIterator]);
|
|
1068
1068
|
new pn({ concurrency: 10 });
|
|
1069
|
-
const
|
|
1069
|
+
const Qa = [
|
|
1070
1070
|
"8.4",
|
|
1071
1071
|
"8.3",
|
|
1072
1072
|
"8.2",
|
|
@@ -1075,12 +1075,12 @@ const Ja = [
|
|
|
1075
1075
|
"7.4",
|
|
1076
1076
|
"7.3",
|
|
1077
1077
|
"7.2"
|
|
1078
|
-
], Ed =
|
|
1078
|
+
], Ed = Qa[0], Jb = Qa;
|
|
1079
1079
|
async function si(e, t, r, { rmRoot: i = !1 } = {}) {
|
|
1080
1080
|
i && await e.isDir(t) && await e.rmdir(t, { recursive: !0 });
|
|
1081
1081
|
for (const [a, s] of Object.entries(r)) {
|
|
1082
1082
|
const n = Ae(t, a);
|
|
1083
|
-
await e.fileExists(
|
|
1083
|
+
await e.fileExists(Pa(n)) || await e.mkdir(Pa(n)), s instanceof Uint8Array || typeof s == "string" ? await e.writeFile(n, s) : await si(e, n, s);
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
1086
|
/**
|
|
@@ -1090,7 +1090,7 @@ async function si(e, t, r, { rmRoot: i = !1 } = {}) {
|
|
|
1090
1090
|
* Copyright 2019 Google LLC
|
|
1091
1091
|
* SPDX-License-Identifier: Apache-2.0
|
|
1092
1092
|
*/
|
|
1093
|
-
const xp = Symbol("Comlink.proxy"), Pd = Symbol("Comlink.endpoint"), Ad = Symbol("Comlink.releaseProxy"),
|
|
1093
|
+
const xp = Symbol("Comlink.proxy"), Pd = Symbol("Comlink.endpoint"), Ad = Symbol("Comlink.releaseProxy"), vi = Symbol("Comlink.finalizer"), Es = Symbol("Comlink.thrown");
|
|
1094
1094
|
/**
|
|
1095
1095
|
* @license
|
|
1096
1096
|
* Copyright 2019 Google LLC
|
|
@@ -1110,10 +1110,10 @@ const js = {
|
|
|
1110
1110
|
canHandle: (e) => Sp(e) && e[xp],
|
|
1111
1111
|
serialize(e) {
|
|
1112
1112
|
const { port1: t, port2: r } = new MessageChannel();
|
|
1113
|
-
return
|
|
1113
|
+
return eo(e, t), [r, [r]];
|
|
1114
1114
|
},
|
|
1115
1115
|
deserialize(e) {
|
|
1116
|
-
return e.start(),
|
|
1116
|
+
return e.start(), to(e);
|
|
1117
1117
|
}
|
|
1118
1118
|
}, Od = {
|
|
1119
1119
|
canHandle: (e) => Sp(e) && Es in e,
|
|
@@ -1144,7 +1144,7 @@ function Cd(e, t) {
|
|
|
1144
1144
|
return !0;
|
|
1145
1145
|
return !1;
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function eo(e, t = globalThis, r = ["*"], i) {
|
|
1148
1148
|
t.addEventListener("message", function a(s) {
|
|
1149
1149
|
if (!s || !s.data)
|
|
1150
1150
|
return;
|
|
@@ -1180,7 +1180,7 @@ function Qa(e, t = globalThis, r = ["*"], i) {
|
|
|
1180
1180
|
case bt.ENDPOINT:
|
|
1181
1181
|
{
|
|
1182
1182
|
const { port1: g, port2: R } = new MessageChannel();
|
|
1183
|
-
|
|
1183
|
+
eo(e, R), c = Dd(g, [g]);
|
|
1184
1184
|
}
|
|
1185
1185
|
break;
|
|
1186
1186
|
case bt.RELEASE:
|
|
@@ -1194,7 +1194,7 @@ function Qa(e, t = globalThis, r = ["*"], i) {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
Promise.resolve(c).catch((m) => ({ value: m, [Es]: 0 })).then((m) => {
|
|
1196
1196
|
const [h, g] = Ws(m);
|
|
1197
|
-
t.postMessage({ ...h, id: n }, g), o === bt.RELEASE && (t.removeEventListener("message", a), kp(t),
|
|
1197
|
+
t.postMessage({ ...h, id: n }, g), o === bt.RELEASE && (t.removeEventListener("message", a), kp(t), vi in e && typeof e[vi] == "function" && e[vi]());
|
|
1198
1198
|
}).catch(() => {
|
|
1199
1199
|
const [m, h] = Ws({
|
|
1200
1200
|
value: new TypeError("Unserializable return value"),
|
|
@@ -1211,7 +1211,7 @@ function Ld(e) {
|
|
|
1211
1211
|
function kp(e) {
|
|
1212
1212
|
Ld(e) && e.close();
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function to(e, t) {
|
|
1215
1215
|
const r = /* @__PURE__ */ new Map();
|
|
1216
1216
|
return e.addEventListener("message", function(a) {
|
|
1217
1217
|
const { data: s } = a;
|
|
@@ -1224,7 +1224,7 @@ function eo(e, t) {
|
|
|
1224
1224
|
} finally {
|
|
1225
1225
|
r.delete(s.id);
|
|
1226
1226
|
}
|
|
1227
|
-
}),
|
|
1227
|
+
}), Ta(e, r, [], t);
|
|
1228
1228
|
}
|
|
1229
1229
|
function os(e) {
|
|
1230
1230
|
if (e)
|
|
@@ -1248,7 +1248,7 @@ function Rd(e, t) {
|
|
|
1248
1248
|
function Id(e) {
|
|
1249
1249
|
Us && Us.unregister(e);
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function Ta(e, t, r = [], i = function() {
|
|
1252
1252
|
}) {
|
|
1253
1253
|
let a = !1;
|
|
1254
1254
|
const s = new Proxy(i, {
|
|
@@ -1266,7 +1266,7 @@ function Aa(e, t, r = [], i = function() {
|
|
|
1266
1266
|
}).then(Er);
|
|
1267
1267
|
return f.then.bind(f);
|
|
1268
1268
|
}
|
|
1269
|
-
return
|
|
1269
|
+
return Ta(e, t, [...r, o]);
|
|
1270
1270
|
},
|
|
1271
1271
|
set(n, o, f) {
|
|
1272
1272
|
os(a);
|
|
@@ -1290,7 +1290,7 @@ function Aa(e, t, r = [], i = function() {
|
|
|
1290
1290
|
type: bt.ENDPOINT
|
|
1291
1291
|
}).then(Er);
|
|
1292
1292
|
if (p === "bind")
|
|
1293
|
-
return
|
|
1293
|
+
return Ta(e, t, r.slice(0, -1));
|
|
1294
1294
|
const [c, m] = Fo(f);
|
|
1295
1295
|
return Yr(
|
|
1296
1296
|
e,
|
|
@@ -1415,9 +1415,9 @@ const jd = [
|
|
|
1415
1415
|
globalThis.AssertionError,
|
|
1416
1416
|
globalThis.SystemError
|
|
1417
1417
|
].filter(Boolean).map((e) => [e.name, e]), Nd = new Map(jd);
|
|
1418
|
-
class
|
|
1418
|
+
class ro extends Error {
|
|
1419
1419
|
constructor(t) {
|
|
1420
|
-
super(
|
|
1420
|
+
super(ro._prepareSuperMessage(t)), this.name = "NonError";
|
|
1421
1421
|
}
|
|
1422
1422
|
static _prepareSuperMessage(t) {
|
|
1423
1423
|
try {
|
|
@@ -1452,14 +1452,14 @@ const Ud = [
|
|
|
1452
1452
|
property: "errors",
|
|
1453
1453
|
enumerable: !1
|
|
1454
1454
|
}
|
|
1455
|
-
],
|
|
1456
|
-
|
|
1455
|
+
], Oa = /* @__PURE__ */ new WeakSet(), Wd = (e) => {
|
|
1456
|
+
Oa.add(e);
|
|
1457
1457
|
const t = e.toJSON();
|
|
1458
|
-
return
|
|
1458
|
+
return Oa.delete(e), t;
|
|
1459
1459
|
}, Tp = (e) => {
|
|
1460
1460
|
const t = Nd.get(e) ?? Error;
|
|
1461
1461
|
return t === AggregateError ? new t([]) : new t();
|
|
1462
|
-
},
|
|
1462
|
+
}, no = ({
|
|
1463
1463
|
from: e,
|
|
1464
1464
|
seen: t,
|
|
1465
1465
|
to: r,
|
|
@@ -1471,9 +1471,9 @@ const Ud = [
|
|
|
1471
1471
|
}) => {
|
|
1472
1472
|
if (r || (Array.isArray(e) ? r = [] : !o && Bo(e) ? r = Tp(e.name) : r = {}), t.push(e), s >= a)
|
|
1473
1473
|
return r;
|
|
1474
|
-
if (n && typeof e.toJSON == "function" && !
|
|
1474
|
+
if (n && typeof e.toJSON == "function" && !Oa.has(e))
|
|
1475
1475
|
return Wd(e);
|
|
1476
|
-
const f = (p) =>
|
|
1476
|
+
const f = (p) => no({
|
|
1477
1477
|
from: p,
|
|
1478
1478
|
seen: [...t],
|
|
1479
1479
|
forceEnumerable: i,
|
|
@@ -1518,7 +1518,7 @@ const Ud = [
|
|
|
1518
1518
|
};
|
|
1519
1519
|
function Md(e, t = {}) {
|
|
1520
1520
|
const { maxDepth: r = Number.POSITIVE_INFINITY, useToJSON: i = !0 } = t;
|
|
1521
|
-
return typeof e == "object" && e !== null ?
|
|
1521
|
+
return typeof e == "object" && e !== null ? no({
|
|
1522
1522
|
from: e,
|
|
1523
1523
|
seen: [],
|
|
1524
1524
|
forceEnumerable: !0,
|
|
@@ -1530,14 +1530,14 @@ function Md(e, t = {}) {
|
|
|
1530
1530
|
}
|
|
1531
1531
|
function qd(e, t = {}) {
|
|
1532
1532
|
const { maxDepth: r = Number.POSITIVE_INFINITY } = t;
|
|
1533
|
-
return e instanceof Error ? e : Kd(e) ?
|
|
1533
|
+
return e instanceof Error ? e : Kd(e) ? no({
|
|
1534
1534
|
from: e,
|
|
1535
1535
|
seen: [],
|
|
1536
1536
|
to: Tp(e.name),
|
|
1537
1537
|
maxDepth: r,
|
|
1538
1538
|
depth: 0,
|
|
1539
1539
|
serialize: !1
|
|
1540
|
-
}) : new
|
|
1540
|
+
}) : new ro(e);
|
|
1541
1541
|
}
|
|
1542
1542
|
function Bo(e) {
|
|
1543
1543
|
return !!e && typeof e == "object" && typeof e.name == "string" && typeof e.message == "string" && typeof e.stack == "string";
|
|
@@ -1549,7 +1549,7 @@ function Op(e, t = void 0) {
|
|
|
1549
1549
|
Gd();
|
|
1550
1550
|
let r;
|
|
1551
1551
|
import.meta.url.startsWith("file://") ? r = Bd(e) : r = e instanceof Worker ? e : Hd(e, t);
|
|
1552
|
-
const a =
|
|
1552
|
+
const a = to(r), s = Cp(a);
|
|
1553
1553
|
return new Proxy(s, {
|
|
1554
1554
|
get: (n, o) => o === "isConnected" ? async () => {
|
|
1555
1555
|
for (; ; )
|
|
@@ -1585,10 +1585,10 @@ function Gd() {
|
|
|
1585
1585
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
1586
1586
|
serialize(r) {
|
|
1587
1587
|
const { port1: i, port2: a } = new MessageChannel();
|
|
1588
|
-
return
|
|
1588
|
+
return eo(r, i), [a, [a]];
|
|
1589
1589
|
},
|
|
1590
1590
|
deserialize(r) {
|
|
1591
|
-
return r.start(),
|
|
1591
|
+
return r.start(), to(r);
|
|
1592
1592
|
}
|
|
1593
1593
|
}), qt.set("MESSAGE_PORT", {
|
|
1594
1594
|
canHandle: (r) => r instanceof MessagePort,
|
|
@@ -1612,7 +1612,7 @@ function Gd() {
|
|
|
1612
1612
|
const i = t({ value: r });
|
|
1613
1613
|
return r.response && (i[0].value.response = r.response), r.source && (i[0].value.source = r.source), i;
|
|
1614
1614
|
}, qt.set("StreamedPHPResponse", {
|
|
1615
|
-
canHandle: (r) => r instanceof
|
|
1615
|
+
canHandle: (r) => r instanceof wi,
|
|
1616
1616
|
serialize(r) {
|
|
1617
1617
|
const i = Vd(), a = Zd(r.exitCode);
|
|
1618
1618
|
if (i)
|
|
@@ -1623,7 +1623,7 @@ function Gd() {
|
|
|
1623
1623
|
stderr: r.stderr,
|
|
1624
1624
|
exitCodePort: a
|
|
1625
1625
|
}, [a]];
|
|
1626
|
-
const s =
|
|
1626
|
+
const s = xi(r.headersStream), n = xi(r.stdout), o = xi(r.stderr);
|
|
1627
1627
|
return [
|
|
1628
1628
|
{
|
|
1629
1629
|
__type: "StreamedPHPResponse",
|
|
@@ -1640,15 +1640,15 @@ function Gd() {
|
|
|
1640
1640
|
const o = No(
|
|
1641
1641
|
r.exitCodePort
|
|
1642
1642
|
);
|
|
1643
|
-
return new
|
|
1643
|
+
return new wi(
|
|
1644
1644
|
r.headers,
|
|
1645
1645
|
r.stdout,
|
|
1646
1646
|
r.stderr,
|
|
1647
1647
|
o
|
|
1648
1648
|
);
|
|
1649
1649
|
}
|
|
1650
|
-
const i =
|
|
1651
|
-
return new
|
|
1650
|
+
const i = Si(r.headersPort), a = Si(r.stdoutPort), s = Si(r.stderrPort), n = No(r.exitCodePort);
|
|
1651
|
+
return new wi(i, a, s, n);
|
|
1652
1652
|
}
|
|
1653
1653
|
});
|
|
1654
1654
|
}
|
|
@@ -1666,7 +1666,7 @@ function Vd() {
|
|
|
1666
1666
|
return !1;
|
|
1667
1667
|
}
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function xi(e) {
|
|
1670
1670
|
const { port1: t, port2: r } = new MessageChannel();
|
|
1671
1671
|
return (async () => {
|
|
1672
1672
|
const i = e.getReader();
|
|
@@ -1711,7 +1711,7 @@ function vi(e) {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
})(), r;
|
|
1713
1713
|
}
|
|
1714
|
-
function
|
|
1714
|
+
function Si(e) {
|
|
1715
1715
|
return new ReadableStream({
|
|
1716
1716
|
start(t) {
|
|
1717
1717
|
const r = (a) => {
|
|
@@ -2059,7 +2059,7 @@ function nh(e) {
|
|
|
2059
2059
|
function sh(e) {
|
|
2060
2060
|
return !e.oid && e.sha && (e.oid = e.sha), e.mode = nh(e.mode), e.type || (e.type = Dp(e.mode)), e;
|
|
2061
2061
|
}
|
|
2062
|
-
class
|
|
2062
|
+
class so {
|
|
2063
2063
|
constructor(t) {
|
|
2064
2064
|
if (Buffer.isBuffer(t))
|
|
2065
2065
|
this._entries = rh(t);
|
|
@@ -2070,7 +2070,7 @@ class no {
|
|
|
2070
2070
|
this._entries.sort($p);
|
|
2071
2071
|
}
|
|
2072
2072
|
static from(t) {
|
|
2073
|
-
return new
|
|
2073
|
+
return new so(t);
|
|
2074
2074
|
}
|
|
2075
2075
|
render() {
|
|
2076
2076
|
return this._entries.map((t) => `${t.mode} ${t.type} ${t.oid} ${t.path}`).join(`
|
|
@@ -2096,7 +2096,7 @@ class no {
|
|
|
2096
2096
|
yield t;
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
|
-
function
|
|
2099
|
+
function Ca({ name: e, email: t, timestamp: r, timezoneOffset: i }) {
|
|
2100
2100
|
return i = ih(i), `${e} <${t}> ${r} ${i}`;
|
|
2101
2101
|
}
|
|
2102
2102
|
function ih(e) {
|
|
@@ -2155,7 +2155,7 @@ class En {
|
|
|
2155
2155
|
return `object ${t.object}
|
|
2156
2156
|
type ${t.type}
|
|
2157
2157
|
tag ${t.tag}
|
|
2158
|
-
tagger ${
|
|
2158
|
+
tagger ${Ca(t.tagger)}
|
|
2159
2159
|
|
|
2160
2160
|
${t.message}
|
|
2161
2161
|
${t.gpgsig ? t.gpgsig : ""}`;
|
|
@@ -2223,7 +2223,7 @@ ${t.gpgsig ? t.gpgsig : ""}`;
|
|
|
2223
2223
|
return En.from(n);
|
|
2224
2224
|
}
|
|
2225
2225
|
}
|
|
2226
|
-
function
|
|
2226
|
+
function ki(e) {
|
|
2227
2227
|
return e.trim().split(`
|
|
2228
2228
|
`).map((t) => " " + t).join(`
|
|
2229
2229
|
`) + `
|
|
@@ -2248,7 +2248,7 @@ class gt {
|
|
|
2248
2248
|
static fromPayloadSignature({ payload: t, signature: r }) {
|
|
2249
2249
|
const i = gt.justHeaders(t), a = gt.justMessage(t), s = rr(
|
|
2250
2250
|
i + `
|
|
2251
|
-
gpgsig` +
|
|
2251
|
+
gpgsig` + ki(r) + `
|
|
2252
2252
|
` + a
|
|
2253
2253
|
);
|
|
2254
2254
|
return new gt(s);
|
|
@@ -2307,11 +2307,11 @@ gpgsig` + Si(r) + `
|
|
|
2307
2307
|
`;
|
|
2308
2308
|
}
|
|
2309
2309
|
const i = t.author;
|
|
2310
|
-
r += `author ${
|
|
2310
|
+
r += `author ${Ca(i)}
|
|
2311
2311
|
`;
|
|
2312
2312
|
const a = t.committer || t.author;
|
|
2313
|
-
return r += `committer ${
|
|
2314
|
-
`, t.gpgsig && (r += "gpgsig" +
|
|
2313
|
+
return r += `committer ${Ca(a)}
|
|
2314
|
+
`, t.gpgsig && (r += "gpgsig" + ki(t.gpgsig)), r;
|
|
2315
2315
|
}
|
|
2316
2316
|
static render(t) {
|
|
2317
2317
|
return gt.renderHeaders(t) + `
|
|
@@ -2344,7 +2344,7 @@ gpgsig`)), i = t.slice(
|
|
|
2344
2344
|
let { signature: n } = await r({ payload: a, secretKey: i });
|
|
2345
2345
|
n = rr(n);
|
|
2346
2346
|
const f = gt.justHeaders(t._commit) + `
|
|
2347
|
-
gpgsig` +
|
|
2347
|
+
gpgsig` + ki(n) + `
|
|
2348
2348
|
` + s;
|
|
2349
2349
|
return gt.from(f);
|
|
2350
2350
|
}
|
|
@@ -2389,7 +2389,7 @@ var Hp = {};
|
|
|
2389
2389
|
t.table = i, t.bstr = T, t.buf = H, t.str = E;
|
|
2390
2390
|
});
|
|
2391
2391
|
})(Hp);
|
|
2392
|
-
const ch = /* @__PURE__ */
|
|
2392
|
+
const ch = /* @__PURE__ */ Ja(Hp);
|
|
2393
2393
|
class uh {
|
|
2394
2394
|
static wrap({ type: t, object: r }) {
|
|
2395
2395
|
return Buffer.concat([
|
|
@@ -2566,7 +2566,7 @@ function dn(e) {
|
|
|
2566
2566
|
for (var t = e.length; --t >= 0; )
|
|
2567
2567
|
e[t] = 0;
|
|
2568
2568
|
}
|
|
2569
|
-
var gh = 0, Fp = 1, _h = 2, wh = 3, bh = 258,
|
|
2569
|
+
var gh = 0, Fp = 1, _h = 2, wh = 3, bh = 258, io = 29, Vn = 256, In = Vn + 1 + io, tn = 30, ao = 19, Bp = 2 * In + 1, Tr = 15, Ei = 16, vh = 7, oo = 256, jp = 16, Np = 17, Up = 18, La = (
|
|
2570
2570
|
/* extra bits for each length code */
|
|
2571
2571
|
[0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]
|
|
2572
2572
|
), Ps = (
|
|
@@ -2583,15 +2583,15 @@ var $n = new Array(Sh);
|
|
|
2583
2583
|
dn($n);
|
|
2584
2584
|
var Dn = new Array(bh - wh + 1);
|
|
2585
2585
|
dn(Dn);
|
|
2586
|
-
var
|
|
2587
|
-
dn(
|
|
2586
|
+
var lo = new Array(io);
|
|
2587
|
+
dn(lo);
|
|
2588
2588
|
var qs = new Array(tn);
|
|
2589
2589
|
dn(qs);
|
|
2590
|
-
function
|
|
2590
|
+
function Pi(e, t, r, i, a) {
|
|
2591
2591
|
this.static_tree = e, this.extra_bits = t, this.extra_base = r, this.elems = i, this.max_length = a, this.has_stree = e && e.length;
|
|
2592
2592
|
}
|
|
2593
2593
|
var Mp, qp, Kp;
|
|
2594
|
-
function
|
|
2594
|
+
function Ai(e, t) {
|
|
2595
2595
|
this.dyn_tree = e, this.max_code = 0, this.stat_desc = t;
|
|
2596
2596
|
}
|
|
2597
2597
|
function zp(e) {
|
|
@@ -2601,7 +2601,7 @@ function Hn(e, t) {
|
|
|
2601
2601
|
e.pending_buf[e.pending++] = t & 255, e.pending_buf[e.pending++] = t >>> 8 & 255;
|
|
2602
2602
|
}
|
|
2603
2603
|
function dt(e, t, r) {
|
|
2604
|
-
e.bi_valid >
|
|
2604
|
+
e.bi_valid > Ei - r ? (e.bi_buf |= t << e.bi_valid & 65535, Hn(e, e.bi_buf), e.bi_buf = t >> Ei - e.bi_valid, e.bi_valid += r - Ei) : (e.bi_buf |= t << e.bi_valid & 65535, e.bi_valid += r);
|
|
2605
2605
|
}
|
|
2606
2606
|
function zt(e, t, r) {
|
|
2607
2607
|
dt(
|
|
@@ -2649,8 +2649,8 @@ function Vp(e, t, r) {
|
|
|
2649
2649
|
}
|
|
2650
2650
|
function Ph() {
|
|
2651
2651
|
var e, t, r, i, a, s = new Array(Tr + 1);
|
|
2652
|
-
for (r = 0, i = 0; i <
|
|
2653
|
-
for (
|
|
2652
|
+
for (r = 0, i = 0; i < io - 1; i++)
|
|
2653
|
+
for (lo[i] = r, e = 0; e < 1 << La[i]; e++)
|
|
2654
2654
|
Dn[r++] = i;
|
|
2655
2655
|
for (Dn[r - 1] = i, a = 0, i = 0; i < 16; i++)
|
|
2656
2656
|
for (qs[i] = a, e = 0; e < 1 << Ps[i]; e++)
|
|
@@ -2670,7 +2670,7 @@ function Ph() {
|
|
|
2670
2670
|
nr[e * 2 + 1] = 8, e++, s[8]++;
|
|
2671
2671
|
for (Vp(nr, In + 1, s), e = 0; e < tn; e++)
|
|
2672
2672
|
Pn[e * 2 + 1] = 5, Pn[e * 2] = Gp(e, 5);
|
|
2673
|
-
Mp = new
|
|
2673
|
+
Mp = new Pi(nr, La, Vn + 1, In, Tr), qp = new Pi(Pn, Ps, 0, tn, Tr), Kp = new Pi(new Array(0), xh, 0, ao, vh);
|
|
2674
2674
|
}
|
|
2675
2675
|
function Zp(e) {
|
|
2676
2676
|
var t;
|
|
@@ -2678,9 +2678,9 @@ function Zp(e) {
|
|
|
2678
2678
|
e.dyn_ltree[t * 2] = 0;
|
|
2679
2679
|
for (t = 0; t < tn; t++)
|
|
2680
2680
|
e.dyn_dtree[t * 2] = 0;
|
|
2681
|
-
for (t = 0; t <
|
|
2681
|
+
for (t = 0; t < ao; t++)
|
|
2682
2682
|
e.bl_tree[t * 2] = 0;
|
|
2683
|
-
e.dyn_ltree[
|
|
2683
|
+
e.dyn_ltree[oo * 2] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
|
|
2684
2684
|
}
|
|
2685
2685
|
function Yp(e) {
|
|
2686
2686
|
e.bi_valid > 8 ? Hn(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
|
|
@@ -2692,7 +2692,7 @@ function Go(e, t, r, i) {
|
|
|
2692
2692
|
var a = t * 2, s = r * 2;
|
|
2693
2693
|
return e[a] < e[s] || e[a] === e[s] && i[t] <= i[r];
|
|
2694
2694
|
}
|
|
2695
|
-
function
|
|
2695
|
+
function Ti(e, t, r) {
|
|
2696
2696
|
for (var i = e.heap[r], a = r << 1; a <= e.heap_len && (a < e.heap_len && Go(t, e.heap[a + 1], e.heap[a], e.depth) && a++, !Go(t, i, e.heap[a], e.depth)); )
|
|
2697
2697
|
e.heap[r] = e.heap[a], r = a, a <<= 1;
|
|
2698
2698
|
e.heap[r] = i;
|
|
@@ -2701,18 +2701,18 @@ function Vo(e, t, r) {
|
|
|
2701
2701
|
var i, a, s = 0, n, o;
|
|
2702
2702
|
if (e.last_lit !== 0)
|
|
2703
2703
|
do
|
|
2704
|
-
i = e.pending_buf[e.d_buf + s * 2] << 8 | e.pending_buf[e.d_buf + s * 2 + 1], a = e.pending_buf[e.l_buf + s], s++, i === 0 ? zt(e, a, t) : (n = Dn[a], zt(e, n + Vn + 1, t), o =
|
|
2704
|
+
i = e.pending_buf[e.d_buf + s * 2] << 8 | e.pending_buf[e.d_buf + s * 2 + 1], a = e.pending_buf[e.l_buf + s], s++, i === 0 ? zt(e, a, t) : (n = Dn[a], zt(e, n + Vn + 1, t), o = La[n], o !== 0 && (a -= lo[n], dt(e, a, o)), i--, n = zp(i), zt(e, n, r), o = Ps[n], o !== 0 && (i -= qs[n], dt(e, i, o)));
|
|
2705
2705
|
while (s < e.last_lit);
|
|
2706
|
-
zt(e,
|
|
2706
|
+
zt(e, oo, t);
|
|
2707
2707
|
}
|
|
2708
|
-
function
|
|
2708
|
+
function Ra(e, t) {
|
|
2709
2709
|
var r = t.dyn_tree, i = t.stat_desc.static_tree, a = t.stat_desc.has_stree, s = t.stat_desc.elems, n, o, f = -1, p;
|
|
2710
2710
|
for (e.heap_len = 0, e.heap_max = Bp, n = 0; n < s; n++)
|
|
2711
2711
|
r[n * 2] !== 0 ? (e.heap[++e.heap_len] = f = n, e.depth[n] = 0) : r[n * 2 + 1] = 0;
|
|
2712
2712
|
for (; e.heap_len < 2; )
|
|
2713
2713
|
p = e.heap[++e.heap_len] = f < 2 ? ++f : 0, r[p * 2] = 1, e.depth[p] = 0, e.opt_len--, a && (e.static_len -= i[p * 2 + 1]);
|
|
2714
2714
|
for (t.max_code = f, n = e.heap_len >> 1; n >= 1; n--)
|
|
2715
|
-
|
|
2715
|
+
Ti(e, r, n);
|
|
2716
2716
|
p = s;
|
|
2717
2717
|
do
|
|
2718
2718
|
n = e.heap[
|
|
@@ -2721,7 +2721,7 @@ function La(e, t) {
|
|
|
2721
2721
|
], e.heap[
|
|
2722
2722
|
1
|
|
2723
2723
|
/*SMALLEST*/
|
|
2724
|
-
] = e.heap[e.heap_len--],
|
|
2724
|
+
] = e.heap[e.heap_len--], Ti(
|
|
2725
2725
|
e,
|
|
2726
2726
|
r,
|
|
2727
2727
|
1
|
|
@@ -2732,7 +2732,7 @@ function La(e, t) {
|
|
|
2732
2732
|
], e.heap[--e.heap_max] = n, e.heap[--e.heap_max] = o, r[p * 2] = r[n * 2] + r[o * 2], e.depth[p] = (e.depth[n] >= e.depth[o] ? e.depth[n] : e.depth[o]) + 1, r[n * 2 + 1] = r[o * 2 + 1] = p, e.heap[
|
|
2733
2733
|
1
|
|
2734
2734
|
/*SMALLEST*/
|
|
2735
|
-
] = p++,
|
|
2735
|
+
] = p++, Ti(
|
|
2736
2736
|
e,
|
|
2737
2737
|
r,
|
|
2738
2738
|
1
|
|
@@ -2763,7 +2763,7 @@ function Yo(e, t, r) {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
function Th(e) {
|
|
2765
2765
|
var t;
|
|
2766
|
-
for (Zo(e, e.dyn_ltree, e.l_desc.max_code), Zo(e, e.dyn_dtree, e.d_desc.max_code),
|
|
2766
|
+
for (Zo(e, e.dyn_ltree, e.l_desc.max_code), Zo(e, e.dyn_dtree, e.d_desc.max_code), Ra(e, e.bl_desc), t = ao - 1; t >= 3 && e.bl_tree[Wp[t] * 2 + 1] === 0; t--)
|
|
2767
2767
|
;
|
|
2768
2768
|
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
2769
2769
|
}
|
|
@@ -2787,17 +2787,17 @@ function Ch(e) {
|
|
|
2787
2787
|
}
|
|
2788
2788
|
var Xo = !1;
|
|
2789
2789
|
function Lh(e) {
|
|
2790
|
-
Xo || (Ph(), Xo = !0), e.l_desc = new
|
|
2790
|
+
Xo || (Ph(), Xo = !0), e.l_desc = new Ai(e.dyn_ltree, Mp), e.d_desc = new Ai(e.dyn_dtree, qp), e.bl_desc = new Ai(e.bl_tree, Kp), e.bi_buf = 0, e.bi_valid = 0, Zp(e);
|
|
2791
2791
|
}
|
|
2792
2792
|
function Xp(e, t, r, i) {
|
|
2793
2793
|
dt(e, (gh << 1) + (i ? 1 : 0), 3), Ah(e, t, r);
|
|
2794
2794
|
}
|
|
2795
2795
|
function Rh(e) {
|
|
2796
|
-
dt(e, Fp << 1, 3), zt(e,
|
|
2796
|
+
dt(e, Fp << 1, 3), zt(e, oo, nr), kh(e);
|
|
2797
2797
|
}
|
|
2798
2798
|
function Ih(e, t, r, i) {
|
|
2799
2799
|
var a, s, n = 0;
|
|
2800
|
-
e.level > 0 ? (e.strm.data_type === yh && (e.strm.data_type = Ch(e)),
|
|
2800
|
+
e.level > 0 ? (e.strm.data_type === yh && (e.strm.data_type = Ch(e)), Ra(e, e.l_desc), Ra(e, e.d_desc), n = Th(e), a = e.opt_len + 3 + 7 >>> 3, s = e.static_len + 3 + 7 >>> 3, s <= a && (a = s)) : a = s = r + 5, r + 4 <= a && t !== -1 ? Xp(e, t, r, i) : e.strategy === mh || s === a ? (dt(e, (Fp << 1) + (i ? 1 : 0), 3), Vo(e, nr, Pn)) : (dt(e, (_h << 1) + (i ? 1 : 0), 3), Oh(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, n + 1), Vo(e, e.dyn_ltree, e.dyn_dtree)), Zp(e), i && Yp(e);
|
|
2801
2801
|
}
|
|
2802
2802
|
function $h(e, t, r) {
|
|
2803
2803
|
return e.pending_buf[e.d_buf + e.last_lit * 2] = t >>> 8 & 255, e.pending_buf[e.d_buf + e.last_lit * 2 + 1] = t & 255, e.pending_buf[e.l_buf + e.last_lit] = r & 255, e.last_lit++, t === 0 ? e.dyn_ltree[r * 2]++ : (e.matches++, t--, e.dyn_ltree[(Dn[r] + Vn + 1) * 2]++, e.dyn_dtree[zp(t) * 2]++), e.last_lit === e.lit_bufsize - 1;
|
|
@@ -2835,7 +2835,7 @@ function Bh(e, t, r, i) {
|
|
|
2835
2835
|
e = e >>> 8 ^ a[(e ^ t[n]) & 255];
|
|
2836
2836
|
return e ^ -1;
|
|
2837
2837
|
}
|
|
2838
|
-
var Qp = Bh,
|
|
2838
|
+
var Qp = Bh, fo = {
|
|
2839
2839
|
2: "need dictionary",
|
|
2840
2840
|
/* Z_NEED_DICT 2 */
|
|
2841
2841
|
1: "stream end",
|
|
@@ -2854,7 +2854,7 @@ var Qp = Bh, lo = {
|
|
|
2854
2854
|
/* Z_BUF_ERROR (-5) */
|
|
2855
2855
|
"-6": "incompatible version"
|
|
2856
2856
|
/* Z_VERSION_ERROR (-6) */
|
|
2857
|
-
}, at = ar, At = un, ec = Jp, ur = Qp, jh =
|
|
2857
|
+
}, at = ar, At = un, ec = Jp, ur = Qp, jh = fo, Nr = 0, Nh = 1, Uh = 3, vr = 4, Jo = 5, Gt = 0, Qo = 1, Tt = -2, Wh = -3, Oi = -5, Mh = -1, qh = 1, ls = 2, Kh = 3, zh = 4, Gh = 0, Vh = 2, ii = 8, Zh = 9, Yh = 15, Xh = 8, Jh = 29, Qh = 256, Ia = Qh + 1 + Jh, em = 30, tm = 19, rm = 2 * Ia + 1, nm = 15, ge = 3, wr = 258, Ht = wr + ge + 1, sm = 32, ai = 42, $a = 69, As = 73, Ts = 91, Os = 103, Or = 113, Sn = 666, qe = 1, Zn = 2, $r = 3, hn = 4, im = 3;
|
|
2858
2858
|
function br(e, t) {
|
|
2859
2859
|
return e.msg = jh[t], t;
|
|
2860
2860
|
}
|
|
@@ -2937,7 +2937,7 @@ function om(e, t) {
|
|
|
2937
2937
|
}
|
|
2938
2938
|
return e.insert = 0, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? $r : hn) : (e.strstart > e.block_start && (Qe(e, !1), e.strm.avail_out === 0), qe);
|
|
2939
2939
|
}
|
|
2940
|
-
function
|
|
2940
|
+
function Ci(e, t) {
|
|
2941
2941
|
for (var r, i; ; ) {
|
|
2942
2942
|
if (e.lookahead < Ht) {
|
|
2943
2943
|
if (Dr(e), e.lookahead < Ht && t === Nr)
|
|
@@ -3024,11 +3024,11 @@ Qr = [
|
|
|
3024
3024
|
/* good lazy nice chain */
|
|
3025
3025
|
new jt(0, 0, 0, 0, om),
|
|
3026
3026
|
/* 0 store only */
|
|
3027
|
-
new jt(4, 4, 8, 4,
|
|
3027
|
+
new jt(4, 4, 8, 4, Ci),
|
|
3028
3028
|
/* 1 max speed, no lazy matches */
|
|
3029
|
-
new jt(4, 5, 16, 8,
|
|
3029
|
+
new jt(4, 5, 16, 8, Ci),
|
|
3030
3030
|
/* 2 */
|
|
3031
|
-
new jt(4, 6, 32, 32,
|
|
3031
|
+
new jt(4, 6, 32, 32, Ci),
|
|
3032
3032
|
/* 3 */
|
|
3033
3033
|
new jt(4, 4, 16, 16, Mr),
|
|
3034
3034
|
/* 4 lazy matches */
|
|
@@ -3047,7 +3047,7 @@ function pm(e) {
|
|
|
3047
3047
|
e.window_size = 2 * e.w_size, _r(e.head), e.max_lazy_match = Qr[e.level].max_lazy, e.good_match = Qr[e.level].good_length, e.nice_match = Qr[e.level].nice_length, e.max_chain_length = Qr[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = ge - 1, e.match_available = 0, e.ins_h = 0;
|
|
3048
3048
|
}
|
|
3049
3049
|
function cm() {
|
|
3050
|
-
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = ii, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new at.Buf16(rm * 2), this.dyn_dtree = new at.Buf16((2 * em + 1) * 2), this.bl_tree = new at.Buf16((2 * tm + 1) * 2), _r(this.dyn_ltree), _r(this.dyn_dtree), _r(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new at.Buf16(nm + 1), this.heap = new at.Buf16(2 *
|
|
3050
|
+
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = ii, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new at.Buf16(rm * 2), this.dyn_dtree = new at.Buf16((2 * em + 1) * 2), this.bl_tree = new at.Buf16((2 * tm + 1) * 2), _r(this.dyn_ltree), _r(this.dyn_dtree), _r(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new at.Buf16(nm + 1), this.heap = new at.Buf16(2 * Ia + 1), _r(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new at.Buf16(2 * Ia + 1), _r(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
3051
3051
|
}
|
|
3052
3052
|
function rc(e) {
|
|
3053
3053
|
var t;
|
|
@@ -3078,18 +3078,18 @@ function hm(e, t) {
|
|
|
3078
3078
|
if (!e || !e.state || t > Jo || t < 0)
|
|
3079
3079
|
return e ? br(e, Tt) : Tt;
|
|
3080
3080
|
if (i = e.state, !e.output || !e.input && e.avail_in !== 0 || i.status === Sn && t !== vr)
|
|
3081
|
-
return br(e, e.avail_out === 0 ?
|
|
3081
|
+
return br(e, e.avail_out === 0 ? Oi : Tt);
|
|
3082
3082
|
if (i.strm = e, r = i.last_flush, i.last_flush = t, i.status === ai)
|
|
3083
3083
|
if (i.wrap === 2)
|
|
3084
3084
|
e.adler = 0, Se(i, 31), Se(i, 139), Se(i, 8), i.gzhead ? (Se(
|
|
3085
3085
|
i,
|
|
3086
3086
|
(i.gzhead.text ? 1 : 0) + (i.gzhead.hcrc ? 2 : 0) + (i.gzhead.extra ? 4 : 0) + (i.gzhead.name ? 8 : 0) + (i.gzhead.comment ? 16 : 0)
|
|
3087
|
-
), Se(i, i.gzhead.time & 255), Se(i, i.gzhead.time >> 8 & 255), Se(i, i.gzhead.time >> 16 & 255), Se(i, i.gzhead.time >> 24 & 255), Se(i, i.level === 9 ? 2 : i.strategy >= ls || i.level < 2 ? 4 : 0), Se(i, i.gzhead.os & 255), i.gzhead.extra && i.gzhead.extra.length && (Se(i, i.gzhead.extra.length & 255), Se(i, i.gzhead.extra.length >> 8 & 255)), i.gzhead.hcrc && (e.adler = ur(e.adler, i.pending_buf, i.pending, 0)), i.gzindex = 0, i.status =
|
|
3087
|
+
), Se(i, i.gzhead.time & 255), Se(i, i.gzhead.time >> 8 & 255), Se(i, i.gzhead.time >> 16 & 255), Se(i, i.gzhead.time >> 24 & 255), Se(i, i.level === 9 ? 2 : i.strategy >= ls || i.level < 2 ? 4 : 0), Se(i, i.gzhead.os & 255), i.gzhead.extra && i.gzhead.extra.length && (Se(i, i.gzhead.extra.length & 255), Se(i, i.gzhead.extra.length >> 8 & 255)), i.gzhead.hcrc && (e.adler = ur(e.adler, i.pending_buf, i.pending, 0)), i.gzindex = 0, i.status = $a) : (Se(i, 0), Se(i, 0), Se(i, 0), Se(i, 0), Se(i, 0), Se(i, i.level === 9 ? 2 : i.strategy >= ls || i.level < 2 ? 4 : 0), Se(i, im), i.status = Or);
|
|
3088
3088
|
else {
|
|
3089
3089
|
var n = ii + (i.w_bits - 8 << 4) << 8, o = -1;
|
|
3090
3090
|
i.strategy >= ls || i.level < 2 ? o = 0 : i.level < 6 ? o = 1 : i.level === 6 ? o = 2 : o = 3, n |= o << 6, i.strstart !== 0 && (n |= sm), n += 31 - n % 31, i.status = Or, gn(i, n), i.strstart !== 0 && (gn(i, e.adler >>> 16), gn(i, e.adler & 65535)), e.adler = 1;
|
|
3091
3091
|
}
|
|
3092
|
-
if (i.status ===
|
|
3092
|
+
if (i.status === $a)
|
|
3093
3093
|
if (i.gzhead.extra) {
|
|
3094
3094
|
for (a = i.pending; i.gzindex < (i.gzhead.extra.length & 65535) && !(i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > a && (e.adler = ur(e.adler, i.pending_buf, i.pending - a, a)), dr(e), a = i.pending, i.pending === i.pending_buf_size)); )
|
|
3095
3095
|
Se(i, i.gzhead.extra[i.gzindex] & 255), i.gzindex++;
|
|
@@ -3126,9 +3126,9 @@ function hm(e, t) {
|
|
|
3126
3126
|
if (dr(e), e.avail_out === 0)
|
|
3127
3127
|
return i.last_flush = -1, Gt;
|
|
3128
3128
|
} else if (e.avail_in === 0 && el(t) <= el(r) && t !== vr)
|
|
3129
|
-
return br(e,
|
|
3129
|
+
return br(e, Oi);
|
|
3130
3130
|
if (i.status === Sn && e.avail_in !== 0)
|
|
3131
|
-
return br(e,
|
|
3131
|
+
return br(e, Oi);
|
|
3132
3132
|
if (e.avail_in !== 0 || i.lookahead !== 0 || t !== Nr && i.status !== Sn) {
|
|
3133
3133
|
var f = i.strategy === ls ? fm(i, t) : i.strategy === Kh ? lm(i, t) : Qr[i.level].func(i, t);
|
|
3134
3134
|
if ((f === $r || f === hn) && (i.status = Sn), f === qe || f === $r)
|
|
@@ -3140,7 +3140,7 @@ function hm(e, t) {
|
|
|
3140
3140
|
}
|
|
3141
3141
|
function mm(e) {
|
|
3142
3142
|
var t;
|
|
3143
|
-
return !e || !e.state ? Tt : (t = e.state.status, t !== ai && t !==
|
|
3143
|
+
return !e || !e.state ? Tt : (t = e.state.status, t !== ai && t !== $a && t !== As && t !== Ts && t !== Os && t !== Or && t !== Sn ? br(e, Tt) : (e.state = null, t === Or ? br(e, Wh) : Gt));
|
|
3144
3144
|
}
|
|
3145
3145
|
function ym(e, t) {
|
|
3146
3146
|
var r = t.length, i, a, s, n, o, f, p, c;
|
|
@@ -3232,7 +3232,7 @@ Ur.utf8border = function(e, t) {
|
|
|
3232
3232
|
function gm() {
|
|
3233
3233
|
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
|
3234
3234
|
}
|
|
3235
|
-
var lc = gm, An = Xt, Tn = ar,
|
|
3235
|
+
var lc = gm, An = Xt, Tn = ar, Da = Ur, Ha = fo, _m = lc, fc = Object.prototype.toString, wm = 0, Li = 4, rn = 0, tl = 1, rl = 2, bm = -1, vm = 0, xm = 8;
|
|
3236
3236
|
function Hr(e) {
|
|
3237
3237
|
if (!(this instanceof Hr)) return new Hr(e);
|
|
3238
3238
|
this.options = Tn.assign({
|
|
@@ -3255,11 +3255,11 @@ function Hr(e) {
|
|
|
3255
3255
|
t.strategy
|
|
3256
3256
|
);
|
|
3257
3257
|
if (r !== rn)
|
|
3258
|
-
throw new Error(
|
|
3258
|
+
throw new Error(Ha[r]);
|
|
3259
3259
|
if (t.header && An.deflateSetHeader(this.strm, t.header), t.dictionary) {
|
|
3260
3260
|
var i;
|
|
3261
|
-
if (typeof t.dictionary == "string" ? i =
|
|
3262
|
-
throw new Error(
|
|
3261
|
+
if (typeof t.dictionary == "string" ? i = Da.string2buf(t.dictionary) : fc.call(t.dictionary) === "[object ArrayBuffer]" ? i = new Uint8Array(t.dictionary) : i = t.dictionary, r = An.deflateSetDictionary(this.strm, i), r !== rn)
|
|
3262
|
+
throw new Error(Ha[r]);
|
|
3263
3263
|
this._dict_set = !0;
|
|
3264
3264
|
}
|
|
3265
3265
|
}
|
|
@@ -3267,13 +3267,13 @@ Hr.prototype.push = function(e, t) {
|
|
|
3267
3267
|
var r = this.strm, i = this.options.chunkSize, a, s;
|
|
3268
3268
|
if (this.ended)
|
|
3269
3269
|
return !1;
|
|
3270
|
-
s = t === ~~t ? t : t === !0 ?
|
|
3270
|
+
s = t === ~~t ? t : t === !0 ? Li : wm, typeof e == "string" ? r.input = Da.string2buf(e) : fc.call(e) === "[object ArrayBuffer]" ? r.input = new Uint8Array(e) : r.input = e, r.next_in = 0, r.avail_in = r.input.length;
|
|
3271
3271
|
do {
|
|
3272
3272
|
if (r.avail_out === 0 && (r.output = new Tn.Buf8(i), r.next_out = 0, r.avail_out = i), a = An.deflate(r, s), a !== tl && a !== rn)
|
|
3273
3273
|
return this.onEnd(a), this.ended = !0, !1;
|
|
3274
|
-
(r.avail_out === 0 || r.avail_in === 0 && (s ===
|
|
3274
|
+
(r.avail_out === 0 || r.avail_in === 0 && (s === Li || s === rl)) && (this.options.to === "string" ? this.onData(Da.buf2binstring(Tn.shrinkBuf(r.output, r.next_out))) : this.onData(Tn.shrinkBuf(r.output, r.next_out)));
|
|
3275
3275
|
} while ((r.avail_in > 0 || r.avail_out === 0) && a !== tl);
|
|
3276
|
-
return s ===
|
|
3276
|
+
return s === Li ? (a = An.deflateEnd(this.strm), this.onEnd(a), this.ended = !0, a === rn) : (s === rl && (this.onEnd(rn), r.avail_out = 0), !0);
|
|
3277
3277
|
};
|
|
3278
3278
|
Hr.prototype.onData = function(e) {
|
|
3279
3279
|
this.chunks.push(e);
|
|
@@ -3281,20 +3281,20 @@ Hr.prototype.onData = function(e) {
|
|
|
3281
3281
|
Hr.prototype.onEnd = function(e) {
|
|
3282
3282
|
e === rn && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = Tn.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
|
3283
3283
|
};
|
|
3284
|
-
function
|
|
3284
|
+
function po(e, t) {
|
|
3285
3285
|
var r = new Hr(t);
|
|
3286
3286
|
if (r.push(e, !0), r.err)
|
|
3287
|
-
throw r.msg ||
|
|
3287
|
+
throw r.msg || Ha[r.err];
|
|
3288
3288
|
return r.result;
|
|
3289
3289
|
}
|
|
3290
3290
|
function Sm(e, t) {
|
|
3291
|
-
return t = t || {}, t.raw = !0,
|
|
3291
|
+
return t = t || {}, t.raw = !0, po(e, t);
|
|
3292
3292
|
}
|
|
3293
3293
|
function km(e, t) {
|
|
3294
|
-
return t = t || {}, t.gzip = !0,
|
|
3294
|
+
return t = t || {}, t.gzip = !0, po(e, t);
|
|
3295
3295
|
}
|
|
3296
3296
|
Gn.Deflate = Hr;
|
|
3297
|
-
Gn.deflate =
|
|
3297
|
+
Gn.deflate = po;
|
|
3298
3298
|
Gn.deflateRaw = Sm;
|
|
3299
3299
|
Gn.gzip = km;
|
|
3300
3300
|
var Yn = {}, Ft = {}, fs = 30, Em = 12, Pm = function(t, r) {
|
|
@@ -3385,7 +3385,7 @@ var Yn = {}, Ft = {}, fs = 30, Em = 12, Pm = function(t, r) {
|
|
|
3385
3385
|
}
|
|
3386
3386
|
} while (a < s && n < f);
|
|
3387
3387
|
H = y >> 3, a -= H, y -= H << 3, R &= (1 << y) - 1, t.next_in = a, t.next_out = n, t.avail_in = a < s ? 5 + (s - a) : 5 - (a - s), t.avail_out = n < f ? 257 + (f - n) : 257 - (n - f), i.hold = R, i.bits = y;
|
|
3388
|
-
}, nl = ar, qr = 15, sl = 852, il = 592, al = 0,
|
|
3388
|
+
}, nl = ar, qr = 15, sl = 852, il = 592, al = 0, Ri = 1, ol = 2, Am = [
|
|
3389
3389
|
/* Length codes 257..285 base */
|
|
3390
3390
|
3,
|
|
3391
3391
|
4,
|
|
@@ -3540,7 +3540,7 @@ var Yn = {}, Ft = {}, fs = 30, Em = 12, Pm = function(t, r) {
|
|
|
3540
3540
|
I[c + 1] = I[c] + $[c];
|
|
3541
3541
|
for (m = 0; m < a; m++)
|
|
3542
3542
|
r[i + m] !== 0 && (o[I[r[i + m]]++] = m);
|
|
3543
|
-
if (t === al ? (L = j = o, P = 19) : t ===
|
|
3543
|
+
if (t === al ? (L = j = o, P = 19) : t === Ri ? (L = Am, S -= 257, j = Tm, U -= 257, P = 256) : (L = Om, j = Cm, P = -1), k = 0, m = 0, c = h, A = n, y = R, _ = 0, H = -1, C = 1 << R, E = C - 1, t === Ri && C > sl || t === ol && C > il)
|
|
3544
3544
|
return 1;
|
|
3545
3545
|
for (; ; ) {
|
|
3546
3546
|
M = c - _, o[m] < P ? (Z = 0, z = o[m]) : o[m] > P ? (Z = j[U + o[m]], z = L[S + o[m]]) : (Z = 96, z = 0), D = 1 << c - _, T = 1 << y, h = T;
|
|
@@ -3557,13 +3557,13 @@ var Yn = {}, Ft = {}, fs = 30, Em = 12, Pm = function(t, r) {
|
|
|
3557
3557
|
if (c > R && (k & E) !== H) {
|
|
3558
3558
|
for (_ === 0 && (_ = R), A += h, y = c - _, b = 1 << y; y + _ < g && (b -= $[y + _], !(b <= 0)); )
|
|
3559
3559
|
y++, b <<= 1;
|
|
3560
|
-
if (C += 1 << y, t ===
|
|
3560
|
+
if (C += 1 << y, t === Ri && C > sl || t === ol && C > il)
|
|
3561
3561
|
return 1;
|
|
3562
3562
|
H = k & E, s[H] = R << 24 | y << 16 | A - n | 0;
|
|
3563
3563
|
}
|
|
3564
3564
|
}
|
|
3565
3565
|
return k !== 0 && (s[A + k] = c - _ << 24 | 64 << 16 | 0), f.bits = R, 0;
|
|
3566
|
-
}, vt = ar,
|
|
3566
|
+
}, vt = ar, Fa = Jp, Nt = Qp, Rm = Pm, On = Lm, Im = 0, pc = 1, cc = 2, ll = 4, $m = 5, ps = 6, Fr = 0, Dm = 1, Hm = 2, Ot = -2, uc = -3, dc = -4, Fm = -5, fl = 8, hc = 1, pl = 2, cl = 3, ul = 4, dl = 5, hl = 6, ml = 7, yl = 8, gl = 9, _l = 10, Ks = 11, er = 12, Ii = 13, wl = 14, $i = 15, bl = 16, vl = 17, xl = 18, Sl = 19, cs = 20, us = 21, kl = 22, El = 23, Pl = 24, Al = 25, Tl = 26, Di = 27, Ol = 28, Cl = 29, He = 30, mc = 31, Bm = 32, jm = 852, Nm = 592, Um = 15, Wm = Um;
|
|
3567
3567
|
function Ll(e) {
|
|
3568
3568
|
return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
|
|
3569
3569
|
}
|
|
@@ -3589,11 +3589,11 @@ function wc(e, t) {
|
|
|
3589
3589
|
function qm(e) {
|
|
3590
3590
|
return wc(e, Wm);
|
|
3591
3591
|
}
|
|
3592
|
-
var Rl = !0,
|
|
3592
|
+
var Rl = !0, Hi, Fi;
|
|
3593
3593
|
function Km(e) {
|
|
3594
3594
|
if (Rl) {
|
|
3595
3595
|
var t;
|
|
3596
|
-
for (
|
|
3596
|
+
for (Hi = new vt.Buf32(512), Fi = new vt.Buf32(32), t = 0; t < 144; )
|
|
3597
3597
|
e.lens[t++] = 8;
|
|
3598
3598
|
for (; t < 256; )
|
|
3599
3599
|
e.lens[t++] = 9;
|
|
@@ -3601,11 +3601,11 @@ function Km(e) {
|
|
|
3601
3601
|
e.lens[t++] = 7;
|
|
3602
3602
|
for (; t < 288; )
|
|
3603
3603
|
e.lens[t++] = 8;
|
|
3604
|
-
for (On(pc, e.lens, 0, 288,
|
|
3604
|
+
for (On(pc, e.lens, 0, 288, Hi, 0, e.work, { bits: 9 }), t = 0; t < 32; )
|
|
3605
3605
|
e.lens[t++] = 5;
|
|
3606
|
-
On(cc, e.lens, 0, 32,
|
|
3606
|
+
On(cc, e.lens, 0, 32, Fi, 0, e.work, { bits: 5 }), Rl = !1;
|
|
3607
3607
|
}
|
|
3608
|
-
e.lencode =
|
|
3608
|
+
e.lencode = Hi, e.lenbits = 9, e.distcode = Fi, e.distbits = 5;
|
|
3609
3609
|
}
|
|
3610
3610
|
function bc(e, t, r, i) {
|
|
3611
3611
|
var a, s = e.state;
|
|
@@ -3618,13 +3618,13 @@ function zm(e, t) {
|
|
|
3618
3618
|
);
|
|
3619
3619
|
if (!e || !e.state || !e.output || !e.input && e.avail_in !== 0)
|
|
3620
3620
|
return Ot;
|
|
3621
|
-
r = e.state, r.mode === er && (r.mode =
|
|
3621
|
+
r = e.state, r.mode === er && (r.mode = Ii), n = e.next_out, a = e.output, f = e.avail_out, s = e.next_in, i = e.input, o = e.avail_in, p = r.hold, c = r.bits, m = o, h = f, A = Fr;
|
|
3622
3622
|
e:
|
|
3623
3623
|
for (; ; )
|
|
3624
3624
|
switch (r.mode) {
|
|
3625
3625
|
case hc:
|
|
3626
3626
|
if (r.wrap === 0) {
|
|
3627
|
-
r.mode =
|
|
3627
|
+
r.mode = Ii;
|
|
3628
3628
|
break;
|
|
3629
3629
|
}
|
|
3630
3630
|
for (; c < 16; ) {
|
|
@@ -3758,9 +3758,9 @@ function zm(e, t) {
|
|
|
3758
3758
|
case er:
|
|
3759
3759
|
if (t === $m || t === ps)
|
|
3760
3760
|
break e;
|
|
3761
|
-
case
|
|
3761
|
+
case Ii:
|
|
3762
3762
|
if (r.last) {
|
|
3763
|
-
p >>>= c & 7, c -= c & 7, r.mode =
|
|
3763
|
+
p >>>= c & 7, c -= c & 7, r.mode = Di;
|
|
3764
3764
|
break;
|
|
3765
3765
|
}
|
|
3766
3766
|
for (; c < 3; ) {
|
|
@@ -3796,9 +3796,9 @@ function zm(e, t) {
|
|
|
3796
3796
|
e.msg = "invalid stored block lengths", r.mode = He;
|
|
3797
3797
|
break;
|
|
3798
3798
|
}
|
|
3799
|
-
if (r.length = p & 65535, p = 0, c = 0, r.mode =
|
|
3799
|
+
if (r.length = p & 65535, p = 0, c = 0, r.mode = $i, t === ps)
|
|
3800
3800
|
break e;
|
|
3801
|
-
case
|
|
3801
|
+
case $i:
|
|
3802
3802
|
r.mode = bl;
|
|
3803
3803
|
case bl:
|
|
3804
3804
|
if (g = r.length, g) {
|
|
@@ -3994,7 +3994,7 @@ function zm(e, t) {
|
|
|
3994
3994
|
break e;
|
|
3995
3995
|
a[n++] = r.length, f--, r.mode = us;
|
|
3996
3996
|
break;
|
|
3997
|
-
case
|
|
3997
|
+
case Di:
|
|
3998
3998
|
if (r.wrap) {
|
|
3999
3999
|
for (; c < 32; ) {
|
|
4000
4000
|
if (o === 0)
|
|
@@ -4002,7 +4002,7 @@ function zm(e, t) {
|
|
|
4002
4002
|
o--, p |= i[s++] << c, c += 8;
|
|
4003
4003
|
}
|
|
4004
4004
|
if (h -= f, e.total_out += h, r.total += h, h && (e.adler = r.check = /*UPDATE(state.check, put - _out, _out);*/
|
|
4005
|
-
r.flags ? Nt(r.check, a, h, n - h) :
|
|
4005
|
+
r.flags ? Nt(r.check, a, h, n - h) : Fa(r.check, a, h, n - h)), h = f, (r.flags ? p : Ll(p)) !== r.check) {
|
|
4006
4006
|
e.msg = "incorrect data check", r.mode = He;
|
|
4007
4007
|
break;
|
|
4008
4008
|
}
|
|
@@ -4035,8 +4035,8 @@ function zm(e, t) {
|
|
|
4035
4035
|
default:
|
|
4036
4036
|
return Ot;
|
|
4037
4037
|
}
|
|
4038
|
-
return e.next_out = n, e.avail_out = f, e.next_in = s, e.avail_in = o, r.hold = p, r.bits = c, (r.wsize || h !== e.avail_out && r.mode < He && (r.mode <
|
|
4039
|
-
r.flags ? Nt(r.check, a, h, e.next_out - h) :
|
|
4038
|
+
return e.next_out = n, e.avail_out = f, e.next_in = s, e.avail_in = o, r.hold = p, r.bits = c, (r.wsize || h !== e.avail_out && r.mode < He && (r.mode < Di || t !== ll)) && bc(e, e.output, e.next_out, h - e.avail_out), m -= e.avail_in, h -= e.avail_out, e.total_in += m, e.total_out += h, r.total += h, r.wrap && h && (e.adler = r.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
|
|
4039
|
+
r.flags ? Nt(r.check, a, h, e.next_out - h) : Fa(r.check, a, h, e.next_out - h)), e.data_type = r.bits + (r.last ? 64 : 0) + (r.mode === er ? 128 : 0) + (r.mode === cs || r.mode === $i ? 256 : 0), (m === 0 && h === 0 || t === ll) && A === Fr && (A = Fm), A;
|
|
4040
4040
|
}
|
|
4041
4041
|
function Gm(e) {
|
|
4042
4042
|
if (!e || !e.state)
|
|
@@ -4050,7 +4050,7 @@ function Vm(e, t) {
|
|
|
4050
4050
|
}
|
|
4051
4051
|
function Zm(e, t) {
|
|
4052
4052
|
var r = t.length, i, a, s;
|
|
4053
|
-
return !e || !e.state || (i = e.state, i.wrap !== 0 && i.mode !== Ks) ? Ot : i.mode === Ks && (a = 1, a =
|
|
4053
|
+
return !e || !e.state || (i = e.state, i.wrap !== 0 && i.mode !== Ks) ? Ot : i.mode === Ks && (a = 1, a = Fa(a, t, r, 0), a !== i.check) ? uc : (s = bc(e, t, r, r), s ? (i.mode = mc, dc) : (i.havedict = 1, Fr));
|
|
4054
4054
|
}
|
|
4055
4055
|
Ft.inflateReset = gc;
|
|
4056
4056
|
Ft.inflateReset2 = _c;
|
|
@@ -4105,7 +4105,7 @@ var vc = {
|
|
|
4105
4105
|
function Ym() {
|
|
4106
4106
|
this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
|
|
4107
4107
|
}
|
|
4108
|
-
var Xm = Ym, nn = Ft, Cn = ar, Cs = Ur, je = vc,
|
|
4108
|
+
var Xm = Ym, nn = Ft, Cn = ar, Cs = Ur, je = vc, Ba = fo, Jm = lc, Qm = Xm, xc = Object.prototype.toString;
|
|
4109
4109
|
function Br(e) {
|
|
4110
4110
|
if (!(this instanceof Br)) return new Br(e);
|
|
4111
4111
|
this.options = Cn.assign({
|
|
@@ -4120,9 +4120,9 @@ function Br(e) {
|
|
|
4120
4120
|
t.windowBits
|
|
4121
4121
|
);
|
|
4122
4122
|
if (r !== je.Z_OK)
|
|
4123
|
-
throw new Error(
|
|
4123
|
+
throw new Error(Ba[r]);
|
|
4124
4124
|
if (this.header = new Qm(), nn.inflateGetHeader(this.strm, this.header), t.dictionary && (typeof t.dictionary == "string" ? t.dictionary = Cs.string2buf(t.dictionary) : xc.call(t.dictionary) === "[object ArrayBuffer]" && (t.dictionary = new Uint8Array(t.dictionary)), t.raw && (r = nn.inflateSetDictionary(this.strm, t.dictionary), r !== je.Z_OK)))
|
|
4125
|
-
throw new Error(
|
|
4125
|
+
throw new Error(Ba[r]);
|
|
4126
4126
|
}
|
|
4127
4127
|
Br.prototype.push = function(e, t) {
|
|
4128
4128
|
var r = this.strm, i = this.options.chunkSize, a = this.options.dictionary, s, n, o, f, p, c = !1;
|
|
@@ -4142,23 +4142,23 @@ Br.prototype.onData = function(e) {
|
|
|
4142
4142
|
Br.prototype.onEnd = function(e) {
|
|
4143
4143
|
e === je.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = Cn.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
|
4144
4144
|
};
|
|
4145
|
-
function
|
|
4145
|
+
function co(e, t) {
|
|
4146
4146
|
var r = new Br(t);
|
|
4147
4147
|
if (r.push(e, !0), r.err)
|
|
4148
|
-
throw r.msg ||
|
|
4148
|
+
throw r.msg || Ba[r.err];
|
|
4149
4149
|
return r.result;
|
|
4150
4150
|
}
|
|
4151
4151
|
function ey(e, t) {
|
|
4152
|
-
return t = t || {}, t.raw = !0,
|
|
4152
|
+
return t = t || {}, t.raw = !0, co(e, t);
|
|
4153
4153
|
}
|
|
4154
4154
|
Yn.Inflate = Br;
|
|
4155
|
-
Yn.inflate =
|
|
4155
|
+
Yn.inflate = co;
|
|
4156
4156
|
Yn.inflateRaw = ey;
|
|
4157
|
-
Yn.ungzip =
|
|
4157
|
+
Yn.ungzip = co;
|
|
4158
4158
|
var ty = ar.assign, ry = Gn, ny = Yn, sy = vc, Sc = {};
|
|
4159
4159
|
ty(Sc, ry, ny, sy);
|
|
4160
4160
|
var iy = Sc;
|
|
4161
|
-
const
|
|
4161
|
+
const uo = /* @__PURE__ */ Ja(iy);
|
|
4162
4162
|
async function ay(e, t) {
|
|
4163
4163
|
const r = new Rp(e);
|
|
4164
4164
|
let i = await r.read(4);
|
|
@@ -4170,7 +4170,7 @@ async function ay(e, t) {
|
|
|
4170
4170
|
let s = await r.read(4);
|
|
4171
4171
|
if (s = s.readUInt32BE(0), !(s < 1))
|
|
4172
4172
|
for (; !r.eof() && s--; ) {
|
|
4173
|
-
const n = r.tell(), { type: o, length: f, ofs: p, reference: c } = await oy(r), m = new
|
|
4173
|
+
const n = r.tell(), { type: o, length: f, ofs: p, reference: c } = await oy(r), m = new uo.Inflate();
|
|
4174
4174
|
for (; !m.result; ) {
|
|
4175
4175
|
const h = await r.chunk();
|
|
4176
4176
|
if (!h) break;
|
|
@@ -4219,10 +4219,10 @@ async function oy(e) {
|
|
|
4219
4219
|
return r === 7 && (s = await e.read(20)), { type: r, length: i, ofs: a, reference: s };
|
|
4220
4220
|
}
|
|
4221
4221
|
async function ly(e) {
|
|
4222
|
-
return
|
|
4222
|
+
return uo.inflate(e);
|
|
4223
4223
|
}
|
|
4224
|
-
var
|
|
4225
|
-
typeof Object.create == "function" ?
|
|
4224
|
+
var ja = { exports: {} };
|
|
4225
|
+
typeof Object.create == "function" ? ja.exports = function(t, r) {
|
|
4226
4226
|
r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
|
|
4227
4227
|
constructor: {
|
|
4228
4228
|
value: t,
|
|
@@ -4231,7 +4231,7 @@ typeof Object.create == "function" ? Ba.exports = function(t, r) {
|
|
|
4231
4231
|
configurable: !0
|
|
4232
4232
|
}
|
|
4233
4233
|
}));
|
|
4234
|
-
} :
|
|
4234
|
+
} : ja.exports = function(t, r) {
|
|
4235
4235
|
if (r) {
|
|
4236
4236
|
t.super_ = r;
|
|
4237
4237
|
var i = function() {
|
|
@@ -4239,13 +4239,13 @@ typeof Object.create == "function" ? Ba.exports = function(t, r) {
|
|
|
4239
4239
|
i.prototype = r.prototype, t.prototype = new i(), t.prototype.constructor = t;
|
|
4240
4240
|
}
|
|
4241
4241
|
};
|
|
4242
|
-
var fy =
|
|
4242
|
+
var fy = ja.exports, Na = { exports: {} }, ho = {}, li = {};
|
|
4243
4243
|
li.byteLength = uy;
|
|
4244
4244
|
li.toByteArray = hy;
|
|
4245
4245
|
li.fromByteArray = gy;
|
|
4246
|
-
var Vt = [], Et = [], py = typeof Uint8Array < "u" ? Uint8Array : Array,
|
|
4247
|
-
for (var Kr = 0, cy =
|
|
4248
|
-
Vt[Kr] =
|
|
4246
|
+
var Vt = [], Et = [], py = typeof Uint8Array < "u" ? Uint8Array : Array, Bi = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
4247
|
+
for (var Kr = 0, cy = Bi.length; Kr < cy; ++Kr)
|
|
4248
|
+
Vt[Kr] = Bi[Kr], Et[Bi.charCodeAt(Kr)] = Kr;
|
|
4249
4249
|
Et[45] = 62;
|
|
4250
4250
|
Et[95] = 63;
|
|
4251
4251
|
function kc(e) {
|
|
@@ -4287,9 +4287,9 @@ function gy(e) {
|
|
|
4287
4287
|
Vt[t >> 10] + Vt[t >> 4 & 63] + Vt[t << 2 & 63] + "="
|
|
4288
4288
|
)), a.join("");
|
|
4289
4289
|
}
|
|
4290
|
-
var
|
|
4290
|
+
var mo = {};
|
|
4291
4291
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4292
|
-
|
|
4292
|
+
mo.read = function(e, t, r, i, a) {
|
|
4293
4293
|
var s, n, o = a * 8 - i - 1, f = (1 << o) - 1, p = f >> 1, c = -7, m = r ? a - 1 : 0, h = r ? -1 : 1, g = e[t + m];
|
|
4294
4294
|
for (m += h, s = g & (1 << -c) - 1, g >>= -c, c += o; c > 0; s = s * 256 + e[t + m], m += h, c -= 8)
|
|
4295
4295
|
;
|
|
@@ -4304,7 +4304,7 @@ ho.read = function(e, t, r, i, a) {
|
|
|
4304
4304
|
}
|
|
4305
4305
|
return (g ? -1 : 1) * n * Math.pow(2, s - i);
|
|
4306
4306
|
};
|
|
4307
|
-
|
|
4307
|
+
mo.write = function(e, t, r, i, a, s) {
|
|
4308
4308
|
var n, o, f, p = s * 8 - a - 1, c = (1 << p) - 1, m = c >> 1, h = a === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = i ? 0 : s - 1, R = i ? 1 : -1, y = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
4309
4309
|
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (o = isNaN(t) ? 1 : 0, n = c) : (n = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -n)) < 1 && (n--, f *= 2), n + m >= 1 ? t += h / f : t += h * Math.pow(2, 1 - m), t * f >= 2 && (n++, f /= 2), n + m >= c ? (o = 0, n = c) : n + m >= 1 ? (o = (t * f - 1) * Math.pow(2, a), n = n + m) : (o = t * Math.pow(2, m - 1) * Math.pow(2, a), n = 0)); a >= 8; e[r + g] = o & 255, g += R, o /= 256, a -= 8)
|
|
4310
4310
|
;
|
|
@@ -4319,7 +4319,7 @@ ho.write = function(e, t, r, i, a, s) {
|
|
|
4319
4319
|
* @license MIT
|
|
4320
4320
|
*/
|
|
4321
4321
|
(function(e) {
|
|
4322
|
-
var t = li, r =
|
|
4322
|
+
var t = li, r = mo, i = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
4323
4323
|
e.Buffer = o, e.SlowBuffer = C, e.INSPECT_MAX_BYTES = 50;
|
|
4324
4324
|
var a = 2147483647;
|
|
4325
4325
|
e.kMaxLength = a, o.TYPED_ARRAY_SUPPORT = s(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
@@ -5096,10 +5096,10 @@ ho.write = function(e, t, r, i, a, s) {
|
|
|
5096
5096
|
u[O + B] = v[d] + v[B];
|
|
5097
5097
|
return u;
|
|
5098
5098
|
}();
|
|
5099
|
-
})(
|
|
5099
|
+
})(ho);
|
|
5100
5100
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
5101
5101
|
(function(e, t) {
|
|
5102
|
-
var r =
|
|
5102
|
+
var r = ho, i = r.Buffer;
|
|
5103
5103
|
function a(n, o) {
|
|
5104
5104
|
for (var f in n)
|
|
5105
5105
|
o[f] = n[f];
|
|
@@ -5126,8 +5126,8 @@ ho.write = function(e, t, r, i, a, s) {
|
|
|
5126
5126
|
throw new TypeError("Argument must be a number");
|
|
5127
5127
|
return r.SlowBuffer(n);
|
|
5128
5128
|
};
|
|
5129
|
-
})(
|
|
5130
|
-
var
|
|
5129
|
+
})(Na, Na.exports);
|
|
5130
|
+
var yo = Na.exports, _y = {}.toString, wy = Array.isArray || function(e) {
|
|
5131
5131
|
return _y.call(e) == "[object Array]";
|
|
5132
5132
|
}, Xn = TypeError, Ec = Object, by = Error, vy = EvalError, xy = RangeError, Sy = ReferenceError, Pc = SyntaxError, ky = URIError, Ey = Math.abs, Py = Math.floor, Ay = Math.max, Ty = Math.min, Oy = Math.pow, Cy = Math.round, Ly = Number.isNaN || function(t) {
|
|
5133
5133
|
return t !== t;
|
|
@@ -5147,9 +5147,9 @@ if (Rs)
|
|
|
5147
5147
|
} catch {
|
|
5148
5148
|
Rs = !1;
|
|
5149
5149
|
}
|
|
5150
|
-
var fi = Rs,
|
|
5150
|
+
var fi = Rs, ji, Il;
|
|
5151
5151
|
function Ac() {
|
|
5152
|
-
return Il || (Il = 1,
|
|
5152
|
+
return Il || (Il = 1, ji = function() {
|
|
5153
5153
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
5154
5154
|
return !1;
|
|
5155
5155
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -5175,27 +5175,27 @@ function Ac() {
|
|
|
5175
5175
|
return !1;
|
|
5176
5176
|
}
|
|
5177
5177
|
return !0;
|
|
5178
|
-
}),
|
|
5178
|
+
}), ji;
|
|
5179
5179
|
}
|
|
5180
|
-
var
|
|
5180
|
+
var Ni, $l;
|
|
5181
5181
|
function Dy() {
|
|
5182
|
-
if ($l) return
|
|
5182
|
+
if ($l) return Ni;
|
|
5183
5183
|
$l = 1;
|
|
5184
5184
|
var e = typeof Symbol < "u" && Symbol, t = Ac();
|
|
5185
|
-
return
|
|
5185
|
+
return Ni = function() {
|
|
5186
5186
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
|
|
5187
|
-
},
|
|
5187
|
+
}, Ni;
|
|
5188
5188
|
}
|
|
5189
|
-
var
|
|
5189
|
+
var Ui, Dl;
|
|
5190
5190
|
function Tc() {
|
|
5191
|
-
return Dl || (Dl = 1,
|
|
5191
|
+
return Dl || (Dl = 1, Ui = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ui;
|
|
5192
5192
|
}
|
|
5193
|
-
var
|
|
5193
|
+
var Wi, Hl;
|
|
5194
5194
|
function Oc() {
|
|
5195
|
-
if (Hl) return
|
|
5195
|
+
if (Hl) return Wi;
|
|
5196
5196
|
Hl = 1;
|
|
5197
5197
|
var e = Ec;
|
|
5198
|
-
return
|
|
5198
|
+
return Wi = e.getPrototypeOf || null, Wi;
|
|
5199
5199
|
}
|
|
5200
5200
|
var Hy = "Function.prototype.bind called on incompatible ", Fy = Object.prototype.toString, By = Math.max, jy = "[object Function]", Fl = function(t, r) {
|
|
5201
5201
|
for (var i = [], a = 0; a < t.length; a += 1)
|
|
@@ -5235,15 +5235,15 @@ var Hy = "Function.prototype.bind called on incompatible ", Fy = Object.prototyp
|
|
|
5235
5235
|
p.prototype = r.prototype, a.prototype = new p(), p.prototype = null;
|
|
5236
5236
|
}
|
|
5237
5237
|
return a;
|
|
5238
|
-
}, My = Wy, Qn = Function.prototype.bind || My,
|
|
5238
|
+
}, My = Wy, Qn = Function.prototype.bind || My, go = Function.prototype.call, _o = Function.prototype.apply, qy = typeof Reflect < "u" && Reflect && Reflect.apply, Ky = Qn, zy = _o, Gy = go, Vy = qy, Cc = Vy || Ky.call(Gy, zy), Zy = Qn, Yy = Xn, Xy = go, Jy = Cc, wo = function(t) {
|
|
5239
5239
|
if (t.length < 1 || typeof t[0] != "function")
|
|
5240
5240
|
throw new Yy("a function is required");
|
|
5241
5241
|
return Jy(Zy, Xy, t);
|
|
5242
|
-
},
|
|
5242
|
+
}, Mi, Bl;
|
|
5243
5243
|
function Qy() {
|
|
5244
|
-
if (Bl) return
|
|
5244
|
+
if (Bl) return Mi;
|
|
5245
5245
|
Bl = 1;
|
|
5246
|
-
var e =
|
|
5246
|
+
var e = wo, t = Jn, r;
|
|
5247
5247
|
try {
|
|
5248
5248
|
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
5249
5249
|
[].__proto__ === Array.prototype;
|
|
@@ -5256,19 +5256,19 @@ function Qy() {
|
|
|
5256
5256
|
/** @type {keyof typeof Object.prototype} */
|
|
5257
5257
|
"__proto__"
|
|
5258
5258
|
), a = Object, s = a.getPrototypeOf;
|
|
5259
|
-
return
|
|
5259
|
+
return Mi = i && typeof i.get == "function" ? e([i.get]) : typeof s == "function" ? (
|
|
5260
5260
|
/** @type {import('./get')} */
|
|
5261
5261
|
function(o) {
|
|
5262
5262
|
return s(o == null ? o : a(o));
|
|
5263
5263
|
}
|
|
5264
|
-
) : !1,
|
|
5264
|
+
) : !1, Mi;
|
|
5265
5265
|
}
|
|
5266
|
-
var
|
|
5266
|
+
var qi, jl;
|
|
5267
5267
|
function Lc() {
|
|
5268
|
-
if (jl) return
|
|
5268
|
+
if (jl) return qi;
|
|
5269
5269
|
jl = 1;
|
|
5270
5270
|
var e = Tc(), t = Oc(), r = Qy();
|
|
5271
|
-
return
|
|
5271
|
+
return qi = e ? function(a) {
|
|
5272
5272
|
return e(a);
|
|
5273
5273
|
} : t ? function(a) {
|
|
5274
5274
|
if (!a || typeof a != "object" && typeof a != "function")
|
|
@@ -5276,33 +5276,33 @@ function Lc() {
|
|
|
5276
5276
|
return t(a);
|
|
5277
5277
|
} : r ? function(a) {
|
|
5278
5278
|
return r(a);
|
|
5279
|
-
} : null,
|
|
5279
|
+
} : null, qi;
|
|
5280
5280
|
}
|
|
5281
|
-
var
|
|
5281
|
+
var Ki, Nl;
|
|
5282
5282
|
function e0() {
|
|
5283
|
-
if (Nl) return
|
|
5283
|
+
if (Nl) return Ki;
|
|
5284
5284
|
Nl = 1;
|
|
5285
5285
|
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r = Qn;
|
|
5286
|
-
return
|
|
5286
|
+
return Ki = r.call(e, t), Ki;
|
|
5287
5287
|
}
|
|
5288
|
-
var ye, t0 = Ec, r0 = by, n0 = vy, s0 = xy, i0 = Sy, ln = Pc, sn = Xn, a0 = ky, o0 = Ey, l0 = Py, f0 = Ay, p0 = Ty, c0 = Oy, u0 = Cy, d0 = Iy, Rc = Function,
|
|
5288
|
+
var ye, t0 = Ec, r0 = by, n0 = vy, s0 = xy, i0 = Sy, ln = Pc, sn = Xn, a0 = ky, o0 = Ey, l0 = Py, f0 = Ay, p0 = Ty, c0 = Oy, u0 = Cy, d0 = Iy, Rc = Function, zi = function(e) {
|
|
5289
5289
|
try {
|
|
5290
5290
|
return Rc('"use strict"; return (' + e + ").constructor;")();
|
|
5291
5291
|
} catch {
|
|
5292
5292
|
}
|
|
5293
|
-
}, Bn = Jn, h0 = fi,
|
|
5293
|
+
}, Bn = Jn, h0 = fi, Gi = function() {
|
|
5294
5294
|
throw new sn();
|
|
5295
5295
|
}, m0 = Bn ? function() {
|
|
5296
5296
|
try {
|
|
5297
|
-
return arguments.callee,
|
|
5297
|
+
return arguments.callee, Gi;
|
|
5298
5298
|
} catch {
|
|
5299
5299
|
try {
|
|
5300
5300
|
return Bn(arguments, "callee").get;
|
|
5301
5301
|
} catch {
|
|
5302
|
-
return
|
|
5302
|
+
return Gi;
|
|
5303
5303
|
}
|
|
5304
5304
|
}
|
|
5305
|
-
}() :
|
|
5305
|
+
}() : Gi, zr = Dy()(), Ge = Lc(), y0 = Oc(), g0 = Tc(), Ic = _o, es = go, Xr = {}, _0 = typeof Uint8Array > "u" || !Ge ? ye : Ge(Uint8Array), Cr = {
|
|
5306
5306
|
__proto__: null,
|
|
5307
5307
|
"%AggregateError%": typeof AggregateError > "u" ? ye : AggregateError,
|
|
5308
5308
|
"%Array%": Array,
|
|
@@ -5396,11 +5396,11 @@ if (Ge)
|
|
|
5396
5396
|
var b0 = function e(t) {
|
|
5397
5397
|
var r;
|
|
5398
5398
|
if (t === "%AsyncFunction%")
|
|
5399
|
-
r =
|
|
5399
|
+
r = zi("async function () {}");
|
|
5400
5400
|
else if (t === "%GeneratorFunction%")
|
|
5401
|
-
r =
|
|
5401
|
+
r = zi("function* () {}");
|
|
5402
5402
|
else if (t === "%AsyncGeneratorFunction%")
|
|
5403
|
-
r =
|
|
5403
|
+
r = zi("async function* () {}");
|
|
5404
5404
|
else if (t === "%AsyncGenerator%") {
|
|
5405
5405
|
var i = e("%AsyncGeneratorFunction%");
|
|
5406
5406
|
i && (r = i.prototype);
|
|
@@ -5515,7 +5515,7 @@ var b0 = function e(t) {
|
|
|
5515
5515
|
}
|
|
5516
5516
|
}
|
|
5517
5517
|
return o;
|
|
5518
|
-
}, Dc = $c, Hc =
|
|
5518
|
+
}, Dc = $c, Hc = wo, T0 = Hc([Dc("%String.prototype.indexOf%")]), Fc = function(t, r) {
|
|
5519
5519
|
var i = (
|
|
5520
5520
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
5521
5521
|
Dc(t, !!r)
|
|
@@ -5524,9 +5524,9 @@ var b0 = function e(t) {
|
|
|
5524
5524
|
/** @type {const} */
|
|
5525
5525
|
[i]
|
|
5526
5526
|
) : i;
|
|
5527
|
-
},
|
|
5527
|
+
}, Vi, Ml;
|
|
5528
5528
|
function O0() {
|
|
5529
|
-
if (Ml) return
|
|
5529
|
+
if (Ml) return Vi;
|
|
5530
5530
|
Ml = 1;
|
|
5531
5531
|
var e = Function.prototype.toString, t = typeof Reflect == "object" && Reflect !== null && Reflect.apply, r, i;
|
|
5532
5532
|
if (typeof t == "function" && typeof Object.defineProperty == "function")
|
|
@@ -5571,7 +5571,7 @@ function O0() {
|
|
|
5571
5571
|
return !1;
|
|
5572
5572
|
});
|
|
5573
5573
|
}
|
|
5574
|
-
return
|
|
5574
|
+
return Vi = t ? function(k) {
|
|
5575
5575
|
if (_(k))
|
|
5576
5576
|
return !0;
|
|
5577
5577
|
if (!k || typeof k != "function" && typeof k != "object")
|
|
@@ -5594,11 +5594,11 @@ function O0() {
|
|
|
5594
5594
|
return !1;
|
|
5595
5595
|
var D = o.call(k);
|
|
5596
5596
|
return D !== p && D !== c && !/^\[object HTML/.test(D) ? !1 : n(k);
|
|
5597
|
-
},
|
|
5597
|
+
}, Vi;
|
|
5598
5598
|
}
|
|
5599
|
-
var
|
|
5599
|
+
var Zi, ql;
|
|
5600
5600
|
function C0() {
|
|
5601
|
-
if (ql) return
|
|
5601
|
+
if (ql) return Zi;
|
|
5602
5602
|
ql = 1;
|
|
5603
5603
|
var e = O0(), t = Object.prototype.toString, r = Object.prototype.hasOwnProperty, i = function(f, p, c) {
|
|
5604
5604
|
for (var m = 0, h = f.length; m < h; m++)
|
|
@@ -5613,16 +5613,16 @@ function C0() {
|
|
|
5613
5613
|
function n(o) {
|
|
5614
5614
|
return t.call(o) === "[object Array]";
|
|
5615
5615
|
}
|
|
5616
|
-
return
|
|
5616
|
+
return Zi = function(f, p, c) {
|
|
5617
5617
|
if (!e(p))
|
|
5618
5618
|
throw new TypeError("iterator must be a function");
|
|
5619
5619
|
var m;
|
|
5620
5620
|
arguments.length >= 3 && (m = c), n(f) ? i(f, p, m) : typeof f == "string" ? a(f, p, m) : s(f, p, m);
|
|
5621
|
-
},
|
|
5621
|
+
}, Zi;
|
|
5622
5622
|
}
|
|
5623
|
-
var
|
|
5623
|
+
var Yi, Kl;
|
|
5624
5624
|
function L0() {
|
|
5625
|
-
return Kl || (Kl = 1,
|
|
5625
|
+
return Kl || (Kl = 1, Yi = [
|
|
5626
5626
|
"Float16Array",
|
|
5627
5627
|
"Float32Array",
|
|
5628
5628
|
"Float64Array",
|
|
@@ -5635,25 +5635,25 @@ function L0() {
|
|
|
5635
5635
|
"Uint32Array",
|
|
5636
5636
|
"BigInt64Array",
|
|
5637
5637
|
"BigUint64Array"
|
|
5638
|
-
]),
|
|
5638
|
+
]), Yi;
|
|
5639
5639
|
}
|
|
5640
|
-
var
|
|
5640
|
+
var Xi, zl;
|
|
5641
5641
|
function R0() {
|
|
5642
|
-
if (zl) return
|
|
5642
|
+
if (zl) return Xi;
|
|
5643
5643
|
zl = 1;
|
|
5644
5644
|
var e = L0(), t = typeof globalThis > "u" ? wp : globalThis;
|
|
5645
|
-
return
|
|
5645
|
+
return Xi = function() {
|
|
5646
5646
|
for (var i = [], a = 0; a < e.length; a++)
|
|
5647
5647
|
typeof t[e[a]] == "function" && (i[i.length] = e[a]);
|
|
5648
5648
|
return i;
|
|
5649
|
-
},
|
|
5649
|
+
}, Xi;
|
|
5650
5650
|
}
|
|
5651
|
-
var
|
|
5651
|
+
var Ji = { exports: {} }, Qi, Gl;
|
|
5652
5652
|
function I0() {
|
|
5653
|
-
if (Gl) return
|
|
5653
|
+
if (Gl) return Qi;
|
|
5654
5654
|
Gl = 1;
|
|
5655
5655
|
var e = fi, t = Pc, r = Xn, i = Jn;
|
|
5656
|
-
return
|
|
5656
|
+
return Qi = function(s, n, o) {
|
|
5657
5657
|
if (!s || typeof s != "object" && typeof s != "function")
|
|
5658
5658
|
throw new r("`obj` must be an object or a function`");
|
|
5659
5659
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -5678,11 +5678,11 @@ function I0() {
|
|
|
5678
5678
|
s[n] = o;
|
|
5679
5679
|
else
|
|
5680
5680
|
throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
5681
|
-
},
|
|
5681
|
+
}, Qi;
|
|
5682
5682
|
}
|
|
5683
|
-
var
|
|
5683
|
+
var ea, Vl;
|
|
5684
5684
|
function $0() {
|
|
5685
|
-
if (Vl) return
|
|
5685
|
+
if (Vl) return ea;
|
|
5686
5686
|
Vl = 1;
|
|
5687
5687
|
var e = fi, t = function() {
|
|
5688
5688
|
return !!e;
|
|
@@ -5695,14 +5695,14 @@ function $0() {
|
|
|
5695
5695
|
} catch {
|
|
5696
5696
|
return !0;
|
|
5697
5697
|
}
|
|
5698
|
-
},
|
|
5698
|
+
}, ea = t, ea;
|
|
5699
5699
|
}
|
|
5700
|
-
var
|
|
5700
|
+
var ta, Zl;
|
|
5701
5701
|
function D0() {
|
|
5702
|
-
if (Zl) return
|
|
5702
|
+
if (Zl) return ta;
|
|
5703
5703
|
Zl = 1;
|
|
5704
5704
|
var e = $c, t = I0(), r = $0()(), i = Jn, a = Xn, s = e("%Math.floor%");
|
|
5705
|
-
return
|
|
5705
|
+
return ta = function(o, f) {
|
|
5706
5706
|
if (typeof o != "function")
|
|
5707
5707
|
throw new a("`fn` is not a function");
|
|
5708
5708
|
if (typeof f != "number" || f < 0 || f > 4294967295 || s(f) !== f)
|
|
@@ -5725,21 +5725,21 @@ function D0() {
|
|
|
5725
5725
|
"length",
|
|
5726
5726
|
f
|
|
5727
5727
|
)), o;
|
|
5728
|
-
},
|
|
5728
|
+
}, ta;
|
|
5729
5729
|
}
|
|
5730
|
-
var
|
|
5730
|
+
var ra, Yl;
|
|
5731
5731
|
function H0() {
|
|
5732
|
-
if (Yl) return
|
|
5732
|
+
if (Yl) return ra;
|
|
5733
5733
|
Yl = 1;
|
|
5734
|
-
var e = Qn, t =
|
|
5735
|
-
return
|
|
5734
|
+
var e = Qn, t = _o, r = Cc;
|
|
5735
|
+
return ra = function() {
|
|
5736
5736
|
return r(e, t, arguments);
|
|
5737
|
-
},
|
|
5737
|
+
}, ra;
|
|
5738
5738
|
}
|
|
5739
5739
|
var Xl;
|
|
5740
5740
|
function F0() {
|
|
5741
5741
|
return Xl || (Xl = 1, function(e) {
|
|
5742
|
-
var t = D0(), r = fi, i =
|
|
5742
|
+
var t = D0(), r = fi, i = wo, a = H0();
|
|
5743
5743
|
e.exports = function(n) {
|
|
5744
5744
|
var o = i(arguments), f = n.length - (arguments.length - 1);
|
|
5745
5745
|
return t(
|
|
@@ -5748,20 +5748,20 @@ function F0() {
|
|
|
5748
5748
|
!0
|
|
5749
5749
|
);
|
|
5750
5750
|
}, r ? r(e.exports, "apply", { value: a }) : e.exports.apply = a;
|
|
5751
|
-
}(
|
|
5751
|
+
}(Ji)), Ji.exports;
|
|
5752
5752
|
}
|
|
5753
|
-
var
|
|
5753
|
+
var na, Jl;
|
|
5754
5754
|
function B0() {
|
|
5755
|
-
if (Jl) return
|
|
5755
|
+
if (Jl) return na;
|
|
5756
5756
|
Jl = 1;
|
|
5757
5757
|
var e = Ac();
|
|
5758
|
-
return
|
|
5758
|
+
return na = function() {
|
|
5759
5759
|
return e() && !!Symbol.toStringTag;
|
|
5760
|
-
},
|
|
5760
|
+
}, na;
|
|
5761
5761
|
}
|
|
5762
|
-
var
|
|
5762
|
+
var sa, Ql;
|
|
5763
5763
|
function j0() {
|
|
5764
|
-
if (Ql) return
|
|
5764
|
+
if (Ql) return sa;
|
|
5765
5765
|
Ql = 1;
|
|
5766
5766
|
var e = C0(), t = R0(), r = F0(), i = Fc, a = Jn, s = Lc(), n = i("Object.prototype.toString"), o = B0()(), f = typeof globalThis > "u" ? wp : globalThis, p = t(), c = i("String.prototype.slice"), m = i("Array.prototype.indexOf", !0) || function(_, b) {
|
|
5767
5767
|
for (var C = 0; C < _.length; C += 1)
|
|
@@ -5819,7 +5819,7 @@ function j0() {
|
|
|
5819
5819
|
}
|
|
5820
5820
|
), b;
|
|
5821
5821
|
};
|
|
5822
|
-
return
|
|
5822
|
+
return sa = function(_) {
|
|
5823
5823
|
if (!_ || typeof _ != "object")
|
|
5824
5824
|
return !1;
|
|
5825
5825
|
if (!o) {
|
|
@@ -5827,22 +5827,22 @@ function j0() {
|
|
|
5827
5827
|
return m(p, b) > -1 ? b : b !== "Object" ? !1 : R(_);
|
|
5828
5828
|
}
|
|
5829
5829
|
return a ? g(_) : null;
|
|
5830
|
-
},
|
|
5830
|
+
}, sa;
|
|
5831
5831
|
}
|
|
5832
|
-
var
|
|
5832
|
+
var ia, ef;
|
|
5833
5833
|
function N0() {
|
|
5834
|
-
if (ef) return
|
|
5834
|
+
if (ef) return ia;
|
|
5835
5835
|
ef = 1;
|
|
5836
5836
|
var e = j0();
|
|
5837
|
-
return
|
|
5837
|
+
return ia = function(r) {
|
|
5838
5838
|
return !!e(r);
|
|
5839
|
-
},
|
|
5839
|
+
}, ia;
|
|
5840
5840
|
}
|
|
5841
5841
|
var U0 = Xn, W0 = Fc, M0 = W0("TypedArray.prototype.buffer", !0), q0 = N0(), K0 = M0 || function(t) {
|
|
5842
5842
|
if (!q0(t))
|
|
5843
5843
|
throw new U0("Not a Typed Array");
|
|
5844
5844
|
return t.buffer;
|
|
5845
|
-
}, Rt =
|
|
5845
|
+
}, Rt = yo.Buffer, z0 = wy, G0 = K0, V0 = ArrayBuffer.isView || function(t) {
|
|
5846
5846
|
try {
|
|
5847
5847
|
return G0(t), !0;
|
|
5848
5848
|
} catch {
|
|
@@ -5877,7 +5877,7 @@ var U0 = Xn, W0 = Fc, M0 = W0("TypedArray.prototype.buffer", !0), q0 = N0(), K0
|
|
|
5877
5877
|
if (n || Rt.isBuffer(t) && t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t))
|
|
5878
5878
|
return Rt.from(t);
|
|
5879
5879
|
throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.');
|
|
5880
|
-
}, J0 =
|
|
5880
|
+
}, J0 = yo.Buffer, Q0 = X0;
|
|
5881
5881
|
function pi(e, t) {
|
|
5882
5882
|
this._block = J0.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0;
|
|
5883
5883
|
}
|
|
@@ -5907,7 +5907,7 @@ pi.prototype.digest = function(e) {
|
|
|
5907
5907
|
pi.prototype._update = function() {
|
|
5908
5908
|
throw new Error("_update must be implemented by subclass");
|
|
5909
5909
|
};
|
|
5910
|
-
var eg = pi, tg = fy, jc = eg, rg =
|
|
5910
|
+
var eg = pi, tg = fy, jc = eg, rg = yo.Buffer, ng = [
|
|
5911
5911
|
1518500249,
|
|
5912
5912
|
1859775393,
|
|
5913
5913
|
-1894007588,
|
|
@@ -5948,16 +5948,16 @@ rs.prototype._hash = function() {
|
|
|
5948
5948
|
return e.writeInt32BE(this._a | 0, 0), e.writeInt32BE(this._b | 0, 4), e.writeInt32BE(this._c | 0, 8), e.writeInt32BE(this._d | 0, 12), e.writeInt32BE(this._e | 0, 16), e;
|
|
5949
5949
|
};
|
|
5950
5950
|
var fg = rs;
|
|
5951
|
-
const pg = /* @__PURE__ */
|
|
5951
|
+
const pg = /* @__PURE__ */ Ja(fg);
|
|
5952
5952
|
function cg(e) {
|
|
5953
5953
|
let t = "";
|
|
5954
5954
|
for (const r of new Uint8Array(e))
|
|
5955
5955
|
r < 16 && (t += "0"), t += r.toString(16);
|
|
5956
5956
|
return t;
|
|
5957
5957
|
}
|
|
5958
|
-
let
|
|
5958
|
+
let aa = null;
|
|
5959
5959
|
async function Vs(e) {
|
|
5960
|
-
return
|
|
5960
|
+
return aa === null && (aa = await dg()), aa ? Nc(e) : ug(e);
|
|
5961
5961
|
}
|
|
5962
5962
|
function ug(e) {
|
|
5963
5963
|
return new pg().update(e).digest("hex");
|
|
@@ -6424,7 +6424,7 @@ async function Nn(e) {
|
|
|
6424
6424
|
i.set(s, a), a += s.byteLength;
|
|
6425
6425
|
return i;
|
|
6426
6426
|
}
|
|
6427
|
-
class
|
|
6427
|
+
class oa {
|
|
6428
6428
|
constructor() {
|
|
6429
6429
|
this._queue = [];
|
|
6430
6430
|
}
|
|
@@ -6462,7 +6462,7 @@ class aa {
|
|
|
6462
6462
|
}
|
|
6463
6463
|
class wg {
|
|
6464
6464
|
static demux(t) {
|
|
6465
|
-
const r = Ye.streamReader(t), i = new
|
|
6465
|
+
const r = Ye.streamReader(t), i = new oa(), a = new oa(), s = new oa(), n = async function() {
|
|
6466
6466
|
const o = await r();
|
|
6467
6467
|
if (o === null) return n();
|
|
6468
6468
|
if (o === !0) {
|
|
@@ -6584,7 +6584,7 @@ async function Wc(e) {
|
|
|
6584
6584
|
});
|
|
6585
6585
|
});
|
|
6586
6586
|
}
|
|
6587
|
-
typeof globalThis.Buffer > "u" && (globalThis.Buffer =
|
|
6587
|
+
typeof globalThis.Buffer > "u" && (globalThis.Buffer = ho.Buffer);
|
|
6588
6588
|
async function bg(e, t, r, i) {
|
|
6589
6589
|
const a = await qc(e, t), s = await Ag(a.idx, t, r), n = r.map((h) => s[h].oid), o = n.length > 0 ? await Tg(e, n) : null, f = {};
|
|
6590
6590
|
if (await Promise.all(
|
|
@@ -6633,7 +6633,7 @@ async function Sg(e, t) {
|
|
|
6633
6633
|
const r = await Eg(e, t);
|
|
6634
6634
|
if (r.resolvedOid)
|
|
6635
6635
|
return r.resolvedOid;
|
|
6636
|
-
const i = await
|
|
6636
|
+
const i = await Ua(e, r.refname);
|
|
6637
6637
|
if (!i)
|
|
6638
6638
|
throw new Error(`Git ref "${r.refname}" not found at ${e}`);
|
|
6639
6639
|
return i;
|
|
@@ -6726,14 +6726,14 @@ async function Eg(e, t) {
|
|
|
6726
6726
|
refname: i,
|
|
6727
6727
|
resolvedOid: i
|
|
6728
6728
|
};
|
|
6729
|
-
const a = `refs/heads/${i}`, s = await
|
|
6729
|
+
const a = `refs/heads/${i}`, s = await Ua(e, a);
|
|
6730
6730
|
if (s)
|
|
6731
6731
|
return {
|
|
6732
6732
|
kind: "refname",
|
|
6733
6733
|
refname: a,
|
|
6734
6734
|
resolvedOid: s
|
|
6735
6735
|
};
|
|
6736
|
-
const n = `refs/tags/${i}`, o = await
|
|
6736
|
+
const n = `refs/tags/${i}`, o = await Ua(e, n);
|
|
6737
6737
|
if (o)
|
|
6738
6738
|
return {
|
|
6739
6739
|
kind: "refname",
|
|
@@ -6746,7 +6746,7 @@ async function Eg(e, t) {
|
|
|
6746
6746
|
throw new Error(`Invalid ref type: ${t.type}`);
|
|
6747
6747
|
}
|
|
6748
6748
|
}
|
|
6749
|
-
async function
|
|
6749
|
+
async function Ua(e, t) {
|
|
6750
6750
|
const r = await kg(e, t), i = [t, `${t}^{}`];
|
|
6751
6751
|
for (const a of i) {
|
|
6752
6752
|
const s = a.trim();
|
|
@@ -6914,7 +6914,7 @@ function Lr(e) {
|
|
|
6914
6914
|
e.object = gt.from(e.object).parse();
|
|
6915
6915
|
break;
|
|
6916
6916
|
case "tree":
|
|
6917
|
-
e.object =
|
|
6917
|
+
e.object = so.from(e.object).entries();
|
|
6918
6918
|
break;
|
|
6919
6919
|
case "blob":
|
|
6920
6920
|
e.object = new Uint8Array(e.object), e.format = "content";
|
|
@@ -6959,7 +6959,7 @@ function zc(e) {
|
|
|
6959
6959
|
function Un(e) {
|
|
6960
6960
|
return e instanceof Uint8Array, Uint8Array.from(e);
|
|
6961
6961
|
}
|
|
6962
|
-
const Cg =
|
|
6962
|
+
const Cg = uo.deflate, Lg = /^[0-9a-f]{40}$/i;
|
|
6963
6963
|
async function Rg(e) {
|
|
6964
6964
|
const t = {}, r = new TextEncoder();
|
|
6965
6965
|
return await Promise.all(
|
|
@@ -7102,7 +7102,7 @@ function Hg(e, t) {
|
|
|
7102
7102
|
}
|
|
7103
7103
|
return a;
|
|
7104
7104
|
}
|
|
7105
|
-
const Wn = 15,
|
|
7105
|
+
const Wn = 15, Wa = 30, Ma = 19, Fg = 29, Zs = 256, bo = Zs + 1 + Fg, sf = 2 * bo + 1, _n = 256, Bg = 7, af = 16, of = 17, lf = 18, la = 8 * 2, Ys = -1, jg = 1, ds = 2, Ng = 0, Jr = 0, ff = 1, Ug = 3, pt = 4, It = 0, Gc = 1, hs = 2, Dt = -2, Wg = -3, Gr = -5;
|
|
7106
7106
|
function ui(e) {
|
|
7107
7107
|
return di(e.map(([t, r]) => new Array(t).fill(r, 0, t)));
|
|
7108
7108
|
}
|
|
@@ -7549,9 +7549,9 @@ const Mg = [
|
|
|
7549
7549
|
Je.static_ltree = di(Mg.map((e, t) => [e, qg[t]]));
|
|
7550
7550
|
const Kg = [0, 16, 8, 24, 4, 20, 12, 28, 2, 18, 10, 26, 6, 22, 14, 30, 1, 17, 9, 25, 5, 21, 13, 29, 3, 19, 11, 27, 7, 23], zg = ui([[30, 5]]);
|
|
7551
7551
|
Je.static_dtree = di(Kg.map((e, t) => [e, zg[t]]));
|
|
7552
|
-
Je.static_l_desc = new Je(Je.static_ltree, Re.extra_lbits, Zs + 1,
|
|
7553
|
-
Je.static_d_desc = new Je(Je.static_dtree, Re.extra_dbits, 0,
|
|
7554
|
-
Je.static_bl_desc = new Je(null, Re.extra_blbits, 0,
|
|
7552
|
+
Je.static_l_desc = new Je(Je.static_ltree, Re.extra_lbits, Zs + 1, bo, Wn);
|
|
7553
|
+
Je.static_d_desc = new Je(Je.static_dtree, Re.extra_dbits, 0, Wa, Wn);
|
|
7554
|
+
Je.static_bl_desc = new Je(null, Re.extra_blbits, 0, Ma, Bg);
|
|
7555
7555
|
const Gg = 9, Vg = 8;
|
|
7556
7556
|
function Wt(e, t, r, i, a) {
|
|
7557
7557
|
const s = this;
|
|
@@ -7589,7 +7589,7 @@ const Vc = 0, Is = 1, kr = 2, Lt = [
|
|
|
7589
7589
|
"",
|
|
7590
7590
|
// Z_VERSION_ERROR (-6)
|
|
7591
7591
|
""
|
|
7592
|
-
], kt = 0, ys = 1, wn = 2, gs = 3, Zg = 32,
|
|
7592
|
+
], kt = 0, ys = 1, wn = 2, gs = 3, Zg = 32, fa = 42, _s = 113, bn = 666, pa = 8, Yg = 0, ca = 1, Xg = 2, Fe = 3, $s = 258, yt = $s + Fe + 1;
|
|
7593
7593
|
function cf(e, t, r, i) {
|
|
7594
7594
|
const a = e[t * 2], s = e[r * 2];
|
|
7595
7595
|
return a < s || a == s && i[t] <= i[r];
|
|
@@ -7609,11 +7609,11 @@ function Jg() {
|
|
|
7609
7609
|
}
|
|
7610
7610
|
function Oe() {
|
|
7611
7611
|
let W;
|
|
7612
|
-
for (W = 0; W <
|
|
7612
|
+
for (W = 0; W < bo; W++)
|
|
7613
7613
|
U[W * 2] = 0;
|
|
7614
|
-
for (W = 0; W < Ua; W++)
|
|
7615
|
-
M[W * 2] = 0;
|
|
7616
7614
|
for (W = 0; W < Wa; W++)
|
|
7615
|
+
M[W * 2] = 0;
|
|
7616
|
+
for (W = 0; W < Ma; W++)
|
|
7617
7617
|
Z[W * 2] = 0;
|
|
7618
7618
|
U[_n * 2] = 1, e.opt_len = e.static_len = 0, ee = V = 0;
|
|
7619
7619
|
}
|
|
@@ -7635,7 +7635,7 @@ function Jg() {
|
|
|
7635
7635
|
}
|
|
7636
7636
|
function St() {
|
|
7637
7637
|
let W;
|
|
7638
|
-
for (tt(U, z.max_code), tt(M, se.max_code), G.build_tree(e), W =
|
|
7638
|
+
for (tt(U, z.max_code), tt(M, se.max_code), G.build_tree(e), W = Ma - 1; W >= 3 && Z[Re.bl_order[W] * 2 + 1] === 0; W--)
|
|
7639
7639
|
;
|
|
7640
7640
|
return e.opt_len += 3 * (W + 1) + 5 + 5 + 4, W;
|
|
7641
7641
|
}
|
|
@@ -7651,7 +7651,7 @@ function Jg() {
|
|
|
7651
7651
|
function Le(W, Y) {
|
|
7652
7652
|
let q;
|
|
7653
7653
|
const J = Y;
|
|
7654
|
-
ae >
|
|
7654
|
+
ae > la - J ? (q = W, ie |= q << ae & 65535, De(ie), ie = q >>> la - ae, ae += J - la) : (ie |= W << ae & 65535, ae += J);
|
|
7655
7655
|
}
|
|
7656
7656
|
function v(W, Y) {
|
|
7657
7657
|
const q = W * 2;
|
|
@@ -7679,12 +7679,12 @@ function Jg() {
|
|
|
7679
7679
|
ae == 16 ? (De(ie), ie = 0, ae = 0) : ae >= 8 && ($e(ie & 255), ie >>>= 8, ae -= 8);
|
|
7680
7680
|
}
|
|
7681
7681
|
function B() {
|
|
7682
|
-
Le(
|
|
7682
|
+
Le(ca << 1, 3), v(_n, Je.static_ltree), O(), 1 + fe + 10 - ae < 9 && (Le(ca << 1, 3), v(_n, Je.static_ltree), O()), fe = 7;
|
|
7683
7683
|
}
|
|
7684
7684
|
function K(W, Y) {
|
|
7685
7685
|
let q, J, ne;
|
|
7686
7686
|
if (e.dist_buf[ee] = W, e.lc_buf[ee] = Y & 255, ee++, W === 0 ? U[Y * 2]++ : (V++, W--, U[(Re._length_code[Y] + Zs + 1) * 2]++, M[Re.d_code(W) * 2]++), !(ee & 8191) && P > 2) {
|
|
7687
|
-
for (q = ee * 8, J = T - b, ne = 0; ne <
|
|
7687
|
+
for (q = ee * 8, J = T - b, ne = 0; ne < Wa; ne++)
|
|
7688
7688
|
q += M[ne * 2] * (5 + Re.extra_dbits[ne]);
|
|
7689
7689
|
if (q >>>= 3, V < Math.floor(ee / 2) && q < Math.floor(J / 2))
|
|
7690
7690
|
return !0;
|
|
@@ -7710,7 +7710,7 @@ function Jg() {
|
|
|
7710
7710
|
}
|
|
7711
7711
|
function Be(W, Y, q) {
|
|
7712
7712
|
let J, ne, le = 0;
|
|
7713
|
-
P > 0 ? (z.build_tree(e), se.build_tree(e), le = St(), J = e.opt_len + 3 + 7 >>> 3, ne = e.static_len + 3 + 7 >>> 3, ne <= J && (J = ne)) : J = ne = Y + 5, Y + 4 <= J && W != -1 ? he(W, Y, q) : ne == J ? (Le((
|
|
7713
|
+
P > 0 ? (z.build_tree(e), se.build_tree(e), le = St(), J = e.opt_len + 3 + 7 >>> 3, ne = e.static_len + 3 + 7 >>> 3, ne <= J && (J = ne)) : J = ne = Y + 5, Y + 4 <= J && W != -1 ? he(W, Y, q) : ne == J ? (Le((ca << 1) + (q ? 1 : 0), 3), X(Je.static_ltree, Je.static_dtree)) : (Le((Xg << 1) + (q ? 1 : 0), 3), d(z.max_code + 1, se.max_code + 1, le + 1), X(U, M)), Oe(), q && pe();
|
|
7714
7714
|
}
|
|
7715
7715
|
function ue(W) {
|
|
7716
7716
|
Be(b >= 0 ? b : -1, T - b, W), b = T, t.flush_pending();
|
|
@@ -7827,15 +7827,15 @@ function Jg() {
|
|
|
7827
7827
|
return W.total_in = W.total_out = 0, W.msg = null, e.pending = 0, e.pending_out = 0, r = _s, a = Jr, Xe(), Pe(), It;
|
|
7828
7828
|
}
|
|
7829
7829
|
e.deflateInit = function(W, Y, q, J, ne, le) {
|
|
7830
|
-
return J || (J =
|
|
7830
|
+
return J || (J = pa), ne || (ne = Vg), le || (le = Ng), W.msg = null, Y == Ys && (Y = 6), ne < 1 || ne > Gg || J != pa || q < 9 || q > 15 || Y < 0 || Y > 9 || le < 0 || le > ds ? Dt : (W.dstate = e, n = q, s = 1 << n, o = s - 1, R = ne + 7, g = 1 << R, y = g - 1, _ = Math.floor((R + Fe - 1) / Fe), f = new Uint8Array(s * 2), c = [], m = [], Q = 1 << ne + 6, e.pending_buf = new Uint8Array(Q * 4), i = Q * 4, e.dist_buf = new Uint16Array(Q), e.lc_buf = new Uint8Array(Q), P = Y, $ = le, Wr(W));
|
|
7831
7831
|
}, e.deflateEnd = function() {
|
|
7832
|
-
return r !=
|
|
7832
|
+
return r != fa && r != _s && r != bn ? Dt : (e.lc_buf = null, e.dist_buf = null, e.pending_buf = null, m = null, c = null, f = null, e.dstate = null, r == _s ? Wg : It);
|
|
7833
7833
|
}, e.deflateParams = function(W, Y, q) {
|
|
7834
7834
|
let J = It;
|
|
7835
7835
|
return Y == Ys && (Y = 6), Y < 0 || Y > 9 || q < 0 || q > ds ? Dt : (Lt[P].func != Lt[Y].func && W.total_in !== 0 && (J = W.deflate(ff)), P != Y && (P = Y, S = Lt[P].max_lazy, I = Lt[P].good_length, j = Lt[P].nice_length, L = Lt[P].max_chain), $ = q, J);
|
|
7836
7836
|
}, e.deflateSetDictionary = function(W, Y, q) {
|
|
7837
7837
|
let J = q, ne, le = 0;
|
|
7838
|
-
if (!Y || r !=
|
|
7838
|
+
if (!Y || r != fa)
|
|
7839
7839
|
return Dt;
|
|
7840
7840
|
if (J < Fe)
|
|
7841
7841
|
return It;
|
|
@@ -7850,7 +7850,7 @@ function Jg() {
|
|
|
7850
7850
|
return W.msg = ms[hs - Dt], Dt;
|
|
7851
7851
|
if (W.avail_out === 0)
|
|
7852
7852
|
return W.msg = ms[hs - Gr], Gr;
|
|
7853
|
-
if (t = W, le = a, a = Y, r ==
|
|
7853
|
+
if (t = W, le = a, a = Y, r == fa && (J = pa + (n - 8 << 4) << 8, ne = (P - 1 & 255) >> 1, ne > 3 && (ne = 3), J |= ne << 6, T !== 0 && (J |= Zg), J += 31 - J % 31, r = _s, ft(J)), e.pending !== 0) {
|
|
7854
7854
|
if (t.flush_pending(), t.avail_out === 0)
|
|
7855
7855
|
return a = -1, It;
|
|
7856
7856
|
} else if (t.avail_in === 0 && Y <= le && Y != pt)
|
|
@@ -9749,7 +9749,7 @@ const t_ = 15, be = 0, sr = 1, r_ = 2, ct = -2, Ie = -3, uf = -4, ir = -5, _t =
|
|
|
9749
9749
|
13,
|
|
9750
9750
|
13
|
|
9751
9751
|
], fr = 15;
|
|
9752
|
-
function
|
|
9752
|
+
function qa() {
|
|
9753
9753
|
const e = this;
|
|
9754
9754
|
let t, r, i, a, s, n;
|
|
9755
9755
|
function o(p, c, m, h, g, R, y, _, b, C, k) {
|
|
@@ -9819,10 +9819,10 @@ function Ma() {
|
|
|
9819
9819
|
return f(288), t[0] = 0, C = o(m, 0, p, 257, f_, p_, R, h, _, t, r), C != be || h[0] === 0 ? (C == Ie ? b.msg = "oversubscribed literal/length tree" : C != uf && (b.msg = "incomplete literal/length tree", C = Ie), C) : (f(288), C = o(m, p, c, 0, c_, u_, y, g, _, t, r), C != be || g[0] === 0 && p > 257 ? (C == Ie ? b.msg = "oversubscribed distance tree" : C == ir ? (b.msg = "incomplete distance tree", C = Ie) : C != uf && (b.msg = "empty distance tree with lengths", C = Ie), C) : be);
|
|
9820
9820
|
};
|
|
9821
9821
|
}
|
|
9822
|
-
|
|
9822
|
+
qa.inflate_trees_fixed = function(e, t, r, i) {
|
|
9823
9823
|
return e[0] = i_, t[0] = a_, r[0] = o_, i[0] = l_, be;
|
|
9824
9824
|
};
|
|
9825
|
-
const ws = 0, df = 1, hf = 2, mf = 3, yf = 4, gf = 5, _f = 6,
|
|
9825
|
+
const ws = 0, df = 1, hf = 2, mf = 3, yf = 4, gf = 5, _f = 6, ua = 7, wf = 8, bs = 9;
|
|
9826
9826
|
function d_() {
|
|
9827
9827
|
const e = this;
|
|
9828
9828
|
let t, r = 0, i, a = 0, s = 0, n = 0, o = 0, f = 0, p = 0, c = 0, m, h = 0, g, R = 0;
|
|
@@ -9899,7 +9899,7 @@ function d_() {
|
|
|
9899
9899
|
switch (t) {
|
|
9900
9900
|
case ws:
|
|
9901
9901
|
if (P >= 258 && L >= 10 && (_.bitb = H, _.bitk = E, b.avail_in = L, b.total_in += A - b.next_in_index, b.next_in_index = A, _.write = S, C = y(p, c, m, h, g, R, _, b), A = b.next_in_index, L = b.avail_in, H = _.bitb, E = _.bitk, S = _.write, P = S < _.read ? _.read - S - 1 : _.end - S, C != be)) {
|
|
9902
|
-
t = C == sr ?
|
|
9902
|
+
t = C == sr ? ua : bs;
|
|
9903
9903
|
break;
|
|
9904
9904
|
}
|
|
9905
9905
|
s = p, i = m, a = h, t = df;
|
|
@@ -9924,7 +9924,7 @@ function d_() {
|
|
|
9924
9924
|
break;
|
|
9925
9925
|
}
|
|
9926
9926
|
if (T & 32) {
|
|
9927
|
-
t =
|
|
9927
|
+
t = ua;
|
|
9928
9928
|
break;
|
|
9929
9929
|
}
|
|
9930
9930
|
return t = bs, b.msg = "invalid literal/length code", C = Ie, _.bitb = H, _.bitk = E, b.avail_in = L, b.total_in += A - b.next_in_index, b.next_in_index = A, _.write = S, _.inflate_flush(b, C);
|
|
@@ -9979,7 +9979,7 @@ function d_() {
|
|
|
9979
9979
|
C = be, _.win[S++] = /* (byte) */
|
|
9980
9980
|
n, P--, t = ws;
|
|
9981
9981
|
break;
|
|
9982
|
-
case
|
|
9982
|
+
case ua:
|
|
9983
9983
|
if (E > 7 && (E -= 8, L++, A--), _.write = S, C = _.inflate_flush(b, C), S = _.write, P = S < _.read ? _.read - S - 1 : _.end - S, _.read != _.write)
|
|
9984
9984
|
return _.bitb = H, _.bitk = E, b.avail_in = L, b.total_in += A - b.next_in_index, b.next_in_index = A, _.write = S, _.inflate_flush(b, C);
|
|
9985
9985
|
t = wf;
|
|
@@ -10014,13 +10014,13 @@ const bf = [
|
|
|
10014
10014
|
14,
|
|
10015
10015
|
1,
|
|
10016
10016
|
15
|
|
10017
|
-
], Vr = 0,
|
|
10017
|
+
], Vr = 0, da = 1, vf = 2, xf = 3, Sf = 4, kf = 5, vs = 6, xs = 7, Ef = 8, Sr = 9;
|
|
10018
10018
|
function h_(e, t) {
|
|
10019
10019
|
const r = this;
|
|
10020
10020
|
let i = Vr, a = 0, s = 0, n = 0, o;
|
|
10021
10021
|
const f = [0], p = [0], c = new d_();
|
|
10022
10022
|
let m = 0, h = new Int32Array(Yc * 3);
|
|
10023
|
-
const g = 0, R = new
|
|
10023
|
+
const g = 0, R = new qa();
|
|
10024
10024
|
r.bitk = 0, r.bitb = 0, r.win = new Uint8Array(t), r.end = t, r.read = 0, r.write = 0, r.reset = function(y, _) {
|
|
10025
10025
|
_ && (_[0] = g), i == vs && c.free(y), i = Vr, r.bitk = 0, r.bitb = 0, r.read = r.write = 0;
|
|
10026
10026
|
}, r.reset(e, null), r.inflate_flush = function(y, _) {
|
|
@@ -10044,10 +10044,10 @@ function h_(e, t) {
|
|
|
10044
10044
|
switch (b = /* (int) */
|
|
10045
10045
|
C & 7, m = b & 1, b >>> 1) {
|
|
10046
10046
|
case 0:
|
|
10047
|
-
C >>>= 3, k -= 3, b = k & 7, C >>>= b, k -= b, i =
|
|
10047
|
+
C >>>= 3, k -= 3, b = k & 7, C >>>= b, k -= b, i = da;
|
|
10048
10048
|
break;
|
|
10049
10049
|
case 1:
|
|
10050
|
-
L = [], S = [], P = [[]], $ = [[]],
|
|
10050
|
+
L = [], S = [], P = [[]], $ = [[]], qa.inflate_trees_fixed(L, S, P, $), c.init(L[0], S[0], P[0], 0, $[0], 0), C >>>= 3, k -= 3, i = vs;
|
|
10051
10051
|
break;
|
|
10052
10052
|
case 2:
|
|
10053
10053
|
C >>>= 3, k -= 3, i = xf;
|
|
@@ -10056,7 +10056,7 @@ function h_(e, t) {
|
|
|
10056
10056
|
return C >>>= 3, k -= 3, i = Sr, y.msg = "invalid block type", _ = Ie, r.bitb = C, r.bitk = k, y.avail_in = T, y.total_in += D - y.next_in_index, y.next_in_index = D, r.write = H, r.inflate_flush(y, _);
|
|
10057
10057
|
}
|
|
10058
10058
|
break;
|
|
10059
|
-
case
|
|
10059
|
+
case da:
|
|
10060
10060
|
for (; k < 32; ) {
|
|
10061
10061
|
if (T !== 0)
|
|
10062
10062
|
_ = be;
|
|
@@ -10169,10 +10169,10 @@ function h_(e, t) {
|
|
|
10169
10169
|
}, r.set_dictionary = function(y, _, b) {
|
|
10170
10170
|
r.win.set(y.subarray(_, _ + b), 0), r.read = r.write = b;
|
|
10171
10171
|
}, r.sync_point = function() {
|
|
10172
|
-
return i ==
|
|
10172
|
+
return i == da ? 1 : 0;
|
|
10173
10173
|
};
|
|
10174
10174
|
}
|
|
10175
|
-
const m_ = 32, y_ = 8, g_ = 0, Pf = 1, Af = 2, Tf = 3, Of = 4, Cf = 5,
|
|
10175
|
+
const m_ = 32, y_ = 8, g_ = 0, Pf = 1, Af = 2, Tf = 3, Of = 4, Cf = 5, ha = 6, vn = 7, Lf = 12, pr = 13, __ = [0, 0, 255, 255];
|
|
10176
10176
|
function w_() {
|
|
10177
10177
|
const e = this;
|
|
10178
10178
|
e.mode = 0, e.method = 0, e.was = [0], e.need = 0, e.marker = 0, e.wbits = 0;
|
|
@@ -10227,8 +10227,8 @@ function w_() {
|
|
|
10227
10227
|
return a;
|
|
10228
10228
|
a = i, r.avail_in--, r.total_in++, n.need += (r.read_byte(r.next_in_index++) & 255) << 8 & 65280, n.mode = Cf;
|
|
10229
10229
|
case Cf:
|
|
10230
|
-
return r.avail_in === 0 ? a : (a = i, r.avail_in--, r.total_in++, n.need += r.read_byte(r.next_in_index++) & 255, n.mode =
|
|
10231
|
-
case
|
|
10230
|
+
return r.avail_in === 0 ? a : (a = i, r.avail_in--, r.total_in++, n.need += r.read_byte(r.next_in_index++) & 255, n.mode = ha, r_);
|
|
10231
|
+
case ha:
|
|
10232
10232
|
return n.mode = pr, r.msg = "need dictionary", n.marker = 0, ct;
|
|
10233
10233
|
case vn:
|
|
10234
10234
|
if (a = n.blocks.proc(r, a), a == Ie) {
|
|
@@ -10247,7 +10247,7 @@ function w_() {
|
|
|
10247
10247
|
}
|
|
10248
10248
|
}, e.inflateSetDictionary = function(r, i, a) {
|
|
10249
10249
|
let s = 0, n = a;
|
|
10250
|
-
if (!r || !r.istate || r.istate.mode !=
|
|
10250
|
+
if (!r || !r.istate || r.istate.mode != ha)
|
|
10251
10251
|
return ct;
|
|
10252
10252
|
const o = r.istate;
|
|
10253
10253
|
return n >= 1 << o.wbits && (n = (1 << o.wbits) - 1, s = a - n), o.blocks.set_dictionary(i, s, n), o.mode = vn, be;
|
|
@@ -10324,7 +10324,7 @@ function b_(e) {
|
|
|
10324
10324
|
r.inflateEnd();
|
|
10325
10325
|
};
|
|
10326
10326
|
}
|
|
10327
|
-
const Rr = 4294967295, mr = 65535, v_ = 8, x_ = 0, S_ = 99, k_ = 67324752, E_ = 134695760, Rf = 33639248, P_ = 101010256, If = 101075792, A_ = 117853008, Zr = 22,
|
|
10327
|
+
const Rr = 4294967295, mr = 65535, v_ = 8, x_ = 0, S_ = 99, k_ = 67324752, E_ = 134695760, Rf = 33639248, P_ = 101010256, If = 101075792, A_ = 117853008, Zr = 22, ma = 20, ya = 56, T_ = 1, O_ = 39169, C_ = 10, L_ = 1, R_ = 21589, I_ = 28789, $_ = 25461, D_ = 6534, $f = 1, H_ = 6, Df = 8, Hf = 2048, Ff = 16, Bf = 16384, jf = 73, Nf = "/", lt = void 0, xr = "undefined", ns = "function";
|
|
10328
10328
|
class Uf {
|
|
10329
10329
|
constructor(t) {
|
|
10330
10330
|
return class extends TransformStream {
|
|
@@ -10365,7 +10365,7 @@ function j_() {
|
|
|
10365
10365
|
function N_(e) {
|
|
10366
10366
|
return Math.max(e.chunkSize, F_);
|
|
10367
10367
|
}
|
|
10368
|
-
function
|
|
10368
|
+
function vo(e) {
|
|
10369
10369
|
const {
|
|
10370
10370
|
baseURL: t,
|
|
10371
10371
|
chunkSize: r,
|
|
@@ -10396,7 +10396,7 @@ function bo(e) {
|
|
|
10396
10396
|
function cr(e, t) {
|
|
10397
10397
|
t !== lt && (yr[e] = t);
|
|
10398
10398
|
}
|
|
10399
|
-
const
|
|
10399
|
+
const ga = {
|
|
10400
10400
|
application: {
|
|
10401
10401
|
"andrew-inset": "ez",
|
|
10402
10402
|
annodex: "anx",
|
|
@@ -11979,9 +11979,9 @@ const ya = {
|
|
|
11979
11979
|
};
|
|
11980
11980
|
(() => {
|
|
11981
11981
|
const e = {};
|
|
11982
|
-
for (const t of Object.keys(
|
|
11983
|
-
for (const r of Object.keys(
|
|
11984
|
-
const i =
|
|
11982
|
+
for (const t of Object.keys(ga))
|
|
11983
|
+
for (const r of Object.keys(ga[t])) {
|
|
11984
|
+
const i = ga[t][r];
|
|
11985
11985
|
if (typeof i == "string")
|
|
11986
11986
|
e[i] = t + "/" + r;
|
|
11987
11987
|
else
|
|
@@ -12400,11 +12400,11 @@ jr.hmacSha1 = class {
|
|
|
12400
12400
|
return this.update(e), this.digest(e);
|
|
12401
12401
|
}
|
|
12402
12402
|
};
|
|
12403
|
-
const M_ = typeof crypto != xr && typeof crypto.getRandomValues == ns, su = "Invalid password", iu = "Invalid signature",
|
|
12403
|
+
const M_ = typeof crypto != xr && typeof crypto.getRandomValues == ns, su = "Invalid password", iu = "Invalid signature", xo = "zipjs-abort-check-password";
|
|
12404
12404
|
function au(e) {
|
|
12405
12405
|
return M_ ? crypto.getRandomValues(e) : W_.getRandomValues(e);
|
|
12406
12406
|
}
|
|
12407
|
-
const en = 16, q_ = "raw", ou = { name: "PBKDF2" }, K_ = { name: "HMAC" }, z_ = "SHA-1", G_ = Object.assign({ hash: K_ }, ou),
|
|
12407
|
+
const en = 16, q_ = "raw", ou = { name: "PBKDF2" }, K_ = { name: "HMAC" }, z_ = "SHA-1", G_ = Object.assign({ hash: K_ }, ou), Ka = Object.assign({ iterations: 1e3, hash: { name: z_ } }, ou), V_ = ["deriveBits"], Mn = [8, 12, 16], xn = [16, 24, 32], hr = 10, Z_ = [0, 0, 0, 0], hi = typeof crypto != xr, ss = hi && crypto.subtle, lu = hi && typeof ss != xr, Zt = Js.bytes, Y_ = ru.aes, X_ = nu.ctrGladman, J_ = jr.hmacSha1;
|
|
12408
12408
|
let Wf = hi && lu && typeof ss.importKey == ns, Mf = hi && lu && typeof ss.deriveBits == ns;
|
|
12409
12409
|
class Q_ extends TransformStream {
|
|
12410
12410
|
constructor({ password: t, rawPassword: r, signed: i, encryptionStrength: a, checkPasswordOnly: s }) {
|
|
@@ -12425,7 +12425,7 @@ class Q_ extends TransformStream {
|
|
|
12425
12425
|
resolveReady: m,
|
|
12426
12426
|
ready: h
|
|
12427
12427
|
} = f;
|
|
12428
|
-
p ? (await t1(f, c, p, Pt(n, 0, Mn[c] + 2)), n = Pt(n, Mn[c] + 2), s ? o.error(new Error(
|
|
12428
|
+
p ? (await t1(f, c, p, Pt(n, 0, Mn[c] + 2)), n = Pt(n, Mn[c] + 2), s ? o.error(new Error(xo)) : m()) : await h;
|
|
12429
12429
|
const g = new Uint8Array(n.length - hr - (n.length - hr) % en);
|
|
12430
12430
|
o.enqueue(fu(f, n, g, 0, hr, !0));
|
|
12431
12431
|
},
|
|
@@ -12497,7 +12497,7 @@ class e1 extends TransformStream {
|
|
|
12497
12497
|
const m = n.update(Kn(Zt, f));
|
|
12498
12498
|
o.update(m), c = qn(Zt, m);
|
|
12499
12499
|
}
|
|
12500
|
-
a.signature = qn(Zt, o.digest()).slice(0, hr), s.enqueue(
|
|
12500
|
+
a.signature = qn(Zt, o.digest()).slice(0, hr), s.enqueue(So(c, a.signature));
|
|
12501
12501
|
}
|
|
12502
12502
|
}
|
|
12503
12503
|
}), a = this;
|
|
@@ -12509,7 +12509,7 @@ function fu(e, t, r, i, a, s) {
|
|
|
12509
12509
|
hmac: o,
|
|
12510
12510
|
pending: f
|
|
12511
12511
|
} = e, p = t.length - a;
|
|
12512
|
-
f.length && (t =
|
|
12512
|
+
f.length && (t = So(f, t), r = i1(r, p - p % en));
|
|
12513
12513
|
let c;
|
|
12514
12514
|
for (c = 0; c <= p - en; c += en) {
|
|
12515
12515
|
const m = Kn(Zt, Pt(t, c, c + en));
|
|
@@ -12526,11 +12526,11 @@ async function t1(e, t, r, i) {
|
|
|
12526
12526
|
}
|
|
12527
12527
|
async function r1(e, t, r) {
|
|
12528
12528
|
const i = au(new Uint8Array(Mn[t])), a = await pu(e, t, r, i);
|
|
12529
|
-
return
|
|
12529
|
+
return So(i, a);
|
|
12530
12530
|
}
|
|
12531
12531
|
async function pu(e, t, r, i) {
|
|
12532
12532
|
e.password = null;
|
|
12533
|
-
const a = await n1(q_, r, G_, !1, V_), s = await s1(Object.assign({ salt: i },
|
|
12533
|
+
const a = await n1(q_, r, G_, !1, V_), s = await s1(Object.assign({ salt: i }, Ka), a, 8 * (xn[t] * 2 + 2)), n = new Uint8Array(s), o = Kn(Zt, Pt(n, 0, xn[t])), f = Kn(Zt, Pt(n, xn[t], xn[t] * 2)), p = Pt(n, xn[t] * 2);
|
|
12534
12534
|
return Object.assign(e, {
|
|
12535
12535
|
keys: {
|
|
12536
12536
|
key: o,
|
|
@@ -12556,15 +12556,15 @@ async function s1(e, t, r) {
|
|
|
12556
12556
|
try {
|
|
12557
12557
|
return await ss.deriveBits(e, t, r);
|
|
12558
12558
|
} catch {
|
|
12559
|
-
return Mf = !1, jr.pbkdf2(t, e.salt,
|
|
12559
|
+
return Mf = !1, jr.pbkdf2(t, e.salt, Ka.iterations, r);
|
|
12560
12560
|
}
|
|
12561
12561
|
else
|
|
12562
|
-
return jr.pbkdf2(t, e.salt,
|
|
12562
|
+
return jr.pbkdf2(t, e.salt, Ka.iterations, r);
|
|
12563
12563
|
}
|
|
12564
12564
|
function cu(e, t) {
|
|
12565
12565
|
return t === lt ? U_(e) : t;
|
|
12566
12566
|
}
|
|
12567
|
-
function
|
|
12567
|
+
function So(e, t) {
|
|
12568
12568
|
let r = e;
|
|
12569
12569
|
return e.length + t.length && (r = new Uint8Array(e.length + t.length), r.set(e, 0), r.set(t, e.length)), r;
|
|
12570
12570
|
}
|
|
@@ -12602,7 +12602,7 @@ class a1 extends TransformStream {
|
|
|
12602
12602
|
throw new Error(su);
|
|
12603
12603
|
a = a.subarray(an);
|
|
12604
12604
|
}
|
|
12605
|
-
i ? s.error(new Error(
|
|
12605
|
+
i ? s.error(new Error(xo)) : s.enqueue(qf(n, a));
|
|
12606
12606
|
}
|
|
12607
12607
|
});
|
|
12608
12608
|
}
|
|
@@ -12633,13 +12633,13 @@ class o1 extends TransformStream {
|
|
|
12633
12633
|
function qf(e, t) {
|
|
12634
12634
|
const r = new Uint8Array(t.length);
|
|
12635
12635
|
for (let i = 0; i < t.length; i++)
|
|
12636
|
-
r[i] = du(e) ^ t[i],
|
|
12636
|
+
r[i] = du(e) ^ t[i], ko(e, r[i]);
|
|
12637
12637
|
return r;
|
|
12638
12638
|
}
|
|
12639
12639
|
function Kf(e, t) {
|
|
12640
12640
|
const r = new Uint8Array(t.length);
|
|
12641
12641
|
for (let i = 0; i < t.length; i++)
|
|
12642
|
-
r[i] = du(e) ^ t[i],
|
|
12642
|
+
r[i] = du(e) ^ t[i], ko(e, t[i]);
|
|
12643
12643
|
return r;
|
|
12644
12644
|
}
|
|
12645
12645
|
function uu(e, t) {
|
|
@@ -12650,9 +12650,9 @@ function uu(e, t) {
|
|
|
12650
12650
|
crcKey2: new Xs(r[2])
|
|
12651
12651
|
});
|
|
12652
12652
|
for (let i = 0; i < t.length; i++)
|
|
12653
|
-
|
|
12653
|
+
ko(e, t.charCodeAt(i));
|
|
12654
12654
|
}
|
|
12655
|
-
function
|
|
12655
|
+
function ko(e, t) {
|
|
12656
12656
|
let [r, i, a] = e.keys;
|
|
12657
12657
|
e.crcKey0.append([t]), r = ~e.crcKey0.get(), i = zf(Math.imul(zf(i + hu(r)), 134775813) + 1), e.crcKey2.append([i >>> 24]), a = ~e.crcKey2.get(), e.keys = [r, i, a];
|
|
12658
12658
|
}
|
|
@@ -12781,7 +12781,7 @@ class y1 extends TransformStream {
|
|
|
12781
12781
|
}
|
|
12782
12782
|
}
|
|
12783
12783
|
let wu = typeof Worker != xr;
|
|
12784
|
-
class
|
|
12784
|
+
class _a {
|
|
12785
12785
|
constructor(t, { readable: r, writable: i }, { options: a, config: s, streamOptions: n, useWebWorkers: o, transferStreams: f, scripts: p }, c) {
|
|
12786
12786
|
const { signal: m } = n;
|
|
12787
12787
|
return Object.assign(t, {
|
|
@@ -12809,18 +12809,18 @@ class g1 extends TransformStream {
|
|
|
12809
12809
|
let n = 0;
|
|
12810
12810
|
super({
|
|
12811
12811
|
async start() {
|
|
12812
|
-
r && await
|
|
12812
|
+
r && await wa(r, a);
|
|
12813
12813
|
},
|
|
12814
12814
|
async transform(o, f) {
|
|
12815
|
-
n += o.length, i && await
|
|
12815
|
+
n += o.length, i && await wa(i, n, a), f.enqueue(o);
|
|
12816
12816
|
},
|
|
12817
12817
|
async flush() {
|
|
12818
|
-
t.size = n, s && await
|
|
12818
|
+
t.size = n, s && await wa(s, n);
|
|
12819
12819
|
}
|
|
12820
12820
|
});
|
|
12821
12821
|
}
|
|
12822
12822
|
}
|
|
12823
|
-
async function
|
|
12823
|
+
async function wa(e, ...t) {
|
|
12824
12824
|
try {
|
|
12825
12825
|
await e(...t);
|
|
12826
12826
|
} catch {
|
|
@@ -12966,7 +12966,7 @@ async function S1({ data: e }, t) {
|
|
|
12966
12966
|
}
|
|
12967
12967
|
}
|
|
12968
12968
|
let Ar = [];
|
|
12969
|
-
const
|
|
12969
|
+
const ba = [];
|
|
12970
12970
|
let Jf = 0;
|
|
12971
12971
|
async function k1(e, t) {
|
|
12972
12972
|
const { options: r, config: i } = t, { transferStreams: a, useWebWorkers: s, useCompressionStream: n, codecType: o, compressed: f, signed: p, encrypted: c } = r, { workerScripts: m, maxWorkers: h } = i;
|
|
@@ -12976,17 +12976,17 @@ async function k1(e, t) {
|
|
|
12976
12976
|
async function R() {
|
|
12977
12977
|
const _ = Ar.find((b) => !b.busy);
|
|
12978
12978
|
if (_)
|
|
12979
|
-
return Qf(_), new
|
|
12979
|
+
return Qf(_), new _a(_, e, t, y);
|
|
12980
12980
|
if (Ar.length < h) {
|
|
12981
12981
|
const b = { indexWorker: Jf };
|
|
12982
|
-
return Jf++, Ar.push(b), new
|
|
12982
|
+
return Jf++, Ar.push(b), new _a(b, e, t, y);
|
|
12983
12983
|
} else
|
|
12984
|
-
return new Promise((b) =>
|
|
12984
|
+
return new Promise((b) => ba.push({ resolve: b, stream: e, workerOptions: t }));
|
|
12985
12985
|
}
|
|
12986
12986
|
function y(_) {
|
|
12987
|
-
if (
|
|
12988
|
-
const [{ resolve: b, stream: C, workerOptions: k }] =
|
|
12989
|
-
b(new
|
|
12987
|
+
if (ba.length) {
|
|
12988
|
+
const [{ resolve: b, stream: C, workerOptions: k }] = ba.splice(0, 1);
|
|
12989
|
+
b(new _a(_, C, k, y));
|
|
12990
12990
|
} else _.worker ? (Qf(_), E1(_, t)) : Ar = Ar.filter((b) => b != _);
|
|
12991
12991
|
}
|
|
12992
12992
|
}
|
|
@@ -13010,7 +13010,7 @@ function P1(e, t = {}) {
|
|
|
13010
13010
|
e({ workerScripts: { inflate: [i], deflate: [i] } });
|
|
13011
13011
|
}
|
|
13012
13012
|
const A1 = "Writer iterator completed too soon", T1 = "Content-Type", O1 = 64 * 1024, vu = "writable";
|
|
13013
|
-
class
|
|
13013
|
+
class Eo {
|
|
13014
13014
|
constructor() {
|
|
13015
13015
|
this.size = 0;
|
|
13016
13016
|
}
|
|
@@ -13018,7 +13018,7 @@ class ko {
|
|
|
13018
13018
|
this.initialized = !0;
|
|
13019
13019
|
}
|
|
13020
13020
|
}
|
|
13021
|
-
class xu extends
|
|
13021
|
+
class xu extends Eo {
|
|
13022
13022
|
get readable() {
|
|
13023
13023
|
const t = this, { chunkSize: r = O1 } = t, i = new ReadableStream({
|
|
13024
13024
|
start() {
|
|
@@ -13032,7 +13032,7 @@ class xu extends ko {
|
|
|
13032
13032
|
return i;
|
|
13033
13033
|
}
|
|
13034
13034
|
}
|
|
13035
|
-
class
|
|
13035
|
+
class za extends xu {
|
|
13036
13036
|
constructor(t) {
|
|
13037
13037
|
super(), Object.assign(this, {
|
|
13038
13038
|
blob: t,
|
|
@@ -13045,7 +13045,7 @@ class Ka extends xu {
|
|
|
13045
13045
|
return n.byteLength > r && (n = n.slice(t, a)), new Uint8Array(n);
|
|
13046
13046
|
}
|
|
13047
13047
|
}
|
|
13048
|
-
class C1 extends
|
|
13048
|
+
class C1 extends Eo {
|
|
13049
13049
|
constructor(t) {
|
|
13050
13050
|
super();
|
|
13051
13051
|
const r = this, i = new TransformStream(), a = [];
|
|
@@ -13086,7 +13086,7 @@ class L1 extends xu {
|
|
|
13086
13086
|
return a.lastDiskNumber = Math.max(o, a.lastDiskNumber), n;
|
|
13087
13087
|
}
|
|
13088
13088
|
}
|
|
13089
|
-
class ep extends
|
|
13089
|
+
class ep extends Eo {
|
|
13090
13090
|
constructor(t, r = 4294967295) {
|
|
13091
13091
|
super();
|
|
13092
13092
|
const i = this;
|
|
@@ -13167,20 +13167,20 @@ function D1(e) {
|
|
|
13167
13167
|
function Hs(e, t) {
|
|
13168
13168
|
return t && t.trim().toLowerCase() == "cp437" ? D1(e) : new TextDecoder(t).decode(e);
|
|
13169
13169
|
}
|
|
13170
|
-
const ku = "filename", Eu = "rawFilename", Pu = "comment", Au = "rawComment", Tu = "uncompressedSize", Ou = "compressedSize", Cu = "offset",
|
|
13170
|
+
const ku = "filename", Eu = "rawFilename", Pu = "comment", Au = "rawComment", Tu = "uncompressedSize", Ou = "compressedSize", Cu = "offset", Ga = "diskNumberStart", Va = "lastModDate", Za = "rawLastModDate", Lu = "lastAccessDate", H1 = "rawLastAccessDate", Ru = "creationDate", F1 = "rawCreationDate", B1 = "internalFileAttribute", j1 = "internalFileAttributes", N1 = "externalFileAttribute", U1 = "externalFileAttributes", W1 = "msDosCompatible", M1 = "zip64", q1 = "encrypted", K1 = "version", z1 = "versionMadeBy", G1 = "zipCrypto", V1 = "directory", Z1 = "executable", Y1 = [
|
|
13171
13171
|
ku,
|
|
13172
13172
|
Eu,
|
|
13173
13173
|
Ou,
|
|
13174
13174
|
Tu,
|
|
13175
|
-
Ga,
|
|
13176
13175
|
Va,
|
|
13176
|
+
Za,
|
|
13177
13177
|
Pu,
|
|
13178
13178
|
Au,
|
|
13179
13179
|
Lu,
|
|
13180
13180
|
Ru,
|
|
13181
13181
|
Cu,
|
|
13182
|
-
|
|
13183
|
-
|
|
13182
|
+
Ga,
|
|
13183
|
+
Ga,
|
|
13184
13184
|
B1,
|
|
13185
13185
|
j1,
|
|
13186
13186
|
N1,
|
|
@@ -13212,11 +13212,11 @@ class tp {
|
|
|
13212
13212
|
Y1.forEach((r) => this[r] = t[r]);
|
|
13213
13213
|
}
|
|
13214
13214
|
}
|
|
13215
|
-
const
|
|
13215
|
+
const va = "File format is not recognized", X1 = "End of central directory not found", J1 = "End of Zip64 central directory locator not found", Q1 = "Central directory header not found", ew = "Local file header not found", tw = "Zip64 extra field not found", rw = "File contains encrypted entry", nw = "Encryption method not supported", rp = "Compression method not supported", np = "Split zip file", sp = "utf-8", ip = "cp437", sw = [
|
|
13216
13216
|
[Tu, Rr],
|
|
13217
13217
|
[Ou, Rr],
|
|
13218
13218
|
[Cu, Rr],
|
|
13219
|
-
[
|
|
13219
|
+
[Ga, mr]
|
|
13220
13220
|
], iw = {
|
|
13221
13221
|
[mr]: {
|
|
13222
13222
|
getValue: Ne,
|
|
@@ -13239,8 +13239,8 @@ class ap {
|
|
|
13239
13239
|
const r = this;
|
|
13240
13240
|
let { reader: i } = r;
|
|
13241
13241
|
const { config: a } = r;
|
|
13242
|
-
if (await Qs(i), (i.size === lt || !i.readUint8Array) && (i = new
|
|
13243
|
-
throw new Error(
|
|
13242
|
+
if (await Qs(i), (i.size === lt || !i.readUint8Array) && (i = new za(await new Response(i.readable).blob()), await Qs(i)), i.size < Zr)
|
|
13243
|
+
throw new Error(va);
|
|
13244
13244
|
i.chunkSize = N_(a);
|
|
13245
13245
|
const s = await cw(i, P_, i.size, Zr, mr * 16);
|
|
13246
13246
|
if (!s) {
|
|
@@ -13254,14 +13254,14 @@ class ap {
|
|
|
13254
13254
|
const g = i.lastDiskNumber || 0;
|
|
13255
13255
|
let R = Ve(n, 6), y = Ve(n, 8), _ = 0, b = 0;
|
|
13256
13256
|
if (f == Rr || o == Rr || y == mr || R == mr) {
|
|
13257
|
-
const S = await et(i, s.offset -
|
|
13257
|
+
const S = await et(i, s.offset - ma, ma), P = Ze(S);
|
|
13258
13258
|
if (Ne(P, 0) == A_) {
|
|
13259
13259
|
f = Fs(P, 8);
|
|
13260
|
-
let $ = await et(i, f,
|
|
13261
|
-
const j = s.offset -
|
|
13260
|
+
let $ = await et(i, f, ya, -1), I = Ze($);
|
|
13261
|
+
const j = s.offset - ma - ya;
|
|
13262
13262
|
if (Ne(I, 0) != If && f != j) {
|
|
13263
13263
|
const U = f;
|
|
13264
|
-
f = j, _ = f - U, $ = await et(i, f,
|
|
13264
|
+
f = j, _ = f - U, $ = await et(i, f, ya, -1), I = Ze($);
|
|
13265
13265
|
}
|
|
13266
13266
|
if (Ne(I, 0) != If)
|
|
13267
13267
|
throw new Error(J1);
|
|
@@ -13271,7 +13271,7 @@ class ap {
|
|
|
13271
13271
|
if (f >= i.size && (_ = i.size - f - o - Zr, f = i.size - o - Zr), g != h)
|
|
13272
13272
|
throw new Error(np);
|
|
13273
13273
|
if (f < 0)
|
|
13274
|
-
throw new Error(
|
|
13274
|
+
throw new Error(va);
|
|
13275
13275
|
let C = 0, k = await et(i, f, o, R), D = Ze(k);
|
|
13276
13276
|
if (o) {
|
|
13277
13277
|
const S = s.offset - o;
|
|
@@ -13282,7 +13282,7 @@ class ap {
|
|
|
13282
13282
|
}
|
|
13283
13283
|
const T = s.offset - f - (i.lastDiskOffset || 0);
|
|
13284
13284
|
if (o != T && T >= 0 && (o = T, k = await et(i, f, o, R), D = Ze(k)), f < 0 || f >= i.size)
|
|
13285
|
-
throw new Error(
|
|
13285
|
+
throw new Error(va);
|
|
13286
13286
|
const H = it(r, t, "filenameEncoding"), E = it(r, t, "commentEncoding");
|
|
13287
13287
|
for (let S = 0; S < y; S++) {
|
|
13288
13288
|
const P = new aw(i, a, r.options);
|
|
@@ -13412,7 +13412,7 @@ class aw {
|
|
|
13412
13412
|
try {
|
|
13413
13413
|
({ outputSize: z } = await k1({ readable: S, writable: I }, Z));
|
|
13414
13414
|
} catch (se) {
|
|
13415
|
-
if (!$ || se.message !=
|
|
13415
|
+
if (!$ || se.message != xo)
|
|
13416
13416
|
throw se;
|
|
13417
13417
|
} finally {
|
|
13418
13418
|
const se = it(a, i, "preventClose");
|
|
@@ -13523,7 +13523,7 @@ function fw(e, t) {
|
|
|
13523
13523
|
rawLastAccessDate: o,
|
|
13524
13524
|
rawCreationDate: f
|
|
13525
13525
|
});
|
|
13526
|
-
const p =
|
|
13526
|
+
const p = xa(n), c = xa(o), m = xa(f), h = { lastModDate: p, lastAccessDate: c, creationDate: m };
|
|
13527
13527
|
Object.assign(e, h), Object.assign(t, h);
|
|
13528
13528
|
}
|
|
13529
13529
|
} catch {
|
|
@@ -13531,7 +13531,7 @@ function fw(e, t) {
|
|
|
13531
13531
|
}
|
|
13532
13532
|
function pw(e, t, r) {
|
|
13533
13533
|
const i = Ze(e.data), a = on(i, 0), s = [], n = [];
|
|
13534
|
-
r ? ((a & 1) == 1 && (s.push(
|
|
13534
|
+
r ? ((a & 1) == 1 && (s.push(Va), n.push(Za)), (a & 2) == 2 && (s.push(Lu), n.push(H1)), (a & 4) == 4 && (s.push(Ru), n.push(F1))) : e.data.length >= 5 && (s.push(Va), n.push(Za));
|
|
13535
13535
|
let o = 1;
|
|
13536
13536
|
s.forEach((f, p) => {
|
|
13537
13537
|
if (e.data.length >= o + 4) {
|
|
@@ -13568,7 +13568,7 @@ function uw(e) {
|
|
|
13568
13568
|
} catch {
|
|
13569
13569
|
}
|
|
13570
13570
|
}
|
|
13571
|
-
function
|
|
13571
|
+
function xa(e) {
|
|
13572
13572
|
return new Date(Number(e / BigInt(1e4) - BigInt(116444736e5)));
|
|
13573
13573
|
}
|
|
13574
13574
|
function on(e, t) {
|
|
@@ -13594,9 +13594,9 @@ try {
|
|
|
13594
13594
|
Du = import.meta.url;
|
|
13595
13595
|
} catch {
|
|
13596
13596
|
}
|
|
13597
|
-
|
|
13598
|
-
P1(
|
|
13599
|
-
|
|
13597
|
+
vo({ baseURL: Du });
|
|
13598
|
+
P1(vo);
|
|
13599
|
+
vo({ Deflate: Qg, Inflate: b_ });
|
|
13600
13600
|
class hw {
|
|
13601
13601
|
constructor(t) {
|
|
13602
13602
|
this.fileTree = t;
|
|
@@ -13635,13 +13635,13 @@ class ei {
|
|
|
13635
13635
|
}
|
|
13636
13636
|
static fromStream(t) {
|
|
13637
13637
|
const r = new ap(
|
|
13638
|
-
new
|
|
13638
|
+
new za(new Rn(t, "archive.zip"))
|
|
13639
13639
|
);
|
|
13640
13640
|
return new ei(r);
|
|
13641
13641
|
}
|
|
13642
13642
|
static fromArrayBuffer(t) {
|
|
13643
13643
|
const r = new ap(
|
|
13644
|
-
new
|
|
13644
|
+
new za(new Blob([t]))
|
|
13645
13645
|
);
|
|
13646
13646
|
return new ei(r);
|
|
13647
13647
|
}
|
|
@@ -14084,7 +14084,7 @@ crypto.subtle.generateKey(
|
|
|
14084
14084
|
["deriveKey", "deriveBits"]
|
|
14085
14085
|
// Key usage
|
|
14086
14086
|
);
|
|
14087
|
-
async function
|
|
14087
|
+
async function Ya(e, t) {
|
|
14088
14088
|
const r = ["GET", "HEAD"].includes(e.method) || "body" in t ? void 0 : await e.blob();
|
|
14089
14089
|
return new Request(t.url || e.url, {
|
|
14090
14090
|
body: r,
|
|
@@ -14105,8 +14105,8 @@ async function Pw(e) {
|
|
|
14105
14105
|
return [e, e];
|
|
14106
14106
|
const [t, r] = e.body.tee();
|
|
14107
14107
|
return [
|
|
14108
|
-
await
|
|
14109
|
-
await
|
|
14108
|
+
await Ya(e, { body: t, duplex: "half" }),
|
|
14109
|
+
await Ya(e, { body: r, duplex: "half" })
|
|
14110
14110
|
];
|
|
14111
14111
|
}
|
|
14112
14112
|
async function Aw(e, t, r, i) {
|
|
@@ -14124,7 +14124,7 @@ async function Aw(e, t, r, i) {
|
|
|
14124
14124
|
try {
|
|
14125
14125
|
return await fetch(o);
|
|
14126
14126
|
} catch {
|
|
14127
|
-
const m = ((p = new Headers(f.headers).get("x-cors-proxy-allowed-request-headers")) == null ? void 0 : p.split(",")) || [], h = m.includes("authorization") || m.includes("cookie"), g = await
|
|
14127
|
+
const m = ((p = new Headers(f.headers).get("x-cors-proxy-allowed-request-headers")) == null ? void 0 : p.split(",")) || [], h = m.includes("authorization") || m.includes("cookie"), g = await Ya(f, {
|
|
14128
14128
|
url: `${r}${a.url}`,
|
|
14129
14129
|
...h && { credentials: "include" }
|
|
14130
14130
|
});
|
|
@@ -14335,7 +14335,7 @@ class Lw extends Jt {
|
|
|
14335
14335
|
return this.resource.name;
|
|
14336
14336
|
}
|
|
14337
14337
|
}
|
|
14338
|
-
class
|
|
14338
|
+
class Po extends Jt {
|
|
14339
14339
|
/**
|
|
14340
14340
|
* Creates a new instance of `FetchResource`.
|
|
14341
14341
|
* @param progress The progress tracker.
|
|
@@ -14435,7 +14435,7 @@ function Rw(e) {
|
|
|
14435
14435
|
}
|
|
14436
14436
|
const Iw = () => {
|
|
14437
14437
|
};
|
|
14438
|
-
class $w extends
|
|
14438
|
+
class $w extends Po {
|
|
14439
14439
|
/**
|
|
14440
14440
|
* Creates a new instance of `UrlResource`.
|
|
14441
14441
|
* @param resource The URL reference.
|
|
@@ -14502,7 +14502,7 @@ class Dw extends Jt {
|
|
|
14502
14502
|
* Generate a nice, non-empty filename – the installPlugin step depends on it.
|
|
14503
14503
|
*/
|
|
14504
14504
|
get filename() {
|
|
14505
|
-
return this.name.replaceAll(/[^a-zA-Z0-9-.]/g, "-").replaceAll(/-+/g, "-").replace(/^[^a-zA-Z0-9]+|[^a-zA-Z0-9]+$/g, "") ||
|
|
14505
|
+
return this.name.replaceAll(/[^a-zA-Z0-9-.]/g, "-").replaceAll(/-+/g, "-").replace(/^[^a-zA-Z0-9]+|[^a-zA-Z0-9]+$/g, "") || Xa();
|
|
14506
14506
|
}
|
|
14507
14507
|
/** @inheritDoc */
|
|
14508
14508
|
get name() {
|
|
@@ -14531,7 +14531,7 @@ class Fw extends Jt {
|
|
|
14531
14531
|
return this.reference.name;
|
|
14532
14532
|
}
|
|
14533
14533
|
}
|
|
14534
|
-
class Bw extends
|
|
14534
|
+
class Bw extends Po {
|
|
14535
14535
|
constructor(t, r) {
|
|
14536
14536
|
super(r), this.resource = t;
|
|
14537
14537
|
}
|
|
@@ -14542,7 +14542,7 @@ class Bw extends Eo {
|
|
|
14542
14542
|
return `https://downloads.wordpress.org/theme/${Fu(this.resource.slug)}`;
|
|
14543
14543
|
}
|
|
14544
14544
|
}
|
|
14545
|
-
class jw extends
|
|
14545
|
+
class jw extends Po {
|
|
14546
14546
|
constructor(t, r) {
|
|
14547
14547
|
super(r), this.resource = t;
|
|
14548
14548
|
}
|
|
@@ -14797,7 +14797,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
14797
14797
|
), t = `/${t}`), await e.unlink(t);
|
|
14798
14798
|
}, Kw = async (e, { sql: t }, r) => {
|
|
14799
14799
|
r == null || r.tracker.setCaption("Executing SQL Queries");
|
|
14800
|
-
const i = `/tmp/${
|
|
14800
|
+
const i = `/tmp/${Xa()}.sql`;
|
|
14801
14801
|
await e.writeFile(
|
|
14802
14802
|
i,
|
|
14803
14803
|
new Uint8Array(await t.arrayBuffer())
|
|
@@ -15247,7 +15247,7 @@ async function Zw(e, t) {
|
|
|
15247
15247
|
)
|
|
15248
15248
|
), await Wu(e, r, i, "skip");
|
|
15249
15249
|
}
|
|
15250
|
-
const
|
|
15250
|
+
const Ao = async (e, { consts: t, method: r = "define-before-run" }) => {
|
|
15251
15251
|
switch (r) {
|
|
15252
15252
|
case "define-before-run":
|
|
15253
15253
|
await Yw(e, t);
|
|
@@ -15293,7 +15293,7 @@ const Mu = async (e, { options: t }) => {
|
|
|
15293
15293
|
}
|
|
15294
15294
|
`
|
|
15295
15295
|
});
|
|
15296
|
-
},
|
|
15296
|
+
}, To = "/tmp/wp-cli.phar", Jw = {
|
|
15297
15297
|
resource: "url",
|
|
15298
15298
|
/**
|
|
15299
15299
|
* Use compression for downloading the wp-cli.phar file.
|
|
@@ -15306,7 +15306,7 @@ const Mu = async (e, { options: t }) => {
|
|
|
15306
15306
|
* like the JavaScript parser or Composer are removed.
|
|
15307
15307
|
*/
|
|
15308
15308
|
url: "https://playground.wordpress.net/wp-cli.phar"
|
|
15309
|
-
}, qu = async (e, t =
|
|
15309
|
+
}, qu = async (e, t = To) => {
|
|
15310
15310
|
if (!await e.fileExists(t))
|
|
15311
15311
|
throw new Error(`wp-cli.phar not found at ${t}.
|
|
15312
15312
|
You can enable wp-cli support by adding "wp-cli" to the list of extra libraries in your blueprint as follows:
|
|
@@ -15315,7 +15315,7 @@ const Mu = async (e, { options: t }) => {
|
|
|
15315
15315
|
}
|
|
15316
15316
|
Read more about it in the documentation.
|
|
15317
15317
|
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`);
|
|
15318
|
-
}, Ku = async (e, { command: t, wpCliPath: r =
|
|
15318
|
+
}, Ku = async (e, { command: t, wpCliPath: r = To }) => {
|
|
15319
15319
|
await qu(e, r);
|
|
15320
15320
|
let i;
|
|
15321
15321
|
if (typeof t == "string" ? (t = t.trim(), i = Qw(t)) : i = t, i.shift() !== "wp")
|
|
@@ -15395,7 +15395,7 @@ function Qw(e) {
|
|
|
15395
15395
|
return n && s.push(n), s;
|
|
15396
15396
|
}
|
|
15397
15397
|
const eb = async (e, { wpCliPath: t }) => {
|
|
15398
|
-
await qu(e, t), await
|
|
15398
|
+
await qu(e, t), await Ao(e, {
|
|
15399
15399
|
consts: {
|
|
15400
15400
|
WP_ALLOW_MULTISITE: 1
|
|
15401
15401
|
}
|
|
@@ -15489,7 +15489,7 @@ Use: rmdir({ path: '/wordpress/wp-load.php' });
|
|
|
15489
15489
|
This will ensure your code works reliably regardless of the current working directory.
|
|
15490
15490
|
`.trim()
|
|
15491
15491
|
), t = `/${t}`), await e.rmdir(t);
|
|
15492
|
-
},
|
|
15492
|
+
}, Oo = async (e, { path: t, data: r }) => {
|
|
15493
15493
|
r instanceof File && (r = new Uint8Array(await r.arrayBuffer())), t.startsWith("/") || (Te.error(
|
|
15494
15494
|
`
|
|
15495
15495
|
The writeFile() step in your Blueprint refers to a relative path.
|
|
@@ -15526,7 +15526,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
15526
15526
|
`.trim()
|
|
15527
15527
|
), t = `/${t}`), await si(e, t, r.files);
|
|
15528
15528
|
}, zu = async (e, { siteUrl: t }) => {
|
|
15529
|
-
await
|
|
15529
|
+
await Ao(e, {
|
|
15530
15530
|
consts: {
|
|
15531
15531
|
WP_HOME: t,
|
|
15532
15532
|
WP_SITEURL: t
|
|
@@ -15537,7 +15537,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
15537
15537
|
};
|
|
15538
15538
|
async function ob(e, t, r) {
|
|
15539
15539
|
var i;
|
|
15540
|
-
(i = r == null ? void 0 : r.tracker) == null || i.setCaption("Importing content"), await
|
|
15540
|
+
(i = r == null ? void 0 : r.tracker) == null || i.setCaption("Importing content"), await Oo(e, {
|
|
15541
15541
|
path: "/tmp/import.wxr",
|
|
15542
15542
|
data: t
|
|
15543
15543
|
}), await e.run({
|
|
@@ -15660,7 +15660,7 @@ const Gu = async (e, { themeSlug: t = "" }, r) => {
|
|
|
15660
15660
|
wp_publish_post( $wp_customize->changeset_post_id() );
|
|
15661
15661
|
`
|
|
15662
15662
|
});
|
|
15663
|
-
},
|
|
15663
|
+
}, Co = async (e, { zipFile: t, zipPath: r, extractToPath: i }) => {
|
|
15664
15664
|
if (r)
|
|
15665
15665
|
Te.warn(
|
|
15666
15666
|
'The "zipPath" option of the unzip() Blueprint step is deprecated and will be removed. Use "zipFile" instead.'
|
|
@@ -15692,7 +15692,7 @@ const Gu = async (e, { themeSlug: t = "" }, r) => {
|
|
|
15692
15692
|
], lb = async (e, { wordPressFilesZip: t, pathInZip: r = "" }) => {
|
|
15693
15693
|
const i = await e.documentRoot;
|
|
15694
15694
|
let a = Ae("/tmp", "import");
|
|
15695
|
-
await e.mkdir(a), await
|
|
15695
|
+
await e.mkdir(a), await Co(e, {
|
|
15696
15696
|
zipFile: t,
|
|
15697
15697
|
extractToPath: a
|
|
15698
15698
|
}), a = Ae(a, r);
|
|
@@ -15704,7 +15704,7 @@ const Gu = async (e, { themeSlug: t = "" }, r) => {
|
|
|
15704
15704
|
);
|
|
15705
15705
|
await lp(e, m);
|
|
15706
15706
|
const h = Ae(n, c);
|
|
15707
|
-
await e.fileExists(h) && (await e.mkdir(
|
|
15707
|
+
await e.fileExists(h) && (await e.mkdir(Pa(m)), await e.mv(h, m));
|
|
15708
15708
|
}
|
|
15709
15709
|
const o = Ae(
|
|
15710
15710
|
a,
|
|
@@ -15749,12 +15749,12 @@ async function Zu(e, {
|
|
|
15749
15749
|
ifAlreadyInstalled: i = "overwrite",
|
|
15750
15750
|
targetFolderName: a = ""
|
|
15751
15751
|
}) {
|
|
15752
|
-
const n = r.name.replace(/\.zip$/, ""), o = Ae(await e.documentRoot, "wp-content"), f = Ae(o,
|
|
15752
|
+
const n = r.name.replace(/\.zip$/, ""), o = Ae(await e.documentRoot, "wp-content"), f = Ae(o, Xa()), p = Ae(f, "assets", n);
|
|
15753
15753
|
await e.fileExists(p) && await e.rmdir(f, {
|
|
15754
15754
|
recursive: !0
|
|
15755
15755
|
}), await e.mkdir(f);
|
|
15756
15756
|
try {
|
|
15757
|
-
await
|
|
15757
|
+
await Co(e, {
|
|
15758
15758
|
zipFile: r,
|
|
15759
15759
|
extractToPath: p
|
|
15760
15760
|
});
|
|
@@ -15830,7 +15830,7 @@ const pb = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
15830
15830
|
n,
|
|
15831
15831
|
t.name
|
|
15832
15832
|
);
|
|
15833
|
-
await
|
|
15833
|
+
await Oo(e, {
|
|
15834
15834
|
path: h,
|
|
15835
15835
|
data: t
|
|
15836
15836
|
}), f = n, p = t.name;
|
|
@@ -16141,7 +16141,7 @@ const _b = async (e, t) => {
|
|
|
16141
16141
|
activateTheme: ju,
|
|
16142
16142
|
cp: tb,
|
|
16143
16143
|
defineSiteUrl: zu,
|
|
16144
|
-
defineWpConfigConsts:
|
|
16144
|
+
defineWpConfigConsts: Ao,
|
|
16145
16145
|
enableMultisite: eb,
|
|
16146
16146
|
exportWXR: fb,
|
|
16147
16147
|
importThemeStarterContent: Gu,
|
|
@@ -16162,10 +16162,10 @@ const _b = async (e, t) => {
|
|
|
16162
16162
|
runWpInstallationWizard: hb,
|
|
16163
16163
|
setSiteLanguage: wb,
|
|
16164
16164
|
setSiteOptions: Mu,
|
|
16165
|
-
unzip:
|
|
16165
|
+
unzip: Co,
|
|
16166
16166
|
updateUserMeta: Xw,
|
|
16167
16167
|
wpCLI: Ku,
|
|
16168
|
-
writeFile:
|
|
16168
|
+
writeFile: Oo,
|
|
16169
16169
|
writeFiles: ib,
|
|
16170
16170
|
zipWpContent: mb
|
|
16171
16171
|
}, Symbol.toStringTag, { value: "Module" })), vb = {
|
|
@@ -18038,7 +18038,7 @@ const Eb = {
|
|
|
18038
18038
|
{ type: ["object", "string"] }
|
|
18039
18039
|
]
|
|
18040
18040
|
}
|
|
18041
|
-
},
|
|
18041
|
+
}, Sa = { validate: Ir };
|
|
18042
18042
|
function Ir(e, { instancePath: t = "", parentData: r, parentDataProperty: i, rootData: a = e } = {}) {
|
|
18043
18043
|
let s = null, n = 0;
|
|
18044
18044
|
if (n === 0)
|
|
@@ -18048,12 +18048,12 @@ function Ir(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
18048
18048
|
const m = n, h = n;
|
|
18049
18049
|
let g = !1;
|
|
18050
18050
|
const R = n;
|
|
18051
|
-
|
|
18051
|
+
Sa.validate(c, {
|
|
18052
18052
|
instancePath: t + "/" + p.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
18053
18053
|
parentData: e,
|
|
18054
18054
|
parentDataProperty: p,
|
|
18055
18055
|
rootData: a
|
|
18056
|
-
}) || (s = s === null ?
|
|
18056
|
+
}) || (s = s === null ? Sa.validate.errors : s.concat(Sa.validate.errors), n = s.length);
|
|
18057
18057
|
var o = R === n;
|
|
18058
18058
|
if (g = g || o, !g) {
|
|
18059
18059
|
const y = n;
|
|
@@ -27080,7 +27080,7 @@ function Cb(e, {
|
|
|
27080
27080
|
const L = {
|
|
27081
27081
|
step: "writeFile",
|
|
27082
27082
|
data: Jw,
|
|
27083
|
-
path:
|
|
27083
|
+
path: To
|
|
27084
27084
|
};
|
|
27085
27085
|
f === -1 ? (b = e.steps) == null || b.push(L) : (C = e.steps) == null || C.splice(
|
|
27086
27086
|
f,
|
|
@@ -27125,7 +27125,7 @@ function Cb(e, {
|
|
|
27125
27125
|
versions: {
|
|
27126
27126
|
php: Rb(
|
|
27127
27127
|
(T = e.preferredVersions) == null ? void 0 : T.php,
|
|
27128
|
-
|
|
27128
|
+
Qa,
|
|
27129
27129
|
Ed
|
|
27130
27130
|
),
|
|
27131
27131
|
wp: ((H = e.preferredVersions) == null ? void 0 : H.wp) || "latest"
|
|
@@ -27651,7 +27651,7 @@ function Yb(e, t) {
|
|
|
27651
27651
|
export {
|
|
27652
27652
|
Ln as BlueprintReflection,
|
|
27653
27653
|
Ed as LatestSupportedPHPVersion,
|
|
27654
|
-
|
|
27654
|
+
Qa as SupportedPHPVersions,
|
|
27655
27655
|
Jb as SupportedPHPVersionsList,
|
|
27656
27656
|
Bu as activatePlugin,
|
|
27657
27657
|
ju as activateTheme,
|
|
@@ -27659,7 +27659,7 @@ export {
|
|
|
27659
27659
|
Ju as compileBlueprintV1,
|
|
27660
27660
|
tb as cp,
|
|
27661
27661
|
zu as defineSiteUrl,
|
|
27662
|
-
|
|
27662
|
+
Ao as defineWpConfigConsts,
|
|
27663
27663
|
eb as enableMultisite,
|
|
27664
27664
|
fb as exportWXR,
|
|
27665
27665
|
Ob as getBlueprintDeclaration,
|
|
@@ -27693,11 +27693,11 @@ export {
|
|
|
27693
27693
|
wb as setSiteLanguage,
|
|
27694
27694
|
Mu as setSiteOptions,
|
|
27695
27695
|
nv as startPlaygroundWeb,
|
|
27696
|
-
|
|
27696
|
+
Co as unzip,
|
|
27697
27697
|
Xw as updateUserMeta,
|
|
27698
27698
|
Ku as wpCLI,
|
|
27699
27699
|
Vu as wpContentFilesExcludedFromExport,
|
|
27700
|
-
|
|
27700
|
+
Oo as writeFile,
|
|
27701
27701
|
ib as writeFiles,
|
|
27702
27702
|
mb as zipWpContent
|
|
27703
27703
|
};
|