@iamjariwala/react-doc-viewer 0.2.0
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/LICENSE +201 -0
- package/README.md +568 -0
- package/dist/DocViewer.d.ts +21 -0
- package/dist/components/DocumentNav.d.ts +3 -0
- package/dist/components/FileName.d.ts +3 -0
- package/dist/components/HeaderBar.d.ts +3 -0
- package/dist/components/LoadingTimout.d.ts +3 -0
- package/dist/components/ProxyRenderer.d.ts +3 -0
- package/dist/components/common/Button.d.ts +16 -0
- package/dist/components/common/index.d.ts +1 -0
- package/dist/components/icons/index.d.ts +8 -0
- package/dist/cssStyles.d.ts +1 -0
- package/dist/defaultTheme.d.ts +3 -0
- package/dist/empty-DBAFSQIv.cjs +1 -0
- package/dist/empty-GlqisfcO.js +4 -0
- package/dist/features/annotations/components/AnnotationLayer.d.ts +10 -0
- package/dist/features/annotations/components/AnnotationToolbar.d.ts +3 -0
- package/dist/features/annotations/components/ColorPicker.d.ts +3 -0
- package/dist/features/annotations/components/CommentMarker.d.ts +8 -0
- package/dist/features/annotations/components/CommentPopover.d.ts +9 -0
- package/dist/features/annotations/components/TextHighlight.d.ts +8 -0
- package/dist/features/annotations/components/icons/index.d.ts +13 -0
- package/dist/features/annotations/hooks/useAnnotationExport.d.ts +9 -0
- package/dist/features/annotations/hooks/useDrawingCanvas.d.ts +15 -0
- package/dist/features/annotations/hooks/useTextSelection.d.ts +10 -0
- package/dist/features/annotations/index.d.ts +13 -0
- package/dist/features/annotations/state/actions.d.ts +52 -0
- package/dist/features/annotations/state/index.d.ts +17 -0
- package/dist/features/annotations/state/reducer.d.ts +17 -0
- package/dist/features/annotations/types/index.d.ts +44 -0
- package/dist/features/drag-drop/components/DropZoneOverlay.d.ts +9 -0
- package/dist/features/drag-drop/hooks/useDragDrop.d.ts +11 -0
- package/dist/features/drag-drop/hooks/useFileProcessor.d.ts +13 -0
- package/dist/features/drag-drop/index.d.ts +4 -0
- package/dist/features/drag-drop/types/index.d.ts +19 -0
- package/dist/features/thumbnail-sidebar/components/ThumbnailItem.d.ts +11 -0
- package/dist/features/thumbnail-sidebar/components/ThumbnailSidebar.d.ts +8 -0
- package/dist/features/thumbnail-sidebar/components/ThumbnailToggle.d.ts +7 -0
- package/dist/features/thumbnail-sidebar/hooks/useThumbnailGenerator.d.ts +13 -0
- package/dist/features/thumbnail-sidebar/index.d.ts +6 -0
- package/dist/features/thumbnail-sidebar/state/actions.d.ts +31 -0
- package/dist/features/thumbnail-sidebar/state/index.d.ts +15 -0
- package/dist/features/thumbnail-sidebar/state/reducer.d.ts +11 -0
- package/dist/hooks/useDocumentLoader.d.ts +13 -0
- package/dist/hooks/useRendererSelector.d.ts +5 -0
- package/dist/hooks/useTranslation.d.ts +3 -0
- package/dist/hooks/useWindowSize.d.ts +4 -0
- package/dist/i18n.d.ts +158 -0
- package/dist/index-BW6EMUiE.cjs +797 -0
- package/dist/index-CYjVmFQ0.cjs +10 -0
- package/dist/index-DHMTXjv6.cjs +1 -0
- package/dist/index-Dg8HfAtq.js +21246 -0
- package/dist/index-dGGNa2HA.js +3350 -0
- package/dist/index-nyGAOsVK.js +42 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/locales/ar.json.d.ts +13 -0
- package/dist/locales/de.json.d.ts +13 -0
- package/dist/locales/en.json.d.ts +26 -0
- package/dist/locales/es.json.d.ts +13 -0
- package/dist/locales/fr.json.d.ts +13 -0
- package/dist/locales/it.json.d.ts +13 -0
- package/dist/locales/ja.json.d.ts +13 -0
- package/dist/locales/pl.json.d.ts +13 -0
- package/dist/locales/pt.json.d.ts +13 -0
- package/dist/locales/ru.json.d.ts +13 -0
- package/dist/locales/se.json.d.ts +13 -0
- package/dist/locales/sr.json.d.ts +13 -0
- package/dist/locales/sr_cyr.json.d.ts +13 -0
- package/dist/locales/tr.json.d.ts +13 -0
- package/dist/models.d.ts +122 -0
- package/dist/react-doc-viewer.cjs +1 -0
- package/dist/react-doc-viewer.js +23 -0
- package/dist/renderers/bmp/index.d.ts +4 -0
- package/dist/renderers/csv/index.d.ts +4 -0
- package/dist/renderers/gif/index.d.ts +4 -0
- package/dist/renderers/html/index.d.ts +4 -0
- package/dist/renderers/image/index.d.ts +4 -0
- package/dist/renderers/index.d.ts +15 -0
- package/dist/renderers/jpg/index.d.ts +4 -0
- package/dist/renderers/msdoc/index.d.ts +4 -0
- package/dist/renderers/pdf/components/PDFControls.d.ts +4 -0
- package/dist/renderers/pdf/components/PDFPagination.d.ts +4 -0
- package/dist/renderers/pdf/components/PDFThumbnailGenerator.d.ts +3 -0
- package/dist/renderers/pdf/components/icons/index.d.ts +9 -0
- package/dist/renderers/pdf/components/pages/PDFAllPages.d.ts +7 -0
- package/dist/renderers/pdf/components/pages/PDFPages.d.ts +4 -0
- package/dist/renderers/pdf/components/pages/PDFSinglePage.d.ts +7 -0
- package/dist/renderers/pdf/index.d.ts +4 -0
- package/dist/renderers/pdf/state/actions.d.ts +32 -0
- package/dist/renderers/pdf/state/index.d.ts +13 -0
- package/dist/renderers/pdf/state/reducer.d.ts +15 -0
- package/dist/renderers/png/index.d.ts +4 -0
- package/dist/renderers/tiff/index.d.ts +4 -0
- package/dist/renderers/tiff/tiffToCanvas.d.ts +1 -0
- package/dist/renderers/txt/index.d.ts +4 -0
- package/dist/renderers/video/index.d.ts +4 -0
- package/dist/renderers/webp/index.d.ts +4 -0
- package/dist/store/DocViewerProvider.d.ts +22 -0
- package/dist/store/actions.d.ts +63 -0
- package/dist/store/mainStateReducer.d.ts +23 -0
- package/dist/url-BH2U_nez.cjs +3 -0
- package/dist/url-Dk8Xia2J.js +560 -0
- package/dist/utils/fileLoaders.d.ts +13 -0
- package/dist/utils/getFileName.d.ts +3 -0
- package/package.json +122 -0
|
@@ -0,0 +1,3350 @@
|
|
|
1
|
+
import { c as V, a as br, d as on, p as U, B as ce, g as an } from "./index-Dg8HfAtq.js";
|
|
2
|
+
import { u as fn } from "./url-Dk8Xia2J.js";
|
|
3
|
+
function un(e, t) {
|
|
4
|
+
for (var r = 0; r < t.length; r++) {
|
|
5
|
+
const n = t[r];
|
|
6
|
+
if (typeof n != "string" && !Array.isArray(n)) {
|
|
7
|
+
for (const i in n)
|
|
8
|
+
if (i !== "default" && !(i in e)) {
|
|
9
|
+
const c = Object.getOwnPropertyDescriptor(n, i);
|
|
10
|
+
c && Object.defineProperty(e, i, c.get ? c : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => n[i]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var Tt = {}, mr = { exports: {} }, Ot = {};
|
|
20
|
+
(function(e) {
|
|
21
|
+
e.fetch = i(V.fetch) && i(V.ReadableStream), e.writableStream = i(V.WritableStream), e.abortController = i(V.AbortController);
|
|
22
|
+
var t;
|
|
23
|
+
function r() {
|
|
24
|
+
if (t !== void 0)
|
|
25
|
+
return t;
|
|
26
|
+
if (V.XMLHttpRequest) {
|
|
27
|
+
t = new V.XMLHttpRequest();
|
|
28
|
+
try {
|
|
29
|
+
t.open("GET", V.XDomainRequest ? "/" : "https://example.com");
|
|
30
|
+
} catch {
|
|
31
|
+
t = null;
|
|
32
|
+
}
|
|
33
|
+
} else
|
|
34
|
+
t = null;
|
|
35
|
+
return t;
|
|
36
|
+
}
|
|
37
|
+
function n(c) {
|
|
38
|
+
var l = r();
|
|
39
|
+
if (!l)
|
|
40
|
+
return !1;
|
|
41
|
+
try {
|
|
42
|
+
return l.responseType = c, l.responseType === c;
|
|
43
|
+
} catch {
|
|
44
|
+
}
|
|
45
|
+
return !1;
|
|
46
|
+
}
|
|
47
|
+
e.arraybuffer = e.fetch || n("arraybuffer"), e.msstream = !e.fetch && n("ms-stream"), e.mozchunkedarraybuffer = !e.fetch && n("moz-chunked-arraybuffer"), e.overrideMimeType = e.fetch || (r() ? i(r().overrideMimeType) : !1);
|
|
48
|
+
function i(c) {
|
|
49
|
+
return typeof c == "function";
|
|
50
|
+
}
|
|
51
|
+
t = null;
|
|
52
|
+
})(Ot);
|
|
53
|
+
var vt = { exports: {} };
|
|
54
|
+
typeof Object.create == "function" ? vt.exports = function(t, r) {
|
|
55
|
+
r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
|
|
56
|
+
constructor: {
|
|
57
|
+
value: t,
|
|
58
|
+
enumerable: !1,
|
|
59
|
+
writable: !0,
|
|
60
|
+
configurable: !0
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
63
|
+
} : vt.exports = function(t, r) {
|
|
64
|
+
if (r) {
|
|
65
|
+
t.super_ = r;
|
|
66
|
+
var n = function() {
|
|
67
|
+
};
|
|
68
|
+
n.prototype = r.prototype, t.prototype = new n(), t.prototype.constructor = t;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
var le = vt.exports, xe = {}, bt = { exports: {} }, Pt = { exports: {} }, Se = typeof Reflect == "object" ? Reflect : null, Wt = Se && typeof Se.apply == "function" ? Se.apply : function(t, r, n) {
|
|
72
|
+
return Function.prototype.apply.call(t, r, n);
|
|
73
|
+
}, Ne;
|
|
74
|
+
Se && typeof Se.ownKeys == "function" ? Ne = Se.ownKeys : Object.getOwnPropertySymbols ? Ne = function(t) {
|
|
75
|
+
return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));
|
|
76
|
+
} : Ne = function(t) {
|
|
77
|
+
return Object.getOwnPropertyNames(t);
|
|
78
|
+
};
|
|
79
|
+
function sn(e) {
|
|
80
|
+
console && console.warn && console.warn(e);
|
|
81
|
+
}
|
|
82
|
+
var _r = Number.isNaN || function(t) {
|
|
83
|
+
return t !== t;
|
|
84
|
+
};
|
|
85
|
+
function H() {
|
|
86
|
+
H.init.call(this);
|
|
87
|
+
}
|
|
88
|
+
Pt.exports = H;
|
|
89
|
+
Pt.exports.once = pn;
|
|
90
|
+
H.EventEmitter = H;
|
|
91
|
+
H.prototype._events = void 0;
|
|
92
|
+
H.prototype._eventsCount = 0;
|
|
93
|
+
H.prototype._maxListeners = void 0;
|
|
94
|
+
var qt = 10;
|
|
95
|
+
function He(e) {
|
|
96
|
+
if (typeof e != "function")
|
|
97
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e);
|
|
98
|
+
}
|
|
99
|
+
Object.defineProperty(H, "defaultMaxListeners", {
|
|
100
|
+
enumerable: !0,
|
|
101
|
+
get: function() {
|
|
102
|
+
return qt;
|
|
103
|
+
},
|
|
104
|
+
set: function(e) {
|
|
105
|
+
if (typeof e != "number" || e < 0 || _r(e))
|
|
106
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
107
|
+
qt = e;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
H.init = function() {
|
|
111
|
+
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
112
|
+
};
|
|
113
|
+
H.prototype.setMaxListeners = function(t) {
|
|
114
|
+
if (typeof t != "number" || t < 0 || _r(t))
|
|
115
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + ".");
|
|
116
|
+
return this._maxListeners = t, this;
|
|
117
|
+
};
|
|
118
|
+
function wr(e) {
|
|
119
|
+
return e._maxListeners === void 0 ? H.defaultMaxListeners : e._maxListeners;
|
|
120
|
+
}
|
|
121
|
+
H.prototype.getMaxListeners = function() {
|
|
122
|
+
return wr(this);
|
|
123
|
+
};
|
|
124
|
+
H.prototype.emit = function(t) {
|
|
125
|
+
for (var r = [], n = 1; n < arguments.length; n++)
|
|
126
|
+
r.push(arguments[n]);
|
|
127
|
+
var i = t === "error", c = this._events;
|
|
128
|
+
if (c !== void 0)
|
|
129
|
+
i = i && c.error === void 0;
|
|
130
|
+
else if (!i)
|
|
131
|
+
return !1;
|
|
132
|
+
if (i) {
|
|
133
|
+
var l;
|
|
134
|
+
if (r.length > 0 && (l = r[0]), l instanceof Error)
|
|
135
|
+
throw l;
|
|
136
|
+
var h = new Error("Unhandled error." + (l ? " (" + l.message + ")" : ""));
|
|
137
|
+
throw h.context = l, h;
|
|
138
|
+
}
|
|
139
|
+
var p = c[t];
|
|
140
|
+
if (p === void 0)
|
|
141
|
+
return !1;
|
|
142
|
+
if (typeof p == "function")
|
|
143
|
+
Wt(p, this, r);
|
|
144
|
+
else
|
|
145
|
+
for (var A = p.length, L = Tr(p, A), n = 0; n < A; ++n)
|
|
146
|
+
Wt(L[n], this, r);
|
|
147
|
+
return !0;
|
|
148
|
+
};
|
|
149
|
+
function Sr(e, t, r, n) {
|
|
150
|
+
var i, c, l;
|
|
151
|
+
if (He(r), c = e._events, c === void 0 ? (c = e._events = /* @__PURE__ */ Object.create(null), e._eventsCount = 0) : (c.newListener !== void 0 && (e.emit(
|
|
152
|
+
"newListener",
|
|
153
|
+
t,
|
|
154
|
+
r.listener ? r.listener : r
|
|
155
|
+
), c = e._events), l = c[t]), l === void 0)
|
|
156
|
+
l = c[t] = r, ++e._eventsCount;
|
|
157
|
+
else if (typeof l == "function" ? l = c[t] = n ? [r, l] : [l, r] : n ? l.unshift(r) : l.push(r), i = wr(e), i > 0 && l.length > i && !l.warned) {
|
|
158
|
+
l.warned = !0;
|
|
159
|
+
var h = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
160
|
+
h.name = "MaxListenersExceededWarning", h.emitter = e, h.type = t, h.count = l.length, sn(h);
|
|
161
|
+
}
|
|
162
|
+
return e;
|
|
163
|
+
}
|
|
164
|
+
H.prototype.addListener = function(t, r) {
|
|
165
|
+
return Sr(this, t, r, !1);
|
|
166
|
+
};
|
|
167
|
+
H.prototype.on = H.prototype.addListener;
|
|
168
|
+
H.prototype.prependListener = function(t, r) {
|
|
169
|
+
return Sr(this, t, r, !0);
|
|
170
|
+
};
|
|
171
|
+
function ln() {
|
|
172
|
+
if (!this.fired)
|
|
173
|
+
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);
|
|
174
|
+
}
|
|
175
|
+
function Er(e, t, r) {
|
|
176
|
+
var n = { fired: !1, wrapFn: void 0, target: e, type: t, listener: r }, i = ln.bind(n);
|
|
177
|
+
return i.listener = r, n.wrapFn = i, i;
|
|
178
|
+
}
|
|
179
|
+
H.prototype.once = function(t, r) {
|
|
180
|
+
return He(r), this.on(t, Er(this, t, r)), this;
|
|
181
|
+
};
|
|
182
|
+
H.prototype.prependOnceListener = function(t, r) {
|
|
183
|
+
return He(r), this.prependListener(t, Er(this, t, r)), this;
|
|
184
|
+
};
|
|
185
|
+
H.prototype.removeListener = function(t, r) {
|
|
186
|
+
var n, i, c, l, h;
|
|
187
|
+
if (He(r), i = this._events, i === void 0)
|
|
188
|
+
return this;
|
|
189
|
+
if (n = i[t], n === void 0)
|
|
190
|
+
return this;
|
|
191
|
+
if (n === r || n.listener === r)
|
|
192
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete i[t], i.removeListener && this.emit("removeListener", t, n.listener || r));
|
|
193
|
+
else if (typeof n != "function") {
|
|
194
|
+
for (c = -1, l = n.length - 1; l >= 0; l--)
|
|
195
|
+
if (n[l] === r || n[l].listener === r) {
|
|
196
|
+
h = n[l].listener, c = l;
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
if (c < 0)
|
|
200
|
+
return this;
|
|
201
|
+
c === 0 ? n.shift() : cn(n, c), n.length === 1 && (i[t] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", t, h || r);
|
|
202
|
+
}
|
|
203
|
+
return this;
|
|
204
|
+
};
|
|
205
|
+
H.prototype.off = H.prototype.removeListener;
|
|
206
|
+
H.prototype.removeAllListeners = function(t) {
|
|
207
|
+
var r, n, i;
|
|
208
|
+
if (n = this._events, n === void 0)
|
|
209
|
+
return this;
|
|
210
|
+
if (n.removeListener === void 0)
|
|
211
|
+
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : n[t] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete n[t]), this;
|
|
212
|
+
if (arguments.length === 0) {
|
|
213
|
+
var c = Object.keys(n), l;
|
|
214
|
+
for (i = 0; i < c.length; ++i)
|
|
215
|
+
l = c[i], l !== "removeListener" && this.removeAllListeners(l);
|
|
216
|
+
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
217
|
+
}
|
|
218
|
+
if (r = n[t], typeof r == "function")
|
|
219
|
+
this.removeListener(t, r);
|
|
220
|
+
else if (r !== void 0)
|
|
221
|
+
for (i = r.length - 1; i >= 0; i--)
|
|
222
|
+
this.removeListener(t, r[i]);
|
|
223
|
+
return this;
|
|
224
|
+
};
|
|
225
|
+
function Ar(e, t, r) {
|
|
226
|
+
var n = e._events;
|
|
227
|
+
if (n === void 0)
|
|
228
|
+
return [];
|
|
229
|
+
var i = n[t];
|
|
230
|
+
return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? dn(i) : Tr(i, i.length);
|
|
231
|
+
}
|
|
232
|
+
H.prototype.listeners = function(t) {
|
|
233
|
+
return Ar(this, t, !0);
|
|
234
|
+
};
|
|
235
|
+
H.prototype.rawListeners = function(t) {
|
|
236
|
+
return Ar(this, t, !1);
|
|
237
|
+
};
|
|
238
|
+
H.listenerCount = function(e, t) {
|
|
239
|
+
return typeof e.listenerCount == "function" ? e.listenerCount(t) : Rr.call(e, t);
|
|
240
|
+
};
|
|
241
|
+
H.prototype.listenerCount = Rr;
|
|
242
|
+
function Rr(e) {
|
|
243
|
+
var t = this._events;
|
|
244
|
+
if (t !== void 0) {
|
|
245
|
+
var r = t[e];
|
|
246
|
+
if (typeof r == "function")
|
|
247
|
+
return 1;
|
|
248
|
+
if (r !== void 0)
|
|
249
|
+
return r.length;
|
|
250
|
+
}
|
|
251
|
+
return 0;
|
|
252
|
+
}
|
|
253
|
+
H.prototype.eventNames = function() {
|
|
254
|
+
return this._eventsCount > 0 ? Ne(this._events) : [];
|
|
255
|
+
};
|
|
256
|
+
function Tr(e, t) {
|
|
257
|
+
for (var r = new Array(t), n = 0; n < t; ++n)
|
|
258
|
+
r[n] = e[n];
|
|
259
|
+
return r;
|
|
260
|
+
}
|
|
261
|
+
function cn(e, t) {
|
|
262
|
+
for (; t + 1 < e.length; t++)
|
|
263
|
+
e[t] = e[t + 1];
|
|
264
|
+
e.pop();
|
|
265
|
+
}
|
|
266
|
+
function dn(e) {
|
|
267
|
+
for (var t = new Array(e.length), r = 0; r < t.length; ++r)
|
|
268
|
+
t[r] = e[r].listener || e[r];
|
|
269
|
+
return t;
|
|
270
|
+
}
|
|
271
|
+
function pn(e, t) {
|
|
272
|
+
return new Promise(function(r, n) {
|
|
273
|
+
function i(l) {
|
|
274
|
+
e.removeListener(t, c), n(l);
|
|
275
|
+
}
|
|
276
|
+
function c() {
|
|
277
|
+
typeof e.removeListener == "function" && e.removeListener("error", i), r([].slice.call(arguments));
|
|
278
|
+
}
|
|
279
|
+
Or(e, t, c, { once: !0 }), t !== "error" && hn(e, i, { once: !0 });
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
function hn(e, t, r) {
|
|
283
|
+
typeof e.on == "function" && Or(e, "error", t, r);
|
|
284
|
+
}
|
|
285
|
+
function Or(e, t, r, n) {
|
|
286
|
+
if (typeof e.on == "function")
|
|
287
|
+
n.once ? e.once(t, r) : e.on(t, r);
|
|
288
|
+
else if (typeof e.addEventListener == "function")
|
|
289
|
+
e.addEventListener(t, function i(c) {
|
|
290
|
+
n.once && e.removeEventListener(t, i), r(c);
|
|
291
|
+
});
|
|
292
|
+
else
|
|
293
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e);
|
|
294
|
+
}
|
|
295
|
+
var Pr = Pt.exports, Mr = Pr.EventEmitter;
|
|
296
|
+
const Ge = /* @__PURE__ */ br(on);
|
|
297
|
+
var Mt = {}, jr = {}, Lr = function() {
|
|
298
|
+
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
299
|
+
return !1;
|
|
300
|
+
if (typeof Symbol.iterator == "symbol")
|
|
301
|
+
return !0;
|
|
302
|
+
var t = {}, r = Symbol("test"), n = Object(r);
|
|
303
|
+
if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
|
|
304
|
+
return !1;
|
|
305
|
+
var i = 42;
|
|
306
|
+
t[r] = i;
|
|
307
|
+
for (r in t)
|
|
308
|
+
return !1;
|
|
309
|
+
if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0)
|
|
310
|
+
return !1;
|
|
311
|
+
var c = Object.getOwnPropertySymbols(t);
|
|
312
|
+
if (c.length !== 1 || c[0] !== r || !Object.prototype.propertyIsEnumerable.call(t, r))
|
|
313
|
+
return !1;
|
|
314
|
+
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
315
|
+
var l = Object.getOwnPropertyDescriptor(t, r);
|
|
316
|
+
if (l.value !== i || l.enumerable !== !0)
|
|
317
|
+
return !1;
|
|
318
|
+
}
|
|
319
|
+
return !0;
|
|
320
|
+
}, yn = Lr, jt = function() {
|
|
321
|
+
return yn() && !!Symbol.toStringTag;
|
|
322
|
+
}, gn = Error, vn = EvalError, bn = RangeError, mn = ReferenceError, Cr = SyntaxError, Ve = TypeError, _n = URIError, xt = typeof Symbol < "u" && Symbol, wn = Lr, Sn = function() {
|
|
323
|
+
return typeof xt != "function" || typeof Symbol != "function" || typeof xt("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : wn();
|
|
324
|
+
}, Qe = {
|
|
325
|
+
__proto__: null,
|
|
326
|
+
foo: {}
|
|
327
|
+
}, En = Object, An = function() {
|
|
328
|
+
return { __proto__: Qe }.foo === Qe.foo && !(Qe instanceof En);
|
|
329
|
+
}, Rn = "Function.prototype.bind called on incompatible ", Tn = Object.prototype.toString, On = Math.max, Pn = "[object Function]", Ht = function(t, r) {
|
|
330
|
+
for (var n = [], i = 0; i < t.length; i += 1)
|
|
331
|
+
n[i] = t[i];
|
|
332
|
+
for (var c = 0; c < r.length; c += 1)
|
|
333
|
+
n[c + t.length] = r[c];
|
|
334
|
+
return n;
|
|
335
|
+
}, Mn = function(t, r) {
|
|
336
|
+
for (var n = [], i = r, c = 0; i < t.length; i += 1, c += 1)
|
|
337
|
+
n[c] = t[i];
|
|
338
|
+
return n;
|
|
339
|
+
}, jn = function(e, t) {
|
|
340
|
+
for (var r = "", n = 0; n < e.length; n += 1)
|
|
341
|
+
r += e[n], n + 1 < e.length && (r += t);
|
|
342
|
+
return r;
|
|
343
|
+
}, Ln = function(t) {
|
|
344
|
+
var r = this;
|
|
345
|
+
if (typeof r != "function" || Tn.apply(r) !== Pn)
|
|
346
|
+
throw new TypeError(Rn + r);
|
|
347
|
+
for (var n = Mn(arguments, 1), i, c = function() {
|
|
348
|
+
if (this instanceof i) {
|
|
349
|
+
var L = r.apply(
|
|
350
|
+
this,
|
|
351
|
+
Ht(n, arguments)
|
|
352
|
+
);
|
|
353
|
+
return Object(L) === L ? L : this;
|
|
354
|
+
}
|
|
355
|
+
return r.apply(
|
|
356
|
+
t,
|
|
357
|
+
Ht(n, arguments)
|
|
358
|
+
);
|
|
359
|
+
}, l = On(0, r.length - n.length), h = [], p = 0; p < l; p++)
|
|
360
|
+
h[p] = "$" + p;
|
|
361
|
+
if (i = Function("binder", "return function (" + jn(h, ",") + "){ return binder.apply(this,arguments); }")(c), r.prototype) {
|
|
362
|
+
var A = function() {
|
|
363
|
+
};
|
|
364
|
+
A.prototype = r.prototype, i.prototype = new A(), A.prototype = null;
|
|
365
|
+
}
|
|
366
|
+
return i;
|
|
367
|
+
}, Cn = Ln, Lt = Function.prototype.bind || Cn, Nn = Function.prototype.call, In = Object.prototype.hasOwnProperty, Dn = Lt, Bn = Dn.call(Nn, In), $, Fn = gn, Un = vn, kn = bn, $n = mn, Ae = Cr, Ee = Ve, Wn = _n, Nr = Function, et = function(e) {
|
|
368
|
+
try {
|
|
369
|
+
return Nr('"use strict"; return (' + e + ").constructor;")();
|
|
370
|
+
} catch {
|
|
371
|
+
}
|
|
372
|
+
}, pe = Object.getOwnPropertyDescriptor;
|
|
373
|
+
if (pe)
|
|
374
|
+
try {
|
|
375
|
+
pe({}, "");
|
|
376
|
+
} catch {
|
|
377
|
+
pe = null;
|
|
378
|
+
}
|
|
379
|
+
var tt = function() {
|
|
380
|
+
throw new Ee();
|
|
381
|
+
}, qn = pe ? function() {
|
|
382
|
+
try {
|
|
383
|
+
return arguments.callee, tt;
|
|
384
|
+
} catch {
|
|
385
|
+
try {
|
|
386
|
+
return pe(arguments, "callee").get;
|
|
387
|
+
} catch {
|
|
388
|
+
return tt;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}() : tt, be = Sn(), xn = An(), z = Object.getPrototypeOf || (xn ? function(e) {
|
|
392
|
+
return e.__proto__;
|
|
393
|
+
} : null), _e = {}, Hn = typeof Uint8Array > "u" || !z ? $ : z(Uint8Array), he = {
|
|
394
|
+
__proto__: null,
|
|
395
|
+
"%AggregateError%": typeof AggregateError > "u" ? $ : AggregateError,
|
|
396
|
+
"%Array%": Array,
|
|
397
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? $ : ArrayBuffer,
|
|
398
|
+
"%ArrayIteratorPrototype%": be && z ? z([][Symbol.iterator]()) : $,
|
|
399
|
+
"%AsyncFromSyncIteratorPrototype%": $,
|
|
400
|
+
"%AsyncFunction%": _e,
|
|
401
|
+
"%AsyncGenerator%": _e,
|
|
402
|
+
"%AsyncGeneratorFunction%": _e,
|
|
403
|
+
"%AsyncIteratorPrototype%": _e,
|
|
404
|
+
"%Atomics%": typeof Atomics > "u" ? $ : Atomics,
|
|
405
|
+
"%BigInt%": typeof BigInt > "u" ? $ : BigInt,
|
|
406
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? $ : BigInt64Array,
|
|
407
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? $ : BigUint64Array,
|
|
408
|
+
"%Boolean%": Boolean,
|
|
409
|
+
"%DataView%": typeof DataView > "u" ? $ : DataView,
|
|
410
|
+
"%Date%": Date,
|
|
411
|
+
"%decodeURI%": decodeURI,
|
|
412
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
413
|
+
"%encodeURI%": encodeURI,
|
|
414
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
415
|
+
"%Error%": Fn,
|
|
416
|
+
"%eval%": eval,
|
|
417
|
+
// eslint-disable-line no-eval
|
|
418
|
+
"%EvalError%": Un,
|
|
419
|
+
"%Float32Array%": typeof Float32Array > "u" ? $ : Float32Array,
|
|
420
|
+
"%Float64Array%": typeof Float64Array > "u" ? $ : Float64Array,
|
|
421
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? $ : FinalizationRegistry,
|
|
422
|
+
"%Function%": Nr,
|
|
423
|
+
"%GeneratorFunction%": _e,
|
|
424
|
+
"%Int8Array%": typeof Int8Array > "u" ? $ : Int8Array,
|
|
425
|
+
"%Int16Array%": typeof Int16Array > "u" ? $ : Int16Array,
|
|
426
|
+
"%Int32Array%": typeof Int32Array > "u" ? $ : Int32Array,
|
|
427
|
+
"%isFinite%": isFinite,
|
|
428
|
+
"%isNaN%": isNaN,
|
|
429
|
+
"%IteratorPrototype%": be && z ? z(z([][Symbol.iterator]())) : $,
|
|
430
|
+
"%JSON%": typeof JSON == "object" ? JSON : $,
|
|
431
|
+
"%Map%": typeof Map > "u" ? $ : Map,
|
|
432
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !be || !z ? $ : z((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
433
|
+
"%Math%": Math,
|
|
434
|
+
"%Number%": Number,
|
|
435
|
+
"%Object%": Object,
|
|
436
|
+
"%parseFloat%": parseFloat,
|
|
437
|
+
"%parseInt%": parseInt,
|
|
438
|
+
"%Promise%": typeof Promise > "u" ? $ : Promise,
|
|
439
|
+
"%Proxy%": typeof Proxy > "u" ? $ : Proxy,
|
|
440
|
+
"%RangeError%": kn,
|
|
441
|
+
"%ReferenceError%": $n,
|
|
442
|
+
"%Reflect%": typeof Reflect > "u" ? $ : Reflect,
|
|
443
|
+
"%RegExp%": RegExp,
|
|
444
|
+
"%Set%": typeof Set > "u" ? $ : Set,
|
|
445
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !be || !z ? $ : z((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
446
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? $ : SharedArrayBuffer,
|
|
447
|
+
"%String%": String,
|
|
448
|
+
"%StringIteratorPrototype%": be && z ? z(""[Symbol.iterator]()) : $,
|
|
449
|
+
"%Symbol%": be ? Symbol : $,
|
|
450
|
+
"%SyntaxError%": Ae,
|
|
451
|
+
"%ThrowTypeError%": qn,
|
|
452
|
+
"%TypedArray%": Hn,
|
|
453
|
+
"%TypeError%": Ee,
|
|
454
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? $ : Uint8Array,
|
|
455
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? $ : Uint8ClampedArray,
|
|
456
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? $ : Uint16Array,
|
|
457
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? $ : Uint32Array,
|
|
458
|
+
"%URIError%": Wn,
|
|
459
|
+
"%WeakMap%": typeof WeakMap > "u" ? $ : WeakMap,
|
|
460
|
+
"%WeakRef%": typeof WeakRef > "u" ? $ : WeakRef,
|
|
461
|
+
"%WeakSet%": typeof WeakSet > "u" ? $ : WeakSet
|
|
462
|
+
};
|
|
463
|
+
if (z)
|
|
464
|
+
try {
|
|
465
|
+
null.error;
|
|
466
|
+
} catch (e) {
|
|
467
|
+
var Gn = z(z(e));
|
|
468
|
+
he["%Error.prototype%"] = Gn;
|
|
469
|
+
}
|
|
470
|
+
var Vn = function e(t) {
|
|
471
|
+
var r;
|
|
472
|
+
if (t === "%AsyncFunction%")
|
|
473
|
+
r = et("async function () {}");
|
|
474
|
+
else if (t === "%GeneratorFunction%")
|
|
475
|
+
r = et("function* () {}");
|
|
476
|
+
else if (t === "%AsyncGeneratorFunction%")
|
|
477
|
+
r = et("async function* () {}");
|
|
478
|
+
else if (t === "%AsyncGenerator%") {
|
|
479
|
+
var n = e("%AsyncGeneratorFunction%");
|
|
480
|
+
n && (r = n.prototype);
|
|
481
|
+
} else if (t === "%AsyncIteratorPrototype%") {
|
|
482
|
+
var i = e("%AsyncGenerator%");
|
|
483
|
+
i && z && (r = z(i.prototype));
|
|
484
|
+
}
|
|
485
|
+
return he[t] = r, r;
|
|
486
|
+
}, Gt = {
|
|
487
|
+
__proto__: null,
|
|
488
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
489
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
490
|
+
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
491
|
+
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
492
|
+
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
493
|
+
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
494
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
495
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
496
|
+
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
497
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
498
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
499
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
500
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
501
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
502
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
503
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
504
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
505
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
506
|
+
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
507
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
508
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
509
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
510
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
511
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
512
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
513
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
514
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
515
|
+
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
516
|
+
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
517
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
518
|
+
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
519
|
+
"%Promise_all%": ["Promise", "all"],
|
|
520
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
521
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
522
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
523
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
524
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
525
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
526
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
527
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
528
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
529
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
530
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
531
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
532
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
533
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
534
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
535
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
536
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
537
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
538
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
539
|
+
}, Pe = Lt, ke = Bn, zn = Pe.call(Function.call, Array.prototype.concat), Kn = Pe.call(Function.apply, Array.prototype.splice), Vt = Pe.call(Function.call, String.prototype.replace), $e = Pe.call(Function.call, String.prototype.slice), Yn = Pe.call(Function.call, RegExp.prototype.exec), Jn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Xn = /\\(\\)?/g, Zn = function(t) {
|
|
540
|
+
var r = $e(t, 0, 1), n = $e(t, -1);
|
|
541
|
+
if (r === "%" && n !== "%")
|
|
542
|
+
throw new Ae("invalid intrinsic syntax, expected closing `%`");
|
|
543
|
+
if (n === "%" && r !== "%")
|
|
544
|
+
throw new Ae("invalid intrinsic syntax, expected opening `%`");
|
|
545
|
+
var i = [];
|
|
546
|
+
return Vt(t, Jn, function(c, l, h, p) {
|
|
547
|
+
i[i.length] = h ? Vt(p, Xn, "$1") : l || c;
|
|
548
|
+
}), i;
|
|
549
|
+
}, Qn = function(t, r) {
|
|
550
|
+
var n = t, i;
|
|
551
|
+
if (ke(Gt, n) && (i = Gt[n], n = "%" + i[0] + "%"), ke(he, n)) {
|
|
552
|
+
var c = he[n];
|
|
553
|
+
if (c === _e && (c = Vn(n)), typeof c > "u" && !r)
|
|
554
|
+
throw new Ee("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
555
|
+
return {
|
|
556
|
+
alias: i,
|
|
557
|
+
name: n,
|
|
558
|
+
value: c
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
throw new Ae("intrinsic " + t + " does not exist!");
|
|
562
|
+
}, Me = function(t, r) {
|
|
563
|
+
if (typeof t != "string" || t.length === 0)
|
|
564
|
+
throw new Ee("intrinsic name must be a non-empty string");
|
|
565
|
+
if (arguments.length > 1 && typeof r != "boolean")
|
|
566
|
+
throw new Ee('"allowMissing" argument must be a boolean');
|
|
567
|
+
if (Yn(/^%?[^%]*%?$/, t) === null)
|
|
568
|
+
throw new Ae("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
569
|
+
var n = Zn(t), i = n.length > 0 ? n[0] : "", c = Qn("%" + i + "%", r), l = c.name, h = c.value, p = !1, A = c.alias;
|
|
570
|
+
A && (i = A[0], Kn(n, zn([0, 1], A)));
|
|
571
|
+
for (var L = 1, E = !0; L < n.length; L += 1) {
|
|
572
|
+
var N = n[L], W = $e(N, 0, 1), O = $e(N, -1);
|
|
573
|
+
if ((W === '"' || W === "'" || W === "`" || O === '"' || O === "'" || O === "`") && W !== O)
|
|
574
|
+
throw new Ae("property names with quotes must have matching quotes");
|
|
575
|
+
if ((N === "constructor" || !E) && (p = !0), i += "." + N, l = "%" + i + "%", ke(he, l))
|
|
576
|
+
h = he[l];
|
|
577
|
+
else if (h != null) {
|
|
578
|
+
if (!(N in h)) {
|
|
579
|
+
if (!r)
|
|
580
|
+
throw new Ee("base intrinsic for " + t + " exists, but the property is not available.");
|
|
581
|
+
return;
|
|
582
|
+
}
|
|
583
|
+
if (pe && L + 1 >= n.length) {
|
|
584
|
+
var C = pe(h, N);
|
|
585
|
+
E = !!C, E && "get" in C && !("originalValue" in C.get) ? h = C.get : h = h[N];
|
|
586
|
+
} else
|
|
587
|
+
E = ke(h, N), h = h[N];
|
|
588
|
+
E && !p && (he[l] = h);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
return h;
|
|
592
|
+
}, Ir = { exports: {} }, rt, zt;
|
|
593
|
+
function Ct() {
|
|
594
|
+
if (zt)
|
|
595
|
+
return rt;
|
|
596
|
+
zt = 1;
|
|
597
|
+
var e = Me, t = e("%Object.defineProperty%", !0) || !1;
|
|
598
|
+
if (t)
|
|
599
|
+
try {
|
|
600
|
+
t({}, "a", { value: 1 });
|
|
601
|
+
} catch {
|
|
602
|
+
t = !1;
|
|
603
|
+
}
|
|
604
|
+
return rt = t, rt;
|
|
605
|
+
}
|
|
606
|
+
var ei = Me, Ie = ei("%Object.getOwnPropertyDescriptor%", !0);
|
|
607
|
+
if (Ie)
|
|
608
|
+
try {
|
|
609
|
+
Ie([], "length");
|
|
610
|
+
} catch {
|
|
611
|
+
Ie = null;
|
|
612
|
+
}
|
|
613
|
+
var Nt = Ie, Kt = Ct(), ti = Cr, me = Ve, Yt = Nt, ri = function(t, r, n) {
|
|
614
|
+
if (!t || typeof t != "object" && typeof t != "function")
|
|
615
|
+
throw new me("`obj` must be an object or a function`");
|
|
616
|
+
if (typeof r != "string" && typeof r != "symbol")
|
|
617
|
+
throw new me("`property` must be a string or a symbol`");
|
|
618
|
+
if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
|
|
619
|
+
throw new me("`nonEnumerable`, if provided, must be a boolean or null");
|
|
620
|
+
if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
|
|
621
|
+
throw new me("`nonWritable`, if provided, must be a boolean or null");
|
|
622
|
+
if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
|
|
623
|
+
throw new me("`nonConfigurable`, if provided, must be a boolean or null");
|
|
624
|
+
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
625
|
+
throw new me("`loose`, if provided, must be a boolean");
|
|
626
|
+
var i = arguments.length > 3 ? arguments[3] : null, c = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, h = arguments.length > 6 ? arguments[6] : !1, p = !!Yt && Yt(t, r);
|
|
627
|
+
if (Kt)
|
|
628
|
+
Kt(t, r, {
|
|
629
|
+
configurable: l === null && p ? p.configurable : !l,
|
|
630
|
+
enumerable: i === null && p ? p.enumerable : !i,
|
|
631
|
+
value: n,
|
|
632
|
+
writable: c === null && p ? p.writable : !c
|
|
633
|
+
});
|
|
634
|
+
else if (h || !i && !c && !l)
|
|
635
|
+
t[r] = n;
|
|
636
|
+
else
|
|
637
|
+
throw new ti("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
638
|
+
}, mt = Ct(), Dr = function() {
|
|
639
|
+
return !!mt;
|
|
640
|
+
};
|
|
641
|
+
Dr.hasArrayLengthDefineBug = function() {
|
|
642
|
+
if (!mt)
|
|
643
|
+
return null;
|
|
644
|
+
try {
|
|
645
|
+
return mt([], "length", { value: 1 }).length !== 1;
|
|
646
|
+
} catch {
|
|
647
|
+
return !0;
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
var ni = Dr, ii = Me, Jt = ri, oi = ni(), Xt = Nt, Zt = Ve, ai = ii("%Math.floor%"), fi = function(t, r) {
|
|
651
|
+
if (typeof t != "function")
|
|
652
|
+
throw new Zt("`fn` is not a function");
|
|
653
|
+
if (typeof r != "number" || r < 0 || r > 4294967295 || ai(r) !== r)
|
|
654
|
+
throw new Zt("`length` must be a positive 32-bit integer");
|
|
655
|
+
var n = arguments.length > 2 && !!arguments[2], i = !0, c = !0;
|
|
656
|
+
if ("length" in t && Xt) {
|
|
657
|
+
var l = Xt(t, "length");
|
|
658
|
+
l && !l.configurable && (i = !1), l && !l.writable && (c = !1);
|
|
659
|
+
}
|
|
660
|
+
return (i || c || !n) && (oi ? Jt(
|
|
661
|
+
/** @type {Parameters<define>[0]} */
|
|
662
|
+
t,
|
|
663
|
+
"length",
|
|
664
|
+
r,
|
|
665
|
+
!0,
|
|
666
|
+
!0
|
|
667
|
+
) : Jt(
|
|
668
|
+
/** @type {Parameters<define>[0]} */
|
|
669
|
+
t,
|
|
670
|
+
"length",
|
|
671
|
+
r
|
|
672
|
+
)), t;
|
|
673
|
+
};
|
|
674
|
+
(function(e) {
|
|
675
|
+
var t = Lt, r = Me, n = fi, i = Ve, c = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), h = r("%Reflect.apply%", !0) || t.call(l, c), p = Ct(), A = r("%Math.max%");
|
|
676
|
+
e.exports = function(N) {
|
|
677
|
+
if (typeof N != "function")
|
|
678
|
+
throw new i("a function is required");
|
|
679
|
+
var W = h(t, l, arguments);
|
|
680
|
+
return n(
|
|
681
|
+
W,
|
|
682
|
+
1 + A(0, N.length - (arguments.length - 1)),
|
|
683
|
+
!0
|
|
684
|
+
);
|
|
685
|
+
};
|
|
686
|
+
var L = function() {
|
|
687
|
+
return h(t, c, arguments);
|
|
688
|
+
};
|
|
689
|
+
p ? p(e.exports, "apply", { value: L }) : e.exports.apply = L;
|
|
690
|
+
})(Ir);
|
|
691
|
+
var Br = Ir.exports, Fr = Me, Ur = Br, ui = Ur(Fr("String.prototype.indexOf")), kr = function(t, r) {
|
|
692
|
+
var n = Fr(t, !!r);
|
|
693
|
+
return typeof n == "function" && ui(t, ".prototype.") > -1 ? Ur(n) : n;
|
|
694
|
+
}, si = jt(), li = kr, _t = li("Object.prototype.toString"), ze = function(t) {
|
|
695
|
+
return si && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : _t(t) === "[object Arguments]";
|
|
696
|
+
}, $r = function(t) {
|
|
697
|
+
return ze(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && _t(t) !== "[object Array]" && _t(t.callee) === "[object Function]";
|
|
698
|
+
}, ci = function() {
|
|
699
|
+
return ze(arguments);
|
|
700
|
+
}();
|
|
701
|
+
ze.isLegacyArguments = $r;
|
|
702
|
+
var di = ci ? ze : $r, pi = Object.prototype.toString, hi = Function.prototype.toString, yi = /^\s*(?:function)?\*/, Wr = jt(), nt = Object.getPrototypeOf, gi = function() {
|
|
703
|
+
if (!Wr)
|
|
704
|
+
return !1;
|
|
705
|
+
try {
|
|
706
|
+
return Function("return function*() {}")();
|
|
707
|
+
} catch {
|
|
708
|
+
}
|
|
709
|
+
}, it, vi = function(t) {
|
|
710
|
+
if (typeof t != "function")
|
|
711
|
+
return !1;
|
|
712
|
+
if (yi.test(hi.call(t)))
|
|
713
|
+
return !0;
|
|
714
|
+
if (!Wr) {
|
|
715
|
+
var r = pi.call(t);
|
|
716
|
+
return r === "[object GeneratorFunction]";
|
|
717
|
+
}
|
|
718
|
+
if (!nt)
|
|
719
|
+
return !1;
|
|
720
|
+
if (typeof it > "u") {
|
|
721
|
+
var n = gi();
|
|
722
|
+
it = n ? nt(n) : !1;
|
|
723
|
+
}
|
|
724
|
+
return nt(t) === it;
|
|
725
|
+
}, qr = Function.prototype.toString, we = typeof Reflect == "object" && Reflect !== null && Reflect.apply, wt, De;
|
|
726
|
+
if (typeof we == "function" && typeof Object.defineProperty == "function")
|
|
727
|
+
try {
|
|
728
|
+
wt = Object.defineProperty({}, "length", {
|
|
729
|
+
get: function() {
|
|
730
|
+
throw De;
|
|
731
|
+
}
|
|
732
|
+
}), De = {}, we(function() {
|
|
733
|
+
throw 42;
|
|
734
|
+
}, null, wt);
|
|
735
|
+
} catch (e) {
|
|
736
|
+
e !== De && (we = null);
|
|
737
|
+
}
|
|
738
|
+
else
|
|
739
|
+
we = null;
|
|
740
|
+
var bi = /^\s*class\b/, St = function(t) {
|
|
741
|
+
try {
|
|
742
|
+
var r = qr.call(t);
|
|
743
|
+
return bi.test(r);
|
|
744
|
+
} catch {
|
|
745
|
+
return !1;
|
|
746
|
+
}
|
|
747
|
+
}, ot = function(t) {
|
|
748
|
+
try {
|
|
749
|
+
return St(t) ? !1 : (qr.call(t), !0);
|
|
750
|
+
} catch {
|
|
751
|
+
return !1;
|
|
752
|
+
}
|
|
753
|
+
}, Be = Object.prototype.toString, mi = "[object Object]", _i = "[object Function]", wi = "[object GeneratorFunction]", Si = "[object HTMLAllCollection]", Ei = "[object HTML document.all class]", Ai = "[object HTMLCollection]", Ri = typeof Symbol == "function" && !!Symbol.toStringTag, Ti = !(0 in [,]), Et = function() {
|
|
754
|
+
return !1;
|
|
755
|
+
};
|
|
756
|
+
if (typeof document == "object") {
|
|
757
|
+
var Oi = document.all;
|
|
758
|
+
Be.call(Oi) === Be.call(document.all) && (Et = function(t) {
|
|
759
|
+
if ((Ti || !t) && (typeof t > "u" || typeof t == "object"))
|
|
760
|
+
try {
|
|
761
|
+
var r = Be.call(t);
|
|
762
|
+
return (r === Si || r === Ei || r === Ai || r === mi) && t("") == null;
|
|
763
|
+
} catch {
|
|
764
|
+
}
|
|
765
|
+
return !1;
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
var Pi = we ? function(t) {
|
|
769
|
+
if (Et(t))
|
|
770
|
+
return !0;
|
|
771
|
+
if (!t || typeof t != "function" && typeof t != "object")
|
|
772
|
+
return !1;
|
|
773
|
+
try {
|
|
774
|
+
we(t, null, wt);
|
|
775
|
+
} catch (r) {
|
|
776
|
+
if (r !== De)
|
|
777
|
+
return !1;
|
|
778
|
+
}
|
|
779
|
+
return !St(t) && ot(t);
|
|
780
|
+
} : function(t) {
|
|
781
|
+
if (Et(t))
|
|
782
|
+
return !0;
|
|
783
|
+
if (!t || typeof t != "function" && typeof t != "object")
|
|
784
|
+
return !1;
|
|
785
|
+
if (Ri)
|
|
786
|
+
return ot(t);
|
|
787
|
+
if (St(t))
|
|
788
|
+
return !1;
|
|
789
|
+
var r = Be.call(t);
|
|
790
|
+
return r !== _i && r !== wi && !/^\[object HTML/.test(r) ? !1 : ot(t);
|
|
791
|
+
}, Mi = Pi, ji = Object.prototype.toString, xr = Object.prototype.hasOwnProperty, Li = function(t, r, n) {
|
|
792
|
+
for (var i = 0, c = t.length; i < c; i++)
|
|
793
|
+
xr.call(t, i) && (n == null ? r(t[i], i, t) : r.call(n, t[i], i, t));
|
|
794
|
+
}, Ci = function(t, r, n) {
|
|
795
|
+
for (var i = 0, c = t.length; i < c; i++)
|
|
796
|
+
n == null ? r(t.charAt(i), i, t) : r.call(n, t.charAt(i), i, t);
|
|
797
|
+
}, Ni = function(t, r, n) {
|
|
798
|
+
for (var i in t)
|
|
799
|
+
xr.call(t, i) && (n == null ? r(t[i], i, t) : r.call(n, t[i], i, t));
|
|
800
|
+
}, Ii = function(t, r, n) {
|
|
801
|
+
if (!Mi(r))
|
|
802
|
+
throw new TypeError("iterator must be a function");
|
|
803
|
+
var i;
|
|
804
|
+
arguments.length >= 3 && (i = n), ji.call(t) === "[object Array]" ? Li(t, r, i) : typeof t == "string" ? Ci(t, r, i) : Ni(t, r, i);
|
|
805
|
+
}, Di = Ii, Bi = [
|
|
806
|
+
"Float32Array",
|
|
807
|
+
"Float64Array",
|
|
808
|
+
"Int8Array",
|
|
809
|
+
"Int16Array",
|
|
810
|
+
"Int32Array",
|
|
811
|
+
"Uint8Array",
|
|
812
|
+
"Uint8ClampedArray",
|
|
813
|
+
"Uint16Array",
|
|
814
|
+
"Uint32Array",
|
|
815
|
+
"BigInt64Array",
|
|
816
|
+
"BigUint64Array"
|
|
817
|
+
], at = Bi, Fi = typeof globalThis > "u" ? V : globalThis, Ui = function() {
|
|
818
|
+
for (var t = [], r = 0; r < at.length; r++)
|
|
819
|
+
typeof Fi[at[r]] == "function" && (t[t.length] = at[r]);
|
|
820
|
+
return t;
|
|
821
|
+
}, We = Di, ki = Ui, Qt = Br, It = kr, Fe = Nt, $i = It("Object.prototype.toString"), Hr = jt(), er = typeof globalThis > "u" ? V : globalThis, At = ki(), Dt = It("String.prototype.slice"), ft = Object.getPrototypeOf, Wi = It("Array.prototype.indexOf", !0) || function(t, r) {
|
|
822
|
+
for (var n = 0; n < t.length; n += 1)
|
|
823
|
+
if (t[n] === r)
|
|
824
|
+
return n;
|
|
825
|
+
return -1;
|
|
826
|
+
}, qe = { __proto__: null };
|
|
827
|
+
Hr && Fe && ft ? We(At, function(e) {
|
|
828
|
+
var t = new er[e]();
|
|
829
|
+
if (Symbol.toStringTag in t) {
|
|
830
|
+
var r = ft(t), n = Fe(r, Symbol.toStringTag);
|
|
831
|
+
if (!n) {
|
|
832
|
+
var i = ft(r);
|
|
833
|
+
n = Fe(i, Symbol.toStringTag);
|
|
834
|
+
}
|
|
835
|
+
qe["$" + e] = Qt(n.get);
|
|
836
|
+
}
|
|
837
|
+
}) : We(At, function(e) {
|
|
838
|
+
var t = new er[e](), r = t.slice || t.set;
|
|
839
|
+
r && (qe["$" + e] = Qt(r));
|
|
840
|
+
});
|
|
841
|
+
var qi = function(t) {
|
|
842
|
+
var r = !1;
|
|
843
|
+
return We(
|
|
844
|
+
// eslint-disable-next-line no-extra-parens
|
|
845
|
+
/** @type {Record<`\$${TypedArrayName}`, Getter>} */
|
|
846
|
+
/** @type {any} */
|
|
847
|
+
qe,
|
|
848
|
+
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
849
|
+
function(n, i) {
|
|
850
|
+
if (!r)
|
|
851
|
+
try {
|
|
852
|
+
"$" + n(t) === i && (r = Dt(i, 1));
|
|
853
|
+
} catch {
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
), r;
|
|
857
|
+
}, xi = function(t) {
|
|
858
|
+
var r = !1;
|
|
859
|
+
return We(
|
|
860
|
+
// eslint-disable-next-line no-extra-parens
|
|
861
|
+
/** @type {Record<`\$${TypedArrayName}`, Getter>} */
|
|
862
|
+
/** @type {any} */
|
|
863
|
+
qe,
|
|
864
|
+
/** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
865
|
+
function(n, i) {
|
|
866
|
+
if (!r)
|
|
867
|
+
try {
|
|
868
|
+
n(t), r = Dt(i, 1);
|
|
869
|
+
} catch {
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
), r;
|
|
873
|
+
}, Gr = function(t) {
|
|
874
|
+
if (!t || typeof t != "object")
|
|
875
|
+
return !1;
|
|
876
|
+
if (!Hr) {
|
|
877
|
+
var r = Dt($i(t), 8, -1);
|
|
878
|
+
return Wi(At, r) > -1 ? r : r !== "Object" ? !1 : xi(t);
|
|
879
|
+
}
|
|
880
|
+
return Fe ? qi(t) : null;
|
|
881
|
+
}, Hi = Gr, Gi = function(t) {
|
|
882
|
+
return !!Hi(t);
|
|
883
|
+
};
|
|
884
|
+
(function(e) {
|
|
885
|
+
var t = di, r = vi, n = Gr, i = Gi;
|
|
886
|
+
function c(v) {
|
|
887
|
+
return v.call.bind(v);
|
|
888
|
+
}
|
|
889
|
+
var l = typeof BigInt < "u", h = typeof Symbol < "u", p = c(Object.prototype.toString), A = c(Number.prototype.valueOf), L = c(String.prototype.valueOf), E = c(Boolean.prototype.valueOf);
|
|
890
|
+
if (l)
|
|
891
|
+
var N = c(BigInt.prototype.valueOf);
|
|
892
|
+
if (h)
|
|
893
|
+
var W = c(Symbol.prototype.valueOf);
|
|
894
|
+
function O(v, je) {
|
|
895
|
+
if (typeof v != "object")
|
|
896
|
+
return !1;
|
|
897
|
+
try {
|
|
898
|
+
return je(v), !0;
|
|
899
|
+
} catch {
|
|
900
|
+
return !1;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
e.isArgumentsObject = t, e.isGeneratorFunction = r, e.isTypedArray = i;
|
|
904
|
+
function C(v) {
|
|
905
|
+
return typeof Promise < "u" && v instanceof Promise || v !== null && typeof v == "object" && typeof v.then == "function" && typeof v.catch == "function";
|
|
906
|
+
}
|
|
907
|
+
e.isPromise = C;
|
|
908
|
+
function M(v) {
|
|
909
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(v) : i(v) || g(v);
|
|
910
|
+
}
|
|
911
|
+
e.isArrayBufferView = M;
|
|
912
|
+
function s(v) {
|
|
913
|
+
return n(v) === "Uint8Array";
|
|
914
|
+
}
|
|
915
|
+
e.isUint8Array = s;
|
|
916
|
+
function m(v) {
|
|
917
|
+
return n(v) === "Uint8ClampedArray";
|
|
918
|
+
}
|
|
919
|
+
e.isUint8ClampedArray = m;
|
|
920
|
+
function S(v) {
|
|
921
|
+
return n(v) === "Uint16Array";
|
|
922
|
+
}
|
|
923
|
+
e.isUint16Array = S;
|
|
924
|
+
function R(v) {
|
|
925
|
+
return n(v) === "Uint32Array";
|
|
926
|
+
}
|
|
927
|
+
e.isUint32Array = R;
|
|
928
|
+
function P(v) {
|
|
929
|
+
return n(v) === "Int8Array";
|
|
930
|
+
}
|
|
931
|
+
e.isInt8Array = P;
|
|
932
|
+
function B(v) {
|
|
933
|
+
return n(v) === "Int16Array";
|
|
934
|
+
}
|
|
935
|
+
e.isInt16Array = B;
|
|
936
|
+
function q(v) {
|
|
937
|
+
return n(v) === "Int32Array";
|
|
938
|
+
}
|
|
939
|
+
e.isInt32Array = q;
|
|
940
|
+
function F(v) {
|
|
941
|
+
return n(v) === "Float32Array";
|
|
942
|
+
}
|
|
943
|
+
e.isFloat32Array = F;
|
|
944
|
+
function I(v) {
|
|
945
|
+
return n(v) === "Float64Array";
|
|
946
|
+
}
|
|
947
|
+
e.isFloat64Array = I;
|
|
948
|
+
function K(v) {
|
|
949
|
+
return n(v) === "BigInt64Array";
|
|
950
|
+
}
|
|
951
|
+
e.isBigInt64Array = K;
|
|
952
|
+
function X(v) {
|
|
953
|
+
return n(v) === "BigUint64Array";
|
|
954
|
+
}
|
|
955
|
+
e.isBigUint64Array = X;
|
|
956
|
+
function Z(v) {
|
|
957
|
+
return p(v) === "[object Map]";
|
|
958
|
+
}
|
|
959
|
+
Z.working = typeof Map < "u" && Z(/* @__PURE__ */ new Map());
|
|
960
|
+
function ie(v) {
|
|
961
|
+
return typeof Map > "u" ? !1 : Z.working ? Z(v) : v instanceof Map;
|
|
962
|
+
}
|
|
963
|
+
e.isMap = ie;
|
|
964
|
+
function Q(v) {
|
|
965
|
+
return p(v) === "[object Set]";
|
|
966
|
+
}
|
|
967
|
+
Q.working = typeof Set < "u" && Q(/* @__PURE__ */ new Set());
|
|
968
|
+
function oe(v) {
|
|
969
|
+
return typeof Set > "u" ? !1 : Q.working ? Q(v) : v instanceof Set;
|
|
970
|
+
}
|
|
971
|
+
e.isSet = oe;
|
|
972
|
+
function ae(v) {
|
|
973
|
+
return p(v) === "[object WeakMap]";
|
|
974
|
+
}
|
|
975
|
+
ae.working = typeof WeakMap < "u" && ae(/* @__PURE__ */ new WeakMap());
|
|
976
|
+
function te(v) {
|
|
977
|
+
return typeof WeakMap > "u" ? !1 : ae.working ? ae(v) : v instanceof WeakMap;
|
|
978
|
+
}
|
|
979
|
+
e.isWeakMap = te;
|
|
980
|
+
function re(v) {
|
|
981
|
+
return p(v) === "[object WeakSet]";
|
|
982
|
+
}
|
|
983
|
+
re.working = typeof WeakSet < "u" && re(/* @__PURE__ */ new WeakSet());
|
|
984
|
+
function Y(v) {
|
|
985
|
+
return re(v);
|
|
986
|
+
}
|
|
987
|
+
e.isWeakSet = Y;
|
|
988
|
+
function ne(v) {
|
|
989
|
+
return p(v) === "[object ArrayBuffer]";
|
|
990
|
+
}
|
|
991
|
+
ne.working = typeof ArrayBuffer < "u" && ne(new ArrayBuffer());
|
|
992
|
+
function ue(v) {
|
|
993
|
+
return typeof ArrayBuffer > "u" ? !1 : ne.working ? ne(v) : v instanceof ArrayBuffer;
|
|
994
|
+
}
|
|
995
|
+
e.isArrayBuffer = ue;
|
|
996
|
+
function d(v) {
|
|
997
|
+
return p(v) === "[object DataView]";
|
|
998
|
+
}
|
|
999
|
+
d.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && d(new DataView(new ArrayBuffer(1), 0, 1));
|
|
1000
|
+
function g(v) {
|
|
1001
|
+
return typeof DataView > "u" ? !1 : d.working ? d(v) : v instanceof DataView;
|
|
1002
|
+
}
|
|
1003
|
+
e.isDataView = g;
|
|
1004
|
+
var _ = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
1005
|
+
function D(v) {
|
|
1006
|
+
return p(v) === "[object SharedArrayBuffer]";
|
|
1007
|
+
}
|
|
1008
|
+
function u(v) {
|
|
1009
|
+
return typeof _ > "u" ? !1 : (typeof D.working > "u" && (D.working = D(new _())), D.working ? D(v) : v instanceof _);
|
|
1010
|
+
}
|
|
1011
|
+
e.isSharedArrayBuffer = u;
|
|
1012
|
+
function f(v) {
|
|
1013
|
+
return p(v) === "[object AsyncFunction]";
|
|
1014
|
+
}
|
|
1015
|
+
e.isAsyncFunction = f;
|
|
1016
|
+
function y(v) {
|
|
1017
|
+
return p(v) === "[object Map Iterator]";
|
|
1018
|
+
}
|
|
1019
|
+
e.isMapIterator = y;
|
|
1020
|
+
function w(v) {
|
|
1021
|
+
return p(v) === "[object Set Iterator]";
|
|
1022
|
+
}
|
|
1023
|
+
e.isSetIterator = w;
|
|
1024
|
+
function j(v) {
|
|
1025
|
+
return p(v) === "[object Generator]";
|
|
1026
|
+
}
|
|
1027
|
+
e.isGeneratorObject = j;
|
|
1028
|
+
function o(v) {
|
|
1029
|
+
return p(v) === "[object WebAssembly.Module]";
|
|
1030
|
+
}
|
|
1031
|
+
e.isWebAssemblyCompiledModule = o;
|
|
1032
|
+
function a(v) {
|
|
1033
|
+
return O(v, A);
|
|
1034
|
+
}
|
|
1035
|
+
e.isNumberObject = a;
|
|
1036
|
+
function b(v) {
|
|
1037
|
+
return O(v, L);
|
|
1038
|
+
}
|
|
1039
|
+
e.isStringObject = b;
|
|
1040
|
+
function T(v) {
|
|
1041
|
+
return O(v, E);
|
|
1042
|
+
}
|
|
1043
|
+
e.isBooleanObject = T;
|
|
1044
|
+
function G(v) {
|
|
1045
|
+
return l && O(v, N);
|
|
1046
|
+
}
|
|
1047
|
+
e.isBigIntObject = G;
|
|
1048
|
+
function k(v) {
|
|
1049
|
+
return h && O(v, W);
|
|
1050
|
+
}
|
|
1051
|
+
e.isSymbolObject = k;
|
|
1052
|
+
function x(v) {
|
|
1053
|
+
return a(v) || b(v) || T(v) || G(v) || k(v);
|
|
1054
|
+
}
|
|
1055
|
+
e.isBoxedPrimitive = x;
|
|
1056
|
+
function se(v) {
|
|
1057
|
+
return typeof Uint8Array < "u" && (ue(v) || u(v));
|
|
1058
|
+
}
|
|
1059
|
+
e.isAnyArrayBuffer = se, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(v) {
|
|
1060
|
+
Object.defineProperty(e, v, {
|
|
1061
|
+
enumerable: !1,
|
|
1062
|
+
value: function() {
|
|
1063
|
+
throw new Error(v + " is not supported in userland");
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
});
|
|
1067
|
+
})(jr);
|
|
1068
|
+
var Vi = function(t) {
|
|
1069
|
+
return t && typeof t == "object" && typeof t.copy == "function" && typeof t.fill == "function" && typeof t.readUInt8 == "function";
|
|
1070
|
+
};
|
|
1071
|
+
(function(e) {
|
|
1072
|
+
var t = Object.getOwnPropertyDescriptors || function(g) {
|
|
1073
|
+
for (var _ = Object.keys(g), D = {}, u = 0; u < _.length; u++)
|
|
1074
|
+
D[_[u]] = Object.getOwnPropertyDescriptor(g, _[u]);
|
|
1075
|
+
return D;
|
|
1076
|
+
}, r = /%[sdj%]/g;
|
|
1077
|
+
e.format = function(d) {
|
|
1078
|
+
if (!P(d)) {
|
|
1079
|
+
for (var g = [], _ = 0; _ < arguments.length; _++)
|
|
1080
|
+
g.push(l(arguments[_]));
|
|
1081
|
+
return g.join(" ");
|
|
1082
|
+
}
|
|
1083
|
+
for (var _ = 1, D = arguments, u = D.length, f = String(d).replace(r, function(w) {
|
|
1084
|
+
if (w === "%%")
|
|
1085
|
+
return "%";
|
|
1086
|
+
if (_ >= u)
|
|
1087
|
+
return w;
|
|
1088
|
+
switch (w) {
|
|
1089
|
+
case "%s":
|
|
1090
|
+
return String(D[_++]);
|
|
1091
|
+
case "%d":
|
|
1092
|
+
return Number(D[_++]);
|
|
1093
|
+
case "%j":
|
|
1094
|
+
try {
|
|
1095
|
+
return JSON.stringify(D[_++]);
|
|
1096
|
+
} catch {
|
|
1097
|
+
return "[Circular]";
|
|
1098
|
+
}
|
|
1099
|
+
default:
|
|
1100
|
+
return w;
|
|
1101
|
+
}
|
|
1102
|
+
}), y = D[_]; _ < u; y = D[++_])
|
|
1103
|
+
m(y) || !I(y) ? f += " " + y : f += " " + l(y);
|
|
1104
|
+
return f;
|
|
1105
|
+
}, e.deprecate = function(d, g) {
|
|
1106
|
+
if (typeof U < "u" && U.noDeprecation === !0)
|
|
1107
|
+
return d;
|
|
1108
|
+
if (typeof U > "u")
|
|
1109
|
+
return function() {
|
|
1110
|
+
return e.deprecate(d, g).apply(this, arguments);
|
|
1111
|
+
};
|
|
1112
|
+
var _ = !1;
|
|
1113
|
+
function D() {
|
|
1114
|
+
if (!_) {
|
|
1115
|
+
if (U.throwDeprecation)
|
|
1116
|
+
throw new Error(g);
|
|
1117
|
+
U.traceDeprecation ? console.trace(g) : console.error(g), _ = !0;
|
|
1118
|
+
}
|
|
1119
|
+
return d.apply(this, arguments);
|
|
1120
|
+
}
|
|
1121
|
+
return D;
|
|
1122
|
+
};
|
|
1123
|
+
var n = {}, i = /^$/;
|
|
1124
|
+
if (U.env.NODE_DEBUG) {
|
|
1125
|
+
var c = U.env.NODE_DEBUG;
|
|
1126
|
+
c = c.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), i = new RegExp("^" + c + "$", "i");
|
|
1127
|
+
}
|
|
1128
|
+
e.debuglog = function(d) {
|
|
1129
|
+
if (d = d.toUpperCase(), !n[d])
|
|
1130
|
+
if (i.test(d)) {
|
|
1131
|
+
var g = U.pid;
|
|
1132
|
+
n[d] = function() {
|
|
1133
|
+
var _ = e.format.apply(e, arguments);
|
|
1134
|
+
console.error("%s %d: %s", d, g, _);
|
|
1135
|
+
};
|
|
1136
|
+
} else
|
|
1137
|
+
n[d] = function() {
|
|
1138
|
+
};
|
|
1139
|
+
return n[d];
|
|
1140
|
+
};
|
|
1141
|
+
function l(d, g) {
|
|
1142
|
+
var _ = {
|
|
1143
|
+
seen: [],
|
|
1144
|
+
stylize: p
|
|
1145
|
+
};
|
|
1146
|
+
return arguments.length >= 3 && (_.depth = arguments[2]), arguments.length >= 4 && (_.colors = arguments[3]), s(g) ? _.showHidden = g : g && e._extend(_, g), q(_.showHidden) && (_.showHidden = !1), q(_.depth) && (_.depth = 2), q(_.colors) && (_.colors = !1), q(_.customInspect) && (_.customInspect = !0), _.colors && (_.stylize = h), L(_, d, _.depth);
|
|
1147
|
+
}
|
|
1148
|
+
e.inspect = l, l.colors = {
|
|
1149
|
+
bold: [1, 22],
|
|
1150
|
+
italic: [3, 23],
|
|
1151
|
+
underline: [4, 24],
|
|
1152
|
+
inverse: [7, 27],
|
|
1153
|
+
white: [37, 39],
|
|
1154
|
+
grey: [90, 39],
|
|
1155
|
+
black: [30, 39],
|
|
1156
|
+
blue: [34, 39],
|
|
1157
|
+
cyan: [36, 39],
|
|
1158
|
+
green: [32, 39],
|
|
1159
|
+
magenta: [35, 39],
|
|
1160
|
+
red: [31, 39],
|
|
1161
|
+
yellow: [33, 39]
|
|
1162
|
+
}, l.styles = {
|
|
1163
|
+
special: "cyan",
|
|
1164
|
+
number: "yellow",
|
|
1165
|
+
boolean: "yellow",
|
|
1166
|
+
undefined: "grey",
|
|
1167
|
+
null: "bold",
|
|
1168
|
+
string: "green",
|
|
1169
|
+
date: "magenta",
|
|
1170
|
+
// "name": intentionally not styling
|
|
1171
|
+
regexp: "red"
|
|
1172
|
+
};
|
|
1173
|
+
function h(d, g) {
|
|
1174
|
+
var _ = l.styles[g];
|
|
1175
|
+
return _ ? "\x1B[" + l.colors[_][0] + "m" + d + "\x1B[" + l.colors[_][1] + "m" : d;
|
|
1176
|
+
}
|
|
1177
|
+
function p(d, g) {
|
|
1178
|
+
return d;
|
|
1179
|
+
}
|
|
1180
|
+
function A(d) {
|
|
1181
|
+
var g = {};
|
|
1182
|
+
return d.forEach(function(_, D) {
|
|
1183
|
+
g[_] = !0;
|
|
1184
|
+
}), g;
|
|
1185
|
+
}
|
|
1186
|
+
function L(d, g, _) {
|
|
1187
|
+
if (d.customInspect && g && Z(g.inspect) && // Filter out the util module, it's inspect function is special
|
|
1188
|
+
g.inspect !== e.inspect && // Also filter out any prototype objects using the circular check.
|
|
1189
|
+
!(g.constructor && g.constructor.prototype === g)) {
|
|
1190
|
+
var D = g.inspect(_, d);
|
|
1191
|
+
return P(D) || (D = L(d, D, _)), D;
|
|
1192
|
+
}
|
|
1193
|
+
var u = E(d, g);
|
|
1194
|
+
if (u)
|
|
1195
|
+
return u;
|
|
1196
|
+
var f = Object.keys(g), y = A(f);
|
|
1197
|
+
if (d.showHidden && (f = Object.getOwnPropertyNames(g)), X(g) && (f.indexOf("message") >= 0 || f.indexOf("description") >= 0))
|
|
1198
|
+
return N(g);
|
|
1199
|
+
if (f.length === 0) {
|
|
1200
|
+
if (Z(g)) {
|
|
1201
|
+
var w = g.name ? ": " + g.name : "";
|
|
1202
|
+
return d.stylize("[Function" + w + "]", "special");
|
|
1203
|
+
}
|
|
1204
|
+
if (F(g))
|
|
1205
|
+
return d.stylize(RegExp.prototype.toString.call(g), "regexp");
|
|
1206
|
+
if (K(g))
|
|
1207
|
+
return d.stylize(Date.prototype.toString.call(g), "date");
|
|
1208
|
+
if (X(g))
|
|
1209
|
+
return N(g);
|
|
1210
|
+
}
|
|
1211
|
+
var j = "", o = !1, a = ["{", "}"];
|
|
1212
|
+
if (M(g) && (o = !0, a = ["[", "]"]), Z(g)) {
|
|
1213
|
+
var b = g.name ? ": " + g.name : "";
|
|
1214
|
+
j = " [Function" + b + "]";
|
|
1215
|
+
}
|
|
1216
|
+
if (F(g) && (j = " " + RegExp.prototype.toString.call(g)), K(g) && (j = " " + Date.prototype.toUTCString.call(g)), X(g) && (j = " " + N(g)), f.length === 0 && (!o || g.length == 0))
|
|
1217
|
+
return a[0] + j + a[1];
|
|
1218
|
+
if (_ < 0)
|
|
1219
|
+
return F(g) ? d.stylize(RegExp.prototype.toString.call(g), "regexp") : d.stylize("[Object]", "special");
|
|
1220
|
+
d.seen.push(g);
|
|
1221
|
+
var T;
|
|
1222
|
+
return o ? T = W(d, g, _, y, f) : T = f.map(function(G) {
|
|
1223
|
+
return O(d, g, _, y, G, o);
|
|
1224
|
+
}), d.seen.pop(), C(T, j, a);
|
|
1225
|
+
}
|
|
1226
|
+
function E(d, g) {
|
|
1227
|
+
if (q(g))
|
|
1228
|
+
return d.stylize("undefined", "undefined");
|
|
1229
|
+
if (P(g)) {
|
|
1230
|
+
var _ = "'" + JSON.stringify(g).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
1231
|
+
return d.stylize(_, "string");
|
|
1232
|
+
}
|
|
1233
|
+
if (R(g))
|
|
1234
|
+
return d.stylize("" + g, "number");
|
|
1235
|
+
if (s(g))
|
|
1236
|
+
return d.stylize("" + g, "boolean");
|
|
1237
|
+
if (m(g))
|
|
1238
|
+
return d.stylize("null", "null");
|
|
1239
|
+
}
|
|
1240
|
+
function N(d) {
|
|
1241
|
+
return "[" + Error.prototype.toString.call(d) + "]";
|
|
1242
|
+
}
|
|
1243
|
+
function W(d, g, _, D, u) {
|
|
1244
|
+
for (var f = [], y = 0, w = g.length; y < w; ++y)
|
|
1245
|
+
re(g, String(y)) ? f.push(O(
|
|
1246
|
+
d,
|
|
1247
|
+
g,
|
|
1248
|
+
_,
|
|
1249
|
+
D,
|
|
1250
|
+
String(y),
|
|
1251
|
+
!0
|
|
1252
|
+
)) : f.push("");
|
|
1253
|
+
return u.forEach(function(j) {
|
|
1254
|
+
j.match(/^\d+$/) || f.push(O(
|
|
1255
|
+
d,
|
|
1256
|
+
g,
|
|
1257
|
+
_,
|
|
1258
|
+
D,
|
|
1259
|
+
j,
|
|
1260
|
+
!0
|
|
1261
|
+
));
|
|
1262
|
+
}), f;
|
|
1263
|
+
}
|
|
1264
|
+
function O(d, g, _, D, u, f) {
|
|
1265
|
+
var y, w, j;
|
|
1266
|
+
if (j = Object.getOwnPropertyDescriptor(g, u) || { value: g[u] }, j.get ? j.set ? w = d.stylize("[Getter/Setter]", "special") : w = d.stylize("[Getter]", "special") : j.set && (w = d.stylize("[Setter]", "special")), re(D, u) || (y = "[" + u + "]"), w || (d.seen.indexOf(j.value) < 0 ? (m(_) ? w = L(d, j.value, null) : w = L(d, j.value, _ - 1), w.indexOf(`
|
|
1267
|
+
`) > -1 && (f ? w = w.split(`
|
|
1268
|
+
`).map(function(o) {
|
|
1269
|
+
return " " + o;
|
|
1270
|
+
}).join(`
|
|
1271
|
+
`).slice(2) : w = `
|
|
1272
|
+
` + w.split(`
|
|
1273
|
+
`).map(function(o) {
|
|
1274
|
+
return " " + o;
|
|
1275
|
+
}).join(`
|
|
1276
|
+
`))) : w = d.stylize("[Circular]", "special")), q(y)) {
|
|
1277
|
+
if (f && u.match(/^\d+$/))
|
|
1278
|
+
return w;
|
|
1279
|
+
y = JSON.stringify("" + u), y.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (y = y.slice(1, -1), y = d.stylize(y, "name")) : (y = y.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), y = d.stylize(y, "string"));
|
|
1280
|
+
}
|
|
1281
|
+
return y + ": " + w;
|
|
1282
|
+
}
|
|
1283
|
+
function C(d, g, _) {
|
|
1284
|
+
var D = d.reduce(function(u, f) {
|
|
1285
|
+
return f.indexOf(`
|
|
1286
|
+
`) >= 0, u + f.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
1287
|
+
}, 0);
|
|
1288
|
+
return D > 60 ? _[0] + (g === "" ? "" : g + `
|
|
1289
|
+
`) + " " + d.join(`,
|
|
1290
|
+
`) + " " + _[1] : _[0] + g + " " + d.join(", ") + " " + _[1];
|
|
1291
|
+
}
|
|
1292
|
+
e.types = jr;
|
|
1293
|
+
function M(d) {
|
|
1294
|
+
return Array.isArray(d);
|
|
1295
|
+
}
|
|
1296
|
+
e.isArray = M;
|
|
1297
|
+
function s(d) {
|
|
1298
|
+
return typeof d == "boolean";
|
|
1299
|
+
}
|
|
1300
|
+
e.isBoolean = s;
|
|
1301
|
+
function m(d) {
|
|
1302
|
+
return d === null;
|
|
1303
|
+
}
|
|
1304
|
+
e.isNull = m;
|
|
1305
|
+
function S(d) {
|
|
1306
|
+
return d == null;
|
|
1307
|
+
}
|
|
1308
|
+
e.isNullOrUndefined = S;
|
|
1309
|
+
function R(d) {
|
|
1310
|
+
return typeof d == "number";
|
|
1311
|
+
}
|
|
1312
|
+
e.isNumber = R;
|
|
1313
|
+
function P(d) {
|
|
1314
|
+
return typeof d == "string";
|
|
1315
|
+
}
|
|
1316
|
+
e.isString = P;
|
|
1317
|
+
function B(d) {
|
|
1318
|
+
return typeof d == "symbol";
|
|
1319
|
+
}
|
|
1320
|
+
e.isSymbol = B;
|
|
1321
|
+
function q(d) {
|
|
1322
|
+
return d === void 0;
|
|
1323
|
+
}
|
|
1324
|
+
e.isUndefined = q;
|
|
1325
|
+
function F(d) {
|
|
1326
|
+
return I(d) && Q(d) === "[object RegExp]";
|
|
1327
|
+
}
|
|
1328
|
+
e.isRegExp = F, e.types.isRegExp = F;
|
|
1329
|
+
function I(d) {
|
|
1330
|
+
return typeof d == "object" && d !== null;
|
|
1331
|
+
}
|
|
1332
|
+
e.isObject = I;
|
|
1333
|
+
function K(d) {
|
|
1334
|
+
return I(d) && Q(d) === "[object Date]";
|
|
1335
|
+
}
|
|
1336
|
+
e.isDate = K, e.types.isDate = K;
|
|
1337
|
+
function X(d) {
|
|
1338
|
+
return I(d) && (Q(d) === "[object Error]" || d instanceof Error);
|
|
1339
|
+
}
|
|
1340
|
+
e.isError = X, e.types.isNativeError = X;
|
|
1341
|
+
function Z(d) {
|
|
1342
|
+
return typeof d == "function";
|
|
1343
|
+
}
|
|
1344
|
+
e.isFunction = Z;
|
|
1345
|
+
function ie(d) {
|
|
1346
|
+
return d === null || typeof d == "boolean" || typeof d == "number" || typeof d == "string" || typeof d == "symbol" || // ES6 symbol
|
|
1347
|
+
typeof d > "u";
|
|
1348
|
+
}
|
|
1349
|
+
e.isPrimitive = ie, e.isBuffer = Vi;
|
|
1350
|
+
function Q(d) {
|
|
1351
|
+
return Object.prototype.toString.call(d);
|
|
1352
|
+
}
|
|
1353
|
+
function oe(d) {
|
|
1354
|
+
return d < 10 ? "0" + d.toString(10) : d.toString(10);
|
|
1355
|
+
}
|
|
1356
|
+
var ae = [
|
|
1357
|
+
"Jan",
|
|
1358
|
+
"Feb",
|
|
1359
|
+
"Mar",
|
|
1360
|
+
"Apr",
|
|
1361
|
+
"May",
|
|
1362
|
+
"Jun",
|
|
1363
|
+
"Jul",
|
|
1364
|
+
"Aug",
|
|
1365
|
+
"Sep",
|
|
1366
|
+
"Oct",
|
|
1367
|
+
"Nov",
|
|
1368
|
+
"Dec"
|
|
1369
|
+
];
|
|
1370
|
+
function te() {
|
|
1371
|
+
var d = /* @__PURE__ */ new Date(), g = [
|
|
1372
|
+
oe(d.getHours()),
|
|
1373
|
+
oe(d.getMinutes()),
|
|
1374
|
+
oe(d.getSeconds())
|
|
1375
|
+
].join(":");
|
|
1376
|
+
return [d.getDate(), ae[d.getMonth()], g].join(" ");
|
|
1377
|
+
}
|
|
1378
|
+
e.log = function() {
|
|
1379
|
+
console.log("%s - %s", te(), e.format.apply(e, arguments));
|
|
1380
|
+
}, e.inherits = le, e._extend = function(d, g) {
|
|
1381
|
+
if (!g || !I(g))
|
|
1382
|
+
return d;
|
|
1383
|
+
for (var _ = Object.keys(g), D = _.length; D--; )
|
|
1384
|
+
d[_[D]] = g[_[D]];
|
|
1385
|
+
return d;
|
|
1386
|
+
};
|
|
1387
|
+
function re(d, g) {
|
|
1388
|
+
return Object.prototype.hasOwnProperty.call(d, g);
|
|
1389
|
+
}
|
|
1390
|
+
var Y = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
1391
|
+
e.promisify = function(g) {
|
|
1392
|
+
if (typeof g != "function")
|
|
1393
|
+
throw new TypeError('The "original" argument must be of type Function');
|
|
1394
|
+
if (Y && g[Y]) {
|
|
1395
|
+
var _ = g[Y];
|
|
1396
|
+
if (typeof _ != "function")
|
|
1397
|
+
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
|
1398
|
+
return Object.defineProperty(_, Y, {
|
|
1399
|
+
value: _,
|
|
1400
|
+
enumerable: !1,
|
|
1401
|
+
writable: !1,
|
|
1402
|
+
configurable: !0
|
|
1403
|
+
}), _;
|
|
1404
|
+
}
|
|
1405
|
+
function _() {
|
|
1406
|
+
for (var D, u, f = new Promise(function(j, o) {
|
|
1407
|
+
D = j, u = o;
|
|
1408
|
+
}), y = [], w = 0; w < arguments.length; w++)
|
|
1409
|
+
y.push(arguments[w]);
|
|
1410
|
+
y.push(function(j, o) {
|
|
1411
|
+
j ? u(j) : D(o);
|
|
1412
|
+
});
|
|
1413
|
+
try {
|
|
1414
|
+
g.apply(this, y);
|
|
1415
|
+
} catch (j) {
|
|
1416
|
+
u(j);
|
|
1417
|
+
}
|
|
1418
|
+
return f;
|
|
1419
|
+
}
|
|
1420
|
+
return Object.setPrototypeOf(_, Object.getPrototypeOf(g)), Y && Object.defineProperty(_, Y, {
|
|
1421
|
+
value: _,
|
|
1422
|
+
enumerable: !1,
|
|
1423
|
+
writable: !1,
|
|
1424
|
+
configurable: !0
|
|
1425
|
+
}), Object.defineProperties(
|
|
1426
|
+
_,
|
|
1427
|
+
t(g)
|
|
1428
|
+
);
|
|
1429
|
+
}, e.promisify.custom = Y;
|
|
1430
|
+
function ne(d, g) {
|
|
1431
|
+
if (!d) {
|
|
1432
|
+
var _ = new Error("Promise was rejected with a falsy value");
|
|
1433
|
+
_.reason = d, d = _;
|
|
1434
|
+
}
|
|
1435
|
+
return g(d);
|
|
1436
|
+
}
|
|
1437
|
+
function ue(d) {
|
|
1438
|
+
if (typeof d != "function")
|
|
1439
|
+
throw new TypeError('The "original" argument must be of type Function');
|
|
1440
|
+
function g() {
|
|
1441
|
+
for (var _ = [], D = 0; D < arguments.length; D++)
|
|
1442
|
+
_.push(arguments[D]);
|
|
1443
|
+
var u = _.pop();
|
|
1444
|
+
if (typeof u != "function")
|
|
1445
|
+
throw new TypeError("The last argument must be of type Function");
|
|
1446
|
+
var f = this, y = function() {
|
|
1447
|
+
return u.apply(f, arguments);
|
|
1448
|
+
};
|
|
1449
|
+
d.apply(this, _).then(
|
|
1450
|
+
function(w) {
|
|
1451
|
+
U.nextTick(y.bind(null, null, w));
|
|
1452
|
+
},
|
|
1453
|
+
function(w) {
|
|
1454
|
+
U.nextTick(ne.bind(null, w, y));
|
|
1455
|
+
}
|
|
1456
|
+
);
|
|
1457
|
+
}
|
|
1458
|
+
return Object.setPrototypeOf(g, Object.getPrototypeOf(d)), Object.defineProperties(
|
|
1459
|
+
g,
|
|
1460
|
+
t(d)
|
|
1461
|
+
), g;
|
|
1462
|
+
}
|
|
1463
|
+
e.callbackify = ue;
|
|
1464
|
+
})(Mt);
|
|
1465
|
+
var ut, tr;
|
|
1466
|
+
function zi() {
|
|
1467
|
+
if (tr)
|
|
1468
|
+
return ut;
|
|
1469
|
+
tr = 1;
|
|
1470
|
+
function e(O, C) {
|
|
1471
|
+
var M = Object.keys(O);
|
|
1472
|
+
if (Object.getOwnPropertySymbols) {
|
|
1473
|
+
var s = Object.getOwnPropertySymbols(O);
|
|
1474
|
+
C && (s = s.filter(function(m) {
|
|
1475
|
+
return Object.getOwnPropertyDescriptor(O, m).enumerable;
|
|
1476
|
+
})), M.push.apply(M, s);
|
|
1477
|
+
}
|
|
1478
|
+
return M;
|
|
1479
|
+
}
|
|
1480
|
+
function t(O) {
|
|
1481
|
+
for (var C = 1; C < arguments.length; C++) {
|
|
1482
|
+
var M = arguments[C] != null ? arguments[C] : {};
|
|
1483
|
+
C % 2 ? e(Object(M), !0).forEach(function(s) {
|
|
1484
|
+
r(O, s, M[s]);
|
|
1485
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(O, Object.getOwnPropertyDescriptors(M)) : e(Object(M)).forEach(function(s) {
|
|
1486
|
+
Object.defineProperty(O, s, Object.getOwnPropertyDescriptor(M, s));
|
|
1487
|
+
});
|
|
1488
|
+
}
|
|
1489
|
+
return O;
|
|
1490
|
+
}
|
|
1491
|
+
function r(O, C, M) {
|
|
1492
|
+
return C = l(C), C in O ? Object.defineProperty(O, C, { value: M, enumerable: !0, configurable: !0, writable: !0 }) : O[C] = M, O;
|
|
1493
|
+
}
|
|
1494
|
+
function n(O, C) {
|
|
1495
|
+
if (!(O instanceof C))
|
|
1496
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1497
|
+
}
|
|
1498
|
+
function i(O, C) {
|
|
1499
|
+
for (var M = 0; M < C.length; M++) {
|
|
1500
|
+
var s = C[M];
|
|
1501
|
+
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(O, l(s.key), s);
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
function c(O, C, M) {
|
|
1505
|
+
return C && i(O.prototype, C), Object.defineProperty(O, "prototype", { writable: !1 }), O;
|
|
1506
|
+
}
|
|
1507
|
+
function l(O) {
|
|
1508
|
+
var C = h(O, "string");
|
|
1509
|
+
return typeof C == "symbol" ? C : String(C);
|
|
1510
|
+
}
|
|
1511
|
+
function h(O, C) {
|
|
1512
|
+
if (typeof O != "object" || O === null)
|
|
1513
|
+
return O;
|
|
1514
|
+
var M = O[Symbol.toPrimitive];
|
|
1515
|
+
if (M !== void 0) {
|
|
1516
|
+
var s = M.call(O, C || "default");
|
|
1517
|
+
if (typeof s != "object")
|
|
1518
|
+
return s;
|
|
1519
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1520
|
+
}
|
|
1521
|
+
return (C === "string" ? String : Number)(O);
|
|
1522
|
+
}
|
|
1523
|
+
var p = Ge, A = p.Buffer, L = Mt, E = L.inspect, N = E && E.custom || "inspect";
|
|
1524
|
+
function W(O, C, M) {
|
|
1525
|
+
A.prototype.copy.call(O, C, M);
|
|
1526
|
+
}
|
|
1527
|
+
return ut = /* @__PURE__ */ function() {
|
|
1528
|
+
function O() {
|
|
1529
|
+
n(this, O), this.head = null, this.tail = null, this.length = 0;
|
|
1530
|
+
}
|
|
1531
|
+
return c(O, [{
|
|
1532
|
+
key: "push",
|
|
1533
|
+
value: function(M) {
|
|
1534
|
+
var s = {
|
|
1535
|
+
data: M,
|
|
1536
|
+
next: null
|
|
1537
|
+
};
|
|
1538
|
+
this.length > 0 ? this.tail.next = s : this.head = s, this.tail = s, ++this.length;
|
|
1539
|
+
}
|
|
1540
|
+
}, {
|
|
1541
|
+
key: "unshift",
|
|
1542
|
+
value: function(M) {
|
|
1543
|
+
var s = {
|
|
1544
|
+
data: M,
|
|
1545
|
+
next: this.head
|
|
1546
|
+
};
|
|
1547
|
+
this.length === 0 && (this.tail = s), this.head = s, ++this.length;
|
|
1548
|
+
}
|
|
1549
|
+
}, {
|
|
1550
|
+
key: "shift",
|
|
1551
|
+
value: function() {
|
|
1552
|
+
if (this.length !== 0) {
|
|
1553
|
+
var M = this.head.data;
|
|
1554
|
+
return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, M;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
}, {
|
|
1558
|
+
key: "clear",
|
|
1559
|
+
value: function() {
|
|
1560
|
+
this.head = this.tail = null, this.length = 0;
|
|
1561
|
+
}
|
|
1562
|
+
}, {
|
|
1563
|
+
key: "join",
|
|
1564
|
+
value: function(M) {
|
|
1565
|
+
if (this.length === 0)
|
|
1566
|
+
return "";
|
|
1567
|
+
for (var s = this.head, m = "" + s.data; s = s.next; )
|
|
1568
|
+
m += M + s.data;
|
|
1569
|
+
return m;
|
|
1570
|
+
}
|
|
1571
|
+
}, {
|
|
1572
|
+
key: "concat",
|
|
1573
|
+
value: function(M) {
|
|
1574
|
+
if (this.length === 0)
|
|
1575
|
+
return A.alloc(0);
|
|
1576
|
+
for (var s = A.allocUnsafe(M >>> 0), m = this.head, S = 0; m; )
|
|
1577
|
+
W(m.data, s, S), S += m.data.length, m = m.next;
|
|
1578
|
+
return s;
|
|
1579
|
+
}
|
|
1580
|
+
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
1581
|
+
}, {
|
|
1582
|
+
key: "consume",
|
|
1583
|
+
value: function(M, s) {
|
|
1584
|
+
var m;
|
|
1585
|
+
return M < this.head.data.length ? (m = this.head.data.slice(0, M), this.head.data = this.head.data.slice(M)) : M === this.head.data.length ? m = this.shift() : m = s ? this._getString(M) : this._getBuffer(M), m;
|
|
1586
|
+
}
|
|
1587
|
+
}, {
|
|
1588
|
+
key: "first",
|
|
1589
|
+
value: function() {
|
|
1590
|
+
return this.head.data;
|
|
1591
|
+
}
|
|
1592
|
+
// Consumes a specified amount of characters from the buffered data.
|
|
1593
|
+
}, {
|
|
1594
|
+
key: "_getString",
|
|
1595
|
+
value: function(M) {
|
|
1596
|
+
var s = this.head, m = 1, S = s.data;
|
|
1597
|
+
for (M -= S.length; s = s.next; ) {
|
|
1598
|
+
var R = s.data, P = M > R.length ? R.length : M;
|
|
1599
|
+
if (P === R.length ? S += R : S += R.slice(0, M), M -= P, M === 0) {
|
|
1600
|
+
P === R.length ? (++m, s.next ? this.head = s.next : this.head = this.tail = null) : (this.head = s, s.data = R.slice(P));
|
|
1601
|
+
break;
|
|
1602
|
+
}
|
|
1603
|
+
++m;
|
|
1604
|
+
}
|
|
1605
|
+
return this.length -= m, S;
|
|
1606
|
+
}
|
|
1607
|
+
// Consumes a specified amount of bytes from the buffered data.
|
|
1608
|
+
}, {
|
|
1609
|
+
key: "_getBuffer",
|
|
1610
|
+
value: function(M) {
|
|
1611
|
+
var s = A.allocUnsafe(M), m = this.head, S = 1;
|
|
1612
|
+
for (m.data.copy(s), M -= m.data.length; m = m.next; ) {
|
|
1613
|
+
var R = m.data, P = M > R.length ? R.length : M;
|
|
1614
|
+
if (R.copy(s, s.length - M, 0, P), M -= P, M === 0) {
|
|
1615
|
+
P === R.length ? (++S, m.next ? this.head = m.next : this.head = this.tail = null) : (this.head = m, m.data = R.slice(P));
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
++S;
|
|
1619
|
+
}
|
|
1620
|
+
return this.length -= S, s;
|
|
1621
|
+
}
|
|
1622
|
+
// Make sure the linked list only shows the minimal necessary information.
|
|
1623
|
+
}, {
|
|
1624
|
+
key: N,
|
|
1625
|
+
value: function(M, s) {
|
|
1626
|
+
return E(this, t(t({}, s), {}, {
|
|
1627
|
+
// Only inspect one level.
|
|
1628
|
+
depth: 0,
|
|
1629
|
+
// It should not recurse.
|
|
1630
|
+
customInspect: !1
|
|
1631
|
+
}));
|
|
1632
|
+
}
|
|
1633
|
+
}]), O;
|
|
1634
|
+
}(), ut;
|
|
1635
|
+
}
|
|
1636
|
+
function Ki(e, t) {
|
|
1637
|
+
var r = this, n = this._readableState && this._readableState.destroyed, i = this._writableState && this._writableState.destroyed;
|
|
1638
|
+
return n || i ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, U.nextTick(Rt, this, e)) : U.nextTick(Rt, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(c) {
|
|
1639
|
+
!t && c ? r._writableState ? r._writableState.errorEmitted ? U.nextTick(Ue, r) : (r._writableState.errorEmitted = !0, U.nextTick(rr, r, c)) : U.nextTick(rr, r, c) : t ? (U.nextTick(Ue, r), t(c)) : U.nextTick(Ue, r);
|
|
1640
|
+
}), this);
|
|
1641
|
+
}
|
|
1642
|
+
function rr(e, t) {
|
|
1643
|
+
Rt(e, t), Ue(e);
|
|
1644
|
+
}
|
|
1645
|
+
function Ue(e) {
|
|
1646
|
+
e._writableState && !e._writableState.emitClose || e._readableState && !e._readableState.emitClose || e.emit("close");
|
|
1647
|
+
}
|
|
1648
|
+
function Yi() {
|
|
1649
|
+
this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
|
|
1650
|
+
}
|
|
1651
|
+
function Rt(e, t) {
|
|
1652
|
+
e.emit("error", t);
|
|
1653
|
+
}
|
|
1654
|
+
function Ji(e, t) {
|
|
1655
|
+
var r = e._readableState, n = e._writableState;
|
|
1656
|
+
r && r.autoDestroy || n && n.autoDestroy ? e.destroy(t) : e.emit("error", t);
|
|
1657
|
+
}
|
|
1658
|
+
var Vr = {
|
|
1659
|
+
destroy: Ki,
|
|
1660
|
+
undestroy: Yi,
|
|
1661
|
+
errorOrDestroy: Ji
|
|
1662
|
+
}, ye = {};
|
|
1663
|
+
function Xi(e, t) {
|
|
1664
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
1665
|
+
}
|
|
1666
|
+
var zr = {};
|
|
1667
|
+
function ee(e, t, r) {
|
|
1668
|
+
r || (r = Error);
|
|
1669
|
+
function n(c, l, h) {
|
|
1670
|
+
return typeof t == "string" ? t : t(c, l, h);
|
|
1671
|
+
}
|
|
1672
|
+
var i = /* @__PURE__ */ function(c) {
|
|
1673
|
+
Xi(l, c);
|
|
1674
|
+
function l(h, p, A) {
|
|
1675
|
+
return c.call(this, n(h, p, A)) || this;
|
|
1676
|
+
}
|
|
1677
|
+
return l;
|
|
1678
|
+
}(r);
|
|
1679
|
+
i.prototype.name = r.name, i.prototype.code = e, zr[e] = i;
|
|
1680
|
+
}
|
|
1681
|
+
function nr(e, t) {
|
|
1682
|
+
if (Array.isArray(e)) {
|
|
1683
|
+
var r = e.length;
|
|
1684
|
+
return e = e.map(function(n) {
|
|
1685
|
+
return String(n);
|
|
1686
|
+
}), r > 2 ? "one of ".concat(t, " ").concat(e.slice(0, r - 1).join(", "), ", or ") + e[r - 1] : r === 2 ? "one of ".concat(t, " ").concat(e[0], " or ").concat(e[1]) : "of ".concat(t, " ").concat(e[0]);
|
|
1687
|
+
} else
|
|
1688
|
+
return "of ".concat(t, " ").concat(String(e));
|
|
1689
|
+
}
|
|
1690
|
+
function Zi(e, t, r) {
|
|
1691
|
+
return e.substr(0, t.length) === t;
|
|
1692
|
+
}
|
|
1693
|
+
function Qi(e, t, r) {
|
|
1694
|
+
return (r === void 0 || r > e.length) && (r = e.length), e.substring(r - t.length, r) === t;
|
|
1695
|
+
}
|
|
1696
|
+
function eo(e, t, r) {
|
|
1697
|
+
return typeof r != "number" && (r = 0), r + t.length > e.length ? !1 : e.indexOf(t, r) !== -1;
|
|
1698
|
+
}
|
|
1699
|
+
ee("ERR_INVALID_OPT_VALUE", function(e, t) {
|
|
1700
|
+
return 'The value "' + t + '" is invalid for option "' + e + '"';
|
|
1701
|
+
}, TypeError);
|
|
1702
|
+
ee("ERR_INVALID_ARG_TYPE", function(e, t, r) {
|
|
1703
|
+
var n;
|
|
1704
|
+
typeof t == "string" && Zi(t, "not ") ? (n = "must not be", t = t.replace(/^not /, "")) : n = "must be";
|
|
1705
|
+
var i;
|
|
1706
|
+
if (Qi(e, " argument"))
|
|
1707
|
+
i = "The ".concat(e, " ").concat(n, " ").concat(nr(t, "type"));
|
|
1708
|
+
else {
|
|
1709
|
+
var c = eo(e, ".") ? "property" : "argument";
|
|
1710
|
+
i = 'The "'.concat(e, '" ').concat(c, " ").concat(n, " ").concat(nr(t, "type"));
|
|
1711
|
+
}
|
|
1712
|
+
return i += ". Received type ".concat(typeof r), i;
|
|
1713
|
+
}, TypeError);
|
|
1714
|
+
ee("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
|
|
1715
|
+
ee("ERR_METHOD_NOT_IMPLEMENTED", function(e) {
|
|
1716
|
+
return "The " + e + " method is not implemented";
|
|
1717
|
+
});
|
|
1718
|
+
ee("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
|
|
1719
|
+
ee("ERR_STREAM_DESTROYED", function(e) {
|
|
1720
|
+
return "Cannot call " + e + " after a stream was destroyed";
|
|
1721
|
+
});
|
|
1722
|
+
ee("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
|
|
1723
|
+
ee("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
|
|
1724
|
+
ee("ERR_STREAM_WRITE_AFTER_END", "write after end");
|
|
1725
|
+
ee("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
|
|
1726
|
+
ee("ERR_UNKNOWN_ENCODING", function(e) {
|
|
1727
|
+
return "Unknown encoding: " + e;
|
|
1728
|
+
}, TypeError);
|
|
1729
|
+
ee("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
|
|
1730
|
+
ye.codes = zr;
|
|
1731
|
+
var to = ye.codes.ERR_INVALID_OPT_VALUE;
|
|
1732
|
+
function ro(e, t, r) {
|
|
1733
|
+
return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null;
|
|
1734
|
+
}
|
|
1735
|
+
function no(e, t, r, n) {
|
|
1736
|
+
var i = ro(t, n, r);
|
|
1737
|
+
if (i != null) {
|
|
1738
|
+
if (!(isFinite(i) && Math.floor(i) === i) || i < 0) {
|
|
1739
|
+
var c = n ? r : "highWaterMark";
|
|
1740
|
+
throw new to(c, i);
|
|
1741
|
+
}
|
|
1742
|
+
return Math.floor(i);
|
|
1743
|
+
}
|
|
1744
|
+
return e.objectMode ? 16 : 16 * 1024;
|
|
1745
|
+
}
|
|
1746
|
+
var Kr = {
|
|
1747
|
+
getHighWaterMark: no
|
|
1748
|
+
}, io = oo;
|
|
1749
|
+
function oo(e, t) {
|
|
1750
|
+
if (st("noDeprecation"))
|
|
1751
|
+
return e;
|
|
1752
|
+
var r = !1;
|
|
1753
|
+
function n() {
|
|
1754
|
+
if (!r) {
|
|
1755
|
+
if (st("throwDeprecation"))
|
|
1756
|
+
throw new Error(t);
|
|
1757
|
+
st("traceDeprecation") ? console.trace(t) : console.warn(t), r = !0;
|
|
1758
|
+
}
|
|
1759
|
+
return e.apply(this, arguments);
|
|
1760
|
+
}
|
|
1761
|
+
return n;
|
|
1762
|
+
}
|
|
1763
|
+
function st(e) {
|
|
1764
|
+
try {
|
|
1765
|
+
if (!V.localStorage)
|
|
1766
|
+
return !1;
|
|
1767
|
+
} catch {
|
|
1768
|
+
return !1;
|
|
1769
|
+
}
|
|
1770
|
+
var t = V.localStorage[e];
|
|
1771
|
+
return t == null ? !1 : String(t).toLowerCase() === "true";
|
|
1772
|
+
}
|
|
1773
|
+
var lt, ir;
|
|
1774
|
+
function Yr() {
|
|
1775
|
+
if (ir)
|
|
1776
|
+
return lt;
|
|
1777
|
+
ir = 1, lt = F;
|
|
1778
|
+
function e(u) {
|
|
1779
|
+
var f = this;
|
|
1780
|
+
this.next = null, this.entry = null, this.finish = function() {
|
|
1781
|
+
D(f, u);
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
var t;
|
|
1785
|
+
F.WritableState = B;
|
|
1786
|
+
var r = {
|
|
1787
|
+
deprecate: io
|
|
1788
|
+
}, n = Mr, i = Ge.Buffer, c = (typeof V < "u" ? V : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
1789
|
+
};
|
|
1790
|
+
function l(u) {
|
|
1791
|
+
return i.from(u);
|
|
1792
|
+
}
|
|
1793
|
+
function h(u) {
|
|
1794
|
+
return i.isBuffer(u) || u instanceof c;
|
|
1795
|
+
}
|
|
1796
|
+
var p = Vr, A = Kr, L = A.getHighWaterMark, E = ye.codes, N = E.ERR_INVALID_ARG_TYPE, W = E.ERR_METHOD_NOT_IMPLEMENTED, O = E.ERR_MULTIPLE_CALLBACK, C = E.ERR_STREAM_CANNOT_PIPE, M = E.ERR_STREAM_DESTROYED, s = E.ERR_STREAM_NULL_VALUES, m = E.ERR_STREAM_WRITE_AFTER_END, S = E.ERR_UNKNOWN_ENCODING, R = p.errorOrDestroy;
|
|
1797
|
+
le(F, n);
|
|
1798
|
+
function P() {
|
|
1799
|
+
}
|
|
1800
|
+
function B(u, f, y) {
|
|
1801
|
+
t = t || Re(), u = u || {}, typeof y != "boolean" && (y = f instanceof t), this.objectMode = !!u.objectMode, y && (this.objectMode = this.objectMode || !!u.writableObjectMode), this.highWaterMark = L(this, u, "writableHighWaterMark", y), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
1802
|
+
var w = u.decodeStrings === !1;
|
|
1803
|
+
this.decodeStrings = !w, this.defaultEncoding = u.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(j) {
|
|
1804
|
+
ae(f, j);
|
|
1805
|
+
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = u.emitClose !== !1, this.autoDestroy = !!u.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
|
|
1806
|
+
}
|
|
1807
|
+
B.prototype.getBuffer = function() {
|
|
1808
|
+
for (var f = this.bufferedRequest, y = []; f; )
|
|
1809
|
+
y.push(f), f = f.next;
|
|
1810
|
+
return y;
|
|
1811
|
+
}, function() {
|
|
1812
|
+
try {
|
|
1813
|
+
Object.defineProperty(B.prototype, "buffer", {
|
|
1814
|
+
get: r.deprecate(function() {
|
|
1815
|
+
return this.getBuffer();
|
|
1816
|
+
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
|
|
1817
|
+
});
|
|
1818
|
+
} catch {
|
|
1819
|
+
}
|
|
1820
|
+
}();
|
|
1821
|
+
var q;
|
|
1822
|
+
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (q = Function.prototype[Symbol.hasInstance], Object.defineProperty(F, Symbol.hasInstance, {
|
|
1823
|
+
value: function(f) {
|
|
1824
|
+
return q.call(this, f) ? !0 : this !== F ? !1 : f && f._writableState instanceof B;
|
|
1825
|
+
}
|
|
1826
|
+
})) : q = function(f) {
|
|
1827
|
+
return f instanceof this;
|
|
1828
|
+
};
|
|
1829
|
+
function F(u) {
|
|
1830
|
+
t = t || Re();
|
|
1831
|
+
var f = this instanceof t;
|
|
1832
|
+
if (!f && !q.call(F, this))
|
|
1833
|
+
return new F(u);
|
|
1834
|
+
this._writableState = new B(u, this, f), this.writable = !0, u && (typeof u.write == "function" && (this._write = u.write), typeof u.writev == "function" && (this._writev = u.writev), typeof u.destroy == "function" && (this._destroy = u.destroy), typeof u.final == "function" && (this._final = u.final)), n.call(this);
|
|
1835
|
+
}
|
|
1836
|
+
F.prototype.pipe = function() {
|
|
1837
|
+
R(this, new C());
|
|
1838
|
+
};
|
|
1839
|
+
function I(u, f) {
|
|
1840
|
+
var y = new m();
|
|
1841
|
+
R(u, y), U.nextTick(f, y);
|
|
1842
|
+
}
|
|
1843
|
+
function K(u, f, y, w) {
|
|
1844
|
+
var j;
|
|
1845
|
+
return y === null ? j = new s() : typeof y != "string" && !f.objectMode && (j = new N("chunk", ["string", "Buffer"], y)), j ? (R(u, j), U.nextTick(w, j), !1) : !0;
|
|
1846
|
+
}
|
|
1847
|
+
F.prototype.write = function(u, f, y) {
|
|
1848
|
+
var w = this._writableState, j = !1, o = !w.objectMode && h(u);
|
|
1849
|
+
return o && !i.isBuffer(u) && (u = l(u)), typeof f == "function" && (y = f, f = null), o ? f = "buffer" : f || (f = w.defaultEncoding), typeof y != "function" && (y = P), w.ending ? I(this, y) : (o || K(this, w, u, y)) && (w.pendingcb++, j = Z(this, w, o, u, f, y)), j;
|
|
1850
|
+
}, F.prototype.cork = function() {
|
|
1851
|
+
this._writableState.corked++;
|
|
1852
|
+
}, F.prototype.uncork = function() {
|
|
1853
|
+
var u = this._writableState;
|
|
1854
|
+
u.corked && (u.corked--, !u.writing && !u.corked && !u.bufferProcessing && u.bufferedRequest && Y(this, u));
|
|
1855
|
+
}, F.prototype.setDefaultEncoding = function(f) {
|
|
1856
|
+
if (typeof f == "string" && (f = f.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((f + "").toLowerCase()) > -1))
|
|
1857
|
+
throw new S(f);
|
|
1858
|
+
return this._writableState.defaultEncoding = f, this;
|
|
1859
|
+
}, Object.defineProperty(F.prototype, "writableBuffer", {
|
|
1860
|
+
// making it explicit this property is not enumerable
|
|
1861
|
+
// because otherwise some prototype manipulation in
|
|
1862
|
+
// userland will fail
|
|
1863
|
+
enumerable: !1,
|
|
1864
|
+
get: function() {
|
|
1865
|
+
return this._writableState && this._writableState.getBuffer();
|
|
1866
|
+
}
|
|
1867
|
+
});
|
|
1868
|
+
function X(u, f, y) {
|
|
1869
|
+
return !u.objectMode && u.decodeStrings !== !1 && typeof f == "string" && (f = i.from(f, y)), f;
|
|
1870
|
+
}
|
|
1871
|
+
Object.defineProperty(F.prototype, "writableHighWaterMark", {
|
|
1872
|
+
// making it explicit this property is not enumerable
|
|
1873
|
+
// because otherwise some prototype manipulation in
|
|
1874
|
+
// userland will fail
|
|
1875
|
+
enumerable: !1,
|
|
1876
|
+
get: function() {
|
|
1877
|
+
return this._writableState.highWaterMark;
|
|
1878
|
+
}
|
|
1879
|
+
});
|
|
1880
|
+
function Z(u, f, y, w, j, o) {
|
|
1881
|
+
if (!y) {
|
|
1882
|
+
var a = X(f, w, j);
|
|
1883
|
+
w !== a && (y = !0, j = "buffer", w = a);
|
|
1884
|
+
}
|
|
1885
|
+
var b = f.objectMode ? 1 : w.length;
|
|
1886
|
+
f.length += b;
|
|
1887
|
+
var T = f.length < f.highWaterMark;
|
|
1888
|
+
if (T || (f.needDrain = !0), f.writing || f.corked) {
|
|
1889
|
+
var G = f.lastBufferedRequest;
|
|
1890
|
+
f.lastBufferedRequest = {
|
|
1891
|
+
chunk: w,
|
|
1892
|
+
encoding: j,
|
|
1893
|
+
isBuf: y,
|
|
1894
|
+
callback: o,
|
|
1895
|
+
next: null
|
|
1896
|
+
}, G ? G.next = f.lastBufferedRequest : f.bufferedRequest = f.lastBufferedRequest, f.bufferedRequestCount += 1;
|
|
1897
|
+
} else
|
|
1898
|
+
ie(u, f, !1, b, w, j, o);
|
|
1899
|
+
return T;
|
|
1900
|
+
}
|
|
1901
|
+
function ie(u, f, y, w, j, o, a) {
|
|
1902
|
+
f.writelen = w, f.writecb = a, f.writing = !0, f.sync = !0, f.destroyed ? f.onwrite(new M("write")) : y ? u._writev(j, f.onwrite) : u._write(j, o, f.onwrite), f.sync = !1;
|
|
1903
|
+
}
|
|
1904
|
+
function Q(u, f, y, w, j) {
|
|
1905
|
+
--f.pendingcb, y ? (U.nextTick(j, w), U.nextTick(g, u, f), u._writableState.errorEmitted = !0, R(u, w)) : (j(w), u._writableState.errorEmitted = !0, R(u, w), g(u, f));
|
|
1906
|
+
}
|
|
1907
|
+
function oe(u) {
|
|
1908
|
+
u.writing = !1, u.writecb = null, u.length -= u.writelen, u.writelen = 0;
|
|
1909
|
+
}
|
|
1910
|
+
function ae(u, f) {
|
|
1911
|
+
var y = u._writableState, w = y.sync, j = y.writecb;
|
|
1912
|
+
if (typeof j != "function")
|
|
1913
|
+
throw new O();
|
|
1914
|
+
if (oe(y), f)
|
|
1915
|
+
Q(u, y, w, f, j);
|
|
1916
|
+
else {
|
|
1917
|
+
var o = ne(y) || u.destroyed;
|
|
1918
|
+
!o && !y.corked && !y.bufferProcessing && y.bufferedRequest && Y(u, y), w ? U.nextTick(te, u, y, o, j) : te(u, y, o, j);
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
function te(u, f, y, w) {
|
|
1922
|
+
y || re(u, f), f.pendingcb--, w(), g(u, f);
|
|
1923
|
+
}
|
|
1924
|
+
function re(u, f) {
|
|
1925
|
+
f.length === 0 && f.needDrain && (f.needDrain = !1, u.emit("drain"));
|
|
1926
|
+
}
|
|
1927
|
+
function Y(u, f) {
|
|
1928
|
+
f.bufferProcessing = !0;
|
|
1929
|
+
var y = f.bufferedRequest;
|
|
1930
|
+
if (u._writev && y && y.next) {
|
|
1931
|
+
var w = f.bufferedRequestCount, j = new Array(w), o = f.corkedRequestsFree;
|
|
1932
|
+
o.entry = y;
|
|
1933
|
+
for (var a = 0, b = !0; y; )
|
|
1934
|
+
j[a] = y, y.isBuf || (b = !1), y = y.next, a += 1;
|
|
1935
|
+
j.allBuffers = b, ie(u, f, !0, f.length, j, "", o.finish), f.pendingcb++, f.lastBufferedRequest = null, o.next ? (f.corkedRequestsFree = o.next, o.next = null) : f.corkedRequestsFree = new e(f), f.bufferedRequestCount = 0;
|
|
1936
|
+
} else {
|
|
1937
|
+
for (; y; ) {
|
|
1938
|
+
var T = y.chunk, G = y.encoding, k = y.callback, x = f.objectMode ? 1 : T.length;
|
|
1939
|
+
if (ie(u, f, !1, x, T, G, k), y = y.next, f.bufferedRequestCount--, f.writing)
|
|
1940
|
+
break;
|
|
1941
|
+
}
|
|
1942
|
+
y === null && (f.lastBufferedRequest = null);
|
|
1943
|
+
}
|
|
1944
|
+
f.bufferedRequest = y, f.bufferProcessing = !1;
|
|
1945
|
+
}
|
|
1946
|
+
F.prototype._write = function(u, f, y) {
|
|
1947
|
+
y(new W("_write()"));
|
|
1948
|
+
}, F.prototype._writev = null, F.prototype.end = function(u, f, y) {
|
|
1949
|
+
var w = this._writableState;
|
|
1950
|
+
return typeof u == "function" ? (y = u, u = null, f = null) : typeof f == "function" && (y = f, f = null), u != null && this.write(u, f), w.corked && (w.corked = 1, this.uncork()), w.ending || _(this, w, y), this;
|
|
1951
|
+
}, Object.defineProperty(F.prototype, "writableLength", {
|
|
1952
|
+
// making it explicit this property is not enumerable
|
|
1953
|
+
// because otherwise some prototype manipulation in
|
|
1954
|
+
// userland will fail
|
|
1955
|
+
enumerable: !1,
|
|
1956
|
+
get: function() {
|
|
1957
|
+
return this._writableState.length;
|
|
1958
|
+
}
|
|
1959
|
+
});
|
|
1960
|
+
function ne(u) {
|
|
1961
|
+
return u.ending && u.length === 0 && u.bufferedRequest === null && !u.finished && !u.writing;
|
|
1962
|
+
}
|
|
1963
|
+
function ue(u, f) {
|
|
1964
|
+
u._final(function(y) {
|
|
1965
|
+
f.pendingcb--, y && R(u, y), f.prefinished = !0, u.emit("prefinish"), g(u, f);
|
|
1966
|
+
});
|
|
1967
|
+
}
|
|
1968
|
+
function d(u, f) {
|
|
1969
|
+
!f.prefinished && !f.finalCalled && (typeof u._final == "function" && !f.destroyed ? (f.pendingcb++, f.finalCalled = !0, U.nextTick(ue, u, f)) : (f.prefinished = !0, u.emit("prefinish")));
|
|
1970
|
+
}
|
|
1971
|
+
function g(u, f) {
|
|
1972
|
+
var y = ne(f);
|
|
1973
|
+
if (y && (d(u, f), f.pendingcb === 0 && (f.finished = !0, u.emit("finish"), f.autoDestroy))) {
|
|
1974
|
+
var w = u._readableState;
|
|
1975
|
+
(!w || w.autoDestroy && w.endEmitted) && u.destroy();
|
|
1976
|
+
}
|
|
1977
|
+
return y;
|
|
1978
|
+
}
|
|
1979
|
+
function _(u, f, y) {
|
|
1980
|
+
f.ending = !0, g(u, f), y && (f.finished ? U.nextTick(y) : u.once("finish", y)), f.ended = !0, u.writable = !1;
|
|
1981
|
+
}
|
|
1982
|
+
function D(u, f, y) {
|
|
1983
|
+
var w = u.entry;
|
|
1984
|
+
for (u.entry = null; w; ) {
|
|
1985
|
+
var j = w.callback;
|
|
1986
|
+
f.pendingcb--, j(y), w = w.next;
|
|
1987
|
+
}
|
|
1988
|
+
f.corkedRequestsFree.next = u;
|
|
1989
|
+
}
|
|
1990
|
+
return Object.defineProperty(F.prototype, "destroyed", {
|
|
1991
|
+
// making it explicit this property is not enumerable
|
|
1992
|
+
// because otherwise some prototype manipulation in
|
|
1993
|
+
// userland will fail
|
|
1994
|
+
enumerable: !1,
|
|
1995
|
+
get: function() {
|
|
1996
|
+
return this._writableState === void 0 ? !1 : this._writableState.destroyed;
|
|
1997
|
+
},
|
|
1998
|
+
set: function(f) {
|
|
1999
|
+
this._writableState && (this._writableState.destroyed = f);
|
|
2000
|
+
}
|
|
2001
|
+
}), F.prototype.destroy = p.destroy, F.prototype._undestroy = p.undestroy, F.prototype._destroy = function(u, f) {
|
|
2002
|
+
f(u);
|
|
2003
|
+
}, lt;
|
|
2004
|
+
}
|
|
2005
|
+
var ct, or;
|
|
2006
|
+
function Re() {
|
|
2007
|
+
if (or)
|
|
2008
|
+
return ct;
|
|
2009
|
+
or = 1;
|
|
2010
|
+
var e = Object.keys || function(A) {
|
|
2011
|
+
var L = [];
|
|
2012
|
+
for (var E in A)
|
|
2013
|
+
L.push(E);
|
|
2014
|
+
return L;
|
|
2015
|
+
};
|
|
2016
|
+
ct = l;
|
|
2017
|
+
var t = Xr(), r = Yr();
|
|
2018
|
+
le(l, t);
|
|
2019
|
+
for (var n = e(r.prototype), i = 0; i < n.length; i++) {
|
|
2020
|
+
var c = n[i];
|
|
2021
|
+
l.prototype[c] || (l.prototype[c] = r.prototype[c]);
|
|
2022
|
+
}
|
|
2023
|
+
function l(A) {
|
|
2024
|
+
if (!(this instanceof l))
|
|
2025
|
+
return new l(A);
|
|
2026
|
+
t.call(this, A), r.call(this, A), this.allowHalfOpen = !0, A && (A.readable === !1 && (this.readable = !1), A.writable === !1 && (this.writable = !1), A.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", h)));
|
|
2027
|
+
}
|
|
2028
|
+
Object.defineProperty(l.prototype, "writableHighWaterMark", {
|
|
2029
|
+
// making it explicit this property is not enumerable
|
|
2030
|
+
// because otherwise some prototype manipulation in
|
|
2031
|
+
// userland will fail
|
|
2032
|
+
enumerable: !1,
|
|
2033
|
+
get: function() {
|
|
2034
|
+
return this._writableState.highWaterMark;
|
|
2035
|
+
}
|
|
2036
|
+
}), Object.defineProperty(l.prototype, "writableBuffer", {
|
|
2037
|
+
// making it explicit this property is not enumerable
|
|
2038
|
+
// because otherwise some prototype manipulation in
|
|
2039
|
+
// userland will fail
|
|
2040
|
+
enumerable: !1,
|
|
2041
|
+
get: function() {
|
|
2042
|
+
return this._writableState && this._writableState.getBuffer();
|
|
2043
|
+
}
|
|
2044
|
+
}), Object.defineProperty(l.prototype, "writableLength", {
|
|
2045
|
+
// making it explicit this property is not enumerable
|
|
2046
|
+
// because otherwise some prototype manipulation in
|
|
2047
|
+
// userland will fail
|
|
2048
|
+
enumerable: !1,
|
|
2049
|
+
get: function() {
|
|
2050
|
+
return this._writableState.length;
|
|
2051
|
+
}
|
|
2052
|
+
});
|
|
2053
|
+
function h() {
|
|
2054
|
+
this._writableState.ended || U.nextTick(p, this);
|
|
2055
|
+
}
|
|
2056
|
+
function p(A) {
|
|
2057
|
+
A.end();
|
|
2058
|
+
}
|
|
2059
|
+
return Object.defineProperty(l.prototype, "destroyed", {
|
|
2060
|
+
// making it explicit this property is not enumerable
|
|
2061
|
+
// because otherwise some prototype manipulation in
|
|
2062
|
+
// userland will fail
|
|
2063
|
+
enumerable: !1,
|
|
2064
|
+
get: function() {
|
|
2065
|
+
return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed;
|
|
2066
|
+
},
|
|
2067
|
+
set: function(L) {
|
|
2068
|
+
this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = L, this._writableState.destroyed = L);
|
|
2069
|
+
}
|
|
2070
|
+
}), ct;
|
|
2071
|
+
}
|
|
2072
|
+
var dt = {}, Le = { exports: {} };
|
|
2073
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
2074
|
+
var ar;
|
|
2075
|
+
function ao() {
|
|
2076
|
+
return ar || (ar = 1, function(e, t) {
|
|
2077
|
+
var r = Ge, n = r.Buffer;
|
|
2078
|
+
function i(l, h) {
|
|
2079
|
+
for (var p in l)
|
|
2080
|
+
h[p] = l[p];
|
|
2081
|
+
}
|
|
2082
|
+
n.from && n.alloc && n.allocUnsafe && n.allocUnsafeSlow ? e.exports = r : (i(r, t), t.Buffer = c);
|
|
2083
|
+
function c(l, h, p) {
|
|
2084
|
+
return n(l, h, p);
|
|
2085
|
+
}
|
|
2086
|
+
c.prototype = Object.create(n.prototype), i(n, c), c.from = function(l, h, p) {
|
|
2087
|
+
if (typeof l == "number")
|
|
2088
|
+
throw new TypeError("Argument must not be a number");
|
|
2089
|
+
return n(l, h, p);
|
|
2090
|
+
}, c.alloc = function(l, h, p) {
|
|
2091
|
+
if (typeof l != "number")
|
|
2092
|
+
throw new TypeError("Argument must be a number");
|
|
2093
|
+
var A = n(l);
|
|
2094
|
+
return h !== void 0 ? typeof p == "string" ? A.fill(h, p) : A.fill(h) : A.fill(0), A;
|
|
2095
|
+
}, c.allocUnsafe = function(l) {
|
|
2096
|
+
if (typeof l != "number")
|
|
2097
|
+
throw new TypeError("Argument must be a number");
|
|
2098
|
+
return n(l);
|
|
2099
|
+
}, c.allocUnsafeSlow = function(l) {
|
|
2100
|
+
if (typeof l != "number")
|
|
2101
|
+
throw new TypeError("Argument must be a number");
|
|
2102
|
+
return r.SlowBuffer(l);
|
|
2103
|
+
};
|
|
2104
|
+
}(Le, Le.exports)), Le.exports;
|
|
2105
|
+
}
|
|
2106
|
+
var fr;
|
|
2107
|
+
function ur() {
|
|
2108
|
+
if (fr)
|
|
2109
|
+
return dt;
|
|
2110
|
+
fr = 1;
|
|
2111
|
+
var e = ao().Buffer, t = e.isEncoding || function(s) {
|
|
2112
|
+
switch (s = "" + s, s && s.toLowerCase()) {
|
|
2113
|
+
case "hex":
|
|
2114
|
+
case "utf8":
|
|
2115
|
+
case "utf-8":
|
|
2116
|
+
case "ascii":
|
|
2117
|
+
case "binary":
|
|
2118
|
+
case "base64":
|
|
2119
|
+
case "ucs2":
|
|
2120
|
+
case "ucs-2":
|
|
2121
|
+
case "utf16le":
|
|
2122
|
+
case "utf-16le":
|
|
2123
|
+
case "raw":
|
|
2124
|
+
return !0;
|
|
2125
|
+
default:
|
|
2126
|
+
return !1;
|
|
2127
|
+
}
|
|
2128
|
+
};
|
|
2129
|
+
function r(s) {
|
|
2130
|
+
if (!s)
|
|
2131
|
+
return "utf8";
|
|
2132
|
+
for (var m; ; )
|
|
2133
|
+
switch (s) {
|
|
2134
|
+
case "utf8":
|
|
2135
|
+
case "utf-8":
|
|
2136
|
+
return "utf8";
|
|
2137
|
+
case "ucs2":
|
|
2138
|
+
case "ucs-2":
|
|
2139
|
+
case "utf16le":
|
|
2140
|
+
case "utf-16le":
|
|
2141
|
+
return "utf16le";
|
|
2142
|
+
case "latin1":
|
|
2143
|
+
case "binary":
|
|
2144
|
+
return "latin1";
|
|
2145
|
+
case "base64":
|
|
2146
|
+
case "ascii":
|
|
2147
|
+
case "hex":
|
|
2148
|
+
return s;
|
|
2149
|
+
default:
|
|
2150
|
+
if (m)
|
|
2151
|
+
return;
|
|
2152
|
+
s = ("" + s).toLowerCase(), m = !0;
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
function n(s) {
|
|
2156
|
+
var m = r(s);
|
|
2157
|
+
if (typeof m != "string" && (e.isEncoding === t || !t(s)))
|
|
2158
|
+
throw new Error("Unknown encoding: " + s);
|
|
2159
|
+
return m || s;
|
|
2160
|
+
}
|
|
2161
|
+
dt.StringDecoder = i;
|
|
2162
|
+
function i(s) {
|
|
2163
|
+
this.encoding = n(s);
|
|
2164
|
+
var m;
|
|
2165
|
+
switch (this.encoding) {
|
|
2166
|
+
case "utf16le":
|
|
2167
|
+
this.text = E, this.end = N, m = 4;
|
|
2168
|
+
break;
|
|
2169
|
+
case "utf8":
|
|
2170
|
+
this.fillLast = p, m = 4;
|
|
2171
|
+
break;
|
|
2172
|
+
case "base64":
|
|
2173
|
+
this.text = W, this.end = O, m = 3;
|
|
2174
|
+
break;
|
|
2175
|
+
default:
|
|
2176
|
+
this.write = C, this.end = M;
|
|
2177
|
+
return;
|
|
2178
|
+
}
|
|
2179
|
+
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(m);
|
|
2180
|
+
}
|
|
2181
|
+
i.prototype.write = function(s) {
|
|
2182
|
+
if (s.length === 0)
|
|
2183
|
+
return "";
|
|
2184
|
+
var m, S;
|
|
2185
|
+
if (this.lastNeed) {
|
|
2186
|
+
if (m = this.fillLast(s), m === void 0)
|
|
2187
|
+
return "";
|
|
2188
|
+
S = this.lastNeed, this.lastNeed = 0;
|
|
2189
|
+
} else
|
|
2190
|
+
S = 0;
|
|
2191
|
+
return S < s.length ? m ? m + this.text(s, S) : this.text(s, S) : m || "";
|
|
2192
|
+
}, i.prototype.end = L, i.prototype.text = A, i.prototype.fillLast = function(s) {
|
|
2193
|
+
if (this.lastNeed <= s.length)
|
|
2194
|
+
return s.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
2195
|
+
s.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, s.length), this.lastNeed -= s.length;
|
|
2196
|
+
};
|
|
2197
|
+
function c(s) {
|
|
2198
|
+
return s <= 127 ? 0 : s >> 5 === 6 ? 2 : s >> 4 === 14 ? 3 : s >> 3 === 30 ? 4 : s >> 6 === 2 ? -1 : -2;
|
|
2199
|
+
}
|
|
2200
|
+
function l(s, m, S) {
|
|
2201
|
+
var R = m.length - 1;
|
|
2202
|
+
if (R < S)
|
|
2203
|
+
return 0;
|
|
2204
|
+
var P = c(m[R]);
|
|
2205
|
+
return P >= 0 ? (P > 0 && (s.lastNeed = P - 1), P) : --R < S || P === -2 ? 0 : (P = c(m[R]), P >= 0 ? (P > 0 && (s.lastNeed = P - 2), P) : --R < S || P === -2 ? 0 : (P = c(m[R]), P >= 0 ? (P > 0 && (P === 2 ? P = 0 : s.lastNeed = P - 3), P) : 0));
|
|
2206
|
+
}
|
|
2207
|
+
function h(s, m, S) {
|
|
2208
|
+
if ((m[0] & 192) !== 128)
|
|
2209
|
+
return s.lastNeed = 0, "�";
|
|
2210
|
+
if (s.lastNeed > 1 && m.length > 1) {
|
|
2211
|
+
if ((m[1] & 192) !== 128)
|
|
2212
|
+
return s.lastNeed = 1, "�";
|
|
2213
|
+
if (s.lastNeed > 2 && m.length > 2 && (m[2] & 192) !== 128)
|
|
2214
|
+
return s.lastNeed = 2, "�";
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
function p(s) {
|
|
2218
|
+
var m = this.lastTotal - this.lastNeed, S = h(this, s);
|
|
2219
|
+
if (S !== void 0)
|
|
2220
|
+
return S;
|
|
2221
|
+
if (this.lastNeed <= s.length)
|
|
2222
|
+
return s.copy(this.lastChar, m, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
2223
|
+
s.copy(this.lastChar, m, 0, s.length), this.lastNeed -= s.length;
|
|
2224
|
+
}
|
|
2225
|
+
function A(s, m) {
|
|
2226
|
+
var S = l(this, s, m);
|
|
2227
|
+
if (!this.lastNeed)
|
|
2228
|
+
return s.toString("utf8", m);
|
|
2229
|
+
this.lastTotal = S;
|
|
2230
|
+
var R = s.length - (S - this.lastNeed);
|
|
2231
|
+
return s.copy(this.lastChar, 0, R), s.toString("utf8", m, R);
|
|
2232
|
+
}
|
|
2233
|
+
function L(s) {
|
|
2234
|
+
var m = s && s.length ? this.write(s) : "";
|
|
2235
|
+
return this.lastNeed ? m + "�" : m;
|
|
2236
|
+
}
|
|
2237
|
+
function E(s, m) {
|
|
2238
|
+
if ((s.length - m) % 2 === 0) {
|
|
2239
|
+
var S = s.toString("utf16le", m);
|
|
2240
|
+
if (S) {
|
|
2241
|
+
var R = S.charCodeAt(S.length - 1);
|
|
2242
|
+
if (R >= 55296 && R <= 56319)
|
|
2243
|
+
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = s[s.length - 2], this.lastChar[1] = s[s.length - 1], S.slice(0, -1);
|
|
2244
|
+
}
|
|
2245
|
+
return S;
|
|
2246
|
+
}
|
|
2247
|
+
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = s[s.length - 1], s.toString("utf16le", m, s.length - 1);
|
|
2248
|
+
}
|
|
2249
|
+
function N(s) {
|
|
2250
|
+
var m = s && s.length ? this.write(s) : "";
|
|
2251
|
+
if (this.lastNeed) {
|
|
2252
|
+
var S = this.lastTotal - this.lastNeed;
|
|
2253
|
+
return m + this.lastChar.toString("utf16le", 0, S);
|
|
2254
|
+
}
|
|
2255
|
+
return m;
|
|
2256
|
+
}
|
|
2257
|
+
function W(s, m) {
|
|
2258
|
+
var S = (s.length - m) % 3;
|
|
2259
|
+
return S === 0 ? s.toString("base64", m) : (this.lastNeed = 3 - S, this.lastTotal = 3, S === 1 ? this.lastChar[0] = s[s.length - 1] : (this.lastChar[0] = s[s.length - 2], this.lastChar[1] = s[s.length - 1]), s.toString("base64", m, s.length - S));
|
|
2260
|
+
}
|
|
2261
|
+
function O(s) {
|
|
2262
|
+
var m = s && s.length ? this.write(s) : "";
|
|
2263
|
+
return this.lastNeed ? m + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : m;
|
|
2264
|
+
}
|
|
2265
|
+
function C(s) {
|
|
2266
|
+
return s.toString(this.encoding);
|
|
2267
|
+
}
|
|
2268
|
+
function M(s) {
|
|
2269
|
+
return s && s.length ? this.write(s) : "";
|
|
2270
|
+
}
|
|
2271
|
+
return dt;
|
|
2272
|
+
}
|
|
2273
|
+
var sr = ye.codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
2274
|
+
function fo(e) {
|
|
2275
|
+
var t = !1;
|
|
2276
|
+
return function() {
|
|
2277
|
+
if (!t) {
|
|
2278
|
+
t = !0;
|
|
2279
|
+
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
2280
|
+
n[i] = arguments[i];
|
|
2281
|
+
e.apply(this, n);
|
|
2282
|
+
}
|
|
2283
|
+
};
|
|
2284
|
+
}
|
|
2285
|
+
function uo() {
|
|
2286
|
+
}
|
|
2287
|
+
function so(e) {
|
|
2288
|
+
return e.setHeader && typeof e.abort == "function";
|
|
2289
|
+
}
|
|
2290
|
+
function Jr(e, t, r) {
|
|
2291
|
+
if (typeof t == "function")
|
|
2292
|
+
return Jr(e, null, t);
|
|
2293
|
+
t || (t = {}), r = fo(r || uo);
|
|
2294
|
+
var n = t.readable || t.readable !== !1 && e.readable, i = t.writable || t.writable !== !1 && e.writable, c = function() {
|
|
2295
|
+
e.writable || h();
|
|
2296
|
+
}, l = e._writableState && e._writableState.finished, h = function() {
|
|
2297
|
+
i = !1, l = !0, n || r.call(e);
|
|
2298
|
+
}, p = e._readableState && e._readableState.endEmitted, A = function() {
|
|
2299
|
+
n = !1, p = !0, i || r.call(e);
|
|
2300
|
+
}, L = function(O) {
|
|
2301
|
+
r.call(e, O);
|
|
2302
|
+
}, E = function() {
|
|
2303
|
+
var O;
|
|
2304
|
+
if (n && !p)
|
|
2305
|
+
return (!e._readableState || !e._readableState.ended) && (O = new sr()), r.call(e, O);
|
|
2306
|
+
if (i && !l)
|
|
2307
|
+
return (!e._writableState || !e._writableState.ended) && (O = new sr()), r.call(e, O);
|
|
2308
|
+
}, N = function() {
|
|
2309
|
+
e.req.on("finish", h);
|
|
2310
|
+
};
|
|
2311
|
+
return so(e) ? (e.on("complete", h), e.on("abort", E), e.req ? N() : e.on("request", N)) : i && !e._writableState && (e.on("end", c), e.on("close", c)), e.on("end", A), e.on("finish", h), t.error !== !1 && e.on("error", L), e.on("close", E), function() {
|
|
2312
|
+
e.removeListener("complete", h), e.removeListener("abort", E), e.removeListener("request", N), e.req && e.req.removeListener("finish", h), e.removeListener("end", c), e.removeListener("close", c), e.removeListener("finish", h), e.removeListener("end", A), e.removeListener("error", L), e.removeListener("close", E);
|
|
2313
|
+
};
|
|
2314
|
+
}
|
|
2315
|
+
var Bt = Jr, pt, lr;
|
|
2316
|
+
function lo() {
|
|
2317
|
+
if (lr)
|
|
2318
|
+
return pt;
|
|
2319
|
+
lr = 1;
|
|
2320
|
+
var e;
|
|
2321
|
+
function t(S, R, P) {
|
|
2322
|
+
return R = r(R), R in S ? Object.defineProperty(S, R, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : S[R] = P, S;
|
|
2323
|
+
}
|
|
2324
|
+
function r(S) {
|
|
2325
|
+
var R = n(S, "string");
|
|
2326
|
+
return typeof R == "symbol" ? R : String(R);
|
|
2327
|
+
}
|
|
2328
|
+
function n(S, R) {
|
|
2329
|
+
if (typeof S != "object" || S === null)
|
|
2330
|
+
return S;
|
|
2331
|
+
var P = S[Symbol.toPrimitive];
|
|
2332
|
+
if (P !== void 0) {
|
|
2333
|
+
var B = P.call(S, R || "default");
|
|
2334
|
+
if (typeof B != "object")
|
|
2335
|
+
return B;
|
|
2336
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2337
|
+
}
|
|
2338
|
+
return (R === "string" ? String : Number)(S);
|
|
2339
|
+
}
|
|
2340
|
+
var i = Bt, c = Symbol("lastResolve"), l = Symbol("lastReject"), h = Symbol("error"), p = Symbol("ended"), A = Symbol("lastPromise"), L = Symbol("handlePromise"), E = Symbol("stream");
|
|
2341
|
+
function N(S, R) {
|
|
2342
|
+
return {
|
|
2343
|
+
value: S,
|
|
2344
|
+
done: R
|
|
2345
|
+
};
|
|
2346
|
+
}
|
|
2347
|
+
function W(S) {
|
|
2348
|
+
var R = S[c];
|
|
2349
|
+
if (R !== null) {
|
|
2350
|
+
var P = S[E].read();
|
|
2351
|
+
P !== null && (S[A] = null, S[c] = null, S[l] = null, R(N(P, !1)));
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
function O(S) {
|
|
2355
|
+
U.nextTick(W, S);
|
|
2356
|
+
}
|
|
2357
|
+
function C(S, R) {
|
|
2358
|
+
return function(P, B) {
|
|
2359
|
+
S.then(function() {
|
|
2360
|
+
if (R[p]) {
|
|
2361
|
+
P(N(void 0, !0));
|
|
2362
|
+
return;
|
|
2363
|
+
}
|
|
2364
|
+
R[L](P, B);
|
|
2365
|
+
}, B);
|
|
2366
|
+
};
|
|
2367
|
+
}
|
|
2368
|
+
var M = Object.getPrototypeOf(function() {
|
|
2369
|
+
}), s = Object.setPrototypeOf((e = {
|
|
2370
|
+
get stream() {
|
|
2371
|
+
return this[E];
|
|
2372
|
+
},
|
|
2373
|
+
next: function() {
|
|
2374
|
+
var R = this, P = this[h];
|
|
2375
|
+
if (P !== null)
|
|
2376
|
+
return Promise.reject(P);
|
|
2377
|
+
if (this[p])
|
|
2378
|
+
return Promise.resolve(N(void 0, !0));
|
|
2379
|
+
if (this[E].destroyed)
|
|
2380
|
+
return new Promise(function(I, K) {
|
|
2381
|
+
U.nextTick(function() {
|
|
2382
|
+
R[h] ? K(R[h]) : I(N(void 0, !0));
|
|
2383
|
+
});
|
|
2384
|
+
});
|
|
2385
|
+
var B = this[A], q;
|
|
2386
|
+
if (B)
|
|
2387
|
+
q = new Promise(C(B, this));
|
|
2388
|
+
else {
|
|
2389
|
+
var F = this[E].read();
|
|
2390
|
+
if (F !== null)
|
|
2391
|
+
return Promise.resolve(N(F, !1));
|
|
2392
|
+
q = new Promise(this[L]);
|
|
2393
|
+
}
|
|
2394
|
+
return this[A] = q, q;
|
|
2395
|
+
}
|
|
2396
|
+
}, t(e, Symbol.asyncIterator, function() {
|
|
2397
|
+
return this;
|
|
2398
|
+
}), t(e, "return", function() {
|
|
2399
|
+
var R = this;
|
|
2400
|
+
return new Promise(function(P, B) {
|
|
2401
|
+
R[E].destroy(null, function(q) {
|
|
2402
|
+
if (q) {
|
|
2403
|
+
B(q);
|
|
2404
|
+
return;
|
|
2405
|
+
}
|
|
2406
|
+
P(N(void 0, !0));
|
|
2407
|
+
});
|
|
2408
|
+
});
|
|
2409
|
+
}), e), M), m = function(R) {
|
|
2410
|
+
var P, B = Object.create(s, (P = {}, t(P, E, {
|
|
2411
|
+
value: R,
|
|
2412
|
+
writable: !0
|
|
2413
|
+
}), t(P, c, {
|
|
2414
|
+
value: null,
|
|
2415
|
+
writable: !0
|
|
2416
|
+
}), t(P, l, {
|
|
2417
|
+
value: null,
|
|
2418
|
+
writable: !0
|
|
2419
|
+
}), t(P, h, {
|
|
2420
|
+
value: null,
|
|
2421
|
+
writable: !0
|
|
2422
|
+
}), t(P, p, {
|
|
2423
|
+
value: R._readableState.endEmitted,
|
|
2424
|
+
writable: !0
|
|
2425
|
+
}), t(P, L, {
|
|
2426
|
+
value: function(F, I) {
|
|
2427
|
+
var K = B[E].read();
|
|
2428
|
+
K ? (B[A] = null, B[c] = null, B[l] = null, F(N(K, !1))) : (B[c] = F, B[l] = I);
|
|
2429
|
+
},
|
|
2430
|
+
writable: !0
|
|
2431
|
+
}), P));
|
|
2432
|
+
return B[A] = null, i(R, function(q) {
|
|
2433
|
+
if (q && q.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
2434
|
+
var F = B[l];
|
|
2435
|
+
F !== null && (B[A] = null, B[c] = null, B[l] = null, F(q)), B[h] = q;
|
|
2436
|
+
return;
|
|
2437
|
+
}
|
|
2438
|
+
var I = B[c];
|
|
2439
|
+
I !== null && (B[A] = null, B[c] = null, B[l] = null, I(N(void 0, !0))), B[p] = !0;
|
|
2440
|
+
}), R.on("readable", O.bind(null, B)), B;
|
|
2441
|
+
};
|
|
2442
|
+
return pt = m, pt;
|
|
2443
|
+
}
|
|
2444
|
+
var ht, cr;
|
|
2445
|
+
function co() {
|
|
2446
|
+
return cr || (cr = 1, ht = function() {
|
|
2447
|
+
throw new Error("Readable.from is not available in the browser");
|
|
2448
|
+
}), ht;
|
|
2449
|
+
}
|
|
2450
|
+
var yt, dr;
|
|
2451
|
+
function Xr() {
|
|
2452
|
+
if (dr)
|
|
2453
|
+
return yt;
|
|
2454
|
+
dr = 1, yt = I;
|
|
2455
|
+
var e;
|
|
2456
|
+
I.ReadableState = F, Pr.EventEmitter;
|
|
2457
|
+
var t = function(a, b) {
|
|
2458
|
+
return a.listeners(b).length;
|
|
2459
|
+
}, r = Mr, n = Ge.Buffer, i = (typeof V < "u" ? V : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
2460
|
+
};
|
|
2461
|
+
function c(o) {
|
|
2462
|
+
return n.from(o);
|
|
2463
|
+
}
|
|
2464
|
+
function l(o) {
|
|
2465
|
+
return n.isBuffer(o) || o instanceof i;
|
|
2466
|
+
}
|
|
2467
|
+
var h = Mt, p;
|
|
2468
|
+
h && h.debuglog ? p = h.debuglog("stream") : p = function() {
|
|
2469
|
+
};
|
|
2470
|
+
var A = zi(), L = Vr, E = Kr, N = E.getHighWaterMark, W = ye.codes, O = W.ERR_INVALID_ARG_TYPE, C = W.ERR_STREAM_PUSH_AFTER_EOF, M = W.ERR_METHOD_NOT_IMPLEMENTED, s = W.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, m, S, R;
|
|
2471
|
+
le(I, r);
|
|
2472
|
+
var P = L.errorOrDestroy, B = ["error", "close", "destroy", "pause", "resume"];
|
|
2473
|
+
function q(o, a, b) {
|
|
2474
|
+
if (typeof o.prependListener == "function")
|
|
2475
|
+
return o.prependListener(a, b);
|
|
2476
|
+
!o._events || !o._events[a] ? o.on(a, b) : Array.isArray(o._events[a]) ? o._events[a].unshift(b) : o._events[a] = [b, o._events[a]];
|
|
2477
|
+
}
|
|
2478
|
+
function F(o, a, b) {
|
|
2479
|
+
e = e || Re(), o = o || {}, typeof b != "boolean" && (b = a instanceof e), this.objectMode = !!o.objectMode, b && (this.objectMode = this.objectMode || !!o.readableObjectMode), this.highWaterMark = N(this, o, "readableHighWaterMark", b), this.buffer = new A(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = o.emitClose !== !1, this.autoDestroy = !!o.autoDestroy, this.destroyed = !1, this.defaultEncoding = o.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, o.encoding && (m || (m = ur().StringDecoder), this.decoder = new m(o.encoding), this.encoding = o.encoding);
|
|
2480
|
+
}
|
|
2481
|
+
function I(o) {
|
|
2482
|
+
if (e = e || Re(), !(this instanceof I))
|
|
2483
|
+
return new I(o);
|
|
2484
|
+
var a = this instanceof e;
|
|
2485
|
+
this._readableState = new F(o, this, a), this.readable = !0, o && (typeof o.read == "function" && (this._read = o.read), typeof o.destroy == "function" && (this._destroy = o.destroy)), r.call(this);
|
|
2486
|
+
}
|
|
2487
|
+
Object.defineProperty(I.prototype, "destroyed", {
|
|
2488
|
+
// making it explicit this property is not enumerable
|
|
2489
|
+
// because otherwise some prototype manipulation in
|
|
2490
|
+
// userland will fail
|
|
2491
|
+
enumerable: !1,
|
|
2492
|
+
get: function() {
|
|
2493
|
+
return this._readableState === void 0 ? !1 : this._readableState.destroyed;
|
|
2494
|
+
},
|
|
2495
|
+
set: function(a) {
|
|
2496
|
+
this._readableState && (this._readableState.destroyed = a);
|
|
2497
|
+
}
|
|
2498
|
+
}), I.prototype.destroy = L.destroy, I.prototype._undestroy = L.undestroy, I.prototype._destroy = function(o, a) {
|
|
2499
|
+
a(o);
|
|
2500
|
+
}, I.prototype.push = function(o, a) {
|
|
2501
|
+
var b = this._readableState, T;
|
|
2502
|
+
return b.objectMode ? T = !0 : typeof o == "string" && (a = a || b.defaultEncoding, a !== b.encoding && (o = n.from(o, a), a = ""), T = !0), K(this, o, a, !1, T);
|
|
2503
|
+
}, I.prototype.unshift = function(o) {
|
|
2504
|
+
return K(this, o, null, !0, !1);
|
|
2505
|
+
};
|
|
2506
|
+
function K(o, a, b, T, G) {
|
|
2507
|
+
p("readableAddChunk", a);
|
|
2508
|
+
var k = o._readableState;
|
|
2509
|
+
if (a === null)
|
|
2510
|
+
k.reading = !1, ae(o, k);
|
|
2511
|
+
else {
|
|
2512
|
+
var x;
|
|
2513
|
+
if (G || (x = Z(k, a)), x)
|
|
2514
|
+
P(o, x);
|
|
2515
|
+
else if (k.objectMode || a && a.length > 0)
|
|
2516
|
+
if (typeof a != "string" && !k.objectMode && Object.getPrototypeOf(a) !== n.prototype && (a = c(a)), T)
|
|
2517
|
+
k.endEmitted ? P(o, new s()) : X(o, k, a, !0);
|
|
2518
|
+
else if (k.ended)
|
|
2519
|
+
P(o, new C());
|
|
2520
|
+
else {
|
|
2521
|
+
if (k.destroyed)
|
|
2522
|
+
return !1;
|
|
2523
|
+
k.reading = !1, k.decoder && !b ? (a = k.decoder.write(a), k.objectMode || a.length !== 0 ? X(o, k, a, !1) : Y(o, k)) : X(o, k, a, !1);
|
|
2524
|
+
}
|
|
2525
|
+
else
|
|
2526
|
+
T || (k.reading = !1, Y(o, k));
|
|
2527
|
+
}
|
|
2528
|
+
return !k.ended && (k.length < k.highWaterMark || k.length === 0);
|
|
2529
|
+
}
|
|
2530
|
+
function X(o, a, b, T) {
|
|
2531
|
+
a.flowing && a.length === 0 && !a.sync ? (a.awaitDrain = 0, o.emit("data", b)) : (a.length += a.objectMode ? 1 : b.length, T ? a.buffer.unshift(b) : a.buffer.push(b), a.needReadable && te(o)), Y(o, a);
|
|
2532
|
+
}
|
|
2533
|
+
function Z(o, a) {
|
|
2534
|
+
var b;
|
|
2535
|
+
return !l(a) && typeof a != "string" && a !== void 0 && !o.objectMode && (b = new O("chunk", ["string", "Buffer", "Uint8Array"], a)), b;
|
|
2536
|
+
}
|
|
2537
|
+
I.prototype.isPaused = function() {
|
|
2538
|
+
return this._readableState.flowing === !1;
|
|
2539
|
+
}, I.prototype.setEncoding = function(o) {
|
|
2540
|
+
m || (m = ur().StringDecoder);
|
|
2541
|
+
var a = new m(o);
|
|
2542
|
+
this._readableState.decoder = a, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
2543
|
+
for (var b = this._readableState.buffer.head, T = ""; b !== null; )
|
|
2544
|
+
T += a.write(b.data), b = b.next;
|
|
2545
|
+
return this._readableState.buffer.clear(), T !== "" && this._readableState.buffer.push(T), this._readableState.length = T.length, this;
|
|
2546
|
+
};
|
|
2547
|
+
var ie = 1073741824;
|
|
2548
|
+
function Q(o) {
|
|
2549
|
+
return o >= ie ? o = ie : (o--, o |= o >>> 1, o |= o >>> 2, o |= o >>> 4, o |= o >>> 8, o |= o >>> 16, o++), o;
|
|
2550
|
+
}
|
|
2551
|
+
function oe(o, a) {
|
|
2552
|
+
return o <= 0 || a.length === 0 && a.ended ? 0 : a.objectMode ? 1 : o !== o ? a.flowing && a.length ? a.buffer.head.data.length : a.length : (o > a.highWaterMark && (a.highWaterMark = Q(o)), o <= a.length ? o : a.ended ? a.length : (a.needReadable = !0, 0));
|
|
2553
|
+
}
|
|
2554
|
+
I.prototype.read = function(o) {
|
|
2555
|
+
p("read", o), o = parseInt(o, 10);
|
|
2556
|
+
var a = this._readableState, b = o;
|
|
2557
|
+
if (o !== 0 && (a.emittedReadable = !1), o === 0 && a.needReadable && ((a.highWaterMark !== 0 ? a.length >= a.highWaterMark : a.length > 0) || a.ended))
|
|
2558
|
+
return p("read: emitReadable", a.length, a.ended), a.length === 0 && a.ended ? y(this) : te(this), null;
|
|
2559
|
+
if (o = oe(o, a), o === 0 && a.ended)
|
|
2560
|
+
return a.length === 0 && y(this), null;
|
|
2561
|
+
var T = a.needReadable;
|
|
2562
|
+
p("need readable", T), (a.length === 0 || a.length - o < a.highWaterMark) && (T = !0, p("length less than watermark", T)), a.ended || a.reading ? (T = !1, p("reading or ended", T)) : T && (p("do read"), a.reading = !0, a.sync = !0, a.length === 0 && (a.needReadable = !0), this._read(a.highWaterMark), a.sync = !1, a.reading || (o = oe(b, a)));
|
|
2563
|
+
var G;
|
|
2564
|
+
return o > 0 ? G = f(o, a) : G = null, G === null ? (a.needReadable = a.length <= a.highWaterMark, o = 0) : (a.length -= o, a.awaitDrain = 0), a.length === 0 && (a.ended || (a.needReadable = !0), b !== o && a.ended && y(this)), G !== null && this.emit("data", G), G;
|
|
2565
|
+
};
|
|
2566
|
+
function ae(o, a) {
|
|
2567
|
+
if (p("onEofChunk"), !a.ended) {
|
|
2568
|
+
if (a.decoder) {
|
|
2569
|
+
var b = a.decoder.end();
|
|
2570
|
+
b && b.length && (a.buffer.push(b), a.length += a.objectMode ? 1 : b.length);
|
|
2571
|
+
}
|
|
2572
|
+
a.ended = !0, a.sync ? te(o) : (a.needReadable = !1, a.emittedReadable || (a.emittedReadable = !0, re(o)));
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
function te(o) {
|
|
2576
|
+
var a = o._readableState;
|
|
2577
|
+
p("emitReadable", a.needReadable, a.emittedReadable), a.needReadable = !1, a.emittedReadable || (p("emitReadable", a.flowing), a.emittedReadable = !0, U.nextTick(re, o));
|
|
2578
|
+
}
|
|
2579
|
+
function re(o) {
|
|
2580
|
+
var a = o._readableState;
|
|
2581
|
+
p("emitReadable_", a.destroyed, a.length, a.ended), !a.destroyed && (a.length || a.ended) && (o.emit("readable"), a.emittedReadable = !1), a.needReadable = !a.flowing && !a.ended && a.length <= a.highWaterMark, u(o);
|
|
2582
|
+
}
|
|
2583
|
+
function Y(o, a) {
|
|
2584
|
+
a.readingMore || (a.readingMore = !0, U.nextTick(ne, o, a));
|
|
2585
|
+
}
|
|
2586
|
+
function ne(o, a) {
|
|
2587
|
+
for (; !a.reading && !a.ended && (a.length < a.highWaterMark || a.flowing && a.length === 0); ) {
|
|
2588
|
+
var b = a.length;
|
|
2589
|
+
if (p("maybeReadMore read 0"), o.read(0), b === a.length)
|
|
2590
|
+
break;
|
|
2591
|
+
}
|
|
2592
|
+
a.readingMore = !1;
|
|
2593
|
+
}
|
|
2594
|
+
I.prototype._read = function(o) {
|
|
2595
|
+
P(this, new M("_read()"));
|
|
2596
|
+
}, I.prototype.pipe = function(o, a) {
|
|
2597
|
+
var b = this, T = this._readableState;
|
|
2598
|
+
switch (T.pipesCount) {
|
|
2599
|
+
case 0:
|
|
2600
|
+
T.pipes = o;
|
|
2601
|
+
break;
|
|
2602
|
+
case 1:
|
|
2603
|
+
T.pipes = [T.pipes, o];
|
|
2604
|
+
break;
|
|
2605
|
+
default:
|
|
2606
|
+
T.pipes.push(o);
|
|
2607
|
+
break;
|
|
2608
|
+
}
|
|
2609
|
+
T.pipesCount += 1, p("pipe count=%d opts=%j", T.pipesCount, a);
|
|
2610
|
+
var G = (!a || a.end !== !1) && o !== U.stdout && o !== U.stderr, k = G ? se : Te;
|
|
2611
|
+
T.endEmitted ? U.nextTick(k) : b.once("end", k), o.on("unpipe", x);
|
|
2612
|
+
function x(ge, ve) {
|
|
2613
|
+
p("onunpipe"), ge === b && ve && ve.hasUnpiped === !1 && (ve.hasUnpiped = !0, kt());
|
|
2614
|
+
}
|
|
2615
|
+
function se() {
|
|
2616
|
+
p("onend"), o.end();
|
|
2617
|
+
}
|
|
2618
|
+
var v = ue(b);
|
|
2619
|
+
o.on("drain", v);
|
|
2620
|
+
var je = !1;
|
|
2621
|
+
function kt() {
|
|
2622
|
+
p("cleanup"), o.removeListener("close", Xe), o.removeListener("finish", Ze), o.removeListener("drain", v), o.removeListener("error", Je), o.removeListener("unpipe", x), b.removeListener("end", se), b.removeListener("end", Te), b.removeListener("data", $t), je = !0, T.awaitDrain && (!o._writableState || o._writableState.needDrain) && v();
|
|
2623
|
+
}
|
|
2624
|
+
b.on("data", $t);
|
|
2625
|
+
function $t(ge) {
|
|
2626
|
+
p("ondata");
|
|
2627
|
+
var ve = o.write(ge);
|
|
2628
|
+
p("dest.write", ve), ve === !1 && ((T.pipesCount === 1 && T.pipes === o || T.pipesCount > 1 && j(T.pipes, o) !== -1) && !je && (p("false write response, pause", T.awaitDrain), T.awaitDrain++), b.pause());
|
|
2629
|
+
}
|
|
2630
|
+
function Je(ge) {
|
|
2631
|
+
p("onerror", ge), Te(), o.removeListener("error", Je), t(o, "error") === 0 && P(o, ge);
|
|
2632
|
+
}
|
|
2633
|
+
q(o, "error", Je);
|
|
2634
|
+
function Xe() {
|
|
2635
|
+
o.removeListener("finish", Ze), Te();
|
|
2636
|
+
}
|
|
2637
|
+
o.once("close", Xe);
|
|
2638
|
+
function Ze() {
|
|
2639
|
+
p("onfinish"), o.removeListener("close", Xe), Te();
|
|
2640
|
+
}
|
|
2641
|
+
o.once("finish", Ze);
|
|
2642
|
+
function Te() {
|
|
2643
|
+
p("unpipe"), b.unpipe(o);
|
|
2644
|
+
}
|
|
2645
|
+
return o.emit("pipe", b), T.flowing || (p("pipe resume"), b.resume()), o;
|
|
2646
|
+
};
|
|
2647
|
+
function ue(o) {
|
|
2648
|
+
return function() {
|
|
2649
|
+
var b = o._readableState;
|
|
2650
|
+
p("pipeOnDrain", b.awaitDrain), b.awaitDrain && b.awaitDrain--, b.awaitDrain === 0 && t(o, "data") && (b.flowing = !0, u(o));
|
|
2651
|
+
};
|
|
2652
|
+
}
|
|
2653
|
+
I.prototype.unpipe = function(o) {
|
|
2654
|
+
var a = this._readableState, b = {
|
|
2655
|
+
hasUnpiped: !1
|
|
2656
|
+
};
|
|
2657
|
+
if (a.pipesCount === 0)
|
|
2658
|
+
return this;
|
|
2659
|
+
if (a.pipesCount === 1)
|
|
2660
|
+
return o && o !== a.pipes ? this : (o || (o = a.pipes), a.pipes = null, a.pipesCount = 0, a.flowing = !1, o && o.emit("unpipe", this, b), this);
|
|
2661
|
+
if (!o) {
|
|
2662
|
+
var T = a.pipes, G = a.pipesCount;
|
|
2663
|
+
a.pipes = null, a.pipesCount = 0, a.flowing = !1;
|
|
2664
|
+
for (var k = 0; k < G; k++)
|
|
2665
|
+
T[k].emit("unpipe", this, {
|
|
2666
|
+
hasUnpiped: !1
|
|
2667
|
+
});
|
|
2668
|
+
return this;
|
|
2669
|
+
}
|
|
2670
|
+
var x = j(a.pipes, o);
|
|
2671
|
+
return x === -1 ? this : (a.pipes.splice(x, 1), a.pipesCount -= 1, a.pipesCount === 1 && (a.pipes = a.pipes[0]), o.emit("unpipe", this, b), this);
|
|
2672
|
+
}, I.prototype.on = function(o, a) {
|
|
2673
|
+
var b = r.prototype.on.call(this, o, a), T = this._readableState;
|
|
2674
|
+
return o === "data" ? (T.readableListening = this.listenerCount("readable") > 0, T.flowing !== !1 && this.resume()) : o === "readable" && !T.endEmitted && !T.readableListening && (T.readableListening = T.needReadable = !0, T.flowing = !1, T.emittedReadable = !1, p("on readable", T.length, T.reading), T.length ? te(this) : T.reading || U.nextTick(g, this)), b;
|
|
2675
|
+
}, I.prototype.addListener = I.prototype.on, I.prototype.removeListener = function(o, a) {
|
|
2676
|
+
var b = r.prototype.removeListener.call(this, o, a);
|
|
2677
|
+
return o === "readable" && U.nextTick(d, this), b;
|
|
2678
|
+
}, I.prototype.removeAllListeners = function(o) {
|
|
2679
|
+
var a = r.prototype.removeAllListeners.apply(this, arguments);
|
|
2680
|
+
return (o === "readable" || o === void 0) && U.nextTick(d, this), a;
|
|
2681
|
+
};
|
|
2682
|
+
function d(o) {
|
|
2683
|
+
var a = o._readableState;
|
|
2684
|
+
a.readableListening = o.listenerCount("readable") > 0, a.resumeScheduled && !a.paused ? a.flowing = !0 : o.listenerCount("data") > 0 && o.resume();
|
|
2685
|
+
}
|
|
2686
|
+
function g(o) {
|
|
2687
|
+
p("readable nexttick read 0"), o.read(0);
|
|
2688
|
+
}
|
|
2689
|
+
I.prototype.resume = function() {
|
|
2690
|
+
var o = this._readableState;
|
|
2691
|
+
return o.flowing || (p("resume"), o.flowing = !o.readableListening, _(this, o)), o.paused = !1, this;
|
|
2692
|
+
};
|
|
2693
|
+
function _(o, a) {
|
|
2694
|
+
a.resumeScheduled || (a.resumeScheduled = !0, U.nextTick(D, o, a));
|
|
2695
|
+
}
|
|
2696
|
+
function D(o, a) {
|
|
2697
|
+
p("resume", a.reading), a.reading || o.read(0), a.resumeScheduled = !1, o.emit("resume"), u(o), a.flowing && !a.reading && o.read(0);
|
|
2698
|
+
}
|
|
2699
|
+
I.prototype.pause = function() {
|
|
2700
|
+
return p("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (p("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
|
|
2701
|
+
};
|
|
2702
|
+
function u(o) {
|
|
2703
|
+
var a = o._readableState;
|
|
2704
|
+
for (p("flow", a.flowing); a.flowing && o.read() !== null; )
|
|
2705
|
+
;
|
|
2706
|
+
}
|
|
2707
|
+
I.prototype.wrap = function(o) {
|
|
2708
|
+
var a = this, b = this._readableState, T = !1;
|
|
2709
|
+
o.on("end", function() {
|
|
2710
|
+
if (p("wrapped end"), b.decoder && !b.ended) {
|
|
2711
|
+
var x = b.decoder.end();
|
|
2712
|
+
x && x.length && a.push(x);
|
|
2713
|
+
}
|
|
2714
|
+
a.push(null);
|
|
2715
|
+
}), o.on("data", function(x) {
|
|
2716
|
+
if (p("wrapped data"), b.decoder && (x = b.decoder.write(x)), !(b.objectMode && x == null) && !(!b.objectMode && (!x || !x.length))) {
|
|
2717
|
+
var se = a.push(x);
|
|
2718
|
+
se || (T = !0, o.pause());
|
|
2719
|
+
}
|
|
2720
|
+
});
|
|
2721
|
+
for (var G in o)
|
|
2722
|
+
this[G] === void 0 && typeof o[G] == "function" && (this[G] = /* @__PURE__ */ function(se) {
|
|
2723
|
+
return function() {
|
|
2724
|
+
return o[se].apply(o, arguments);
|
|
2725
|
+
};
|
|
2726
|
+
}(G));
|
|
2727
|
+
for (var k = 0; k < B.length; k++)
|
|
2728
|
+
o.on(B[k], this.emit.bind(this, B[k]));
|
|
2729
|
+
return this._read = function(x) {
|
|
2730
|
+
p("wrapped _read", x), T && (T = !1, o.resume());
|
|
2731
|
+
}, this;
|
|
2732
|
+
}, typeof Symbol == "function" && (I.prototype[Symbol.asyncIterator] = function() {
|
|
2733
|
+
return S === void 0 && (S = lo()), S(this);
|
|
2734
|
+
}), Object.defineProperty(I.prototype, "readableHighWaterMark", {
|
|
2735
|
+
// making it explicit this property is not enumerable
|
|
2736
|
+
// because otherwise some prototype manipulation in
|
|
2737
|
+
// userland will fail
|
|
2738
|
+
enumerable: !1,
|
|
2739
|
+
get: function() {
|
|
2740
|
+
return this._readableState.highWaterMark;
|
|
2741
|
+
}
|
|
2742
|
+
}), Object.defineProperty(I.prototype, "readableBuffer", {
|
|
2743
|
+
// making it explicit this property is not enumerable
|
|
2744
|
+
// because otherwise some prototype manipulation in
|
|
2745
|
+
// userland will fail
|
|
2746
|
+
enumerable: !1,
|
|
2747
|
+
get: function() {
|
|
2748
|
+
return this._readableState && this._readableState.buffer;
|
|
2749
|
+
}
|
|
2750
|
+
}), Object.defineProperty(I.prototype, "readableFlowing", {
|
|
2751
|
+
// making it explicit this property is not enumerable
|
|
2752
|
+
// because otherwise some prototype manipulation in
|
|
2753
|
+
// userland will fail
|
|
2754
|
+
enumerable: !1,
|
|
2755
|
+
get: function() {
|
|
2756
|
+
return this._readableState.flowing;
|
|
2757
|
+
},
|
|
2758
|
+
set: function(a) {
|
|
2759
|
+
this._readableState && (this._readableState.flowing = a);
|
|
2760
|
+
}
|
|
2761
|
+
}), I._fromList = f, Object.defineProperty(I.prototype, "readableLength", {
|
|
2762
|
+
// making it explicit this property is not enumerable
|
|
2763
|
+
// because otherwise some prototype manipulation in
|
|
2764
|
+
// userland will fail
|
|
2765
|
+
enumerable: !1,
|
|
2766
|
+
get: function() {
|
|
2767
|
+
return this._readableState.length;
|
|
2768
|
+
}
|
|
2769
|
+
});
|
|
2770
|
+
function f(o, a) {
|
|
2771
|
+
if (a.length === 0)
|
|
2772
|
+
return null;
|
|
2773
|
+
var b;
|
|
2774
|
+
return a.objectMode ? b = a.buffer.shift() : !o || o >= a.length ? (a.decoder ? b = a.buffer.join("") : a.buffer.length === 1 ? b = a.buffer.first() : b = a.buffer.concat(a.length), a.buffer.clear()) : b = a.buffer.consume(o, a.decoder), b;
|
|
2775
|
+
}
|
|
2776
|
+
function y(o) {
|
|
2777
|
+
var a = o._readableState;
|
|
2778
|
+
p("endReadable", a.endEmitted), a.endEmitted || (a.ended = !0, U.nextTick(w, a, o));
|
|
2779
|
+
}
|
|
2780
|
+
function w(o, a) {
|
|
2781
|
+
if (p("endReadableNT", o.endEmitted, o.length), !o.endEmitted && o.length === 0 && (o.endEmitted = !0, a.readable = !1, a.emit("end"), o.autoDestroy)) {
|
|
2782
|
+
var b = a._writableState;
|
|
2783
|
+
(!b || b.autoDestroy && b.finished) && a.destroy();
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
typeof Symbol == "function" && (I.from = function(o, a) {
|
|
2787
|
+
return R === void 0 && (R = co()), R(I, o, a);
|
|
2788
|
+
});
|
|
2789
|
+
function j(o, a) {
|
|
2790
|
+
for (var b = 0, T = o.length; b < T; b++)
|
|
2791
|
+
if (o[b] === a)
|
|
2792
|
+
return b;
|
|
2793
|
+
return -1;
|
|
2794
|
+
}
|
|
2795
|
+
return yt;
|
|
2796
|
+
}
|
|
2797
|
+
var Zr = fe, Ke = ye.codes, po = Ke.ERR_METHOD_NOT_IMPLEMENTED, ho = Ke.ERR_MULTIPLE_CALLBACK, yo = Ke.ERR_TRANSFORM_ALREADY_TRANSFORMING, go = Ke.ERR_TRANSFORM_WITH_LENGTH_0, Ye = Re();
|
|
2798
|
+
le(fe, Ye);
|
|
2799
|
+
function vo(e, t) {
|
|
2800
|
+
var r = this._transformState;
|
|
2801
|
+
r.transforming = !1;
|
|
2802
|
+
var n = r.writecb;
|
|
2803
|
+
if (n === null)
|
|
2804
|
+
return this.emit("error", new ho());
|
|
2805
|
+
r.writechunk = null, r.writecb = null, t != null && this.push(t), n(e);
|
|
2806
|
+
var i = this._readableState;
|
|
2807
|
+
i.reading = !1, (i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark);
|
|
2808
|
+
}
|
|
2809
|
+
function fe(e) {
|
|
2810
|
+
if (!(this instanceof fe))
|
|
2811
|
+
return new fe(e);
|
|
2812
|
+
Ye.call(this, e), this._transformState = {
|
|
2813
|
+
afterTransform: vo.bind(this),
|
|
2814
|
+
needTransform: !1,
|
|
2815
|
+
transforming: !1,
|
|
2816
|
+
writecb: null,
|
|
2817
|
+
writechunk: null,
|
|
2818
|
+
writeencoding: null
|
|
2819
|
+
}, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e.transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", bo);
|
|
2820
|
+
}
|
|
2821
|
+
function bo() {
|
|
2822
|
+
var e = this;
|
|
2823
|
+
typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(t, r) {
|
|
2824
|
+
pr(e, t, r);
|
|
2825
|
+
}) : pr(this, null, null);
|
|
2826
|
+
}
|
|
2827
|
+
fe.prototype.push = function(e, t) {
|
|
2828
|
+
return this._transformState.needTransform = !1, Ye.prototype.push.call(this, e, t);
|
|
2829
|
+
};
|
|
2830
|
+
fe.prototype._transform = function(e, t, r) {
|
|
2831
|
+
r(new po("_transform()"));
|
|
2832
|
+
};
|
|
2833
|
+
fe.prototype._write = function(e, t, r) {
|
|
2834
|
+
var n = this._transformState;
|
|
2835
|
+
if (n.writecb = r, n.writechunk = e, n.writeencoding = t, !n.transforming) {
|
|
2836
|
+
var i = this._readableState;
|
|
2837
|
+
(n.needTransform || i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark);
|
|
2838
|
+
}
|
|
2839
|
+
};
|
|
2840
|
+
fe.prototype._read = function(e) {
|
|
2841
|
+
var t = this._transformState;
|
|
2842
|
+
t.writechunk !== null && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0;
|
|
2843
|
+
};
|
|
2844
|
+
fe.prototype._destroy = function(e, t) {
|
|
2845
|
+
Ye.prototype._destroy.call(this, e, function(r) {
|
|
2846
|
+
t(r);
|
|
2847
|
+
});
|
|
2848
|
+
};
|
|
2849
|
+
function pr(e, t, r) {
|
|
2850
|
+
if (t)
|
|
2851
|
+
return e.emit("error", t);
|
|
2852
|
+
if (r != null && e.push(r), e._writableState.length)
|
|
2853
|
+
throw new go();
|
|
2854
|
+
if (e._transformState.transforming)
|
|
2855
|
+
throw new yo();
|
|
2856
|
+
return e.push(null);
|
|
2857
|
+
}
|
|
2858
|
+
var mo = Oe, Qr = Zr;
|
|
2859
|
+
le(Oe, Qr);
|
|
2860
|
+
function Oe(e) {
|
|
2861
|
+
if (!(this instanceof Oe))
|
|
2862
|
+
return new Oe(e);
|
|
2863
|
+
Qr.call(this, e);
|
|
2864
|
+
}
|
|
2865
|
+
Oe.prototype._transform = function(e, t, r) {
|
|
2866
|
+
r(null, e);
|
|
2867
|
+
};
|
|
2868
|
+
var gt;
|
|
2869
|
+
function _o(e) {
|
|
2870
|
+
var t = !1;
|
|
2871
|
+
return function() {
|
|
2872
|
+
t || (t = !0, e.apply(void 0, arguments));
|
|
2873
|
+
};
|
|
2874
|
+
}
|
|
2875
|
+
var en = ye.codes, wo = en.ERR_MISSING_ARGS, So = en.ERR_STREAM_DESTROYED;
|
|
2876
|
+
function hr(e) {
|
|
2877
|
+
if (e)
|
|
2878
|
+
throw e;
|
|
2879
|
+
}
|
|
2880
|
+
function Eo(e) {
|
|
2881
|
+
return e.setHeader && typeof e.abort == "function";
|
|
2882
|
+
}
|
|
2883
|
+
function Ao(e, t, r, n) {
|
|
2884
|
+
n = _o(n);
|
|
2885
|
+
var i = !1;
|
|
2886
|
+
e.on("close", function() {
|
|
2887
|
+
i = !0;
|
|
2888
|
+
}), gt === void 0 && (gt = Bt), gt(e, {
|
|
2889
|
+
readable: t,
|
|
2890
|
+
writable: r
|
|
2891
|
+
}, function(l) {
|
|
2892
|
+
if (l)
|
|
2893
|
+
return n(l);
|
|
2894
|
+
i = !0, n();
|
|
2895
|
+
});
|
|
2896
|
+
var c = !1;
|
|
2897
|
+
return function(l) {
|
|
2898
|
+
if (!i && !c) {
|
|
2899
|
+
if (c = !0, Eo(e))
|
|
2900
|
+
return e.abort();
|
|
2901
|
+
if (typeof e.destroy == "function")
|
|
2902
|
+
return e.destroy();
|
|
2903
|
+
n(l || new So("pipe"));
|
|
2904
|
+
}
|
|
2905
|
+
};
|
|
2906
|
+
}
|
|
2907
|
+
function yr(e) {
|
|
2908
|
+
e();
|
|
2909
|
+
}
|
|
2910
|
+
function Ro(e, t) {
|
|
2911
|
+
return e.pipe(t);
|
|
2912
|
+
}
|
|
2913
|
+
function To(e) {
|
|
2914
|
+
return !e.length || typeof e[e.length - 1] != "function" ? hr : e.pop();
|
|
2915
|
+
}
|
|
2916
|
+
function Oo() {
|
|
2917
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
2918
|
+
t[r] = arguments[r];
|
|
2919
|
+
var n = To(t);
|
|
2920
|
+
if (Array.isArray(t[0]) && (t = t[0]), t.length < 2)
|
|
2921
|
+
throw new wo("streams");
|
|
2922
|
+
var i, c = t.map(function(l, h) {
|
|
2923
|
+
var p = h < t.length - 1, A = h > 0;
|
|
2924
|
+
return Ao(l, p, A, function(L) {
|
|
2925
|
+
i || (i = L), L && c.forEach(yr), !p && (c.forEach(yr), n(i));
|
|
2926
|
+
});
|
|
2927
|
+
});
|
|
2928
|
+
return t.reduce(Ro);
|
|
2929
|
+
}
|
|
2930
|
+
var Po = Oo;
|
|
2931
|
+
(function(e, t) {
|
|
2932
|
+
t = e.exports = Xr(), t.Stream = t, t.Readable = t, t.Writable = Yr(), t.Duplex = Re(), t.Transform = Zr, t.PassThrough = mo, t.finished = Bt, t.pipeline = Po;
|
|
2933
|
+
})(bt, bt.exports);
|
|
2934
|
+
var tn = bt.exports, gr = Ot, Mo = le, rn = tn, Ce = xe.readyStates = {
|
|
2935
|
+
UNSENT: 0,
|
|
2936
|
+
OPENED: 1,
|
|
2937
|
+
HEADERS_RECEIVED: 2,
|
|
2938
|
+
LOADING: 3,
|
|
2939
|
+
DONE: 4
|
|
2940
|
+
}, Ft = xe.IncomingMessage = function(e, t, r, n) {
|
|
2941
|
+
var i = this;
|
|
2942
|
+
if (rn.Readable.call(i), i._mode = r, i.headers = {}, i.rawHeaders = [], i.trailers = {}, i.rawTrailers = [], i.on("end", function() {
|
|
2943
|
+
U.nextTick(function() {
|
|
2944
|
+
i.emit("close");
|
|
2945
|
+
});
|
|
2946
|
+
}), r === "fetch") {
|
|
2947
|
+
let L = function() {
|
|
2948
|
+
l.read().then(function(E) {
|
|
2949
|
+
if (!i._destroyed) {
|
|
2950
|
+
if (n(E.done), E.done) {
|
|
2951
|
+
i.push(null);
|
|
2952
|
+
return;
|
|
2953
|
+
}
|
|
2954
|
+
i.push(ce.from(E.value)), L();
|
|
2955
|
+
}
|
|
2956
|
+
}).catch(function(E) {
|
|
2957
|
+
n(!0), i._destroyed || i.emit("error", E);
|
|
2958
|
+
});
|
|
2959
|
+
};
|
|
2960
|
+
if (i._fetchResponse = t, i.url = t.url, i.statusCode = t.status, i.statusMessage = t.statusText, t.headers.forEach(function(E, N) {
|
|
2961
|
+
i.headers[N.toLowerCase()] = E, i.rawHeaders.push(N, E);
|
|
2962
|
+
}), gr.writableStream) {
|
|
2963
|
+
var c = new WritableStream({
|
|
2964
|
+
write: function(E) {
|
|
2965
|
+
return n(!1), new Promise(function(N, W) {
|
|
2966
|
+
i._destroyed ? W() : i.push(ce.from(E)) ? N() : i._resumeFetch = N;
|
|
2967
|
+
});
|
|
2968
|
+
},
|
|
2969
|
+
close: function() {
|
|
2970
|
+
n(!0), i._destroyed || i.push(null);
|
|
2971
|
+
},
|
|
2972
|
+
abort: function(E) {
|
|
2973
|
+
n(!0), i._destroyed || i.emit("error", E);
|
|
2974
|
+
}
|
|
2975
|
+
});
|
|
2976
|
+
try {
|
|
2977
|
+
t.body.pipeTo(c).catch(function(E) {
|
|
2978
|
+
n(!0), i._destroyed || i.emit("error", E);
|
|
2979
|
+
});
|
|
2980
|
+
return;
|
|
2981
|
+
} catch {
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
var l = t.body.getReader();
|
|
2985
|
+
L();
|
|
2986
|
+
} else {
|
|
2987
|
+
i._xhr = e, i._pos = 0, i.url = e.responseURL, i.statusCode = e.status, i.statusMessage = e.statusText;
|
|
2988
|
+
var h = e.getAllResponseHeaders().split(/\r?\n/);
|
|
2989
|
+
if (h.forEach(function(L) {
|
|
2990
|
+
var E = L.match(/^([^:]+):\s*(.*)/);
|
|
2991
|
+
if (E) {
|
|
2992
|
+
var N = E[1].toLowerCase();
|
|
2993
|
+
N === "set-cookie" ? (i.headers[N] === void 0 && (i.headers[N] = []), i.headers[N].push(E[2])) : i.headers[N] !== void 0 ? i.headers[N] += ", " + E[2] : i.headers[N] = E[2], i.rawHeaders.push(E[1], E[2]);
|
|
2994
|
+
}
|
|
2995
|
+
}), i._charset = "x-user-defined", !gr.overrideMimeType) {
|
|
2996
|
+
var p = i.rawHeaders["mime-type"];
|
|
2997
|
+
if (p) {
|
|
2998
|
+
var A = p.match(/;\s*charset=([^;])(;|$)/);
|
|
2999
|
+
A && (i._charset = A[1].toLowerCase());
|
|
3000
|
+
}
|
|
3001
|
+
i._charset || (i._charset = "utf-8");
|
|
3002
|
+
}
|
|
3003
|
+
}
|
|
3004
|
+
};
|
|
3005
|
+
Mo(Ft, rn.Readable);
|
|
3006
|
+
Ft.prototype._read = function() {
|
|
3007
|
+
var e = this, t = e._resumeFetch;
|
|
3008
|
+
t && (e._resumeFetch = null, t());
|
|
3009
|
+
};
|
|
3010
|
+
Ft.prototype._onXHRProgress = function(e) {
|
|
3011
|
+
var t = this, r = t._xhr, n = null;
|
|
3012
|
+
switch (t._mode) {
|
|
3013
|
+
case "text":
|
|
3014
|
+
if (n = r.responseText, n.length > t._pos) {
|
|
3015
|
+
var i = n.substr(t._pos);
|
|
3016
|
+
if (t._charset === "x-user-defined") {
|
|
3017
|
+
for (var c = ce.alloc(i.length), l = 0; l < i.length; l++)
|
|
3018
|
+
c[l] = i.charCodeAt(l) & 255;
|
|
3019
|
+
t.push(c);
|
|
3020
|
+
} else
|
|
3021
|
+
t.push(i, t._charset);
|
|
3022
|
+
t._pos = n.length;
|
|
3023
|
+
}
|
|
3024
|
+
break;
|
|
3025
|
+
case "arraybuffer":
|
|
3026
|
+
if (r.readyState !== Ce.DONE || !r.response)
|
|
3027
|
+
break;
|
|
3028
|
+
n = r.response, t.push(ce.from(new Uint8Array(n)));
|
|
3029
|
+
break;
|
|
3030
|
+
case "moz-chunked-arraybuffer":
|
|
3031
|
+
if (n = r.response, r.readyState !== Ce.LOADING || !n)
|
|
3032
|
+
break;
|
|
3033
|
+
t.push(ce.from(new Uint8Array(n)));
|
|
3034
|
+
break;
|
|
3035
|
+
case "ms-stream":
|
|
3036
|
+
if (n = r.response, r.readyState !== Ce.LOADING)
|
|
3037
|
+
break;
|
|
3038
|
+
var h = new V.MSStreamReader();
|
|
3039
|
+
h.onprogress = function() {
|
|
3040
|
+
h.result.byteLength > t._pos && (t.push(ce.from(new Uint8Array(h.result.slice(t._pos)))), t._pos = h.result.byteLength);
|
|
3041
|
+
}, h.onload = function() {
|
|
3042
|
+
e(!0), t.push(null);
|
|
3043
|
+
}, h.readAsArrayBuffer(n);
|
|
3044
|
+
break;
|
|
3045
|
+
}
|
|
3046
|
+
t._xhr.readyState === Ce.DONE && t._mode !== "ms-stream" && (e(!0), t.push(null));
|
|
3047
|
+
};
|
|
3048
|
+
var de = Ot, jo = le, nn = xe, Ut = tn, Lo = nn.IncomingMessage, vr = nn.readyStates;
|
|
3049
|
+
function Co(e, t) {
|
|
3050
|
+
return de.fetch && t ? "fetch" : de.mozchunkedarraybuffer ? "moz-chunked-arraybuffer" : de.msstream ? "ms-stream" : de.arraybuffer && e ? "arraybuffer" : "text";
|
|
3051
|
+
}
|
|
3052
|
+
var J = mr.exports = function(e) {
|
|
3053
|
+
var t = this;
|
|
3054
|
+
Ut.Writable.call(t), t._opts = e, t._body = [], t._headers = {}, e.auth && t.setHeader("Authorization", "Basic " + ce.from(e.auth).toString("base64")), Object.keys(e.headers).forEach(function(i) {
|
|
3055
|
+
t.setHeader(i, e.headers[i]);
|
|
3056
|
+
});
|
|
3057
|
+
var r, n = !0;
|
|
3058
|
+
if (e.mode === "disable-fetch" || "requestTimeout" in e && !de.abortController)
|
|
3059
|
+
n = !1, r = !0;
|
|
3060
|
+
else if (e.mode === "prefer-streaming")
|
|
3061
|
+
r = !1;
|
|
3062
|
+
else if (e.mode === "allow-wrong-content-type")
|
|
3063
|
+
r = !de.overrideMimeType;
|
|
3064
|
+
else if (!e.mode || e.mode === "default" || e.mode === "prefer-fast")
|
|
3065
|
+
r = !0;
|
|
3066
|
+
else
|
|
3067
|
+
throw new Error("Invalid value for opts.mode");
|
|
3068
|
+
t._mode = Co(r, n), t._fetchTimer = null, t._socketTimeout = null, t._socketTimer = null, t.on("finish", function() {
|
|
3069
|
+
t._onFinish();
|
|
3070
|
+
});
|
|
3071
|
+
};
|
|
3072
|
+
jo(J, Ut.Writable);
|
|
3073
|
+
J.prototype.setHeader = function(e, t) {
|
|
3074
|
+
var r = this, n = e.toLowerCase();
|
|
3075
|
+
Io.indexOf(n) === -1 && (r._headers[n] = {
|
|
3076
|
+
name: e,
|
|
3077
|
+
value: t
|
|
3078
|
+
});
|
|
3079
|
+
};
|
|
3080
|
+
J.prototype.getHeader = function(e) {
|
|
3081
|
+
var t = this._headers[e.toLowerCase()];
|
|
3082
|
+
return t ? t.value : null;
|
|
3083
|
+
};
|
|
3084
|
+
J.prototype.removeHeader = function(e) {
|
|
3085
|
+
var t = this;
|
|
3086
|
+
delete t._headers[e.toLowerCase()];
|
|
3087
|
+
};
|
|
3088
|
+
J.prototype._onFinish = function() {
|
|
3089
|
+
var e = this;
|
|
3090
|
+
if (!e._destroyed) {
|
|
3091
|
+
var t = e._opts;
|
|
3092
|
+
"timeout" in t && t.timeout !== 0 && e.setTimeout(t.timeout);
|
|
3093
|
+
var r = e._headers, n = null;
|
|
3094
|
+
t.method !== "GET" && t.method !== "HEAD" && (n = new Blob(e._body, {
|
|
3095
|
+
type: (r["content-type"] || {}).value || ""
|
|
3096
|
+
}));
|
|
3097
|
+
var i = [];
|
|
3098
|
+
if (Object.keys(r).forEach(function(p) {
|
|
3099
|
+
var A = r[p].name, L = r[p].value;
|
|
3100
|
+
Array.isArray(L) ? L.forEach(function(E) {
|
|
3101
|
+
i.push([A, E]);
|
|
3102
|
+
}) : i.push([A, L]);
|
|
3103
|
+
}), e._mode === "fetch") {
|
|
3104
|
+
var c = null;
|
|
3105
|
+
if (de.abortController) {
|
|
3106
|
+
var l = new AbortController();
|
|
3107
|
+
c = l.signal, e._fetchAbortController = l, "requestTimeout" in t && t.requestTimeout !== 0 && (e._fetchTimer = V.setTimeout(function() {
|
|
3108
|
+
e.emit("requestTimeout"), e._fetchAbortController && e._fetchAbortController.abort();
|
|
3109
|
+
}, t.requestTimeout));
|
|
3110
|
+
}
|
|
3111
|
+
V.fetch(e._opts.url, {
|
|
3112
|
+
method: e._opts.method,
|
|
3113
|
+
headers: i,
|
|
3114
|
+
body: n || void 0,
|
|
3115
|
+
mode: "cors",
|
|
3116
|
+
credentials: t.withCredentials ? "include" : "same-origin",
|
|
3117
|
+
signal: c
|
|
3118
|
+
}).then(function(p) {
|
|
3119
|
+
e._fetchResponse = p, e._resetTimers(!1), e._connect();
|
|
3120
|
+
}, function(p) {
|
|
3121
|
+
e._resetTimers(!0), e._destroyed || e.emit("error", p);
|
|
3122
|
+
});
|
|
3123
|
+
} else {
|
|
3124
|
+
var h = e._xhr = new V.XMLHttpRequest();
|
|
3125
|
+
try {
|
|
3126
|
+
h.open(e._opts.method, e._opts.url, !0);
|
|
3127
|
+
} catch (p) {
|
|
3128
|
+
U.nextTick(function() {
|
|
3129
|
+
e.emit("error", p);
|
|
3130
|
+
});
|
|
3131
|
+
return;
|
|
3132
|
+
}
|
|
3133
|
+
"responseType" in h && (h.responseType = e._mode), "withCredentials" in h && (h.withCredentials = !!t.withCredentials), e._mode === "text" && "overrideMimeType" in h && h.overrideMimeType("text/plain; charset=x-user-defined"), "requestTimeout" in t && (h.timeout = t.requestTimeout, h.ontimeout = function() {
|
|
3134
|
+
e.emit("requestTimeout");
|
|
3135
|
+
}), i.forEach(function(p) {
|
|
3136
|
+
h.setRequestHeader(p[0], p[1]);
|
|
3137
|
+
}), e._response = null, h.onreadystatechange = function() {
|
|
3138
|
+
switch (h.readyState) {
|
|
3139
|
+
case vr.LOADING:
|
|
3140
|
+
case vr.DONE:
|
|
3141
|
+
e._onXHRProgress();
|
|
3142
|
+
break;
|
|
3143
|
+
}
|
|
3144
|
+
}, e._mode === "moz-chunked-arraybuffer" && (h.onprogress = function() {
|
|
3145
|
+
e._onXHRProgress();
|
|
3146
|
+
}), h.onerror = function() {
|
|
3147
|
+
e._destroyed || (e._resetTimers(!0), e.emit("error", new Error("XHR error")));
|
|
3148
|
+
};
|
|
3149
|
+
try {
|
|
3150
|
+
h.send(n);
|
|
3151
|
+
} catch (p) {
|
|
3152
|
+
U.nextTick(function() {
|
|
3153
|
+
e.emit("error", p);
|
|
3154
|
+
});
|
|
3155
|
+
return;
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
};
|
|
3160
|
+
function No(e) {
|
|
3161
|
+
try {
|
|
3162
|
+
var t = e.status;
|
|
3163
|
+
return t !== null && t !== 0;
|
|
3164
|
+
} catch {
|
|
3165
|
+
return !1;
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
J.prototype._onXHRProgress = function() {
|
|
3169
|
+
var e = this;
|
|
3170
|
+
e._resetTimers(!1), !(!No(e._xhr) || e._destroyed) && (e._response || e._connect(), e._response._onXHRProgress(e._resetTimers.bind(e)));
|
|
3171
|
+
};
|
|
3172
|
+
J.prototype._connect = function() {
|
|
3173
|
+
var e = this;
|
|
3174
|
+
e._destroyed || (e._response = new Lo(e._xhr, e._fetchResponse, e._mode, e._resetTimers.bind(e)), e._response.on("error", function(t) {
|
|
3175
|
+
e.emit("error", t);
|
|
3176
|
+
}), e.emit("response", e._response));
|
|
3177
|
+
};
|
|
3178
|
+
J.prototype._write = function(e, t, r) {
|
|
3179
|
+
var n = this;
|
|
3180
|
+
n._body.push(e), r();
|
|
3181
|
+
};
|
|
3182
|
+
J.prototype._resetTimers = function(e) {
|
|
3183
|
+
var t = this;
|
|
3184
|
+
V.clearTimeout(t._socketTimer), t._socketTimer = null, e ? (V.clearTimeout(t._fetchTimer), t._fetchTimer = null) : t._socketTimeout && (t._socketTimer = V.setTimeout(function() {
|
|
3185
|
+
t.emit("timeout");
|
|
3186
|
+
}, t._socketTimeout));
|
|
3187
|
+
};
|
|
3188
|
+
J.prototype.abort = J.prototype.destroy = function(e) {
|
|
3189
|
+
var t = this;
|
|
3190
|
+
t._destroyed = !0, t._resetTimers(!0), t._response && (t._response._destroyed = !0), t._xhr ? t._xhr.abort() : t._fetchAbortController && t._fetchAbortController.abort(), e && t.emit("error", e);
|
|
3191
|
+
};
|
|
3192
|
+
J.prototype.end = function(e, t, r) {
|
|
3193
|
+
var n = this;
|
|
3194
|
+
typeof e == "function" && (r = e, e = void 0), Ut.Writable.prototype.end.call(n, e, t, r);
|
|
3195
|
+
};
|
|
3196
|
+
J.prototype.setTimeout = function(e, t) {
|
|
3197
|
+
var r = this;
|
|
3198
|
+
t && r.once("timeout", t), r._socketTimeout = e, r._resetTimers(!1);
|
|
3199
|
+
};
|
|
3200
|
+
J.prototype.flushHeaders = function() {
|
|
3201
|
+
};
|
|
3202
|
+
J.prototype.setNoDelay = function() {
|
|
3203
|
+
};
|
|
3204
|
+
J.prototype.setSocketKeepAlive = function() {
|
|
3205
|
+
};
|
|
3206
|
+
var Io = [
|
|
3207
|
+
"accept-charset",
|
|
3208
|
+
"accept-encoding",
|
|
3209
|
+
"access-control-request-headers",
|
|
3210
|
+
"access-control-request-method",
|
|
3211
|
+
"connection",
|
|
3212
|
+
"content-length",
|
|
3213
|
+
"cookie",
|
|
3214
|
+
"cookie2",
|
|
3215
|
+
"date",
|
|
3216
|
+
"dnt",
|
|
3217
|
+
"expect",
|
|
3218
|
+
"host",
|
|
3219
|
+
"keep-alive",
|
|
3220
|
+
"origin",
|
|
3221
|
+
"referer",
|
|
3222
|
+
"te",
|
|
3223
|
+
"trailer",
|
|
3224
|
+
"transfer-encoding",
|
|
3225
|
+
"upgrade",
|
|
3226
|
+
"via"
|
|
3227
|
+
], Do = mr.exports, Bo = Uo, Fo = Object.prototype.hasOwnProperty;
|
|
3228
|
+
function Uo() {
|
|
3229
|
+
for (var e = {}, t = 0; t < arguments.length; t++) {
|
|
3230
|
+
var r = arguments[t];
|
|
3231
|
+
for (var n in r)
|
|
3232
|
+
Fo.call(r, n) && (e[n] = r[n]);
|
|
3233
|
+
}
|
|
3234
|
+
return e;
|
|
3235
|
+
}
|
|
3236
|
+
var ko = {
|
|
3237
|
+
100: "Continue",
|
|
3238
|
+
101: "Switching Protocols",
|
|
3239
|
+
102: "Processing",
|
|
3240
|
+
200: "OK",
|
|
3241
|
+
201: "Created",
|
|
3242
|
+
202: "Accepted",
|
|
3243
|
+
203: "Non-Authoritative Information",
|
|
3244
|
+
204: "No Content",
|
|
3245
|
+
205: "Reset Content",
|
|
3246
|
+
206: "Partial Content",
|
|
3247
|
+
207: "Multi-Status",
|
|
3248
|
+
208: "Already Reported",
|
|
3249
|
+
226: "IM Used",
|
|
3250
|
+
300: "Multiple Choices",
|
|
3251
|
+
301: "Moved Permanently",
|
|
3252
|
+
302: "Found",
|
|
3253
|
+
303: "See Other",
|
|
3254
|
+
304: "Not Modified",
|
|
3255
|
+
305: "Use Proxy",
|
|
3256
|
+
307: "Temporary Redirect",
|
|
3257
|
+
308: "Permanent Redirect",
|
|
3258
|
+
400: "Bad Request",
|
|
3259
|
+
401: "Unauthorized",
|
|
3260
|
+
402: "Payment Required",
|
|
3261
|
+
403: "Forbidden",
|
|
3262
|
+
404: "Not Found",
|
|
3263
|
+
405: "Method Not Allowed",
|
|
3264
|
+
406: "Not Acceptable",
|
|
3265
|
+
407: "Proxy Authentication Required",
|
|
3266
|
+
408: "Request Timeout",
|
|
3267
|
+
409: "Conflict",
|
|
3268
|
+
410: "Gone",
|
|
3269
|
+
411: "Length Required",
|
|
3270
|
+
412: "Precondition Failed",
|
|
3271
|
+
413: "Payload Too Large",
|
|
3272
|
+
414: "URI Too Long",
|
|
3273
|
+
415: "Unsupported Media Type",
|
|
3274
|
+
416: "Range Not Satisfiable",
|
|
3275
|
+
417: "Expectation Failed",
|
|
3276
|
+
418: "I'm a teapot",
|
|
3277
|
+
421: "Misdirected Request",
|
|
3278
|
+
422: "Unprocessable Entity",
|
|
3279
|
+
423: "Locked",
|
|
3280
|
+
424: "Failed Dependency",
|
|
3281
|
+
425: "Unordered Collection",
|
|
3282
|
+
426: "Upgrade Required",
|
|
3283
|
+
428: "Precondition Required",
|
|
3284
|
+
429: "Too Many Requests",
|
|
3285
|
+
431: "Request Header Fields Too Large",
|
|
3286
|
+
451: "Unavailable For Legal Reasons",
|
|
3287
|
+
500: "Internal Server Error",
|
|
3288
|
+
501: "Not Implemented",
|
|
3289
|
+
502: "Bad Gateway",
|
|
3290
|
+
503: "Service Unavailable",
|
|
3291
|
+
504: "Gateway Timeout",
|
|
3292
|
+
505: "HTTP Version Not Supported",
|
|
3293
|
+
506: "Variant Also Negotiates",
|
|
3294
|
+
507: "Insufficient Storage",
|
|
3295
|
+
508: "Loop Detected",
|
|
3296
|
+
509: "Bandwidth Limit Exceeded",
|
|
3297
|
+
510: "Not Extended",
|
|
3298
|
+
511: "Network Authentication Required"
|
|
3299
|
+
};
|
|
3300
|
+
const $o = /* @__PURE__ */ br(fn);
|
|
3301
|
+
(function(e) {
|
|
3302
|
+
var t = Do, r = xe, n = Bo, i = ko, c = $o, l = e;
|
|
3303
|
+
l.request = function(h, p) {
|
|
3304
|
+
typeof h == "string" ? h = c.parse(h) : h = n(h);
|
|
3305
|
+
var A = V.location.protocol.search(/^https?:$/) === -1 ? "http:" : "", L = h.protocol || A, E = h.hostname || h.host, N = h.port, W = h.path || "/";
|
|
3306
|
+
E && E.indexOf(":") !== -1 && (E = "[" + E + "]"), h.url = (E ? L + "//" + E : "") + (N ? ":" + N : "") + W, h.method = (h.method || "GET").toUpperCase(), h.headers = h.headers || {};
|
|
3307
|
+
var O = new t(h);
|
|
3308
|
+
return p && O.on("response", p), O;
|
|
3309
|
+
}, l.get = function(p, A) {
|
|
3310
|
+
var L = l.request(p, A);
|
|
3311
|
+
return L.end(), L;
|
|
3312
|
+
}, l.ClientRequest = t, l.IncomingMessage = r.IncomingMessage, l.Agent = function() {
|
|
3313
|
+
}, l.Agent.defaultMaxSockets = 4, l.globalAgent = new l.Agent(), l.STATUS_CODES = i, l.METHODS = [
|
|
3314
|
+
"CHECKOUT",
|
|
3315
|
+
"CONNECT",
|
|
3316
|
+
"COPY",
|
|
3317
|
+
"DELETE",
|
|
3318
|
+
"GET",
|
|
3319
|
+
"HEAD",
|
|
3320
|
+
"LOCK",
|
|
3321
|
+
"M-SEARCH",
|
|
3322
|
+
"MERGE",
|
|
3323
|
+
"MKACTIVITY",
|
|
3324
|
+
"MKCOL",
|
|
3325
|
+
"MOVE",
|
|
3326
|
+
"NOTIFY",
|
|
3327
|
+
"OPTIONS",
|
|
3328
|
+
"PATCH",
|
|
3329
|
+
"POST",
|
|
3330
|
+
"PROPFIND",
|
|
3331
|
+
"PROPPATCH",
|
|
3332
|
+
"PURGE",
|
|
3333
|
+
"PUT",
|
|
3334
|
+
"REPORT",
|
|
3335
|
+
"SEARCH",
|
|
3336
|
+
"SUBSCRIBE",
|
|
3337
|
+
"TRACE",
|
|
3338
|
+
"UNLOCK",
|
|
3339
|
+
"UNSUBSCRIBE"
|
|
3340
|
+
];
|
|
3341
|
+
})(Tt);
|
|
3342
|
+
const Wo = /* @__PURE__ */ an(Tt), Ho = /* @__PURE__ */ un({
|
|
3343
|
+
__proto__: null,
|
|
3344
|
+
default: Wo
|
|
3345
|
+
}, [Tt]);
|
|
3346
|
+
export {
|
|
3347
|
+
Ho as i,
|
|
3348
|
+
$o as r,
|
|
3349
|
+
Tt as s
|
|
3350
|
+
};
|