prez-lib 4.0.5 → 4.1.1
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/dist/prez-lib.js +318 -319
- package/dist/prez-lib.umd.cjs +7 -7
- package/package.json +1 -1
package/dist/prez-lib.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Qs = Object.defineProperty;
|
|
2
2
|
var Vs = (t, e, r) => e in t ? Qs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var Ze = (t, e, r) => Vs(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
function
|
|
4
|
+
function Du(t) {
|
|
5
5
|
return t.value !== void 0;
|
|
6
6
|
}
|
|
7
7
|
function Ks(t) {
|
|
@@ -2272,7 +2272,7 @@ function Qr(t) {
|
|
|
2272
2272
|
function Zt(t) {
|
|
2273
2273
|
return t.replace(/[\]\/\(\)\*\+\?\.\\\$]/g, "\\$&");
|
|
2274
2274
|
}
|
|
2275
|
-
const bo = /^:?[^:?#]*(?:[?#]|$)|^file:|^[^:]*:\/*[^?#]+?\/(?:\.\.?(?:\/|$)|\/)/i, kn = "./",
|
|
2275
|
+
const bo = /^:?[^:?#]*(?:[?#]|$)|^file:|^[^:]*:\/*[^?#]+?\/(?:\.\.?(?:\/|$)|\/)/i, yo = /^(?:(?:[^/?#]{3,}|\.?[^/?#.]\.?)(?:\/[^/?#]{3,}|\.?[^/?#.]\.?)*\/?)?(?:[?#]|$)/, kn = "./", go = "../", Rr = "?", Cn = "#";
|
|
2276
2276
|
class un {
|
|
2277
2277
|
constructor(e) {
|
|
2278
2278
|
this.base = e, this._baseLength = 0, this._baseMatcher = null, this._pathReplacements = new Array(e.length + 1);
|
|
@@ -2290,7 +2290,7 @@ class un {
|
|
|
2290
2290
|
for (; !u && !p && (l = a.exec(this.base)); )
|
|
2291
2291
|
l[1] === Cn ? p = a.lastIndex - 1 : (r.push(Zt(l[0]), "(?:"), n.push(")?"), l[1] !== Rr ? i.push(_ = a.lastIndex) : (u = _ = a.lastIndex, p = this.base.indexOf(Cn, u), this._pathReplacements[u] = Rr));
|
|
2292
2292
|
for (let y = 0; y < i.length; y++)
|
|
2293
|
-
this._pathReplacements[i[y]] =
|
|
2293
|
+
this._pathReplacements[i[y]] = go.repeat(i.length - y - 1);
|
|
2294
2294
|
return this._pathReplacements[i[i.length - 1]] = kn, this._baseLength = p > 0 ? p : this.base.length, r.push(
|
|
2295
2295
|
Zt(this.base.substring(_, this._baseLength)),
|
|
2296
2296
|
u ? "(?:#|$)" : "(?:[?#]|$)"
|
|
@@ -2306,13 +2306,12 @@ class un {
|
|
|
2306
2306
|
const i = this._pathReplacements[n];
|
|
2307
2307
|
if (i) {
|
|
2308
2308
|
const a = e.substring(n);
|
|
2309
|
-
return i !== Rr &&
|
|
2310
|
-
/^(?:[^#?]*?\/)?(?:\/|\.\.?(?:[/#?]|$))/.test(a) ? e : i === kn && /^[^?#]/.test(a) ? a : i + a;
|
|
2309
|
+
return i !== Rr && !yo.test(a) ? e : i === kn && /^[^?#]/.test(a) ? a : i + a;
|
|
2311
2310
|
}
|
|
2312
2311
|
return e.substring(n - 1);
|
|
2313
2312
|
}
|
|
2314
2313
|
}
|
|
2315
|
-
const Lt = ft.defaultGraph(), { rdf:
|
|
2314
|
+
const Lt = ft.defaultGraph(), { rdf: wo, xsd: yt } = pe, On = /["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/, Mn = /["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g, mo = {
|
|
2316
2315
|
"\\": "\\\\",
|
|
2317
2316
|
'"': '\\"',
|
|
2318
2317
|
" ": "\\t",
|
|
@@ -2431,7 +2430,7 @@ class Ui {
|
|
|
2431
2430
|
}
|
|
2432
2431
|
// ### `_encodePredicate` represents a predicate
|
|
2433
2432
|
_encodePredicate(e) {
|
|
2434
|
-
return e.value ===
|
|
2433
|
+
return e.value === wo.type ? "a" : this._encodeIriOrBlank(e);
|
|
2435
2434
|
}
|
|
2436
2435
|
// ### `_encodeObject` represents an object
|
|
2437
2436
|
_encodeObject(e) {
|
|
@@ -2535,11 +2534,11 @@ class Ui {
|
|
|
2535
2534
|
}
|
|
2536
2535
|
}
|
|
2537
2536
|
function Dn(t) {
|
|
2538
|
-
let e =
|
|
2537
|
+
let e = mo[t];
|
|
2539
2538
|
return e === void 0 && (t.length === 1 ? (e = t.charCodeAt(0).toString(16), e = "\\u0000".substr(0, 6 - e.length) + e) : (e = ((t.charCodeAt(0) - 55296) * 1024 + t.charCodeAt(1) + 9216).toString(16), e = "\\U00000000".substr(0, 10 - e.length) + e)), e;
|
|
2540
2539
|
}
|
|
2541
2540
|
var Wi = { exports: {} }, Ar = { exports: {} };
|
|
2542
|
-
let
|
|
2541
|
+
let xo = class extends Error {
|
|
2543
2542
|
constructor(e) {
|
|
2544
2543
|
if (!Array.isArray(e))
|
|
2545
2544
|
throw new TypeError(`Expected input to be an Array, got ${typeof e}`);
|
|
@@ -2551,7 +2550,7 @@ let mo = class extends Error {
|
|
|
2551
2550
|
}
|
|
2552
2551
|
};
|
|
2553
2552
|
var fe = {
|
|
2554
|
-
AggregateError:
|
|
2553
|
+
AggregateError: xo,
|
|
2555
2554
|
ArrayIsArray(t) {
|
|
2556
2555
|
return Array.isArray(t);
|
|
2557
2556
|
},
|
|
@@ -2676,7 +2675,7 @@ var fe = {
|
|
|
2676
2675
|
}
|
|
2677
2676
|
}
|
|
2678
2677
|
};
|
|
2679
|
-
const { format:
|
|
2678
|
+
const { format: Eo, inspect: nr } = zi, { AggregateError: So } = fe, Io = globalThis.AggregateError || So, Ro = Symbol("kIsNodeError"), Ao = [
|
|
2680
2679
|
"string",
|
|
2681
2680
|
"function",
|
|
2682
2681
|
"number",
|
|
@@ -2687,7 +2686,7 @@ const { format: xo, inspect: nr } = zi, { AggregateError: Eo } = fe, So = global
|
|
|
2687
2686
|
"boolean",
|
|
2688
2687
|
"bigint",
|
|
2689
2688
|
"symbol"
|
|
2690
|
-
],
|
|
2689
|
+
], To = /^([A-Z][a-z0-9]*)+$/, vo = "__node_internal_", ar = {};
|
|
2691
2690
|
function ut(t, e) {
|
|
2692
2691
|
if (!t)
|
|
2693
2692
|
throw new ar.ERR_INTERNAL_ASSERTION(e);
|
|
@@ -2699,7 +2698,7 @@ function Un(t) {
|
|
|
2699
2698
|
e = `_${t.slice(r - 3, r)}${e}`;
|
|
2700
2699
|
return `${t.slice(0, r)}${e}`;
|
|
2701
2700
|
}
|
|
2702
|
-
function
|
|
2701
|
+
function No(t, e, r) {
|
|
2703
2702
|
if (typeof e == "function")
|
|
2704
2703
|
return ut(
|
|
2705
2704
|
e.length <= r.length,
|
|
@@ -2710,13 +2709,13 @@ function vo(t, e, r) {
|
|
|
2710
2709
|
return ut(
|
|
2711
2710
|
n === r.length,
|
|
2712
2711
|
`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`
|
|
2713
|
-
), r.length === 0 ? e :
|
|
2712
|
+
), r.length === 0 ? e : Eo(e, ...r);
|
|
2714
2713
|
}
|
|
2715
2714
|
function be(t, e, r) {
|
|
2716
2715
|
r || (r = Error);
|
|
2717
2716
|
class n extends r {
|
|
2718
2717
|
constructor(...a) {
|
|
2719
|
-
super(
|
|
2718
|
+
super(No(t, e, a));
|
|
2720
2719
|
}
|
|
2721
2720
|
toString() {
|
|
2722
2721
|
return `${this.name} [${t}]: ${this.message}`;
|
|
@@ -2737,24 +2736,24 @@ function be(t, e, r) {
|
|
|
2737
2736
|
enumerable: !1,
|
|
2738
2737
|
configurable: !0
|
|
2739
2738
|
}
|
|
2740
|
-
}), n.prototype.code = t, n.prototype[
|
|
2739
|
+
}), n.prototype.code = t, n.prototype[Ro] = !0, ar[t] = n;
|
|
2741
2740
|
}
|
|
2742
2741
|
function Wn(t) {
|
|
2743
|
-
const e =
|
|
2742
|
+
const e = vo + t.name;
|
|
2744
2743
|
return Object.defineProperty(t, "name", {
|
|
2745
2744
|
value: e
|
|
2746
2745
|
}), t;
|
|
2747
2746
|
}
|
|
2748
|
-
function
|
|
2747
|
+
function Po(t, e) {
|
|
2749
2748
|
if (t && e && t !== e) {
|
|
2750
2749
|
if (Array.isArray(e.errors))
|
|
2751
2750
|
return e.errors.push(t), e;
|
|
2752
|
-
const r = new
|
|
2751
|
+
const r = new Io([e, t], e.message);
|
|
2753
2752
|
return r.code = e.code, r;
|
|
2754
2753
|
}
|
|
2755
2754
|
return t || e;
|
|
2756
2755
|
}
|
|
2757
|
-
let
|
|
2756
|
+
let jo = class extends Error {
|
|
2758
2757
|
constructor(e = "The operation was aborted", r = void 0) {
|
|
2759
2758
|
if (r !== void 0 && typeof r != "object")
|
|
2760
2759
|
throw new ar.ERR_INVALID_ARG_TYPE("options", "Object", r);
|
|
@@ -2770,7 +2769,7 @@ be(
|
|
|
2770
2769
|
t.endsWith(" argument") ? n += `${t} ` : n += `"${t}" ${t.includes(".") ? "property" : "argument"} `, n += "must be ";
|
|
2771
2770
|
const i = [], a = [], l = [];
|
|
2772
2771
|
for (const p of e)
|
|
2773
|
-
ut(typeof p == "string", "All expected entries have to be of type string"),
|
|
2772
|
+
ut(typeof p == "string", "All expected entries have to be of type string"), Ao.includes(p) ? i.push(p.toLowerCase()) : To.test(p) ? a.push(p) : (ut(p !== "object", 'The value "object" should be written as "Object"'), l.push(p));
|
|
2774
2773
|
if (a.length > 0) {
|
|
2775
2774
|
const p = i.indexOf("object");
|
|
2776
2775
|
p !== -1 && (i.splice(i, p, 1), a.push("Object"));
|
|
@@ -2913,8 +2912,8 @@ be("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event", Err
|
|
|
2913
2912
|
be("ERR_STREAM_WRITE_AFTER_END", "write after end", Error);
|
|
2914
2913
|
be("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s", TypeError);
|
|
2915
2914
|
var xe = {
|
|
2916
|
-
AbortError:
|
|
2917
|
-
aggregateTwoErrors: Wn(
|
|
2915
|
+
AbortError: jo,
|
|
2916
|
+
aggregateTwoErrors: Wn(Po),
|
|
2918
2917
|
hideStackFrames: Wn,
|
|
2919
2918
|
codes: ar
|
|
2920
2919
|
}, Bt = { exports: {} }, Gn;
|
|
@@ -2935,7 +2934,7 @@ xt && typeof xt.ownKeys == "function" ? Jt = xt.ownKeys : Object.getOwnPropertyS
|
|
|
2935
2934
|
} : Jt = function(e) {
|
|
2936
2935
|
return Object.getOwnPropertyNames(e);
|
|
2937
2936
|
};
|
|
2938
|
-
function
|
|
2937
|
+
function Lo(t) {
|
|
2939
2938
|
console && console.warn && console.warn(t);
|
|
2940
2939
|
}
|
|
2941
2940
|
var qi = Number.isNaN || function(e) {
|
|
@@ -2945,7 +2944,7 @@ function Y() {
|
|
|
2945
2944
|
Y.init.call(this);
|
|
2946
2945
|
}
|
|
2947
2946
|
fn.exports = Y;
|
|
2948
|
-
fn.exports.once =
|
|
2947
|
+
fn.exports.once = ko;
|
|
2949
2948
|
Y.EventEmitter = Y;
|
|
2950
2949
|
Y.prototype._events = void 0;
|
|
2951
2950
|
Y.prototype._eventsCount = 0;
|
|
@@ -3015,7 +3014,7 @@ function Qi(t, e, r, n) {
|
|
|
3015
3014
|
else if (typeof l == "function" ? l = a[e] = n ? [r, l] : [l, r] : n ? l.unshift(r) : l.push(r), i = Hi(t), i > 0 && l.length > i && !l.warned) {
|
|
3016
3015
|
l.warned = !0;
|
|
3017
3016
|
var u = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
3018
|
-
u.name = "MaxListenersExceededWarning", u.emitter = t, u.type = e, u.count = l.length,
|
|
3017
|
+
u.name = "MaxListenersExceededWarning", u.emitter = t, u.type = e, u.count = l.length, Lo(u);
|
|
3019
3018
|
}
|
|
3020
3019
|
return t;
|
|
3021
3020
|
}
|
|
@@ -3026,12 +3025,12 @@ Y.prototype.on = Y.prototype.addListener;
|
|
|
3026
3025
|
Y.prototype.prependListener = function(e, r) {
|
|
3027
3026
|
return Qi(this, e, r, !0);
|
|
3028
3027
|
};
|
|
3029
|
-
function
|
|
3028
|
+
function $o() {
|
|
3030
3029
|
if (!this.fired)
|
|
3031
3030
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
3032
3031
|
}
|
|
3033
3032
|
function Vi(t, e, r) {
|
|
3034
|
-
var n = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, i =
|
|
3033
|
+
var n = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, i = $o.bind(n);
|
|
3035
3034
|
return i.listener = r, n.wrapFn = i, i;
|
|
3036
3035
|
}
|
|
3037
3036
|
Y.prototype.once = function(e, r) {
|
|
@@ -3056,7 +3055,7 @@ Y.prototype.removeListener = function(e, r) {
|
|
|
3056
3055
|
}
|
|
3057
3056
|
if (a < 0)
|
|
3058
3057
|
return this;
|
|
3059
|
-
a === 0 ? n.shift() :
|
|
3058
|
+
a === 0 ? n.shift() : Bo(n, a), n.length === 1 && (i[e] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", e, u || r);
|
|
3060
3059
|
}
|
|
3061
3060
|
return this;
|
|
3062
3061
|
};
|
|
@@ -3085,7 +3084,7 @@ function Ki(t, e, r) {
|
|
|
3085
3084
|
if (n === void 0)
|
|
3086
3085
|
return [];
|
|
3087
3086
|
var i = n[e];
|
|
3088
|
-
return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ?
|
|
3087
|
+
return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? Fo(i) : Xi(i, i.length);
|
|
3089
3088
|
}
|
|
3090
3089
|
Y.prototype.listeners = function(e) {
|
|
3091
3090
|
return Ki(this, e, !0);
|
|
@@ -3116,17 +3115,17 @@ function Xi(t, e) {
|
|
|
3116
3115
|
r[n] = t[n];
|
|
3117
3116
|
return r;
|
|
3118
3117
|
}
|
|
3119
|
-
function
|
|
3118
|
+
function Bo(t, e) {
|
|
3120
3119
|
for (; e + 1 < t.length; e++)
|
|
3121
3120
|
t[e] = t[e + 1];
|
|
3122
3121
|
t.pop();
|
|
3123
3122
|
}
|
|
3124
|
-
function
|
|
3123
|
+
function Fo(t) {
|
|
3125
3124
|
for (var e = new Array(t.length), r = 0; r < e.length; ++r)
|
|
3126
3125
|
e[r] = t[r].listener || t[r];
|
|
3127
3126
|
return e;
|
|
3128
3127
|
}
|
|
3129
|
-
function
|
|
3128
|
+
function ko(t, e) {
|
|
3130
3129
|
return new Promise(function(r, n) {
|
|
3131
3130
|
function i(l) {
|
|
3132
3131
|
t.removeListener(e, a), n(l);
|
|
@@ -3134,10 +3133,10 @@ function Fo(t, e) {
|
|
|
3134
3133
|
function a() {
|
|
3135
3134
|
typeof t.removeListener == "function" && t.removeListener("error", i), r([].slice.call(arguments));
|
|
3136
3135
|
}
|
|
3137
|
-
Zi(t, e, a, { once: !0 }), e !== "error" &&
|
|
3136
|
+
Zi(t, e, a, { once: !0 }), e !== "error" && Co(t, i, { once: !0 });
|
|
3138
3137
|
});
|
|
3139
3138
|
}
|
|
3140
|
-
function
|
|
3139
|
+
function Co(t, e, r) {
|
|
3141
3140
|
typeof t.on == "function" && Zi(t, "error", e, r);
|
|
3142
3141
|
}
|
|
3143
3142
|
function Zi(t, e, r, n) {
|
|
@@ -3250,18 +3249,18 @@ var ur = fn.exports;
|
|
|
3250
3249
|
var Ie = Gi.exports, cn = {};
|
|
3251
3250
|
const {
|
|
3252
3251
|
ArrayIsArray: Ji,
|
|
3253
|
-
ArrayPrototypeIncludes:
|
|
3254
|
-
ArrayPrototypeJoin:
|
|
3255
|
-
ArrayPrototypeMap:
|
|
3252
|
+
ArrayPrototypeIncludes: Oo,
|
|
3253
|
+
ArrayPrototypeJoin: Mo,
|
|
3254
|
+
ArrayPrototypeMap: Do,
|
|
3256
3255
|
NumberIsInteger: dn,
|
|
3257
|
-
NumberMAX_SAFE_INTEGER:
|
|
3258
|
-
NumberMIN_SAFE_INTEGER:
|
|
3259
|
-
ObjectPrototypeHasOwnProperty:
|
|
3260
|
-
String:
|
|
3256
|
+
NumberMAX_SAFE_INTEGER: Uo,
|
|
3257
|
+
NumberMIN_SAFE_INTEGER: Wo,
|
|
3258
|
+
ObjectPrototypeHasOwnProperty: Go,
|
|
3259
|
+
String: zo
|
|
3261
3260
|
} = fe, {
|
|
3262
3261
|
hideStackFrames: Pe,
|
|
3263
3262
|
codes: { ERR_INVALID_ARG_TYPE: je, ERR_INVALID_ARG_VALUE: es, ERR_OUT_OF_RANGE: It }
|
|
3264
|
-
} = xe, { normalizeEncoding:
|
|
3263
|
+
} = xe, { normalizeEncoding: zu } = Ie, { isAsyncFunction: qo, isArrayBufferView: Ho } = Ie.types, Qo = Pe((t, e, r = Wo, n = Uo) => {
|
|
3265
3264
|
if (typeof t != "number") throw new je(e, "number", t);
|
|
3266
3265
|
if (!dn(t)) throw new It(e, "an integer", t);
|
|
3267
3266
|
if (t < r || t > n) throw new It(e, `>= ${r} && <= ${n}`, t);
|
|
@@ -3284,21 +3283,21 @@ Pe((t, e, r = !1) => {
|
|
|
3284
3283
|
throw new It(e, `>= ${n} && <= ${i}`, t);
|
|
3285
3284
|
});
|
|
3286
3285
|
Pe((t, e, r) => {
|
|
3287
|
-
if (!
|
|
3288
|
-
const i = "must be one of: " +
|
|
3289
|
-
|
|
3286
|
+
if (!Oo(r, t)) {
|
|
3287
|
+
const i = "must be one of: " + Mo(
|
|
3288
|
+
Do(r, (a) => typeof a == "string" ? `'${a}'` : zo(a)),
|
|
3290
3289
|
", "
|
|
3291
3290
|
);
|
|
3292
3291
|
throw new es(e, t, i);
|
|
3293
3292
|
}
|
|
3294
3293
|
});
|
|
3295
|
-
function
|
|
3294
|
+
function Vo(t, e) {
|
|
3296
3295
|
if (typeof t != "boolean") throw new je(e, "boolean", t);
|
|
3297
3296
|
}
|
|
3298
3297
|
function Tr(t, e, r) {
|
|
3299
|
-
return t == null || !
|
|
3298
|
+
return t == null || !Go(t, e) ? r : t[e];
|
|
3300
3299
|
}
|
|
3301
|
-
const
|
|
3300
|
+
const Ko = Pe((t, e, r = null) => {
|
|
3302
3301
|
const n = Tr(r, "allowArray", !1), i = Tr(r, "allowFunction", !1);
|
|
3303
3302
|
if (!Tr(r, "nullable", !1) && t === null || !n && Ji(t) || typeof t != "object" && (!i || typeof t != "function"))
|
|
3304
3303
|
throw new je(e, "Object", t);
|
|
@@ -3316,27 +3315,27 @@ Pe((t, e, r = 0) => {
|
|
|
3316
3315
|
}
|
|
3317
3316
|
});
|
|
3318
3317
|
Pe((t, e = "buffer") => {
|
|
3319
|
-
if (!
|
|
3318
|
+
if (!Ho(t))
|
|
3320
3319
|
throw new je(e, ["Buffer", "TypedArray", "DataView"], t);
|
|
3321
3320
|
});
|
|
3322
|
-
const
|
|
3321
|
+
const Yo = Pe((t, e) => {
|
|
3323
3322
|
if (t !== void 0 && (t === null || typeof t != "object" || !("aborted" in t)))
|
|
3324
3323
|
throw new je(e, "AbortSignal", t);
|
|
3325
|
-
}),
|
|
3324
|
+
}), Xo = Pe((t, e) => {
|
|
3326
3325
|
if (typeof t != "function") throw new je(e, "Function", t);
|
|
3327
3326
|
});
|
|
3328
3327
|
Pe((t, e) => {
|
|
3329
|
-
if (typeof t != "function" ||
|
|
3328
|
+
if (typeof t != "function" || qo(t)) throw new je(e, "Function", t);
|
|
3330
3329
|
});
|
|
3331
3330
|
Pe((t, e) => {
|
|
3332
3331
|
if (t !== void 0) throw new je(e, "undefined", t);
|
|
3333
3332
|
});
|
|
3334
3333
|
var Wt = {
|
|
3335
|
-
validateBoolean:
|
|
3336
|
-
validateFunction:
|
|
3337
|
-
validateInteger:
|
|
3338
|
-
validateObject:
|
|
3339
|
-
validateAbortSignal:
|
|
3334
|
+
validateBoolean: Vo,
|
|
3335
|
+
validateFunction: Xo,
|
|
3336
|
+
validateInteger: Qo,
|
|
3337
|
+
validateObject: Ko,
|
|
3338
|
+
validateAbortSignal: Yo
|
|
3340
3339
|
}, hn = { exports: {} }, ts = { exports: {} }, de = ts.exports = {}, Fe, ke;
|
|
3341
3340
|
function Vr() {
|
|
3342
3341
|
throw new Error("setTimeout has not been defined");
|
|
@@ -3371,7 +3370,7 @@ function rs(t) {
|
|
|
3371
3370
|
}
|
|
3372
3371
|
}
|
|
3373
3372
|
}
|
|
3374
|
-
function
|
|
3373
|
+
function Zo(t) {
|
|
3375
3374
|
if (ke === clearTimeout)
|
|
3376
3375
|
return clearTimeout(t);
|
|
3377
3376
|
if ((ke === Kr || !ke) && clearTimeout)
|
|
@@ -3387,19 +3386,19 @@ function Xo(t) {
|
|
|
3387
3386
|
}
|
|
3388
3387
|
}
|
|
3389
3388
|
var qe = [], Et = !1, lt, er = -1;
|
|
3390
|
-
function
|
|
3389
|
+
function Jo() {
|
|
3391
3390
|
!Et || !lt || (Et = !1, lt.length ? qe = lt.concat(qe) : er = -1, qe.length && ns());
|
|
3392
3391
|
}
|
|
3393
3392
|
function ns() {
|
|
3394
3393
|
if (!Et) {
|
|
3395
|
-
var t = rs(
|
|
3394
|
+
var t = rs(Jo);
|
|
3396
3395
|
Et = !0;
|
|
3397
3396
|
for (var e = qe.length; e; ) {
|
|
3398
3397
|
for (lt = qe, qe = []; ++er < e; )
|
|
3399
3398
|
lt && lt[er].run();
|
|
3400
3399
|
er = -1, e = qe.length;
|
|
3401
3400
|
}
|
|
3402
|
-
lt = null, Et = !1,
|
|
3401
|
+
lt = null, Et = !1, Zo(t);
|
|
3403
3402
|
}
|
|
3404
3403
|
}
|
|
3405
3404
|
de.nextTick = function(t) {
|
|
@@ -3448,7 +3447,7 @@ de.umask = function() {
|
|
|
3448
3447
|
return 0;
|
|
3449
3448
|
};
|
|
3450
3449
|
var ct = ts.exports;
|
|
3451
|
-
const { SymbolAsyncIterator: Hn, SymbolIterator: Qn, SymbolFor: dt } = fe, ss = dt("nodejs.stream.destroyed"),
|
|
3450
|
+
const { SymbolAsyncIterator: Hn, SymbolIterator: Qn, SymbolFor: dt } = fe, ss = dt("nodejs.stream.destroyed"), ea = dt("nodejs.stream.errored"), Vn = dt("nodejs.stream.readable"), Kn = dt("nodejs.stream.writable"), ta = dt("nodejs.stream.disturbed"), ra = dt("nodejs.webstream.isClosedPromise"), na = dt("nodejs.webstream.controllerErrorFunction");
|
|
3452
3451
|
function pn(t, e = !1) {
|
|
3453
3452
|
var r;
|
|
3454
3453
|
return !!(t && typeof t.pipe == "function" && typeof t.on == "function" && (!e || typeof t.pause == "function" && typeof t.resume == "function") && (!t._writableState || ((r = t._readableState) === null || r === void 0 ? void 0 : r.readable) !== !1) && // Duplex
|
|
@@ -3458,7 +3457,7 @@ function fr(t) {
|
|
|
3458
3457
|
var e;
|
|
3459
3458
|
return !!(t && typeof t.write == "function" && typeof t.on == "function" && (!t._readableState || ((e = t._writableState) === null || e === void 0 ? void 0 : e.writable) !== !1));
|
|
3460
3459
|
}
|
|
3461
|
-
function
|
|
3460
|
+
function ia(t) {
|
|
3462
3461
|
return !!(t && typeof t.pipe == "function" && t._readableState && typeof t.on == "function" && typeof t.write == "function");
|
|
3463
3462
|
}
|
|
3464
3463
|
function Ue(t) {
|
|
@@ -3473,10 +3472,10 @@ function as(t) {
|
|
|
3473
3472
|
function ls(t) {
|
|
3474
3473
|
return !!(t && !Ue(t) && typeof t.readable == "object" && typeof t.writable == "object");
|
|
3475
3474
|
}
|
|
3476
|
-
function
|
|
3475
|
+
function sa(t) {
|
|
3477
3476
|
return os(t) || as(t) || ls(t);
|
|
3478
3477
|
}
|
|
3479
|
-
function
|
|
3478
|
+
function oa(t, e) {
|
|
3480
3479
|
return t == null ? !1 : e === !0 ? typeof t[Hn] == "function" : e === !1 ? typeof t[Qn] == "function" : typeof t[Hn] == "function" || typeof t[Qn] == "function";
|
|
3481
3480
|
}
|
|
3482
3481
|
function cr(t) {
|
|
@@ -3484,13 +3483,13 @@ function cr(t) {
|
|
|
3484
3483
|
const e = t._writableState, r = t._readableState, n = e || r;
|
|
3485
3484
|
return !!(t.destroyed || t[ss] || n != null && n.destroyed);
|
|
3486
3485
|
}
|
|
3487
|
-
function
|
|
3486
|
+
function aa(t) {
|
|
3488
3487
|
if (!fr(t)) return null;
|
|
3489
3488
|
if (t.writableEnded === !0) return !0;
|
|
3490
3489
|
const e = t._writableState;
|
|
3491
3490
|
return e != null && e.errored ? !1 : typeof (e == null ? void 0 : e.ended) != "boolean" ? null : e.ended;
|
|
3492
3491
|
}
|
|
3493
|
-
function
|
|
3492
|
+
function la(t, e) {
|
|
3494
3493
|
if (!fr(t)) return null;
|
|
3495
3494
|
if (t.writableFinished === !0) return !0;
|
|
3496
3495
|
const r = t._writableState;
|
|
@@ -3505,20 +3504,20 @@ function fs(t) {
|
|
|
3505
3504
|
return t && t[Vn] != null ? t[Vn] : typeof (t == null ? void 0 : t.readable) != "boolean" ? null : cr(t) ? !1 : pn(t) && t.readable && !us(t);
|
|
3506
3505
|
}
|
|
3507
3506
|
function cs(t) {
|
|
3508
|
-
return t && t[Kn] != null ? t[Kn] : typeof (t == null ? void 0 : t.writable) != "boolean" ? null : cr(t) ? !1 : fr(t) && t.writable && !
|
|
3507
|
+
return t && t[Kn] != null ? t[Kn] : typeof (t == null ? void 0 : t.writable) != "boolean" ? null : cr(t) ? !1 : fr(t) && t.writable && !aa(t);
|
|
3509
3508
|
}
|
|
3510
|
-
function
|
|
3509
|
+
function ua(t, e) {
|
|
3511
3510
|
return Ue(t) ? cr(t) ? !0 : !((e == null ? void 0 : e.readable) !== !1 && fs(t) || (e == null ? void 0 : e.writable) !== !1 && cs(t)) : null;
|
|
3512
3511
|
}
|
|
3513
|
-
function
|
|
3512
|
+
function fa(t) {
|
|
3514
3513
|
var e, r;
|
|
3515
3514
|
return Ue(t) ? t.writableErrored ? t.writableErrored : (e = (r = t._writableState) === null || r === void 0 ? void 0 : r.errored) !== null && e !== void 0 ? e : null : null;
|
|
3516
3515
|
}
|
|
3517
|
-
function
|
|
3516
|
+
function ca(t) {
|
|
3518
3517
|
var e, r;
|
|
3519
3518
|
return Ue(t) ? t.readableErrored ? t.readableErrored : (e = (r = t._readableState) === null || r === void 0 ? void 0 : r.errored) !== null && e !== void 0 ? e : null : null;
|
|
3520
3519
|
}
|
|
3521
|
-
function
|
|
3520
|
+
function da(t) {
|
|
3522
3521
|
if (!Ue(t))
|
|
3523
3522
|
return null;
|
|
3524
3523
|
if (typeof t.closed == "boolean")
|
|
@@ -3529,85 +3528,85 @@ function ca(t) {
|
|
|
3529
3528
|
function ds(t) {
|
|
3530
3529
|
return typeof t._closed == "boolean" && typeof t._defaultKeepAlive == "boolean" && typeof t._removedConnection == "boolean" && typeof t._removedContLen == "boolean";
|
|
3531
3530
|
}
|
|
3532
|
-
function
|
|
3531
|
+
function ha(t) {
|
|
3533
3532
|
return typeof t._sent100 == "boolean" && ds(t);
|
|
3534
3533
|
}
|
|
3535
|
-
function
|
|
3534
|
+
function pa(t) {
|
|
3536
3535
|
var e;
|
|
3537
3536
|
return typeof t._consuming == "boolean" && typeof t._dumped == "boolean" && ((e = t.req) === null || e === void 0 ? void 0 : e.upgradeOrConnect) === void 0;
|
|
3538
3537
|
}
|
|
3539
|
-
function
|
|
3538
|
+
function _a(t) {
|
|
3540
3539
|
if (!Ue(t)) return null;
|
|
3541
3540
|
const e = t._writableState, r = t._readableState, n = e || r;
|
|
3542
|
-
return !n &&
|
|
3541
|
+
return !n && ha(t) || !!(n && n.autoDestroy && n.emitClose && n.closed === !1);
|
|
3543
3542
|
}
|
|
3544
|
-
function
|
|
3543
|
+
function ba(t) {
|
|
3545
3544
|
var e;
|
|
3546
|
-
return !!(t && ((e = t[
|
|
3545
|
+
return !!(t && ((e = t[ta]) !== null && e !== void 0 ? e : t.readableDidRead || t.readableAborted));
|
|
3547
3546
|
}
|
|
3548
|
-
function
|
|
3547
|
+
function ya(t) {
|
|
3549
3548
|
var e, r, n, i, a, l, u, p, _, y;
|
|
3550
|
-
return !!(t && ((e = (r = (n = (i = (a = (l = t[
|
|
3549
|
+
return !!(t && ((e = (r = (n = (i = (a = (l = t[ea]) !== null && l !== void 0 ? l : t.readableErrored) !== null && a !== void 0 ? a : t.writableErrored) !== null && i !== void 0 ? i : (u = t._readableState) === null || u === void 0 ? void 0 : u.errorEmitted) !== null && n !== void 0 ? n : (p = t._writableState) === null || p === void 0 ? void 0 : p.errorEmitted) !== null && r !== void 0 ? r : (_ = t._readableState) === null || _ === void 0 ? void 0 : _.errored) !== null && e !== void 0 ? e : !((y = t._writableState) === null || y === void 0) && y.errored));
|
|
3551
3550
|
}
|
|
3552
3551
|
var Ke = {
|
|
3553
3552
|
isDestroyed: cr,
|
|
3554
3553
|
kIsDestroyed: ss,
|
|
3555
|
-
isDisturbed:
|
|
3556
|
-
isErrored:
|
|
3554
|
+
isDisturbed: ba,
|
|
3555
|
+
isErrored: ya,
|
|
3557
3556
|
isReadable: fs,
|
|
3558
|
-
kIsClosedPromise:
|
|
3559
|
-
kControllerErrorFunction:
|
|
3560
|
-
isClosed:
|
|
3561
|
-
isDuplexNodeStream:
|
|
3562
|
-
isFinished:
|
|
3563
|
-
isIterable:
|
|
3557
|
+
kIsClosedPromise: ra,
|
|
3558
|
+
kControllerErrorFunction: na,
|
|
3559
|
+
isClosed: da,
|
|
3560
|
+
isDuplexNodeStream: ia,
|
|
3561
|
+
isFinished: ua,
|
|
3562
|
+
isIterable: oa,
|
|
3564
3563
|
isReadableNodeStream: pn,
|
|
3565
3564
|
isReadableStream: os,
|
|
3566
3565
|
isReadableFinished: us,
|
|
3567
|
-
isReadableErrored:
|
|
3566
|
+
isReadableErrored: ca,
|
|
3568
3567
|
isNodeStream: Ue,
|
|
3569
|
-
isWebStream:
|
|
3568
|
+
isWebStream: sa,
|
|
3570
3569
|
isWritable: cs,
|
|
3571
3570
|
isWritableNodeStream: fr,
|
|
3572
3571
|
isWritableStream: as,
|
|
3573
|
-
isWritableFinished:
|
|
3574
|
-
isWritableErrored:
|
|
3575
|
-
isServerRequest:
|
|
3576
|
-
willEmitClose:
|
|
3572
|
+
isWritableFinished: la,
|
|
3573
|
+
isWritableErrored: fa,
|
|
3574
|
+
isServerRequest: pa,
|
|
3575
|
+
willEmitClose: _a,
|
|
3577
3576
|
isTransformStream: ls
|
|
3578
3577
|
};
|
|
3579
|
-
const Je = ct, { AbortError: hs, codes:
|
|
3580
|
-
isClosed:
|
|
3578
|
+
const Je = ct, { AbortError: hs, codes: ga } = xe, { ERR_INVALID_ARG_TYPE: wa, ERR_STREAM_PREMATURE_CLOSE: Yn } = ga, { kEmptyObject: Yr, once: Xr } = Ie, { validateAbortSignal: ma, validateFunction: xa, validateObject: Ea, validateBoolean: Sa } = Wt, { Promise: Ia, PromisePrototypeThen: Ra, SymbolDispose: ps } = fe, {
|
|
3579
|
+
isClosed: Aa,
|
|
3581
3580
|
isReadable: Xn,
|
|
3582
3581
|
isReadableNodeStream: vr,
|
|
3583
|
-
isReadableStream:
|
|
3582
|
+
isReadableStream: Ta,
|
|
3584
3583
|
isReadableFinished: Zn,
|
|
3585
3584
|
isReadableErrored: Jn,
|
|
3586
3585
|
isWritable: ei,
|
|
3587
3586
|
isWritableNodeStream: ti,
|
|
3588
|
-
isWritableStream:
|
|
3587
|
+
isWritableStream: va,
|
|
3589
3588
|
isWritableFinished: ri,
|
|
3590
3589
|
isWritableErrored: ni,
|
|
3591
|
-
isNodeStream:
|
|
3592
|
-
willEmitClose:
|
|
3593
|
-
kIsClosedPromise:
|
|
3590
|
+
isNodeStream: Na,
|
|
3591
|
+
willEmitClose: Pa,
|
|
3592
|
+
kIsClosedPromise: ja
|
|
3594
3593
|
} = Ke;
|
|
3595
3594
|
let St;
|
|
3596
|
-
function
|
|
3595
|
+
function La(t) {
|
|
3597
3596
|
return t.setHeader && typeof t.abort == "function";
|
|
3598
3597
|
}
|
|
3599
3598
|
const Zr = () => {
|
|
3600
3599
|
};
|
|
3601
3600
|
function _s(t, e, r) {
|
|
3602
3601
|
var n, i;
|
|
3603
|
-
if (arguments.length === 2 ? (r = e, e = Yr) : e == null ? e = Yr :
|
|
3604
|
-
return
|
|
3605
|
-
if (!
|
|
3606
|
-
throw new
|
|
3602
|
+
if (arguments.length === 2 ? (r = e, e = Yr) : e == null ? e = Yr : Ea(e, "options"), xa(r, "callback"), ma(e.signal, "options.signal"), r = Xr(r), Ta(t) || va(t))
|
|
3603
|
+
return $a(t, e, r);
|
|
3604
|
+
if (!Na(t))
|
|
3605
|
+
throw new wa("stream", ["ReadableStream", "WritableStream", "Stream"], t);
|
|
3607
3606
|
const a = (n = e.readable) !== null && n !== void 0 ? n : vr(t), l = (i = e.writable) !== null && i !== void 0 ? i : ti(t), u = t._writableState, p = t._readableState, _ = () => {
|
|
3608
3607
|
t.writable || I();
|
|
3609
3608
|
};
|
|
3610
|
-
let y =
|
|
3609
|
+
let y = Pa(t) && vr(t) === a && ti(t) === l, x = ri(t, !1);
|
|
3611
3610
|
const I = () => {
|
|
3612
3611
|
x = !0, t.destroyed && (y = !1), !(y && (!t.readable || a)) && (!a || S) && r.call(t);
|
|
3613
3612
|
};
|
|
@@ -3617,7 +3616,7 @@ function _s(t, e, r) {
|
|
|
3617
3616
|
}, m = (U) => {
|
|
3618
3617
|
r.call(t, U);
|
|
3619
3618
|
};
|
|
3620
|
-
let v =
|
|
3619
|
+
let v = Aa(t);
|
|
3621
3620
|
const $ = () => {
|
|
3622
3621
|
v = !0;
|
|
3623
3622
|
const U = ni(t) || Jn(t);
|
|
@@ -3637,7 +3636,7 @@ function _s(t, e, r) {
|
|
|
3637
3636
|
}, A = () => {
|
|
3638
3637
|
t.req.on("finish", I);
|
|
3639
3638
|
};
|
|
3640
|
-
|
|
3639
|
+
La(t) ? (t.on("complete", I), y || t.on("abort", $), t.req ? A() : t.on("request", A)) : l && !u && (t.on("end", _), t.on("close", _)), !y && typeof t.aborted == "boolean" && t.on("aborted", $), t.on("end", R), t.on("finish", I), e.error !== !1 && t.on("error", m), t.on("close", $), v ? Je.nextTick($) : u != null && u.errorEmitted || p != null && p.errorEmitted ? y || Je.nextTick(B) : (!a && (!y || Xn(t)) && (x || ei(t) === !1) || !l && (!y || ei(t)) && (S || Xn(t) === !1) || p && t.req && t.aborted) && Je.nextTick(B);
|
|
3641
3640
|
const z = () => {
|
|
3642
3641
|
r = Zr, t.removeListener("aborted", $), t.removeListener("complete", I), t.removeListener("abort", $), t.removeListener("request", A), t.req && t.req.removeListener("finish", I), t.removeListener("end", _), t.removeListener("close", _), t.removeListener("finish", I), t.removeListener("end", R), t.removeListener("error", m), t.removeListener("close", $);
|
|
3643
3642
|
};
|
|
@@ -3663,7 +3662,7 @@ function _s(t, e, r) {
|
|
|
3663
3662
|
}
|
|
3664
3663
|
return z;
|
|
3665
3664
|
}
|
|
3666
|
-
function
|
|
3665
|
+
function $a(t, e, r) {
|
|
3667
3666
|
let n = !1, i = Zr;
|
|
3668
3667
|
if (e.signal)
|
|
3669
3668
|
if (i = () => {
|
|
@@ -3685,32 +3684,32 @@ function La(t, e, r) {
|
|
|
3685
3684
|
const a = (...l) => {
|
|
3686
3685
|
n || Je.nextTick(() => r.apply(t, l));
|
|
3687
3686
|
};
|
|
3688
|
-
return
|
|
3687
|
+
return Ra(t[ja].promise, a, a), Zr;
|
|
3689
3688
|
}
|
|
3690
|
-
function
|
|
3689
|
+
function Ba(t, e) {
|
|
3691
3690
|
var r;
|
|
3692
3691
|
let n = !1;
|
|
3693
|
-
return e === null && (e = Yr), (r = e) !== null && r !== void 0 && r.cleanup && (
|
|
3692
|
+
return e === null && (e = Yr), (r = e) !== null && r !== void 0 && r.cleanup && (Sa(e.cleanup, "cleanup"), n = e.cleanup), new Ia((i, a) => {
|
|
3694
3693
|
const l = _s(t, e, (u) => {
|
|
3695
3694
|
n && l(), u ? a(u) : i();
|
|
3696
3695
|
});
|
|
3697
3696
|
});
|
|
3698
3697
|
}
|
|
3699
3698
|
hn.exports = _s;
|
|
3700
|
-
hn.exports.finished =
|
|
3699
|
+
hn.exports.finished = Ba;
|
|
3701
3700
|
var tt = hn.exports;
|
|
3702
3701
|
const Oe = ct, {
|
|
3703
|
-
aggregateTwoErrors:
|
|
3704
|
-
codes: { ERR_MULTIPLE_CALLBACK:
|
|
3705
|
-
AbortError:
|
|
3706
|
-
} = xe, { Symbol: bs } = fe, { kIsDestroyed:
|
|
3702
|
+
aggregateTwoErrors: Fa,
|
|
3703
|
+
codes: { ERR_MULTIPLE_CALLBACK: ka },
|
|
3704
|
+
AbortError: Ca
|
|
3705
|
+
} = xe, { Symbol: bs } = fe, { kIsDestroyed: Oa, isDestroyed: Ma, isFinished: Da, isServerRequest: Ua } = Ke, ys = bs("kDestroy"), Jr = bs("kConstruct");
|
|
3707
3706
|
function gs(t, e, r) {
|
|
3708
3707
|
t && (t.stack, e && !e.errored && (e.errored = t), r && !r.errored && (r.errored = t));
|
|
3709
3708
|
}
|
|
3710
|
-
function
|
|
3709
|
+
function Wa(t, e) {
|
|
3711
3710
|
const r = this._readableState, n = this._writableState, i = n || r;
|
|
3712
3711
|
return n != null && n.destroyed || r != null && r.destroyed ? (typeof e == "function" && e(), this) : (gs(t, n, r), n && (n.destroyed = !0), r && (r.destroyed = !0), i.constructed ? ii(this, t, e) : this.once(ys, function(a) {
|
|
3713
|
-
ii(this,
|
|
3712
|
+
ii(this, Fa(a, t), e);
|
|
3714
3713
|
}), this);
|
|
3715
3714
|
}
|
|
3716
3715
|
function ii(t, e, r) {
|
|
@@ -3720,7 +3719,7 @@ function ii(t, e, r) {
|
|
|
3720
3719
|
return;
|
|
3721
3720
|
n = !0;
|
|
3722
3721
|
const l = t._readableState, u = t._writableState;
|
|
3723
|
-
gs(a, u, l), u && (u.closed = !0), l && (l.closed = !0), typeof r == "function" && r(a), a ? Oe.nextTick(
|
|
3722
|
+
gs(a, u, l), u && (u.closed = !0), l && (l.closed = !0), typeof r == "function" && r(a), a ? Oe.nextTick(Ga, t, a) : Oe.nextTick(ws, t);
|
|
3724
3723
|
}
|
|
3725
3724
|
try {
|
|
3726
3725
|
t._destroy(e || null, i);
|
|
@@ -3728,7 +3727,7 @@ function ii(t, e, r) {
|
|
|
3728
3727
|
i(a);
|
|
3729
3728
|
}
|
|
3730
3729
|
}
|
|
3731
|
-
function
|
|
3730
|
+
function Ga(t, e) {
|
|
3732
3731
|
en(t, e), ws(t);
|
|
3733
3732
|
}
|
|
3734
3733
|
function ws(t) {
|
|
@@ -3739,7 +3738,7 @@ function en(t, e) {
|
|
|
3739
3738
|
const r = t._readableState, n = t._writableState;
|
|
3740
3739
|
n != null && n.errorEmitted || r != null && r.errorEmitted || (n && (n.errorEmitted = !0), r && (r.errorEmitted = !0), t.emit("error", e));
|
|
3741
3740
|
}
|
|
3742
|
-
function
|
|
3741
|
+
function za() {
|
|
3743
3742
|
const t = this._readableState, e = this._writableState;
|
|
3744
3743
|
t && (t.constructed = !0, t.closed = !1, t.closeEmitted = !1, t.destroyed = !1, t.errored = null, t.errorEmitted = !1, t.reading = !1, t.ended = t.readable === !1, t.endEmitted = t.readable === !1), e && (e.constructed = !0, e.destroyed = !1, e.closed = !1, e.closeEmitted = !1, e.errored = null, e.errorEmitted = !1, e.finalCalled = !1, e.prefinished = !1, e.ended = e.writable === !1, e.ending = e.writable === !1, e.finished = e.writable === !1);
|
|
3745
3744
|
}
|
|
@@ -3749,22 +3748,22 @@ function tn(t, e, r) {
|
|
|
3749
3748
|
return this;
|
|
3750
3749
|
n != null && n.autoDestroy || i != null && i.autoDestroy ? t.destroy(e) : e && (e.stack, i && !i.errored && (i.errored = e), n && !n.errored && (n.errored = e), r ? Oe.nextTick(en, t, e) : en(t, e));
|
|
3751
3750
|
}
|
|
3752
|
-
function
|
|
3751
|
+
function qa(t, e) {
|
|
3753
3752
|
if (typeof t._construct != "function")
|
|
3754
3753
|
return;
|
|
3755
3754
|
const r = t._readableState, n = t._writableState;
|
|
3756
|
-
r && (r.constructed = !1), n && (n.constructed = !1), t.once(Jr, e), !(t.listenerCount(Jr) > 1) && Oe.nextTick(
|
|
3755
|
+
r && (r.constructed = !1), n && (n.constructed = !1), t.once(Jr, e), !(t.listenerCount(Jr) > 1) && Oe.nextTick(Ha, t);
|
|
3757
3756
|
}
|
|
3758
|
-
function
|
|
3757
|
+
function Ha(t) {
|
|
3759
3758
|
let e = !1;
|
|
3760
3759
|
function r(n) {
|
|
3761
3760
|
if (e) {
|
|
3762
|
-
tn(t, n ?? new
|
|
3761
|
+
tn(t, n ?? new ka());
|
|
3763
3762
|
return;
|
|
3764
3763
|
}
|
|
3765
3764
|
e = !0;
|
|
3766
3765
|
const i = t._readableState, a = t._writableState, l = a || i;
|
|
3767
|
-
i && (i.constructed = !0), a && (a.constructed = !0), l.destroyed ? t.emit(ys, n) : n ? tn(t, n, !0) : Oe.nextTick(
|
|
3766
|
+
i && (i.constructed = !0), a && (a.constructed = !0), l.destroyed ? t.emit(ys, n) : n ? tn(t, n, !0) : Oe.nextTick(Qa, t);
|
|
3768
3767
|
}
|
|
3769
3768
|
try {
|
|
3770
3769
|
t._construct((n) => {
|
|
@@ -3774,7 +3773,7 @@ function qa(t) {
|
|
|
3774
3773
|
Oe.nextTick(r, n);
|
|
3775
3774
|
}
|
|
3776
3775
|
}
|
|
3777
|
-
function
|
|
3776
|
+
function Qa(t) {
|
|
3778
3777
|
t.emit(Jr);
|
|
3779
3778
|
}
|
|
3780
3779
|
function si(t) {
|
|
@@ -3783,20 +3782,20 @@ function si(t) {
|
|
|
3783
3782
|
function ms(t) {
|
|
3784
3783
|
t.emit("close");
|
|
3785
3784
|
}
|
|
3786
|
-
function
|
|
3785
|
+
function Va(t, e) {
|
|
3787
3786
|
t.emit("error", e), Oe.nextTick(ms, t);
|
|
3788
3787
|
}
|
|
3789
|
-
function
|
|
3790
|
-
!t ||
|
|
3788
|
+
function Ka(t, e) {
|
|
3789
|
+
!t || Ma(t) || (!e && !Da(t) && (e = new Ca()), Ua(t) ? (t.socket = null, t.destroy(e)) : si(t) ? t.abort() : si(t.req) ? t.req.abort() : typeof t.destroy == "function" ? t.destroy(e) : typeof t.close == "function" ? t.close() : e ? Oe.nextTick(Va, t, e) : Oe.nextTick(ms, t), t.destroyed || (t[Oa] = !0));
|
|
3791
3790
|
}
|
|
3792
3791
|
var Tt = {
|
|
3793
|
-
construct:
|
|
3794
|
-
destroyer:
|
|
3795
|
-
destroy:
|
|
3796
|
-
undestroy:
|
|
3792
|
+
construct: qa,
|
|
3793
|
+
destroyer: Ka,
|
|
3794
|
+
destroy: Wa,
|
|
3795
|
+
undestroy: za,
|
|
3797
3796
|
errorOrDestroy: tn
|
|
3798
3797
|
};
|
|
3799
|
-
const { ArrayIsArray:
|
|
3798
|
+
const { ArrayIsArray: Ya, ObjectSetPrototypeOf: xs } = fe, { EventEmitter: dr } = ur;
|
|
3800
3799
|
function hr(t) {
|
|
3801
3800
|
dr.call(this, t);
|
|
3802
3801
|
}
|
|
@@ -3830,7 +3829,7 @@ hr.prototype.pipe = function(t, e) {
|
|
|
3830
3829
|
};
|
|
3831
3830
|
function rn(t, e, r) {
|
|
3832
3831
|
if (typeof t.prependListener == "function") return t.prependListener(e, r);
|
|
3833
|
-
!t._events || !t._events[e] ? t.on(e, r) :
|
|
3832
|
+
!t._events || !t._events[e] ? t.on(e, r) : Ya(t._events[e]) ? t._events[e].unshift(r) : t._events[e] = [r, t._events[e]];
|
|
3834
3833
|
}
|
|
3835
3834
|
var _n = {
|
|
3836
3835
|
Stream: hr,
|
|
@@ -3874,8 +3873,8 @@ var _n = {
|
|
|
3874
3873
|
};
|
|
3875
3874
|
})(Es);
|
|
3876
3875
|
var pr = Es.exports;
|
|
3877
|
-
const { StringPrototypeSlice: oi, SymbolIterator:
|
|
3878
|
-
var
|
|
3876
|
+
const { StringPrototypeSlice: oi, SymbolIterator: Xa, TypedArrayPrototypeSet: Vt, Uint8Array: Za } = fe, { Buffer: Nr } = De, { inspect: Ja } = Ie;
|
|
3877
|
+
var el = class {
|
|
3879
3878
|
constructor() {
|
|
3880
3879
|
this.head = null, this.tail = null, this.length = 0;
|
|
3881
3880
|
}
|
|
@@ -3927,7 +3926,7 @@ var Ja = class {
|
|
|
3927
3926
|
first() {
|
|
3928
3927
|
return this.head.data;
|
|
3929
3928
|
}
|
|
3930
|
-
*[
|
|
3929
|
+
*[Xa]() {
|
|
3931
3930
|
for (let e = this.head; e; e = e.next)
|
|
3932
3931
|
yield e.data;
|
|
3933
3932
|
}
|
|
@@ -3955,7 +3954,7 @@ var Ja = class {
|
|
|
3955
3954
|
if (e > l.length)
|
|
3956
3955
|
Vt(r, l, n - e), e -= l.length;
|
|
3957
3956
|
else {
|
|
3958
|
-
e === l.length ? (Vt(r, l, n - e), ++a, i.next ? this.head = i.next : this.head = this.tail = null) : (Vt(r, new
|
|
3957
|
+
e === l.length ? (Vt(r, l, n - e), ++a, i.next ? this.head = i.next : this.head = this.tail = null) : (Vt(r, new Za(l.buffer, l.byteOffset, e), n - e), this.head = i, i.data = l.slice(e));
|
|
3959
3958
|
break;
|
|
3960
3959
|
}
|
|
3961
3960
|
++a;
|
|
@@ -3964,7 +3963,7 @@ var Ja = class {
|
|
|
3964
3963
|
}
|
|
3965
3964
|
// Make sure the linked list only shows the minimal necessary information.
|
|
3966
3965
|
[Symbol.for("nodejs.util.inspect.custom")](e, r) {
|
|
3967
|
-
return
|
|
3966
|
+
return Ja(this, {
|
|
3968
3967
|
...r,
|
|
3969
3968
|
// Only inspect one level.
|
|
3970
3969
|
depth: 0,
|
|
@@ -3973,32 +3972,32 @@ var Ja = class {
|
|
|
3973
3972
|
});
|
|
3974
3973
|
}
|
|
3975
3974
|
};
|
|
3976
|
-
const { MathFloor:
|
|
3975
|
+
const { MathFloor: tl, NumberIsInteger: rl } = fe, { validateInteger: nl } = Wt, { ERR_INVALID_ARG_VALUE: il } = xe.codes;
|
|
3977
3976
|
let Ss = 16 * 1024, Is = 16;
|
|
3978
|
-
function
|
|
3977
|
+
function sl(t, e, r) {
|
|
3979
3978
|
return t.highWaterMark != null ? t.highWaterMark : e ? t[r] : null;
|
|
3980
3979
|
}
|
|
3981
3980
|
function Rs(t) {
|
|
3982
3981
|
return t ? Is : Ss;
|
|
3983
3982
|
}
|
|
3984
|
-
function
|
|
3985
|
-
|
|
3983
|
+
function ol(t, e) {
|
|
3984
|
+
nl(e, "value", 0), t ? Is = e : Ss = e;
|
|
3986
3985
|
}
|
|
3987
|
-
function
|
|
3988
|
-
const i =
|
|
3986
|
+
function al(t, e, r, n) {
|
|
3987
|
+
const i = sl(e, n, r);
|
|
3989
3988
|
if (i != null) {
|
|
3990
|
-
if (!
|
|
3989
|
+
if (!rl(i) || i < 0) {
|
|
3991
3990
|
const a = n ? `options.${r}` : "options.highWaterMark";
|
|
3992
|
-
throw new
|
|
3991
|
+
throw new il(a, i);
|
|
3993
3992
|
}
|
|
3994
|
-
return
|
|
3993
|
+
return tl(i);
|
|
3995
3994
|
}
|
|
3996
3995
|
return Rs(t.objectMode);
|
|
3997
3996
|
}
|
|
3998
3997
|
var _r = {
|
|
3999
|
-
getHighWaterMark:
|
|
3998
|
+
getHighWaterMark: al,
|
|
4000
3999
|
getDefaultHighWaterMark: Rs,
|
|
4001
|
-
setDefaultHighWaterMark:
|
|
4000
|
+
setDefaultHighWaterMark: ol
|
|
4002
4001
|
}, As = {}, nn = { exports: {} };
|
|
4003
4002
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4004
4003
|
(function(t, e) {
|
|
@@ -4030,7 +4029,7 @@ var _r = {
|
|
|
4030
4029
|
return r.SlowBuffer(l);
|
|
4031
4030
|
};
|
|
4032
4031
|
})(nn, nn.exports);
|
|
4033
|
-
var
|
|
4032
|
+
var ll = nn.exports, bn = ll.Buffer, ai = bn.isEncoding || function(t) {
|
|
4034
4033
|
switch (t = "" + t, t && t.toLowerCase()) {
|
|
4035
4034
|
case "hex":
|
|
4036
4035
|
case "utf8":
|
|
@@ -4048,7 +4047,7 @@ var al = nn.exports, bn = al.Buffer, ai = bn.isEncoding || function(t) {
|
|
|
4048
4047
|
return !1;
|
|
4049
4048
|
}
|
|
4050
4049
|
};
|
|
4051
|
-
function
|
|
4050
|
+
function ul(t) {
|
|
4052
4051
|
if (!t) return "utf8";
|
|
4053
4052
|
for (var e; ; )
|
|
4054
4053
|
switch (t) {
|
|
@@ -4072,27 +4071,27 @@ function ll(t) {
|
|
|
4072
4071
|
t = ("" + t).toLowerCase(), e = !0;
|
|
4073
4072
|
}
|
|
4074
4073
|
}
|
|
4075
|
-
function
|
|
4076
|
-
var e =
|
|
4074
|
+
function fl(t) {
|
|
4075
|
+
var e = ul(t);
|
|
4077
4076
|
if (typeof e != "string" && (bn.isEncoding === ai || !ai(t))) throw new Error("Unknown encoding: " + t);
|
|
4078
4077
|
return e || t;
|
|
4079
4078
|
}
|
|
4080
4079
|
As.StringDecoder = Gt;
|
|
4081
4080
|
function Gt(t) {
|
|
4082
|
-
this.encoding =
|
|
4081
|
+
this.encoding = fl(t);
|
|
4083
4082
|
var e;
|
|
4084
4083
|
switch (this.encoding) {
|
|
4085
4084
|
case "utf16le":
|
|
4086
|
-
this.text =
|
|
4085
|
+
this.text = bl, this.end = yl, e = 4;
|
|
4087
4086
|
break;
|
|
4088
4087
|
case "utf8":
|
|
4089
|
-
this.fillLast =
|
|
4088
|
+
this.fillLast = hl, e = 4;
|
|
4090
4089
|
break;
|
|
4091
4090
|
case "base64":
|
|
4092
|
-
this.text =
|
|
4091
|
+
this.text = gl, this.end = wl, e = 3;
|
|
4093
4092
|
break;
|
|
4094
4093
|
default:
|
|
4095
|
-
this.write =
|
|
4094
|
+
this.write = ml, this.end = xl;
|
|
4096
4095
|
return;
|
|
4097
4096
|
}
|
|
4098
4097
|
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = bn.allocUnsafe(e);
|
|
@@ -4107,8 +4106,8 @@ Gt.prototype.write = function(t) {
|
|
|
4107
4106
|
r = 0;
|
|
4108
4107
|
return r < t.length ? e ? e + this.text(t, r) : this.text(t, r) : e || "";
|
|
4109
4108
|
};
|
|
4110
|
-
Gt.prototype.end =
|
|
4111
|
-
Gt.prototype.text =
|
|
4109
|
+
Gt.prototype.end = _l;
|
|
4110
|
+
Gt.prototype.text = pl;
|
|
4112
4111
|
Gt.prototype.fillLast = function(t) {
|
|
4113
4112
|
if (this.lastNeed <= t.length)
|
|
4114
4113
|
return t.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
@@ -4117,13 +4116,13 @@ Gt.prototype.fillLast = function(t) {
|
|
|
4117
4116
|
function Pr(t) {
|
|
4118
4117
|
return t <= 127 ? 0 : t >> 5 === 6 ? 2 : t >> 4 === 14 ? 3 : t >> 3 === 30 ? 4 : t >> 6 === 2 ? -1 : -2;
|
|
4119
4118
|
}
|
|
4120
|
-
function
|
|
4119
|
+
function cl(t, e, r) {
|
|
4121
4120
|
var n = e.length - 1;
|
|
4122
4121
|
if (n < r) return 0;
|
|
4123
4122
|
var i = Pr(e[n]);
|
|
4124
4123
|
return i >= 0 ? (i > 0 && (t.lastNeed = i - 1), i) : --n < r || i === -2 ? 0 : (i = Pr(e[n]), i >= 0 ? (i > 0 && (t.lastNeed = i - 2), i) : --n < r || i === -2 ? 0 : (i = Pr(e[n]), i >= 0 ? (i > 0 && (i === 2 ? i = 0 : t.lastNeed = i - 3), i) : 0));
|
|
4125
4124
|
}
|
|
4126
|
-
function
|
|
4125
|
+
function dl(t, e, r) {
|
|
4127
4126
|
if ((e[0] & 192) !== 128)
|
|
4128
4127
|
return t.lastNeed = 0, "�";
|
|
4129
4128
|
if (t.lastNeed > 1 && e.length > 1) {
|
|
@@ -4133,25 +4132,25 @@ function cl(t, e, r) {
|
|
|
4133
4132
|
return t.lastNeed = 2, "�";
|
|
4134
4133
|
}
|
|
4135
4134
|
}
|
|
4136
|
-
function
|
|
4137
|
-
var e = this.lastTotal - this.lastNeed, r =
|
|
4135
|
+
function hl(t) {
|
|
4136
|
+
var e = this.lastTotal - this.lastNeed, r = dl(this, t);
|
|
4138
4137
|
if (r !== void 0) return r;
|
|
4139
4138
|
if (this.lastNeed <= t.length)
|
|
4140
4139
|
return t.copy(this.lastChar, e, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
4141
4140
|
t.copy(this.lastChar, e, 0, t.length), this.lastNeed -= t.length;
|
|
4142
4141
|
}
|
|
4143
|
-
function
|
|
4144
|
-
var r =
|
|
4142
|
+
function pl(t, e) {
|
|
4143
|
+
var r = cl(this, t, e);
|
|
4145
4144
|
if (!this.lastNeed) return t.toString("utf8", e);
|
|
4146
4145
|
this.lastTotal = r;
|
|
4147
4146
|
var n = t.length - (r - this.lastNeed);
|
|
4148
4147
|
return t.copy(this.lastChar, 0, n), t.toString("utf8", e, n);
|
|
4149
4148
|
}
|
|
4150
|
-
function
|
|
4149
|
+
function _l(t) {
|
|
4151
4150
|
var e = t && t.length ? this.write(t) : "";
|
|
4152
4151
|
return this.lastNeed ? e + "�" : e;
|
|
4153
4152
|
}
|
|
4154
|
-
function
|
|
4153
|
+
function bl(t, e) {
|
|
4155
4154
|
if ((t.length - e) % 2 === 0) {
|
|
4156
4155
|
var r = t.toString("utf16le", e);
|
|
4157
4156
|
if (r) {
|
|
@@ -4163,7 +4162,7 @@ function _l(t, e) {
|
|
|
4163
4162
|
}
|
|
4164
4163
|
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = t[t.length - 1], t.toString("utf16le", e, t.length - 1);
|
|
4165
4164
|
}
|
|
4166
|
-
function
|
|
4165
|
+
function yl(t) {
|
|
4167
4166
|
var e = t && t.length ? this.write(t) : "";
|
|
4168
4167
|
if (this.lastNeed) {
|
|
4169
4168
|
var r = this.lastTotal - this.lastNeed;
|
|
@@ -4171,24 +4170,24 @@ function bl(t) {
|
|
|
4171
4170
|
}
|
|
4172
4171
|
return e;
|
|
4173
4172
|
}
|
|
4174
|
-
function
|
|
4173
|
+
function gl(t, e) {
|
|
4175
4174
|
var r = (t.length - e) % 3;
|
|
4176
4175
|
return r === 0 ? t.toString("base64", e) : (this.lastNeed = 3 - r, this.lastTotal = 3, r === 1 ? this.lastChar[0] = t[t.length - 1] : (this.lastChar[0] = t[t.length - 2], this.lastChar[1] = t[t.length - 1]), t.toString("base64", e, t.length - r));
|
|
4177
4176
|
}
|
|
4178
|
-
function
|
|
4177
|
+
function wl(t) {
|
|
4179
4178
|
var e = t && t.length ? this.write(t) : "";
|
|
4180
4179
|
return this.lastNeed ? e + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : e;
|
|
4181
4180
|
}
|
|
4182
|
-
function
|
|
4181
|
+
function ml(t) {
|
|
4183
4182
|
return t.toString(this.encoding);
|
|
4184
4183
|
}
|
|
4185
|
-
function
|
|
4184
|
+
function xl(t) {
|
|
4186
4185
|
return t && t.length ? this.write(t) : "";
|
|
4187
4186
|
}
|
|
4188
|
-
const li = ct, { PromisePrototypeThen:
|
|
4189
|
-
function
|
|
4187
|
+
const li = ct, { PromisePrototypeThen: El, SymbolAsyncIterator: ui, SymbolIterator: fi } = fe, { Buffer: Sl } = De, { ERR_INVALID_ARG_TYPE: Il, ERR_STREAM_NULL_VALUES: Rl } = xe.codes;
|
|
4188
|
+
function Al(t, e, r) {
|
|
4190
4189
|
let n;
|
|
4191
|
-
if (typeof e == "string" || e instanceof
|
|
4190
|
+
if (typeof e == "string" || e instanceof Sl)
|
|
4192
4191
|
return new t({
|
|
4193
4192
|
objectMode: !0,
|
|
4194
4193
|
...r,
|
|
@@ -4202,7 +4201,7 @@ function Rl(t, e, r) {
|
|
|
4202
4201
|
else if (e && e[fi])
|
|
4203
4202
|
i = !1, n = e[fi]();
|
|
4204
4203
|
else
|
|
4205
|
-
throw new
|
|
4204
|
+
throw new Il("iterable", ["Iterable"], e);
|
|
4206
4205
|
const a = new t({
|
|
4207
4206
|
objectMode: !0,
|
|
4208
4207
|
highWaterMark: 1,
|
|
@@ -4213,7 +4212,7 @@ function Rl(t, e, r) {
|
|
|
4213
4212
|
a._read = function() {
|
|
4214
4213
|
l || (l = !0, p());
|
|
4215
4214
|
}, a._destroy = function(_, y) {
|
|
4216
|
-
|
|
4215
|
+
El(
|
|
4217
4216
|
u(_),
|
|
4218
4217
|
() => li.nextTick(y, _),
|
|
4219
4218
|
// nextTick is here in case cb throws
|
|
@@ -4241,7 +4240,7 @@ function Rl(t, e, r) {
|
|
|
4241
4240
|
else {
|
|
4242
4241
|
const x = _ && typeof _.then == "function" ? await _ : _;
|
|
4243
4242
|
if (x === null)
|
|
4244
|
-
throw l = !1, new
|
|
4243
|
+
throw l = !1, new Rl();
|
|
4245
4244
|
if (a.push(x))
|
|
4246
4245
|
continue;
|
|
4247
4246
|
l = !1;
|
|
@@ -4254,7 +4253,7 @@ function Rl(t, e, r) {
|
|
|
4254
4253
|
}
|
|
4255
4254
|
return a;
|
|
4256
4255
|
}
|
|
4257
|
-
var Ts =
|
|
4256
|
+
var Ts = Al, jr, ci;
|
|
4258
4257
|
function br() {
|
|
4259
4258
|
if (ci) return jr;
|
|
4260
4259
|
ci = 1;
|
|
@@ -4277,7 +4276,7 @@ function br() {
|
|
|
4277
4276
|
let A = Ie.debuglog("stream", (c) => {
|
|
4278
4277
|
A = c;
|
|
4279
4278
|
});
|
|
4280
|
-
const z =
|
|
4279
|
+
const z = el, U = Tt, { getHighWaterMark: se, getDefaultHighWaterMark: me } = _r, {
|
|
4281
4280
|
aggregateTwoErrors: J,
|
|
4282
4281
|
codes: {
|
|
4283
4282
|
ERR_INVALID_ARG_TYPE: oe,
|
|
@@ -5155,7 +5154,7 @@ function yn() {
|
|
|
5155
5154
|
}, Lr;
|
|
5156
5155
|
}
|
|
5157
5156
|
var $r, hi;
|
|
5158
|
-
function
|
|
5157
|
+
function Tl() {
|
|
5159
5158
|
if (hi) return $r;
|
|
5160
5159
|
hi = 1;
|
|
5161
5160
|
const t = ct, e = De, {
|
|
@@ -5478,18 +5477,18 @@ function He() {
|
|
|
5478
5477
|
};
|
|
5479
5478
|
let _;
|
|
5480
5479
|
return l.from = function(y) {
|
|
5481
|
-
return _ || (_ =
|
|
5480
|
+
return _ || (_ = Tl()), _(y, "body");
|
|
5482
5481
|
}, Br;
|
|
5483
5482
|
}
|
|
5484
|
-
const { ObjectSetPrototypeOf: vs, Symbol:
|
|
5483
|
+
const { ObjectSetPrototypeOf: vs, Symbol: vl } = fe;
|
|
5485
5484
|
var Ns = Qe;
|
|
5486
|
-
const { ERR_METHOD_NOT_IMPLEMENTED:
|
|
5485
|
+
const { ERR_METHOD_NOT_IMPLEMENTED: Nl } = xe.codes, gn = He(), { getHighWaterMark: Pl } = _r;
|
|
5487
5486
|
vs(Qe.prototype, gn.prototype);
|
|
5488
5487
|
vs(Qe, gn);
|
|
5489
|
-
const Mt =
|
|
5488
|
+
const Mt = vl("kCallback");
|
|
5490
5489
|
function Qe(t) {
|
|
5491
5490
|
if (!(this instanceof Qe)) return new Qe(t);
|
|
5492
|
-
const e = t ?
|
|
5491
|
+
const e = t ? Pl(this, t, "readableHighWaterMark", !0) : null;
|
|
5493
5492
|
e === 0 && (t = {
|
|
5494
5493
|
...t,
|
|
5495
5494
|
highWaterMark: null,
|
|
@@ -5499,7 +5498,7 @@ function Qe(t) {
|
|
|
5499
5498
|
// Refs: https://github.com/nodejs/node/pull/32887
|
|
5500
5499
|
// Refs: https://github.com/nodejs/node/pull/35941
|
|
5501
5500
|
writableHighWaterMark: t.writableHighWaterMark || 0
|
|
5502
|
-
}), gn.call(this, t), this._readableState.sync = !1, this[Mt] = null, t && (typeof t.transform == "function" && (this._transform = t.transform), typeof t.flush == "function" && (this._flush = t.flush)), this.on("prefinish",
|
|
5501
|
+
}), gn.call(this, t), this._readableState.sync = !1, this[Mt] = null, t && (typeof t.transform == "function" && (this._transform = t.transform), typeof t.flush == "function" && (this._flush = t.flush)), this.on("prefinish", jl);
|
|
5503
5502
|
}
|
|
5504
5503
|
function sn(t) {
|
|
5505
5504
|
typeof this._flush == "function" && !this.destroyed ? this._flush((e, r) => {
|
|
@@ -5510,12 +5509,12 @@ function sn(t) {
|
|
|
5510
5509
|
r != null && this.push(r), this.push(null), t && t();
|
|
5511
5510
|
}) : (this.push(null), t && t());
|
|
5512
5511
|
}
|
|
5513
|
-
function
|
|
5512
|
+
function jl() {
|
|
5514
5513
|
this._final !== sn && sn.call(this);
|
|
5515
5514
|
}
|
|
5516
5515
|
Qe.prototype._final = sn;
|
|
5517
5516
|
Qe.prototype._transform = function(t, e, r) {
|
|
5518
|
-
throw new
|
|
5517
|
+
throw new Nl("_transform()");
|
|
5519
5518
|
};
|
|
5520
5519
|
Qe.prototype._write = function(t, e, r) {
|
|
5521
5520
|
const n = this._readableState, i = this._writableState, a = n.length;
|
|
@@ -5547,26 +5546,26 @@ function Rt(t) {
|
|
|
5547
5546
|
Rt.prototype._transform = function(t, e, r) {
|
|
5548
5547
|
r(null, t);
|
|
5549
5548
|
};
|
|
5550
|
-
const Ot = ct, { ArrayIsArray:
|
|
5551
|
-
aggregateTwoErrors:
|
|
5549
|
+
const Ot = ct, { ArrayIsArray: Ll, Promise: $l, SymbolAsyncIterator: Bl, SymbolDispose: Fl } = fe, ir = tt, { once: kl } = Ie, Cl = Tt, _i = He(), {
|
|
5550
|
+
aggregateTwoErrors: Ol,
|
|
5552
5551
|
codes: {
|
|
5553
5552
|
ERR_INVALID_ARG_TYPE: on,
|
|
5554
5553
|
ERR_INVALID_RETURN_VALUE: Fr,
|
|
5555
|
-
ERR_MISSING_ARGS:
|
|
5556
|
-
ERR_STREAM_DESTROYED:
|
|
5557
|
-
ERR_STREAM_PREMATURE_CLOSE:
|
|
5554
|
+
ERR_MISSING_ARGS: Ml,
|
|
5555
|
+
ERR_STREAM_DESTROYED: Dl,
|
|
5556
|
+
ERR_STREAM_PREMATURE_CLOSE: Ul
|
|
5558
5557
|
},
|
|
5559
|
-
AbortError:
|
|
5560
|
-
} = xe, { validateFunction:
|
|
5558
|
+
AbortError: Wl
|
|
5559
|
+
} = xe, { validateFunction: Gl, validateAbortSignal: zl } = Wt, {
|
|
5561
5560
|
isIterable: ot,
|
|
5562
5561
|
isReadable: kr,
|
|
5563
5562
|
isReadableNodeStream: tr,
|
|
5564
5563
|
isNodeStream: bi,
|
|
5565
5564
|
isTransformStream: gt,
|
|
5566
|
-
isWebStream:
|
|
5565
|
+
isWebStream: ql,
|
|
5567
5566
|
isReadableStream: Cr,
|
|
5568
|
-
isReadableFinished:
|
|
5569
|
-
} = Ke,
|
|
5567
|
+
isReadableFinished: Hl
|
|
5568
|
+
} = Ke, Ql = globalThis.AbortController || Ut().AbortController;
|
|
5570
5569
|
let Or, Mr, Dr;
|
|
5571
5570
|
function yi(t, e, r) {
|
|
5572
5571
|
let n = !1;
|
|
@@ -5585,23 +5584,23 @@ function yi(t, e, r) {
|
|
|
5585
5584
|
);
|
|
5586
5585
|
return {
|
|
5587
5586
|
destroy: (a) => {
|
|
5588
|
-
n || (n = !0,
|
|
5587
|
+
n || (n = !0, Cl.destroyer(t, a || new Dl("pipe")));
|
|
5589
5588
|
},
|
|
5590
5589
|
cleanup: i
|
|
5591
5590
|
};
|
|
5592
5591
|
}
|
|
5593
|
-
function
|
|
5594
|
-
return
|
|
5592
|
+
function Vl(t) {
|
|
5593
|
+
return Gl(t[t.length - 1], "streams[stream.length - 1]"), t.pop();
|
|
5595
5594
|
}
|
|
5596
5595
|
function Ur(t) {
|
|
5597
5596
|
if (ot(t))
|
|
5598
5597
|
return t;
|
|
5599
5598
|
if (tr(t))
|
|
5600
|
-
return
|
|
5599
|
+
return Kl(t);
|
|
5601
5600
|
throw new on("val", ["Readable", "Iterable", "AsyncIterable"], t);
|
|
5602
5601
|
}
|
|
5603
|
-
async function*
|
|
5604
|
-
Mr || (Mr = br()), yield* Mr.prototype[
|
|
5602
|
+
async function* Kl(t) {
|
|
5603
|
+
Mr || (Mr = br()), yield* Mr.prototype[Bl].call(t);
|
|
5605
5604
|
}
|
|
5606
5605
|
async function Kt(t, e, r, { end: n }) {
|
|
5607
5606
|
let i, a = null;
|
|
@@ -5610,7 +5609,7 @@ async function Kt(t, e, r, { end: n }) {
|
|
|
5610
5609
|
const y = a;
|
|
5611
5610
|
a = null, y();
|
|
5612
5611
|
}
|
|
5613
|
-
}, u = () => new
|
|
5612
|
+
}, u = () => new $l((_, y) => {
|
|
5614
5613
|
i ? y(i) : a = () => {
|
|
5615
5614
|
i ? y(i) : _();
|
|
5616
5615
|
};
|
|
@@ -5629,7 +5628,7 @@ async function Kt(t, e, r, { end: n }) {
|
|
|
5629
5628
|
e.write(_) || await u();
|
|
5630
5629
|
n && (e.end(), await u()), r();
|
|
5631
5630
|
} catch (_) {
|
|
5632
|
-
r(i !== _ ?
|
|
5631
|
+
r(i !== _ ? Ol(i, _) : _);
|
|
5633
5632
|
} finally {
|
|
5634
5633
|
p(), e.off("drain", l);
|
|
5635
5634
|
}
|
|
@@ -5650,16 +5649,16 @@ async function Wr(t, e, r, { end: n }) {
|
|
|
5650
5649
|
}
|
|
5651
5650
|
}
|
|
5652
5651
|
}
|
|
5653
|
-
function
|
|
5654
|
-
return Ls(t,
|
|
5652
|
+
function Yl(...t) {
|
|
5653
|
+
return Ls(t, kl(Vl(t)));
|
|
5655
5654
|
}
|
|
5656
5655
|
function Ls(t, e, r) {
|
|
5657
|
-
if (t.length === 1 &&
|
|
5658
|
-
throw new
|
|
5659
|
-
const n = new
|
|
5660
|
-
|
|
5656
|
+
if (t.length === 1 && Ll(t[0]) && (t = t[0]), t.length < 2)
|
|
5657
|
+
throw new Ml("streams");
|
|
5658
|
+
const n = new Ql(), i = n.signal, a = r == null ? void 0 : r.signal, l = [];
|
|
5659
|
+
zl(a, "options.signal");
|
|
5661
5660
|
function u() {
|
|
5662
|
-
R(new
|
|
5661
|
+
R(new Wl());
|
|
5663
5662
|
}
|
|
5664
5663
|
Dr = Dr || Ie.addAbortListener;
|
|
5665
5664
|
let p;
|
|
@@ -5675,7 +5674,7 @@ function Ls(t, e, r) {
|
|
|
5675
5674
|
if (B && (!_ || _.code === "ERR_STREAM_PREMATURE_CLOSE") && (_ = B), !(!_ && !A)) {
|
|
5676
5675
|
for (; x.length; )
|
|
5677
5676
|
x.shift()(_);
|
|
5678
|
-
(z = p) === null || z === void 0 || z[
|
|
5677
|
+
(z = p) === null || z === void 0 || z[Fl](), n.abort(), A && (_ || l.forEach((U) => U()), Ot.nextTick(e, _, y));
|
|
5679
5678
|
}
|
|
5680
5679
|
}
|
|
5681
5680
|
let m;
|
|
@@ -5745,7 +5744,7 @@ function Ls(t, e, r) {
|
|
|
5745
5744
|
} else if (bi(A)) {
|
|
5746
5745
|
if (tr(m)) {
|
|
5747
5746
|
I += 2;
|
|
5748
|
-
const J =
|
|
5747
|
+
const J = Xl(m, A, S, {
|
|
5749
5748
|
end: se
|
|
5750
5749
|
});
|
|
5751
5750
|
kr(A) && me && l.push(J);
|
|
@@ -5765,7 +5764,7 @@ function Ls(t, e, r) {
|
|
|
5765
5764
|
m
|
|
5766
5765
|
);
|
|
5767
5766
|
m = A;
|
|
5768
|
-
} else if (
|
|
5767
|
+
} else if (ql(A)) {
|
|
5769
5768
|
if (tr(m))
|
|
5770
5769
|
I++, Wr(Ur(m), A, S, {
|
|
5771
5770
|
end: se
|
|
@@ -5790,17 +5789,17 @@ function Ls(t, e, r) {
|
|
|
5790
5789
|
}
|
|
5791
5790
|
return (i != null && i.aborted || a != null && a.aborted) && Ot.nextTick(u), m;
|
|
5792
5791
|
}
|
|
5793
|
-
function
|
|
5792
|
+
function Xl(t, e, r, { end: n }) {
|
|
5794
5793
|
let i = !1;
|
|
5795
5794
|
if (e.on("close", () => {
|
|
5796
|
-
i || r(new
|
|
5795
|
+
i || r(new Ul());
|
|
5797
5796
|
}), t.pipe(e, {
|
|
5798
5797
|
end: !1
|
|
5799
5798
|
}), n) {
|
|
5800
5799
|
let a = function() {
|
|
5801
5800
|
i = !0, e.end();
|
|
5802
5801
|
};
|
|
5803
|
-
|
|
5802
|
+
Hl(t) ? Ot.nextTick(a) : t.once("end", a);
|
|
5804
5803
|
} else
|
|
5805
5804
|
r();
|
|
5806
5805
|
return ir(
|
|
@@ -5824,9 +5823,9 @@ function Yl(t, e, r, { end: n }) {
|
|
|
5824
5823
|
}
|
|
5825
5824
|
var mn = {
|
|
5826
5825
|
pipelineImpl: Ls,
|
|
5827
|
-
pipeline:
|
|
5826
|
+
pipeline: Yl
|
|
5828
5827
|
};
|
|
5829
|
-
const { pipeline:
|
|
5828
|
+
const { pipeline: Zl } = mn, Yt = He(), { destroyer: Jl } = Tt, {
|
|
5830
5829
|
isNodeStream: Xt,
|
|
5831
5830
|
isReadable: gi,
|
|
5832
5831
|
isWritable: wi,
|
|
@@ -5835,12 +5834,12 @@ const { pipeline: Xl } = mn, Yt = He(), { destroyer: Zl } = Tt, {
|
|
|
5835
5834
|
isWritableStream: mi,
|
|
5836
5835
|
isReadableStream: xi
|
|
5837
5836
|
} = Ke, {
|
|
5838
|
-
AbortError:
|
|
5839
|
-
codes: { ERR_INVALID_ARG_VALUE: Ei, ERR_MISSING_ARGS:
|
|
5840
|
-
} = xe,
|
|
5837
|
+
AbortError: eu,
|
|
5838
|
+
codes: { ERR_INVALID_ARG_VALUE: Ei, ERR_MISSING_ARGS: tu }
|
|
5839
|
+
} = xe, ru = tt;
|
|
5841
5840
|
var $s = function(...e) {
|
|
5842
5841
|
if (e.length === 0)
|
|
5843
|
-
throw new
|
|
5842
|
+
throw new tu("streams");
|
|
5844
5843
|
if (e.length === 1)
|
|
5845
5844
|
return Yt.from(e[0]);
|
|
5846
5845
|
const r = [...e];
|
|
@@ -5860,7 +5859,7 @@ var $s = function(...e) {
|
|
|
5860
5859
|
const R = l;
|
|
5861
5860
|
l = null, R ? R(S) : S ? u.destroy(S) : !I && !x && u.destroy();
|
|
5862
5861
|
}
|
|
5863
|
-
const _ = e[0], y =
|
|
5862
|
+
const _ = e[0], y = Zl(e, p), x = !!(wi(_) || mi(_) || st(_)), I = !!(gi(y) || xi(y) || st(y));
|
|
5864
5863
|
if (u = new Yt({
|
|
5865
5864
|
// TODO (ronag): highWaterMark?
|
|
5866
5865
|
writableObjectMode: !!(_ != null && _.writableObjectMode),
|
|
@@ -5898,7 +5897,7 @@ var $s = function(...e) {
|
|
|
5898
5897
|
};
|
|
5899
5898
|
}
|
|
5900
5899
|
const S = st(y) ? y.readable : y;
|
|
5901
|
-
|
|
5900
|
+
ru(S, () => {
|
|
5902
5901
|
if (i) {
|
|
5903
5902
|
const R = i;
|
|
5904
5903
|
i = null, R();
|
|
@@ -5944,29 +5943,29 @@ var $s = function(...e) {
|
|
|
5944
5943
|
}
|
|
5945
5944
|
}
|
|
5946
5945
|
return u._destroy = function(S, R) {
|
|
5947
|
-
!S && l !== null && (S = new
|
|
5946
|
+
!S && l !== null && (S = new eu()), a = null, n = null, i = null, l === null ? R(S) : (l = R, Xt(y) && Jl(y, S));
|
|
5948
5947
|
}, u;
|
|
5949
5948
|
};
|
|
5950
|
-
const
|
|
5951
|
-
codes: { ERR_INVALID_ARG_VALUE:
|
|
5949
|
+
const nu = globalThis.AbortController || Ut().AbortController, {
|
|
5950
|
+
codes: { ERR_INVALID_ARG_VALUE: iu, ERR_INVALID_ARG_TYPE: zt, ERR_MISSING_ARGS: su, ERR_OUT_OF_RANGE: ou },
|
|
5952
5951
|
AbortError: Me
|
|
5953
|
-
} = xe, { validateAbortSignal: ht, validateInteger: Si, validateObject: pt } = Wt,
|
|
5954
|
-
ArrayPrototypePush:
|
|
5955
|
-
Boolean:
|
|
5952
|
+
} = xe, { validateAbortSignal: ht, validateInteger: Si, validateObject: pt } = Wt, au = fe.Symbol("kWeak"), lu = fe.Symbol("kResistStopPropagation"), { finished: uu } = tt, fu = $s, { addAbortSignalNoValidate: cu } = pr, { isWritable: du, isNodeStream: hu } = Ke, { deprecate: pu } = Ie, {
|
|
5953
|
+
ArrayPrototypePush: _u,
|
|
5954
|
+
Boolean: bu,
|
|
5956
5955
|
MathFloor: Ii,
|
|
5957
|
-
Number:
|
|
5958
|
-
NumberIsNaN:
|
|
5956
|
+
Number: yu,
|
|
5957
|
+
NumberIsNaN: gu,
|
|
5959
5958
|
Promise: Ri,
|
|
5960
5959
|
PromiseReject: Ai,
|
|
5961
|
-
PromiseResolve:
|
|
5960
|
+
PromiseResolve: wu,
|
|
5962
5961
|
PromisePrototypeThen: Ti,
|
|
5963
5962
|
Symbol: Bs
|
|
5964
5963
|
} = fe, sr = Bs("kEmpty"), vi = Bs("kEof");
|
|
5965
|
-
function
|
|
5966
|
-
if (e != null && pt(e, "options"), (e == null ? void 0 : e.signal) != null && ht(e.signal, "options.signal"),
|
|
5967
|
-
throw new
|
|
5968
|
-
const r =
|
|
5969
|
-
return e != null && e.signal &&
|
|
5964
|
+
function mu(t, e) {
|
|
5965
|
+
if (e != null && pt(e, "options"), (e == null ? void 0 : e.signal) != null && ht(e.signal, "options.signal"), hu(t) && !du(t))
|
|
5966
|
+
throw new iu("stream", t, "must be writable");
|
|
5967
|
+
const r = fu(this, t);
|
|
5968
|
+
return e != null && e.signal && cu(e.signal, r), r;
|
|
5970
5969
|
}
|
|
5971
5970
|
function yr(t, e) {
|
|
5972
5971
|
if (typeof t != "function")
|
|
@@ -5977,7 +5976,7 @@ function yr(t, e) {
|
|
|
5977
5976
|
let n = r - 1;
|
|
5978
5977
|
return (e == null ? void 0 : e.highWaterMark) != null && (n = Ii(e.highWaterMark)), Si(r, "options.concurrency", 1), Si(n, "options.highWaterMark", 0), n += r, (async function* () {
|
|
5979
5978
|
const a = Ie.AbortSignalAny(
|
|
5980
|
-
[e == null ? void 0 : e.signal].filter(
|
|
5979
|
+
[e == null ? void 0 : e.signal].filter(bu)
|
|
5981
5980
|
), l = this, u = [], p = {
|
|
5982
5981
|
signal: a
|
|
5983
5982
|
};
|
|
@@ -6001,7 +6000,7 @@ function yr(t, e) {
|
|
|
6001
6000
|
try {
|
|
6002
6001
|
if ($ = t($, p), $ === sr)
|
|
6003
6002
|
continue;
|
|
6004
|
-
$ =
|
|
6003
|
+
$ = wu($);
|
|
6005
6004
|
} catch (B) {
|
|
6006
6005
|
$ = Ai(B);
|
|
6007
6006
|
}
|
|
@@ -6037,7 +6036,7 @@ function yr(t, e) {
|
|
|
6037
6036
|
}
|
|
6038
6037
|
}).call(this);
|
|
6039
6038
|
}
|
|
6040
|
-
function
|
|
6039
|
+
function xu(t = void 0) {
|
|
6041
6040
|
return t != null && pt(t, "options"), (t == null ? void 0 : t.signal) != null && ht(t.signal, "options.signal"), (async function* () {
|
|
6042
6041
|
let r = 0;
|
|
6043
6042
|
for await (const i of this) {
|
|
@@ -6055,7 +6054,7 @@ async function Fs(t, e = void 0) {
|
|
|
6055
6054
|
return !0;
|
|
6056
6055
|
return !1;
|
|
6057
6056
|
}
|
|
6058
|
-
async function
|
|
6057
|
+
async function Eu(t, e = void 0) {
|
|
6059
6058
|
if (typeof t != "function")
|
|
6060
6059
|
throw new zt("fn", ["Function", "AsyncFunction"], t);
|
|
6061
6060
|
return !await Fs.call(
|
|
@@ -6064,11 +6063,11 @@ async function xu(t, e = void 0) {
|
|
|
6064
6063
|
e
|
|
6065
6064
|
);
|
|
6066
6065
|
}
|
|
6067
|
-
async function
|
|
6066
|
+
async function Su(t, e) {
|
|
6068
6067
|
for await (const r of xn.call(this, t, e))
|
|
6069
6068
|
return r;
|
|
6070
6069
|
}
|
|
6071
|
-
async function
|
|
6070
|
+
async function Iu(t, e) {
|
|
6072
6071
|
if (typeof t != "function")
|
|
6073
6072
|
throw new zt("fn", ["Function", "AsyncFunction"], t);
|
|
6074
6073
|
async function r(n, i) {
|
|
@@ -6084,12 +6083,12 @@ function xn(t, e) {
|
|
|
6084
6083
|
}
|
|
6085
6084
|
return yr.call(this, r, e);
|
|
6086
6085
|
}
|
|
6087
|
-
class
|
|
6086
|
+
class Ru extends su {
|
|
6088
6087
|
constructor() {
|
|
6089
6088
|
super("reduce"), this.message = "Reduce of an empty stream requires an initial value";
|
|
6090
6089
|
}
|
|
6091
6090
|
}
|
|
6092
|
-
async function
|
|
6091
|
+
async function Au(t, e, r) {
|
|
6093
6092
|
var n;
|
|
6094
6093
|
if (typeof t != "function")
|
|
6095
6094
|
throw new zt("reducer", ["Function", "AsyncFunction"], t);
|
|
@@ -6100,14 +6099,14 @@ async function Ru(t, e, r) {
|
|
|
6100
6099
|
cause: r.signal.reason
|
|
6101
6100
|
});
|
|
6102
6101
|
throw this.once("error", () => {
|
|
6103
|
-
}), await
|
|
6102
|
+
}), await uu(this.destroy(_)), _;
|
|
6104
6103
|
}
|
|
6105
|
-
const a = new
|
|
6104
|
+
const a = new nu(), l = a.signal;
|
|
6106
6105
|
if (r != null && r.signal) {
|
|
6107
6106
|
const _ = {
|
|
6108
6107
|
once: !0,
|
|
6109
|
-
[
|
|
6110
|
-
[
|
|
6108
|
+
[au]: this,
|
|
6109
|
+
[lu]: !0
|
|
6111
6110
|
};
|
|
6112
6111
|
r.signal.addEventListener("abort", () => a.abort(), _);
|
|
6113
6112
|
}
|
|
@@ -6122,13 +6121,13 @@ async function Ru(t, e, r) {
|
|
|
6122
6121
|
}) : (e = _, i = !0);
|
|
6123
6122
|
}
|
|
6124
6123
|
if (!u && !i)
|
|
6125
|
-
throw new
|
|
6124
|
+
throw new Ru();
|
|
6126
6125
|
} finally {
|
|
6127
6126
|
a.abort();
|
|
6128
6127
|
}
|
|
6129
6128
|
return e;
|
|
6130
6129
|
}
|
|
6131
|
-
async function
|
|
6130
|
+
async function Tu(t) {
|
|
6132
6131
|
t != null && pt(t, "options"), (t == null ? void 0 : t.signal) != null && ht(t.signal, "options.signal");
|
|
6133
6132
|
const e = [];
|
|
6134
6133
|
for await (const n of this) {
|
|
@@ -6137,11 +6136,11 @@ async function Au(t) {
|
|
|
6137
6136
|
throw new Me(void 0, {
|
|
6138
6137
|
cause: t.signal.reason
|
|
6139
6138
|
});
|
|
6140
|
-
|
|
6139
|
+
_u(e, n);
|
|
6141
6140
|
}
|
|
6142
6141
|
return e;
|
|
6143
6142
|
}
|
|
6144
|
-
function
|
|
6143
|
+
function vu(t, e) {
|
|
6145
6144
|
const r = yr.call(this, t, e);
|
|
6146
6145
|
return (async function* () {
|
|
6147
6146
|
for await (const i of r)
|
|
@@ -6149,13 +6148,13 @@ function Tu(t, e) {
|
|
|
6149
6148
|
}).call(this);
|
|
6150
6149
|
}
|
|
6151
6150
|
function ks(t) {
|
|
6152
|
-
if (t =
|
|
6151
|
+
if (t = yu(t), gu(t))
|
|
6153
6152
|
return 0;
|
|
6154
6153
|
if (t < 0)
|
|
6155
|
-
throw new
|
|
6154
|
+
throw new ou("number", ">= 0", t);
|
|
6156
6155
|
return t;
|
|
6157
6156
|
}
|
|
6158
|
-
function
|
|
6157
|
+
function Nu(t, e = void 0) {
|
|
6159
6158
|
return e != null && pt(e, "options"), (e == null ? void 0 : e.signal) != null && ht(e.signal, "options.signal"), t = ks(t), (async function* () {
|
|
6160
6159
|
var n;
|
|
6161
6160
|
if (e != null && (n = e.signal) !== null && n !== void 0 && n.aborted)
|
|
@@ -6168,7 +6167,7 @@ function vu(t, e = void 0) {
|
|
|
6168
6167
|
}
|
|
6169
6168
|
}).call(this);
|
|
6170
6169
|
}
|
|
6171
|
-
function
|
|
6170
|
+
function Pu(t, e = void 0) {
|
|
6172
6171
|
return e != null && pt(e, "options"), (e == null ? void 0 : e.signal) != null && ht(e.signal, "options.signal"), t = ks(t), (async function* () {
|
|
6173
6172
|
var n;
|
|
6174
6173
|
if (e != null && (n = e.signal) !== null && n !== void 0 && n.aborted)
|
|
@@ -6183,21 +6182,21 @@ function Nu(t, e = void 0) {
|
|
|
6183
6182
|
}).call(this);
|
|
6184
6183
|
}
|
|
6185
6184
|
cn.streamReturningOperators = {
|
|
6186
|
-
asIndexedPairs:
|
|
6187
|
-
drop:
|
|
6185
|
+
asIndexedPairs: pu(xu, "readable.asIndexedPairs will be removed in a future version."),
|
|
6186
|
+
drop: Nu,
|
|
6188
6187
|
filter: xn,
|
|
6189
|
-
flatMap:
|
|
6188
|
+
flatMap: vu,
|
|
6190
6189
|
map: yr,
|
|
6191
|
-
take:
|
|
6192
|
-
compose:
|
|
6190
|
+
take: Pu,
|
|
6191
|
+
compose: mu
|
|
6193
6192
|
};
|
|
6194
6193
|
cn.promiseReturningOperators = {
|
|
6195
|
-
every:
|
|
6196
|
-
forEach:
|
|
6197
|
-
reduce:
|
|
6198
|
-
toArray:
|
|
6194
|
+
every: Eu,
|
|
6195
|
+
forEach: Iu,
|
|
6196
|
+
reduce: Au,
|
|
6197
|
+
toArray: Tu,
|
|
6199
6198
|
some: Fs,
|
|
6200
|
-
find:
|
|
6199
|
+
find: Su
|
|
6201
6200
|
};
|
|
6202
6201
|
var zr, Ni;
|
|
6203
6202
|
function Cs() {
|
|
@@ -6354,7 +6353,7 @@ function Us(t, e, r = 4) {
|
|
|
6354
6353
|
}
|
|
6355
6354
|
return n;
|
|
6356
6355
|
}
|
|
6357
|
-
class
|
|
6356
|
+
class ju {
|
|
6358
6357
|
constructor(e = {}) {
|
|
6359
6358
|
this._id = 1, this._ids = /* @__PURE__ */ Object.create(null), this._ids[""] = 1, this._entities = /* @__PURE__ */ Object.create(null), this._entities[1] = "", this._blankNodeIndex = 0, this._factory = e.factory || ft;
|
|
6360
6359
|
}
|
|
@@ -6396,7 +6395,7 @@ class Pu {
|
|
|
6396
6395
|
}
|
|
6397
6396
|
class Se {
|
|
6398
6397
|
constructor(e, r) {
|
|
6399
|
-
this._size = 0, this._graphs = /* @__PURE__ */ Object.create(null), !r && e && !e[0] && typeof e.match != "function" && (r = e, e = null), r = r || {}, this._factory = r.factory || ft, this._entityIndex = r.entityIndex || new
|
|
6398
|
+
this._size = 0, this._graphs = /* @__PURE__ */ Object.create(null), !r && e && !e[0] && typeof e.match != "function" && (r = e, e = null), r = r || {}, this._factory = r.factory || ft, this._entityIndex = r.entityIndex || new ju({ factory: this._factory }), this._entities = this._entityIndex._entities, this._termFromId = this._entityIndex._termFromId.bind(this._entityIndex), this._termToNumericId = this._entityIndex._termToNumericId.bind(this._entityIndex), this._termToNewNumericId = this._entityIndex._termToNewNumericId.bind(this._entityIndex), e && this.addAll(e);
|
|
6400
6399
|
}
|
|
6401
6400
|
// ## Public properties
|
|
6402
6401
|
// ### `size` returns the number of quads in the store
|
|
@@ -7095,7 +7094,7 @@ const En = {
|
|
|
7095
7094
|
shaclProperty: "http://www.w3.org/ns/shacl#property",
|
|
7096
7095
|
shaclPath: "http://www.w3.org/ns/shacl#path",
|
|
7097
7096
|
shaclUnion: "http://www.w3.org/ns/shacl#union"
|
|
7098
|
-
},
|
|
7097
|
+
}, Hu = {
|
|
7099
7098
|
label: [
|
|
7100
7099
|
// "http://www.w3.org/2000/01/rdf-schema#label",
|
|
7101
7100
|
// "http://purl.org/dc/terms/title",
|
|
@@ -7114,7 +7113,7 @@ const En = {
|
|
|
7114
7113
|
"https://prez.dev/provenance"
|
|
7115
7114
|
]
|
|
7116
7115
|
};
|
|
7117
|
-
function
|
|
7116
|
+
function Lu(t, e = En) {
|
|
7118
7117
|
if (t === "a")
|
|
7119
7118
|
return e.rdf + "type";
|
|
7120
7119
|
{
|
|
@@ -7122,22 +7121,22 @@ function ju(t, e = En) {
|
|
|
7122
7121
|
return r ? [r] + n : t;
|
|
7123
7122
|
}
|
|
7124
7123
|
}
|
|
7125
|
-
function
|
|
7124
|
+
function $u(t, e = En) {
|
|
7126
7125
|
let r = "";
|
|
7127
7126
|
return Object.entries(e).forEach(([n, i]) => {
|
|
7128
7127
|
t.startsWith(i) && (r = n + ":" + t.split(i)[1]);
|
|
7129
7128
|
}), r;
|
|
7130
7129
|
}
|
|
7131
|
-
const
|
|
7130
|
+
const Bu = (t) => {
|
|
7132
7131
|
const e = new URL(t);
|
|
7133
7132
|
return `${e.protocol}//${e.hostname}`;
|
|
7134
|
-
},
|
|
7133
|
+
}, Qu = (t) => new URL(t).pathname, Vu = (t, e) => {
|
|
7135
7134
|
var n, i;
|
|
7136
7135
|
const r = (i = (n = e.identifiers) == null ? void 0 : n.find((a) => a.value)) == null ? void 0 : i.value;
|
|
7137
7136
|
return r ? t + `/concept-hierarchy/${r}/narrowers` : "";
|
|
7138
|
-
},
|
|
7137
|
+
}, Ku = (t, e) => {
|
|
7139
7138
|
var l;
|
|
7140
|
-
const r = e ?
|
|
7139
|
+
const r = e ? Bu(e) : "", n = (l = t.identifiers) == null ? void 0 : l.find((u) => u.value), i = n ? n.value : "";
|
|
7141
7140
|
return i ? r + `/concept-hierarchy/${i}/top-concepts` : "";
|
|
7142
7141
|
}, an = (t) => t.flatMap((e) => {
|
|
7143
7142
|
var r;
|
|
@@ -7148,7 +7147,7 @@ const $u = (t) => {
|
|
|
7148
7147
|
return (n == null ? void 0 : n["@id"]) === _e.shaclUnion ? an(((r = e["@list"][1]) == null ? void 0 : r["@list"]) || []).filter(Boolean) : an(e["@list"]).flat();
|
|
7149
7148
|
}
|
|
7150
7149
|
return [];
|
|
7151
|
-
}).filter((e) => !!e),
|
|
7150
|
+
}).filter((e) => !!e), Yu = (t) => t.reduce((e, r) => {
|
|
7152
7151
|
if (_e.shaclProperty in r)
|
|
7153
7152
|
for (const n of r[_e.shaclProperty]) {
|
|
7154
7153
|
const i = t.find((a) => a["@id"] === n["@id"]);
|
|
@@ -7186,7 +7185,7 @@ function Ws(t, e = "") {
|
|
|
7186
7185
|
`, typeof l == "object" && l !== null && (r += Ws(l, e + (R ? " " : "│ ")));
|
|
7187
7186
|
}), r;
|
|
7188
7187
|
}
|
|
7189
|
-
function
|
|
7188
|
+
function Xu(t) {
|
|
7190
7189
|
return t ? Ws(rr(t)) : "";
|
|
7191
7190
|
}
|
|
7192
7191
|
const { namedNode: Ft } = ft;
|
|
@@ -7273,7 +7272,7 @@ class Sn {
|
|
|
7273
7272
|
* @returns Predicate IRI string
|
|
7274
7273
|
*/
|
|
7275
7274
|
toIri(e) {
|
|
7276
|
-
return
|
|
7275
|
+
return Lu(e, this.prefixes);
|
|
7277
7276
|
}
|
|
7278
7277
|
/**
|
|
7279
7278
|
* Generates a curie from a IRI
|
|
@@ -7284,7 +7283,7 @@ class Sn {
|
|
|
7284
7283
|
* @returns Generated curie
|
|
7285
7284
|
*/
|
|
7286
7285
|
fromIri(e) {
|
|
7287
|
-
return
|
|
7286
|
+
return $u(e, this.prefixes);
|
|
7288
7287
|
}
|
|
7289
7288
|
// private traverseRdfList() { }
|
|
7290
7289
|
// public getRdfList() { }
|
|
@@ -7527,12 +7526,12 @@ class Sn {
|
|
|
7527
7526
|
}), e;
|
|
7528
7527
|
}
|
|
7529
7528
|
}
|
|
7530
|
-
class
|
|
7529
|
+
class Fu extends Error {
|
|
7531
7530
|
constructor(e) {
|
|
7532
7531
|
super(e), this.name = "NetworkError";
|
|
7533
7532
|
}
|
|
7534
7533
|
}
|
|
7535
|
-
function
|
|
7534
|
+
function ku(t) {
|
|
7536
7535
|
let e = {};
|
|
7537
7536
|
const r = t.split(",").map((i) => {
|
|
7538
7537
|
const [, a, l] = i.trim().match(/<(.+)>; (.+)/), u = { uri: a };
|
|
@@ -7565,11 +7564,11 @@ async function In(t) {
|
|
|
7565
7564
|
}
|
|
7566
7565
|
});
|
|
7567
7566
|
if (!e.ok)
|
|
7568
|
-
throw new
|
|
7569
|
-
const r = e.headers.get("link") || e.headers.get("Link"), n = r ?
|
|
7567
|
+
throw new Fu(`Network error - status code ${e.status}: ${e.statusText}`);
|
|
7568
|
+
const r = e.headers.get("link") || e.headers.get("Link"), n = r ? ku(r) : [];
|
|
7570
7569
|
return { data: await e.text(), profiles: n };
|
|
7571
7570
|
}
|
|
7572
|
-
async function
|
|
7571
|
+
async function Cu(t, e) {
|
|
7573
7572
|
const r = t + e, n = new URL(r).pathname, { data: i, profiles: a } = await In(r), l = new Sn();
|
|
7574
7573
|
return l.setBaseUrl(t), l.load(i), {
|
|
7575
7574
|
type: "list",
|
|
@@ -7581,7 +7580,7 @@ async function ku(t, e) {
|
|
|
7581
7580
|
facets: l.getFacets()
|
|
7582
7581
|
};
|
|
7583
7582
|
}
|
|
7584
|
-
async function
|
|
7583
|
+
async function Zu(t, e) {
|
|
7585
7584
|
const r = t + e, n = new URL(r).pathname, { data: i, profiles: a } = await In(r), l = new Sn();
|
|
7586
7585
|
return l.setBaseUrl(t), l.load(i), {
|
|
7587
7586
|
type: "item",
|
|
@@ -7592,7 +7591,7 @@ async function Xu(t, e) {
|
|
|
7592
7591
|
facets: l.getFacets()
|
|
7593
7592
|
};
|
|
7594
7593
|
}
|
|
7595
|
-
async function
|
|
7594
|
+
async function Ju(t, e) {
|
|
7596
7595
|
const r = t + e, n = new URL(r).pathname, { data: i, profiles: a } = await In(r), l = new Sn();
|
|
7597
7596
|
return l.setBaseUrl(t), l.load(i), {
|
|
7598
7597
|
type: "search",
|
|
@@ -7604,9 +7603,9 @@ async function Zu(t, e) {
|
|
|
7604
7603
|
facets: l.getFacets()
|
|
7605
7604
|
};
|
|
7606
7605
|
}
|
|
7607
|
-
async function
|
|
7606
|
+
async function ef(t) {
|
|
7608
7607
|
var i, a;
|
|
7609
|
-
const e = "/profiles?page=1&limit=999&_mediatype=application/anot%2Bturtle", { data: r } = await
|
|
7608
|
+
const e = "/profiles?page=1&limit=999&_mediatype=application/anot%2Bturtle", { data: r } = await Cu(t, e), n = {};
|
|
7610
7609
|
for (const l of r)
|
|
7611
7610
|
if (n[l.value] = [], l.properties && ((a = (i = l.properties) == null ? void 0 : i[_e.shaclProperty]) != null && a.objects)) {
|
|
7612
7611
|
const u = l.properties[_e.shaclProperty].objects;
|
|
@@ -7621,7 +7620,7 @@ async function Ju(t) {
|
|
|
7621
7620
|
}
|
|
7622
7621
|
return n;
|
|
7623
7622
|
}
|
|
7624
|
-
function
|
|
7623
|
+
function Ou(t, e) {
|
|
7625
7624
|
const r = {}, n = Object.keys(t), i = [
|
|
7626
7625
|
...(e || []).filter((a) => n.includes(a.node.value)).map((a) => a.node.value),
|
|
7627
7626
|
// add fields that are in the list
|
|
@@ -7632,34 +7631,34 @@ function Cu(t, e) {
|
|
|
7632
7631
|
e.find((l) => l.node.value == a.predicate.value && l.list && l.list.length > 0), r[a.predicate.value] = t[a.predicate.value];
|
|
7633
7632
|
return r;
|
|
7634
7633
|
}
|
|
7635
|
-
function
|
|
7636
|
-
t.data.properties =
|
|
7634
|
+
function tf(t, e) {
|
|
7635
|
+
t.data.properties = Ou(t.data.properties || {}, e);
|
|
7637
7636
|
}
|
|
7638
7637
|
export {
|
|
7639
|
-
|
|
7638
|
+
Hu as ANNOTATION_PREDICATES,
|
|
7640
7639
|
En as DEFAULT_PREFIXES,
|
|
7641
7640
|
ce as PREZ_PREDICATES,
|
|
7642
7641
|
Sn as RDFStore,
|
|
7643
7642
|
_e as SYSTEM_PREDICATES,
|
|
7644
7643
|
In as apiGet,
|
|
7645
|
-
|
|
7644
|
+
tf as applyProfileToItem,
|
|
7646
7645
|
$n as bnode,
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7646
|
+
Yu as buildProfiles,
|
|
7647
|
+
$u as defaultFromIri,
|
|
7648
|
+
Lu as defaultToIri,
|
|
7649
|
+
Xu as dumpNodeArray,
|
|
7650
|
+
Bu as getBaseUrl,
|
|
7651
|
+
Zu as getItem,
|
|
7652
|
+
Cu as getList,
|
|
7653
|
+
Vu as getNarrowersUrl,
|
|
7654
|
+
ef as getProfiles,
|
|
7655
|
+
Ku as getTopConceptsUrl,
|
|
7656
|
+
Qu as getUrlPath,
|
|
7657
|
+
Du as isTypePrezTerm,
|
|
7659
7658
|
Ln as literal,
|
|
7660
7659
|
Ks as node,
|
|
7661
7660
|
Ws as nodeArrayToTree,
|
|
7662
7661
|
an as processShaclPath,
|
|
7663
|
-
|
|
7662
|
+
Ju as search,
|
|
7664
7663
|
rr as simplifyNodeArray
|
|
7665
7664
|
};
|