@wp-playground/client 3.1.14 → 3.1.16
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 +44 -44
- package/index.js +750 -731
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1047,7 +1047,7 @@ var Jo = {
|
|
|
1047
1047
|
parse: Ud,
|
|
1048
1048
|
stringify: jc
|
|
1049
1049
|
};
|
|
1050
|
-
async function
|
|
1050
|
+
async function Bv(e, t) {
|
|
1051
1051
|
const r = Jo.parse(await e.readFileAsText(Xo));
|
|
1052
1052
|
for (const [i, a] of Object.entries(t))
|
|
1053
1053
|
a == null ? delete r[i] : r[i] = a;
|
|
@@ -1265,7 +1265,7 @@ const ho = [
|
|
|
1265
1265
|
"8.1",
|
|
1266
1266
|
"8.0",
|
|
1267
1267
|
"7.4"
|
|
1268
|
-
], eh = ho[0],
|
|
1268
|
+
], eh = ho[0], qv = ho;
|
|
1269
1269
|
async function di(e, t, r, { rmRoot: i = !1 } = {}) {
|
|
1270
1270
|
i && await e.isDir(t) && await e.rmdir(t, { recursive: !0 });
|
|
1271
1271
|
for (const [a, s] of Object.entries(r)) {
|
|
@@ -1959,13 +1959,20 @@ function Ni(e) {
|
|
|
1959
1959
|
if (s)
|
|
1960
1960
|
switch (s.t) {
|
|
1961
1961
|
case "chunk":
|
|
1962
|
-
|
|
1962
|
+
try {
|
|
1963
|
+
t.enqueue(new Uint8Array(s.b));
|
|
1964
|
+
} catch {
|
|
1965
|
+
i();
|
|
1966
|
+
}
|
|
1963
1967
|
break;
|
|
1964
1968
|
case "close":
|
|
1965
|
-
t
|
|
1969
|
+
Ah(t), i();
|
|
1966
1970
|
break;
|
|
1967
1971
|
case "error":
|
|
1968
|
-
|
|
1972
|
+
Oh(
|
|
1973
|
+
t,
|
|
1974
|
+
new Error(s.m || "Stream error")
|
|
1975
|
+
), i();
|
|
1969
1976
|
break;
|
|
1970
1977
|
}
|
|
1971
1978
|
}, i = () => {
|
|
@@ -2085,10 +2092,22 @@ function Yc(e) {
|
|
|
2085
2092
|
}
|
|
2086
2093
|
});
|
|
2087
2094
|
}
|
|
2095
|
+
function Oh(e, t) {
|
|
2096
|
+
try {
|
|
2097
|
+
e.error(t);
|
|
2098
|
+
} catch {
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
function Ah(e) {
|
|
2102
|
+
try {
|
|
2103
|
+
e.close();
|
|
2104
|
+
} catch {
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2088
2107
|
BigInt(Number.MAX_SAFE_INTEGER);
|
|
2089
2108
|
new es({ concurrency: 15 });
|
|
2090
2109
|
new es({ concurrency: 10 });
|
|
2091
|
-
function
|
|
2110
|
+
function $h(e) {
|
|
2092
2111
|
let t = [e];
|
|
2093
2112
|
return {
|
|
2094
2113
|
next() {
|
|
@@ -2103,7 +2122,7 @@ function Oh(e) {
|
|
|
2103
2122
|
};
|
|
2104
2123
|
}
|
|
2105
2124
|
function Kc(e) {
|
|
2106
|
-
return e[Symbol.asyncIterator] ? e[Symbol.asyncIterator]() : e[Symbol.iterator] ? e[Symbol.iterator]() : e.next ? e :
|
|
2125
|
+
return e[Symbol.asyncIterator] ? e[Symbol.asyncIterator]() : e[Symbol.iterator] ? e[Symbol.iterator]() : e.next ? e : $h(e);
|
|
2107
2126
|
}
|
|
2108
2127
|
class Xc {
|
|
2109
2128
|
constructor(t) {
|
|
@@ -2149,7 +2168,7 @@ class Xc {
|
|
|
2149
2168
|
async _accumulate(t) {
|
|
2150
2169
|
if (this._ended) return;
|
|
2151
2170
|
const r = [this.buffer];
|
|
2152
|
-
for (; this.cursor + t >
|
|
2171
|
+
for (; this.cursor + t > Rh(r); ) {
|
|
2153
2172
|
const i = await this._next();
|
|
2154
2173
|
if (this._ended) break;
|
|
2155
2174
|
r.push(i);
|
|
@@ -2163,10 +2182,10 @@ class Xc {
|
|
|
2163
2182
|
this.buffer = await this._next();
|
|
2164
2183
|
}
|
|
2165
2184
|
}
|
|
2166
|
-
function
|
|
2185
|
+
function Rh(e) {
|
|
2167
2186
|
return e.reduce((t, r) => t + r.length, 0);
|
|
2168
2187
|
}
|
|
2169
|
-
function
|
|
2188
|
+
function Fh(e, t) {
|
|
2170
2189
|
const r = t.toString(16);
|
|
2171
2190
|
return "0".repeat(e - r.length) + r;
|
|
2172
2191
|
}
|
|
@@ -2179,7 +2198,7 @@ class Ke {
|
|
|
2179
2198
|
}
|
|
2180
2199
|
static encode(t) {
|
|
2181
2200
|
typeof t == "string" && (t = Buffer.from(t));
|
|
2182
|
-
const r = t.length + 4, i =
|
|
2201
|
+
const r = t.length + 4, i = Fh(4, r);
|
|
2183
2202
|
return Buffer.concat([Buffer.from(i, "utf8"), t]);
|
|
2184
2203
|
}
|
|
2185
2204
|
static streamReader(t) {
|
|
@@ -2244,7 +2263,7 @@ function Jc(e, t) {
|
|
|
2244
2263
|
function Qc(e, t) {
|
|
2245
2264
|
return Jc(e.path, t.path);
|
|
2246
2265
|
}
|
|
2247
|
-
function
|
|
2266
|
+
function Ih(e, t) {
|
|
2248
2267
|
return Jc(nl(e), nl(t));
|
|
2249
2268
|
}
|
|
2250
2269
|
function nl(e) {
|
|
@@ -2265,7 +2284,7 @@ function ep(e) {
|
|
|
2265
2284
|
}
|
|
2266
2285
|
throw new Ee(`Unexpected GitTree entry mode: ${e}`);
|
|
2267
2286
|
}
|
|
2268
|
-
function
|
|
2287
|
+
function Lh(e) {
|
|
2269
2288
|
const t = [];
|
|
2270
2289
|
let r = 0;
|
|
2271
2290
|
for (; r < e.length; ) {
|
|
@@ -2289,7 +2308,7 @@ function Fh(e) {
|
|
|
2289
2308
|
}
|
|
2290
2309
|
return t;
|
|
2291
2310
|
}
|
|
2292
|
-
function
|
|
2311
|
+
function Ch(e) {
|
|
2293
2312
|
if (typeof e == "number" && (e = e.toString(8)), e.match(/^0?4.*/)) return "040000";
|
|
2294
2313
|
if (e.match(/^1006.*/)) return "100644";
|
|
2295
2314
|
if (e.match(/^1007.*/)) return "100755";
|
|
@@ -2297,15 +2316,15 @@ function Ih(e) {
|
|
|
2297
2316
|
if (e.match(/^160.*/)) return "160000";
|
|
2298
2317
|
throw new Ee(`Could not understand file mode: ${e}`);
|
|
2299
2318
|
}
|
|
2300
|
-
function
|
|
2301
|
-
return !e.oid && e.sha && (e.oid = e.sha), e.mode =
|
|
2319
|
+
function Nh(e) {
|
|
2320
|
+
return !e.oid && e.sha && (e.oid = e.sha), e.mode = Ch(e.mode), e.type || (e.type = ep(e.mode)), e;
|
|
2302
2321
|
}
|
|
2303
2322
|
class bo {
|
|
2304
2323
|
constructor(t) {
|
|
2305
2324
|
if (Buffer.isBuffer(t))
|
|
2306
|
-
this._entries =
|
|
2325
|
+
this._entries = Lh(t);
|
|
2307
2326
|
else if (Array.isArray(t))
|
|
2308
|
-
this._entries = t.map(
|
|
2327
|
+
this._entries = t.map(Nh);
|
|
2309
2328
|
else
|
|
2310
2329
|
throw new Ee("invalid type passed to GitTree constructor");
|
|
2311
2330
|
this._entries.sort(Qc);
|
|
@@ -2319,7 +2338,7 @@ class bo {
|
|
|
2319
2338
|
}
|
|
2320
2339
|
toObject() {
|
|
2321
2340
|
const t = [...this._entries];
|
|
2322
|
-
return t.sort(
|
|
2341
|
+
return t.sort(Ih), Buffer.concat(
|
|
2323
2342
|
t.map((r) => {
|
|
2324
2343
|
const i = Buffer.from(r.mode.replace(/^0/, "")), a = Buffer.from(" "), s = Buffer.from(r.path, "utf8"), n = Buffer.from([0]), o = Buffer.from(r.oid, "hex");
|
|
2325
2344
|
return Buffer.concat([i, a, s, n, o]);
|
|
@@ -2338,20 +2357,20 @@ class bo {
|
|
|
2338
2357
|
}
|
|
2339
2358
|
}
|
|
2340
2359
|
function za({ name: e, email: t, timestamp: r, timezoneOffset: i }) {
|
|
2341
|
-
return i =
|
|
2360
|
+
return i = Dh(i), `${e} <${t}> ${r} ${i}`;
|
|
2342
2361
|
}
|
|
2343
|
-
function
|
|
2344
|
-
const t =
|
|
2362
|
+
function Dh(e) {
|
|
2363
|
+
const t = jh(Uh(e));
|
|
2345
2364
|
e = Math.abs(e);
|
|
2346
2365
|
const r = Math.floor(e / 60);
|
|
2347
2366
|
e -= r * 60;
|
|
2348
2367
|
let i = String(r), a = String(e);
|
|
2349
2368
|
return i.length < 2 && (i = "0" + i), a.length < 2 && (a = "0" + a), (t === -1 ? "-" : "+") + i + a;
|
|
2350
2369
|
}
|
|
2351
|
-
function
|
|
2370
|
+
function jh(e) {
|
|
2352
2371
|
return Math.sign(e) || (Object.is(e, -0) ? -1 : 1);
|
|
2353
2372
|
}
|
|
2354
|
-
function
|
|
2373
|
+
function Uh(e) {
|
|
2355
2374
|
return e === 0 ? e : -e;
|
|
2356
2375
|
}
|
|
2357
2376
|
function rr(e) {
|
|
@@ -2366,14 +2385,14 @@ function Js(e) {
|
|
|
2366
2385
|
name: t,
|
|
2367
2386
|
email: r,
|
|
2368
2387
|
timestamp: Number(i),
|
|
2369
|
-
timezoneOffset:
|
|
2388
|
+
timezoneOffset: Bh(a)
|
|
2370
2389
|
};
|
|
2371
2390
|
}
|
|
2372
|
-
function
|
|
2391
|
+
function Bh(e) {
|
|
2373
2392
|
let [, t, r, i] = e.match(/(\+|-)(\d\d)(\d\d)/);
|
|
2374
|
-
return i = (t === "+" ? 1 : -1) * (Number(r) * 60 + Number(i)),
|
|
2393
|
+
return i = (t === "+" ? 1 : -1) * (Number(r) * 60 + Number(i)), qh(i);
|
|
2375
2394
|
}
|
|
2376
|
-
function
|
|
2395
|
+
function qh(e) {
|
|
2377
2396
|
return e === 0 ? e : -e;
|
|
2378
2397
|
}
|
|
2379
2398
|
class An {
|
|
@@ -2470,7 +2489,7 @@ function Di(e) {
|
|
|
2470
2489
|
`) + `
|
|
2471
2490
|
`;
|
|
2472
2491
|
}
|
|
2473
|
-
function
|
|
2492
|
+
function Mh(e) {
|
|
2474
2493
|
return e.split(`
|
|
2475
2494
|
`).map((t) => t.replace(/^ /, "")).join(`
|
|
2476
2495
|
`);
|
|
@@ -2578,7 +2597,7 @@ gpgsig`)), i = t.slice(
|
|
|
2578
2597
|
this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),
|
|
2579
2598
|
this._commit.indexOf("-----END PGP SIGNATURE-----") + 27
|
|
2580
2599
|
);
|
|
2581
|
-
return
|
|
2600
|
+
return Mh(t);
|
|
2582
2601
|
}
|
|
2583
2602
|
static async sign(t, r, i) {
|
|
2584
2603
|
const a = t.withoutSignature(), s = bt.justMessage(t._commit);
|
|
@@ -2630,8 +2649,8 @@ var tp = {};
|
|
|
2630
2649
|
t.table = i, t.bstr = $, t.buf = C, t.str = E;
|
|
2631
2650
|
});
|
|
2632
2651
|
})(tp);
|
|
2633
|
-
const
|
|
2634
|
-
class
|
|
2652
|
+
const Wh = /* @__PURE__ */ po(tp);
|
|
2653
|
+
class zh {
|
|
2635
2654
|
static wrap({ type: t, object: r }) {
|
|
2636
2655
|
return Buffer.concat([
|
|
2637
2656
|
Buffer.from(`${t} ${r.byteLength.toString()}\0`),
|
|
@@ -2704,7 +2723,7 @@ class Zt {
|
|
|
2704
2723
|
return this._start += 4, r;
|
|
2705
2724
|
}
|
|
2706
2725
|
}
|
|
2707
|
-
function
|
|
2726
|
+
function Hh(e, t) {
|
|
2708
2727
|
const r = new Zt(e), i = sl(r);
|
|
2709
2728
|
if (i !== t.byteLength)
|
|
2710
2729
|
throw new Ee(
|
|
@@ -2802,27 +2821,27 @@ var ar = {};
|
|
|
2802
2821
|
s ? (e.Buf8 = Uint8Array, e.Buf16 = Uint16Array, e.Buf32 = Int32Array, e.assign(e, i)) : (e.Buf8 = Array, e.Buf16 = Array, e.Buf32 = Array, e.assign(e, a));
|
|
2803
2822
|
}, e.setTyped(t);
|
|
2804
2823
|
})(ar);
|
|
2805
|
-
var rs = {}, Qt = {}, mn = {},
|
|
2824
|
+
var rs = {}, Qt = {}, mn = {}, Vh = ar, Zh = 4, ol = 0, ll = 1, Gh = 2;
|
|
2806
2825
|
function yn(e) {
|
|
2807
2826
|
for (var t = e.length; --t >= 0; )
|
|
2808
2827
|
e[t] = 0;
|
|
2809
2828
|
}
|
|
2810
|
-
var
|
|
2829
|
+
var Yh = 0, rp = 1, Kh = 2, Xh = 3, Jh = 258, _o = 29, ns = 256, jn = ns + 1 + _o, sn = 30, vo = 19, np = 2 * jn + 1, Or = 15, ji = 16, Qh = 7, xo = 256, sp = 16, ip = 17, ap = 18, Ha = (
|
|
2811
2830
|
/* extra bits for each length code */
|
|
2812
2831
|
[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]
|
|
2813
2832
|
), Ls = (
|
|
2814
2833
|
/* extra bits for each distance code */
|
|
2815
2834
|
[0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]
|
|
2816
|
-
),
|
|
2835
|
+
), em = (
|
|
2817
2836
|
/* extra bits for each bit length code */
|
|
2818
2837
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]
|
|
2819
|
-
), op = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
|
|
2838
|
+
), op = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], tm = 512, nr = new Array((jn + 2) * 2);
|
|
2820
2839
|
yn(nr);
|
|
2821
2840
|
var $n = new Array(sn * 2);
|
|
2822
2841
|
yn($n);
|
|
2823
|
-
var Un = new Array(
|
|
2842
|
+
var Un = new Array(tm);
|
|
2824
2843
|
yn(Un);
|
|
2825
|
-
var Bn = new Array(
|
|
2844
|
+
var Bn = new Array(Jh - Xh + 1);
|
|
2826
2845
|
yn(Bn);
|
|
2827
2846
|
var ko = new Array(_o);
|
|
2828
2847
|
yn(ko);
|
|
@@ -2859,10 +2878,10 @@ function up(e, t) {
|
|
|
2859
2878
|
while (--t > 0);
|
|
2860
2879
|
return r >>> 1;
|
|
2861
2880
|
}
|
|
2862
|
-
function
|
|
2881
|
+
function rm(e) {
|
|
2863
2882
|
e.bi_valid === 16 ? (qn(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = e.bi_buf & 255, e.bi_buf >>= 8, e.bi_valid -= 8);
|
|
2864
2883
|
}
|
|
2865
|
-
function
|
|
2884
|
+
function nm(e, t) {
|
|
2866
2885
|
var r = t.dyn_tree, i = t.max_code, a = t.stat_desc.static_tree, s = t.stat_desc.has_stree, n = t.stat_desc.extra_bits, o = t.stat_desc.extra_base, l = t.stat_desc.max_length, c, p, d, m, g, A, y = 0;
|
|
2867
2886
|
for (m = 0; m <= Or; m++)
|
|
2868
2887
|
e.bl_count[m] = 0;
|
|
@@ -2888,7 +2907,7 @@ function dp(e, t, r) {
|
|
|
2888
2907
|
o !== 0 && (e[n * 2] = up(i[o]++, o));
|
|
2889
2908
|
}
|
|
2890
2909
|
}
|
|
2891
|
-
function
|
|
2910
|
+
function sm() {
|
|
2892
2911
|
var e, t, r, i, a, s = new Array(Or + 1);
|
|
2893
2912
|
for (r = 0, i = 0; i < _o - 1; i++)
|
|
2894
2913
|
for (ko[i] = r, e = 0; e < 1 << Ha[i]; e++)
|
|
@@ -2911,7 +2930,7 @@ function rm() {
|
|
|
2911
2930
|
nr[e * 2 + 1] = 8, e++, s[8]++;
|
|
2912
2931
|
for (dp(nr, jn + 1, s), e = 0; e < sn; e++)
|
|
2913
2932
|
$n[e * 2 + 1] = 5, $n[e * 2] = up(e, 5);
|
|
2914
|
-
lp = new Ui(nr, Ha, ns + 1, jn, Or), fp = new Ui($n, Ls, 0, sn, Or), cp = new Ui(new Array(0),
|
|
2933
|
+
lp = new Ui(nr, Ha, ns + 1, jn, Or), fp = new Ui($n, Ls, 0, sn, Or), cp = new Ui(new Array(0), em, 0, vo, Qh);
|
|
2915
2934
|
}
|
|
2916
2935
|
function hp(e) {
|
|
2917
2936
|
var t;
|
|
@@ -2926,8 +2945,8 @@ function hp(e) {
|
|
|
2926
2945
|
function mp(e) {
|
|
2927
2946
|
e.bi_valid > 8 ? qn(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
|
|
2928
2947
|
}
|
|
2929
|
-
function
|
|
2930
|
-
mp(e), qn(e, r), qn(e, ~r),
|
|
2948
|
+
function im(e, t, r, i) {
|
|
2949
|
+
mp(e), qn(e, r), qn(e, ~r), Vh.arraySet(e.pending_buf, e.window, t, r, e.pending), e.pending += r;
|
|
2931
2950
|
}
|
|
2932
2951
|
function fl(e, t, r, i) {
|
|
2933
2952
|
var a = t * 2, s = r * 2;
|
|
@@ -2983,7 +3002,7 @@ function Va(e, t) {
|
|
|
2983
3002
|
e.heap[--e.heap_max] = e.heap[
|
|
2984
3003
|
1
|
|
2985
3004
|
/*SMALLEST*/
|
|
2986
|
-
],
|
|
3005
|
+
], nm(e, t), dp(r, l, e.bl_count);
|
|
2987
3006
|
}
|
|
2988
3007
|
function pl(e, t, r) {
|
|
2989
3008
|
var i, a = -1, s, n = t[0 * 2 + 1], o = 0, l = 7, c = 4;
|
|
@@ -3002,19 +3021,19 @@ function ul(e, t, r) {
|
|
|
3002
3021
|
o = 0, a = s, n === 0 ? (l = 138, c = 3) : s === n ? (l = 6, c = 3) : (l = 7, c = 4);
|
|
3003
3022
|
}
|
|
3004
3023
|
}
|
|
3005
|
-
function
|
|
3024
|
+
function am(e) {
|
|
3006
3025
|
var t;
|
|
3007
3026
|
for (pl(e, e.dyn_ltree, e.l_desc.max_code), pl(e, e.dyn_dtree, e.d_desc.max_code), Va(e, e.bl_desc), t = vo - 1; t >= 3 && e.bl_tree[op[t] * 2 + 1] === 0; t--)
|
|
3008
3027
|
;
|
|
3009
3028
|
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
3010
3029
|
}
|
|
3011
|
-
function
|
|
3030
|
+
function om(e, t, r, i) {
|
|
3012
3031
|
var a;
|
|
3013
3032
|
for (ht(e, t - 257, 5), ht(e, r - 1, 5), ht(e, i - 4, 4), a = 0; a < i; a++)
|
|
3014
3033
|
ht(e, e.bl_tree[op[a] * 2 + 1], 3);
|
|
3015
3034
|
ul(e, e.dyn_ltree, t - 1), ul(e, e.dyn_dtree, r - 1);
|
|
3016
3035
|
}
|
|
3017
|
-
function
|
|
3036
|
+
function lm(e) {
|
|
3018
3037
|
var t = 4093624447, r;
|
|
3019
3038
|
for (r = 0; r <= 31; r++, t >>>= 1)
|
|
3020
3039
|
if (t & 1 && e.dyn_ltree[r * 2] !== 0)
|
|
@@ -3027,28 +3046,28 @@ function am(e) {
|
|
|
3027
3046
|
return ol;
|
|
3028
3047
|
}
|
|
3029
3048
|
var dl = !1;
|
|
3030
|
-
function
|
|
3031
|
-
dl || (
|
|
3049
|
+
function fm(e) {
|
|
3050
|
+
dl || (sm(), dl = !0), e.l_desc = new Bi(e.dyn_ltree, lp), e.d_desc = new Bi(e.dyn_dtree, fp), e.bl_desc = new Bi(e.bl_tree, cp), e.bi_buf = 0, e.bi_valid = 0, hp(e);
|
|
3032
3051
|
}
|
|
3033
3052
|
function yp(e, t, r, i) {
|
|
3034
|
-
ht(e, (
|
|
3053
|
+
ht(e, (Yh << 1) + (i ? 1 : 0), 3), im(e, t, r);
|
|
3035
3054
|
}
|
|
3036
|
-
function
|
|
3037
|
-
ht(e, rp << 1, 3), Gt(e, xo, nr),
|
|
3055
|
+
function cm(e) {
|
|
3056
|
+
ht(e, rp << 1, 3), Gt(e, xo, nr), rm(e);
|
|
3038
3057
|
}
|
|
3039
|
-
function
|
|
3058
|
+
function pm(e, t, r, i) {
|
|
3040
3059
|
var a, s, n = 0;
|
|
3041
|
-
e.level > 0 ? (e.strm.data_type ===
|
|
3060
|
+
e.level > 0 ? (e.strm.data_type === Gh && (e.strm.data_type = lm(e)), Va(e, e.l_desc), Va(e, e.d_desc), n = am(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 ? yp(e, t, r, i) : e.strategy === Zh || s === a ? (ht(e, (rp << 1) + (i ? 1 : 0), 3), cl(e, nr, $n)) : (ht(e, (Kh << 1) + (i ? 1 : 0), 3), om(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, n + 1), cl(e, e.dyn_ltree, e.dyn_dtree)), hp(e), i && mp(e);
|
|
3042
3061
|
}
|
|
3043
|
-
function
|
|
3062
|
+
function um(e, t, r) {
|
|
3044
3063
|
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[(Bn[r] + ns + 1) * 2]++, e.dyn_dtree[pp(t) * 2]++), e.last_lit === e.lit_bufsize - 1;
|
|
3045
3064
|
}
|
|
3046
|
-
mn._tr_init =
|
|
3065
|
+
mn._tr_init = fm;
|
|
3047
3066
|
mn._tr_stored_block = yp;
|
|
3048
|
-
mn._tr_flush_block =
|
|
3049
|
-
mn._tr_tally =
|
|
3050
|
-
mn._tr_align =
|
|
3051
|
-
function
|
|
3067
|
+
mn._tr_flush_block = pm;
|
|
3068
|
+
mn._tr_tally = um;
|
|
3069
|
+
mn._tr_align = cm;
|
|
3070
|
+
function dm(e, t, r, i) {
|
|
3052
3071
|
for (var a = e & 65535 | 0, s = e >>> 16 & 65535 | 0, n = 0; r !== 0; ) {
|
|
3053
3072
|
n = r > 2e3 ? 2e3 : r, r -= n;
|
|
3054
3073
|
do
|
|
@@ -3058,8 +3077,8 @@ function pm(e, t, r, i) {
|
|
|
3058
3077
|
}
|
|
3059
3078
|
return a | s << 16 | 0;
|
|
3060
3079
|
}
|
|
3061
|
-
var gp =
|
|
3062
|
-
function
|
|
3080
|
+
var gp = dm;
|
|
3081
|
+
function hm() {
|
|
3063
3082
|
for (var e, t = [], r = 0; r < 256; r++) {
|
|
3064
3083
|
e = r;
|
|
3065
3084
|
for (var i = 0; i < 8; i++)
|
|
@@ -3068,15 +3087,15 @@ function um() {
|
|
|
3068
3087
|
}
|
|
3069
3088
|
return t;
|
|
3070
3089
|
}
|
|
3071
|
-
var
|
|
3072
|
-
function
|
|
3073
|
-
var a =
|
|
3090
|
+
var mm = hm();
|
|
3091
|
+
function ym(e, t, r, i) {
|
|
3092
|
+
var a = mm, s = i + r;
|
|
3074
3093
|
e ^= -1;
|
|
3075
3094
|
for (var n = i; n < s; n++)
|
|
3076
3095
|
e = e >>> 8 ^ a[(e ^ t[n]) & 255];
|
|
3077
3096
|
return e ^ -1;
|
|
3078
3097
|
}
|
|
3079
|
-
var wp =
|
|
3098
|
+
var wp = ym, Po = {
|
|
3080
3099
|
2: "need dictionary",
|
|
3081
3100
|
/* Z_NEED_DICT 2 */
|
|
3082
3101
|
1: "stream end",
|
|
@@ -3095,9 +3114,9 @@ var wp = hm, Po = {
|
|
|
3095
3114
|
/* Z_BUF_ERROR (-5) */
|
|
3096
3115
|
"-6": "incompatible version"
|
|
3097
3116
|
/* Z_VERSION_ERROR (-6) */
|
|
3098
|
-
}, at = ar, At = mn, bp = gp, ur = wp,
|
|
3117
|
+
}, at = ar, At = mn, bp = gp, ur = wp, gm = Po, Mr = 0, wm = 1, bm = 3, vr = 4, hl = 5, Yt = 0, ml = 1, $t = -2, _m = -3, Mi = -5, vm = -1, xm = 1, gs = 2, km = 3, Pm = 4, Em = 0, Sm = 2, hi = 8, Tm = 9, Om = 15, Am = 8, $m = 29, Rm = 256, Za = Rm + 1 + $m, Fm = 30, Im = 19, Lm = 2 * Za + 1, Cm = 15, ge = 3, br = 258, jt = br + ge + 1, Nm = 32, mi = 42, Ga = 69, Cs = 73, Ns = 91, Ds = 103, Ar = 113, Tn = 666, ze = 1, ss = 2, Cr = 3, gn = 4, Dm = 3;
|
|
3099
3118
|
function _r(e, t) {
|
|
3100
|
-
return e.msg =
|
|
3119
|
+
return e.msg = gm[t], t;
|
|
3101
3120
|
}
|
|
3102
3121
|
function yl(e) {
|
|
3103
3122
|
return (e << 1) - (e > 4 ? 9 : 0);
|
|
@@ -3119,7 +3138,7 @@ function Pe(e, t) {
|
|
|
3119
3138
|
function vn(e, t) {
|
|
3120
3139
|
e.pending_buf[e.pending++] = t >>> 8 & 255, e.pending_buf[e.pending++] = t & 255;
|
|
3121
3140
|
}
|
|
3122
|
-
function
|
|
3141
|
+
function jm(e, t, r, i) {
|
|
3123
3142
|
var a = e.avail_in;
|
|
3124
3143
|
return a > i && (a = i), a === 0 ? 0 : (e.avail_in -= a, at.arraySet(t, e.input, e.next_in, a, r), e.state.wrap === 1 ? e.adler = bp(e.adler, t, a, r) : e.state.wrap === 2 && (e.adler = ur(e.adler, t, a, r)), e.next_in += a, e.total_in += a, a);
|
|
3125
3144
|
}
|
|
@@ -3157,12 +3176,12 @@ function Nr(e) {
|
|
|
3157
3176
|
}
|
|
3158
3177
|
if (e.strm.avail_in === 0)
|
|
3159
3178
|
break;
|
|
3160
|
-
if (i =
|
|
3179
|
+
if (i = jm(e.strm, e.window, e.strstart + e.lookahead, s), e.lookahead += i, e.lookahead + e.insert >= ge)
|
|
3161
3180
|
for (n = e.strstart - e.insert, e.ins_h = e.window[n], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[n + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[n + ge - 1]) & e.hash_mask, e.prev[n & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = n, n++, e.insert--, !(e.lookahead + e.insert < ge)); )
|
|
3162
3181
|
;
|
|
3163
3182
|
} while (e.lookahead < jt && e.strm.avail_in !== 0);
|
|
3164
3183
|
}
|
|
3165
|
-
function
|
|
3184
|
+
function Um(e, t) {
|
|
3166
3185
|
var r = 65535;
|
|
3167
3186
|
for (r > e.pending_buf_size - 5 && (r = e.pending_buf_size - 5); ; ) {
|
|
3168
3187
|
if (e.lookahead <= 1) {
|
|
@@ -3210,7 +3229,7 @@ function Hr(e, t) {
|
|
|
3210
3229
|
if (e.lookahead === 0)
|
|
3211
3230
|
break;
|
|
3212
3231
|
}
|
|
3213
|
-
if (r = 0, e.lookahead >= ge && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + ge - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = ge - 1, r !== 0 && e.prev_length < e.max_lazy_match && e.strstart - r <= e.w_size - jt && (e.match_length = _p(e, r), e.match_length <= 5 && (e.strategy ===
|
|
3232
|
+
if (r = 0, e.lookahead >= ge && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + ge - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = ge - 1, r !== 0 && e.prev_length < e.max_lazy_match && e.strstart - r <= e.w_size - jt && (e.match_length = _p(e, r), e.match_length <= 5 && (e.strategy === xm || e.match_length === ge && e.strstart - e.match_start > 4096) && (e.match_length = ge - 1)), e.prev_length >= ge && e.match_length <= e.prev_length) {
|
|
3214
3233
|
a = e.strstart + e.lookahead - ge, i = At._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - ge), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
|
|
3215
3234
|
do
|
|
3216
3235
|
++e.strstart <= a && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + ge - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
|
|
@@ -3225,7 +3244,7 @@ function Hr(e, t) {
|
|
|
3225
3244
|
}
|
|
3226
3245
|
return e.match_available && (i = At._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < ge - 1 ? e.strstart : ge - 1, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr : gn) : e.last_lit && (Qe(e, !1), e.strm.avail_out === 0) ? ze : ss;
|
|
3227
3246
|
}
|
|
3228
|
-
function
|
|
3247
|
+
function Bm(e, t) {
|
|
3229
3248
|
for (var r, i, a, s, n = e.window; ; ) {
|
|
3230
3249
|
if (e.lookahead <= br) {
|
|
3231
3250
|
if (Nr(e), e.lookahead <= br && t === Mr)
|
|
@@ -3245,7 +3264,7 @@ function jm(e, t) {
|
|
|
3245
3264
|
}
|
|
3246
3265
|
return e.insert = 0, t === vr ? (Qe(e, !0), e.strm.avail_out === 0 ? Cr : gn) : e.last_lit && (Qe(e, !1), e.strm.avail_out === 0) ? ze : ss;
|
|
3247
3266
|
}
|
|
3248
|
-
function
|
|
3267
|
+
function qm(e, t) {
|
|
3249
3268
|
for (var r; ; ) {
|
|
3250
3269
|
if (e.lookahead === 0 && (Nr(e), e.lookahead === 0)) {
|
|
3251
3270
|
if (t === Mr)
|
|
@@ -3263,7 +3282,7 @@ function qt(e, t, r, i, a) {
|
|
|
3263
3282
|
var tn;
|
|
3264
3283
|
tn = [
|
|
3265
3284
|
/* good lazy nice chain */
|
|
3266
|
-
new qt(0, 0, 0, 0,
|
|
3285
|
+
new qt(0, 0, 0, 0, Um),
|
|
3267
3286
|
/* 0 store only */
|
|
3268
3287
|
new qt(4, 4, 8, 4, Wi),
|
|
3269
3288
|
/* 1 max speed, no lazy matches */
|
|
@@ -3284,37 +3303,37 @@ tn = [
|
|
|
3284
3303
|
new qt(32, 258, 258, 4096, Hr)
|
|
3285
3304
|
/* 9 max compression */
|
|
3286
3305
|
];
|
|
3287
|
-
function
|
|
3306
|
+
function Mm(e) {
|
|
3288
3307
|
e.window_size = 2 * e.w_size, wr(e.head), e.max_lazy_match = tn[e.level].max_lazy, e.good_match = tn[e.level].good_length, e.nice_match = tn[e.level].nice_length, e.max_chain_length = tn[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;
|
|
3289
3308
|
}
|
|
3290
|
-
function
|
|
3291
|
-
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 = hi, 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(
|
|
3309
|
+
function Wm() {
|
|
3310
|
+
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 = hi, 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(Lm * 2), this.dyn_dtree = new at.Buf16((2 * Fm + 1) * 2), this.bl_tree = new at.Buf16((2 * Im + 1) * 2), wr(this.dyn_ltree), wr(this.dyn_dtree), wr(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new at.Buf16(Cm + 1), this.heap = new at.Buf16(2 * Za + 1), wr(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new at.Buf16(2 * Za + 1), wr(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;
|
|
3292
3311
|
}
|
|
3293
3312
|
function vp(e) {
|
|
3294
3313
|
var t;
|
|
3295
|
-
return !e || !e.state ? _r(e, $t) : (e.total_in = e.total_out = 0, e.data_type =
|
|
3314
|
+
return !e || !e.state ? _r(e, $t) : (e.total_in = e.total_out = 0, e.data_type = Sm, t = e.state, t.pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? mi : Ar, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = Mr, At._tr_init(t), Yt);
|
|
3296
3315
|
}
|
|
3297
3316
|
function xp(e) {
|
|
3298
3317
|
var t = vp(e);
|
|
3299
|
-
return t === Yt &&
|
|
3318
|
+
return t === Yt && Mm(e.state), t;
|
|
3300
3319
|
}
|
|
3301
|
-
function
|
|
3320
|
+
function zm(e, t) {
|
|
3302
3321
|
return !e || !e.state || e.state.wrap !== 2 ? $t : (e.state.gzhead = t, Yt);
|
|
3303
3322
|
}
|
|
3304
3323
|
function kp(e, t, r, i, a, s) {
|
|
3305
3324
|
if (!e)
|
|
3306
3325
|
return $t;
|
|
3307
3326
|
var n = 1;
|
|
3308
|
-
if (t ===
|
|
3327
|
+
if (t === vm && (t = 6), i < 0 ? (n = 0, i = -i) : i > 15 && (n = 2, i -= 16), a < 1 || a > Tm || r !== hi || i < 8 || i > 15 || t < 0 || t > 9 || s < 0 || s > Pm)
|
|
3309
3328
|
return _r(e, $t);
|
|
3310
3329
|
i === 8 && (i = 9);
|
|
3311
|
-
var o = new
|
|
3330
|
+
var o = new Wm();
|
|
3312
3331
|
return e.state = o, o.strm = e, o.wrap = n, o.gzhead = null, o.w_bits = i, o.w_size = 1 << o.w_bits, o.w_mask = o.w_size - 1, o.hash_bits = a + 7, o.hash_size = 1 << o.hash_bits, o.hash_mask = o.hash_size - 1, o.hash_shift = ~~((o.hash_bits + ge - 1) / ge), o.window = new at.Buf8(o.w_size * 2), o.head = new at.Buf16(o.hash_size), o.prev = new at.Buf16(o.w_size), o.lit_bufsize = 1 << a + 6, o.pending_buf_size = o.lit_bufsize * 4, o.pending_buf = new at.Buf8(o.pending_buf_size), o.d_buf = 1 * o.lit_bufsize, o.l_buf = 3 * o.lit_bufsize, o.level = t, o.strategy = s, o.method = r, xp(e);
|
|
3313
3332
|
}
|
|
3314
|
-
function
|
|
3315
|
-
return kp(e, t, hi,
|
|
3333
|
+
function Hm(e, t) {
|
|
3334
|
+
return kp(e, t, hi, Om, Am, Em);
|
|
3316
3335
|
}
|
|
3317
|
-
function
|
|
3336
|
+
function Vm(e, t) {
|
|
3318
3337
|
var r, i, a, s;
|
|
3319
3338
|
if (!e || !e.state || t > hl || t < 0)
|
|
3320
3339
|
return e ? _r(e, $t) : $t;
|
|
@@ -3325,10 +3344,10 @@ function zm(e, t) {
|
|
|
3325
3344
|
e.adler = 0, Pe(i, 31), Pe(i, 139), Pe(i, 8), i.gzhead ? (Pe(
|
|
3326
3345
|
i,
|
|
3327
3346
|
(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)
|
|
3328
|
-
), Pe(i, i.gzhead.time & 255), Pe(i, i.gzhead.time >> 8 & 255), Pe(i, i.gzhead.time >> 16 & 255), Pe(i, i.gzhead.time >> 24 & 255), Pe(i, i.level === 9 ? 2 : i.strategy >= gs || i.level < 2 ? 4 : 0), Pe(i, i.gzhead.os & 255), i.gzhead.extra && i.gzhead.extra.length && (Pe(i, i.gzhead.extra.length & 255), Pe(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 = Ga) : (Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, i.level === 9 ? 2 : i.strategy >= gs || i.level < 2 ? 4 : 0), Pe(i,
|
|
3347
|
+
), Pe(i, i.gzhead.time & 255), Pe(i, i.gzhead.time >> 8 & 255), Pe(i, i.gzhead.time >> 16 & 255), Pe(i, i.gzhead.time >> 24 & 255), Pe(i, i.level === 9 ? 2 : i.strategy >= gs || i.level < 2 ? 4 : 0), Pe(i, i.gzhead.os & 255), i.gzhead.extra && i.gzhead.extra.length && (Pe(i, i.gzhead.extra.length & 255), Pe(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 = Ga) : (Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, 0), Pe(i, i.level === 9 ? 2 : i.strategy >= gs || i.level < 2 ? 4 : 0), Pe(i, Dm), i.status = Ar);
|
|
3329
3348
|
else {
|
|
3330
3349
|
var n = hi + (i.w_bits - 8 << 4) << 8, o = -1;
|
|
3331
|
-
i.strategy >= gs || i.level < 2 ? o = 0 : i.level < 6 ? o = 1 : i.level === 6 ? o = 2 : o = 3, n |= o << 6, i.strstart !== 0 && (n |=
|
|
3350
|
+
i.strategy >= gs || i.level < 2 ? o = 0 : i.level < 6 ? o = 1 : i.level === 6 ? o = 2 : o = 3, n |= o << 6, i.strstart !== 0 && (n |= Nm), n += 31 - n % 31, i.status = Ar, vn(i, n), i.strstart !== 0 && (vn(i, e.adler >>> 16), vn(i, e.adler & 65535)), e.adler = 1;
|
|
3332
3351
|
}
|
|
3333
3352
|
if (i.status === Ga)
|
|
3334
3353
|
if (i.gzhead.extra) {
|
|
@@ -3371,19 +3390,19 @@ function zm(e, t) {
|
|
|
3371
3390
|
if (i.status === Tn && e.avail_in !== 0)
|
|
3372
3391
|
return _r(e, Mi);
|
|
3373
3392
|
if (e.avail_in !== 0 || i.lookahead !== 0 || t !== Mr && i.status !== Tn) {
|
|
3374
|
-
var l = i.strategy === gs ?
|
|
3393
|
+
var l = i.strategy === gs ? qm(i, t) : i.strategy === km ? Bm(i, t) : tn[i.level].func(i, t);
|
|
3375
3394
|
if ((l === Cr || l === gn) && (i.status = Tn), l === ze || l === Cr)
|
|
3376
3395
|
return e.avail_out === 0 && (i.last_flush = -1), Yt;
|
|
3377
|
-
if (l === ss && (t ===
|
|
3396
|
+
if (l === ss && (t === wm ? At._tr_align(i) : t !== hl && (At._tr_stored_block(i, 0, 0, !1), t === bm && (wr(i.head), i.lookahead === 0 && (i.strstart = 0, i.block_start = 0, i.insert = 0))), dr(e), e.avail_out === 0))
|
|
3378
3397
|
return i.last_flush = -1, Yt;
|
|
3379
3398
|
}
|
|
3380
3399
|
return t !== vr ? Yt : i.wrap <= 0 ? ml : (i.wrap === 2 ? (Pe(i, e.adler & 255), Pe(i, e.adler >> 8 & 255), Pe(i, e.adler >> 16 & 255), Pe(i, e.adler >> 24 & 255), Pe(i, e.total_in & 255), Pe(i, e.total_in >> 8 & 255), Pe(i, e.total_in >> 16 & 255), Pe(i, e.total_in >> 24 & 255)) : (vn(i, e.adler >>> 16), vn(i, e.adler & 65535)), dr(e), i.wrap > 0 && (i.wrap = -i.wrap), i.pending !== 0 ? Yt : ml);
|
|
3381
3400
|
}
|
|
3382
|
-
function
|
|
3401
|
+
function Zm(e) {
|
|
3383
3402
|
var t;
|
|
3384
|
-
return !e || !e.state ? $t : (t = e.state.status, t !== mi && t !== Ga && t !== Cs && t !== Ns && t !== Ds && t !== Ar && t !== Tn ? _r(e, $t) : (e.state = null, t === Ar ? _r(e,
|
|
3403
|
+
return !e || !e.state ? $t : (t = e.state.status, t !== mi && t !== Ga && t !== Cs && t !== Ns && t !== Ds && t !== Ar && t !== Tn ? _r(e, $t) : (e.state = null, t === Ar ? _r(e, _m) : Yt));
|
|
3385
3404
|
}
|
|
3386
|
-
function
|
|
3405
|
+
function Gm(e, t) {
|
|
3387
3406
|
var r = t.length, i, a, s, n, o, l, c, p;
|
|
3388
3407
|
if (!e || !e.state || (i = e.state, n = i.wrap, n === 2 || n === 1 && i.status !== mi || i.lookahead))
|
|
3389
3408
|
return $t;
|
|
@@ -3396,14 +3415,14 @@ function Vm(e, t) {
|
|
|
3396
3415
|
}
|
|
3397
3416
|
return i.strstart += i.lookahead, i.block_start = i.strstart, i.insert = i.lookahead, i.lookahead = 0, i.match_length = i.prev_length = ge - 1, i.match_available = 0, e.next_in = l, e.input = c, e.avail_in = o, i.wrap = n, Yt;
|
|
3398
3417
|
}
|
|
3399
|
-
Qt.deflateInit =
|
|
3418
|
+
Qt.deflateInit = Hm;
|
|
3400
3419
|
Qt.deflateInit2 = kp;
|
|
3401
3420
|
Qt.deflateReset = xp;
|
|
3402
3421
|
Qt.deflateResetKeep = vp;
|
|
3403
|
-
Qt.deflateSetHeader =
|
|
3404
|
-
Qt.deflate =
|
|
3405
|
-
Qt.deflateEnd =
|
|
3406
|
-
Qt.deflateSetDictionary =
|
|
3422
|
+
Qt.deflateSetHeader = zm;
|
|
3423
|
+
Qt.deflate = Vm;
|
|
3424
|
+
Qt.deflateEnd = Zm;
|
|
3425
|
+
Qt.deflateSetDictionary = Gm;
|
|
3407
3426
|
Qt.deflateInfo = "pako deflate (from Nodeca project)";
|
|
3408
3427
|
var Wr = {}, yi = ar, Pp = !0, Ep = !0;
|
|
3409
3428
|
try {
|
|
@@ -3470,23 +3489,23 @@ Wr.utf8border = function(e, t) {
|
|
|
3470
3489
|
r--;
|
|
3471
3490
|
return r < 0 || r === 0 ? t : r + Mn[e[r]] > t ? r : t;
|
|
3472
3491
|
};
|
|
3473
|
-
function
|
|
3492
|
+
function Ym() {
|
|
3474
3493
|
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;
|
|
3475
3494
|
}
|
|
3476
|
-
var Tp =
|
|
3495
|
+
var Tp = Ym, Rn = Qt, Fn = ar, Ya = Wr, Ka = Po, Km = Tp, Op = Object.prototype.toString, Xm = 0, zi = 4, an = 0, gl = 1, wl = 2, Jm = -1, Qm = 0, ey = 8;
|
|
3477
3496
|
function Dr(e) {
|
|
3478
3497
|
if (!(this instanceof Dr)) return new Dr(e);
|
|
3479
3498
|
this.options = Fn.assign({
|
|
3480
|
-
level:
|
|
3481
|
-
method:
|
|
3499
|
+
level: Jm,
|
|
3500
|
+
method: ey,
|
|
3482
3501
|
chunkSize: 16384,
|
|
3483
3502
|
windowBits: 15,
|
|
3484
3503
|
memLevel: 8,
|
|
3485
|
-
strategy:
|
|
3504
|
+
strategy: Qm,
|
|
3486
3505
|
to: ""
|
|
3487
3506
|
}, e || {});
|
|
3488
3507
|
var t = this.options;
|
|
3489
|
-
t.raw && t.windowBits > 0 ? t.windowBits = -t.windowBits : t.gzip && t.windowBits > 0 && t.windowBits < 16 && (t.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new
|
|
3508
|
+
t.raw && t.windowBits > 0 ? t.windowBits = -t.windowBits : t.gzip && t.windowBits > 0 && t.windowBits < 16 && (t.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new Km(), this.strm.avail_out = 0;
|
|
3490
3509
|
var r = Rn.deflateInit2(
|
|
3491
3510
|
this.strm,
|
|
3492
3511
|
t.level,
|
|
@@ -3508,7 +3527,7 @@ Dr.prototype.push = function(e, t) {
|
|
|
3508
3527
|
var r = this.strm, i = this.options.chunkSize, a, s;
|
|
3509
3528
|
if (this.ended)
|
|
3510
3529
|
return !1;
|
|
3511
|
-
s = t === ~~t ? t : t === !0 ? zi :
|
|
3530
|
+
s = t === ~~t ? t : t === !0 ? zi : Xm, typeof e == "string" ? r.input = Ya.string2buf(e) : Op.call(e) === "[object ArrayBuffer]" ? r.input = new Uint8Array(e) : r.input = e, r.next_in = 0, r.avail_in = r.input.length;
|
|
3512
3531
|
do {
|
|
3513
3532
|
if (r.avail_out === 0 && (r.output = new Fn.Buf8(i), r.next_out = 0, r.avail_out = i), a = Rn.deflate(r, s), a !== gl && a !== an)
|
|
3514
3533
|
return this.onEnd(a), this.ended = !0, !1;
|
|
@@ -3528,17 +3547,17 @@ function Eo(e, t) {
|
|
|
3528
3547
|
throw r.msg || Ka[r.err];
|
|
3529
3548
|
return r.result;
|
|
3530
3549
|
}
|
|
3531
|
-
function
|
|
3550
|
+
function ty(e, t) {
|
|
3532
3551
|
return t = t || {}, t.raw = !0, Eo(e, t);
|
|
3533
3552
|
}
|
|
3534
|
-
function
|
|
3553
|
+
function ry(e, t) {
|
|
3535
3554
|
return t = t || {}, t.gzip = !0, Eo(e, t);
|
|
3536
3555
|
}
|
|
3537
3556
|
rs.Deflate = Dr;
|
|
3538
3557
|
rs.deflate = Eo;
|
|
3539
|
-
rs.deflateRaw =
|
|
3540
|
-
rs.gzip =
|
|
3541
|
-
var is = {}, Ut = {}, ws = 30,
|
|
3558
|
+
rs.deflateRaw = ty;
|
|
3559
|
+
rs.gzip = ry;
|
|
3560
|
+
var is = {}, Ut = {}, ws = 30, ny = 12, sy = function(t, r) {
|
|
3542
3561
|
var i, a, s, n, o, l, c, p, d, m, g, A, y, w, b, O, k, L, $, C, E, T, F, P, S;
|
|
3543
3562
|
i = t.state, a = t.next_in, P = t.input, s = a + (t.avail_in - 5), n = t.next_out, S = t.output, o = n - (r - t.avail_out), l = n + (t.avail_out - 257), c = i.dmax, p = i.wsize, d = i.whave, m = i.wnext, g = i.window, A = i.hold, y = i.bits, w = i.lencode, b = i.distcode, O = (1 << i.lenbits) - 1, k = (1 << i.distbits) - 1;
|
|
3544
3563
|
e:
|
|
@@ -3612,7 +3631,7 @@ var is = {}, Ut = {}, ws = 30, ty = 12, ry = function(t, r) {
|
|
|
3612
3631
|
}
|
|
3613
3632
|
} else if ($ & 64)
|
|
3614
3633
|
if ($ & 32) {
|
|
3615
|
-
i.mode =
|
|
3634
|
+
i.mode = ny;
|
|
3616
3635
|
break e;
|
|
3617
3636
|
} else {
|
|
3618
3637
|
t.msg = "invalid literal/length code", i.mode = ws;
|
|
@@ -3626,7 +3645,7 @@ var is = {}, Ut = {}, ws = 30, ty = 12, ry = function(t, r) {
|
|
|
3626
3645
|
}
|
|
3627
3646
|
} while (a < s && n < l);
|
|
3628
3647
|
C = y >> 3, a -= C, y -= C << 3, A &= (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 < l ? 257 + (l - n) : 257 - (n - l), i.hold = A, i.bits = y;
|
|
3629
|
-
}, bl = ar, Vr = 15, _l = 852, vl = 592, xl = 0, Hi = 1, kl = 2,
|
|
3648
|
+
}, bl = ar, Vr = 15, _l = 852, vl = 592, xl = 0, Hi = 1, kl = 2, iy = [
|
|
3630
3649
|
/* Length codes 257..285 base */
|
|
3631
3650
|
3,
|
|
3632
3651
|
4,
|
|
@@ -3659,7 +3678,7 @@ var is = {}, Ut = {}, ws = 30, ty = 12, ry = function(t, r) {
|
|
|
3659
3678
|
258,
|
|
3660
3679
|
0,
|
|
3661
3680
|
0
|
|
3662
|
-
],
|
|
3681
|
+
], ay = [
|
|
3663
3682
|
/* Length codes 257..285 extra */
|
|
3664
3683
|
16,
|
|
3665
3684
|
16,
|
|
@@ -3692,7 +3711,7 @@ var is = {}, Ut = {}, ws = 30, ty = 12, ry = function(t, r) {
|
|
|
3692
3711
|
16,
|
|
3693
3712
|
72,
|
|
3694
3713
|
78
|
|
3695
|
-
],
|
|
3714
|
+
], oy = [
|
|
3696
3715
|
/* Distance codes 0..29 base */
|
|
3697
3716
|
1,
|
|
3698
3717
|
2,
|
|
@@ -3726,7 +3745,7 @@ var is = {}, Ut = {}, ws = 30, ty = 12, ry = function(t, r) {
|
|
|
3726
3745
|
24577,
|
|
3727
3746
|
0,
|
|
3728
3747
|
0
|
|
3729
|
-
],
|
|
3748
|
+
], ly = [
|
|
3730
3749
|
/* Distance codes 0..29 extra */
|
|
3731
3750
|
16,
|
|
3732
3751
|
16,
|
|
@@ -3760,7 +3779,7 @@ var is = {}, Ut = {}, ws = 30, ty = 12, ry = function(t, r) {
|
|
|
3760
3779
|
29,
|
|
3761
3780
|
64,
|
|
3762
3781
|
64
|
|
3763
|
-
],
|
|
3782
|
+
], fy = function(t, r, i, a, s, n, o, l) {
|
|
3764
3783
|
var c = l.bits, p = 0, d = 0, m = 0, g = 0, A = 0, y = 0, w = 0, b = 0, O = 0, k = 0, L, $, C, E, T, F = null, P = 0, S, N = new bl.Buf16(Vr + 1), I = new bl.Buf16(Vr + 1), U = null, q = 0, W, X, V;
|
|
3765
3784
|
for (p = 0; p <= Vr; p++)
|
|
3766
3785
|
N[p] = 0;
|
|
@@ -3781,7 +3800,7 @@ var is = {}, Ut = {}, ws = 30, ty = 12, ry = function(t, r) {
|
|
|
3781
3800
|
I[p + 1] = I[p] + N[p];
|
|
3782
3801
|
for (d = 0; d < a; d++)
|
|
3783
3802
|
r[i + d] !== 0 && (o[I[r[i + d]]++] = d);
|
|
3784
|
-
if (t === xl ? (F = U = o, S = 19) : t === Hi ? (F =
|
|
3803
|
+
if (t === xl ? (F = U = o, S = 19) : t === Hi ? (F = iy, P -= 257, U = ay, q -= 257, S = 256) : (F = oy, U = ly, S = -1), k = 0, d = 0, p = m, T = n, y = A, w = 0, C = -1, O = 1 << A, E = O - 1, t === Hi && O > _l || t === kl && O > vl)
|
|
3785
3804
|
return 1;
|
|
3786
3805
|
for (; ; ) {
|
|
3787
3806
|
W = p - w, o[d] < S ? (X = 0, V = o[d]) : o[d] > S ? (X = U[q + o[d]], V = F[P + o[d]]) : (X = 96, V = 0), L = 1 << p - w, $ = 1 << y, m = $;
|
|
@@ -3804,16 +3823,16 @@ var is = {}, Ut = {}, ws = 30, ty = 12, ry = function(t, r) {
|
|
|
3804
3823
|
}
|
|
3805
3824
|
}
|
|
3806
3825
|
return k !== 0 && (s[T + k] = p - w << 24 | 64 << 16 | 0), l.bits = A, 0;
|
|
3807
|
-
}, kt = ar, Xa = gp, Mt = wp,
|
|
3826
|
+
}, kt = ar, Xa = gp, Mt = wp, cy = sy, In = fy, py = 0, Ap = 1, $p = 2, Pl = 4, uy = 5, bs = 6, jr = 0, dy = 1, hy = 2, Rt = -2, Rp = -3, Fp = -4, my = -5, El = 8, Ip = 1, Sl = 2, Tl = 3, Ol = 4, Al = 5, $l = 6, Rl = 7, Fl = 8, Il = 9, Ll = 10, ei = 11, tr = 12, Vi = 13, Cl = 14, Zi = 15, Nl = 16, Dl = 17, jl = 18, Ul = 19, _s = 20, vs = 21, Bl = 22, ql = 23, Ml = 24, Wl = 25, zl = 26, Gi = 27, Hl = 28, Vl = 29, Ne = 30, Lp = 31, yy = 32, gy = 852, wy = 592, by = 15, _y = by;
|
|
3808
3827
|
function Zl(e) {
|
|
3809
3828
|
return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
|
|
3810
3829
|
}
|
|
3811
|
-
function
|
|
3830
|
+
function vy() {
|
|
3812
3831
|
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new kt.Buf16(320), this.work = new kt.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
3813
3832
|
}
|
|
3814
3833
|
function Cp(e) {
|
|
3815
3834
|
var t;
|
|
3816
|
-
return !e || !e.state ? Rt : (t = e.state, e.total_in = e.total_out = t.total = 0, e.msg = "", t.wrap && (e.adler = t.wrap & 1), t.mode = Ip, t.last = 0, t.havedict = 0, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new kt.Buf32(
|
|
3835
|
+
return !e || !e.state ? Rt : (t = e.state, e.total_in = e.total_out = t.total = 0, e.msg = "", t.wrap && (e.adler = t.wrap & 1), t.mode = Ip, t.last = 0, t.havedict = 0, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new kt.Buf32(gy), t.distcode = t.distdyn = new kt.Buf32(wy), t.sane = 1, t.back = -1, jr);
|
|
3817
3836
|
}
|
|
3818
3837
|
function Np(e) {
|
|
3819
3838
|
var t;
|
|
@@ -3825,13 +3844,13 @@ function Dp(e, t) {
|
|
|
3825
3844
|
}
|
|
3826
3845
|
function jp(e, t) {
|
|
3827
3846
|
var r, i;
|
|
3828
|
-
return e ? (i = new
|
|
3847
|
+
return e ? (i = new vy(), e.state = i, i.window = null, r = Dp(e, t), r !== jr && (e.state = null), r) : Rt;
|
|
3829
3848
|
}
|
|
3830
|
-
function
|
|
3831
|
-
return jp(e,
|
|
3849
|
+
function xy(e) {
|
|
3850
|
+
return jp(e, _y);
|
|
3832
3851
|
}
|
|
3833
3852
|
var Gl = !0, Yi, Ki;
|
|
3834
|
-
function
|
|
3853
|
+
function ky(e) {
|
|
3835
3854
|
if (Gl) {
|
|
3836
3855
|
var t;
|
|
3837
3856
|
for (Yi = new kt.Buf32(512), Ki = new kt.Buf32(32), t = 0; t < 144; )
|
|
@@ -3852,7 +3871,7 @@ function Up(e, t, r, i) {
|
|
|
3852
3871
|
var a, s = e.state;
|
|
3853
3872
|
return s.window === null && (s.wsize = 1 << s.wbits, s.wnext = 0, s.whave = 0, s.window = new kt.Buf8(s.wsize)), i >= s.wsize ? (kt.arraySet(s.window, t, r - s.wsize, s.wsize, 0), s.wnext = 0, s.whave = s.wsize) : (a = s.wsize - s.wnext, a > i && (a = i), kt.arraySet(s.window, t, r - i, a, s.wnext), i -= a, i ? (kt.arraySet(s.window, t, r - i, i, 0), s.wnext = i, s.whave = s.wsize) : (s.wnext += a, s.wnext === s.wsize && (s.wnext = 0), s.whave < s.wsize && (s.whave += a))), 0;
|
|
3854
3873
|
}
|
|
3855
|
-
function
|
|
3874
|
+
function Py(e, t) {
|
|
3856
3875
|
var r, i, a, s, n, o, l, c, p, d, m, g, A, y, w = 0, b, O, k, L, $, C, E, T, F = new kt.Buf8(4), P, S, N = (
|
|
3857
3876
|
/* permutation of code lengths */
|
|
3858
3877
|
[16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
|
|
@@ -3994,10 +4013,10 @@ function xy(e, t) {
|
|
|
3994
4013
|
e.adler = r.check = Zl(c), c = 0, p = 0, r.mode = ei;
|
|
3995
4014
|
case ei:
|
|
3996
4015
|
if (r.havedict === 0)
|
|
3997
|
-
return e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = c, r.bits = p,
|
|
4016
|
+
return e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = c, r.bits = p, hy;
|
|
3998
4017
|
e.adler = r.check = 1, r.mode = tr;
|
|
3999
4018
|
case tr:
|
|
4000
|
-
if (t ===
|
|
4019
|
+
if (t === uy || t === bs)
|
|
4001
4020
|
break e;
|
|
4002
4021
|
case Vi:
|
|
4003
4022
|
if (r.last) {
|
|
@@ -4014,7 +4033,7 @@ function xy(e, t) {
|
|
|
4014
4033
|
r.mode = Cl;
|
|
4015
4034
|
break;
|
|
4016
4035
|
case 1:
|
|
4017
|
-
if (
|
|
4036
|
+
if (ky(r), r.mode = _s, t === bs) {
|
|
4018
4037
|
c >>>= 2, p -= 2;
|
|
4019
4038
|
break e;
|
|
4020
4039
|
}
|
|
@@ -4072,7 +4091,7 @@ function xy(e, t) {
|
|
|
4072
4091
|
}
|
|
4073
4092
|
for (; r.have < 19; )
|
|
4074
4093
|
r.lens[N[r.have++]] = 0;
|
|
4075
|
-
if (r.lencode = r.lendyn, r.lenbits = 7, P = { bits: r.lenbits }, T = In(
|
|
4094
|
+
if (r.lencode = r.lendyn, r.lenbits = 7, P = { bits: r.lenbits }, T = In(py, r.lens, 0, 19, r.lencode, 0, r.work, P), r.lenbits = P.bits, T) {
|
|
4076
4095
|
e.msg = "invalid code lengths set", r.mode = Ne;
|
|
4077
4096
|
break;
|
|
4078
4097
|
}
|
|
@@ -4141,7 +4160,7 @@ function xy(e, t) {
|
|
|
4141
4160
|
r.mode = vs;
|
|
4142
4161
|
case vs:
|
|
4143
4162
|
if (o >= 6 && l >= 258) {
|
|
4144
|
-
e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = c, r.bits = p,
|
|
4163
|
+
e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = c, r.bits = p, cy(e, m), n = e.next_out, a = e.output, l = e.avail_out, s = e.next_in, i = e.input, o = e.avail_in, c = r.hold, p = r.bits, r.mode === tr && (r.back = -1);
|
|
4145
4164
|
break;
|
|
4146
4165
|
}
|
|
4147
4166
|
for (r.back = 0; w = r.lencode[c & (1 << r.lenbits) - 1], b = w >>> 24, O = w >>> 16 & 255, k = w & 65535, !(b <= p); ) {
|
|
@@ -4265,43 +4284,43 @@ function xy(e, t) {
|
|
|
4265
4284
|
}
|
|
4266
4285
|
r.mode = Vl;
|
|
4267
4286
|
case Vl:
|
|
4268
|
-
T =
|
|
4287
|
+
T = dy;
|
|
4269
4288
|
break e;
|
|
4270
4289
|
case Ne:
|
|
4271
4290
|
T = Rp;
|
|
4272
4291
|
break e;
|
|
4273
4292
|
case Lp:
|
|
4274
4293
|
return Fp;
|
|
4275
|
-
case
|
|
4294
|
+
case yy:
|
|
4276
4295
|
default:
|
|
4277
4296
|
return Rt;
|
|
4278
4297
|
}
|
|
4279
4298
|
return e.next_out = n, e.avail_out = l, e.next_in = s, e.avail_in = o, r.hold = c, r.bits = p, (r.wsize || m !== e.avail_out && r.mode < Ne && (r.mode < Gi || t !== Pl)) && Up(e, e.output, e.next_out, m - e.avail_out), d -= e.avail_in, m -= e.avail_out, e.total_in += d, e.total_out += m, r.total += m, r.wrap && m && (e.adler = r.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
|
|
4280
|
-
r.flags ? Mt(r.check, a, m, e.next_out - m) : Xa(r.check, a, m, e.next_out - m)), e.data_type = r.bits + (r.last ? 64 : 0) + (r.mode === tr ? 128 : 0) + (r.mode === _s || r.mode === Zi ? 256 : 0), (d === 0 && m === 0 || t === Pl) && T === jr && (T =
|
|
4299
|
+
r.flags ? Mt(r.check, a, m, e.next_out - m) : Xa(r.check, a, m, e.next_out - m)), e.data_type = r.bits + (r.last ? 64 : 0) + (r.mode === tr ? 128 : 0) + (r.mode === _s || r.mode === Zi ? 256 : 0), (d === 0 && m === 0 || t === Pl) && T === jr && (T = my), T;
|
|
4281
4300
|
}
|
|
4282
|
-
function
|
|
4301
|
+
function Ey(e) {
|
|
4283
4302
|
if (!e || !e.state)
|
|
4284
4303
|
return Rt;
|
|
4285
4304
|
var t = e.state;
|
|
4286
4305
|
return t.window && (t.window = null), e.state = null, jr;
|
|
4287
4306
|
}
|
|
4288
|
-
function
|
|
4307
|
+
function Sy(e, t) {
|
|
4289
4308
|
var r;
|
|
4290
4309
|
return !e || !e.state || (r = e.state, !(r.wrap & 2)) ? Rt : (r.head = t, t.done = !1, jr);
|
|
4291
4310
|
}
|
|
4292
|
-
function
|
|
4311
|
+
function Ty(e, t) {
|
|
4293
4312
|
var r = t.length, i, a, s;
|
|
4294
4313
|
return !e || !e.state || (i = e.state, i.wrap !== 0 && i.mode !== ei) ? Rt : i.mode === ei && (a = 1, a = Xa(a, t, r, 0), a !== i.check) ? Rp : (s = Up(e, t, r, r), s ? (i.mode = Lp, Fp) : (i.havedict = 1, jr));
|
|
4295
4314
|
}
|
|
4296
4315
|
Ut.inflateReset = Np;
|
|
4297
4316
|
Ut.inflateReset2 = Dp;
|
|
4298
4317
|
Ut.inflateResetKeep = Cp;
|
|
4299
|
-
Ut.inflateInit =
|
|
4318
|
+
Ut.inflateInit = xy;
|
|
4300
4319
|
Ut.inflateInit2 = jp;
|
|
4301
|
-
Ut.inflate =
|
|
4302
|
-
Ut.inflateEnd =
|
|
4303
|
-
Ut.inflateGetHeader =
|
|
4304
|
-
Ut.inflateSetDictionary =
|
|
4320
|
+
Ut.inflate = Py;
|
|
4321
|
+
Ut.inflateEnd = Ey;
|
|
4322
|
+
Ut.inflateGetHeader = Sy;
|
|
4323
|
+
Ut.inflateSetDictionary = Ty;
|
|
4305
4324
|
Ut.inflateInfo = "pako inflate (from Nodeca project)";
|
|
4306
4325
|
var Bp = {
|
|
4307
4326
|
/* Allowed flush values; see deflate() and inflate() below for details */
|
|
@@ -4343,10 +4362,10 @@ var Bp = {
|
|
|
4343
4362
|
Z_DEFLATED: 8
|
|
4344
4363
|
//Z_NULL: null // Use -1 or null inline, depending on var type
|
|
4345
4364
|
};
|
|
4346
|
-
function
|
|
4365
|
+
function Oy() {
|
|
4347
4366
|
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;
|
|
4348
4367
|
}
|
|
4349
|
-
var
|
|
4368
|
+
var Ay = Oy, on = Ut, Ln = ar, js = Wr, Ue = Bp, Ja = Po, $y = Tp, Ry = Ay, qp = Object.prototype.toString;
|
|
4350
4369
|
function Ur(e) {
|
|
4351
4370
|
if (!(this instanceof Ur)) return new Ur(e);
|
|
4352
4371
|
this.options = Ln.assign({
|
|
@@ -4355,14 +4374,14 @@ function Ur(e) {
|
|
|
4355
4374
|
to: ""
|
|
4356
4375
|
}, e || {});
|
|
4357
4376
|
var t = this.options;
|
|
4358
|
-
t.raw && t.windowBits >= 0 && t.windowBits < 16 && (t.windowBits = -t.windowBits, t.windowBits === 0 && (t.windowBits = -15)), t.windowBits >= 0 && t.windowBits < 16 && !(e && e.windowBits) && (t.windowBits += 32), t.windowBits > 15 && t.windowBits < 48 && (t.windowBits & 15 || (t.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new
|
|
4377
|
+
t.raw && t.windowBits >= 0 && t.windowBits < 16 && (t.windowBits = -t.windowBits, t.windowBits === 0 && (t.windowBits = -15)), t.windowBits >= 0 && t.windowBits < 16 && !(e && e.windowBits) && (t.windowBits += 32), t.windowBits > 15 && t.windowBits < 48 && (t.windowBits & 15 || (t.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new $y(), this.strm.avail_out = 0;
|
|
4359
4378
|
var r = on.inflateInit2(
|
|
4360
4379
|
this.strm,
|
|
4361
4380
|
t.windowBits
|
|
4362
4381
|
);
|
|
4363
4382
|
if (r !== Ue.Z_OK)
|
|
4364
4383
|
throw new Error(Ja[r]);
|
|
4365
|
-
if (this.header = new
|
|
4384
|
+
if (this.header = new Ry(), on.inflateGetHeader(this.strm, this.header), t.dictionary && (typeof t.dictionary == "string" ? t.dictionary = js.string2buf(t.dictionary) : qp.call(t.dictionary) === "[object ArrayBuffer]" && (t.dictionary = new Uint8Array(t.dictionary)), t.raw && (r = on.inflateSetDictionary(this.strm, t.dictionary), r !== Ue.Z_OK)))
|
|
4366
4385
|
throw new Error(Ja[r]);
|
|
4367
4386
|
}
|
|
4368
4387
|
Ur.prototype.push = function(e, t) {
|
|
@@ -4389,18 +4408,18 @@ function So(e, t) {
|
|
|
4389
4408
|
throw r.msg || Ja[r.err];
|
|
4390
4409
|
return r.result;
|
|
4391
4410
|
}
|
|
4392
|
-
function
|
|
4411
|
+
function Fy(e, t) {
|
|
4393
4412
|
return t = t || {}, t.raw = !0, So(e, t);
|
|
4394
4413
|
}
|
|
4395
4414
|
is.Inflate = Ur;
|
|
4396
4415
|
is.inflate = So;
|
|
4397
|
-
is.inflateRaw =
|
|
4416
|
+
is.inflateRaw = Fy;
|
|
4398
4417
|
is.ungzip = So;
|
|
4399
|
-
var
|
|
4400
|
-
|
|
4401
|
-
var
|
|
4402
|
-
const To = /* @__PURE__ */ po(
|
|
4403
|
-
async function
|
|
4418
|
+
var Iy = ar.assign, Ly = rs, Cy = is, Ny = Bp, Mp = {};
|
|
4419
|
+
Iy(Mp, Ly, Cy, Ny);
|
|
4420
|
+
var Dy = Mp;
|
|
4421
|
+
const To = /* @__PURE__ */ po(Dy);
|
|
4422
|
+
async function jy(e, t) {
|
|
4404
4423
|
const r = new Xc(e);
|
|
4405
4424
|
let i = await r.read(4);
|
|
4406
4425
|
if (i = i.toString("utf8"), i !== "PACK")
|
|
@@ -4411,7 +4430,7 @@ async function Ny(e, t) {
|
|
|
4411
4430
|
let s = await r.read(4);
|
|
4412
4431
|
if (s = s.readUInt32BE(0), !(s < 1))
|
|
4413
4432
|
for (; !r.eof() && s--; ) {
|
|
4414
|
-
const n = r.tell(), { type: o, length: l, ofs: c, reference: p } = await
|
|
4433
|
+
const n = r.tell(), { type: o, length: l, ofs: c, reference: p } = await Uy(r), d = new To.Inflate();
|
|
4415
4434
|
for (; !d.result; ) {
|
|
4416
4435
|
const m = await r.chunk();
|
|
4417
4436
|
if (!m) break;
|
|
@@ -4437,7 +4456,7 @@ async function Ny(e, t) {
|
|
|
4437
4456
|
}
|
|
4438
4457
|
}
|
|
4439
4458
|
}
|
|
4440
|
-
async function
|
|
4459
|
+
async function Uy(e) {
|
|
4441
4460
|
let t = await e.byte();
|
|
4442
4461
|
const r = t >> 4 & 7;
|
|
4443
4462
|
let i = t & 15;
|
|
@@ -4459,7 +4478,7 @@ async function Dy(e) {
|
|
|
4459
4478
|
}
|
|
4460
4479
|
return r === 7 && (s = await e.read(20)), { type: r, length: i, ofs: a, reference: s };
|
|
4461
4480
|
}
|
|
4462
|
-
async function
|
|
4481
|
+
async function By(e) {
|
|
4463
4482
|
return To.inflate(e);
|
|
4464
4483
|
}
|
|
4465
4484
|
var Qa = { exports: {} };
|
|
@@ -4480,12 +4499,12 @@ typeof Object.create == "function" ? Qa.exports = function(t, r) {
|
|
|
4480
4499
|
i.prototype = r.prototype, t.prototype = new i(), t.prototype.constructor = t;
|
|
4481
4500
|
}
|
|
4482
4501
|
};
|
|
4483
|
-
var
|
|
4484
|
-
gi.byteLength =
|
|
4485
|
-
gi.toByteArray =
|
|
4486
|
-
gi.fromByteArray =
|
|
4487
|
-
var Kt = [], Tt = [],
|
|
4488
|
-
for (var Zr = 0,
|
|
4502
|
+
var qy = Qa.exports, eo = { exports: {} }, Oo = {}, gi = {};
|
|
4503
|
+
gi.byteLength = zy;
|
|
4504
|
+
gi.toByteArray = Vy;
|
|
4505
|
+
gi.fromByteArray = Yy;
|
|
4506
|
+
var Kt = [], Tt = [], My = typeof Uint8Array < "u" ? Uint8Array : Array, Xi = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
4507
|
+
for (var Zr = 0, Wy = Xi.length; Zr < Wy; ++Zr)
|
|
4489
4508
|
Kt[Zr] = Xi[Zr], Tt[Xi.charCodeAt(Zr)] = Zr;
|
|
4490
4509
|
Tt[45] = 62;
|
|
4491
4510
|
Tt[95] = 63;
|
|
@@ -4498,30 +4517,30 @@ function Wp(e) {
|
|
|
4498
4517
|
var i = r === t ? 0 : 4 - r % 4;
|
|
4499
4518
|
return [r, i];
|
|
4500
4519
|
}
|
|
4501
|
-
function
|
|
4520
|
+
function zy(e) {
|
|
4502
4521
|
var t = Wp(e), r = t[0], i = t[1];
|
|
4503
4522
|
return (r + i) * 3 / 4 - i;
|
|
4504
4523
|
}
|
|
4505
|
-
function
|
|
4524
|
+
function Hy(e, t, r) {
|
|
4506
4525
|
return (t + r) * 3 / 4 - r;
|
|
4507
4526
|
}
|
|
4508
|
-
function
|
|
4509
|
-
var t, r = Wp(e), i = r[0], a = r[1], s = new
|
|
4527
|
+
function Vy(e) {
|
|
4528
|
+
var t, r = Wp(e), i = r[0], a = r[1], s = new My(Hy(e, i, a)), n = 0, o = a > 0 ? i - 4 : i, l;
|
|
4510
4529
|
for (l = 0; l < o; l += 4)
|
|
4511
4530
|
t = Tt[e.charCodeAt(l)] << 18 | Tt[e.charCodeAt(l + 1)] << 12 | Tt[e.charCodeAt(l + 2)] << 6 | Tt[e.charCodeAt(l + 3)], s[n++] = t >> 16 & 255, s[n++] = t >> 8 & 255, s[n++] = t & 255;
|
|
4512
4531
|
return a === 2 && (t = Tt[e.charCodeAt(l)] << 2 | Tt[e.charCodeAt(l + 1)] >> 4, s[n++] = t & 255), a === 1 && (t = Tt[e.charCodeAt(l)] << 10 | Tt[e.charCodeAt(l + 1)] << 4 | Tt[e.charCodeAt(l + 2)] >> 2, s[n++] = t >> 8 & 255, s[n++] = t & 255), s;
|
|
4513
4532
|
}
|
|
4514
|
-
function
|
|
4533
|
+
function Zy(e) {
|
|
4515
4534
|
return Kt[e >> 18 & 63] + Kt[e >> 12 & 63] + Kt[e >> 6 & 63] + Kt[e & 63];
|
|
4516
4535
|
}
|
|
4517
|
-
function
|
|
4536
|
+
function Gy(e, t, r) {
|
|
4518
4537
|
for (var i, a = [], s = t; s < r; s += 3)
|
|
4519
|
-
i = (e[s] << 16 & 16711680) + (e[s + 1] << 8 & 65280) + (e[s + 2] & 255), a.push(
|
|
4538
|
+
i = (e[s] << 16 & 16711680) + (e[s + 1] << 8 & 65280) + (e[s + 2] & 255), a.push(Zy(i));
|
|
4520
4539
|
return a.join("");
|
|
4521
4540
|
}
|
|
4522
|
-
function
|
|
4541
|
+
function Yy(e) {
|
|
4523
4542
|
for (var t, r = e.length, i = r % 3, a = [], s = 16383, n = 0, o = r - i; n < o; n += s)
|
|
4524
|
-
a.push(
|
|
4543
|
+
a.push(Gy(e, n, n + s > o ? o : n + s));
|
|
4525
4544
|
return i === 1 ? (t = e[r - 1], a.push(
|
|
4526
4545
|
Kt[t >> 2] + Kt[t << 4 & 63] + "=="
|
|
4527
4546
|
)) : i === 2 && (t = (e[r - 2] << 8) + e[r - 1], a.push(
|
|
@@ -5368,13 +5387,13 @@ Ao.write = function(e, t, r, i, a, s) {
|
|
|
5368
5387
|
return r.SlowBuffer(n);
|
|
5369
5388
|
};
|
|
5370
5389
|
})(eo, eo.exports);
|
|
5371
|
-
var $o = eo.exports,
|
|
5372
|
-
return
|
|
5373
|
-
}, as = TypeError, zp = Object,
|
|
5390
|
+
var $o = eo.exports, Ky = {}.toString, Xy = Array.isArray || function(e) {
|
|
5391
|
+
return Ky.call(e) == "[object Array]";
|
|
5392
|
+
}, as = TypeError, zp = Object, Jy = Error, Qy = EvalError, e0 = RangeError, t0 = ReferenceError, Hp = SyntaxError, r0 = URIError, n0 = Math.abs, s0 = Math.floor, i0 = Math.max, a0 = Math.min, o0 = Math.pow, l0 = Math.round, f0 = Number.isNaN || function(t) {
|
|
5374
5393
|
return t !== t;
|
|
5375
|
-
},
|
|
5376
|
-
return
|
|
5377
|
-
},
|
|
5394
|
+
}, c0 = f0, p0 = function(t) {
|
|
5395
|
+
return c0(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
5396
|
+
}, u0 = Object.getOwnPropertyDescriptor, Us = u0;
|
|
5378
5397
|
if (Us)
|
|
5379
5398
|
try {
|
|
5380
5399
|
Us([], "length");
|
|
@@ -5419,7 +5438,7 @@ function Vp() {
|
|
|
5419
5438
|
}), Ji;
|
|
5420
5439
|
}
|
|
5421
5440
|
var Qi, Kl;
|
|
5422
|
-
function
|
|
5441
|
+
function d0() {
|
|
5423
5442
|
if (Kl) return Qi;
|
|
5424
5443
|
Kl = 1;
|
|
5425
5444
|
var e = typeof Symbol < "u" && Symbol, t = Vp();
|
|
@@ -5438,25 +5457,25 @@ function Gp() {
|
|
|
5438
5457
|
var e = zp;
|
|
5439
5458
|
return ta = e.getPrototypeOf || null, ta;
|
|
5440
5459
|
}
|
|
5441
|
-
var
|
|
5460
|
+
var h0 = "Function.prototype.bind called on incompatible ", m0 = Object.prototype.toString, y0 = Math.max, g0 = "[object Function]", Ql = function(t, r) {
|
|
5442
5461
|
for (var i = [], a = 0; a < t.length; a += 1)
|
|
5443
5462
|
i[a] = t[a];
|
|
5444
5463
|
for (var s = 0; s < r.length; s += 1)
|
|
5445
5464
|
i[s + t.length] = r[s];
|
|
5446
5465
|
return i;
|
|
5447
|
-
},
|
|
5466
|
+
}, w0 = function(t, r) {
|
|
5448
5467
|
for (var i = [], a = r, s = 0; a < t.length; a += 1, s += 1)
|
|
5449
5468
|
i[s] = t[a];
|
|
5450
5469
|
return i;
|
|
5451
|
-
},
|
|
5470
|
+
}, b0 = function(e, t) {
|
|
5452
5471
|
for (var r = "", i = 0; i < e.length; i += 1)
|
|
5453
5472
|
r += e[i], i + 1 < e.length && (r += t);
|
|
5454
5473
|
return r;
|
|
5455
|
-
},
|
|
5474
|
+
}, _0 = function(t) {
|
|
5456
5475
|
var r = this;
|
|
5457
|
-
if (typeof r != "function" ||
|
|
5458
|
-
throw new TypeError(
|
|
5459
|
-
for (var i =
|
|
5476
|
+
if (typeof r != "function" || m0.apply(r) !== g0)
|
|
5477
|
+
throw new TypeError(h0 + r);
|
|
5478
|
+
for (var i = w0(arguments, 1), a, s = function() {
|
|
5460
5479
|
if (this instanceof a) {
|
|
5461
5480
|
var p = r.apply(
|
|
5462
5481
|
this,
|
|
@@ -5468,24 +5487,24 @@ var u0 = "Function.prototype.bind called on incompatible ", d0 = Object.prototyp
|
|
|
5468
5487
|
t,
|
|
5469
5488
|
Ql(i, arguments)
|
|
5470
5489
|
);
|
|
5471
|
-
}, n =
|
|
5490
|
+
}, n = y0(0, r.length - i.length), o = [], l = 0; l < n; l++)
|
|
5472
5491
|
o[l] = "$" + l;
|
|
5473
|
-
if (a = Function("binder", "return function (" +
|
|
5492
|
+
if (a = Function("binder", "return function (" + b0(o, ",") + "){ return binder.apply(this,arguments); }")(s), r.prototype) {
|
|
5474
5493
|
var c = function() {
|
|
5475
5494
|
};
|
|
5476
5495
|
c.prototype = r.prototype, a.prototype = new c(), c.prototype = null;
|
|
5477
5496
|
}
|
|
5478
5497
|
return a;
|
|
5479
|
-
},
|
|
5498
|
+
}, v0 = _0, ls = Function.prototype.bind || v0, Ro = Function.prototype.call, ra, ef;
|
|
5480
5499
|
function Fo() {
|
|
5481
5500
|
return ef || (ef = 1, ra = Function.prototype.apply), ra;
|
|
5482
5501
|
}
|
|
5483
|
-
var
|
|
5502
|
+
var x0 = typeof Reflect < "u" && Reflect && Reflect.apply, k0 = ls, P0 = Fo(), E0 = Ro, S0 = x0, Yp = S0 || k0.call(E0, P0), T0 = ls, O0 = as, A0 = Ro, $0 = Yp, Io = function(t) {
|
|
5484
5503
|
if (t.length < 1 || typeof t[0] != "function")
|
|
5485
|
-
throw new
|
|
5486
|
-
return
|
|
5504
|
+
throw new O0("a function is required");
|
|
5505
|
+
return $0(T0, A0, t);
|
|
5487
5506
|
}, na, tf;
|
|
5488
|
-
function
|
|
5507
|
+
function R0() {
|
|
5489
5508
|
if (tf) return na;
|
|
5490
5509
|
tf = 1;
|
|
5491
5510
|
var e = Io, t = os, r;
|
|
@@ -5512,7 +5531,7 @@ var sa, rf;
|
|
|
5512
5531
|
function Kp() {
|
|
5513
5532
|
if (rf) return sa;
|
|
5514
5533
|
rf = 1;
|
|
5515
|
-
var e = Zp(), t = Gp(), r =
|
|
5534
|
+
var e = Zp(), t = Gp(), r = R0();
|
|
5516
5535
|
return sa = e ? function(a) {
|
|
5517
5536
|
return e(a);
|
|
5518
5537
|
} : t ? function(a) {
|
|
@@ -5524,20 +5543,20 @@ function Kp() {
|
|
|
5524
5543
|
} : null, sa;
|
|
5525
5544
|
}
|
|
5526
5545
|
var ia, nf;
|
|
5527
|
-
function
|
|
5546
|
+
function F0() {
|
|
5528
5547
|
if (nf) return ia;
|
|
5529
5548
|
nf = 1;
|
|
5530
5549
|
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r = ls;
|
|
5531
5550
|
return ia = r.call(e, t), ia;
|
|
5532
5551
|
}
|
|
5533
|
-
var ye,
|
|
5552
|
+
var ye, I0 = zp, L0 = Jy, C0 = Qy, N0 = e0, D0 = t0, pn = Hp, ln = as, j0 = r0, U0 = n0, B0 = s0, q0 = i0, M0 = a0, W0 = o0, z0 = l0, H0 = p0, Xp = Function, aa = function(e) {
|
|
5534
5553
|
try {
|
|
5535
5554
|
return Xp('"use strict"; return (' + e + ").constructor;")();
|
|
5536
5555
|
} catch {
|
|
5537
5556
|
}
|
|
5538
|
-
}, Wn = os,
|
|
5557
|
+
}, Wn = os, V0 = wi, oa = function() {
|
|
5539
5558
|
throw new ln();
|
|
5540
|
-
},
|
|
5559
|
+
}, Z0 = Wn ? function() {
|
|
5541
5560
|
try {
|
|
5542
5561
|
return arguments.callee, oa;
|
|
5543
5562
|
} catch {
|
|
@@ -5547,7 +5566,7 @@ var ye, R0 = zp, F0 = Ky, I0 = Xy, L0 = Jy, C0 = Qy, pn = Hp, ln = as, N0 = e0,
|
|
|
5547
5566
|
return oa;
|
|
5548
5567
|
}
|
|
5549
5568
|
}
|
|
5550
|
-
}() : oa, Gr =
|
|
5569
|
+
}() : oa, Gr = d0()(), Ze = Kp(), G0 = Gp(), Y0 = Zp(), Jp = Fo(), fs = Ro, Qr = {}, K0 = typeof Uint8Array > "u" || !Ze ? ye : Ze(Uint8Array), $r = {
|
|
5551
5570
|
__proto__: null,
|
|
5552
5571
|
"%AggregateError%": typeof AggregateError > "u" ? ye : AggregateError,
|
|
5553
5572
|
"%Array%": Array,
|
|
@@ -5569,10 +5588,10 @@ var ye, R0 = zp, F0 = Ky, I0 = Xy, L0 = Jy, C0 = Qy, pn = Hp, ln = as, N0 = e0,
|
|
|
5569
5588
|
"%decodeURIComponent%": decodeURIComponent,
|
|
5570
5589
|
"%encodeURI%": encodeURI,
|
|
5571
5590
|
"%encodeURIComponent%": encodeURIComponent,
|
|
5572
|
-
"%Error%":
|
|
5591
|
+
"%Error%": L0,
|
|
5573
5592
|
"%eval%": eval,
|
|
5574
5593
|
// eslint-disable-line no-eval
|
|
5575
|
-
"%EvalError%":
|
|
5594
|
+
"%EvalError%": C0,
|
|
5576
5595
|
"%Float16Array%": typeof Float16Array > "u" ? ye : Float16Array,
|
|
5577
5596
|
"%Float32Array%": typeof Float32Array > "u" ? ye : Float32Array,
|
|
5578
5597
|
"%Float64Array%": typeof Float64Array > "u" ? ye : Float64Array,
|
|
@@ -5590,14 +5609,14 @@ var ye, R0 = zp, F0 = Ky, I0 = Xy, L0 = Jy, C0 = Qy, pn = Hp, ln = as, N0 = e0,
|
|
|
5590
5609
|
"%MapIteratorPrototype%": typeof Map > "u" || !Gr || !Ze ? ye : Ze((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
5591
5610
|
"%Math%": Math,
|
|
5592
5611
|
"%Number%": Number,
|
|
5593
|
-
"%Object%":
|
|
5612
|
+
"%Object%": I0,
|
|
5594
5613
|
"%Object.getOwnPropertyDescriptor%": Wn,
|
|
5595
5614
|
"%parseFloat%": parseFloat,
|
|
5596
5615
|
"%parseInt%": parseInt,
|
|
5597
5616
|
"%Promise%": typeof Promise > "u" ? ye : Promise,
|
|
5598
5617
|
"%Proxy%": typeof Proxy > "u" ? ye : Proxy,
|
|
5599
|
-
"%RangeError%":
|
|
5600
|
-
"%ReferenceError%":
|
|
5618
|
+
"%RangeError%": N0,
|
|
5619
|
+
"%ReferenceError%": D0,
|
|
5601
5620
|
"%Reflect%": typeof Reflect > "u" ? ye : Reflect,
|
|
5602
5621
|
"%RegExp%": RegExp,
|
|
5603
5622
|
"%Set%": typeof Set > "u" ? ye : Set,
|
|
@@ -5607,38 +5626,38 @@ var ye, R0 = zp, F0 = Ky, I0 = Xy, L0 = Jy, C0 = Qy, pn = Hp, ln = as, N0 = e0,
|
|
|
5607
5626
|
"%StringIteratorPrototype%": Gr && Ze ? Ze(""[Symbol.iterator]()) : ye,
|
|
5608
5627
|
"%Symbol%": Gr ? Symbol : ye,
|
|
5609
5628
|
"%SyntaxError%": pn,
|
|
5610
|
-
"%ThrowTypeError%":
|
|
5611
|
-
"%TypedArray%":
|
|
5629
|
+
"%ThrowTypeError%": Z0,
|
|
5630
|
+
"%TypedArray%": K0,
|
|
5612
5631
|
"%TypeError%": ln,
|
|
5613
5632
|
"%Uint8Array%": typeof Uint8Array > "u" ? ye : Uint8Array,
|
|
5614
5633
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? ye : Uint8ClampedArray,
|
|
5615
5634
|
"%Uint16Array%": typeof Uint16Array > "u" ? ye : Uint16Array,
|
|
5616
5635
|
"%Uint32Array%": typeof Uint32Array > "u" ? ye : Uint32Array,
|
|
5617
|
-
"%URIError%":
|
|
5636
|
+
"%URIError%": j0,
|
|
5618
5637
|
"%WeakMap%": typeof WeakMap > "u" ? ye : WeakMap,
|
|
5619
5638
|
"%WeakRef%": typeof WeakRef > "u" ? ye : WeakRef,
|
|
5620
5639
|
"%WeakSet%": typeof WeakSet > "u" ? ye : WeakSet,
|
|
5621
5640
|
"%Function.prototype.call%": fs,
|
|
5622
5641
|
"%Function.prototype.apply%": Jp,
|
|
5623
|
-
"%Object.defineProperty%":
|
|
5624
|
-
"%Object.getPrototypeOf%":
|
|
5625
|
-
"%Math.abs%":
|
|
5626
|
-
"%Math.floor%":
|
|
5627
|
-
"%Math.max%":
|
|
5628
|
-
"%Math.min%":
|
|
5629
|
-
"%Math.pow%":
|
|
5630
|
-
"%Math.round%":
|
|
5631
|
-
"%Math.sign%":
|
|
5632
|
-
"%Reflect.getPrototypeOf%":
|
|
5642
|
+
"%Object.defineProperty%": V0,
|
|
5643
|
+
"%Object.getPrototypeOf%": G0,
|
|
5644
|
+
"%Math.abs%": U0,
|
|
5645
|
+
"%Math.floor%": B0,
|
|
5646
|
+
"%Math.max%": q0,
|
|
5647
|
+
"%Math.min%": M0,
|
|
5648
|
+
"%Math.pow%": W0,
|
|
5649
|
+
"%Math.round%": z0,
|
|
5650
|
+
"%Math.sign%": H0,
|
|
5651
|
+
"%Reflect.getPrototypeOf%": Y0
|
|
5633
5652
|
};
|
|
5634
5653
|
if (Ze)
|
|
5635
5654
|
try {
|
|
5636
5655
|
null.error;
|
|
5637
5656
|
} catch (e) {
|
|
5638
|
-
var
|
|
5639
|
-
$r["%Error.prototype%"] =
|
|
5657
|
+
var X0 = Ze(Ze(e));
|
|
5658
|
+
$r["%Error.prototype%"] = X0;
|
|
5640
5659
|
}
|
|
5641
|
-
var
|
|
5660
|
+
var J0 = function e(t) {
|
|
5642
5661
|
var r;
|
|
5643
5662
|
if (t === "%AsyncFunction%")
|
|
5644
5663
|
r = aa("async function () {}");
|
|
@@ -5707,21 +5726,21 @@ var K0 = function e(t) {
|
|
|
5707
5726
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
5708
5727
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
5709
5728
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
5710
|
-
}, cs = ls, ti =
|
|
5729
|
+
}, cs = ls, ti = F0(), Q0 = cs.call(fs, Array.prototype.concat), eg = cs.call(Jp, Array.prototype.splice), af = cs.call(fs, String.prototype.replace), ri = cs.call(fs, String.prototype.slice), tg = cs.call(fs, RegExp.prototype.exec), rg = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ng = /\\(\\)?/g, sg = function(t) {
|
|
5711
5730
|
var r = ri(t, 0, 1), i = ri(t, -1);
|
|
5712
5731
|
if (r === "%" && i !== "%")
|
|
5713
5732
|
throw new pn("invalid intrinsic syntax, expected closing `%`");
|
|
5714
5733
|
if (i === "%" && r !== "%")
|
|
5715
5734
|
throw new pn("invalid intrinsic syntax, expected opening `%`");
|
|
5716
5735
|
var a = [];
|
|
5717
|
-
return af(t,
|
|
5718
|
-
a[a.length] = o ? af(l,
|
|
5736
|
+
return af(t, rg, function(s, n, o, l) {
|
|
5737
|
+
a[a.length] = o ? af(l, ng, "$1") : n || s;
|
|
5719
5738
|
}), a;
|
|
5720
|
-
},
|
|
5739
|
+
}, ig = function(t, r) {
|
|
5721
5740
|
var i = t, a;
|
|
5722
5741
|
if (ti(sf, i) && (a = sf[i], i = "%" + a[0] + "%"), ti($r, i)) {
|
|
5723
5742
|
var s = $r[i];
|
|
5724
|
-
if (s === Qr && (s =
|
|
5743
|
+
if (s === Qr && (s = J0(i)), typeof s > "u" && !r)
|
|
5725
5744
|
throw new ln("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
5726
5745
|
return {
|
|
5727
5746
|
alias: a,
|
|
@@ -5735,10 +5754,10 @@ var K0 = function e(t) {
|
|
|
5735
5754
|
throw new ln("intrinsic name must be a non-empty string");
|
|
5736
5755
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
5737
5756
|
throw new ln('"allowMissing" argument must be a boolean');
|
|
5738
|
-
if (
|
|
5757
|
+
if (tg(/^%?[^%]*%?$/, t) === null)
|
|
5739
5758
|
throw new pn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
5740
|
-
var i =
|
|
5741
|
-
c && (a = c[0],
|
|
5759
|
+
var i = sg(t), a = i.length > 0 ? i[0] : "", s = ig("%" + a + "%", r), n = s.name, o = s.value, l = !1, c = s.alias;
|
|
5760
|
+
c && (a = c[0], eg(i, Q0([0, 1], c)));
|
|
5742
5761
|
for (var p = 1, d = !0; p < i.length; p += 1) {
|
|
5743
5762
|
var m = i[p], g = ri(m, 0, 1), A = ri(m, -1);
|
|
5744
5763
|
if ((g === '"' || g === "'" || g === "`" || A === '"' || A === "'" || A === "`") && g !== A)
|
|
@@ -5760,17 +5779,17 @@ var K0 = function e(t) {
|
|
|
5760
5779
|
}
|
|
5761
5780
|
}
|
|
5762
5781
|
return o;
|
|
5763
|
-
}, eu = Qp, tu = Io,
|
|
5782
|
+
}, eu = Qp, tu = Io, ag = tu([eu("%String.prototype.indexOf%")]), ru = function(t, r) {
|
|
5764
5783
|
var i = (
|
|
5765
5784
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
5766
5785
|
eu(t, !!r)
|
|
5767
5786
|
);
|
|
5768
|
-
return typeof i == "function" &&
|
|
5787
|
+
return typeof i == "function" && ag(t, ".prototype.") > -1 ? tu(
|
|
5769
5788
|
/** @type {const} */
|
|
5770
5789
|
[i]
|
|
5771
5790
|
) : i;
|
|
5772
5791
|
}, la, of;
|
|
5773
|
-
function
|
|
5792
|
+
function og() {
|
|
5774
5793
|
if (of) return la;
|
|
5775
5794
|
of = 1;
|
|
5776
5795
|
var e = Function.prototype.toString, t = typeof Reflect == "object" && Reflect !== null && Reflect.apply, r, i;
|
|
@@ -5842,10 +5861,10 @@ function ig() {
|
|
|
5842
5861
|
}, la;
|
|
5843
5862
|
}
|
|
5844
5863
|
var fa, lf;
|
|
5845
|
-
function
|
|
5864
|
+
function lg() {
|
|
5846
5865
|
if (lf) return fa;
|
|
5847
5866
|
lf = 1;
|
|
5848
|
-
var e =
|
|
5867
|
+
var e = og(), t = Object.prototype.toString, r = Object.prototype.hasOwnProperty, i = function(l, c, p) {
|
|
5849
5868
|
for (var d = 0, m = l.length; d < m; d++)
|
|
5850
5869
|
r.call(l, d) && (p == null ? c(l[d], d, l) : c.call(p, l[d], d, l));
|
|
5851
5870
|
}, a = function(l, c, p) {
|
|
@@ -5866,7 +5885,7 @@ function ag() {
|
|
|
5866
5885
|
}, fa;
|
|
5867
5886
|
}
|
|
5868
5887
|
var ca, ff;
|
|
5869
|
-
function
|
|
5888
|
+
function fg() {
|
|
5870
5889
|
return ff || (ff = 1, ca = [
|
|
5871
5890
|
"Float16Array",
|
|
5872
5891
|
"Float32Array",
|
|
@@ -5883,10 +5902,10 @@ function og() {
|
|
|
5883
5902
|
]), ca;
|
|
5884
5903
|
}
|
|
5885
5904
|
var pa, cf;
|
|
5886
|
-
function
|
|
5905
|
+
function cg() {
|
|
5887
5906
|
if (cf) return pa;
|
|
5888
5907
|
cf = 1;
|
|
5889
|
-
var e =
|
|
5908
|
+
var e = fg(), t = typeof globalThis > "u" ? Dc : globalThis;
|
|
5890
5909
|
return pa = function() {
|
|
5891
5910
|
for (var i = [], a = 0; a < e.length; a++)
|
|
5892
5911
|
typeof t[e[a]] == "function" && (i[i.length] = e[a]);
|
|
@@ -5894,7 +5913,7 @@ function lg() {
|
|
|
5894
5913
|
}, pa;
|
|
5895
5914
|
}
|
|
5896
5915
|
var ua = { exports: {} }, da, pf;
|
|
5897
|
-
function
|
|
5916
|
+
function pg() {
|
|
5898
5917
|
if (pf) return da;
|
|
5899
5918
|
pf = 1;
|
|
5900
5919
|
var e = wi, t = Hp, r = as, i = os;
|
|
@@ -5926,7 +5945,7 @@ function fg() {
|
|
|
5926
5945
|
}, da;
|
|
5927
5946
|
}
|
|
5928
5947
|
var ha, uf;
|
|
5929
|
-
function
|
|
5948
|
+
function ug() {
|
|
5930
5949
|
if (uf) return ha;
|
|
5931
5950
|
uf = 1;
|
|
5932
5951
|
var e = wi, t = function() {
|
|
@@ -5943,10 +5962,10 @@ function cg() {
|
|
|
5943
5962
|
}, ha = t, ha;
|
|
5944
5963
|
}
|
|
5945
5964
|
var ma, df;
|
|
5946
|
-
function
|
|
5965
|
+
function dg() {
|
|
5947
5966
|
if (df) return ma;
|
|
5948
5967
|
df = 1;
|
|
5949
|
-
var e = Qp, t =
|
|
5968
|
+
var e = Qp, t = pg(), r = ug()(), i = os, a = as, s = e("%Math.floor%");
|
|
5950
5969
|
return ma = function(o, l) {
|
|
5951
5970
|
if (typeof o != "function")
|
|
5952
5971
|
throw new a("`fn` is not a function");
|
|
@@ -5973,7 +5992,7 @@ function pg() {
|
|
|
5973
5992
|
}, ma;
|
|
5974
5993
|
}
|
|
5975
5994
|
var ya, hf;
|
|
5976
|
-
function
|
|
5995
|
+
function hg() {
|
|
5977
5996
|
if (hf) return ya;
|
|
5978
5997
|
hf = 1;
|
|
5979
5998
|
var e = ls, t = Fo(), r = Yp;
|
|
@@ -5982,9 +6001,9 @@ function ug() {
|
|
|
5982
6001
|
}, ya;
|
|
5983
6002
|
}
|
|
5984
6003
|
var mf;
|
|
5985
|
-
function
|
|
6004
|
+
function mg() {
|
|
5986
6005
|
return mf || (mf = 1, function(e) {
|
|
5987
|
-
var t =
|
|
6006
|
+
var t = dg(), r = wi, i = Io, a = hg();
|
|
5988
6007
|
e.exports = function(n) {
|
|
5989
6008
|
var o = i(arguments), l = n.length - (arguments.length - 1);
|
|
5990
6009
|
return t(
|
|
@@ -5996,7 +6015,7 @@ function dg() {
|
|
|
5996
6015
|
}(ua)), ua.exports;
|
|
5997
6016
|
}
|
|
5998
6017
|
var ga, yf;
|
|
5999
|
-
function
|
|
6018
|
+
function yg() {
|
|
6000
6019
|
if (yf) return ga;
|
|
6001
6020
|
yf = 1;
|
|
6002
6021
|
var e = Vp();
|
|
@@ -6005,10 +6024,10 @@ function hg() {
|
|
|
6005
6024
|
}, ga;
|
|
6006
6025
|
}
|
|
6007
6026
|
var wa, gf;
|
|
6008
|
-
function
|
|
6027
|
+
function gg() {
|
|
6009
6028
|
if (gf) return wa;
|
|
6010
6029
|
gf = 1;
|
|
6011
|
-
var e =
|
|
6030
|
+
var e = lg(), t = cg(), r = mg(), i = ru, a = os, s = Kp(), n = i("Object.prototype.toString"), o = yg()(), l = typeof globalThis > "u" ? Dc : globalThis, c = t(), p = i("String.prototype.slice"), d = i("Array.prototype.indexOf", !0) || function(w, b) {
|
|
6012
6031
|
for (var O = 0; O < w.length; O += 1)
|
|
6013
6032
|
if (w[O] === b)
|
|
6014
6033
|
return O;
|
|
@@ -6086,33 +6105,33 @@ function mg() {
|
|
|
6086
6105
|
}, wa;
|
|
6087
6106
|
}
|
|
6088
6107
|
var ba, wf;
|
|
6089
|
-
function
|
|
6108
|
+
function wg() {
|
|
6090
6109
|
if (wf) return ba;
|
|
6091
6110
|
wf = 1;
|
|
6092
|
-
var e =
|
|
6111
|
+
var e = gg();
|
|
6093
6112
|
return ba = function(r) {
|
|
6094
6113
|
return !!e(r);
|
|
6095
6114
|
}, ba;
|
|
6096
6115
|
}
|
|
6097
|
-
var
|
|
6098
|
-
if (!
|
|
6099
|
-
throw new
|
|
6116
|
+
var bg = as, _g = ru, vg = _g("TypedArray.prototype.buffer", !0), xg = wg(), kg = vg || function(t) {
|
|
6117
|
+
if (!xg(t))
|
|
6118
|
+
throw new bg("Not a Typed Array");
|
|
6100
6119
|
return t.buffer;
|
|
6101
|
-
}, Lt = $o.Buffer,
|
|
6120
|
+
}, Lt = $o.Buffer, Pg = Xy, Eg = kg, Sg = ArrayBuffer.isView || function(t) {
|
|
6102
6121
|
try {
|
|
6103
|
-
return
|
|
6122
|
+
return Eg(t), !0;
|
|
6104
6123
|
} catch {
|
|
6105
6124
|
return !1;
|
|
6106
6125
|
}
|
|
6107
|
-
},
|
|
6126
|
+
}, Tg = typeof Uint8Array < "u", nu = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", Og = nu && (Lt.prototype instanceof Uint8Array || Lt.TYPED_ARRAY_SUPPORT), Ag = function(t, r) {
|
|
6108
6127
|
if (Lt.isBuffer(t))
|
|
6109
6128
|
return t.constructor && !("isBuffer" in t) ? Lt.from(t) : t;
|
|
6110
6129
|
if (typeof t == "string")
|
|
6111
6130
|
return Lt.from(t, r);
|
|
6112
|
-
if (nu &&
|
|
6131
|
+
if (nu && Sg(t)) {
|
|
6113
6132
|
if (t.byteLength === 0)
|
|
6114
6133
|
return Lt.alloc(0);
|
|
6115
|
-
if (
|
|
6134
|
+
if (Og) {
|
|
6116
6135
|
var i = Lt.from(t.buffer, t.byteOffset, t.byteLength);
|
|
6117
6136
|
if (i.byteLength === t.byteLength)
|
|
6118
6137
|
return i;
|
|
@@ -6121,9 +6140,9 @@ var gg = as, wg = ru, bg = wg("TypedArray.prototype.buffer", !0), _g = yg(), vg
|
|
|
6121
6140
|
if (s.length === t.byteLength)
|
|
6122
6141
|
return s;
|
|
6123
6142
|
}
|
|
6124
|
-
if (
|
|
6143
|
+
if (Tg && t instanceof Uint8Array)
|
|
6125
6144
|
return Lt.from(t);
|
|
6126
|
-
var n =
|
|
6145
|
+
var n = Pg(t);
|
|
6127
6146
|
if (n)
|
|
6128
6147
|
for (var o = 0; o < t.length; o += 1) {
|
|
6129
6148
|
var l = t[o];
|
|
@@ -6133,12 +6152,12 @@ var gg = as, wg = ru, bg = wg("TypedArray.prototype.buffer", !0), _g = yg(), vg
|
|
|
6133
6152
|
if (n || Lt.isBuffer(t) && t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t))
|
|
6134
6153
|
return Lt.from(t);
|
|
6135
6154
|
throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.');
|
|
6136
|
-
},
|
|
6155
|
+
}, $g = $o.Buffer, Rg = Ag;
|
|
6137
6156
|
function bi(e, t) {
|
|
6138
|
-
this._block =
|
|
6157
|
+
this._block = $g.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0;
|
|
6139
6158
|
}
|
|
6140
6159
|
bi.prototype.update = function(e, t) {
|
|
6141
|
-
e =
|
|
6160
|
+
e = Rg(e, t || "utf8");
|
|
6142
6161
|
for (var r = this._block, i = this._blockSize, a = e.length, s = this._len, n = 0; n < a; ) {
|
|
6143
6162
|
for (var o = s % i, l = Math.min(a - n, i - o), c = 0; c < l; c++)
|
|
6144
6163
|
r[o + c] = e[n + c];
|
|
@@ -6163,49 +6182,49 @@ bi.prototype.digest = function(e) {
|
|
|
6163
6182
|
bi.prototype._update = function() {
|
|
6164
6183
|
throw new Error("_update must be implemented by subclass");
|
|
6165
6184
|
};
|
|
6166
|
-
var
|
|
6185
|
+
var Fg = bi, Ig = qy, su = Fg, Lg = $o.Buffer, Cg = [
|
|
6167
6186
|
1518500249,
|
|
6168
6187
|
1859775393,
|
|
6169
6188
|
-1894007588,
|
|
6170
6189
|
-899497514
|
|
6171
|
-
],
|
|
6190
|
+
], Ng = new Array(80);
|
|
6172
6191
|
function ps() {
|
|
6173
|
-
this.init(), this._w =
|
|
6192
|
+
this.init(), this._w = Ng, su.call(this, 64, 56);
|
|
6174
6193
|
}
|
|
6175
|
-
|
|
6194
|
+
Ig(ps, su);
|
|
6176
6195
|
ps.prototype.init = function() {
|
|
6177
6196
|
return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
|
|
6178
6197
|
};
|
|
6179
|
-
function
|
|
6198
|
+
function Dg(e) {
|
|
6180
6199
|
return e << 1 | e >>> 31;
|
|
6181
6200
|
}
|
|
6182
|
-
function
|
|
6201
|
+
function jg(e) {
|
|
6183
6202
|
return e << 5 | e >>> 27;
|
|
6184
6203
|
}
|
|
6185
|
-
function
|
|
6204
|
+
function Ug(e) {
|
|
6186
6205
|
return e << 30 | e >>> 2;
|
|
6187
6206
|
}
|
|
6188
|
-
function
|
|
6207
|
+
function Bg(e, t, r, i) {
|
|
6189
6208
|
return e === 0 ? t & r | ~t & i : e === 2 ? t & r | t & i | r & i : t ^ r ^ i;
|
|
6190
6209
|
}
|
|
6191
6210
|
ps.prototype._update = function(e) {
|
|
6192
6211
|
for (var t = this._w, r = this._a | 0, i = this._b | 0, a = this._c | 0, s = this._d | 0, n = this._e | 0, o = 0; o < 16; ++o)
|
|
6193
6212
|
t[o] = e.readInt32BE(o * 4);
|
|
6194
6213
|
for (; o < 80; ++o)
|
|
6195
|
-
t[o] =
|
|
6214
|
+
t[o] = Dg(t[o - 3] ^ t[o - 8] ^ t[o - 14] ^ t[o - 16]);
|
|
6196
6215
|
for (var l = 0; l < 80; ++l) {
|
|
6197
|
-
var c = ~~(l / 20), p =
|
|
6198
|
-
n = s, s = a, a =
|
|
6216
|
+
var c = ~~(l / 20), p = jg(r) + Bg(c, i, a, s) + n + t[l] + Cg[c] | 0;
|
|
6217
|
+
n = s, s = a, a = Ug(i), i = r, r = p;
|
|
6199
6218
|
}
|
|
6200
6219
|
this._a = r + this._a | 0, this._b = i + this._b | 0, this._c = a + this._c | 0, this._d = s + this._d | 0, this._e = n + this._e | 0;
|
|
6201
6220
|
};
|
|
6202
6221
|
ps.prototype._hash = function() {
|
|
6203
|
-
var e =
|
|
6222
|
+
var e = Lg.allocUnsafe(20);
|
|
6204
6223
|
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;
|
|
6205
6224
|
};
|
|
6206
|
-
var
|
|
6207
|
-
const
|
|
6208
|
-
function
|
|
6225
|
+
var qg = ps;
|
|
6226
|
+
const Mg = /* @__PURE__ */ po(qg);
|
|
6227
|
+
function Wg(e) {
|
|
6209
6228
|
let t = "";
|
|
6210
6229
|
for (const r of new Uint8Array(e))
|
|
6211
6230
|
r < 16 && (t += "0"), t += r.toString(16);
|
|
@@ -6213,23 +6232,23 @@ function qg(e) {
|
|
|
6213
6232
|
}
|
|
6214
6233
|
let _a = null;
|
|
6215
6234
|
async function ni(e) {
|
|
6216
|
-
return _a === null && (_a = await
|
|
6235
|
+
return _a === null && (_a = await Hg()), _a ? iu(e) : zg(e);
|
|
6217
6236
|
}
|
|
6218
|
-
function
|
|
6219
|
-
return new
|
|
6237
|
+
function zg(e) {
|
|
6238
|
+
return new Mg().update(e).digest("hex");
|
|
6220
6239
|
}
|
|
6221
6240
|
async function iu(e) {
|
|
6222
6241
|
const t = await crypto.subtle.digest("SHA-1", e);
|
|
6223
|
-
return
|
|
6242
|
+
return Wg(t);
|
|
6224
6243
|
}
|
|
6225
|
-
async function
|
|
6244
|
+
async function Hg() {
|
|
6226
6245
|
try {
|
|
6227
6246
|
if (await iu(new Uint8Array([])) === "da39a3ee5e6b4b0d3255bfef95601890afd80709") return !0;
|
|
6228
6247
|
} catch {
|
|
6229
6248
|
}
|
|
6230
6249
|
return !1;
|
|
6231
6250
|
}
|
|
6232
|
-
function
|
|
6251
|
+
function Vg(e) {
|
|
6233
6252
|
const t = [];
|
|
6234
6253
|
let r = 0, i = 0;
|
|
6235
6254
|
do {
|
|
@@ -6239,7 +6258,7 @@ function zg(e) {
|
|
|
6239
6258
|
} while (i);
|
|
6240
6259
|
return t.reduce((a, s) => a + 1 << 7 | s, -1);
|
|
6241
6260
|
}
|
|
6242
|
-
function
|
|
6261
|
+
function Zg(e, t) {
|
|
6243
6262
|
let r = t, i = 4, a = null;
|
|
6244
6263
|
do
|
|
6245
6264
|
a = e.readUInt8(), r |= (a & 127) << i, i += 7;
|
|
@@ -6292,7 +6311,7 @@ class un {
|
|
|
6292
6311
|
7: "ref-delta"
|
|
6293
6312
|
}, s = {}, n = t.slice(-20).toString("hex"), o = [], l = {}, c = /* @__PURE__ */ new Map();
|
|
6294
6313
|
let p = null, d = null;
|
|
6295
|
-
await
|
|
6314
|
+
await jy([t], async ({ data: w, type: b, reference: O, offset: k, num: L }) => {
|
|
6296
6315
|
p === null && (p = L);
|
|
6297
6316
|
const $ = Math.floor(
|
|
6298
6317
|
(p - L) * 100 / p
|
|
@@ -6314,7 +6333,7 @@ class un {
|
|
|
6314
6333
|
});
|
|
6315
6334
|
const m = Object.keys(s).map(Number);
|
|
6316
6335
|
for (const [w, b] of m.entries()) {
|
|
6317
|
-
const O = w + 1 === m.length ? t.byteLength - 20 : m[w + 1], k = s[b], L =
|
|
6336
|
+
const O = w + 1 === m.length ? t.byteLength - 20 : m[w + 1], k = s[b], L = Wh.buf(t.slice(b, O)) >>> 0;
|
|
6318
6337
|
k.end = O, k.crc = L;
|
|
6319
6338
|
}
|
|
6320
6339
|
const g = new un({
|
|
@@ -6342,7 +6361,7 @@ class un {
|
|
|
6342
6361
|
g.readDepth = 0, g.externalReadDepth = 0;
|
|
6343
6362
|
const { type: k, object: L } = await g.readSlice({ start: w });
|
|
6344
6363
|
y[g.readDepth] += 1;
|
|
6345
|
-
const $ = await ni(
|
|
6364
|
+
const $ = await ni(zh.wrap({ type: k, object: L }));
|
|
6346
6365
|
O.oid = $, o.push($), c.set($, w), l[$] = O.crc;
|
|
6347
6366
|
} catch {
|
|
6348
6367
|
continue;
|
|
@@ -6413,10 +6432,10 @@ class un {
|
|
|
6413
6432
|
throw new Ee("Unrecognized type: 0b" + n.toString(2));
|
|
6414
6433
|
const l = s & 15;
|
|
6415
6434
|
let c = l;
|
|
6416
|
-
s & 128 && (c =
|
|
6435
|
+
s & 128 && (c = Zg(a, l));
|
|
6417
6436
|
let d = null, m = null;
|
|
6418
6437
|
if (o === "ofs_delta") {
|
|
6419
|
-
const A =
|
|
6438
|
+
const A = Vg(a), y = t - A;
|
|
6420
6439
|
({ object: d, type: o } = await this.readSlice({ start: y }));
|
|
6421
6440
|
}
|
|
6422
6441
|
if (o === "ref_delta") {
|
|
@@ -6424,11 +6443,11 @@ class un {
|
|
|
6424
6443
|
({ object: d, type: o } = await this.read({ oid: A }));
|
|
6425
6444
|
}
|
|
6426
6445
|
const g = i.slice(a.tell());
|
|
6427
|
-
if (m = Buffer.from(await
|
|
6446
|
+
if (m = Buffer.from(await By(g)), m.byteLength !== c)
|
|
6428
6447
|
throw new Ee(
|
|
6429
6448
|
`Packfile told us object would have length ${c} but it had length ${m.byteLength}`
|
|
6430
6449
|
);
|
|
6431
|
-
return d && (m = Buffer.from(
|
|
6450
|
+
return d && (m = Buffer.from(Hh(m, d))), this.readDepth > 3 && (this.offsetCache[t] = { type: o, object: m }), { type: o, format: "content", object: m };
|
|
6432
6451
|
}
|
|
6433
6452
|
}
|
|
6434
6453
|
class zn extends hn {
|
|
@@ -6454,7 +6473,7 @@ class _i extends hn {
|
|
|
6454
6473
|
}
|
|
6455
6474
|
}
|
|
6456
6475
|
_i.code = "ObjectTypeError";
|
|
6457
|
-
function
|
|
6476
|
+
function Gg(e) {
|
|
6458
6477
|
let t = e > 0 ? e >> 12 : 0;
|
|
6459
6478
|
t !== 4 && t !== 8 && t !== 10 && t !== 14 && (t = 8);
|
|
6460
6479
|
let r = e & 511;
|
|
@@ -6487,7 +6506,7 @@ function _f(e) {
|
|
|
6487
6506
|
mtimeNanoseconds: a % Wt,
|
|
6488
6507
|
dev: e.dev % Wt,
|
|
6489
6508
|
ino: e.ino % Wt,
|
|
6490
|
-
mode:
|
|
6509
|
+
mode: Gg(e.mode % Wt),
|
|
6491
6510
|
uid: e.uid % Wt,
|
|
6492
6511
|
gid: e.gid % Wt,
|
|
6493
6512
|
// size of -1 happens over a BrowserFS HTTP Backend that doesn't serve Content-Length headers
|
|
@@ -6495,7 +6514,7 @@ function _f(e) {
|
|
|
6495
6514
|
size: e.size > -1 ? e.size % Wt : 0
|
|
6496
6515
|
};
|
|
6497
6516
|
}
|
|
6498
|
-
function
|
|
6517
|
+
function Yg(e) {
|
|
6499
6518
|
return {
|
|
6500
6519
|
assumeValid: !!(e & 32768),
|
|
6501
6520
|
extended: !!(e & 16384),
|
|
@@ -6503,7 +6522,7 @@ function Zg(e) {
|
|
|
6503
6522
|
nameLength: e & 4095
|
|
6504
6523
|
};
|
|
6505
6524
|
}
|
|
6506
|
-
function
|
|
6525
|
+
function Kg(e) {
|
|
6507
6526
|
const t = e.flags;
|
|
6508
6527
|
return t.extended = !1, t.nameLength = Math.min(Buffer.from(e.path).length, 4095), (t.assumeValid ? 32768 : 0) + (t.extended ? 16384 : 0) + ((t.stage & 3) << 12) + (t.nameLength & 4095);
|
|
6509
6528
|
}
|
|
@@ -6550,7 +6569,7 @@ class Sr {
|
|
|
6550
6569
|
const p = {};
|
|
6551
6570
|
p.ctimeSeconds = i.readUInt32BE(), p.ctimeNanoseconds = i.readUInt32BE(), p.mtimeSeconds = i.readUInt32BE(), p.mtimeNanoseconds = i.readUInt32BE(), p.dev = i.readUInt32BE(), p.ino = i.readUInt32BE(), p.mode = i.readUInt32BE(), p.uid = i.readUInt32BE(), p.gid = i.readUInt32BE(), p.size = i.readUInt32BE(), p.oid = i.slice(20).toString("hex");
|
|
6552
6571
|
const d = i.readUInt16BE();
|
|
6553
|
-
p.flags =
|
|
6572
|
+
p.flags = Yg(d);
|
|
6554
6573
|
const m = t.indexOf(0, i.tell() + 1) - i.tell();
|
|
6555
6574
|
if (m < 1)
|
|
6556
6575
|
throw new Ee(`Got a path length of: ${m}`);
|
|
@@ -6645,7 +6664,7 @@ class Sr {
|
|
|
6645
6664
|
}
|
|
6646
6665
|
static async _entryToBuffer(t) {
|
|
6647
6666
|
const r = Buffer.from(t.path), i = Math.ceil((62 + r.length + 1) / 8) * 8, a = Buffer.alloc(i), s = new Zt(a), n = _f(t);
|
|
6648
|
-
return s.writeUInt32BE(n.ctimeSeconds), s.writeUInt32BE(n.ctimeNanoseconds), s.writeUInt32BE(n.mtimeSeconds), s.writeUInt32BE(n.mtimeNanoseconds), s.writeUInt32BE(n.dev), s.writeUInt32BE(n.ino), s.writeUInt32BE(n.mode), s.writeUInt32BE(n.uid), s.writeUInt32BE(n.gid), s.writeUInt32BE(n.size), s.write(t.oid, 20, "hex"), s.writeUInt16BE(
|
|
6667
|
+
return s.writeUInt32BE(n.ctimeSeconds), s.writeUInt32BE(n.ctimeNanoseconds), s.writeUInt32BE(n.mtimeSeconds), s.writeUInt32BE(n.mtimeNanoseconds), s.writeUInt32BE(n.dev), s.writeUInt32BE(n.ino), s.writeUInt32BE(n.mode), s.writeUInt32BE(n.uid), s.writeUInt32BE(n.gid), s.writeUInt32BE(n.size), s.write(t.oid, 20, "hex"), s.writeUInt16BE(Kg(t)), s.write(t.path, r.length, "utf8"), a;
|
|
6649
6668
|
}
|
|
6650
6669
|
async toObject() {
|
|
6651
6670
|
const t = Buffer.alloc(12), r = new Zt(t);
|
|
@@ -6716,7 +6735,7 @@ class va {
|
|
|
6716
6735
|
});
|
|
6717
6736
|
}
|
|
6718
6737
|
}
|
|
6719
|
-
class
|
|
6738
|
+
class Xg {
|
|
6720
6739
|
static demux(t) {
|
|
6721
6740
|
const r = Ke.streamReader(t), i = new va(), a = new va(), s = new va(), n = async function() {
|
|
6722
6741
|
const o = await r();
|
|
@@ -6819,7 +6838,7 @@ class Yg {
|
|
|
6819
6838
|
// }
|
|
6820
6839
|
}
|
|
6821
6840
|
async function ou(e) {
|
|
6822
|
-
const { packetlines: t, packfile: r, progress: i } =
|
|
6841
|
+
const { packetlines: t, packfile: r, progress: i } = Xg.demux(e), a = [], s = [], n = [];
|
|
6823
6842
|
let o = !1, l = !1;
|
|
6824
6843
|
return new Promise((c, p) => {
|
|
6825
6844
|
au(t, (d) => {
|
|
@@ -6848,12 +6867,12 @@ class Vn extends Error {
|
|
|
6848
6867
|
), this.name = "GitAuthenticationError", this.repoUrl = t, this.status = r;
|
|
6849
6868
|
}
|
|
6850
6869
|
}
|
|
6851
|
-
async function
|
|
6870
|
+
async function Jg(e, t, r, i) {
|
|
6852
6871
|
const a = (i == null ? void 0 : i.additionalHeaders) || {}, s = await fu(
|
|
6853
6872
|
e,
|
|
6854
6873
|
t,
|
|
6855
6874
|
a
|
|
6856
|
-
), n = await
|
|
6875
|
+
), n = await i1(s.idx, t, r), o = r.map((g) => n[g].oid), l = o.length > 0 ? await a1(e, o, a) : null, c = {};
|
|
6857
6876
|
if (await Promise.all(
|
|
6858
6877
|
r.map(async (g) => {
|
|
6859
6878
|
l && (c[g] = await cu(
|
|
@@ -6891,17 +6910,17 @@ async function Kg(e, t, r, i) {
|
|
|
6891
6910
|
fileOids: m
|
|
6892
6911
|
};
|
|
6893
6912
|
}
|
|
6894
|
-
const
|
|
6895
|
-
async function
|
|
6913
|
+
const Qg = /^[0-9a-f]{40}$/i;
|
|
6914
|
+
async function e1(e, t, r = {}) {
|
|
6896
6915
|
const i = await fu(
|
|
6897
6916
|
e,
|
|
6898
6917
|
t,
|
|
6899
6918
|
r
|
|
6900
|
-
), a = await
|
|
6919
|
+
), a = await s1(i.idx, t);
|
|
6901
6920
|
return a != null && a.object ? lu(a) : [];
|
|
6902
6921
|
}
|
|
6903
|
-
async function
|
|
6904
|
-
const i = await
|
|
6922
|
+
async function t1(e, t, r = {}) {
|
|
6923
|
+
const i = await n1(e, t);
|
|
6905
6924
|
if (i.resolvedOid)
|
|
6906
6925
|
return i.resolvedOid;
|
|
6907
6926
|
const a = await to(e, i.refname, r);
|
|
@@ -6924,7 +6943,7 @@ function lu(e) {
|
|
|
6924
6943
|
};
|
|
6925
6944
|
}).filter((t) => !!(t != null && t.name));
|
|
6926
6945
|
}
|
|
6927
|
-
async function
|
|
6946
|
+
async function r1(e, t, r = {}) {
|
|
6928
6947
|
const i = Buffer.from(
|
|
6929
6948
|
await Hn([
|
|
6930
6949
|
Ke.encode(`command=ls-refs
|
|
@@ -6956,13 +6975,13 @@ async function e1(e, t, r = {}) {
|
|
|
6956
6975
|
`Failed to fetch git refs from ${e}: ${a.status} ${a.statusText}`
|
|
6957
6976
|
);
|
|
6958
6977
|
const s = {};
|
|
6959
|
-
for await (const n of
|
|
6978
|
+
for await (const n of o1(a)) {
|
|
6960
6979
|
const o = n.indexOf(" "), l = n.slice(0, o), p = n.slice(o + 1, n.length - 1).split(" ")[0];
|
|
6961
6980
|
s[p] = l;
|
|
6962
6981
|
}
|
|
6963
6982
|
return s;
|
|
6964
6983
|
}
|
|
6965
|
-
async function
|
|
6984
|
+
async function n1(e, t) {
|
|
6966
6985
|
switch (t.type ?? "infer") {
|
|
6967
6986
|
case "commit":
|
|
6968
6987
|
return {
|
|
@@ -6997,7 +7016,7 @@ async function t1(e, t) {
|
|
|
6997
7016
|
kind: "refname",
|
|
6998
7017
|
refname: i
|
|
6999
7018
|
};
|
|
7000
|
-
if (
|
|
7019
|
+
if (Qg.test(i))
|
|
7001
7020
|
return {
|
|
7002
7021
|
kind: "commit",
|
|
7003
7022
|
refname: i,
|
|
@@ -7024,7 +7043,7 @@ async function t1(e, t) {
|
|
|
7024
7043
|
}
|
|
7025
7044
|
}
|
|
7026
7045
|
async function to(e, t, r) {
|
|
7027
|
-
const i = await
|
|
7046
|
+
const i = await r1(e, t, r), a = [t, `${t}^{}`];
|
|
7028
7047
|
for (const s of a) {
|
|
7029
7048
|
const n = s.trim();
|
|
7030
7049
|
if (n in i)
|
|
@@ -7077,7 +7096,7 @@ async function fu(e, t, r) {
|
|
|
7077
7096
|
promisor: !0
|
|
7078
7097
|
};
|
|
7079
7098
|
}
|
|
7080
|
-
async function
|
|
7099
|
+
async function s1(e, t) {
|
|
7081
7100
|
const r = await e.read({
|
|
7082
7101
|
oid: t
|
|
7083
7102
|
});
|
|
@@ -7110,7 +7129,7 @@ async function vf(e) {
|
|
|
7110
7129
|
}
|
|
7111
7130
|
return t;
|
|
7112
7131
|
}
|
|
7113
|
-
async function
|
|
7132
|
+
async function i1(e, t, r) {
|
|
7114
7133
|
const i = await e.read({
|
|
7115
7134
|
oid: t
|
|
7116
7135
|
});
|
|
@@ -7142,7 +7161,7 @@ async function n1(e, t, r) {
|
|
|
7142
7161
|
}
|
|
7143
7162
|
return s;
|
|
7144
7163
|
}
|
|
7145
|
-
async function
|
|
7164
|
+
async function a1(e, t, r) {
|
|
7146
7165
|
const i = Buffer.from(
|
|
7147
7166
|
await Hn([
|
|
7148
7167
|
...t.map(
|
|
@@ -7219,7 +7238,7 @@ function Rr(e) {
|
|
|
7219
7238
|
);
|
|
7220
7239
|
}
|
|
7221
7240
|
}
|
|
7222
|
-
async function*
|
|
7241
|
+
async function* o1(e) {
|
|
7223
7242
|
const t = await e.text();
|
|
7224
7243
|
let r = 0;
|
|
7225
7244
|
for (; r <= t.length; ) {
|
|
@@ -7248,8 +7267,8 @@ function pu(e) {
|
|
|
7248
7267
|
function Zn(e) {
|
|
7249
7268
|
return e instanceof Uint8Array, Uint8Array.from(e);
|
|
7250
7269
|
}
|
|
7251
|
-
const
|
|
7252
|
-
async function
|
|
7270
|
+
const l1 = To.deflate, f1 = /^[0-9a-f]{40}$/i;
|
|
7271
|
+
async function c1(e) {
|
|
7253
7272
|
const t = {}, r = new TextEncoder();
|
|
7254
7273
|
return await Promise.all(
|
|
7255
7274
|
e.map(async ({ oid: i, type: a, body: s }) => {
|
|
@@ -7257,12 +7276,12 @@ async function l1(e) {
|
|
|
7257
7276
|
return;
|
|
7258
7277
|
const n = r.encode(`${a} ${s.length}\0`), o = new Uint8Array(n.length + s.length);
|
|
7259
7278
|
o.set(n, 0), o.set(s, n.length);
|
|
7260
|
-
const l = await
|
|
7279
|
+
const l = await l1(o), c = i.slice(0, 2), p = i.slice(2);
|
|
7261
7280
|
t[`.git/objects/${c}/${p}`] = l;
|
|
7262
7281
|
})
|
|
7263
7282
|
), t;
|
|
7264
7283
|
}
|
|
7265
|
-
function
|
|
7284
|
+
function p1(e, t, r) {
|
|
7266
7285
|
const i = (e == null ? void 0 : e.trim()) ?? "";
|
|
7267
7286
|
let a = null;
|
|
7268
7287
|
switch (t) {
|
|
@@ -7279,7 +7298,7 @@ function f1(e, t, r) {
|
|
|
7279
7298
|
a = null;
|
|
7280
7299
|
break;
|
|
7281
7300
|
default:
|
|
7282
|
-
i.startsWith("refs/") ? a = i :
|
|
7301
|
+
i.startsWith("refs/") ? a = i : f1.test(i) ? a = null : i && i !== "HEAD" && (a = `refs/heads/${i}`);
|
|
7283
7302
|
break;
|
|
7284
7303
|
}
|
|
7285
7304
|
const s = a ? `ref: ${a}
|
|
@@ -7292,7 +7311,7 @@ function f1(e, t, r) {
|
|
|
7292
7311
|
tagName: c
|
|
7293
7312
|
};
|
|
7294
7313
|
}
|
|
7295
|
-
function
|
|
7314
|
+
function u1(e, {
|
|
7296
7315
|
branchName: t,
|
|
7297
7316
|
partialCloneFilter: r
|
|
7298
7317
|
}) {
|
|
@@ -7317,7 +7336,7 @@ function c1(e, {
|
|
|
7317
7336
|
`) + `
|
|
7318
7337
|
`;
|
|
7319
7338
|
}
|
|
7320
|
-
async function
|
|
7339
|
+
async function d1({
|
|
7321
7340
|
repoUrl: e,
|
|
7322
7341
|
commitHash: t,
|
|
7323
7342
|
ref: r,
|
|
@@ -7326,8 +7345,8 @@ async function p1({
|
|
|
7326
7345
|
fileOids: s,
|
|
7327
7346
|
pathPrefix: n
|
|
7328
7347
|
}) {
|
|
7329
|
-
const o = {}, l =
|
|
7330
|
-
o[".git/HEAD"] = l.headContent, o[".git/config"] =
|
|
7348
|
+
const o = {}, l = p1(r, i, t);
|
|
7349
|
+
o[".git/HEAD"] = l.headContent, o[".git/config"] = u1(e, {
|
|
7331
7350
|
branchName: l.branchName
|
|
7332
7351
|
}), o[".git/description"] = `WordPress Playground clone
|
|
7333
7352
|
`, o[".git/shallow"] = `${t}
|
|
@@ -7336,7 +7355,7 @@ async function p1({
|
|
|
7336
7355
|
`, o[`.git/refs/remotes/origin/${l.branchName}`] = `${t}
|
|
7337
7356
|
`, o[".git/refs/remotes/origin/HEAD"] = `ref: refs/remotes/origin/${l.branchName}
|
|
7338
7357
|
`), l.tagName && (o[`.git/refs/tags/${l.tagName}`] = `${t}
|
|
7339
|
-
`), Object.assign(o, await
|
|
7358
|
+
`), Object.assign(o, await c1(a));
|
|
7340
7359
|
const c = new Sr();
|
|
7341
7360
|
for (const [d, m] of Object.entries(s)) {
|
|
7342
7361
|
const g = d.substring(n.length).replace(/^\/+/, "");
|
|
@@ -7361,7 +7380,7 @@ async function p1({
|
|
|
7361
7380
|
const p = await c.toObject();
|
|
7362
7381
|
return o[".git/index"] = Uint8Array.from(p), o;
|
|
7363
7382
|
}
|
|
7364
|
-
function
|
|
7383
|
+
function h1(e, t) {
|
|
7365
7384
|
t = qr(t);
|
|
7366
7385
|
const r = ["", ".", "/"].includes(t);
|
|
7367
7386
|
let i = e;
|
|
@@ -7391,7 +7410,7 @@ function u1(e, t) {
|
|
|
7391
7410
|
}
|
|
7392
7411
|
return a;
|
|
7393
7412
|
}
|
|
7394
|
-
const Gn = 15, ro = 30, no = 19,
|
|
7413
|
+
const Gn = 15, ro = 30, no = 19, m1 = 29, si = 256, Lo = si + 1 + m1, xf = 2 * Lo + 1, xn = 256, y1 = 7, kf = 16, Pf = 17, Ef = 18, xa = 8 * 2, ii = -1, g1 = 1, xs = 2, w1 = 0, en = 0, Sf = 1, b1 = 3, ct = 4, Ct = 0, uu = 1, ks = 2, Dt = -2, _1 = -3, Yr = -5;
|
|
7395
7414
|
function vi(e) {
|
|
7396
7415
|
return xi(e.map(([t, r]) => new Array(t).fill(r, 0, t)));
|
|
7397
7416
|
}
|
|
@@ -7545,7 +7564,7 @@ function Je(e, t, r, i, a) {
|
|
|
7545
7564
|
const s = this;
|
|
7546
7565
|
s.static_tree = e, s.extra_bits = t, s.extra_base = r, s.elems = i, s.max_length = a;
|
|
7547
7566
|
}
|
|
7548
|
-
const
|
|
7567
|
+
const v1 = [
|
|
7549
7568
|
12,
|
|
7550
7569
|
140,
|
|
7551
7570
|
76,
|
|
@@ -7834,14 +7853,14 @@ const b1 = [
|
|
|
7834
7853
|
163,
|
|
7835
7854
|
99,
|
|
7836
7855
|
227
|
|
7837
|
-
],
|
|
7838
|
-
Je.static_ltree = xi(
|
|
7839
|
-
const
|
|
7840
|
-
Je.static_dtree = xi(
|
|
7856
|
+
], x1 = vi([[144, 8], [112, 9], [24, 7], [8, 8]]);
|
|
7857
|
+
Je.static_ltree = xi(v1.map((e, t) => [e, x1[t]]));
|
|
7858
|
+
const k1 = [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], P1 = vi([[30, 5]]);
|
|
7859
|
+
Je.static_dtree = xi(k1.map((e, t) => [e, P1[t]]));
|
|
7841
7860
|
Je.static_l_desc = new Je(Je.static_ltree, Fe.extra_lbits, si + 1, Lo, Gn);
|
|
7842
7861
|
Je.static_d_desc = new Je(Je.static_dtree, Fe.extra_dbits, 0, ro, Gn);
|
|
7843
|
-
Je.static_bl_desc = new Je(null, Fe.extra_blbits, 0, no,
|
|
7844
|
-
const
|
|
7862
|
+
Je.static_bl_desc = new Je(null, Fe.extra_blbits, 0, no, y1);
|
|
7863
|
+
const E1 = 9, S1 = 8;
|
|
7845
7864
|
function zt(e, t, r, i, a) {
|
|
7846
7865
|
const s = this;
|
|
7847
7866
|
s.good_length = e, s.max_lazy = t, s.nice_length = r, s.max_chain = i, s.func = a;
|
|
@@ -7878,12 +7897,12 @@ const du = 0, qs = 1, Pr = 2, It = [
|
|
|
7878
7897
|
"",
|
|
7879
7898
|
// Z_VERSION_ERROR (-6)
|
|
7880
7899
|
""
|
|
7881
|
-
], St = 0, Es = 1, kn = 2, Ss = 3,
|
|
7900
|
+
], St = 0, Es = 1, kn = 2, Ss = 3, T1 = 32, ka = 42, Ts = 113, Pn = 666, Pa = 8, O1 = 0, Ea = 1, A1 = 2, De = 3, Ms = 258, wt = Ms + De + 1;
|
|
7882
7901
|
function Of(e, t, r, i) {
|
|
7883
7902
|
const a = e[t * 2], s = e[r * 2];
|
|
7884
7903
|
return a < s || a == s && i[t] <= i[r];
|
|
7885
7904
|
}
|
|
7886
|
-
function
|
|
7905
|
+
function $1() {
|
|
7887
7906
|
const e = this;
|
|
7888
7907
|
let t, r, i, a, s, n, o, l, c, p, d, m, g, A, y, w, b, O, k, L, $, C, E, T, F, P, S, N, I, U, q, W, X;
|
|
7889
7908
|
const V = new Fe(), se = new Fe(), Z = new Fe();
|
|
@@ -7995,11 +8014,11 @@ function O1() {
|
|
|
7995
8014
|
ce(), fe = 8, Ce(Y), Ce(~Y), e.pending_buf.set(l.subarray(M, M + Y), e.pending), e.pending += Y;
|
|
7996
8015
|
}
|
|
7997
8016
|
function he(M, Y, z) {
|
|
7998
|
-
Re((
|
|
8017
|
+
Re((O1 << 1) + (z ? 1 : 0), 3), we(M, Y);
|
|
7999
8018
|
}
|
|
8000
8019
|
function je(M, Y, z) {
|
|
8001
8020
|
let J, ne, le = 0;
|
|
8002
|
-
S > 0 ? (V.build_tree(e), se.build_tree(e), le = Et(), 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 && M != -1 ? he(M, Y, z) : ne == J ? (Re((Ea << 1) + (z ? 1 : 0), 3), K(Je.static_ltree, Je.static_dtree)) : (Re((
|
|
8021
|
+
S > 0 ? (V.build_tree(e), se.build_tree(e), le = Et(), 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 && M != -1 ? he(M, Y, z) : ne == J ? (Re((Ea << 1) + (z ? 1 : 0), 3), K(Je.static_ltree, Je.static_dtree)) : (Re((A1 << 1) + (z ? 1 : 0), 3), h(V.max_code + 1, se.max_code + 1, le + 1), K(q, W)), Ae(), z && ce();
|
|
8003
8022
|
}
|
|
8004
8023
|
function ue(M) {
|
|
8005
8024
|
je(b >= 0 ? b : -1, $ - b, M), b = $, t.flush_pending();
|
|
@@ -8097,7 +8116,7 @@ function O1() {
|
|
|
8097
8116
|
if (E === 0)
|
|
8098
8117
|
break;
|
|
8099
8118
|
}
|
|
8100
|
-
if (E >= De && (m = (m << w ^ l[$ + (De - 1)] & 255) & y, Y = d[m] & 65535, p[$ & o] = d[m], d[m] = $), T = O, k = C, O = De - 1, Y !== 0 && T < P && ($ - Y & 65535) <= s - wt && (N != xs && (O = Ft(Y)), O <= 5 && (N ==
|
|
8119
|
+
if (E >= De && (m = (m << w ^ l[$ + (De - 1)] & 255) & y, Y = d[m] & 65535, p[$ & o] = d[m], d[m] = $), T = O, k = C, O = De - 1, Y !== 0 && T < P && ($ - Y & 65535) <= s - wt && (N != xs && (O = Ft(Y)), O <= 5 && (N == g1 || O == De && $ - C > 4096) && (O = De - 1)), T >= De && O <= T) {
|
|
8101
8120
|
J = $ + E - De, z = H($ - 1 - k, T - De), E -= T - 1, T -= 2;
|
|
8102
8121
|
do
|
|
8103
8122
|
++$ <= J && (m = (m << w ^ l[$ + (De - 1)] & 255) & y, Y = d[m] & 65535, p[$ & o] = d[m], d[m] = $);
|
|
@@ -8116,9 +8135,9 @@ function O1() {
|
|
|
8116
8135
|
return M.total_in = M.total_out = 0, M.msg = null, e.pending = 0, e.pending_out = 0, r = Ts, a = en, Xe(), Te(), Ct;
|
|
8117
8136
|
}
|
|
8118
8137
|
e.deflateInit = function(M, Y, z, J, ne, le) {
|
|
8119
|
-
return J || (J = Pa), ne || (ne =
|
|
8138
|
+
return J || (J = Pa), ne || (ne = S1), le || (le = w1), M.msg = null, Y == ii && (Y = 6), ne < 1 || ne > E1 || J != Pa || z < 9 || z > 15 || Y < 0 || Y > 9 || le < 0 || le > xs ? Dt : (M.dstate = e, n = z, s = 1 << n, o = s - 1, A = ne + 7, g = 1 << A, y = g - 1, w = Math.floor((A + De - 1) / De), l = new Uint8Array(s * 2), p = [], d = [], 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), S = Y, N = le, zr(M));
|
|
8120
8139
|
}, e.deflateEnd = function() {
|
|
8121
|
-
return r != ka && r != Ts && r != Pn ? Dt : (e.lc_buf = null, e.dist_buf = null, e.pending_buf = null, d = null, p = null, l = null, e.dstate = null, r == Ts ?
|
|
8140
|
+
return r != ka && r != Ts && r != Pn ? Dt : (e.lc_buf = null, e.dist_buf = null, e.pending_buf = null, d = null, p = null, l = null, e.dstate = null, r == Ts ? _1 : Ct);
|
|
8122
8141
|
}, e.deflateParams = function(M, Y, z) {
|
|
8123
8142
|
let J = Ct;
|
|
8124
8143
|
return Y == ii && (Y = 6), Y < 0 || Y > 9 || z < 0 || z > xs ? Dt : (It[S].func != It[Y].func && M.total_in !== 0 && (J = M.deflate(Sf)), S != Y && (S = Y, P = It[S].max_lazy, I = It[S].good_length, U = It[S].nice_length, F = It[S].max_chain), N = z, J);
|
|
@@ -8139,7 +8158,7 @@ function O1() {
|
|
|
8139
8158
|
return M.msg = Ps[ks - Dt], Dt;
|
|
8140
8159
|
if (M.avail_out === 0)
|
|
8141
8160
|
return M.msg = Ps[ks - Yr], Yr;
|
|
8142
|
-
if (t = M, le = a, a = Y, r == ka && (J = Pa + (n - 8 << 4) << 8, ne = (S - 1 & 255) >> 1, ne > 3 && (ne = 3), J |= ne << 6, $ !== 0 && (J |=
|
|
8161
|
+
if (t = M, le = a, a = Y, r == ka && (J = Pa + (n - 8 << 4) << 8, ne = (S - 1 & 255) >> 1, ne > 3 && (ne = 3), J |= ne << 6, $ !== 0 && (J |= T1), J += 31 - J % 31, r = Ts, ft(J)), e.pending !== 0) {
|
|
8143
8162
|
if (t.flush_pending(), t.avail_out === 0)
|
|
8144
8163
|
return a = -1, Ct;
|
|
8145
8164
|
} else if (t.avail_in === 0 && Y <= le && Y != ct)
|
|
@@ -8163,7 +8182,7 @@ function O1() {
|
|
|
8163
8182
|
if (de == Es) {
|
|
8164
8183
|
if (Y == Sf)
|
|
8165
8184
|
j();
|
|
8166
|
-
else if (he(0, 0, !1), Y ==
|
|
8185
|
+
else if (he(0, 0, !1), Y == b1)
|
|
8167
8186
|
for (z = 0; z < g; z++)
|
|
8168
8187
|
d[z] = 0;
|
|
8169
8188
|
if (t.flush_pending(), t.avail_out === 0)
|
|
@@ -8180,7 +8199,7 @@ function hu() {
|
|
|
8180
8199
|
hu.prototype = {
|
|
8181
8200
|
deflateInit(e, t) {
|
|
8182
8201
|
const r = this;
|
|
8183
|
-
return r.dstate = new
|
|
8202
|
+
return r.dstate = new $1(), t || (t = Gn), r.dstate.deflateInit(r, e, t);
|
|
8184
8203
|
},
|
|
8185
8204
|
deflate(e) {
|
|
8186
8205
|
const t = this;
|
|
@@ -8221,8 +8240,8 @@ hu.prototype = {
|
|
|
8221
8240
|
t > e.avail_out && (t = e.avail_out), t !== 0 && (e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out, e.dstate.pending_out + t), e.next_out_index), e.next_out_index += t, e.dstate.pending_out += t, e.total_out += t, e.avail_out -= t, e.dstate.pending -= t, e.dstate.pending === 0 && (e.dstate.pending_out = 0));
|
|
8222
8241
|
}
|
|
8223
8242
|
};
|
|
8224
|
-
function
|
|
8225
|
-
const t = this, r = new hu(), i =
|
|
8243
|
+
function R1(e) {
|
|
8244
|
+
const t = this, r = new hu(), i = F1(e && e.chunkSize ? e.chunkSize : 64 * 1024), a = en, s = new Uint8Array(i);
|
|
8226
8245
|
let n = e ? e.level : ii;
|
|
8227
8246
|
typeof n > "u" && (n = ii), r.deflateInit(n), r.next_out = s, t.append = function(o, l) {
|
|
8228
8247
|
let c, p, d = 0, m = 0, g = 0;
|
|
@@ -8251,10 +8270,10 @@ function A1(e) {
|
|
|
8251
8270
|
}), l;
|
|
8252
8271
|
};
|
|
8253
8272
|
}
|
|
8254
|
-
function
|
|
8273
|
+
function F1(e) {
|
|
8255
8274
|
return e + 5 * (Math.floor(e / 16383) + 1);
|
|
8256
8275
|
}
|
|
8257
|
-
const
|
|
8276
|
+
const I1 = 15, ve = 0, sr = 1, L1 = 2, ut = -2, Ie = -3, Af = -4, ir = -5, _t = [
|
|
8258
8277
|
0,
|
|
8259
8278
|
1,
|
|
8260
8279
|
3,
|
|
@@ -8272,7 +8291,7 @@ const R1 = 15, ve = 0, sr = 1, F1 = 2, ut = -2, Ie = -3, Af = -4, ir = -5, _t =
|
|
|
8272
8291
|
16383,
|
|
8273
8292
|
32767,
|
|
8274
8293
|
65535
|
|
8275
|
-
], mu = 1440,
|
|
8294
|
+
], mu = 1440, C1 = 0, N1 = 4, D1 = 9, j1 = 5, U1 = [
|
|
8276
8295
|
96,
|
|
8277
8296
|
7,
|
|
8278
8297
|
256,
|
|
@@ -9809,7 +9828,7 @@ const R1 = 15, ve = 0, sr = 1, F1 = 2, ut = -2, Ie = -3, Af = -4, ir = -5, _t =
|
|
|
9809
9828
|
0,
|
|
9810
9829
|
9,
|
|
9811
9830
|
255
|
|
9812
|
-
],
|
|
9831
|
+
], B1 = [
|
|
9813
9832
|
80,
|
|
9814
9833
|
5,
|
|
9815
9834
|
1,
|
|
@@ -9906,7 +9925,7 @@ const R1 = 15, ve = 0, sr = 1, F1 = 2, ut = -2, Ie = -3, Af = -4, ir = -5, _t =
|
|
|
9906
9925
|
192,
|
|
9907
9926
|
5,
|
|
9908
9927
|
24577
|
|
9909
|
-
],
|
|
9928
|
+
], q1 = [
|
|
9910
9929
|
// Copy lengths for literal codes 257..285
|
|
9911
9930
|
3,
|
|
9912
9931
|
4,
|
|
@@ -9939,7 +9958,7 @@ const R1 = 15, ve = 0, sr = 1, F1 = 2, ut = -2, Ie = -3, Af = -4, ir = -5, _t =
|
|
|
9939
9958
|
258,
|
|
9940
9959
|
0,
|
|
9941
9960
|
0
|
|
9942
|
-
],
|
|
9961
|
+
], M1 = [
|
|
9943
9962
|
// Extra bits for literal codes 257..285
|
|
9944
9963
|
0,
|
|
9945
9964
|
0,
|
|
@@ -9973,7 +9992,7 @@ const R1 = 15, ve = 0, sr = 1, F1 = 2, ut = -2, Ie = -3, Af = -4, ir = -5, _t =
|
|
|
9973
9992
|
112,
|
|
9974
9993
|
112
|
|
9975
9994
|
// 112==invalid
|
|
9976
|
-
],
|
|
9995
|
+
], W1 = [
|
|
9977
9996
|
// Copy offsets for distance codes 0..29
|
|
9978
9997
|
1,
|
|
9979
9998
|
2,
|
|
@@ -10005,7 +10024,7 @@ const R1 = 15, ve = 0, sr = 1, F1 = 2, ut = -2, Ie = -3, Af = -4, ir = -5, _t =
|
|
|
10005
10024
|
12289,
|
|
10006
10025
|
16385,
|
|
10007
10026
|
24577
|
|
10008
|
-
],
|
|
10027
|
+
], z1 = [
|
|
10009
10028
|
// Extra bits for distance codes
|
|
10010
10029
|
0,
|
|
10011
10030
|
0,
|
|
@@ -10105,14 +10124,14 @@ function so() {
|
|
|
10105
10124
|
return l(19), t[0] = 0, A = o(c, 0, 19, 19, null, null, d, p, m, t, r), A == Ie ? g.msg = "oversubscribed dynamic bit lengths tree" : (A == ir || p[0] === 0) && (g.msg = "incomplete dynamic bit lengths tree", A = Ie), A;
|
|
10106
10125
|
}, e.inflate_trees_dynamic = function(c, p, d, m, g, A, y, w, b) {
|
|
10107
10126
|
let O;
|
|
10108
|
-
return l(288), t[0] = 0, O = o(d, 0, c, 257,
|
|
10127
|
+
return l(288), t[0] = 0, O = o(d, 0, c, 257, q1, M1, A, m, w, t, r), O != ve || m[0] === 0 ? (O == Ie ? b.msg = "oversubscribed literal/length tree" : O != Af && (b.msg = "incomplete literal/length tree", O = Ie), O) : (l(288), O = o(d, c, p, 0, W1, z1, y, g, w, t, r), O != ve || g[0] === 0 && c > 257 ? (O == Ie ? b.msg = "oversubscribed distance tree" : O == ir ? (b.msg = "incomplete distance tree", O = Ie) : O != Af && (b.msg = "empty distance tree with lengths", O = Ie), O) : ve);
|
|
10109
10128
|
};
|
|
10110
10129
|
}
|
|
10111
10130
|
so.inflate_trees_fixed = function(e, t, r, i) {
|
|
10112
|
-
return e[0] =
|
|
10131
|
+
return e[0] = D1, t[0] = j1, r[0] = U1, i[0] = B1, ve;
|
|
10113
10132
|
};
|
|
10114
10133
|
const Os = 0, $f = 1, Rf = 2, Ff = 3, If = 4, Lf = 5, Cf = 6, Sa = 7, Nf = 8, As = 9;
|
|
10115
|
-
function
|
|
10134
|
+
function H1() {
|
|
10116
10135
|
const e = this;
|
|
10117
10136
|
let t, r = 0, i, a = 0, s = 0, n = 0, o = 0, l = 0, c = 0, p = 0, d, m = 0, g, A = 0;
|
|
10118
10137
|
function y(w, b, O, k, L, $, C, E) {
|
|
@@ -10304,10 +10323,10 @@ const Df = [
|
|
|
10304
10323
|
1,
|
|
10305
10324
|
15
|
|
10306
10325
|
], Kr = 0, Ta = 1, jf = 2, Uf = 3, Bf = 4, qf = 5, $s = 6, Rs = 7, Mf = 8, kr = 9;
|
|
10307
|
-
function
|
|
10326
|
+
function V1(e, t) {
|
|
10308
10327
|
const r = this;
|
|
10309
10328
|
let i = Kr, a = 0, s = 0, n = 0, o;
|
|
10310
|
-
const l = [0], c = [0], p = new
|
|
10329
|
+
const l = [0], c = [0], p = new H1();
|
|
10311
10330
|
let d = 0, m = new Int32Array(mu * 3);
|
|
10312
10331
|
const g = 0, A = new so();
|
|
10313
10332
|
r.bitk = 0, r.bitb = 0, r.win = new Uint8Array(t), r.end = t, r.read = 0, r.write = 0, r.reset = function(y, w) {
|
|
@@ -10461,8 +10480,8 @@ function z1(e, t) {
|
|
|
10461
10480
|
return i == Ta ? 1 : 0;
|
|
10462
10481
|
};
|
|
10463
10482
|
}
|
|
10464
|
-
const
|
|
10465
|
-
function
|
|
10483
|
+
const Z1 = 32, G1 = 8, Y1 = 0, Wf = 1, zf = 2, Hf = 3, Vf = 4, Zf = 5, Oa = 6, En = 7, Gf = 12, cr = 13, K1 = [0, 0, 255, 255];
|
|
10484
|
+
function X1() {
|
|
10466
10485
|
const e = this;
|
|
10467
10486
|
e.mode = 0, e.method = 0, e.was = [0], e.need = 0, e.marker = 0, e.wbits = 0;
|
|
10468
10487
|
function t(r) {
|
|
@@ -10471,18 +10490,18 @@ function Y1() {
|
|
|
10471
10490
|
e.inflateEnd = function(r) {
|
|
10472
10491
|
return e.blocks && e.blocks.free(r), e.blocks = null, ve;
|
|
10473
10492
|
}, e.inflateInit = function(r, i) {
|
|
10474
|
-
return r.msg = null, e.blocks = null, i < 8 || i > 15 ? (e.inflateEnd(r), ut) : (e.wbits = i, r.istate.blocks = new
|
|
10493
|
+
return r.msg = null, e.blocks = null, i < 8 || i > 15 ? (e.inflateEnd(r), ut) : (e.wbits = i, r.istate.blocks = new V1(r, 1 << i), t(r), ve);
|
|
10475
10494
|
}, e.inflate = function(r, i) {
|
|
10476
10495
|
let a, s;
|
|
10477
10496
|
if (!r || !r.istate || !r.next_in)
|
|
10478
10497
|
return ut;
|
|
10479
10498
|
const n = r.istate;
|
|
10480
|
-
for (i = i ==
|
|
10499
|
+
for (i = i == N1 ? ir : ve, a = ir; ; )
|
|
10481
10500
|
switch (n.mode) {
|
|
10482
|
-
case
|
|
10501
|
+
case Y1:
|
|
10483
10502
|
if (r.avail_in === 0)
|
|
10484
10503
|
return a;
|
|
10485
|
-
if (a = i, r.avail_in--, r.total_in++, ((n.method = r.read_byte(r.next_in_index++)) & 15) !=
|
|
10504
|
+
if (a = i, r.avail_in--, r.total_in++, ((n.method = r.read_byte(r.next_in_index++)) & 15) != G1) {
|
|
10486
10505
|
n.mode = cr, r.msg = "unknown compression method", n.marker = 5;
|
|
10487
10506
|
break;
|
|
10488
10507
|
}
|
|
@@ -10498,7 +10517,7 @@ function Y1() {
|
|
|
10498
10517
|
n.mode = cr, r.msg = "incorrect header check", n.marker = 5;
|
|
10499
10518
|
break;
|
|
10500
10519
|
}
|
|
10501
|
-
if (!(s &
|
|
10520
|
+
if (!(s & Z1)) {
|
|
10502
10521
|
n.mode = En;
|
|
10503
10522
|
break;
|
|
10504
10523
|
}
|
|
@@ -10516,7 +10535,7 @@ function Y1() {
|
|
|
10516
10535
|
return a;
|
|
10517
10536
|
a = i, r.avail_in--, r.total_in++, n.need += (r.read_byte(r.next_in_index++) & 255) << 8 & 65280, n.mode = Zf;
|
|
10518
10537
|
case Zf:
|
|
10519
|
-
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 = Oa,
|
|
10538
|
+
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 = Oa, L1);
|
|
10520
10539
|
case Oa:
|
|
10521
10540
|
return n.mode = cr, r.msg = "need dictionary", n.marker = 0, ut;
|
|
10522
10541
|
case En:
|
|
@@ -10548,7 +10567,7 @@ function Y1() {
|
|
|
10548
10567
|
if (l.mode != cr && (l.mode = cr, l.marker = 0), (i = r.avail_in) === 0)
|
|
10549
10568
|
return ir;
|
|
10550
10569
|
for (a = r.next_in_index, s = l.marker; i !== 0 && s < 4; )
|
|
10551
|
-
r.read_byte(a) ==
|
|
10570
|
+
r.read_byte(a) == K1[s] ? s++ : r.read_byte(a) !== 0 ? s = 0 : s = 4 - s, a++, i--;
|
|
10552
10571
|
return r.total_in += a - r.next_in_index, r.next_in_index = a, r.avail_in = i, l.marker = s, s != 4 ? Ie : (n = r.total_in, o = r.total_out, t(r), r.total_in = n, r.total_out = o, l.mode = En, ve);
|
|
10553
10572
|
}, e.inflateSyncPoint = function(r) {
|
|
10554
10573
|
return !r || !r.istate || !r.istate.blocks ? ut : r.istate.blocks.sync_point();
|
|
@@ -10559,7 +10578,7 @@ function yu() {
|
|
|
10559
10578
|
yu.prototype = {
|
|
10560
10579
|
inflateInit(e) {
|
|
10561
10580
|
const t = this;
|
|
10562
|
-
return t.istate = new
|
|
10581
|
+
return t.istate = new X1(), e || (e = I1), t.istate.inflateInit(t, e);
|
|
10563
10582
|
},
|
|
10564
10583
|
inflate(e) {
|
|
10565
10584
|
const t = this;
|
|
@@ -10587,8 +10606,8 @@ yu.prototype = {
|
|
|
10587
10606
|
return this.next_in.subarray(e, e + t);
|
|
10588
10607
|
}
|
|
10589
10608
|
};
|
|
10590
|
-
function
|
|
10591
|
-
const t = this, r = new yu(), i = e && e.chunkSize ? Math.floor(e.chunkSize * 2) : 128 * 1024, a =
|
|
10609
|
+
function J1(e) {
|
|
10610
|
+
const t = this, r = new yu(), i = e && e.chunkSize ? Math.floor(e.chunkSize * 2) : 128 * 1024, a = C1, s = new Uint8Array(i);
|
|
10592
10611
|
let n = !1;
|
|
10593
10612
|
r.inflateInit(), r.next_out = s, t.append = function(o, l) {
|
|
10594
10613
|
const c = [];
|
|
@@ -10613,7 +10632,7 @@ function K1(e) {
|
|
|
10613
10632
|
r.inflateEnd();
|
|
10614
10633
|
};
|
|
10615
10634
|
}
|
|
10616
|
-
const Fr = 4294967295, mr = 65535,
|
|
10635
|
+
const Fr = 4294967295, mr = 65535, Q1 = 8, ew = 0, tw = 99, rw = 67324752, nw = 134695760, Yf = 33639248, sw = 101010256, Kf = 101075792, iw = 117853008, Xr = 22, Aa = 20, $a = 56, aw = 1, ow = 39169, lw = 10, fw = 1, cw = 21589, pw = 28789, uw = 25461, dw = 6534, Xf = 1, hw = 6, Jf = 8, Qf = 2048, ec = 16, tc = 16384, rc = 73, nc = "/", lt = void 0, xr = "undefined", us = "function";
|
|
10617
10636
|
class sc {
|
|
10618
10637
|
constructor(t) {
|
|
10619
10638
|
return class extends TransformStream {
|
|
@@ -10632,13 +10651,13 @@ class sc {
|
|
|
10632
10651
|
};
|
|
10633
10652
|
}
|
|
10634
10653
|
}
|
|
10635
|
-
const
|
|
10654
|
+
const mw = 64;
|
|
10636
10655
|
let gu = 2;
|
|
10637
10656
|
try {
|
|
10638
10657
|
typeof navigator != xr && navigator.hardwareConcurrency && (gu = navigator.hardwareConcurrency);
|
|
10639
10658
|
} catch {
|
|
10640
10659
|
}
|
|
10641
|
-
const
|
|
10660
|
+
const yw = {
|
|
10642
10661
|
chunkSize: 512 * 1024,
|
|
10643
10662
|
maxWorkers: gu,
|
|
10644
10663
|
terminateWorkerTimeout: 5e3,
|
|
@@ -10647,12 +10666,12 @@ const hw = {
|
|
|
10647
10666
|
workerScripts: lt,
|
|
10648
10667
|
CompressionStreamNative: typeof CompressionStream != xr && CompressionStream,
|
|
10649
10668
|
DecompressionStreamNative: typeof DecompressionStream != xr && DecompressionStream
|
|
10650
|
-
}, yr = Object.assign({},
|
|
10651
|
-
function
|
|
10669
|
+
}, yr = Object.assign({}, yw);
|
|
10670
|
+
function gw() {
|
|
10652
10671
|
return yr;
|
|
10653
10672
|
}
|
|
10654
|
-
function
|
|
10655
|
-
return Math.max(e.chunkSize,
|
|
10673
|
+
function ww(e) {
|
|
10674
|
+
return Math.max(e.chunkSize, mw);
|
|
10656
10675
|
}
|
|
10657
10676
|
function Co(e) {
|
|
10658
10677
|
const {
|
|
@@ -12315,7 +12334,7 @@ class bu extends TransformStream {
|
|
|
12315
12334
|
}), t = this;
|
|
12316
12335
|
}
|
|
12317
12336
|
}
|
|
12318
|
-
function
|
|
12337
|
+
function bw(e) {
|
|
12319
12338
|
if (typeof TextEncoder == xr) {
|
|
12320
12339
|
e = unescape(encodeURIComponent(e));
|
|
12321
12340
|
const t = new Uint8Array(e.length);
|
|
@@ -12581,7 +12600,7 @@ vu.aes = class {
|
|
|
12581
12600
|
return a;
|
|
12582
12601
|
}
|
|
12583
12602
|
};
|
|
12584
|
-
const
|
|
12603
|
+
const _w = {
|
|
12585
12604
|
/**
|
|
12586
12605
|
* Generate random words with pure js, cryptographically not as strong & safe as native implementation.
|
|
12587
12606
|
* @param {TypedArray} typedArray The array to fill.
|
|
@@ -12689,13 +12708,13 @@ Br.hmacSha1 = class {
|
|
|
12689
12708
|
return this.update(e), this.digest(e);
|
|
12690
12709
|
}
|
|
12691
12710
|
};
|
|
12692
|
-
const
|
|
12711
|
+
const vw = typeof crypto != xr && typeof crypto.getRandomValues == us, ku = "Invalid password", Pu = "Invalid signature", No = "zipjs-abort-check-password";
|
|
12693
12712
|
function Eu(e) {
|
|
12694
|
-
return
|
|
12713
|
+
return vw ? crypto.getRandomValues(e) : _w.getRandomValues(e);
|
|
12695
12714
|
}
|
|
12696
|
-
const rn = 16,
|
|
12715
|
+
const rn = 16, xw = "raw", Su = { name: "PBKDF2" }, kw = { name: "HMAC" }, Pw = "SHA-1", Ew = Object.assign({ hash: kw }, Su), io = Object.assign({ iterations: 1e3, hash: { name: Pw } }, Su), Sw = ["deriveBits"], Yn = [8, 12, 16], Sn = [16, 24, 32], hr = 10, Tw = [0, 0, 0, 0], ki = typeof crypto != xr, ds = ki && crypto.subtle, Tu = ki && typeof ds != xr, Xt = oi.bytes, Ow = vu.aes, Aw = xu.ctrGladman, $w = Br.hmacSha1;
|
|
12697
12716
|
let ic = ki && Tu && typeof ds.importKey == us, ac = ki && Tu && typeof ds.deriveBits == us;
|
|
12698
|
-
class
|
|
12717
|
+
class Rw extends TransformStream {
|
|
12699
12718
|
constructor({ password: t, rawPassword: r, signed: i, encryptionStrength: a, checkPasswordOnly: s }) {
|
|
12700
12719
|
super({
|
|
12701
12720
|
start() {
|
|
@@ -12714,7 +12733,7 @@ class Aw extends TransformStream {
|
|
|
12714
12733
|
resolveReady: d,
|
|
12715
12734
|
ready: m
|
|
12716
12735
|
} = l;
|
|
12717
|
-
c ? (await
|
|
12736
|
+
c ? (await Iw(l, p, c, Ot(n, 0, Yn[p] + 2)), n = Ot(n, Yn[p] + 2), s ? o.error(new Error(No)) : d()) : await m;
|
|
12718
12737
|
const g = new Uint8Array(n.length - hr - (n.length - hr) % rn);
|
|
12719
12738
|
o.enqueue(Ou(l, n, g, 0, hr, !0));
|
|
12720
12739
|
},
|
|
@@ -12748,7 +12767,7 @@ class Aw extends TransformStream {
|
|
|
12748
12767
|
});
|
|
12749
12768
|
}
|
|
12750
12769
|
}
|
|
12751
|
-
class
|
|
12770
|
+
class Fw extends TransformStream {
|
|
12752
12771
|
constructor({ password: t, rawPassword: r, encryptionStrength: i }) {
|
|
12753
12772
|
let a;
|
|
12754
12773
|
super({
|
|
@@ -12768,7 +12787,7 @@ class $w extends TransformStream {
|
|
|
12768
12787
|
ready: d
|
|
12769
12788
|
} = o;
|
|
12770
12789
|
let m = new Uint8Array();
|
|
12771
|
-
l ? (m = await
|
|
12790
|
+
l ? (m = await Lw(o, c, l), p()) : await d;
|
|
12772
12791
|
const g = new Uint8Array(m.length + s.length - s.length % rn);
|
|
12773
12792
|
g.set(m, 0), n.enqueue(Ou(o, s, g, m.length, 0));
|
|
12774
12793
|
},
|
|
@@ -12798,7 +12817,7 @@ function Ou(e, t, r, i, a, s) {
|
|
|
12798
12817
|
hmac: o,
|
|
12799
12818
|
pending: l
|
|
12800
12819
|
} = e, c = t.length - a;
|
|
12801
|
-
l.length && (t = Do(l, t), r =
|
|
12820
|
+
l.length && (t = Do(l, t), r = Dw(r, c - c % rn));
|
|
12802
12821
|
let p;
|
|
12803
12822
|
for (p = 0; p <= c - rn; p += rn) {
|
|
12804
12823
|
const d = Xn(Xt, Ot(t, p, p + rn));
|
|
@@ -12808,29 +12827,29 @@ function Ou(e, t, r, i, a, s) {
|
|
|
12808
12827
|
}
|
|
12809
12828
|
return e.pending = Ot(t, p), r;
|
|
12810
12829
|
}
|
|
12811
|
-
async function
|
|
12830
|
+
async function Iw(e, t, r, i) {
|
|
12812
12831
|
const a = await Au(e, t, r, Ot(i, 0, Yn[t])), s = Ot(i, Yn[t]);
|
|
12813
12832
|
if (a[0] != s[0] || a[1] != s[1])
|
|
12814
12833
|
throw new Error(ku);
|
|
12815
12834
|
}
|
|
12816
|
-
async function
|
|
12835
|
+
async function Lw(e, t, r) {
|
|
12817
12836
|
const i = Eu(new Uint8Array(Yn[t])), a = await Au(e, t, r, i);
|
|
12818
12837
|
return Do(i, a);
|
|
12819
12838
|
}
|
|
12820
12839
|
async function Au(e, t, r, i) {
|
|
12821
12840
|
e.password = null;
|
|
12822
|
-
const a = await
|
|
12841
|
+
const a = await Cw(xw, r, Ew, !1, Sw), s = await Nw(Object.assign({ salt: i }, io), a, 8 * (Sn[t] * 2 + 2)), n = new Uint8Array(s), o = Xn(Xt, Ot(n, 0, Sn[t])), l = Xn(Xt, Ot(n, Sn[t], Sn[t] * 2)), c = Ot(n, Sn[t] * 2);
|
|
12823
12842
|
return Object.assign(e, {
|
|
12824
12843
|
keys: {
|
|
12825
12844
|
key: o,
|
|
12826
12845
|
authentication: l,
|
|
12827
12846
|
passwordVerification: c
|
|
12828
12847
|
},
|
|
12829
|
-
ctr: new
|
|
12830
|
-
hmac: new
|
|
12848
|
+
ctr: new Aw(new Ow(o), Array.from(Tw)),
|
|
12849
|
+
hmac: new $w(l)
|
|
12831
12850
|
}), c;
|
|
12832
12851
|
}
|
|
12833
|
-
async function
|
|
12852
|
+
async function Cw(e, t, r, i, a) {
|
|
12834
12853
|
if (ic)
|
|
12835
12854
|
try {
|
|
12836
12855
|
return await ds.importKey(e, t, r, i, a);
|
|
@@ -12840,7 +12859,7 @@ async function Iw(e, t, r, i, a) {
|
|
|
12840
12859
|
else
|
|
12841
12860
|
return Br.importKey(t);
|
|
12842
12861
|
}
|
|
12843
|
-
async function
|
|
12862
|
+
async function Nw(e, t, r) {
|
|
12844
12863
|
if (ac)
|
|
12845
12864
|
try {
|
|
12846
12865
|
return await ds.deriveBits(e, t, r);
|
|
@@ -12851,13 +12870,13 @@ async function Lw(e, t, r) {
|
|
|
12851
12870
|
return Br.pbkdf2(t, e.salt, io.iterations, r);
|
|
12852
12871
|
}
|
|
12853
12872
|
function $u(e, t) {
|
|
12854
|
-
return t === lt ?
|
|
12873
|
+
return t === lt ? bw(e) : t;
|
|
12855
12874
|
}
|
|
12856
12875
|
function Do(e, t) {
|
|
12857
12876
|
let r = e;
|
|
12858
12877
|
return e.length + t.length && (r = new Uint8Array(e.length + t.length), r.set(e, 0), r.set(t, e.length)), r;
|
|
12859
12878
|
}
|
|
12860
|
-
function
|
|
12879
|
+
function Dw(e, t) {
|
|
12861
12880
|
if (t && t > e.length) {
|
|
12862
12881
|
const r = e;
|
|
12863
12882
|
e = new Uint8Array(t), e.set(r, 0);
|
|
@@ -12874,7 +12893,7 @@ function Xn(e, t) {
|
|
|
12874
12893
|
return e.toBits(t);
|
|
12875
12894
|
}
|
|
12876
12895
|
const fn = 12;
|
|
12877
|
-
class
|
|
12896
|
+
class jw extends TransformStream {
|
|
12878
12897
|
constructor({ password: t, passwordVerification: r, checkPasswordOnly: i }) {
|
|
12879
12898
|
super({
|
|
12880
12899
|
start() {
|
|
@@ -12896,7 +12915,7 @@ class Nw extends TransformStream {
|
|
|
12896
12915
|
});
|
|
12897
12916
|
}
|
|
12898
12917
|
}
|
|
12899
|
-
class
|
|
12918
|
+
class Uw extends TransformStream {
|
|
12900
12919
|
constructor({ password: t, passwordVerification: r }) {
|
|
12901
12920
|
super({
|
|
12902
12921
|
start() {
|
|
@@ -12956,23 +12975,23 @@ function fc(e) {
|
|
|
12956
12975
|
return e & 4294967295;
|
|
12957
12976
|
}
|
|
12958
12977
|
const cc = "deflate-raw";
|
|
12959
|
-
class
|
|
12978
|
+
class Bw extends TransformStream {
|
|
12960
12979
|
constructor(t, { chunkSize: r, CompressionStream: i, CompressionStreamNative: a }) {
|
|
12961
12980
|
super({});
|
|
12962
12981
|
const { compressed: s, encrypted: n, useCompressionStream: o, zipCrypto: l, signed: c, level: p } = t, d = this;
|
|
12963
12982
|
let m, g, A = Lu(super.readable);
|
|
12964
|
-
(!n || l) && c && (m = new bu(), A = Jt(A, m)), s && (A = Nu(A, o, { level: p, chunkSize: r }, a, i)), n && (l ? A = Jt(A, new
|
|
12983
|
+
(!n || l) && c && (m = new bu(), A = Jt(A, m)), s && (A = Nu(A, o, { level: p, chunkSize: r }, a, i)), n && (l ? A = Jt(A, new Uw(t)) : (g = new Fw(t), A = Jt(A, g))), Cu(d, A, () => {
|
|
12965
12984
|
let y;
|
|
12966
12985
|
n && !l && (y = g.signature), (!n || l) && c && (y = new DataView(m.value.buffer).getUint32(0)), d.signature = y;
|
|
12967
12986
|
});
|
|
12968
12987
|
}
|
|
12969
12988
|
}
|
|
12970
|
-
class
|
|
12989
|
+
class qw extends TransformStream {
|
|
12971
12990
|
constructor(t, { chunkSize: r, DecompressionStream: i, DecompressionStreamNative: a }) {
|
|
12972
12991
|
super({});
|
|
12973
12992
|
const { zipCrypto: s, encrypted: n, signed: o, signature: l, compressed: c, useCompressionStream: p } = t;
|
|
12974
12993
|
let d, m, g = Lu(super.readable);
|
|
12975
|
-
n && (s ? g = Jt(g, new
|
|
12994
|
+
n && (s ? g = Jt(g, new jw(t)) : (m = new Rw(t), g = Jt(g, m))), c && (g = Nu(g, p, { chunkSize: r }, a, i)), (!n || s) && o && (d = new bu(), g = Jt(g, d)), Cu(this, g, () => {
|
|
12976
12995
|
if ((!n || s) && o) {
|
|
12977
12996
|
const A = new DataView(d.value.buffer);
|
|
12978
12997
|
if (l != A.getUint32(0, !1))
|
|
@@ -13014,13 +13033,13 @@ function Nu(e, t, r, i, a) {
|
|
|
13014
13033
|
function Jt(e, t) {
|
|
13015
13034
|
return e.pipeThrough(t);
|
|
13016
13035
|
}
|
|
13017
|
-
const
|
|
13018
|
-
class
|
|
13036
|
+
const Mw = "message", Ww = "start", zw = "pull", pc = "data", Hw = "ack", uc = "close", Vw = "deflate", Du = "inflate";
|
|
13037
|
+
class Zw extends TransformStream {
|
|
13019
13038
|
constructor(t, r) {
|
|
13020
13039
|
super({});
|
|
13021
13040
|
const i = this, { codecType: a } = t;
|
|
13022
13041
|
let s;
|
|
13023
|
-
a.startsWith(
|
|
13042
|
+
a.startsWith(Vw) ? s = Bw : a.startsWith(Du) && (s = qw);
|
|
13024
13043
|
let n = 0, o = 0;
|
|
13025
13044
|
const l = new s(t, r), c = super.readable, p = new TransformStream({
|
|
13026
13045
|
transform(m, g) {
|
|
@@ -13051,7 +13070,7 @@ class Hw extends TransformStream {
|
|
|
13051
13070
|
});
|
|
13052
13071
|
}
|
|
13053
13072
|
}
|
|
13054
|
-
class
|
|
13073
|
+
class Gw extends TransformStream {
|
|
13055
13074
|
constructor(t) {
|
|
13056
13075
|
let r;
|
|
13057
13076
|
super({
|
|
@@ -13075,7 +13094,7 @@ class Fa {
|
|
|
13075
13094
|
const { signal: d } = n;
|
|
13076
13095
|
return Object.assign(t, {
|
|
13077
13096
|
busy: !0,
|
|
13078
|
-
readable: r.pipeThrough(new
|
|
13097
|
+
readable: r.pipeThrough(new Gw(s.chunkSize)).pipeThrough(new Yw(r, n), { signal: d }),
|
|
13079
13098
|
writable: i,
|
|
13080
13099
|
options: Object.assign({}, a),
|
|
13081
13100
|
scripts: c,
|
|
@@ -13090,10 +13109,10 @@ class Fa {
|
|
|
13090
13109
|
const { resolveTerminated: m } = t;
|
|
13091
13110
|
m && (t.resolveTerminated = null, t.terminated = !0, t.worker.terminate(), m()), t.busy = !1, p(t);
|
|
13092
13111
|
}
|
|
13093
|
-
}), (o && ju ?
|
|
13112
|
+
}), (o && ju ? Kw : Uu)(t, s);
|
|
13094
13113
|
}
|
|
13095
13114
|
}
|
|
13096
|
-
class
|
|
13115
|
+
class Yw extends TransformStream {
|
|
13097
13116
|
constructor(t, { onstart: r, onprogress: i, size: a, onend: s }) {
|
|
13098
13117
|
let n = 0;
|
|
13099
13118
|
super({
|
|
@@ -13117,30 +13136,30 @@ async function Ia(e, ...t) {
|
|
|
13117
13136
|
}
|
|
13118
13137
|
function Uu(e, t) {
|
|
13119
13138
|
return {
|
|
13120
|
-
run: () =>
|
|
13139
|
+
run: () => Xw(e, t)
|
|
13121
13140
|
};
|
|
13122
13141
|
}
|
|
13123
|
-
function
|
|
13142
|
+
function Kw(e, t) {
|
|
13124
13143
|
const { baseURL: r, chunkSize: i } = t;
|
|
13125
13144
|
if (!e.interface) {
|
|
13126
13145
|
let a;
|
|
13127
13146
|
try {
|
|
13128
|
-
a =
|
|
13147
|
+
a = eb(e.scripts[0], r, e);
|
|
13129
13148
|
} catch {
|
|
13130
13149
|
return ju = !1, Uu(e, t);
|
|
13131
13150
|
}
|
|
13132
13151
|
Object.assign(e, {
|
|
13133
13152
|
worker: a,
|
|
13134
13153
|
interface: {
|
|
13135
|
-
run: () =>
|
|
13154
|
+
run: () => Jw(e, { chunkSize: i })
|
|
13136
13155
|
}
|
|
13137
13156
|
});
|
|
13138
13157
|
}
|
|
13139
13158
|
return e.interface;
|
|
13140
13159
|
}
|
|
13141
|
-
async function
|
|
13160
|
+
async function Xw({ options: e, readable: t, writable: r, onTaskFinished: i }, a) {
|
|
13142
13161
|
try {
|
|
13143
|
-
const s = new
|
|
13162
|
+
const s = new Zw(e, a);
|
|
13144
13163
|
await t.pipeThrough(s).pipeTo(r, { preventClose: !0, preventAbort: !0 });
|
|
13145
13164
|
const {
|
|
13146
13165
|
signature: n,
|
|
@@ -13156,7 +13175,7 @@ async function Yw({ options: e, readable: t, writable: r, onTaskFinished: i }, a
|
|
|
13156
13175
|
i();
|
|
13157
13176
|
}
|
|
13158
13177
|
}
|
|
13159
|
-
async function
|
|
13178
|
+
async function Jw(e, t) {
|
|
13160
13179
|
let r, i;
|
|
13161
13180
|
const a = new Promise((m, g) => {
|
|
13162
13181
|
r = m, i = g;
|
|
@@ -13168,8 +13187,8 @@ async function Kw(e, t) {
|
|
|
13168
13187
|
rejectResult: i,
|
|
13169
13188
|
result: a
|
|
13170
13189
|
});
|
|
13171
|
-
const { readable: s, options: n, scripts: o } = e, { writable: l, closed: c } =
|
|
13172
|
-
type:
|
|
13190
|
+
const { readable: s, options: n, scripts: o } = e, { writable: l, closed: c } = Qw(e.writable), p = Ws({
|
|
13191
|
+
type: Ww,
|
|
13173
13192
|
scripts: o.slice(1),
|
|
13174
13193
|
options: n,
|
|
13175
13194
|
config: t,
|
|
@@ -13183,7 +13202,7 @@ async function Kw(e, t) {
|
|
|
13183
13202
|
const d = await a;
|
|
13184
13203
|
return p || await l.getWriter().close(), await c, d;
|
|
13185
13204
|
}
|
|
13186
|
-
function
|
|
13205
|
+
function Qw(e) {
|
|
13187
13206
|
let t;
|
|
13188
13207
|
const r = new Promise((a) => t = a);
|
|
13189
13208
|
return { writable: new WritableStream({
|
|
@@ -13200,7 +13219,7 @@ function Xw(e) {
|
|
|
13200
13219
|
}), closed: r };
|
|
13201
13220
|
}
|
|
13202
13221
|
let dc = !0, hc = !0;
|
|
13203
|
-
function
|
|
13222
|
+
function eb(e, t, r) {
|
|
13204
13223
|
const i = { type: "module" };
|
|
13205
13224
|
let a, s;
|
|
13206
13225
|
typeof e == us && (e = e());
|
|
@@ -13217,7 +13236,7 @@ function Jw(e, t, r) {
|
|
|
13217
13236
|
}
|
|
13218
13237
|
else
|
|
13219
13238
|
s = new Worker(a, i);
|
|
13220
|
-
return s.addEventListener(
|
|
13239
|
+
return s.addEventListener(Mw, (n) => tb(n, r)), s;
|
|
13221
13240
|
}
|
|
13222
13241
|
function Ws(e, { worker: t, writer: r, onTaskFinished: i, transferStreams: a }) {
|
|
13223
13242
|
try {
|
|
@@ -13234,18 +13253,18 @@ function Ws(e, { worker: t, writer: r, onTaskFinished: i, transferStreams: a })
|
|
|
13234
13253
|
throw r && r.releaseLock(), i(), s;
|
|
13235
13254
|
}
|
|
13236
13255
|
}
|
|
13237
|
-
async function
|
|
13256
|
+
async function tb({ data: e }, t) {
|
|
13238
13257
|
const { type: r, value: i, messageId: a, result: s, error: n } = e, { reader: o, writer: l, resolveResult: c, rejectResult: p, onTaskFinished: d } = t;
|
|
13239
13258
|
try {
|
|
13240
13259
|
if (n) {
|
|
13241
13260
|
const { message: g, stack: A, code: y, name: w } = n, b = new Error(g);
|
|
13242
13261
|
Object.assign(b, { stack: A, code: y, name: w }), m(b);
|
|
13243
13262
|
} else {
|
|
13244
|
-
if (r ==
|
|
13263
|
+
if (r == zw) {
|
|
13245
13264
|
const { value: g, done: A } = await o.read();
|
|
13246
13265
|
Ws({ type: pc, value: g, done: A, messageId: a }, t);
|
|
13247
13266
|
}
|
|
13248
|
-
r == pc && (await l.ready, await l.write(new Uint8Array(i)), Ws({ type:
|
|
13267
|
+
r == pc && (await l.ready, await l.write(new Uint8Array(i)), Ws({ type: Hw, messageId: a }, t)), r == uc && m(null, s);
|
|
13249
13268
|
}
|
|
13250
13269
|
} catch (g) {
|
|
13251
13270
|
Ws({ type: uc, messageId: a }, t), m(g);
|
|
@@ -13257,7 +13276,7 @@ async function Qw({ data: e }, t) {
|
|
|
13257
13276
|
let Tr = [];
|
|
13258
13277
|
const La = [];
|
|
13259
13278
|
let mc = 0;
|
|
13260
|
-
async function
|
|
13279
|
+
async function rb(e, t) {
|
|
13261
13280
|
const { options: r, config: i } = t, { transferStreams: a, useWebWorkers: s, useCompressionStream: n, codecType: o, compressed: l, signed: c, encrypted: p } = r, { workerScripts: d, maxWorkers: m } = i;
|
|
13262
13281
|
t.transferStreams = a || a === lt;
|
|
13263
13282
|
const g = !l && !c && !p && !t.transferStreams;
|
|
@@ -13276,10 +13295,10 @@ async function eb(e, t) {
|
|
|
13276
13295
|
if (La.length) {
|
|
13277
13296
|
const [{ resolve: b, stream: O, workerOptions: k }] = La.splice(0, 1);
|
|
13278
13297
|
b(new Fa(w, O, k, y));
|
|
13279
|
-
} else w.worker ? (yc(w),
|
|
13298
|
+
} else w.worker ? (yc(w), nb(w, t)) : Tr = Tr.filter((b) => b != w);
|
|
13280
13299
|
}
|
|
13281
13300
|
}
|
|
13282
|
-
function
|
|
13301
|
+
function nb(e, t) {
|
|
13283
13302
|
const { config: r } = t, { terminateWorkerTimeout: i } = r;
|
|
13284
13303
|
Number.isFinite(i) && i >= 0 && (e.terminated ? e.terminated = !1 : e.terminateTimeout = setTimeout(async () => {
|
|
13285
13304
|
Tr = Tr.filter((a) => a != e);
|
|
@@ -13293,12 +13312,12 @@ function yc(e) {
|
|
|
13293
13312
|
const { terminateTimeout: t } = e;
|
|
13294
13313
|
t && (clearTimeout(t), e.terminateTimeout = null);
|
|
13295
13314
|
}
|
|
13296
|
-
function
|
|
13315
|
+
function sb(e, t = {}) {
|
|
13297
13316
|
const r = `const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={bytes:{p(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},m(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.k=[1732584193,4023233417,2562383102,271733878,3285377520],t.v=[1518500249,1859775393,2400959708,3395469782],e?(t.S=e.S.slice(0),t.C=e.C.slice(0),t.A=e.A):t.reset()}reset(){const e=this;return e.S=e.k.slice(0),e.C=[],e.A=0,e}update(e){const t=this;"string"==typeof e&&(e=I._.m(e));const n=t.C=_.concat(t.C,e),r=t.A,i=t.A=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.I(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}P(){const e=this;let t=e.C;const n=e.S;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e.A/4294967296)),t.push(0|e.A);t.length;)e.I(t.splice(0,16));return e.reset(),n}D(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}V(e,t){return t<<e|t>>>32-e}I(t){const n=this,s=n.S,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.V(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.V(5,o)+n.D(e,c,f,a)+l+i[e]+n.v[r.floor(e/20)]|0;l=a,a=f,f=n.V(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.R(I.bytes.m(e)),B(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.bytes.m(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},R:class{constructor(e){const t=this,n=t.M=P,r=[[],[]];t.U=[new n,new n];const s=t.U[0].blockSize/32;e.length>s&&(e=(new n).update(e).P());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.U[0].update(r[0]),t.U[1].update(r[1]),t.K=new n(t.U[0])}reset(){const e=this;e.K=new e.M(e.U[0]),e.N=!1}update(e){this.N=!0,this.K.update(e)}digest(){const e=this,t=e.K.P(),n=new e.M(e.U[1]).update(t).P();return e.reset(),n}encrypt(e){if(this.N)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.bytes,X=class{constructor(e){const t=this;t.O=[[[],[],[],[],[]],[[],[],[],[],[]]],t.O[0][0][0]||t.T();const n=t.O[0][4],r=t.O[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.v=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.W(e,0)}decrypt(e){return this.W(e,1)}T(){const e=this.O[0],t=this.O[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}W(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.v[t],r=n.length/4-2,i=[0,0,0,0],o=this.O[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.j=e,this.H=t,this.L=t}reset(){this.L=this.H}update(e){return this.F(this.j,e,this.L)}q(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}G(e){0===(e[0]=this.q(e[0]))&&(e[1]=this.q(e[1]))}F(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.G(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.R;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),signed:r,X:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:o,J:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Y:n,Z:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),X:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:s,J:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Y:t,Z:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Y:c,Z:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.B(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.B(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,$:u,passwordVerification:w},Y:new Y(new X(l),e.from(F)),Z:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.p(t)}function ae(e,t){return e.m(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,ee:new x(r[0]),te:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.ee.append([t]),n=~e.ee.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.te.append([s>>>24]),i=~e.te.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=-2;function Te(t){return We(t.map((([t,n])=>new e(t).fill(n,0,t))))}function We(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?We(n):n)),[])}const je=[0,1,2,3].concat(...Te([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function He(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.ne=n=>{const s=e.re,i=e.ie.se,o=e.ie.oe;let c,f,a,l=-1;for(n.ce=0,n.fe=573,c=0;o>c;c++)0!==s[2*c]?(n.ae[++n.ce]=l=c,n.le[c]=0):s[2*c+1]=0;for(;2>n.ce;)a=n.ae[++n.ce]=2>l?++l:0,s[2*a]=1,n.le[a]=0,n.ue--,i&&(n.we-=i[2*a+1]);for(e.he=l,c=r.floor(n.ce/2);c>=1;c--)n.de(s,c);a=o;do{c=n.ae[1],n.ae[1]=n.ae[n.ce--],n.de(s,1),f=n.ae[1],n.ae[--n.fe]=c,n.ae[--n.fe]=f,s[2*a]=s[2*c]+s[2*f],n.le[a]=r.max(n.le[c],n.le[f])+1,s[2*c+1]=s[2*f+1]=a,n.ae[1]=a++,n.de(s,1)}while(n.ce>=2);n.ae[--n.fe]=n.ae[1],(t=>{const n=e.re,r=e.ie.se,s=e.ie.pe,i=e.ie.ye,o=e.ie.me;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.be[l]=0;for(n[2*t.ae[t.fe]+1]=0,c=t.fe+1;573>c;c++)f=t.ae[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.he||(t.be[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.ue+=w*(l+u),r&&(t.we+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.be[l];)l--;t.be[l]--,t.be[l+1]+=2,t.be[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.be[l];0!==f;)a=t.ae[--c],a>e.he||(n[2*a+1]!=l&&(t.ue+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.he,n.be)}}function Le(e,t,n,r,s){const i=this;i.se=e,i.pe=t,i.ye=n,i.oe=r,i.me=s}He.ge=[0,1,2,3,4,5,6,7].concat(...Te([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),He.ke=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],He.ve=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],He.Se=e=>256>e?je[e]:je[256+(e>>>7)],He.ze=[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],He.Ce=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],He.xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He.Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Fe=Te([[144,8],[112,9],[24,7],[8,8]]);Le._e=We([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Fe[t]])));const qe=Te([[30,5]]);function Ge(e,t,n,r,s){const i=this;i.Ie=e,i.Pe=t,i.De=n,i.Ve=r,i.Re=s}Le.Be=We([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].map(((e,t)=>[e,qe[t]]))),Le.Ee=new Le(Le._e,He.ze,257,286,15),Le.Me=new Le(Le.Be,He.Ce,0,30,15),Le.Ue=new Le(null,He.xe,0,19,7);const Je=[new Ge(0,0,0,0,0),new Ge(4,4,8,4,1),new Ge(4,5,16,8,1),new Ge(4,6,32,32,1),new Ge(4,4,16,16,2),new Ge(8,16,32,32,2),new Ge(8,16,128,128,2),new Ge(8,32,128,256,2),new Ge(32,128,258,1024,2),new Ge(32,258,258,4096,2)],Qe=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Xe=113,Ye=666,Ze=262;function $e(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function et(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new He,N=new He,O=new He;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.ue=e.we=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ke[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Ne[W]=t,e.Oe[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ge[n]+256+1)]++,M[2*He.Se(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.Ce[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Ne[c],s=e.Oe[c],c++,0===r?Y(s,t):(i=He.ge[s],Y(i+256+1,t),o=He.ze[i],0!==o&&(s-=He.ke[i],X(s,o)),r--,i=He.Se(r),Y(i,n),o=He.Ce[i],0!==o&&(r-=He.ve[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ke.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.ne(e),N.ne(e),o=(()=>{let t;for(G(E,K.he),G(M,N.he),O.ne(e),t=18;t>=3&&0===U[2*He.Ae[t]+1];t--);return e.ue+=14+3*(t+1),t})(),s=e.ue+3+7>>>3,i=e.we+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Le._e,Le.Be)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*He.Ae[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.he+1,N.he+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.Te()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-Ze){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.We)return;e=t.je(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Ze>A&&0!==t.We)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-Ze?C-(f-Ze):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.le=[],e.be=[],e.ae=[],E=[],M=[],U=[],e.de=(t,n)=>{const r=e.ae,s=r[n];let i=n<<1;for(;i<=e.ce&&(i<e.ce&&$e(t,r[i+1],r[i],e.le)&&i++,!$e(t,s,r[i],e.le));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.He=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Le=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Oe:(t.Fe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ke=new i(4*T),s=4*T,e.Ne=new o(T),e.Oe=new i(T),D=S,V=G,(t=>(t.qe=t.Ge=0,t.Le=null,e.pending=0,e.Je=0,n=Xe,c=0,K.re=E,K.ie=Le.Ee,N.re=M,N.ie=Le.Me,O.re=U,O.ie=Le.Ue,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Qe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Oe=null,e.Ne=null,e.Ke=null,d=null,h=null,u=null,e.Fe=null,n==Xe?-3:0),e.Xe=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Re!=Je[t].Re&&0!==e.qe&&(r=e.Ye(1)),D!=t&&(D=t,P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve),V=n,r)},e.Ze=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Oe;if(3>i)return 0;for(i>f-Ze&&(i=f-Ze,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ye=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.$e||!r.et&&0!==r.We||n==Ye&&4!=i)return r.Le=Qe[4],Oe;if(0===r.tt)return r.Le=Qe[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Xe,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.Te(),0===t.tt)return c=-1,0}else if(0===t.We&&I>=i&&4!=i)return t.Le=Qe[7],-5;if(n==Ye&&0!==t.We)return r.Le=Qe[7],-5;if(0!==t.We||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Re){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.tt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Ze||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-Ze>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.tt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.tt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.tt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le._e),$(),9>1+H+10-F&&(X(2,3),Y(256,Le._e),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.Te(),0===t.tt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.nt=0,e.rt=0,e.We=0,e.qe=0,e.tt=0,e.Ge=0}function nt(e){const t=new tt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.He(f),t.$e=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,o=t.Ye(0),0!=o)throw new s("deflating: "+t.Le);t.rt&&(t.rt==n?w.push(new i(c)):w.push(c.subarray(0,t.rt))),u+=t.rt,r&&t.nt>0&&t.nt!=a&&(r(t.nt),a=t.nt)}while(t.We>0||0===t.tt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.rt=0,t.tt=n,e=t.Ye(4),1!=e&&0!=e)throw new s("deflating: "+t.Le);n-t.tt>0&&a.push(c.slice(0,t.rt)),f+=t.rt}while(t.We>0||0===t.tt);return t.Qe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={He(e,t){const n=this;return n.Fe=new et,t||(t=15),n.Fe.He(n,e,t)},Ye(e){const t=this;return t.Fe?t.Fe.Ye(t,e):Oe},Qe(){const e=this;if(!e.Fe)return Oe;const t=e.Fe.Qe();return e.Fe=null,t},Xe(e,t){const n=this;return n.Fe?n.Fe.Xe(n,e,t):Oe},Ze(e,t){const n=this;return n.Fe?n.Fe.Ze(n,e,t):Oe},je(e,t,n){const r=this;let s=r.We;return s>n&&(s=n),0===s?0:(r.We-=s,e.set(r.et.subarray(r.nt,r.nt+s),t),r.nt+=s,r.qe+=s,s)},Te(){const e=this;let t=e.Fe.pending;t>e.tt&&(t=e.tt),0!==t&&(e.$e.set(e.Fe.Ke.subarray(e.Fe.Je,e.Fe.Je+t),e.rt),e.rt+=t,e.Fe.Je+=t,e.Ge+=t,e.tt-=t,e.Fe.pending-=t,0===e.Fe.pending&&(e.Fe.Je=0))}};const rt=-2,st=-3,it=-5,ot=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ft=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],at=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lt=[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,112,112],ut=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],wt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function ht(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return st;if(0>(I-=n[g]))return st;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>1440)return st;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?it:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.st=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==st?f.Le="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Le="incomplete dynamic bit lengths tree",a=st),a},this.it=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,at,lt,a,i,u,e,t),0!=h||0===i[0]?(h==st?w.Le="oversubscribed literal/length tree":-4!=h&&(w.Le="incomplete literal/length tree",h=st),h):(c(288),h=o(s,n,r,0,ut,wt,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==st?w.Le="oversubscribed distance tree":h==it?(w.Le="incomplete distance tree",h=st):-4!=h&&(w.Le="empty distance tree with lengths",h=st),h):0)}}function dt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.nt,p=c.We,w=o.ot,h=o.ct,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ot[e],g=ot[t];do{for(;20>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ot[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(v=a[z+2]+(w&ot[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--u);else o.lt.set(o.lt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.lt[y++]=o.lt[S++],o.lt[y++]=o.lt[S++],k-=2):(o.lt.set(o.lt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--k);else o.lt.set(o.lt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Le="invalid distance code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st;f+=a[z+2],f+=w&ot[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,1):(c.Le="invalid literal/length code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st);if(f+=a[z+2],f+=w&ot[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ut=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(16&k){a=15&k,i=n[g+2],t=2;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=7;break}return t=9,y.Le="invalid literal/length code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}i+=x&ot[b],x>>=b,A-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=4;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Le="invalid distance code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}l+=x&ot[b],x>>=b,A-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);e.lt[S++]=e.lt[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,e.lt[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);t=8;case 8:return m=1,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 9:return m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);default:return m=rt,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m)}},e.ht=()=>{}}ht.dt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ct,r[0]=ft,0);const pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new dt;let h=0,d=new f(4320);const p=new ht;n.ct=0,n.ot=0,n.lt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.ht(e),s=0,n.ct=0,n.ot=0,n.read=n.write=0},n.reset(e,null),n.wt=(e,t)=>{let r,s,i;return s=e.rt,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r),e.rt=s,n.read=i,t},n.ut=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case 0:for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ht.dt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Le="invalid block type",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Le="invalid stored block lengths",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.lt.set(e.je(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Le="too many length or distance symbols",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}r[pt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[pt[a++]]=0;if(l[0]=7,i=p.st(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ot[i]))+1],w=d[3*(u[0]+(f&ot[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ot[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Le="invalid bit length repeat",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.it(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),0!=i)return i==st&&(r=null,s=9),t=i,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,1!=(t=w.ut(n,e,t)))return n.wt(e,t);if(t=0,w.ht(e),m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);s=8;case 8:return t=1,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);case 9:return t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);default:return t=rt,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}}},n.ht=e=>{n.reset(e,null),n.lt=null,d=null},n.yt=(e,t,r)=>{n.lt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.bt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.gt?(e.qe=e.Ge=0,e.Le=null,e.gt.mode=7,e.gt.kt.reset(e,null),0):rt}e.mode=0,e.method=0,e.vt=[0],e.St=0,e.marker=0,e.zt=0,e.Ct=t=>(e.kt&&e.kt.ht(t),e.kt=null,0),e.xt=(n,r)=>(n.Le=null,e.kt=null,8>r||r>15?(e.Ct(n),rt):(e.zt=r,n.gt.kt=new yt(n,1<<r),t(n),0)),e.At=(e,t)=>{let n,r;if(!e||!e.gt||!e.et)return rt;const s=e.gt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.We)return n;if(n=t,e.We--,e.qe++,8!=(15&(s.method=e.ft(e.nt++)))){s.mode=mt,e.Le="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.zt){s.mode=mt,e.Le="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.We)return n;if(n=t,e.We--,e.qe++,r=255&e.ft(e.nt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Le="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St=(255&e.ft(e.nt++))<<24&4278190080,s.mode=3;case 3:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<16&16711680,s.mode=4;case 4:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<8&65280,s.mode=5;case 5:return 0===e.We?n:(n=t,e.We--,e.qe++,s.St+=255&e.ft(e.nt++),s.mode=6,2);case 6:return s.mode=mt,e.Le="need dictionary",s.marker=0,rt;case 7:if(n=s.kt.ut(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.kt.reset(e,s.vt),s.mode=12;case 12:return e.We=0,1;case mt:return st;default:return rt}},e._t=(e,t,n)=>{let r=0,s=n;if(!e||!e.gt||6!=e.gt.mode)return rt;const i=e.gt;return s<1<<i.zt||(s=(1<<i.zt)-1,r=n-s),i.kt.yt(t,r,s),i.mode=7,0},e.It=e=>{let n,r,s,i,o;if(!e||!e.gt)return rt;const c=e.gt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.We))return it;for(r=e.nt,s=c.marker;0!==n&&4>s;)e.ft(r)==bt[s]?s++:s=0!==e.ft(r)?0:4-s,r++,n--;return e.qe+=r-e.nt,e.nt=r,e.We=n,c.marker=s,4!=s?st:(i=e.qe,o=e.Ge,t(e),e.qe=i,e.Ge=o,c.mode=7,0)},e.Pt=e=>e&&e.gt&&e.gt.kt?e.gt.kt.bt():rt}function kt(){}function vt(e){const t=new kt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.xt(),t.$e=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,0!==t.We||c||(t.nt=0,c=!0),a=t.At(0),c&&a===it){if(0!==t.We)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Le);if((c||1===a)&&t.We===e.length)throw new s("inflating: bad input");t.rt&&(t.rt===n?f.push(new i(o)):f.push(o.subarray(0,t.rt))),h+=t.rt,r&&t.nt>0&&t.nt!=u&&(r(t.nt),u=t.nt)}while(t.We>0||0===t.tt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.Ct()}}kt.prototype={xt(e){const t=this;return t.gt=new gt,e||(e=15),t.gt.xt(t,e)},At(e){const t=this;return t.gt?t.gt.At(t,e):rt},Ct(){const e=this;if(!e.gt)return rt;const t=e.gt.Ct(e);return e.gt=null,t},It(){const e=this;return e.gt?e.gt.It(e):rt},_t(e,t){const n=this;return n.gt?n.gt._t(n,e,t):rt},ft(e){return this.et[e]},je(e,t){return this.et.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
|
|
13298
13317
|
`, i = () => t.useDataURI ? "data:text/javascript," + encodeURIComponent(r) : URL.createObjectURL(new Blob([r], { type: "text/javascript" }));
|
|
13299
13318
|
e({ workerScripts: { inflate: [i], deflate: [i] } });
|
|
13300
13319
|
}
|
|
13301
|
-
const
|
|
13320
|
+
const ib = "Writer iterator completed too soon", ab = "Content-Type", ob = 64 * 1024, Bu = "writable";
|
|
13302
13321
|
class Uo {
|
|
13303
13322
|
constructor() {
|
|
13304
13323
|
this.size = 0;
|
|
@@ -13309,7 +13328,7 @@ class Uo {
|
|
|
13309
13328
|
}
|
|
13310
13329
|
class qu extends Uo {
|
|
13311
13330
|
get readable() {
|
|
13312
|
-
const t = this, { chunkSize: r =
|
|
13331
|
+
const t = this, { chunkSize: r = ob } = t, i = new ReadableStream({
|
|
13313
13332
|
start() {
|
|
13314
13333
|
this.chunkOffset = 0;
|
|
13315
13334
|
},
|
|
@@ -13334,11 +13353,11 @@ class ao extends qu {
|
|
|
13334
13353
|
return n.byteLength > r && (n = n.slice(t, a)), new Uint8Array(n);
|
|
13335
13354
|
}
|
|
13336
13355
|
}
|
|
13337
|
-
class
|
|
13356
|
+
class lb extends Uo {
|
|
13338
13357
|
constructor(t) {
|
|
13339
13358
|
super();
|
|
13340
13359
|
const r = this, i = new TransformStream(), a = [];
|
|
13341
|
-
t && a.push([
|
|
13360
|
+
t && a.push([ab, t]), Object.defineProperty(r, Bu, {
|
|
13342
13361
|
get() {
|
|
13343
13362
|
return i.writable;
|
|
13344
13363
|
}
|
|
@@ -13348,7 +13367,7 @@ class ab extends Uo {
|
|
|
13348
13367
|
return this.blob;
|
|
13349
13368
|
}
|
|
13350
13369
|
}
|
|
13351
|
-
class
|
|
13370
|
+
class fb extends qu {
|
|
13352
13371
|
constructor(t) {
|
|
13353
13372
|
super(), this.readers = t;
|
|
13354
13373
|
}
|
|
@@ -13395,7 +13414,7 @@ class gc extends Uo {
|
|
|
13395
13414
|
else {
|
|
13396
13415
|
const { value: m, done: g } = await t.next();
|
|
13397
13416
|
if (g && !m)
|
|
13398
|
-
throw new Error(
|
|
13417
|
+
throw new Error(ib);
|
|
13399
13418
|
a = m, a.size = 0, a.maxSize && (i.maxSize = a.maxSize), i.availableSize = i.maxSize, await li(a), s = m.writable, n = s.getWriter(), await this.write(p);
|
|
13400
13419
|
}
|
|
13401
13420
|
},
|
|
@@ -13423,12 +13442,12 @@ async function li(e, t) {
|
|
|
13423
13442
|
else
|
|
13424
13443
|
return Promise.resolve();
|
|
13425
13444
|
}
|
|
13426
|
-
function
|
|
13427
|
-
return Array.isArray(e) && (e = new
|
|
13445
|
+
function cb(e) {
|
|
13446
|
+
return Array.isArray(e) && (e = new fb(e)), e instanceof ReadableStream && (e = {
|
|
13428
13447
|
readable: e
|
|
13429
13448
|
}), e;
|
|
13430
13449
|
}
|
|
13431
|
-
function
|
|
13450
|
+
function pb(e) {
|
|
13432
13451
|
e.writable === lt && typeof e.next == us && (e = new gc(e)), e instanceof WritableStream && (e = {
|
|
13433
13452
|
writable: e
|
|
13434
13453
|
});
|
|
@@ -13443,9 +13462,9 @@ function fb(e) {
|
|
|
13443
13462
|
function et(e, t, r, i) {
|
|
13444
13463
|
return e.readUint8Array(t, r, i);
|
|
13445
13464
|
}
|
|
13446
|
-
const Mu = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),
|
|
13447
|
-
function
|
|
13448
|
-
if (
|
|
13465
|
+
const Mu = "\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""), ub = Mu.length == 256;
|
|
13466
|
+
function db(e) {
|
|
13467
|
+
if (ub) {
|
|
13449
13468
|
let t = "";
|
|
13450
13469
|
for (let r = 0; r < e.length; r++)
|
|
13451
13470
|
t += Mu[e[r]];
|
|
@@ -13454,9 +13473,9 @@ function pb(e) {
|
|
|
13454
13473
|
return new TextDecoder().decode(e);
|
|
13455
13474
|
}
|
|
13456
13475
|
function zs(e, t) {
|
|
13457
|
-
return t && t.trim().toLowerCase() == "cp437" ?
|
|
13476
|
+
return t && t.trim().toLowerCase() == "cp437" ? db(e) : new TextDecoder(t).decode(e);
|
|
13458
13477
|
}
|
|
13459
|
-
const Wu = "filename", zu = "rawFilename", Hu = "comment", Vu = "rawComment", Zu = "uncompressedSize", Gu = "compressedSize", Yu = "offset", oo = "diskNumberStart", lo = "lastModDate", fo = "rawLastModDate", Ku = "lastAccessDate",
|
|
13478
|
+
const Wu = "filename", zu = "rawFilename", Hu = "comment", Vu = "rawComment", Zu = "uncompressedSize", Gu = "compressedSize", Yu = "offset", oo = "diskNumberStart", lo = "lastModDate", fo = "rawLastModDate", Ku = "lastAccessDate", hb = "rawLastAccessDate", Xu = "creationDate", mb = "rawCreationDate", yb = "internalFileAttribute", gb = "internalFileAttributes", wb = "externalFileAttribute", bb = "externalFileAttributes", _b = "msDosCompatible", vb = "zip64", xb = "encrypted", kb = "version", Pb = "versionMadeBy", Eb = "zipCrypto", Sb = "directory", Tb = "executable", Ob = [
|
|
13460
13479
|
Wu,
|
|
13461
13480
|
zu,
|
|
13462
13481
|
Gu,
|
|
@@ -13470,8 +13489,6 @@ const Wu = "filename", zu = "rawFilename", Hu = "comment", Vu = "rawComment", Zu
|
|
|
13470
13489
|
Yu,
|
|
13471
13490
|
oo,
|
|
13472
13491
|
oo,
|
|
13473
|
-
hb,
|
|
13474
|
-
mb,
|
|
13475
13492
|
yb,
|
|
13476
13493
|
gb,
|
|
13477
13494
|
wb,
|
|
@@ -13482,6 +13499,8 @@ const Wu = "filename", zu = "rawFilename", Hu = "comment", Vu = "rawComment", Zu
|
|
|
13482
13499
|
kb,
|
|
13483
13500
|
Pb,
|
|
13484
13501
|
Eb,
|
|
13502
|
+
Sb,
|
|
13503
|
+
Tb,
|
|
13485
13504
|
"bitFlag",
|
|
13486
13505
|
"signature",
|
|
13487
13506
|
"filenameUTF8",
|
|
@@ -13498,15 +13517,15 @@ const Wu = "filename", zu = "rawFilename", Hu = "comment", Vu = "rawComment", Zu
|
|
|
13498
13517
|
];
|
|
13499
13518
|
class wc {
|
|
13500
13519
|
constructor(t) {
|
|
13501
|
-
|
|
13520
|
+
Ob.forEach((r) => this[r] = t[r]);
|
|
13502
13521
|
}
|
|
13503
13522
|
}
|
|
13504
|
-
const Ca = "File format is not recognized",
|
|
13523
|
+
const Ca = "File format is not recognized", Ab = "End of central directory not found", $b = "End of Zip64 central directory locator not found", Rb = "Central directory header not found", Fb = "Local file header not found", Ib = "Zip64 extra field not found", Lb = "File contains encrypted entry", Cb = "Encryption method not supported", bc = "Compression method not supported", _c = "Split zip file", vc = "utf-8", xc = "cp437", Nb = [
|
|
13505
13524
|
[Zu, Fr],
|
|
13506
13525
|
[Gu, Fr],
|
|
13507
13526
|
[Yu, Fr],
|
|
13508
13527
|
[oo, mr]
|
|
13509
|
-
],
|
|
13528
|
+
], Db = {
|
|
13510
13529
|
[mr]: {
|
|
13511
13530
|
getValue: Be,
|
|
13512
13531
|
bytes: 4
|
|
@@ -13519,9 +13538,9 @@ const Ca = "File format is not recognized", Tb = "End of central directory not f
|
|
|
13519
13538
|
class kc {
|
|
13520
13539
|
constructor(t, r = {}) {
|
|
13521
13540
|
Object.assign(this, {
|
|
13522
|
-
reader:
|
|
13541
|
+
reader: cb(t),
|
|
13523
13542
|
options: r,
|
|
13524
|
-
config:
|
|
13543
|
+
config: gw()
|
|
13525
13544
|
});
|
|
13526
13545
|
}
|
|
13527
13546
|
async *getEntriesGenerator(t = {}) {
|
|
@@ -13530,11 +13549,11 @@ class kc {
|
|
|
13530
13549
|
const { config: a } = r;
|
|
13531
13550
|
if (await li(i), (i.size === lt || !i.readUint8Array) && (i = new ao(await new Response(i.readable).blob()), await li(i)), i.size < Xr)
|
|
13532
13551
|
throw new Error(Ca);
|
|
13533
|
-
i.chunkSize =
|
|
13534
|
-
const s = await
|
|
13552
|
+
i.chunkSize = ww(a);
|
|
13553
|
+
const s = await Wb(i, sw, i.size, Xr, mr * 16);
|
|
13535
13554
|
if (!s) {
|
|
13536
13555
|
const P = await et(i, 0, 4), S = Ye(P);
|
|
13537
|
-
throw Be(S) ==
|
|
13556
|
+
throw Be(S) == nw ? new Error(_c) : new Error(Ab);
|
|
13538
13557
|
}
|
|
13539
13558
|
const n = Ye(s);
|
|
13540
13559
|
let o = Be(n, 12), l = Be(n, 16);
|
|
@@ -13544,7 +13563,7 @@ class kc {
|
|
|
13544
13563
|
let A = Ge(n, 6), y = Ge(n, 8), w = 0, b = 0;
|
|
13545
13564
|
if (l == Fr || o == Fr || y == mr || A == mr) {
|
|
13546
13565
|
const P = await et(i, s.offset - Aa, Aa), S = Ye(P);
|
|
13547
|
-
if (Be(S, 0) ==
|
|
13566
|
+
if (Be(S, 0) == iw) {
|
|
13548
13567
|
l = Hs(S, 8);
|
|
13549
13568
|
let N = await et(i, l, $a, -1), I = Ye(N);
|
|
13550
13569
|
const U = s.offset - Aa - $a;
|
|
@@ -13553,7 +13572,7 @@ class kc {
|
|
|
13553
13572
|
l = U, w = l - q, N = await et(i, l, $a, -1), I = Ye(N);
|
|
13554
13573
|
}
|
|
13555
13574
|
if (Be(I, 0) != Kf)
|
|
13556
|
-
throw new Error(
|
|
13575
|
+
throw new Error($b);
|
|
13557
13576
|
m == mr && (m = Be(I, 16)), A == mr && (A = Be(I, 20)), y == mr && (y = Hs(I, 32)), o == Fr && (o = Hs(I, 40)), l -= o;
|
|
13558
13577
|
}
|
|
13559
13578
|
}
|
|
@@ -13574,9 +13593,9 @@ class kc {
|
|
|
13574
13593
|
throw new Error(Ca);
|
|
13575
13594
|
const C = it(r, t, "filenameEncoding"), E = it(r, t, "commentEncoding");
|
|
13576
13595
|
for (let P = 0; P < y; P++) {
|
|
13577
|
-
const S = new
|
|
13596
|
+
const S = new jb(i, a, r.options);
|
|
13578
13597
|
if (Be(L, O) != Yf)
|
|
13579
|
-
throw new Error(
|
|
13598
|
+
throw new Error(Rb);
|
|
13580
13599
|
Ju(S, L, O + 6);
|
|
13581
13600
|
const N = !!S.bitFlag.languageEncodingFlag, I = O + 46, U = I + S.filenameLength, q = U + S.extraFieldLength, W = Ge(L, O + 4), X = W >> 8 == 0, V = W >> 8 == 3, se = k.subarray(I, U), Z = Ge(L, O + 32), Q = q + Z, ee = k.subarray(q, Q), G = N, fe = N, ie = Be(L, O + 38), ae = X && (cn(L, O + 38) & ec) == ec || V && (ie >> 16 & tc) == tc || se.length && se[se.length - 1] == nc.charCodeAt(0), Te = V && (ie >> 16 & rc) == rc, Ae = Be(L, O + 42) + w;
|
|
13582
13601
|
Object.assign(S, {
|
|
@@ -13628,7 +13647,7 @@ class kc {
|
|
|
13628
13647
|
async close() {
|
|
13629
13648
|
}
|
|
13630
13649
|
}
|
|
13631
|
-
class
|
|
13650
|
+
class jb {
|
|
13632
13651
|
constructor(t, r, i) {
|
|
13633
13652
|
Object.assign(this, {
|
|
13634
13653
|
reader: t,
|
|
@@ -13652,12 +13671,12 @@ class Nb {
|
|
|
13652
13671
|
} = a, w = r.localDirectory = {}, b = await et(s, n, 30, o), O = Ye(b);
|
|
13653
13672
|
let k = it(a, i, "password"), L = it(a, i, "rawPassword");
|
|
13654
13673
|
const $ = it(a, i, "passThrough");
|
|
13655
|
-
if (k = k && k.length && k, L = L && L.length && L, l && l.originalCompressionMethod !=
|
|
13674
|
+
if (k = k && k.length && k, L = L && L.length && L, l && l.originalCompressionMethod != tw)
|
|
13656
13675
|
throw new Error(bc);
|
|
13657
|
-
if (c !=
|
|
13676
|
+
if (c != ew && c != Q1 && !$)
|
|
13658
13677
|
throw new Error(bc);
|
|
13659
|
-
if (Be(O, 0) !=
|
|
13660
|
-
throw new Error(
|
|
13678
|
+
if (Be(O, 0) != rw)
|
|
13679
|
+
throw new Error(Fb);
|
|
13661
13680
|
Ju(w, O, 4), w.rawExtraField = w.extraFieldLength ? await et(s, n + 30 + w.filenameLength, w.extraFieldLength, o) : new Uint8Array(), Qu(a, w, O, 4, !0), Object.assign(r, {
|
|
13662
13681
|
lastAccessDate: w.lastAccessDate,
|
|
13663
13682
|
creationDate: w.creationDate
|
|
@@ -13665,9 +13684,9 @@ class Nb {
|
|
|
13665
13684
|
const C = a.encrypted && w.encrypted && !$, E = C && !l;
|
|
13666
13685
|
if ($ || (r.zipCrypto = E), C) {
|
|
13667
13686
|
if (!E && l.strength === lt)
|
|
13668
|
-
throw new Error(
|
|
13687
|
+
throw new Error(Cb);
|
|
13669
13688
|
if (!k && !L)
|
|
13670
|
-
throw new Error(
|
|
13689
|
+
throw new Error(Lb);
|
|
13671
13690
|
}
|
|
13672
13691
|
const T = n + 30 + w.filenameLength + w.extraFieldLength, F = y, P = s.readable;
|
|
13673
13692
|
Object.assign(P, {
|
|
@@ -13676,7 +13695,7 @@ class Nb {
|
|
|
13676
13695
|
size: F
|
|
13677
13696
|
});
|
|
13678
13697
|
const S = it(a, i, "signal"), N = it(a, i, "checkPasswordOnly");
|
|
13679
|
-
N && (t = new WritableStream()), t =
|
|
13698
|
+
N && (t = new WritableStream()), t = pb(t), await li(t, $ ? y : A);
|
|
13680
13699
|
const { writable: I } = t, { onstart: U, onprogress: q, onend: W } = i, X = {
|
|
13681
13700
|
options: {
|
|
13682
13701
|
codecType: Du,
|
|
@@ -13699,7 +13718,7 @@ class Nb {
|
|
|
13699
13718
|
};
|
|
13700
13719
|
let V = 0;
|
|
13701
13720
|
try {
|
|
13702
|
-
({ outputSize: V } = await
|
|
13721
|
+
({ outputSize: V } = await rb({ readable: P, writable: I }, X));
|
|
13703
13722
|
} catch (se) {
|
|
13704
13723
|
if (!N || se.message != No)
|
|
13705
13724
|
throw se;
|
|
@@ -13716,12 +13735,12 @@ function Ju(e, t, r) {
|
|
|
13716
13735
|
encrypted: a,
|
|
13717
13736
|
version: Ge(t, r),
|
|
13718
13737
|
bitFlag: {
|
|
13719
|
-
level: (i &
|
|
13738
|
+
level: (i & hw) >> 1,
|
|
13720
13739
|
dataDescriptor: (i & Jf) == Jf,
|
|
13721
13740
|
languageEncodingFlag: (i & Qf) == Qf
|
|
13722
13741
|
},
|
|
13723
13742
|
rawLastModDate: s,
|
|
13724
|
-
lastModDate:
|
|
13743
|
+
lastModDate: zb(s),
|
|
13725
13744
|
filenameLength: Ge(t, r + 22),
|
|
13726
13745
|
extraFieldLength: Ge(t, r + 24)
|
|
13727
13746
|
});
|
|
@@ -13745,31 +13764,31 @@ function Qu(e, t, r, i, a) {
|
|
|
13745
13764
|
uncompressedSize: Be(r, i + 18),
|
|
13746
13765
|
compressedSize: Be(r, i + 14)
|
|
13747
13766
|
});
|
|
13748
|
-
const p = n.get(
|
|
13749
|
-
p && (
|
|
13750
|
-
const d = n.get(
|
|
13767
|
+
const p = n.get(aw);
|
|
13768
|
+
p && (Ub(p, t), t.extraFieldZip64 = p);
|
|
13769
|
+
const d = n.get(pw);
|
|
13751
13770
|
d && (Pc(d, Wu, zu, t, e), t.extraFieldUnicodePath = d);
|
|
13752
|
-
const m = n.get(
|
|
13771
|
+
const m = n.get(uw);
|
|
13753
13772
|
m && (Pc(m, Hu, Vu, t, e), t.extraFieldUnicodeComment = m);
|
|
13754
|
-
const g = n.get(
|
|
13755
|
-
g ? (
|
|
13756
|
-
const A = n.get(
|
|
13757
|
-
A && (
|
|
13758
|
-
const y = n.get(
|
|
13759
|
-
y && (
|
|
13760
|
-
const w = n.get(
|
|
13773
|
+
const g = n.get(ow);
|
|
13774
|
+
g ? (Bb(g, t, c), t.extraFieldAES = g) : t.compressionMethod = c;
|
|
13775
|
+
const A = n.get(lw);
|
|
13776
|
+
A && (qb(A, t), t.extraFieldNTFS = A);
|
|
13777
|
+
const y = n.get(cw);
|
|
13778
|
+
y && (Mb(y, t, a), t.extraFieldExtendedTimestamp = y);
|
|
13779
|
+
const w = n.get(dw);
|
|
13761
13780
|
w && (t.extraFieldUSDZ = w);
|
|
13762
13781
|
}
|
|
13763
|
-
function
|
|
13782
|
+
function Ub(e, t) {
|
|
13764
13783
|
t.zip64 = !0;
|
|
13765
|
-
const r = Ye(e.data), i =
|
|
13784
|
+
const r = Ye(e.data), i = Nb.filter(([a, s]) => t[a] == s);
|
|
13766
13785
|
for (let a = 0, s = 0; a < i.length; a++) {
|
|
13767
13786
|
const [n, o] = i[a];
|
|
13768
13787
|
if (t[n] == o) {
|
|
13769
|
-
const l =
|
|
13788
|
+
const l = Db[o];
|
|
13770
13789
|
t[n] = e[n] = l.getValue(r, s), s += l.bytes;
|
|
13771
13790
|
} else if (e[n])
|
|
13772
|
-
throw new Error(
|
|
13791
|
+
throw new Error(Ib);
|
|
13773
13792
|
}
|
|
13774
13793
|
}
|
|
13775
13794
|
function Pc(e, t, r, i, a) {
|
|
@@ -13784,7 +13803,7 @@ function Pc(e, t, r, i, a) {
|
|
|
13784
13803
|
valid: !a.bitFlag.languageEncodingFlag && l == Be(o, 0)
|
|
13785
13804
|
}), e.valid && (i[t] = e[t], i[t + "UTF8"] = !0);
|
|
13786
13805
|
}
|
|
13787
|
-
function
|
|
13806
|
+
function Bb(e, t, r) {
|
|
13788
13807
|
const i = Ye(e.data), a = cn(i, 4);
|
|
13789
13808
|
Object.assign(e, {
|
|
13790
13809
|
vendorVersion: cn(i, 0),
|
|
@@ -13794,13 +13813,13 @@ function jb(e, t, r) {
|
|
|
13794
13813
|
compressionMethod: Ge(i, 5)
|
|
13795
13814
|
}), t.compressionMethod = e.compressionMethod;
|
|
13796
13815
|
}
|
|
13797
|
-
function
|
|
13816
|
+
function qb(e, t) {
|
|
13798
13817
|
const r = Ye(e.data);
|
|
13799
13818
|
let i = 4, a;
|
|
13800
13819
|
try {
|
|
13801
13820
|
for (; i < e.data.length && !a; ) {
|
|
13802
13821
|
const s = Ge(r, i), n = Ge(r, i + 2);
|
|
13803
|
-
s ==
|
|
13822
|
+
s == fw && (a = e.data.slice(i + 4, i + 4 + n)), i += 4 + n;
|
|
13804
13823
|
}
|
|
13805
13824
|
} catch {
|
|
13806
13825
|
}
|
|
@@ -13818,9 +13837,9 @@ function Ub(e, t) {
|
|
|
13818
13837
|
} catch {
|
|
13819
13838
|
}
|
|
13820
13839
|
}
|
|
13821
|
-
function
|
|
13840
|
+
function Mb(e, t, r) {
|
|
13822
13841
|
const i = Ye(e.data), a = cn(i, 0), s = [], n = [];
|
|
13823
|
-
r ? ((a & 1) == 1 && (s.push(lo), n.push(fo)), (a & 2) == 2 && (s.push(Ku), n.push(
|
|
13842
|
+
r ? ((a & 1) == 1 && (s.push(lo), n.push(fo)), (a & 2) == 2 && (s.push(Ku), n.push(hb)), (a & 4) == 4 && (s.push(Xu), n.push(mb))) : e.data.length >= 5 && (s.push(lo), n.push(fo));
|
|
13824
13843
|
let o = 1;
|
|
13825
13844
|
s.forEach((l, c) => {
|
|
13826
13845
|
if (e.data.length >= o + 4) {
|
|
@@ -13832,9 +13851,9 @@ function Bb(e, t, r) {
|
|
|
13832
13851
|
o += 4;
|
|
13833
13852
|
});
|
|
13834
13853
|
}
|
|
13835
|
-
async function
|
|
13854
|
+
async function Wb(e, t, r, i, a) {
|
|
13836
13855
|
const s = new Uint8Array(4), n = Ye(s);
|
|
13837
|
-
|
|
13856
|
+
Hb(n, 0, t);
|
|
13838
13857
|
const o = i + a;
|
|
13839
13858
|
return await l(i) || await l(Math.min(o, r));
|
|
13840
13859
|
async function l(c) {
|
|
@@ -13850,7 +13869,7 @@ async function qb(e, t, r, i, a) {
|
|
|
13850
13869
|
function it(e, t, r) {
|
|
13851
13870
|
return t[r] === lt ? e.options[r] : t[r];
|
|
13852
13871
|
}
|
|
13853
|
-
function
|
|
13872
|
+
function zb(e) {
|
|
13854
13873
|
const t = (e & 4294901760) >> 16, r = e & 65535;
|
|
13855
13874
|
try {
|
|
13856
13875
|
return new Date(1980 + ((t & 65024) >> 9), ((t & 480) >> 5) - 1, t & 31, (r & 63488) >> 11, (r & 2016) >> 5, (r & 31) * 2, 0);
|
|
@@ -13872,7 +13891,7 @@ function Be(e, t) {
|
|
|
13872
13891
|
function Hs(e, t) {
|
|
13873
13892
|
return Number(e.getBigUint64(t, !0));
|
|
13874
13893
|
}
|
|
13875
|
-
function
|
|
13894
|
+
function Hb(e, t, r) {
|
|
13876
13895
|
e.setUint32(t, r, !0);
|
|
13877
13896
|
}
|
|
13878
13897
|
function Ye(e) {
|
|
@@ -13884,9 +13903,9 @@ try {
|
|
|
13884
13903
|
} catch {
|
|
13885
13904
|
}
|
|
13886
13905
|
Co({ baseURL: ed });
|
|
13887
|
-
|
|
13888
|
-
Co({ Deflate:
|
|
13889
|
-
class
|
|
13906
|
+
sb(Co);
|
|
13907
|
+
Co({ Deflate: R1, Inflate: J1 });
|
|
13908
|
+
class Vb {
|
|
13890
13909
|
constructor(t) {
|
|
13891
13910
|
this.fileTree = t;
|
|
13892
13911
|
}
|
|
@@ -13935,7 +13954,7 @@ class fi {
|
|
|
13935
13954
|
return new fi(r);
|
|
13936
13955
|
}
|
|
13937
13956
|
async read(t) {
|
|
13938
|
-
const r = await this.getEntry(t), i = await r.getData(new
|
|
13957
|
+
const r = await this.getEntry(t), i = await r.getData(new lb());
|
|
13939
13958
|
return new Lr(i.stream(), t, {
|
|
13940
13959
|
filesize: r.uncompressedSize
|
|
13941
13960
|
});
|
|
@@ -13962,7 +13981,7 @@ class fi {
|
|
|
13962
13981
|
return Array.from(t.keys());
|
|
13963
13982
|
}
|
|
13964
13983
|
}
|
|
13965
|
-
class
|
|
13984
|
+
class Zb {
|
|
13966
13985
|
constructor(t, r) {
|
|
13967
13986
|
this.chroot = t, this.backend = r;
|
|
13968
13987
|
}
|
|
@@ -13971,7 +13990,7 @@ class Hb {
|
|
|
13971
13990
|
return this.backend.read(r);
|
|
13972
13991
|
}
|
|
13973
13992
|
}
|
|
13974
|
-
class
|
|
13993
|
+
class Gb {
|
|
13975
13994
|
/**
|
|
13976
13995
|
* Creates a new OverlayFilesystem.
|
|
13977
13996
|
*
|
|
@@ -14011,7 +14030,7 @@ class Vb {
|
|
|
14011
14030
|
);
|
|
14012
14031
|
}
|
|
14013
14032
|
}
|
|
14014
|
-
class
|
|
14033
|
+
class Yb {
|
|
14015
14034
|
constructor(t) {
|
|
14016
14035
|
if (this.baseUrl = "", this.options = t, this.isDataUrl = t.baseUrl.startsWith("data:"), this.isDataUrl)
|
|
14017
14036
|
return;
|
|
@@ -14075,7 +14094,7 @@ async function ci(e, t) {
|
|
|
14075
14094
|
...t
|
|
14076
14095
|
});
|
|
14077
14096
|
}
|
|
14078
|
-
async function
|
|
14097
|
+
async function Kb(e) {
|
|
14079
14098
|
if (!e.body)
|
|
14080
14099
|
return [e, e];
|
|
14081
14100
|
const [t, r] = e.body.tee();
|
|
@@ -14084,15 +14103,15 @@ async function Gb(e) {
|
|
|
14084
14103
|
await ci(e, { body: r, duplex: "half" })
|
|
14085
14104
|
];
|
|
14086
14105
|
}
|
|
14087
|
-
class
|
|
14106
|
+
class Xb extends Error {
|
|
14088
14107
|
constructor(t, r, i) {
|
|
14089
14108
|
super(
|
|
14090
14109
|
`Could not fetch ${t} – your network appears to be blocking this request (HTTP ${r}). This often happens on school, university, or corporate networks. Try switching to a different network or using a VPN.`
|
|
14091
14110
|
), this.name = "FirewallInterferenceError", this.url = t, this.status = r, this.statusText = i;
|
|
14092
14111
|
}
|
|
14093
14112
|
}
|
|
14094
|
-
const
|
|
14095
|
-
async function
|
|
14113
|
+
const Jb = "X-Playground-Cors-Proxy";
|
|
14114
|
+
async function Qb(e, t, r, i) {
|
|
14096
14115
|
var p;
|
|
14097
14116
|
let a = typeof e == "string" ? new Request(e, t) : e;
|
|
14098
14117
|
const s = i ? new URL(i) : null;
|
|
@@ -14108,7 +14127,7 @@ async function Xb(e, t, r, i) {
|
|
|
14108
14127
|
return await fetch(a);
|
|
14109
14128
|
if (s && n.protocol === s.protocol && n.hostname === s.hostname && n.port === s.port && n.pathname.startsWith(s.pathname))
|
|
14110
14129
|
return await fetch(a);
|
|
14111
|
-
const [l, c] = await
|
|
14130
|
+
const [l, c] = await Kb(a);
|
|
14112
14131
|
try {
|
|
14113
14132
|
return await fetch(l);
|
|
14114
14133
|
} catch {
|
|
@@ -14125,8 +14144,8 @@ async function Xb(e, t, r, i) {
|
|
|
14125
14144
|
body: b,
|
|
14126
14145
|
...g && { credentials: "include" }
|
|
14127
14146
|
}), k = await fetch(O);
|
|
14128
|
-
if (!k.headers.has(
|
|
14129
|
-
throw new
|
|
14147
|
+
if (!k.headers.has(Jb))
|
|
14148
|
+
throw new Xb(
|
|
14130
14149
|
a.url,
|
|
14131
14150
|
k.status,
|
|
14132
14151
|
k.statusText
|
|
@@ -14134,7 +14153,7 @@ async function Xb(e, t, r, i) {
|
|
|
14134
14153
|
return k;
|
|
14135
14154
|
}
|
|
14136
14155
|
}
|
|
14137
|
-
const
|
|
14156
|
+
const e_ = `Blueprint resource of type "bundled" requires a filesystem.
|
|
14138
14157
|
|
|
14139
14158
|
This Blueprint refers to files that should be bundled with it (like images, plugins, or themes), but the filesystem needed to access these files is not available. This usually happens when:
|
|
14140
14159
|
|
|
@@ -14147,8 +14166,8 @@ To fix this:
|
|
|
14147
14166
|
• Check that the "resource": "bundled" references in your Blueprint match actual files in your bundle
|
|
14148
14167
|
|
|
14149
14168
|
Learn more about Blueprint resources: https://wordpress.github.io/wordpress-playground/blueprints/data-format#resources`;
|
|
14150
|
-
class
|
|
14151
|
-
constructor(t =
|
|
14169
|
+
class t_ extends Error {
|
|
14170
|
+
constructor(t = e_) {
|
|
14152
14171
|
super(t), this.name = "BlueprintFilesystemRequiredError";
|
|
14153
14172
|
}
|
|
14154
14173
|
}
|
|
@@ -14157,7 +14176,7 @@ class Da extends Error {
|
|
|
14157
14176
|
super(t, i), this.name = "ResourceDownloadError", this.url = r;
|
|
14158
14177
|
}
|
|
14159
14178
|
}
|
|
14160
|
-
const
|
|
14179
|
+
const r_ = [
|
|
14161
14180
|
"vfs",
|
|
14162
14181
|
"literal",
|
|
14163
14182
|
"wordpress.org/themes",
|
|
@@ -14167,17 +14186,17 @@ const e_ = [
|
|
|
14167
14186
|
"bundled",
|
|
14168
14187
|
"zip"
|
|
14169
14188
|
];
|
|
14170
|
-
function
|
|
14171
|
-
return e && typeof e == "object" && typeof e.resource == "string" &&
|
|
14189
|
+
function n_(e) {
|
|
14190
|
+
return e && typeof e == "object" && typeof e.resource == "string" && r_.includes(e.resource);
|
|
14172
14191
|
}
|
|
14173
|
-
function
|
|
14192
|
+
function s_(e) {
|
|
14174
14193
|
try {
|
|
14175
14194
|
return new URL(e).hostname === "github-proxy.com";
|
|
14176
14195
|
} catch {
|
|
14177
14196
|
return !1;
|
|
14178
14197
|
}
|
|
14179
14198
|
}
|
|
14180
|
-
function
|
|
14199
|
+
function i_(e) {
|
|
14181
14200
|
let t;
|
|
14182
14201
|
try {
|
|
14183
14202
|
t = new URL(e);
|
|
@@ -14243,8 +14262,8 @@ class Pt {
|
|
|
14243
14262
|
streamBundledFile: s,
|
|
14244
14263
|
gitAdditionalHeadersCallback: n
|
|
14245
14264
|
}) {
|
|
14246
|
-
if (t.resource === "url" &&
|
|
14247
|
-
const l =
|
|
14265
|
+
if (t.resource === "url" && s_(t.url)) {
|
|
14266
|
+
const l = i_(t.url);
|
|
14248
14267
|
l && (console.warn(
|
|
14249
14268
|
`[Blueprints] github-proxy.com is deprecated and will stop working soon. The URL "${t.url}" has been automatically converted to a ${l.resource} resource. Please update your Blueprint to use native resource types. See: https://wordpress.github.io/wordpress-playground/blueprints/steps/resources`
|
|
14250
14269
|
), t = l);
|
|
@@ -14252,33 +14271,33 @@ class Pt {
|
|
|
14252
14271
|
let o;
|
|
14253
14272
|
switch (t.resource) {
|
|
14254
14273
|
case "vfs":
|
|
14255
|
-
o = new
|
|
14274
|
+
o = new a_(t, i);
|
|
14256
14275
|
break;
|
|
14257
14276
|
case "literal":
|
|
14258
|
-
o = new
|
|
14277
|
+
o = new o_(t, i);
|
|
14259
14278
|
break;
|
|
14260
14279
|
case "wordpress.org/themes":
|
|
14261
|
-
o = new
|
|
14280
|
+
o = new h_(t, i);
|
|
14262
14281
|
break;
|
|
14263
14282
|
case "wordpress.org/plugins":
|
|
14264
|
-
o = new
|
|
14283
|
+
o = new m_(t, i);
|
|
14265
14284
|
break;
|
|
14266
14285
|
case "url":
|
|
14267
|
-
o = new
|
|
14286
|
+
o = new c_(t, i, { corsProxy: a });
|
|
14268
14287
|
break;
|
|
14269
14288
|
case "git:directory":
|
|
14270
|
-
o = new
|
|
14289
|
+
o = new p_(t, i, {
|
|
14271
14290
|
corsProxy: a,
|
|
14272
14291
|
additionalHeaders: n
|
|
14273
14292
|
});
|
|
14274
14293
|
break;
|
|
14275
14294
|
case "literal:directory":
|
|
14276
|
-
o = new
|
|
14295
|
+
o = new d_(t, i);
|
|
14277
14296
|
break;
|
|
14278
14297
|
case "bundled":
|
|
14279
14298
|
if (!s)
|
|
14280
|
-
throw new
|
|
14281
|
-
o = new
|
|
14299
|
+
throw new t_();
|
|
14300
|
+
o = new w_(
|
|
14282
14301
|
t,
|
|
14283
14302
|
s,
|
|
14284
14303
|
i
|
|
@@ -14292,7 +14311,7 @@ class Pt {
|
|
|
14292
14311
|
streamBundledFile: s,
|
|
14293
14312
|
gitAdditionalHeadersCallback: n
|
|
14294
14313
|
});
|
|
14295
|
-
o = new
|
|
14314
|
+
o = new b_(t, l, i);
|
|
14296
14315
|
break;
|
|
14297
14316
|
}
|
|
14298
14317
|
default:
|
|
@@ -14300,7 +14319,7 @@ class Pt {
|
|
|
14300
14319
|
`Unknown resource type: ${t.resource}`
|
|
14301
14320
|
);
|
|
14302
14321
|
}
|
|
14303
|
-
return r && (o = new
|
|
14322
|
+
return r && (o = new g_(o, r)), new y_(o);
|
|
14304
14323
|
}
|
|
14305
14324
|
}
|
|
14306
14325
|
class td extends Pt {
|
|
@@ -14328,7 +14347,7 @@ class td extends Pt {
|
|
|
14328
14347
|
this.resource.setPlayground(t);
|
|
14329
14348
|
}
|
|
14330
14349
|
}
|
|
14331
|
-
class
|
|
14350
|
+
class a_ extends Pt {
|
|
14332
14351
|
/**
|
|
14333
14352
|
* Creates a new instance of `VFSResource`.
|
|
14334
14353
|
* @param playground The playground client.
|
|
@@ -14351,7 +14370,7 @@ class s_ extends Pt {
|
|
|
14351
14370
|
return this.resource.path.split("/").pop() || "";
|
|
14352
14371
|
}
|
|
14353
14372
|
}
|
|
14354
|
-
class
|
|
14373
|
+
class o_ extends Pt {
|
|
14355
14374
|
/**
|
|
14356
14375
|
* Creates a new instance of `LiteralResource`.
|
|
14357
14376
|
* @param resource The literal reference.
|
|
@@ -14384,7 +14403,7 @@ class Bo extends Pt {
|
|
|
14384
14403
|
(r = this.progress) == null || r.setCaption(this.caption);
|
|
14385
14404
|
const t = this.getURL();
|
|
14386
14405
|
try {
|
|
14387
|
-
let s = await
|
|
14406
|
+
let s = await Qb(
|
|
14388
14407
|
t,
|
|
14389
14408
|
void 0,
|
|
14390
14409
|
this.corsProxy,
|
|
@@ -14397,13 +14416,13 @@ class Bo extends Pt {
|
|
|
14397
14416
|
);
|
|
14398
14417
|
if (s = await Ad(
|
|
14399
14418
|
s,
|
|
14400
|
-
((a = this.progress) == null ? void 0 : a.loadingListener) ??
|
|
14419
|
+
((a = this.progress) == null ? void 0 : a.loadingListener) ?? f_
|
|
14401
14420
|
), s.status !== 200)
|
|
14402
14421
|
throw new Da(
|
|
14403
14422
|
`Could not download "${t}"`,
|
|
14404
14423
|
t
|
|
14405
14424
|
);
|
|
14406
|
-
const n = this.name ||
|
|
14425
|
+
const n = this.name || l_(
|
|
14407
14426
|
s.headers.get("content-disposition") || ""
|
|
14408
14427
|
) || encodeURIComponent(t);
|
|
14409
14428
|
return new File([await s.arrayBuffer()], n);
|
|
@@ -14438,7 +14457,7 @@ Confirm that the URL is correct, the server is reachable, and the file is actual
|
|
|
14438
14457
|
return !0;
|
|
14439
14458
|
}
|
|
14440
14459
|
}
|
|
14441
|
-
function
|
|
14460
|
+
function l_(e) {
|
|
14442
14461
|
if (!e)
|
|
14443
14462
|
return null;
|
|
14444
14463
|
const t = e.match(/filename\*?=([^;]+)/i);
|
|
@@ -14455,9 +14474,9 @@ function a_(e) {
|
|
|
14455
14474
|
}
|
|
14456
14475
|
return r;
|
|
14457
14476
|
}
|
|
14458
|
-
const
|
|
14477
|
+
const f_ = () => {
|
|
14459
14478
|
};
|
|
14460
|
-
class
|
|
14479
|
+
class c_ extends Bo {
|
|
14461
14480
|
/**
|
|
14462
14481
|
* Creates a new instance of `UrlResource`.
|
|
14463
14482
|
* @param resource The URL reference.
|
|
@@ -14483,7 +14502,7 @@ class l_ extends Bo {
|
|
|
14483
14502
|
return this.resource.caption ?? super.caption;
|
|
14484
14503
|
}
|
|
14485
14504
|
}
|
|
14486
|
-
class
|
|
14505
|
+
class p_ extends Pt {
|
|
14487
14506
|
constructor(t, r, i) {
|
|
14488
14507
|
super(), this.reference = t, this._progress = r, this.options = i;
|
|
14489
14508
|
}
|
|
@@ -14491,21 +14510,21 @@ class f_ extends Pt {
|
|
|
14491
14510
|
var i, a, s;
|
|
14492
14511
|
const t = ((a = (i = this.options) == null ? void 0 : i.additionalHeaders) == null ? void 0 : a.call(i, this.reference.url)) ?? {}, r = (s = this.options) != null && s.corsProxy ? `${this.options.corsProxy}${this.reference.url}` : this.reference.url;
|
|
14493
14512
|
try {
|
|
14494
|
-
const n = await
|
|
14513
|
+
const n = await t1(
|
|
14495
14514
|
r,
|
|
14496
14515
|
{
|
|
14497
14516
|
value: this.reference.ref,
|
|
14498
14517
|
type: this.reference.refType ?? "infer"
|
|
14499
14518
|
},
|
|
14500
14519
|
t
|
|
14501
|
-
), o = await
|
|
14520
|
+
), o = await e1(
|
|
14502
14521
|
r,
|
|
14503
14522
|
n,
|
|
14504
14523
|
t
|
|
14505
14524
|
), l = (this.reference.path ?? "").replace(
|
|
14506
14525
|
/^\/+/,
|
|
14507
14526
|
""
|
|
14508
|
-
), c =
|
|
14527
|
+
), c = h1(o, l), p = await Jg(
|
|
14509
14528
|
r,
|
|
14510
14529
|
n,
|
|
14511
14530
|
c,
|
|
@@ -14515,11 +14534,11 @@ class f_ extends Pt {
|
|
|
14515
14534
|
}
|
|
14516
14535
|
);
|
|
14517
14536
|
let d = p.files;
|
|
14518
|
-
return d =
|
|
14537
|
+
return d = u_(
|
|
14519
14538
|
d,
|
|
14520
14539
|
(m) => m.substring(l.length).replace(/^\/+/, "")
|
|
14521
14540
|
), this.reference[".git"] && (d = {
|
|
14522
|
-
...await
|
|
14541
|
+
...await d1({
|
|
14523
14542
|
repoUrl: this.reference.url,
|
|
14524
14543
|
commitHash: n,
|
|
14525
14544
|
ref: this.reference.ref,
|
|
@@ -14556,12 +14575,12 @@ class f_ extends Pt {
|
|
|
14556
14575
|
].filter((r) => r.length > 0).join(" ");
|
|
14557
14576
|
}
|
|
14558
14577
|
}
|
|
14559
|
-
function
|
|
14578
|
+
function u_(e, t) {
|
|
14560
14579
|
return Object.fromEntries(
|
|
14561
14580
|
Object.entries(e).map(([r, i]) => [t(r), i])
|
|
14562
14581
|
);
|
|
14563
14582
|
}
|
|
14564
|
-
class
|
|
14583
|
+
class d_ extends Pt {
|
|
14565
14584
|
constructor(t, r) {
|
|
14566
14585
|
super(), this.reference = t, this._progress = r;
|
|
14567
14586
|
}
|
|
@@ -14573,7 +14592,7 @@ class p_ extends Pt {
|
|
|
14573
14592
|
return this.reference.name;
|
|
14574
14593
|
}
|
|
14575
14594
|
}
|
|
14576
|
-
class
|
|
14595
|
+
class h_ extends Bo {
|
|
14577
14596
|
constructor(t, r) {
|
|
14578
14597
|
super(r), this.resource = t;
|
|
14579
14598
|
}
|
|
@@ -14584,7 +14603,7 @@ class u_ extends Bo {
|
|
|
14584
14603
|
return `https://downloads.wordpress.org/theme/${rd(this.resource.slug)}`;
|
|
14585
14604
|
}
|
|
14586
14605
|
}
|
|
14587
|
-
class
|
|
14606
|
+
class m_ extends Bo {
|
|
14588
14607
|
constructor(t, r) {
|
|
14589
14608
|
super(r), this.resource = t;
|
|
14590
14609
|
}
|
|
@@ -14600,13 +14619,13 @@ class d_ extends Bo {
|
|
|
14600
14619
|
function rd(e) {
|
|
14601
14620
|
return !e || e.endsWith(".zip") ? e : e + ".latest-stable.zip";
|
|
14602
14621
|
}
|
|
14603
|
-
class
|
|
14622
|
+
class y_ extends td {
|
|
14604
14623
|
/** @inheritDoc */
|
|
14605
14624
|
async resolve() {
|
|
14606
14625
|
return this.promise || (this.promise = this.resource.resolve()), this.promise;
|
|
14607
14626
|
}
|
|
14608
14627
|
}
|
|
14609
|
-
class
|
|
14628
|
+
class g_ extends td {
|
|
14610
14629
|
constructor(t, r) {
|
|
14611
14630
|
super(t), this.semaphore = r;
|
|
14612
14631
|
}
|
|
@@ -14615,7 +14634,7 @@ class m_ extends td {
|
|
|
14615
14634
|
return this.isAsync ? this.semaphore.run(() => this.resource.resolve()) : this.resource.resolve();
|
|
14616
14635
|
}
|
|
14617
14636
|
}
|
|
14618
|
-
class
|
|
14637
|
+
class w_ extends Pt {
|
|
14619
14638
|
/**
|
|
14620
14639
|
* Creates a new instance of `BlueprintResource`.
|
|
14621
14640
|
* @param resource The blueprint reference.
|
|
@@ -14668,7 +14687,7 @@ Error details: ${a instanceof Error ? a.message : String(a)}`,
|
|
|
14668
14687
|
return !0;
|
|
14669
14688
|
}
|
|
14670
14689
|
}
|
|
14671
|
-
class
|
|
14690
|
+
class b_ extends Pt {
|
|
14672
14691
|
constructor(t, r, i) {
|
|
14673
14692
|
super(), this.reference = t, this.innerResource = r, this._progress = i;
|
|
14674
14693
|
}
|
|
@@ -14678,7 +14697,7 @@ class g_ extends Pt {
|
|
|
14678
14697
|
(s = this.progress) == null || s.setCaption(`Creating ZIP: ${this.name}`);
|
|
14679
14698
|
const t = await this.innerResource.resolve();
|
|
14680
14699
|
let r;
|
|
14681
|
-
t instanceof File ? r = [t] : r =
|
|
14700
|
+
t instanceof File ? r = [t] : r = __(t.files, t.name);
|
|
14682
14701
|
const i = Yd(r), a = await Md(this.name, i);
|
|
14683
14702
|
return (n = this.progress) == null || n.set(100), a;
|
|
14684
14703
|
}
|
|
@@ -14694,7 +14713,7 @@ class g_ extends Pt {
|
|
|
14694
14713
|
return !0;
|
|
14695
14714
|
}
|
|
14696
14715
|
}
|
|
14697
|
-
function
|
|
14716
|
+
function __(e, t) {
|
|
14698
14717
|
const r = [];
|
|
14699
14718
|
function i(a, s) {
|
|
14700
14719
|
for (const [n, o] of Object.entries(a)) {
|
|
@@ -14838,7 +14857,7 @@ const nd = async (e, { pluginPath: t, pluginName: r }, i) => {
|
|
|
14838
14857
|
2
|
|
14839
14858
|
)}`
|
|
14840
14859
|
);
|
|
14841
|
-
},
|
|
14860
|
+
}, v_ = async (e, { code: t }) => {
|
|
14842
14861
|
let r = typeof t == "string" ? t : t.content;
|
|
14843
14862
|
return (r.includes('"wordpress/wp-load.php"') || r.includes("'wordpress/wp-load.php'")) && (Oe.error(
|
|
14844
14863
|
`
|
|
@@ -14863,7 +14882,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
14863
14882
|
'"wordpress/wp-load.php"',
|
|
14864
14883
|
'"/wordpress/wp-load.php"'
|
|
14865
14884
|
)), await e.run({ code: r });
|
|
14866
|
-
},
|
|
14885
|
+
}, x_ = async (e, { options: t }) => await e.run(t), co = async (e, { path: t }) => {
|
|
14867
14886
|
t.startsWith("/") || (Oe.error(
|
|
14868
14887
|
`
|
|
14869
14888
|
The rm() step in your Blueprint refers to a relative path.
|
|
@@ -14881,7 +14900,7 @@ Use: rm({ path: '/wordpress/wp-load.php' });
|
|
|
14881
14900
|
This will ensure your code works reliably regardless of the current working directory.
|
|
14882
14901
|
`.trim()
|
|
14883
14902
|
), t = `/${t}`), await e.unlink(t);
|
|
14884
|
-
},
|
|
14903
|
+
}, k_ = `<?php
|
|
14885
14904
|
|
|
14886
14905
|
/**
|
|
14887
14906
|
* Naively splits an SQL string into a sequence of queries. It
|
|
@@ -15044,7 +15063,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
15044
15063
|
return $this->state;
|
|
15045
15064
|
}
|
|
15046
15065
|
|
|
15047
|
-
}`,
|
|
15066
|
+
}`, P_ = async (e, { sql: t }, r) => {
|
|
15048
15067
|
r == null || r.tracker.setCaption("Executing SQL Queries");
|
|
15049
15068
|
const i = `/tmp/${Zs()}.sql`, a = `/tmp/${Zs()}.php`;
|
|
15050
15069
|
await e.writeFile(
|
|
@@ -15052,7 +15071,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
15052
15071
|
new Uint8Array(await t.arrayBuffer())
|
|
15053
15072
|
), await e.writeFile(
|
|
15054
15073
|
a,
|
|
15055
|
-
new TextEncoder().encode(
|
|
15074
|
+
new TextEncoder().encode(k_)
|
|
15056
15075
|
);
|
|
15057
15076
|
const s = await e.documentRoot, n = dn({ docroot: s, sqlFilename: i, streamClassFilename: a }), o = await e.run({
|
|
15058
15077
|
code: `<?php
|
|
@@ -15102,7 +15121,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
15102
15121
|
`
|
|
15103
15122
|
});
|
|
15104
15123
|
return await co(e, { path: i }), await co(e, { path: a }), o;
|
|
15105
|
-
},
|
|
15124
|
+
}, E_ = async (e, { request: t }) => {
|
|
15106
15125
|
Oe.warn(
|
|
15107
15126
|
'Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.'
|
|
15108
15127
|
);
|
|
@@ -15112,7 +15131,7 @@ class WP_MySQL_Naive_Query_Stream {
|
|
|
15112
15131
|
`Request failed with status ${r.httpStatusCode}`
|
|
15113
15132
|
);
|
|
15114
15133
|
return r;
|
|
15115
|
-
},
|
|
15134
|
+
}, S_ = "8.3", id = async (e, t, r, i = !0) => {
|
|
15116
15135
|
const a = `/tmp/file-${Math.random()}.zip`;
|
|
15117
15136
|
if (t instanceof File) {
|
|
15118
15137
|
const n = t;
|
|
@@ -15628,7 +15647,7 @@ class WP_Config_Transformer {
|
|
|
15628
15647
|
}
|
|
15629
15648
|
}
|
|
15630
15649
|
`;
|
|
15631
|
-
async function
|
|
15650
|
+
async function T_(e, t) {
|
|
15632
15651
|
const r = Se(t, "wp-config.php"), i = {
|
|
15633
15652
|
DB_NAME: "wordpress"
|
|
15634
15653
|
};
|
|
@@ -15654,7 +15673,7 @@ async function E_(e, t) {
|
|
|
15654
15673
|
})).errors.length > 0)
|
|
15655
15674
|
throw new Error("Failed to auto-configure wp-config.php.");
|
|
15656
15675
|
}
|
|
15657
|
-
async function
|
|
15676
|
+
async function O_(e, t, r) {
|
|
15658
15677
|
const i = dn({ wpConfigPath: t, constants: r });
|
|
15659
15678
|
if ((await e.run({
|
|
15660
15679
|
code: `${ad}
|
|
@@ -15669,18 +15688,18 @@ async function S_(e, t, r) {
|
|
|
15669
15688
|
const qo = async (e, { consts: t, method: r = "define-before-run" }) => {
|
|
15670
15689
|
switch (r) {
|
|
15671
15690
|
case "define-before-run":
|
|
15672
|
-
await
|
|
15691
|
+
await A_(e, t);
|
|
15673
15692
|
break;
|
|
15674
15693
|
case "rewrite-wp-config": {
|
|
15675
15694
|
const i = await e.documentRoot, a = Se(i, "/wp-config.php");
|
|
15676
|
-
await
|
|
15695
|
+
await O_(e, a, t);
|
|
15677
15696
|
break;
|
|
15678
15697
|
}
|
|
15679
15698
|
default:
|
|
15680
15699
|
throw new Error(`Invalid method: ${r}`);
|
|
15681
15700
|
}
|
|
15682
15701
|
};
|
|
15683
|
-
async function
|
|
15702
|
+
async function A_(e, t) {
|
|
15684
15703
|
for (const r in t)
|
|
15685
15704
|
await e.defineConstant(r, t[r]);
|
|
15686
15705
|
}
|
|
@@ -15696,7 +15715,7 @@ const od = async (e, { options: t }) => {
|
|
|
15696
15715
|
echo "Success";
|
|
15697
15716
|
`
|
|
15698
15717
|
});
|
|
15699
|
-
},
|
|
15718
|
+
}, $_ = async (e, { meta: t, userId: r }) => {
|
|
15700
15719
|
const i = await e.documentRoot;
|
|
15701
15720
|
await e.run({
|
|
15702
15721
|
code: `<?php
|
|
@@ -15707,7 +15726,7 @@ const od = async (e, { options: t }) => {
|
|
|
15707
15726
|
}
|
|
15708
15727
|
`
|
|
15709
15728
|
});
|
|
15710
|
-
}, Mo = "/tmp/wp-cli.phar",
|
|
15729
|
+
}, Mo = "/tmp/wp-cli.phar", R_ = {
|
|
15711
15730
|
resource: "url",
|
|
15712
15731
|
/**
|
|
15713
15732
|
* Use compression for downloading the wp-cli.phar file.
|
|
@@ -15732,7 +15751,7 @@ const od = async (e, { options: t }) => {
|
|
|
15732
15751
|
}, fd = async (e, { command: t, wpCliPath: r = Mo }) => {
|
|
15733
15752
|
await ld(e, r);
|
|
15734
15753
|
let i;
|
|
15735
|
-
if (typeof t == "string" ? (t = t.trim(), i =
|
|
15754
|
+
if (typeof t == "string" ? (t = t.trim(), i = F_(t)) : i = t, i.shift() !== "wp")
|
|
15736
15755
|
throw new Error('The first argument must be "wp".');
|
|
15737
15756
|
let s = !1;
|
|
15738
15757
|
const n = i.map((c) => c.startsWith("wordpress/") ? (s = !0, `/${c}`) : c);
|
|
@@ -15798,7 +15817,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
15798
15817
|
throw new Error(l.errors);
|
|
15799
15818
|
return l;
|
|
15800
15819
|
};
|
|
15801
|
-
function
|
|
15820
|
+
function F_(e) {
|
|
15802
15821
|
let i = 0, a = "";
|
|
15803
15822
|
const s = [];
|
|
15804
15823
|
let n = "";
|
|
@@ -15808,7 +15827,7 @@ function $_(e) {
|
|
|
15808
15827
|
}
|
|
15809
15828
|
return n && s.push(n), s;
|
|
15810
15829
|
}
|
|
15811
|
-
const
|
|
15830
|
+
const I_ = async (e, { wpCliPath: t }) => {
|
|
15812
15831
|
await ld(e, t), await qo(e, {
|
|
15813
15832
|
consts: {
|
|
15814
15833
|
WP_ALLOW_MULTISITE: 1
|
|
@@ -15836,7 +15855,7 @@ const R_ = async (e, { wpCliPath: t }) => {
|
|
|
15836
15855
|
$_SERVER['HTTP_HOST'] = ${mt(r.hostname)};
|
|
15837
15856
|
`
|
|
15838
15857
|
)), await e.writeFile(n, l);
|
|
15839
|
-
},
|
|
15858
|
+
}, L_ = async (e, { fromPath: t, toPath: r }) => {
|
|
15840
15859
|
(!t.startsWith("/") || !r.startsWith("/")) && Oe.error(
|
|
15841
15860
|
`
|
|
15842
15861
|
The cp() step in your Blueprint refers to a relative path.
|
|
@@ -15857,7 +15876,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
15857
15876
|
r,
|
|
15858
15877
|
await e.readFileAsBuffer(t)
|
|
15859
15878
|
);
|
|
15860
|
-
},
|
|
15879
|
+
}, C_ = async (e, { fromPath: t, toPath: r }) => {
|
|
15861
15880
|
(!t.startsWith("/") || !r.startsWith("/")) && Oe.error(
|
|
15862
15881
|
`
|
|
15863
15882
|
The mv() step in your Blueprint refers to a relative path.
|
|
@@ -15875,7 +15894,7 @@ Use: mv({ fromPath: '/wordpress/wp-load.php', toPath: '/wordpress/wp-loa
|
|
|
15875
15894
|
This will ensure your code works reliably regardless of the current working directory.
|
|
15876
15895
|
`.trim()
|
|
15877
15896
|
), t.startsWith("/") || (t = `/${t}`), r.startsWith("/") || (r = `/${r}`), await e.mv(t, r);
|
|
15878
|
-
},
|
|
15897
|
+
}, N_ = async (e, { path: t }) => {
|
|
15879
15898
|
t.startsWith("/") || Oe.error(
|
|
15880
15899
|
`
|
|
15881
15900
|
The mkdir() step in your Blueprint refers to a relative path.
|
|
@@ -15893,7 +15912,7 @@ Use: mkdir({ path: '/wordpress/my-new-folder' });
|
|
|
15893
15912
|
This will ensure your code works reliably regardless of the current working directory.
|
|
15894
15913
|
`.trim()
|
|
15895
15914
|
), await e.mkdir(t);
|
|
15896
|
-
},
|
|
15915
|
+
}, D_ = async (e, { path: t }) => {
|
|
15897
15916
|
t.startsWith("/") || (Oe.error(
|
|
15898
15917
|
`
|
|
15899
15918
|
The rmdir() step in your Blueprint refers to a relative path.
|
|
@@ -15929,7 +15948,7 @@ Use: writeFile({ path: '/wordpress/wp-load.php', data: '<?php echo "Hell
|
|
|
15929
15948
|
This will ensure your code works reliably regardless of the current working directory.
|
|
15930
15949
|
`.trim()
|
|
15931
15950
|
), t = `/${t}`), t.startsWith("/wordpress/wp-content/mu-plugins") && !await e.fileExists("/wordpress/wp-content/mu-plugins") && await e.mkdir("/wordpress/wp-content/mu-plugins"), await e.writeFile(t, r);
|
|
15932
|
-
},
|
|
15951
|
+
}, j_ = async (e, { writeToPath: t, filesTree: r }) => {
|
|
15933
15952
|
t.startsWith("/") || (Oe.error(
|
|
15934
15953
|
`
|
|
15935
15954
|
The writeFiles() step in your Blueprint refers to a relative path.
|
|
@@ -15954,10 +15973,10 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
15954
15973
|
WP_SITEURL: t
|
|
15955
15974
|
}
|
|
15956
15975
|
});
|
|
15957
|
-
},
|
|
15958
|
-
await
|
|
15976
|
+
}, U_ = async (e, { file: t }, r) => {
|
|
15977
|
+
await B_(e, t, r);
|
|
15959
15978
|
};
|
|
15960
|
-
async function
|
|
15979
|
+
async function B_(e, t, r) {
|
|
15961
15980
|
var i;
|
|
15962
15981
|
(i = r == null ? void 0 : r.tracker) == null || i.setCaption("Importing content"), await Wo(e, {
|
|
15963
15982
|
path: "/tmp/import.wxr",
|
|
@@ -16111,7 +16130,7 @@ const pd = async (e, { themeSlug: t = "" }, r) => {
|
|
|
16111
16130
|
"themes/twentytwentyfour",
|
|
16112
16131
|
"themes/twentytwentyfive",
|
|
16113
16132
|
"themes/twentytwentysix"
|
|
16114
|
-
],
|
|
16133
|
+
], q_ = async (e, { wordPressFilesZip: t, pathInZip: r = "" }) => {
|
|
16115
16134
|
const i = await e.documentRoot;
|
|
16116
16135
|
let a = Se("/tmp", "import");
|
|
16117
16136
|
await e.mkdir(a), await zo(e, {
|
|
@@ -16151,9 +16170,9 @@ const pd = async (e, { themeSlug: t = "" }, r) => {
|
|
|
16151
16170
|
Se(a, g),
|
|
16152
16171
|
Se(i, g)
|
|
16153
16172
|
);
|
|
16154
|
-
await e.rmdir(a), await
|
|
16173
|
+
await e.rmdir(a), await T_(e, i);
|
|
16155
16174
|
const d = await e.absoluteUrl;
|
|
16156
|
-
n || (n = await
|
|
16175
|
+
n || (n = await W_(e, i)), await cd(e, {
|
|
16157
16176
|
siteUrl: d
|
|
16158
16177
|
});
|
|
16159
16178
|
const m = mt(
|
|
@@ -16164,13 +16183,13 @@ const pd = async (e, { themeSlug: t = "" }, r) => {
|
|
|
16164
16183
|
$_GET['step'] = 'upgrade_db';
|
|
16165
16184
|
require ${m};
|
|
16166
16185
|
`
|
|
16167
|
-
}), n && n !== d && await
|
|
16186
|
+
}), n && n !== d && await M_(e, i, n, d);
|
|
16168
16187
|
};
|
|
16169
16188
|
function Ec(e) {
|
|
16170
16189
|
const t = e.match(/\/scope:[^/]+\/?/);
|
|
16171
16190
|
return t ? t[0].replace(/\/?$/, "/") : null;
|
|
16172
16191
|
}
|
|
16173
|
-
async function
|
|
16192
|
+
async function M_(e, t, r, i) {
|
|
16174
16193
|
const a = Ec(r), s = Ec(i);
|
|
16175
16194
|
!a || !s || a !== s && await e.run({
|
|
16176
16195
|
code: `<?php
|
|
@@ -16235,7 +16254,7 @@ async function B_(e, t, r, i) {
|
|
|
16235
16254
|
}
|
|
16236
16255
|
});
|
|
16237
16256
|
}
|
|
16238
|
-
async function
|
|
16257
|
+
async function W_(e, t) {
|
|
16239
16258
|
const r = dn({ documentRoot: t });
|
|
16240
16259
|
return (await e.run({
|
|
16241
16260
|
code: `<?php
|
|
@@ -16249,7 +16268,7 @@ async function q_(e, t) {
|
|
|
16249
16268
|
async function Sc(e, t) {
|
|
16250
16269
|
await e.fileExists(t) && (await e.isDir(t) ? await e.rmdir(t) : await e.unlink(t));
|
|
16251
16270
|
}
|
|
16252
|
-
async function
|
|
16271
|
+
async function z_(e) {
|
|
16253
16272
|
const t = await e.request({
|
|
16254
16273
|
url: "/wp-admin/export.php?download=true&content=all"
|
|
16255
16274
|
});
|
|
@@ -16308,7 +16327,7 @@ async function dd(e, {
|
|
|
16308
16327
|
});
|
|
16309
16328
|
}
|
|
16310
16329
|
}
|
|
16311
|
-
const
|
|
16330
|
+
const H_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, options: a = {} }, s) => {
|
|
16312
16331
|
r && (t = r, Oe.warn(
|
|
16313
16332
|
'The "pluginZipFile" option is deprecated. Use "pluginData" instead.'
|
|
16314
16333
|
));
|
|
@@ -16368,7 +16387,7 @@ const W_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16368
16387
|
},
|
|
16369
16388
|
s
|
|
16370
16389
|
);
|
|
16371
|
-
},
|
|
16390
|
+
}, V_ = async (e, { themeData: t, themeZipFile: r, ifAlreadyInstalled: i, options: a = {} }, s) => {
|
|
16372
16391
|
r && (t = r, Oe.warn(
|
|
16373
16392
|
'The "themeZipFile" option is deprecated. Use "themeData" instead.'
|
|
16374
16393
|
));
|
|
@@ -16407,9 +16426,9 @@ const W_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16407
16426
|
},
|
|
16408
16427
|
s
|
|
16409
16428
|
);
|
|
16410
|
-
},
|
|
16429
|
+
}, Z_ = async (e, { username: t = "admin" } = {}, r) => {
|
|
16411
16430
|
r == null || r.tracker.setCaption((r == null ? void 0 : r.initialCaption) || "Logging in"), e.defineConstant("PLAYGROUND_AUTO_LOGIN_AS_USER", t);
|
|
16412
|
-
},
|
|
16431
|
+
}, G_ = async (e, t, r) => {
|
|
16413
16432
|
var a;
|
|
16414
16433
|
(a = r == null ? void 0 : r.tracker) == null || a.setCaption("Resetting WordPress data");
|
|
16415
16434
|
const i = await e.documentRoot;
|
|
@@ -16433,7 +16452,7 @@ const W_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16433
16452
|
$GLOBALS['@pdo']->query("UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='wp_commentmeta'");
|
|
16434
16453
|
`
|
|
16435
16454
|
});
|
|
16436
|
-
},
|
|
16455
|
+
}, Y_ = async (e, { options: t }) => {
|
|
16437
16456
|
await e.request({
|
|
16438
16457
|
url: "/wp-admin/install.php?step=2",
|
|
16439
16458
|
method: "POST",
|
|
@@ -16450,7 +16469,7 @@ const W_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16450
16469
|
admin_email: "admin@localhost.com"
|
|
16451
16470
|
}
|
|
16452
16471
|
});
|
|
16453
|
-
},
|
|
16472
|
+
}, K_ = async (e, { selfContained: t = !1 } = {}) => {
|
|
16454
16473
|
const r = "/tmp/wordpress-playground.zip", i = "/tmp/playground-export.json", a = await e.documentRoot, s = Se(a, "wp-content"), n = await e.absoluteUrl;
|
|
16455
16474
|
await e.writeFile(
|
|
16456
16475
|
i,
|
|
@@ -16473,7 +16492,7 @@ const W_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16473
16492
|
),
|
|
16474
16493
|
additionalPaths: l
|
|
16475
16494
|
});
|
|
16476
|
-
await
|
|
16495
|
+
await J_(
|
|
16477
16496
|
e,
|
|
16478
16497
|
`zipDir(${c.wpContentPath}, ${c.zipPath}, array(
|
|
16479
16498
|
'exclude_paths' => ${c.exceptPaths},
|
|
@@ -16483,7 +16502,7 @@ const W_ = async (e, { pluginData: t, pluginZipFile: r, ifAlreadyInstalled: i, o
|
|
|
16483
16502
|
);
|
|
16484
16503
|
const p = await e.readFileAsBuffer(r);
|
|
16485
16504
|
return e.unlink(r), e.unlink(i), p;
|
|
16486
|
-
},
|
|
16505
|
+
}, X_ = `<?php
|
|
16487
16506
|
|
|
16488
16507
|
function zipDir($root, $output, $options = array())
|
|
16489
16508
|
{
|
|
@@ -16544,12 +16563,12 @@ function join_paths()
|
|
|
16544
16563
|
return preg_replace('#/+#', '/', join('/', $paths));
|
|
16545
16564
|
}
|
|
16546
16565
|
`;
|
|
16547
|
-
async function
|
|
16566
|
+
async function J_(e, t) {
|
|
16548
16567
|
return await e.run({
|
|
16549
|
-
code:
|
|
16568
|
+
code: X_ + t
|
|
16550
16569
|
});
|
|
16551
16570
|
}
|
|
16552
|
-
const
|
|
16571
|
+
const Q_ = async (e, t) => {
|
|
16553
16572
|
const a = (await (await fetch(
|
|
16554
16573
|
`https://api.wordpress.org/translations/core/1.0/?version=${e}`
|
|
16555
16574
|
)).json()).translations.find(
|
|
@@ -16560,7 +16579,7 @@ const X_ = async (e, t) => {
|
|
|
16560
16579
|
`Failed to get ${t} translation package for WordPress ${e}.`
|
|
16561
16580
|
);
|
|
16562
16581
|
return a.package;
|
|
16563
|
-
},
|
|
16582
|
+
}, ev = async (e, { language: t }, r) => {
|
|
16564
16583
|
r == null || r.tracker.setCaption((r == null ? void 0 : r.initialCaption) || "Translating"), await e.defineConstant("WPLANG", t);
|
|
16565
16584
|
const i = await e.documentRoot, a = (await e.run({
|
|
16566
16585
|
code: `<?php
|
|
@@ -16569,7 +16588,7 @@ const X_ = async (e, t) => {
|
|
|
16569
16588
|
`
|
|
16570
16589
|
})).text, s = [
|
|
16571
16590
|
{
|
|
16572
|
-
url: await
|
|
16591
|
+
url: await Q_(a, t),
|
|
16573
16592
|
type: "core"
|
|
16574
16593
|
}
|
|
16575
16594
|
], o = (await e.run({
|
|
@@ -16653,40 +16672,40 @@ const X_ = async (e, t) => {
|
|
|
16653
16672
|
})
|
|
16654
16673
|
);
|
|
16655
16674
|
await Promise.all(d);
|
|
16656
|
-
},
|
|
16675
|
+
}, tv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16657
16676
|
__proto__: null,
|
|
16658
16677
|
activatePlugin: nd,
|
|
16659
16678
|
activateTheme: sd,
|
|
16660
|
-
cp:
|
|
16679
|
+
cp: L_,
|
|
16661
16680
|
defineSiteUrl: cd,
|
|
16662
16681
|
defineWpConfigConsts: qo,
|
|
16663
|
-
enableMultisite:
|
|
16664
|
-
exportWXR:
|
|
16682
|
+
enableMultisite: I_,
|
|
16683
|
+
exportWXR: z_,
|
|
16665
16684
|
importThemeStarterContent: pd,
|
|
16666
|
-
importWordPressFiles:
|
|
16667
|
-
importWxr:
|
|
16668
|
-
installPlugin:
|
|
16669
|
-
installTheme:
|
|
16670
|
-
login:
|
|
16671
|
-
mkdir:
|
|
16672
|
-
mv:
|
|
16673
|
-
request:
|
|
16674
|
-
resetData:
|
|
16685
|
+
importWordPressFiles: q_,
|
|
16686
|
+
importWxr: U_,
|
|
16687
|
+
installPlugin: H_,
|
|
16688
|
+
installTheme: V_,
|
|
16689
|
+
login: Z_,
|
|
16690
|
+
mkdir: N_,
|
|
16691
|
+
mv: C_,
|
|
16692
|
+
request: E_,
|
|
16693
|
+
resetData: G_,
|
|
16675
16694
|
rm: co,
|
|
16676
|
-
rmdir:
|
|
16677
|
-
runPHP:
|
|
16678
|
-
runPHPWithOptions:
|
|
16679
|
-
runSql:
|
|
16680
|
-
runWpInstallationWizard:
|
|
16681
|
-
setSiteLanguage:
|
|
16695
|
+
rmdir: D_,
|
|
16696
|
+
runPHP: v_,
|
|
16697
|
+
runPHPWithOptions: x_,
|
|
16698
|
+
runSql: P_,
|
|
16699
|
+
runWpInstallationWizard: Y_,
|
|
16700
|
+
setSiteLanguage: ev,
|
|
16682
16701
|
setSiteOptions: od,
|
|
16683
16702
|
unzip: zo,
|
|
16684
|
-
updateUserMeta:
|
|
16703
|
+
updateUserMeta: $_,
|
|
16685
16704
|
wpCLI: fd,
|
|
16686
16705
|
writeFile: Wo,
|
|
16687
|
-
writeFiles:
|
|
16688
|
-
zipWpContent:
|
|
16689
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
16706
|
+
writeFiles: j_,
|
|
16707
|
+
zipWpContent: K_
|
|
16708
|
+
}, Symbol.toStringTag, { value: "Module" })), rv = {
|
|
16690
16709
|
properties: {
|
|
16691
16710
|
landingPage: {
|
|
16692
16711
|
type: "string",
|
|
@@ -16817,9 +16836,9 @@ Note: PHP 7.2 and 7.3 are deprecated and will be automatically upgraded to 7.4.`
|
|
|
16817
16836
|
},
|
|
16818
16837
|
$schema: { type: "string" }
|
|
16819
16838
|
}
|
|
16820
|
-
},
|
|
16839
|
+
}, nv = {
|
|
16821
16840
|
additionalProperties: { type: ["string", "boolean", "number"] }
|
|
16822
|
-
}, hd = Object.prototype.hasOwnProperty,
|
|
16841
|
+
}, hd = Object.prototype.hasOwnProperty, sv = {
|
|
16823
16842
|
enum: ["8.5", "8.4", "8.3", "8.2", "8.1", "8.0", "7.4"]
|
|
16824
16843
|
};
|
|
16825
16844
|
function Cn(e, { instancePath: t = "", parentData: r, parentDataProperty: i, rootData: a = e } = {}) {
|
|
@@ -16842,7 +16861,7 @@ function Cn(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
16842
16861
|
instancePath: t,
|
|
16843
16862
|
schemaPath: "#/definitions/SupportedPHPVersion/enum",
|
|
16844
16863
|
keyword: "enum",
|
|
16845
|
-
params: { allowedValues:
|
|
16864
|
+
params: { allowedValues: sv.enum },
|
|
16846
16865
|
message: "must be equal to one of the allowed values"
|
|
16847
16866
|
};
|
|
16848
16867
|
s === null ? s = [d] : s.push(d), n++;
|
|
@@ -16911,7 +16930,7 @@ function Cn(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
16911
16930
|
}
|
|
16912
16931
|
return Cn.errors = s, n === 0;
|
|
16913
16932
|
}
|
|
16914
|
-
const ja = { validate: _e },
|
|
16933
|
+
const ja = { validate: _e }, iv = {
|
|
16915
16934
|
enum: ["branch", "tag", "commit", "refname"]
|
|
16916
16935
|
};
|
|
16917
16936
|
function st(e, { instancePath: t = "", parentData: r, parentDataProperty: i, rootData: a = e } = {}) {
|
|
@@ -17019,7 +17038,7 @@ function st(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
17019
17038
|
schemaPath: "#/definitions/GitDirectoryRefType/enum",
|
|
17020
17039
|
keyword: "enum",
|
|
17021
17040
|
params: {
|
|
17022
|
-
allowedValues:
|
|
17041
|
+
allowedValues: iv.enum
|
|
17023
17042
|
},
|
|
17024
17043
|
message: "must be equal to one of the allowed values"
|
|
17025
17044
|
}
|
|
@@ -17078,7 +17097,7 @@ function st(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
17078
17097
|
], !1;
|
|
17079
17098
|
return st.errors = s, n === 0;
|
|
17080
17099
|
}
|
|
17081
|
-
const
|
|
17100
|
+
const av = {
|
|
17082
17101
|
additionalProperties: {
|
|
17083
17102
|
anyOf: [
|
|
17084
17103
|
{ $ref: "#/definitions/FileTree" },
|
|
@@ -17110,7 +17129,7 @@ function Ir(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
17110
17129
|
schemaPath: "#/additionalProperties/anyOf/1/type",
|
|
17111
17130
|
keyword: "type",
|
|
17112
17131
|
params: {
|
|
17113
|
-
type:
|
|
17132
|
+
type: av.additionalProperties.anyOf[1].type
|
|
17114
17133
|
},
|
|
17115
17134
|
message: "must be object,string"
|
|
17116
17135
|
};
|
|
@@ -20036,7 +20055,7 @@ function vt(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
20036
20055
|
], !1;
|
|
20037
20056
|
return vt.errors = s, n === 0;
|
|
20038
20057
|
}
|
|
20039
|
-
const
|
|
20058
|
+
const ov = {
|
|
20040
20059
|
properties: {
|
|
20041
20060
|
relativeUri: {
|
|
20042
20061
|
type: "string",
|
|
@@ -20106,7 +20125,7 @@ function We(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
20106
20125
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
20107
20126
|
const A = n;
|
|
20108
20127
|
for (const y in e)
|
|
20109
|
-
if (!hd.call(
|
|
20128
|
+
if (!hd.call(ov.properties, y))
|
|
20110
20129
|
return We.errors = [
|
|
20111
20130
|
{
|
|
20112
20131
|
instancePath: t,
|
|
@@ -26747,7 +26766,7 @@ function me(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
26747
26766
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
26748
26767
|
const C = n;
|
|
26749
26768
|
for (const E in e)
|
|
26750
|
-
if (!hd.call(
|
|
26769
|
+
if (!hd.call(rv.properties, E))
|
|
26751
26770
|
return me.errors = [
|
|
26752
26771
|
{
|
|
26753
26772
|
instancePath: t,
|
|
@@ -27217,7 +27236,7 @@ function me(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
27217
27236
|
schemaPath: "#/definitions/PHPConstants/additionalProperties/type",
|
|
27218
27237
|
keyword: "type",
|
|
27219
27238
|
params: {
|
|
27220
|
-
type:
|
|
27239
|
+
type: nv.additionalProperties.type
|
|
27221
27240
|
},
|
|
27222
27241
|
message: "must be string,boolean,number"
|
|
27223
27242
|
}
|
|
@@ -27736,17 +27755,17 @@ function Vs(e, { instancePath: t = "", parentData: r, parentDataProperty: i, roo
|
|
|
27736
27755
|
rootData: a
|
|
27737
27756
|
}) || (s = s === null ? me.errors : s.concat(me.errors), n = s.length), Vs.errors = s, n === 0;
|
|
27738
27757
|
}
|
|
27739
|
-
const { wpCLI:
|
|
27758
|
+
const { wpCLI: lv, ...Tc } = tv, fv = {
|
|
27740
27759
|
...Tc,
|
|
27741
|
-
"wp-cli":
|
|
27760
|
+
"wp-cli": lv,
|
|
27742
27761
|
importFile: Tc.importWxr
|
|
27743
27762
|
};
|
|
27744
|
-
class
|
|
27763
|
+
class cv extends Error {
|
|
27745
27764
|
constructor(t, r) {
|
|
27746
27765
|
super(t), this.name = "InvalidBlueprintError", this.validationErrors = r;
|
|
27747
27766
|
}
|
|
27748
27767
|
}
|
|
27749
|
-
class
|
|
27768
|
+
class pv extends Error {
|
|
27750
27769
|
constructor(t) {
|
|
27751
27770
|
const { stepNumber: r, step: i, cause: a } = t, s = a instanceof Error ? a : new Error(String(a)), n = `Error when executing the blueprint step #${r}`, o = s.message ? `${n}: ${s.message}` : n;
|
|
27752
27771
|
super(o, { cause: s }), this.name = "BlueprintStepExecutionError", this.stepNumber = r, this.step = i, this.messages = (s.message || "").split(`
|
|
@@ -27758,20 +27777,20 @@ async function yd(e, t = {}) {
|
|
|
27758
27777
|
...t
|
|
27759
27778
|
};
|
|
27760
27779
|
let i;
|
|
27761
|
-
return gd(e) ? (i = await
|
|
27780
|
+
return gd(e) ? (i = await uv(e), r.streamBundledFile = function(...a) {
|
|
27762
27781
|
return e.read(...a);
|
|
27763
|
-
}) : i = e,
|
|
27782
|
+
}) : i = e, dv(i, r);
|
|
27764
27783
|
}
|
|
27765
27784
|
function gd(e) {
|
|
27766
27785
|
return e && "read" in e && typeof e.read == "function";
|
|
27767
27786
|
}
|
|
27768
|
-
async function
|
|
27787
|
+
async function uv(e) {
|
|
27769
27788
|
if (!gd(e))
|
|
27770
27789
|
return e;
|
|
27771
27790
|
const r = await (await e.read("blueprint.json")).text();
|
|
27772
27791
|
return JSON.parse(r);
|
|
27773
27792
|
}
|
|
27774
|
-
function
|
|
27793
|
+
function dv(e, {
|
|
27775
27794
|
progress: t = new ui(),
|
|
27776
27795
|
semaphore: r = new es({ concurrency: 3 }),
|
|
27777
27796
|
onStepCompleted: i = () => {
|
|
@@ -27786,7 +27805,7 @@ function pv(e, {
|
|
|
27786
27805
|
var y, w, b, O, k, L, $, C, E, T;
|
|
27787
27806
|
e = structuredClone(e), e = {
|
|
27788
27807
|
...e,
|
|
27789
|
-
steps: (e.steps || []).filter(
|
|
27808
|
+
steps: (e.steps || []).filter(gv).filter(wv)
|
|
27790
27809
|
}, e.steps = [...e.steps || [], ...l || []];
|
|
27791
27810
|
for (const F of e.steps)
|
|
27792
27811
|
!F || typeof F != "object" || (F.step === "importFile" ? (F.step = "importWxr", Oe.warn(
|
|
@@ -27803,7 +27822,7 @@ function pv(e, {
|
|
|
27803
27822
|
step: "setSiteOptions",
|
|
27804
27823
|
options: e.siteOptions
|
|
27805
27824
|
}), e.plugins) {
|
|
27806
|
-
const F = e.plugins.map((P) => typeof P == "string" ?
|
|
27825
|
+
const F = e.plugins.map((P) => typeof P == "string" ? xv(P) ? {
|
|
27807
27826
|
resource: "zip",
|
|
27808
27827
|
inner: {
|
|
27809
27828
|
resource: "git:directory",
|
|
@@ -27832,7 +27851,7 @@ function pv(e, {
|
|
|
27832
27851
|
if ((w = e == null ? void 0 : e.extraLibraries) != null && w.includes("wp-cli") || c !== -1) {
|
|
27833
27852
|
const F = {
|
|
27834
27853
|
step: "writeFile",
|
|
27835
|
-
data:
|
|
27854
|
+
data: R_,
|
|
27836
27855
|
path: Mo
|
|
27837
27856
|
};
|
|
27838
27857
|
c === -1 ? (b = e.steps) == null || b.push(F) : (O = e.steps) == null || O.splice(
|
|
@@ -27851,10 +27870,10 @@ function pv(e, {
|
|
|
27851
27870
|
slug: "wordpress-importer"
|
|
27852
27871
|
}
|
|
27853
27872
|
}));
|
|
27854
|
-
const d =
|
|
27873
|
+
const d = mv(e);
|
|
27855
27874
|
if (!d.valid) {
|
|
27856
|
-
const { errors: F } = d, P =
|
|
27857
|
-
throw new
|
|
27875
|
+
const { errors: F } = d, P = hv(e, F);
|
|
27876
|
+
throw new cv(
|
|
27858
27877
|
`Invalid Blueprint: The Blueprint does not conform to the schema.
|
|
27859
27878
|
|
|
27860
27879
|
Found ${F.length} validation error(s):
|
|
@@ -27873,7 +27892,7 @@ Please review your Blueprint and fix these issues. Learn more about the Blueprin
|
|
|
27873
27892
|
},
|
|
27874
27893
|
0
|
|
27875
27894
|
), A = m.map(
|
|
27876
|
-
(F) =>
|
|
27895
|
+
(F) => bv(F, {
|
|
27877
27896
|
semaphore: r,
|
|
27878
27897
|
rootProgressTracker: t,
|
|
27879
27898
|
totalProgressWeight: g,
|
|
@@ -27884,7 +27903,7 @@ Please review your Blueprint and fix these issues. Learn more about the Blueprin
|
|
|
27884
27903
|
);
|
|
27885
27904
|
return {
|
|
27886
27905
|
versions: {
|
|
27887
|
-
php:
|
|
27906
|
+
php: yv(
|
|
27888
27907
|
($ = e.preferredVersions) == null ? void 0 : $.php,
|
|
27889
27908
|
ho,
|
|
27890
27909
|
eh
|
|
@@ -27910,7 +27929,7 @@ Please review your Blueprint and fix these issues. Learn more about the Blueprin
|
|
|
27910
27929
|
i(I, N);
|
|
27911
27930
|
} catch (I) {
|
|
27912
27931
|
const U = Number(P) + 1;
|
|
27913
|
-
throw new
|
|
27932
|
+
throw new pv({
|
|
27914
27933
|
stepNumber: U,
|
|
27915
27934
|
step: N,
|
|
27916
27935
|
cause: I
|
|
@@ -27929,7 +27948,7 @@ Please review your Blueprint and fix these issues. Learn more about the Blueprin
|
|
|
27929
27948
|
}
|
|
27930
27949
|
};
|
|
27931
27950
|
}
|
|
27932
|
-
function
|
|
27951
|
+
function hv(e, t) {
|
|
27933
27952
|
return t.map((r, i) => {
|
|
27934
27953
|
var o;
|
|
27935
27954
|
const a = r.instancePath || "/";
|
|
@@ -27972,7 +27991,7 @@ function uv(e, t) {
|
|
|
27972
27991
|
|
|
27973
27992
|
`);
|
|
27974
27993
|
}
|
|
27975
|
-
function
|
|
27994
|
+
function mv(e) {
|
|
27976
27995
|
var a;
|
|
27977
27996
|
const t = Vs(e);
|
|
27978
27997
|
if (t)
|
|
@@ -27989,20 +28008,20 @@ function dv(e) {
|
|
|
27989
28008
|
)) ?? []
|
|
27990
28009
|
};
|
|
27991
28010
|
}
|
|
27992
|
-
function
|
|
28011
|
+
function yv(e, t, r) {
|
|
27993
28012
|
return (e === "7.2" || e === "7.3") && (Oe.warn(
|
|
27994
28013
|
`PHP ${e} is no longer supported. Automatically upgrading to PHP 7.4.`
|
|
27995
28014
|
), e = "7.4"), e && t.includes(e) ? e : r;
|
|
27996
28015
|
}
|
|
27997
|
-
function
|
|
28016
|
+
function gv(e) {
|
|
27998
28017
|
return !!(typeof e == "object" && e);
|
|
27999
28018
|
}
|
|
28000
|
-
function
|
|
28019
|
+
function wv(e) {
|
|
28001
28020
|
return ["setPhpIniEntry", "request"].includes(e.step) ? (Oe.warn(
|
|
28002
28021
|
`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`
|
|
28003
28022
|
), !1) : !0;
|
|
28004
28023
|
}
|
|
28005
|
-
function
|
|
28024
|
+
function bv(e, {
|
|
28006
28025
|
semaphore: t,
|
|
28007
28026
|
rootProgressTracker: r,
|
|
28008
28027
|
totalProgressWeight: i,
|
|
@@ -28016,7 +28035,7 @@ function gv(e, {
|
|
|
28016
28035
|
), l = {};
|
|
28017
28036
|
for (const A of Object.keys(e)) {
|
|
28018
28037
|
let y = e[A];
|
|
28019
|
-
|
|
28038
|
+
n_(y) && (y = Pt.create(y, {
|
|
28020
28039
|
semaphore: t,
|
|
28021
28040
|
corsProxy: a,
|
|
28022
28041
|
streamBundledFile: s,
|
|
@@ -28026,9 +28045,9 @@ function gv(e, {
|
|
|
28026
28045
|
const c = async (A) => {
|
|
28027
28046
|
var y;
|
|
28028
28047
|
try {
|
|
28029
|
-
return o.fillSlowly(), await
|
|
28048
|
+
return o.fillSlowly(), await fv[e.step](
|
|
28030
28049
|
A,
|
|
28031
|
-
await
|
|
28050
|
+
await _v(l),
|
|
28032
28051
|
{
|
|
28033
28052
|
tracker: o,
|
|
28034
28053
|
initialCaption: (y = e.progress) == null ? void 0 : y.caption
|
|
@@ -28052,7 +28071,7 @@ function Oc(e) {
|
|
|
28052
28071
|
}
|
|
28053
28072
|
return t;
|
|
28054
28073
|
}
|
|
28055
|
-
async function
|
|
28074
|
+
async function _v(e) {
|
|
28056
28075
|
const t = {};
|
|
28057
28076
|
for (const r in e) {
|
|
28058
28077
|
const i = e[r];
|
|
@@ -28060,13 +28079,13 @@ async function wv(e) {
|
|
|
28060
28079
|
}
|
|
28061
28080
|
return t;
|
|
28062
28081
|
}
|
|
28063
|
-
async function
|
|
28082
|
+
async function vv(e, t) {
|
|
28064
28083
|
await e.run(t);
|
|
28065
28084
|
}
|
|
28066
|
-
function
|
|
28085
|
+
function xv(e) {
|
|
28067
28086
|
return !!(/^https:\/\/.+\.git\/?$/.test(e) || /^https:\/\/github\.com\/[^/]+\/[^/]+\/?$/.test(e) || /^https:\/\/gitlab\.com\/[^/]+\/[^/]+(\/[^/]+)*\/?$/.test(e));
|
|
28068
28087
|
}
|
|
28069
|
-
async function
|
|
28088
|
+
async function kv() {
|
|
28070
28089
|
const e = (
|
|
28071
28090
|
// @ts-ignore
|
|
28072
28091
|
(await import("./blueprints-pMn3V9MZ.js")).default
|
|
@@ -28075,7 +28094,7 @@ async function vv() {
|
|
|
28075
28094
|
type: "application/zip"
|
|
28076
28095
|
});
|
|
28077
28096
|
}
|
|
28078
|
-
function
|
|
28097
|
+
function Pv(e) {
|
|
28079
28098
|
if (typeof e == "object" && "type" in e && ["inline-file", "file-reference"].includes(e.type))
|
|
28080
28099
|
return e;
|
|
28081
28100
|
if (!e)
|
|
@@ -28100,7 +28119,7 @@ function xv(e) {
|
|
|
28100
28119
|
};
|
|
28101
28120
|
}
|
|
28102
28121
|
}
|
|
28103
|
-
async function
|
|
28122
|
+
async function Mv(e) {
|
|
28104
28123
|
var p, d;
|
|
28105
28124
|
const t = e.cliArgs || [];
|
|
28106
28125
|
for (const m of t)
|
|
@@ -28110,12 +28129,12 @@ async function Bv(e) {
|
|
|
28110
28129
|
);
|
|
28111
28130
|
t.push("--site-path=/wordpress"), t.find((m) => m.startsWith("--db-engine=")) || t.push("--db-engine=sqlite");
|
|
28112
28131
|
const i = e.php, a = (e == null ? void 0 : e.onMessage) || (() => {
|
|
28113
|
-
}), s = await
|
|
28132
|
+
}), s = await kv();
|
|
28114
28133
|
i.writeFile(
|
|
28115
28134
|
"/tmp/blueprints.phar",
|
|
28116
28135
|
new Uint8Array(await s.arrayBuffer())
|
|
28117
28136
|
);
|
|
28118
|
-
const n =
|
|
28137
|
+
const n = Pv(
|
|
28119
28138
|
e.blueprint
|
|
28120
28139
|
);
|
|
28121
28140
|
let o = "";
|
|
@@ -28238,12 +28257,12 @@ require( "/tmp/blueprints.phar" );
|
|
|
28238
28257
|
]);
|
|
28239
28258
|
return c.finished.finally(l), c;
|
|
28240
28259
|
}
|
|
28241
|
-
class
|
|
28260
|
+
class Ev extends Error {
|
|
28242
28261
|
constructor(t, r, i) {
|
|
28243
28262
|
super(t, i), this.name = "BlueprintFetchError", this.url = r;
|
|
28244
28263
|
}
|
|
28245
28264
|
}
|
|
28246
|
-
async function
|
|
28265
|
+
async function Wv(e) {
|
|
28247
28266
|
let t;
|
|
28248
28267
|
try {
|
|
28249
28268
|
const r = await fetch(e, {
|
|
@@ -28253,7 +28272,7 @@ async function qv(e) {
|
|
|
28253
28272
|
throw new Error(`Failed to fetch blueprint from ${e}`);
|
|
28254
28273
|
t = await r.arrayBuffer();
|
|
28255
28274
|
} catch (r) {
|
|
28256
|
-
throw new
|
|
28275
|
+
throw new Ev(
|
|
28257
28276
|
`Blueprint file could not be resolved from ${e}: ${r instanceof Error ? r.message : String(r)}`,
|
|
28258
28277
|
e,
|
|
28259
28278
|
{ cause: r }
|
|
@@ -28261,24 +28280,24 @@ async function qv(e) {
|
|
|
28261
28280
|
}
|
|
28262
28281
|
try {
|
|
28263
28282
|
const r = new TextDecoder().decode(t);
|
|
28264
|
-
return JSON.parse(r), new
|
|
28265
|
-
new
|
|
28283
|
+
return JSON.parse(r), new Gb([
|
|
28284
|
+
new Vb({
|
|
28266
28285
|
"blueprint.json": r
|
|
28267
28286
|
}),
|
|
28268
|
-
new
|
|
28287
|
+
new Yb({
|
|
28269
28288
|
baseUrl: e
|
|
28270
28289
|
})
|
|
28271
28290
|
]);
|
|
28272
28291
|
} catch (r) {
|
|
28273
|
-
if (await
|
|
28274
|
-
return
|
|
28292
|
+
if (await Ov(t))
|
|
28293
|
+
return Tv(t);
|
|
28275
28294
|
throw new Error(
|
|
28276
28295
|
`Blueprint file at ${e} is neither a valid JSON nor a ZIP file.`,
|
|
28277
28296
|
{ cause: r }
|
|
28278
28297
|
);
|
|
28279
28298
|
}
|
|
28280
28299
|
}
|
|
28281
|
-
function
|
|
28300
|
+
function Sv(e) {
|
|
28282
28301
|
const t = e.map((i) => qr(i));
|
|
28283
28302
|
if (t.some((i) => Ko(i) === "blueprint.json" && Dn(i) === ""))
|
|
28284
28303
|
return "blueprint.json";
|
|
@@ -28300,17 +28319,17 @@ function Pv(e) {
|
|
|
28300
28319
|
"ZIP does not contain a blueprint.json. Place blueprint.json at the ZIP root or inside a single top-level directory."
|
|
28301
28320
|
);
|
|
28302
28321
|
}
|
|
28303
|
-
async function
|
|
28304
|
-
const t = fi.fromArrayBuffer(e), r = await t.getAllFilePaths(), i =
|
|
28305
|
-
return a === "" ? t : new
|
|
28322
|
+
async function Tv(e) {
|
|
28323
|
+
const t = fi.fromArrayBuffer(e), r = await t.getAllFilePaths(), i = Sv(r), a = Dn(i);
|
|
28324
|
+
return a === "" ? t : new Zb(a, t);
|
|
28306
28325
|
}
|
|
28307
|
-
async function
|
|
28326
|
+
async function Ov(e) {
|
|
28308
28327
|
if (e.byteLength < 4)
|
|
28309
28328
|
return !1;
|
|
28310
28329
|
const t = new Uint8Array(e, 0, 4);
|
|
28311
28330
|
return t[0] === 80 && t[1] === 75 && t[2] === 3 && t[3] === 4;
|
|
28312
28331
|
}
|
|
28313
|
-
async function
|
|
28332
|
+
async function Av(e) {
|
|
28314
28333
|
if ((await Nn.create(e)).getVersion() === 1) {
|
|
28315
28334
|
const r = await yd(
|
|
28316
28335
|
e
|
|
@@ -28334,7 +28353,7 @@ async function Tv(e) {
|
|
|
28334
28353
|
};
|
|
28335
28354
|
} else
|
|
28336
28355
|
return {
|
|
28337
|
-
phpVersion:
|
|
28356
|
+
phpVersion: S_,
|
|
28338
28357
|
wpVersion: "latest",
|
|
28339
28358
|
intl: !1,
|
|
28340
28359
|
networking: !0,
|
|
@@ -28342,10 +28361,10 @@ async function Tv(e) {
|
|
|
28342
28361
|
extraLibraries: []
|
|
28343
28362
|
};
|
|
28344
28363
|
}
|
|
28345
|
-
function
|
|
28364
|
+
function zv() {
|
|
28346
28365
|
}
|
|
28347
|
-
const
|
|
28348
|
-
class
|
|
28366
|
+
const $v = [], Rv = "127.0.0.1", Fv = 4400;
|
|
28367
|
+
class Iv {
|
|
28349
28368
|
constructor(t) {
|
|
28350
28369
|
this.options = t;
|
|
28351
28370
|
}
|
|
@@ -28368,7 +28387,7 @@ class Rv {
|
|
|
28368
28387
|
t.ownerDocument.defaultView
|
|
28369
28388
|
);
|
|
28370
28389
|
await O.isConnected(), r.pipe(O);
|
|
28371
|
-
const k = await
|
|
28390
|
+
const k = await Av(b);
|
|
28372
28391
|
if (await O.onDownloadProgress(w.loadingListener), await O.boot({
|
|
28373
28392
|
mounts: o,
|
|
28374
28393
|
sapiName: l,
|
|
@@ -28390,12 +28409,12 @@ class Rv {
|
|
|
28390
28409
|
corsProxy: s,
|
|
28391
28410
|
gitAdditionalHeadersCallback: n
|
|
28392
28411
|
});
|
|
28393
|
-
await
|
|
28412
|
+
await vv($, O);
|
|
28394
28413
|
}
|
|
28395
28414
|
return k.networking && await O.prefetchUpdateChecks(), O;
|
|
28396
28415
|
}
|
|
28397
28416
|
}
|
|
28398
|
-
class
|
|
28417
|
+
class Lv {
|
|
28399
28418
|
constructor(t) {
|
|
28400
28419
|
this.options = t;
|
|
28401
28420
|
}
|
|
@@ -28448,29 +28467,29 @@ class Fv {
|
|
|
28448
28467
|
}), await m.isReady(), p.finish(), Ic(Oe, m), a == null || a(m), m.goTo("/"), m;
|
|
28449
28468
|
}
|
|
28450
28469
|
}
|
|
28451
|
-
async function
|
|
28470
|
+
async function Hv(e) {
|
|
28452
28471
|
const {
|
|
28453
28472
|
iframe: t,
|
|
28454
28473
|
progressTracker: r = new ui(),
|
|
28455
28474
|
disableProgressBar: i
|
|
28456
28475
|
} = e;
|
|
28457
28476
|
let { remoteUrl: a } = e;
|
|
28458
|
-
|
|
28477
|
+
Dv(a), Cv(t), a = jv(a, {
|
|
28459
28478
|
progressbar: !i,
|
|
28460
28479
|
"blueprints-runner": e.experimentalBlueprintsV2Runner ? "v2" : "v1"
|
|
28461
28480
|
}), r.setCaption("Preparing WordPress"), await new Promise((o) => {
|
|
28462
28481
|
t.src = a, t.addEventListener("load", o, !1);
|
|
28463
28482
|
});
|
|
28464
|
-
const n = await (e.experimentalBlueprintsV2Runner ? new
|
|
28483
|
+
const n = await (e.experimentalBlueprintsV2Runner ? new Lv(e) : new Iv(e)).bootPlayground(t, r);
|
|
28465
28484
|
return r.finish(), n;
|
|
28466
28485
|
}
|
|
28467
|
-
function
|
|
28486
|
+
function Cv(e) {
|
|
28468
28487
|
var t, r;
|
|
28469
28488
|
(t = e.sandbox) != null && t.length && !((r = e.sandbox) != null && r.contains("allow-storage-access-by-user-activation")) && e.sandbox.add("allow-storage-access-by-user-activation");
|
|
28470
28489
|
}
|
|
28471
|
-
const wd = "https://playground.wordpress.net",
|
|
28490
|
+
const wd = "https://playground.wordpress.net", Nv = `http://${Rv}:${Fv}`, Ac = [
|
|
28472
28491
|
wd,
|
|
28473
|
-
|
|
28492
|
+
Nv,
|
|
28474
28493
|
// An older origin that's still used by some plugins.
|
|
28475
28494
|
"https://wasm.wordpress.net",
|
|
28476
28495
|
// Allow hosting remote from same origin
|
|
@@ -28483,9 +28502,9 @@ const wd = "https://playground.wordpress.net", Lv = `http://${Av}:${$v}`, Ac = [
|
|
|
28483
28502
|
"http://127.0.0.1",
|
|
28484
28503
|
"http://127.0.0.1:5400",
|
|
28485
28504
|
"https://127.0.0.1",
|
|
28486
|
-
|
|
28505
|
+
...$v
|
|
28487
28506
|
], bd = wd;
|
|
28488
|
-
function
|
|
28507
|
+
function Dv(e) {
|
|
28489
28508
|
const t = new URL(e, bd);
|
|
28490
28509
|
if (!(Ac.includes(t.origin) && t.pathname === "/remote.html"))
|
|
28491
28510
|
throw new Error(
|
|
@@ -28496,7 +28515,7 @@ function Cv(e) {
|
|
|
28496
28515
|
)}`
|
|
28497
28516
|
);
|
|
28498
28517
|
}
|
|
28499
|
-
function
|
|
28518
|
+
function jv(e, t) {
|
|
28500
28519
|
const r = new URL(e, bd), i = new URLSearchParams(r.search);
|
|
28501
28520
|
for (const [a, s] of Object.entries(t))
|
|
28502
28521
|
if (s != null && s !== !1)
|
|
@@ -28508,62 +28527,62 @@ function Nv(e, t) {
|
|
|
28508
28527
|
return r.search = i.toString(), r.toString();
|
|
28509
28528
|
}
|
|
28510
28529
|
export {
|
|
28511
|
-
|
|
28512
|
-
|
|
28530
|
+
Ev as BlueprintFetchError,
|
|
28531
|
+
t_ as BlueprintFilesystemRequiredError,
|
|
28513
28532
|
Nn as BlueprintReflection,
|
|
28514
|
-
|
|
28515
|
-
|
|
28533
|
+
pv as BlueprintStepExecutionError,
|
|
28534
|
+
cv as InvalidBlueprintError,
|
|
28516
28535
|
eh as LatestSupportedPHPVersion,
|
|
28517
28536
|
Da as ResourceDownloadError,
|
|
28518
28537
|
ho as SupportedPHPVersions,
|
|
28519
|
-
|
|
28538
|
+
qv as SupportedPHPVersionsList,
|
|
28520
28539
|
nd as activatePlugin,
|
|
28521
28540
|
sd as activateTheme,
|
|
28522
28541
|
yd as compileBlueprint,
|
|
28523
28542
|
yd as compileBlueprintV1,
|
|
28524
|
-
|
|
28543
|
+
L_ as cp,
|
|
28525
28544
|
cd as defineSiteUrl,
|
|
28526
28545
|
qo as defineWpConfigConsts,
|
|
28527
|
-
|
|
28528
|
-
|
|
28529
|
-
|
|
28530
|
-
|
|
28546
|
+
I_ as enableMultisite,
|
|
28547
|
+
z_ as exportWXR,
|
|
28548
|
+
uv as getBlueprintDeclaration,
|
|
28549
|
+
kv as getV2Runner,
|
|
28531
28550
|
pd as importThemeStarterContent,
|
|
28532
|
-
|
|
28533
|
-
|
|
28534
|
-
|
|
28535
|
-
|
|
28551
|
+
q_ as importWordPressFiles,
|
|
28552
|
+
U_ as importWxr,
|
|
28553
|
+
H_ as installPlugin,
|
|
28554
|
+
V_ as installTheme,
|
|
28536
28555
|
gd as isBlueprintBundle,
|
|
28537
|
-
|
|
28538
|
-
|
|
28539
|
-
|
|
28540
|
-
|
|
28556
|
+
gv as isStepDefinition,
|
|
28557
|
+
Z_ as login,
|
|
28558
|
+
N_ as mkdir,
|
|
28559
|
+
C_ as mv,
|
|
28541
28560
|
mt as phpVar,
|
|
28542
28561
|
dn as phpVars,
|
|
28543
|
-
|
|
28544
|
-
|
|
28545
|
-
|
|
28546
|
-
|
|
28562
|
+
E_ as request,
|
|
28563
|
+
G_ as resetData,
|
|
28564
|
+
Wv as resolveRemoteBlueprint,
|
|
28565
|
+
Av as resolveRuntimeConfiguration,
|
|
28547
28566
|
co as rm,
|
|
28548
|
-
|
|
28549
|
-
|
|
28550
|
-
|
|
28551
|
-
|
|
28552
|
-
|
|
28553
|
-
|
|
28554
|
-
|
|
28555
|
-
|
|
28556
|
-
|
|
28557
|
-
|
|
28558
|
-
|
|
28567
|
+
D_ as rmdir,
|
|
28568
|
+
vv as runBlueprintSteps,
|
|
28569
|
+
vv as runBlueprintV1Steps,
|
|
28570
|
+
Mv as runBlueprintV2,
|
|
28571
|
+
v_ as runPHP,
|
|
28572
|
+
x_ as runPHPWithOptions,
|
|
28573
|
+
P_ as runSql,
|
|
28574
|
+
Y_ as runWpInstallationWizard,
|
|
28575
|
+
Bv as setPhpIniEntries,
|
|
28576
|
+
zv as setPluginProxyURL,
|
|
28577
|
+
ev as setSiteLanguage,
|
|
28559
28578
|
od as setSiteOptions,
|
|
28560
|
-
|
|
28579
|
+
Hv as startPlaygroundWeb,
|
|
28561
28580
|
zo as unzip,
|
|
28562
|
-
|
|
28563
|
-
|
|
28581
|
+
$_ as updateUserMeta,
|
|
28582
|
+
mv as validateBlueprint,
|
|
28564
28583
|
fd as wpCLI,
|
|
28565
28584
|
ud as wpContentFilesExcludedFromExport,
|
|
28566
28585
|
Wo as writeFile,
|
|
28567
|
-
|
|
28568
|
-
|
|
28586
|
+
j_ as writeFiles,
|
|
28587
|
+
K_ as zipWpContent
|
|
28569
28588
|
};
|