@feedmepos/mf-common 1.6.6-rc.1 → 1.6.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/app.js +95262 -93498
- package/dist/components/Portal/PortalDesktop.vue.d.ts +2 -10
- package/dist/components/Portal/PortalDesktop.vue.d.ts.map +1 -1
- package/dist/components/Portal/PortalMobile.vue.d.ts +2 -10
- package/dist/components/Portal/PortalMobile.vue.d.ts.map +1 -1
- package/dist/components/Portal/PortalTablet.vue.d.ts +2 -10
- package/dist/components/Portal/PortalTablet.vue.d.ts.map +1 -1
- package/dist/components/Portal/index.vue.d.ts +2 -10
- package/dist/components/Portal/index.vue.d.ts.map +1 -1
- package/dist/components/SelectCountryDialog.vue.d.ts +2 -10
- package/dist/components/SelectCountryDialog.vue.d.ts.map +1 -1
- package/dist/components/UserInfo/index.vue.d.ts +4 -20
- package/dist/components/UserInfo/index.vue.d.ts.map +1 -1
- package/dist/favicon.ico +0 -0
- package/dist/logo.svg +2 -2
- package/dist/{multipart-parser-513ff2e8.js → multipart-parser-afef41ff.js} +1 -1
- package/dist/router/index.d.ts.map +1 -1
- package/dist/store.d.ts +1544 -1582
- package/dist/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{vite-preset-1fc4fac1.js → vite-preset-e8c101f6.js} +158 -163
- package/dist/vite-preset.js +1 -1
- package/package.json +2 -2
@@ -13,7 +13,7 @@ import ht from "node:http";
|
|
13
13
|
import Pi from "node:https";
|
14
14
|
import Je from "node:zlib";
|
15
15
|
import se, { PassThrough as Kt, pipeline as Ze } from "node:stream";
|
16
|
-
import { Buffer as
|
16
|
+
import { Buffer as D } from "node:buffer";
|
17
17
|
import { types as Xt, promisify as vi, deprecate as or } from "node:util";
|
18
18
|
import { format as Ei } from "node:url";
|
19
19
|
import { isIP as Ai } from "node:net";
|
@@ -153,17 +153,17 @@ function zi() {
|
|
153
153
|
function B(e, t, r) {
|
154
154
|
return W(e, t, r);
|
155
155
|
}
|
156
|
-
function
|
156
|
+
function x(e) {
|
157
157
|
W(e, void 0, h);
|
158
158
|
}
|
159
|
-
let
|
159
|
+
let re = (e) => {
|
160
160
|
if (typeof queueMicrotask == "function")
|
161
|
-
|
161
|
+
re = queueMicrotask;
|
162
162
|
else {
|
163
163
|
const t = w(void 0);
|
164
|
-
|
164
|
+
re = (r) => W(t, r);
|
165
165
|
}
|
166
|
-
return
|
166
|
+
return re(e);
|
167
167
|
};
|
168
168
|
function O(e, t, r) {
|
169
169
|
if (typeof e != "function")
|
@@ -177,8 +177,8 @@ function zi() {
|
|
177
177
|
return m(o);
|
178
178
|
}
|
179
179
|
}
|
180
|
-
const
|
181
|
-
class
|
180
|
+
const $ = 16384;
|
181
|
+
class M {
|
182
182
|
constructor() {
|
183
183
|
this._cursor = 0, this._size = 0, this._front = {
|
184
184
|
_elements: [],
|
@@ -195,7 +195,7 @@ function zi() {
|
|
195
195
|
push(t) {
|
196
196
|
const r = this._back;
|
197
197
|
let o = r;
|
198
|
-
r._elements.length ===
|
198
|
+
r._elements.length === $ - 1 && (o = {
|
199
199
|
_elements: [],
|
200
200
|
_next: void 0
|
201
201
|
}), r._elements.push(t), o !== r && (this._back = o, r._next = o), ++this._size;
|
@@ -208,7 +208,7 @@ function zi() {
|
|
208
208
|
const o = this._cursor;
|
209
209
|
let s = o + 1;
|
210
210
|
const f = t._elements, d = f[o];
|
211
|
-
return s ===
|
211
|
+
return s === $ && (r = t._next, s = 0), --this._size, this._cursor = s, t !== r && (this._front = r), f[o] = void 0, d;
|
212
212
|
}
|
213
213
|
// The tricky thing about forEach() is that it can be called
|
214
214
|
// re-entrantly. The queue may be mutated inside the callback. It is easy to
|
@@ -236,7 +236,7 @@ function zi() {
|
|
236
236
|
}
|
237
237
|
function ur(e, t) {
|
238
238
|
const r = e._ownerReadableStream;
|
239
|
-
return
|
239
|
+
return X(r, t);
|
240
240
|
}
|
241
241
|
function le(e) {
|
242
242
|
const t = e._ownerReadableStream;
|
@@ -257,7 +257,7 @@ function zi() {
|
|
257
257
|
fr(e), nn(e);
|
258
258
|
}
|
259
259
|
function dr(e, t) {
|
260
|
-
e._closedPromise_reject !== void 0 && (
|
260
|
+
e._closedPromise_reject !== void 0 && (x(e._closedPromise), e._closedPromise_reject(t), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0);
|
261
261
|
}
|
262
262
|
function Fo(e, t) {
|
263
263
|
rn(e, t);
|
@@ -277,7 +277,7 @@ function zi() {
|
|
277
277
|
if (e !== void 0 && !jo(e))
|
278
278
|
throw new TypeError(`${t} is not an object.`);
|
279
279
|
}
|
280
|
-
function
|
280
|
+
function Y(e, t) {
|
281
281
|
if (typeof e != "function")
|
282
282
|
throw new TypeError(`${t} is not a function.`);
|
283
283
|
}
|
@@ -339,7 +339,7 @@ function zi() {
|
|
339
339
|
constructor(t) {
|
340
340
|
if (ue(t, 1, "ReadableStreamDefaultReader"), br(t, "First parameter"), Pe(t))
|
341
341
|
throw new TypeError("This stream has already been locked for exclusive reading by another reader");
|
342
|
-
tn(this, t), this._readRequests = new
|
342
|
+
tn(this, t), this._readRequests = new M();
|
343
343
|
}
|
344
344
|
/**
|
345
345
|
* Returns a promise that will be fulfilled when the stream becomes closed,
|
@@ -412,7 +412,7 @@ function zi() {
|
|
412
412
|
}
|
413
413
|
function fn(e, t) {
|
414
414
|
const r = e._readRequests;
|
415
|
-
e._readRequests = new
|
415
|
+
e._readRequests = new M(), r.forEach((o) => {
|
416
416
|
o._errorSteps(t);
|
417
417
|
});
|
418
418
|
}
|
@@ -443,7 +443,7 @@ function zi() {
|
|
443
443
|
});
|
444
444
|
return tt(t, {
|
445
445
|
_chunkSteps: (d) => {
|
446
|
-
this._ongoingPromise = void 0,
|
446
|
+
this._ongoingPromise = void 0, re(() => r({ value: d, done: !1 }));
|
447
447
|
},
|
448
448
|
_closeSteps: () => {
|
449
449
|
this._ongoingPromise = void 0, this._isFinished = !0, le(t), r({ value: void 0, done: !0 });
|
@@ -573,7 +573,7 @@ function zi() {
|
|
573
573
|
return e._queue.peek().value;
|
574
574
|
}
|
575
575
|
function we(e) {
|
576
|
-
e._queue = new
|
576
|
+
e._queue = new M(), e._queueTotalSize = 0;
|
577
577
|
}
|
578
578
|
function Sn(e) {
|
579
579
|
return e === DataView;
|
@@ -682,7 +682,7 @@ function zi() {
|
|
682
682
|
error(t = void 0) {
|
683
683
|
if (!We(this))
|
684
684
|
throw ot("error");
|
685
|
-
|
685
|
+
G(this, t);
|
686
686
|
}
|
687
687
|
/** @internal */
|
688
688
|
[ir](t) {
|
@@ -725,7 +725,7 @@ function zi() {
|
|
725
725
|
[lr]() {
|
726
726
|
if (this._pendingPullIntos.length > 0) {
|
727
727
|
const t = this._pendingPullIntos.peek();
|
728
|
-
t.readerType = "none", this._pendingPullIntos = new
|
728
|
+
t.readerType = "none", this._pendingPullIntos = new M(), this._pendingPullIntos.push(t);
|
729
729
|
}
|
730
730
|
}
|
731
731
|
}
|
@@ -754,10 +754,10 @@ function zi() {
|
|
754
754
|
}
|
755
755
|
e._pulling = !0;
|
756
756
|
const r = e._pullAlgorithm();
|
757
|
-
p(r, () => (e._pulling = !1, e._pullAgain && (e._pullAgain = !1, ke(e)), null), (o) => (
|
757
|
+
p(r, () => (e._pulling = !1, e._pullAgain && (e._pullAgain = !1, ke(e)), null), (o) => (G(e, o), null));
|
758
758
|
}
|
759
759
|
function wn(e) {
|
760
|
-
Pr(e), e._pendingPullIntos = new
|
760
|
+
Pr(e), e._pendingPullIntos = new M();
|
761
761
|
}
|
762
762
|
function Tr(e, t) {
|
763
763
|
let r = !1;
|
@@ -777,7 +777,7 @@ function zi() {
|
|
777
777
|
try {
|
778
778
|
s = yn(t, r, r + o);
|
779
779
|
} catch (f) {
|
780
|
-
throw
|
780
|
+
throw G(e, f), f;
|
781
781
|
}
|
782
782
|
Tt(e, s, 0, o);
|
783
783
|
}
|
@@ -859,7 +859,7 @@ function zi() {
|
|
859
859
|
}
|
860
860
|
if (e._closeRequested) {
|
861
861
|
const k = new TypeError("Insufficient bytes to fill elements in the given buffer");
|
862
|
-
|
862
|
+
G(e, k), o._errorSteps(k);
|
863
863
|
return;
|
864
864
|
}
|
865
865
|
}
|
@@ -914,7 +914,7 @@ function zi() {
|
|
914
914
|
const r = e._pendingPullIntos.peek();
|
915
915
|
if (r.bytesFilled % r.elementSize !== 0) {
|
916
916
|
const o = new TypeError("Insufficient bytes to fill elements in the given buffer");
|
917
|
-
throw
|
917
|
+
throw G(e, o), o;
|
918
918
|
}
|
919
919
|
}
|
920
920
|
Pt(e), ft(t);
|
@@ -946,7 +946,7 @@ function zi() {
|
|
946
946
|
Br(r) ? (Tt(e, d, s, f), vr(e)) : Tt(e, d, s, f);
|
947
947
|
ke(e);
|
948
948
|
}
|
949
|
-
function
|
949
|
+
function G(e, t) {
|
950
950
|
const r = e._controlledReadableByteStream;
|
951
951
|
r._state === "readable" && (wn(e), we(e), Pt(e), oo(r, t));
|
952
952
|
}
|
@@ -997,9 +997,9 @@ function zi() {
|
|
997
997
|
r.buffer = fe(t.buffer), An(e, s);
|
998
998
|
}
|
999
999
|
function kn(e, t, r, o, s, f, d) {
|
1000
|
-
t._controlledReadableByteStream = e, t._pullAgain = !1, t._pulling = !1, t._byobRequest = null, t._queue = t._queueTotalSize = void 0, we(t), t._closeRequested = !1, t._started = !1, t._strategyHWM = f, t._pullAlgorithm = o, t._cancelAlgorithm = s, t._autoAllocateChunkSize = d, t._pendingPullIntos = new
|
1000
|
+
t._controlledReadableByteStream = e, t._pullAgain = !1, t._pulling = !1, t._byobRequest = null, t._queue = t._queueTotalSize = void 0, we(t), t._closeRequested = !1, t._started = !1, t._strategyHWM = f, t._pullAlgorithm = o, t._cancelAlgorithm = s, t._autoAllocateChunkSize = d, t._pendingPullIntos = new M(), e._readableStreamController = t;
|
1001
1001
|
const b = r();
|
1002
|
-
p(w(b), () => (t._started = !0, ke(t), null), (S) => (
|
1002
|
+
p(w(b), () => (t._started = !0, ke(t), null), (S) => (G(t, S), null));
|
1003
1003
|
}
|
1004
1004
|
function ra(e, t, r) {
|
1005
1005
|
const o = Object.create(de.prototype);
|
@@ -1063,7 +1063,7 @@ function zi() {
|
|
1063
1063
|
throw new TypeError("This stream has already been locked for exclusive reading by another reader");
|
1064
1064
|
if (!We(t._readableStreamController))
|
1065
1065
|
throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");
|
1066
|
-
tn(this, t), this._readIntoRequests = new
|
1066
|
+
tn(this, t), this._readIntoRequests = new M();
|
1067
1067
|
}
|
1068
1068
|
/**
|
1069
1069
|
* Returns a promise that will be fulfilled when the stream becomes closed, or rejected if the stream ever errors or
|
@@ -1153,7 +1153,7 @@ function zi() {
|
|
1153
1153
|
}
|
1154
1154
|
function In(e, t) {
|
1155
1155
|
const r = e._readIntoRequests;
|
1156
|
-
e._readIntoRequests = new
|
1156
|
+
e._readIntoRequests = new M(), r.forEach((o) => {
|
1157
1157
|
o._errorSteps(t);
|
1158
1158
|
});
|
1159
1159
|
}
|
@@ -1181,7 +1181,7 @@ function zi() {
|
|
1181
1181
|
};
|
1182
1182
|
}
|
1183
1183
|
function ua(e, t) {
|
1184
|
-
return
|
1184
|
+
return Y(e, t), (r) => hr(e(r));
|
1185
1185
|
}
|
1186
1186
|
function fa(e, t) {
|
1187
1187
|
ne(e, t);
|
@@ -1195,16 +1195,16 @@ function zi() {
|
|
1195
1195
|
};
|
1196
1196
|
}
|
1197
1197
|
function da(e, t, r) {
|
1198
|
-
return
|
1198
|
+
return Y(e, r), (o) => z(e, t, [o]);
|
1199
1199
|
}
|
1200
1200
|
function ca(e, t, r) {
|
1201
|
-
return
|
1201
|
+
return Y(e, r), () => z(e, t, []);
|
1202
1202
|
}
|
1203
1203
|
function ha(e, t, r) {
|
1204
|
-
return
|
1204
|
+
return Y(e, r), (o) => O(e, t, [o]);
|
1205
1205
|
}
|
1206
1206
|
function ma(e, t, r) {
|
1207
|
-
return
|
1207
|
+
return Y(e, r), (o, s) => z(e, t, [o, s]);
|
1208
1208
|
}
|
1209
1209
|
function jn(e, t) {
|
1210
1210
|
if (!$e(e))
|
@@ -1297,7 +1297,7 @@ function zi() {
|
|
1297
1297
|
return Qn(d, b, e, t, r, o, s, f), d;
|
1298
1298
|
}
|
1299
1299
|
function Dn(e) {
|
1300
|
-
e._state = "writable", e._storedError = void 0, e._writer = void 0, e._writableStreamController = void 0, e._writeRequests = new
|
1300
|
+
e._state = "writable", e._storedError = void 0, e._writer = void 0, e._writableStreamController = void 0, e._writeRequests = new M(), e._inFlightWriteRequest = void 0, e._closeRequest = void 0, e._inFlightCloseRequest = void 0, e._pendingAbortRequest = void 0, e._backpressure = !1;
|
1301
1301
|
}
|
1302
1302
|
function $e(e) {
|
1303
1303
|
return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_writableStreamController") ? !1 : e instanceof Ce;
|
@@ -1368,7 +1368,7 @@ function zi() {
|
|
1368
1368
|
const t = e._storedError;
|
1369
1369
|
if (e._writeRequests.forEach((s) => {
|
1370
1370
|
s._reject(t);
|
1371
|
-
}), e._writeRequests = new
|
1371
|
+
}), e._writeRequests = new M(), e._pendingAbortRequest === void 0) {
|
1372
1372
|
Ot(e);
|
1373
1373
|
return;
|
1374
1374
|
}
|
@@ -1724,7 +1724,7 @@ function zi() {
|
|
1724
1724
|
jt(e), Jn(e);
|
1725
1725
|
}
|
1726
1726
|
function jr(e, t) {
|
1727
|
-
e._closedPromise_reject !== void 0 && (
|
1727
|
+
e._closedPromise_reject !== void 0 && (x(e._closedPromise), e._closedPromise_reject(t), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0, e._closedPromiseState = "rejected");
|
1728
1728
|
}
|
1729
1729
|
function La(e, t) {
|
1730
1730
|
Gn(e, t);
|
@@ -1744,7 +1744,7 @@ function zi() {
|
|
1744
1744
|
Lt(e), Dr(e);
|
1745
1745
|
}
|
1746
1746
|
function Kn(e, t) {
|
1747
|
-
e._readyPromise_reject !== void 0 && (
|
1747
|
+
e._readyPromise_reject !== void 0 && (x(e._readyPromise), e._readyPromise_reject(t), e._readyPromise_resolve = void 0, e._readyPromise_reject = void 0, e._readyPromiseState = "rejected");
|
1748
1748
|
}
|
1749
1749
|
function Da(e) {
|
1750
1750
|
Lt(e);
|
@@ -1793,14 +1793,14 @@ function zi() {
|
|
1793
1793
|
if (f !== void 0) {
|
1794
1794
|
if (k = () => {
|
1795
1795
|
const g = f.reason !== void 0 ? f.reason : new Ha("Aborted", "AbortError"), A = [];
|
1796
|
-
o || A.push(() => t._state === "writable" ? qt(t, g) : w(void 0)), s || A.push(() => e._state === "readable" ?
|
1796
|
+
o || A.push(() => t._state === "writable" ? qt(t, g) : w(void 0)), s || A.push(() => e._state === "readable" ? X(e, g) : w(void 0)), N(() => Promise.all(A.map((q) => q())), !0, g);
|
1797
1797
|
}, f.aborted) {
|
1798
1798
|
k();
|
1799
1799
|
return;
|
1800
1800
|
}
|
1801
1801
|
f.addEventListener("abort", k);
|
1802
1802
|
}
|
1803
|
-
function
|
1803
|
+
function ee() {
|
1804
1804
|
return E((g, A) => {
|
1805
1805
|
function q(Q) {
|
1806
1806
|
Q ? g() : W(Qe(), q, A);
|
@@ -1819,11 +1819,11 @@ function zi() {
|
|
1819
1819
|
});
|
1820
1820
|
}));
|
1821
1821
|
}
|
1822
|
-
if (me(e, d._closedPromise, (g) => (o ?
|
1822
|
+
if (me(e, d._closedPromise, (g) => (o ? J(!0, g) : N(() => qt(t, g), !0, g), null)), me(t, b._closedPromise, (g) => (s ? J(!0, g) : N(() => X(e, g), !0, g), null)), U(e, d._closedPromise, () => (r ? J() : N(() => Aa(b)), null)), oe(t) || t._state === "closed") {
|
1823
1823
|
const g = new TypeError("the destination writable stream closed before all data could be piped to it");
|
1824
|
-
s ?
|
1824
|
+
s ? J(!0, g) : N(() => X(e, g), !0, g);
|
1825
1825
|
}
|
1826
|
-
|
1826
|
+
x(ee());
|
1827
1827
|
function Ee() {
|
1828
1828
|
const g = y;
|
1829
1829
|
return W(y, () => g !== y ? Ee() : void 0);
|
@@ -1831,7 +1831,7 @@ function zi() {
|
|
1831
1831
|
function me(g, A, q) {
|
1832
1832
|
g._state === "errored" ? q(g._storedError) : R(A, q);
|
1833
1833
|
}
|
1834
|
-
function
|
1834
|
+
function U(g, A, q) {
|
1835
1835
|
g._state === "closed" ? q() : j(A, q);
|
1836
1836
|
}
|
1837
1837
|
function N(g, A, q) {
|
@@ -1842,7 +1842,7 @@ function zi() {
|
|
1842
1842
|
return p(g(), () => be(A, q), (Ve) => be(!0, Ve)), null;
|
1843
1843
|
}
|
1844
1844
|
}
|
1845
|
-
function
|
1845
|
+
function J(g, A) {
|
1846
1846
|
S || (S = !0, t._state === "writable" && !oe(t) ? j(Ee(), () => be(g, A)) : be(g, A));
|
1847
1847
|
}
|
1848
1848
|
function be(g, A) {
|
@@ -1887,7 +1887,7 @@ function zi() {
|
|
1887
1887
|
error(t = void 0) {
|
1888
1888
|
if (!Dt(this))
|
1889
1889
|
throw Mt("error");
|
1890
|
-
|
1890
|
+
K(this, t);
|
1891
1891
|
}
|
1892
1892
|
/** @internal */
|
1893
1893
|
[ir](t) {
|
@@ -1929,7 +1929,7 @@ function zi() {
|
|
1929
1929
|
}
|
1930
1930
|
e._pulling = !0;
|
1931
1931
|
const r = e._pullAlgorithm();
|
1932
|
-
p(r, () => (e._pulling = !1, e._pullAgain && (e._pullAgain = !1, lt(e)), null), (o) => (
|
1932
|
+
p(r, () => (e._pulling = !1, e._pullAgain && (e._pullAgain = !1, lt(e)), null), (o) => (K(e, o), null));
|
1933
1933
|
}
|
1934
1934
|
function eo(e) {
|
1935
1935
|
const t = e._controlledReadableStream;
|
@@ -1955,17 +1955,17 @@ function zi() {
|
|
1955
1955
|
try {
|
1956
1956
|
o = e._strategySizeAlgorithm(t);
|
1957
1957
|
} catch (s) {
|
1958
|
-
throw
|
1958
|
+
throw K(e, s), s;
|
1959
1959
|
}
|
1960
1960
|
try {
|
1961
1961
|
Rr(e, t, o);
|
1962
1962
|
} catch (s) {
|
1963
|
-
throw
|
1963
|
+
throw K(e, s), s;
|
1964
1964
|
}
|
1965
1965
|
}
|
1966
1966
|
lt(e);
|
1967
1967
|
}
|
1968
|
-
function
|
1968
|
+
function K(e, t) {
|
1969
1969
|
const r = e._controlledReadableStream;
|
1970
1970
|
r._state === "readable" && (we(e), $t(e), oo(r, t));
|
1971
1971
|
}
|
@@ -1983,7 +1983,7 @@ function zi() {
|
|
1983
1983
|
function to(e, t, r, o, s, f, d) {
|
1984
1984
|
t._controlledReadableStream = e, t._queue = void 0, t._queueTotalSize = void 0, we(t), t._started = !1, t._closeRequested = !1, t._pullAgain = !1, t._pulling = !1, t._strategySizeAlgorithm = d, t._strategyHWM = f, t._pullAlgorithm = o, t._cancelAlgorithm = s, e._readableStreamController = t;
|
1985
1985
|
const b = r();
|
1986
|
-
p(w(b), () => (t._started = !0, lt(t), null), (S) => (
|
1986
|
+
p(w(b), () => (t._started = !0, lt(t), null), (S) => (K(t, S), null));
|
1987
1987
|
}
|
1988
1988
|
function Va(e, t, r, o) {
|
1989
1989
|
const s = Object.create(he.prototype);
|
@@ -2000,16 +2000,16 @@ function zi() {
|
|
2000
2000
|
function Ga(e, t) {
|
2001
2001
|
const r = Le(e);
|
2002
2002
|
let o = !1, s = !1, f = !1, d = !1, b, S, y, C, P;
|
2003
|
-
const k = E((
|
2004
|
-
P =
|
2003
|
+
const k = E((U) => {
|
2004
|
+
P = U;
|
2005
2005
|
});
|
2006
|
-
function
|
2006
|
+
function ee() {
|
2007
2007
|
return o ? (s = !0, w(void 0)) : (o = !0, tt(r, {
|
2008
2008
|
_chunkSteps: (N) => {
|
2009
|
-
|
2009
|
+
re(() => {
|
2010
2010
|
s = !1;
|
2011
|
-
const
|
2012
|
-
f || xe(y._readableStreamController,
|
2011
|
+
const J = N, be = N;
|
2012
|
+
f || xe(y._readableStreamController, J), d || xe(C._readableStreamController, be), o = !1, s && ee();
|
2013
2013
|
});
|
2014
2014
|
},
|
2015
2015
|
_closeSteps: () => {
|
@@ -2020,36 +2020,36 @@ function zi() {
|
|
2020
2020
|
}
|
2021
2021
|
}), w(void 0));
|
2022
2022
|
}
|
2023
|
-
function Qe(
|
2024
|
-
if (f = !0, b =
|
2025
|
-
const N = rt([b, S]),
|
2026
|
-
P(
|
2023
|
+
function Qe(U) {
|
2024
|
+
if (f = !0, b = U, d) {
|
2025
|
+
const N = rt([b, S]), J = X(e, N);
|
2026
|
+
P(J);
|
2027
2027
|
}
|
2028
2028
|
return k;
|
2029
2029
|
}
|
2030
|
-
function Ee(
|
2031
|
-
if (d = !0, S =
|
2032
|
-
const N = rt([b, S]),
|
2033
|
-
P(
|
2030
|
+
function Ee(U) {
|
2031
|
+
if (d = !0, S = U, f) {
|
2032
|
+
const N = rt([b, S]), J = X(e, N);
|
2033
|
+
P(J);
|
2034
2034
|
}
|
2035
2035
|
return k;
|
2036
2036
|
}
|
2037
2037
|
function me() {
|
2038
2038
|
}
|
2039
|
-
return y = ut(me,
|
2039
|
+
return y = ut(me, ee, Qe), C = ut(me, ee, Ee), R(r._closedPromise, (U) => (K(y._readableStreamController, U), K(C._readableStreamController, U), (!f || !d) && P(void 0), null)), [y, C];
|
2040
2040
|
}
|
2041
2041
|
function Ja(e) {
|
2042
2042
|
let t = Le(e), r = !1, o = !1, s = !1, f = !1, d = !1, b, S, y, C, P;
|
2043
2043
|
const k = E((g) => {
|
2044
2044
|
P = g;
|
2045
2045
|
});
|
2046
|
-
function
|
2047
|
-
R(g._closedPromise, (A) => (g !== t || (
|
2046
|
+
function ee(g) {
|
2047
|
+
R(g._closedPromise, (A) => (g !== t || (G(y._readableStreamController, A), G(C._readableStreamController, A), (!f || !d) && P(void 0)), null));
|
2048
2048
|
}
|
2049
2049
|
function Qe() {
|
2050
|
-
qe(t) && (le(t), t = Le(e),
|
2050
|
+
qe(t) && (le(t), t = Le(e), ee(t)), tt(t, {
|
2051
2051
|
_chunkSteps: (A) => {
|
2052
|
-
|
2052
|
+
re(() => {
|
2053
2053
|
o = !1, s = !1;
|
2054
2054
|
const q = A;
|
2055
2055
|
let Q = A;
|
@@ -2057,10 +2057,10 @@ function zi() {
|
|
2057
2057
|
try {
|
2058
2058
|
Q = _n(A);
|
2059
2059
|
} catch (Ve) {
|
2060
|
-
|
2060
|
+
G(y._readableStreamController, Ve), G(C._readableStreamController, Ve), P(X(e, Ve));
|
2061
2061
|
return;
|
2062
2062
|
}
|
2063
|
-
f || vt(y._readableStreamController, q), d || vt(C._readableStreamController, Q), r = !1, o ? me() : s &&
|
2063
|
+
f || vt(y._readableStreamController, q), d || vt(C._readableStreamController, Q), r = !1, o ? me() : s && U();
|
2064
2064
|
});
|
2065
2065
|
},
|
2066
2066
|
_closeSteps: () => {
|
@@ -2072,11 +2072,11 @@ function zi() {
|
|
2072
2072
|
});
|
2073
2073
|
}
|
2074
2074
|
function Ee(g, A) {
|
2075
|
-
_e(t) && (le(t), t = qn(e),
|
2075
|
+
_e(t) && (le(t), t = qn(e), ee(t));
|
2076
2076
|
const q = A ? C : y, Q = A ? y : C;
|
2077
2077
|
Fn(t, g, 1, {
|
2078
2078
|
_chunkSteps: (Ye) => {
|
2079
|
-
|
2079
|
+
re(() => {
|
2080
2080
|
o = !1, s = !1;
|
2081
2081
|
const Ge = A ? d : f;
|
2082
2082
|
if (A ? f : d)
|
@@ -2086,12 +2086,12 @@ function zi() {
|
|
2086
2086
|
try {
|
2087
2087
|
go = _n(Ye);
|
2088
2088
|
} catch (Qr) {
|
2089
|
-
|
2089
|
+
G(q._readableStreamController, Qr), G(Q._readableStreamController, Qr), P(X(e, Qr));
|
2090
2090
|
return;
|
2091
2091
|
}
|
2092
2092
|
Ge || At(q._readableStreamController, Ye), vt(Q._readableStreamController, go);
|
2093
2093
|
}
|
2094
|
-
r = !1, o ? me() : s &&
|
2094
|
+
r = !1, o ? me() : s && U();
|
2095
2095
|
});
|
2096
2096
|
},
|
2097
2097
|
_closeSteps: (Ye) => {
|
@@ -2111,7 +2111,7 @@ function zi() {
|
|
2111
2111
|
const g = Er(y._readableStreamController);
|
2112
2112
|
return g === null ? Qe() : Ee(g._view, !1), w(void 0);
|
2113
2113
|
}
|
2114
|
-
function
|
2114
|
+
function U() {
|
2115
2115
|
if (r)
|
2116
2116
|
return s = !0, w(void 0);
|
2117
2117
|
r = !0;
|
@@ -2120,21 +2120,21 @@ function zi() {
|
|
2120
2120
|
}
|
2121
2121
|
function N(g) {
|
2122
2122
|
if (f = !0, b = g, d) {
|
2123
|
-
const A = rt([b, S]), q =
|
2123
|
+
const A = rt([b, S]), q = X(e, A);
|
2124
2124
|
P(q);
|
2125
2125
|
}
|
2126
2126
|
return k;
|
2127
2127
|
}
|
2128
|
-
function
|
2128
|
+
function J(g) {
|
2129
2129
|
if (d = !0, S = g, f) {
|
2130
|
-
const A = rt([b, S]), q =
|
2130
|
+
const A = rt([b, S]), q = X(e, A);
|
2131
2131
|
P(q);
|
2132
2132
|
}
|
2133
2133
|
return k;
|
2134
2134
|
}
|
2135
2135
|
function be() {
|
2136
2136
|
}
|
2137
|
-
return y = no(be, me, N), C = no(be,
|
2137
|
+
return y = no(be, me, N), C = no(be, U, J), ee(t), [y, C];
|
2138
2138
|
}
|
2139
2139
|
function Za(e) {
|
2140
2140
|
return l(e) && typeof e.getReader < "u";
|
@@ -2230,13 +2230,13 @@ function zi() {
|
|
2230
2230
|
};
|
2231
2231
|
}
|
2232
2232
|
function ri(e, t, r) {
|
2233
|
-
return
|
2233
|
+
return Y(e, r), (o) => z(e, t, [o]);
|
2234
2234
|
}
|
2235
2235
|
function ni(e, t, r) {
|
2236
|
-
return
|
2236
|
+
return Y(e, r), (o) => z(e, t, [o]);
|
2237
2237
|
}
|
2238
2238
|
function oi(e, t, r) {
|
2239
|
-
return
|
2239
|
+
return Y(e, r), (o) => O(e, t, [o]);
|
2240
2240
|
}
|
2241
2241
|
function ai(e, t) {
|
2242
2242
|
if (e = `${e}`, e !== "bytes")
|
@@ -2267,7 +2267,7 @@ function zi() {
|
|
2267
2267
|
const o = e == null ? void 0 : e.writable;
|
2268
2268
|
return cr(o, "writable", "ReadableWritablePair"), jn(o, `${t} has member 'writable' that`), { readable: r, writable: o };
|
2269
2269
|
}
|
2270
|
-
class
|
2270
|
+
class L {
|
2271
2271
|
constructor(t = {}, r = {}) {
|
2272
2272
|
t === void 0 ? t = null : an(t, "First parameter");
|
2273
2273
|
const o = kt(r, "Second parameter"), s = ti(t, "First parameter");
|
@@ -2296,7 +2296,7 @@ function zi() {
|
|
2296
2296
|
* method, which might or might not use it.
|
2297
2297
|
*/
|
2298
2298
|
cancel(t = void 0) {
|
2299
|
-
return Te(this) ? Pe(this) ? m(new TypeError("Cannot cancel a stream that already has a reader")) :
|
2299
|
+
return Te(this) ? Pe(this) ? m(new TypeError("Cannot cancel a stream that already has a reader")) : X(this, t) : m(Ie("cancel"));
|
2300
2300
|
}
|
2301
2301
|
getReader(t = void 0) {
|
2302
2302
|
if (!Te(this))
|
@@ -2313,7 +2313,7 @@ function zi() {
|
|
2313
2313
|
if (Me(o.writable))
|
2314
2314
|
throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");
|
2315
2315
|
const f = Xn(this, o.writable, s.preventClose, s.preventAbort, s.preventCancel, s.signal);
|
2316
|
-
return
|
2316
|
+
return x(f), o.readable;
|
2317
2317
|
}
|
2318
2318
|
pipeTo(t, r = {}) {
|
2319
2319
|
if (!Te(this))
|
@@ -2366,9 +2366,9 @@ function zi() {
|
|
2366
2366
|
return Ka(t);
|
2367
2367
|
}
|
2368
2368
|
}
|
2369
|
-
Object.defineProperties(
|
2369
|
+
Object.defineProperties(L, {
|
2370
2370
|
from: { enumerable: !0 }
|
2371
|
-
}), Object.defineProperties(
|
2371
|
+
}), Object.defineProperties(L.prototype, {
|
2372
2372
|
cancel: { enumerable: !0 },
|
2373
2373
|
getReader: { enumerable: !0 },
|
2374
2374
|
pipeThrough: { enumerable: !0 },
|
@@ -2376,22 +2376,22 @@ function zi() {
|
|
2376
2376
|
tee: { enumerable: !0 },
|
2377
2377
|
values: { enumerable: !0 },
|
2378
2378
|
locked: { enumerable: !0 }
|
2379
|
-
}), c(
|
2379
|
+
}), c(L.from, "from"), c(L.prototype.cancel, "cancel"), c(L.prototype.getReader, "getReader"), c(L.prototype.pipeThrough, "pipeThrough"), c(L.prototype.pipeTo, "pipeTo"), c(L.prototype.tee, "tee"), c(L.prototype.values, "values"), typeof Symbol.toStringTag == "symbol" && Object.defineProperty(L.prototype, Symbol.toStringTag, {
|
2380
2380
|
value: "ReadableStream",
|
2381
2381
|
configurable: !0
|
2382
|
-
}), Object.defineProperty(
|
2383
|
-
value:
|
2382
|
+
}), Object.defineProperty(L.prototype, Sr, {
|
2383
|
+
value: L.prototype.values,
|
2384
2384
|
writable: !0,
|
2385
2385
|
configurable: !0
|
2386
2386
|
});
|
2387
2387
|
function ut(e, t, r, o = 1, s = () => 1) {
|
2388
|
-
const f = Object.create(
|
2388
|
+
const f = Object.create(L.prototype);
|
2389
2389
|
Ur(f);
|
2390
2390
|
const d = Object.create(he.prototype);
|
2391
2391
|
return to(f, d, e, t, r, o, s), f;
|
2392
2392
|
}
|
2393
2393
|
function no(e, t, r) {
|
2394
|
-
const o = Object.create(
|
2394
|
+
const o = Object.create(L.prototype);
|
2395
2395
|
Ur(o);
|
2396
2396
|
const s = Object.create(de.prototype);
|
2397
2397
|
return kn(o, s, e, t, r, 0, void 0), o;
|
@@ -2400,12 +2400,12 @@ function zi() {
|
|
2400
2400
|
e._state = "readable", e._reader = void 0, e._storedError = void 0, e._disturbed = !1;
|
2401
2401
|
}
|
2402
2402
|
function Te(e) {
|
2403
|
-
return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_readableStreamController") ? !1 : e instanceof
|
2403
|
+
return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_readableStreamController") ? !1 : e instanceof L;
|
2404
2404
|
}
|
2405
2405
|
function Pe(e) {
|
2406
2406
|
return e._reader !== void 0;
|
2407
2407
|
}
|
2408
|
-
function
|
2408
|
+
function X(e, t) {
|
2409
2409
|
if (e._disturbed = !0, e._state === "closed")
|
2410
2410
|
return w(void 0);
|
2411
2411
|
if (e._state === "errored")
|
@@ -2414,7 +2414,7 @@ function zi() {
|
|
2414
2414
|
const r = e._reader;
|
2415
2415
|
if (r !== void 0 && qe(r)) {
|
2416
2416
|
const s = r._readIntoRequests;
|
2417
|
-
r._readIntoRequests = new
|
2417
|
+
r._readIntoRequests = new M(), s.forEach((f) => {
|
2418
2418
|
f._closeSteps(void 0);
|
2419
2419
|
});
|
2420
2420
|
}
|
@@ -2426,7 +2426,7 @@ function zi() {
|
|
2426
2426
|
const t = e._reader;
|
2427
2427
|
if (t !== void 0 && (nn(t), _e(t))) {
|
2428
2428
|
const r = t._readRequests;
|
2429
|
-
t._readRequests = new
|
2429
|
+
t._readRequests = new M(), r.forEach((o) => {
|
2430
2430
|
o._closeSteps();
|
2431
2431
|
});
|
2432
2432
|
}
|
@@ -2532,16 +2532,16 @@ function zi() {
|
|
2532
2532
|
};
|
2533
2533
|
}
|
2534
2534
|
function fi(e, t, r) {
|
2535
|
-
return
|
2535
|
+
return Y(e, r), (o) => z(e, t, [o]);
|
2536
2536
|
}
|
2537
2537
|
function di(e, t, r) {
|
2538
|
-
return
|
2538
|
+
return Y(e, r), (o) => O(e, t, [o]);
|
2539
2539
|
}
|
2540
2540
|
function ci(e, t, r) {
|
2541
|
-
return
|
2541
|
+
return Y(e, r), (o, s) => z(e, t, [o, s]);
|
2542
2542
|
}
|
2543
2543
|
function hi(e, t, r) {
|
2544
|
-
return
|
2544
|
+
return Y(e, r), (o) => z(e, t, [o]);
|
2545
2545
|
}
|
2546
2546
|
class Nt {
|
2547
2547
|
constructor(t = {}, r = {}, o = {}) {
|
@@ -2553,8 +2553,8 @@ function zi() {
|
|
2553
2553
|
throw new RangeError("Invalid writableType specified");
|
2554
2554
|
const b = at(f, 0), S = Wt(f), y = at(s, 1), C = Wt(s);
|
2555
2555
|
let P;
|
2556
|
-
const k = E((
|
2557
|
-
P =
|
2556
|
+
const k = E((ee) => {
|
2557
|
+
P = ee;
|
2558
2558
|
});
|
2559
2559
|
mi(this, k, y, C, b, S), pi(this, d), d.start !== void 0 ? P(d.start(this._transformStreamController)) : P(void 0);
|
2560
2560
|
}
|
@@ -2608,7 +2608,7 @@ function zi() {
|
|
2608
2608
|
return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_transformStreamController") ? !1 : e instanceof Nt;
|
2609
2609
|
}
|
2610
2610
|
function mo(e, t) {
|
2611
|
-
|
2611
|
+
K(e._readable._readableStreamController, t), xr(e, t);
|
2612
2612
|
}
|
2613
2613
|
function xr(e, t) {
|
2614
2614
|
Vt(e._transformStreamController), it(e._writable._writableStreamController, t), Nr(e);
|
@@ -2735,7 +2735,7 @@ function zi() {
|
|
2735
2735
|
r._finishPromise_resolve = f, r._finishPromise_reject = d;
|
2736
2736
|
});
|
2737
2737
|
const s = r._cancelAlgorithm(t);
|
2738
|
-
return Vt(r), p(s, () => (o._state === "errored" ? He(r, o._storedError) : (
|
2738
|
+
return Vt(r), p(s, () => (o._state === "errored" ? He(r, o._storedError) : (K(o._readableStreamController, t), Hr(r)), null), (f) => (K(o._readableStreamController, f), He(r, f), null)), r._finishPromise;
|
2739
2739
|
}
|
2740
2740
|
function wi(e) {
|
2741
2741
|
const t = e._transformStreamController;
|
@@ -2746,7 +2746,7 @@ function zi() {
|
|
2746
2746
|
t._finishPromise_resolve = s, t._finishPromise_reject = f;
|
2747
2747
|
});
|
2748
2748
|
const o = t._flushAlgorithm();
|
2749
|
-
return Vt(t), p(o, () => (r._state === "errored" ? He(t, r._storedError) : (Fe(r._readableStreamController), Hr(t)), null), (s) => (
|
2749
|
+
return Vt(t), p(o, () => (r._state === "errored" ? He(t, r._storedError) : (Fe(r._readableStreamController), Hr(t)), null), (s) => (K(r._readableStreamController, s), He(t, s), null)), t._finishPromise;
|
2750
2750
|
}
|
2751
2751
|
function Ri(e) {
|
2752
2752
|
return Ht(e, !1), e._backpressureChangePromise;
|
@@ -2769,12 +2769,12 @@ function zi() {
|
|
2769
2769
|
e._finishPromise_resolve !== void 0 && (e._finishPromise_resolve(), e._finishPromise_resolve = void 0, e._finishPromise_reject = void 0);
|
2770
2770
|
}
|
2771
2771
|
function He(e, t) {
|
2772
|
-
e._finishPromise_reject !== void 0 && (
|
2772
|
+
e._finishPromise_reject !== void 0 && (x(e._finishPromise), e._finishPromise_reject(t), e._finishPromise_resolve = void 0, e._finishPromise_reject = void 0);
|
2773
2773
|
}
|
2774
2774
|
function yo(e) {
|
2775
2775
|
return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`);
|
2776
2776
|
}
|
2777
|
-
a.ByteLengthQueuingStrategy = Ut, a.CountQueuingStrategy = xt, a.ReadableByteStreamController = de, a.ReadableStream =
|
2777
|
+
a.ByteLengthQueuingStrategy = Ut, a.CountQueuingStrategy = xt, a.ReadableByteStreamController = de, a.ReadableStream = L, a.ReadableStreamBYOBReader = Re, a.ReadableStreamBYOBRequest = Be, a.ReadableStreamDefaultController = he, a.ReadableStreamDefaultReader = ge, a.TransformStream = Nt, a.TransformStreamDefaultController = ve, a.WritableStream = Ce, a.WritableStreamDefaultController = Ue, a.WritableStreamDefaultWriter = ce;
|
2778
2778
|
});
|
2779
2779
|
}(Jt, Jt.exports)), Jt.exports;
|
2780
2780
|
}
|
@@ -3000,10 +3000,10 @@ var { toStringTag: ct, iterator: Di, hasInstance: $i } = Symbol, Co = Math.rando
|
|
3000
3000
|
`)).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), je = (i, n, a) => {
|
3001
3001
|
if (n.length < a)
|
3002
3002
|
throw new TypeError(`Failed to execute '${i}' on 'FormData': ${a} arguments required, but only ${n.length} present.`);
|
3003
|
-
},
|
3003
|
+
}, Z, Eo;
|
3004
3004
|
const Zr = (Eo = class {
|
3005
3005
|
constructor(...n) {
|
3006
|
-
Ae(this,
|
3006
|
+
Ae(this, Z, []);
|
3007
3007
|
if (n.length)
|
3008
3008
|
throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.");
|
3009
3009
|
}
|
@@ -3017,23 +3017,23 @@ const Zr = (Eo = class {
|
|
3017
3017
|
return n && typeof n == "object" && n[ct] === "FormData" && !Mi.some((a) => typeof n[a] != "function");
|
3018
3018
|
}
|
3019
3019
|
append(...n) {
|
3020
|
-
je("append", arguments, 2), F(this,
|
3020
|
+
je("append", arguments, 2), F(this, Z).push(To(...n));
|
3021
3021
|
}
|
3022
3022
|
delete(n) {
|
3023
|
-
je("delete", arguments, 1), n += "", ae(this,
|
3023
|
+
je("delete", arguments, 1), n += "", ae(this, Z, F(this, Z).filter(([a]) => a !== n));
|
3024
3024
|
}
|
3025
3025
|
get(n) {
|
3026
3026
|
je("get", arguments, 1), n += "";
|
3027
|
-
for (var a = F(this,
|
3027
|
+
for (var a = F(this, Z), u = a.length, l = 0; l < u; l++)
|
3028
3028
|
if (a[l][0] === n)
|
3029
3029
|
return a[l][1];
|
3030
3030
|
return null;
|
3031
3031
|
}
|
3032
3032
|
getAll(n, a) {
|
3033
|
-
return je("getAll", arguments, 1), a = [], n += "", F(this,
|
3033
|
+
return je("getAll", arguments, 1), a = [], n += "", F(this, Z).forEach((u) => u[0] === n && a.push(u[1])), a;
|
3034
3034
|
}
|
3035
3035
|
has(n) {
|
3036
|
-
return je("has", arguments, 1), n += "", F(this,
|
3036
|
+
return je("has", arguments, 1), n += "", F(this, Z).some((a) => a[0] === n);
|
3037
3037
|
}
|
3038
3038
|
forEach(n, a) {
|
3039
3039
|
je("forEach", arguments, 1);
|
@@ -3043,12 +3043,12 @@ const Zr = (Eo = class {
|
|
3043
3043
|
set(...n) {
|
3044
3044
|
je("set", arguments, 2);
|
3045
3045
|
var a = [], u = !0;
|
3046
|
-
n = To(...n), F(this,
|
3046
|
+
n = To(...n), F(this, Z).forEach((l) => {
|
3047
3047
|
l[0] === n[0] ? u && (u = !a.push(n)) : a.push(l);
|
3048
|
-
}), u && a.push(n), ae(this,
|
3048
|
+
}), u && a.push(n), ae(this, Z, a);
|
3049
3049
|
}
|
3050
3050
|
*entries() {
|
3051
|
-
yield* F(this,
|
3051
|
+
yield* F(this, Z);
|
3052
3052
|
}
|
3053
3053
|
*keys() {
|
3054
3054
|
for (var [n] of this)
|
@@ -3058,7 +3058,7 @@ const Zr = (Eo = class {
|
|
3058
3058
|
for (var [, n] of this)
|
3059
3059
|
yield n;
|
3060
3060
|
}
|
3061
|
-
},
|
3061
|
+
}, Z = new WeakMap(), Eo);
|
3062
3062
|
function Ui(i, n = er) {
|
3063
3063
|
var a = `${Co()}${Co()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), u = [], l = `--${a}\r
|
3064
3064
|
Content-Disposition: form-data; name="`;
|
@@ -3105,9 +3105,9 @@ class mt {
|
|
3105
3105
|
size: a = 0
|
3106
3106
|
} = {}) {
|
3107
3107
|
let u = null;
|
3108
|
-
n === null ? n = null : Bo(n) ? n =
|
3108
|
+
n === null ? n = null : Bo(n) ? n = D.from(n.toString()) : rr(n) || D.isBuffer(n) || (Xt.isAnyArrayBuffer(n) ? n = D.from(n) : ArrayBuffer.isView(n) ? n = D.from(n.buffer, n.byteOffset, n.byteLength) : n instanceof se || (n instanceof Zr ? (n = Ui(n), u = n.type.split("=")[1]) : n = D.from(String(n))));
|
3109
3109
|
let l = n;
|
3110
|
-
|
3110
|
+
D.isBuffer(n) ? l = se.Readable.from(n) : rr(n) && (l = se.Readable.from(n.stream())), this[H] = {
|
3111
3111
|
body: n,
|
3112
3112
|
stream: l,
|
3113
3113
|
boundary: u,
|
@@ -3141,7 +3141,7 @@ class mt {
|
|
3141
3141
|
u.append(h, c);
|
3142
3142
|
return u;
|
3143
3143
|
}
|
3144
|
-
const { toFormData: a } = await import("./multipart-parser-
|
3144
|
+
const { toFormData: a } = await import("./multipart-parser-afef41ff.js");
|
3145
3145
|
return a(this.body, n);
|
3146
3146
|
}
|
3147
3147
|
/**
|
@@ -3204,9 +3204,9 @@ async function Jr(i) {
|
|
3204
3204
|
throw i[H].error;
|
3205
3205
|
const { body: n } = i;
|
3206
3206
|
if (n === null)
|
3207
|
-
return
|
3207
|
+
return D.alloc(0);
|
3208
3208
|
if (!(n instanceof se))
|
3209
|
-
return
|
3209
|
+
return D.alloc(0);
|
3210
3210
|
const a = [];
|
3211
3211
|
let u = 0;
|
3212
3212
|
try {
|
@@ -3222,7 +3222,7 @@ async function Jr(i) {
|
|
3222
3222
|
}
|
3223
3223
|
if (n.readableEnded === !0 || n._readableState.ended === !0)
|
3224
3224
|
try {
|
3225
|
-
return a.every((l) => typeof l == "string") ?
|
3225
|
+
return a.every((l) => typeof l == "string") ? D.from(a.join("")) : D.concat(a, u);
|
3226
3226
|
} catch (l) {
|
3227
3227
|
throw new ie(`Could not create Buffer from response body for ${i.url}: ${l.message}`, "system", l);
|
3228
3228
|
}
|
@@ -3238,9 +3238,9 @@ const Xr = (i, n) => {
|
|
3238
3238
|
(i) => i.getBoundary(),
|
3239
3239
|
"form-data doesn't follow the spec and requires special treatment. Use alternative package",
|
3240
3240
|
"https://github.com/node-fetch/node-fetch/issues/1167"
|
3241
|
-
), Wo = (i, n) => i === null ? null : typeof i == "string" ? "text/plain;charset=UTF-8" : Bo(i) ? "application/x-www-form-urlencoded;charset=UTF-8" : rr(i) ? i.type || null :
|
3241
|
+
), Wo = (i, n) => i === null ? null : typeof i == "string" ? "text/plain;charset=UTF-8" : Bo(i) ? "application/x-www-form-urlencoded;charset=UTF-8" : rr(i) ? i.type || null : D.isBuffer(i) || Xt.isAnyArrayBuffer(i) || ArrayBuffer.isView(i) ? null : i instanceof Zr ? `multipart/form-data; boundary=${n[H].boundary}` : i && typeof i.getBoundary == "function" ? `multipart/form-data;boundary=${Vi(i)}` : i instanceof se ? null : "text/plain;charset=UTF-8", Yi = (i) => {
|
3242
3242
|
const { body: n } = i[H];
|
3243
|
-
return n === null ? 0 : rr(n) ? n.size :
|
3243
|
+
return n === null ? 0 : rr(n) ? n.size : D.isBuffer(n) ? n.length : n && typeof n.getLengthSync == "function" && n.hasKnownLength && n.hasKnownLength() ? n.getLengthSync() : null;
|
3244
3244
|
}, Gi = async (i, { body: n }) => {
|
3245
3245
|
n === null ? i.end() : await Qi(n, i);
|
3246
3246
|
}, Zt = typeof ht.validateHeaderName == "function" ? ht.validateHeaderName : (i) => {
|
@@ -3376,7 +3376,7 @@ function Ji(i = []) {
|
|
3376
3376
|
})
|
3377
3377
|
);
|
3378
3378
|
}
|
3379
|
-
const Zi = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), ko = (i) => Zi.has(i),
|
3379
|
+
const Zi = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), ko = (i) => Zi.has(i), te = Symbol("Response internals");
|
3380
3380
|
class V extends mt {
|
3381
3381
|
constructor(n = null, a = {}) {
|
3382
3382
|
super(n, a);
|
@@ -3385,7 +3385,7 @@ class V extends mt {
|
|
3385
3385
|
const h = Wo(n, this);
|
3386
3386
|
h && l.append("Content-Type", h);
|
3387
3387
|
}
|
3388
|
-
this[
|
3388
|
+
this[te] = {
|
3389
3389
|
type: "default",
|
3390
3390
|
url: a.url,
|
3391
3391
|
status: u,
|
@@ -3396,31 +3396,31 @@ class V extends mt {
|
|
3396
3396
|
};
|
3397
3397
|
}
|
3398
3398
|
get type() {
|
3399
|
-
return this[
|
3399
|
+
return this[te].type;
|
3400
3400
|
}
|
3401
3401
|
get url() {
|
3402
|
-
return this[
|
3402
|
+
return this[te].url || "";
|
3403
3403
|
}
|
3404
3404
|
get status() {
|
3405
|
-
return this[
|
3405
|
+
return this[te].status;
|
3406
3406
|
}
|
3407
3407
|
/**
|
3408
3408
|
* Convenience property representing if the request ended normally
|
3409
3409
|
*/
|
3410
3410
|
get ok() {
|
3411
|
-
return this[
|
3411
|
+
return this[te].status >= 200 && this[te].status < 300;
|
3412
3412
|
}
|
3413
3413
|
get redirected() {
|
3414
|
-
return this[
|
3414
|
+
return this[te].counter > 0;
|
3415
3415
|
}
|
3416
3416
|
get statusText() {
|
3417
|
-
return this[
|
3417
|
+
return this[te].statusText;
|
3418
3418
|
}
|
3419
3419
|
get headers() {
|
3420
|
-
return this[
|
3420
|
+
return this[te].headers;
|
3421
3421
|
}
|
3422
3422
|
get highWaterMark() {
|
3423
|
-
return this[
|
3423
|
+
return this[te].highWaterMark;
|
3424
3424
|
}
|
3425
3425
|
/**
|
3426
3426
|
* Clone this response
|
@@ -3457,7 +3457,7 @@ class V extends mt {
|
|
3457
3457
|
}
|
3458
3458
|
static error() {
|
3459
3459
|
const n = new V(null, { status: 0, statusText: "" });
|
3460
|
-
return n[
|
3460
|
+
return n[te].type = "error", n;
|
3461
3461
|
}
|
3462
3462
|
static json(n = void 0, a = {}) {
|
3463
3463
|
const u = JSON.stringify(n);
|
@@ -3762,7 +3762,7 @@ async function Oo(i, n) {
|
|
3762
3762
|
u(new ie(`maximum redirect reached at: ${l.url}`, "max-redirect")), W();
|
3763
3763
|
return;
|
3764
3764
|
}
|
3765
|
-
const
|
3765
|
+
const $ = {
|
3766
3766
|
headers: new ye(l.headers),
|
3767
3767
|
follow: l.follow,
|
3768
3768
|
counter: l.counter + 1,
|
@@ -3777,14 +3777,14 @@ async function Oo(i, n) {
|
|
3777
3777
|
};
|
3778
3778
|
if (!Ni(l.url, z) || !Hi(l.url, z))
|
3779
3779
|
for (const _t of ["authorization", "www-authenticate", "cookie", "cookie2"])
|
3780
|
-
|
3780
|
+
$.headers.delete(_t);
|
3781
3781
|
if (p.statusCode !== 303 && l.body && n.body instanceof se.Readable) {
|
3782
3782
|
u(new ie("Cannot follow redirect with body being a readable stream", "unsupported-redirect")), W();
|
3783
3783
|
return;
|
3784
3784
|
}
|
3785
|
-
(p.statusCode === 303 || (p.statusCode === 301 || p.statusCode === 302) && l.method === "POST") && (
|
3786
|
-
const
|
3787
|
-
|
3785
|
+
(p.statusCode === 303 || (p.statusCode === 301 || p.statusCode === 302) && l.method === "POST") && ($.method = "GET", $.body = void 0, $.headers.delete("content-length"));
|
3786
|
+
const M = ns(j);
|
3787
|
+
M && ($.referrerPolicy = M), a(Oo(new bt(z, $))), W();
|
3788
3788
|
return;
|
3789
3789
|
}
|
3790
3790
|
default:
|
@@ -3806,37 +3806,37 @@ async function Oo(i, n) {
|
|
3806
3806
|
size: l.size,
|
3807
3807
|
counter: l.counter,
|
3808
3808
|
highWaterMark: l.highWaterMark
|
3809
|
-
},
|
3810
|
-
if (!l.compress || l.method === "HEAD" ||
|
3809
|
+
}, x = j.get("Content-Encoding");
|
3810
|
+
if (!l.compress || l.method === "HEAD" || x === null || p.statusCode === 204 || p.statusCode === 304) {
|
3811
3811
|
_ = new V(R, B), a(_);
|
3812
3812
|
return;
|
3813
3813
|
}
|
3814
|
-
const
|
3814
|
+
const re = {
|
3815
3815
|
flush: Je.Z_SYNC_FLUSH,
|
3816
3816
|
finishFlush: Je.Z_SYNC_FLUSH
|
3817
3817
|
};
|
3818
|
-
if (
|
3819
|
-
R = Ze(R, Je.createGunzip(
|
3818
|
+
if (x === "gzip" || x === "x-gzip") {
|
3819
|
+
R = Ze(R, Je.createGunzip(re), (O) => {
|
3820
3820
|
O && u(O);
|
3821
3821
|
}), _ = new V(R, B), a(_);
|
3822
3822
|
return;
|
3823
3823
|
}
|
3824
|
-
if (
|
3824
|
+
if (x === "deflate" || x === "x-deflate") {
|
3825
3825
|
const O = Ze(p, new Kt(), (z) => {
|
3826
3826
|
z && u(z);
|
3827
3827
|
});
|
3828
3828
|
O.once("data", (z) => {
|
3829
|
-
(z[0] & 15) === 8 ? R = Ze(R, Je.createInflate(), (
|
3830
|
-
|
3831
|
-
}) : R = Ze(R, Je.createInflateRaw(), (
|
3832
|
-
|
3829
|
+
(z[0] & 15) === 8 ? R = Ze(R, Je.createInflate(), ($) => {
|
3830
|
+
$ && u($);
|
3831
|
+
}) : R = Ze(R, Je.createInflateRaw(), ($) => {
|
3832
|
+
$ && u($);
|
3833
3833
|
}), _ = new V(R, B), a(_);
|
3834
3834
|
}), O.once("end", () => {
|
3835
3835
|
_ || (_ = new V(R, B), a(_));
|
3836
3836
|
});
|
3837
3837
|
return;
|
3838
3838
|
}
|
3839
|
-
if (
|
3839
|
+
if (x === "br") {
|
3840
3840
|
R = Ze(R, Je.createBrotliDecompress(), (O) => {
|
3841
3841
|
O && u(O);
|
3842
3842
|
}), _ = new V(R, B), a(_);
|
@@ -3847,7 +3847,7 @@ async function Oo(i, n) {
|
|
3847
3847
|
});
|
3848
3848
|
}
|
3849
3849
|
function ls(i, n) {
|
3850
|
-
const a =
|
3850
|
+
const a = D.from(`0\r
|
3851
3851
|
\r
|
3852
3852
|
`);
|
3853
3853
|
let u = !1, l = !1, h;
|
@@ -3861,7 +3861,7 @@ function ls(i, n) {
|
|
3861
3861
|
_.code = "ERR_STREAM_PREMATURE_CLOSE", n(_);
|
3862
3862
|
}
|
3863
3863
|
}, v = (_) => {
|
3864
|
-
l =
|
3864
|
+
l = D.compare(_.slice(-5), a) === 0, !l && h && (l = D.compare(h.slice(-3), a.slice(0, 3)) === 0 && D.compare(_.slice(-2), a.slice(3)) === 0), h = _;
|
3865
3865
|
};
|
3866
3866
|
c.prependListener("close", T), c.on("data", v), i.on("close", () => {
|
3867
3867
|
c.removeListener("close", T), c.removeListener("data", v);
|
@@ -3902,12 +3902,7 @@ const us = "@feedmepos/mf-", Ps = async (i, { command: n, mode: a }, u = {}) =>
|
|
3902
3902
|
await Promise.all(
|
3903
3903
|
Object.keys(_).map(async (R) => {
|
3904
3904
|
let B = "latest";
|
3905
|
-
|
3906
|
-
if (console.log("Use beta", L), L) {
|
3907
|
-
const Y = await Oo(`https://cdn.jsdelivr.net/npm/${R}@beta/dist/app.js`).then((O) => O.ok).catch(() => !1);
|
3908
|
-
console.log(`Package ${R} has beta: ${Y}`), Y && (B = "beta");
|
3909
|
-
}
|
3910
|
-
return _[R] = `https://cdn.jsdelivr.net/npm/${R}@${B}/dist/app.js`;
|
3905
|
+
return u.isDev && await Oo(`https://cdn.jsdelivr.net/npm/${R}@beta/dist/app.js`).then((O) => O.ok).catch(() => !1) && (B = "beta"), _[R] = `https://cdn.jsdelivr.net/npm/${R}@${B}/dist/app.js`;
|
3911
3906
|
})
|
3912
3907
|
);
|
3913
3908
|
const E = {
|