@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.10
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 +21 -0
- package/dist/openapi-k8s-toolkit.es.js +4345 -0
- package/dist/openapi-k8s-toolkit.es.js.map +1 -0
- package/dist/openapi-k8s-toolkit.umd.js +92 -0
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -0
- package/dist/types/api/getDirectUnknownResource.d.ts +4 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/ManageableBreadcrumbs.d.ts +16 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/index.d.ts +3 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/prepareTemplate.test.d.ts +1 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/styled.d.ts +276 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/types.d.ts +17 -0
- package/dist/types/components/molecules/ManageableBreadcrumbs/utils.d.ts +17 -0
- package/dist/types/components/molecules/index.d.ts +1 -0
- package/dist/types/hooks/useDirectUnknownResource.d.ts +6 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/setupTests.d.ts +1 -0
- package/package.json +110 -0
|
@@ -0,0 +1,4345 @@
|
|
|
1
|
+
import tt, { useDebugValue as rn, createElement as Ui, useRef as Li, useContext as ji } from "react";
|
|
2
|
+
import { Breadcrumb as Mi, Spin as $i } from "antd";
|
|
3
|
+
import { useQuery as zi } from "@tanstack/react-query";
|
|
4
|
+
import { matchPath as Hi, Link as qi } from "react-router-dom";
|
|
5
|
+
function Vi(e) {
|
|
6
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
|
+
}
|
|
8
|
+
var Fn = { exports: {} }, Q = Fn.exports = {}, Ie, Pe;
|
|
9
|
+
function Tr() {
|
|
10
|
+
throw new Error("setTimeout has not been defined");
|
|
11
|
+
}
|
|
12
|
+
function Cr() {
|
|
13
|
+
throw new Error("clearTimeout has not been defined");
|
|
14
|
+
}
|
|
15
|
+
(function() {
|
|
16
|
+
try {
|
|
17
|
+
typeof setTimeout == "function" ? Ie = setTimeout : Ie = Tr;
|
|
18
|
+
} catch {
|
|
19
|
+
Ie = Tr;
|
|
20
|
+
}
|
|
21
|
+
try {
|
|
22
|
+
typeof clearTimeout == "function" ? Pe = clearTimeout : Pe = Cr;
|
|
23
|
+
} catch {
|
|
24
|
+
Pe = Cr;
|
|
25
|
+
}
|
|
26
|
+
})();
|
|
27
|
+
function kn(e) {
|
|
28
|
+
if (Ie === setTimeout)
|
|
29
|
+
return setTimeout(e, 0);
|
|
30
|
+
if ((Ie === Tr || !Ie) && setTimeout)
|
|
31
|
+
return Ie = setTimeout, setTimeout(e, 0);
|
|
32
|
+
try {
|
|
33
|
+
return Ie(e, 0);
|
|
34
|
+
} catch {
|
|
35
|
+
try {
|
|
36
|
+
return Ie.call(null, e, 0);
|
|
37
|
+
} catch {
|
|
38
|
+
return Ie.call(this, e, 0);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function Wi(e) {
|
|
43
|
+
if (Pe === clearTimeout)
|
|
44
|
+
return clearTimeout(e);
|
|
45
|
+
if ((Pe === Cr || !Pe) && clearTimeout)
|
|
46
|
+
return Pe = clearTimeout, clearTimeout(e);
|
|
47
|
+
try {
|
|
48
|
+
return Pe(e);
|
|
49
|
+
} catch {
|
|
50
|
+
try {
|
|
51
|
+
return Pe.call(null, e);
|
|
52
|
+
} catch {
|
|
53
|
+
return Pe.call(this, e);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
var je = [], dt = !1, Ke, Vt = -1;
|
|
58
|
+
function Yi() {
|
|
59
|
+
!dt || !Ke || (dt = !1, Ke.length ? je = Ke.concat(je) : Vt = -1, je.length && Nn());
|
|
60
|
+
}
|
|
61
|
+
function Nn() {
|
|
62
|
+
if (!dt) {
|
|
63
|
+
var e = kn(Yi);
|
|
64
|
+
dt = !0;
|
|
65
|
+
for (var t = je.length; t; ) {
|
|
66
|
+
for (Ke = je, je = []; ++Vt < t; )
|
|
67
|
+
Ke && Ke[Vt].run();
|
|
68
|
+
Vt = -1, t = je.length;
|
|
69
|
+
}
|
|
70
|
+
Ke = null, dt = !1, Wi(e);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
Q.nextTick = function(e) {
|
|
74
|
+
var t = new Array(arguments.length - 1);
|
|
75
|
+
if (arguments.length > 1)
|
|
76
|
+
for (var n = 1; n < arguments.length; n++)
|
|
77
|
+
t[n - 1] = arguments[n];
|
|
78
|
+
je.push(new Dn(e, t)), je.length === 1 && !dt && kn(Nn);
|
|
79
|
+
};
|
|
80
|
+
function Dn(e, t) {
|
|
81
|
+
this.fun = e, this.array = t;
|
|
82
|
+
}
|
|
83
|
+
Dn.prototype.run = function() {
|
|
84
|
+
this.fun.apply(null, this.array);
|
|
85
|
+
};
|
|
86
|
+
Q.title = "browser";
|
|
87
|
+
Q.browser = !0;
|
|
88
|
+
Q.env = {};
|
|
89
|
+
Q.argv = [];
|
|
90
|
+
Q.version = "";
|
|
91
|
+
Q.versions = {};
|
|
92
|
+
function Me() {
|
|
93
|
+
}
|
|
94
|
+
Q.on = Me;
|
|
95
|
+
Q.addListener = Me;
|
|
96
|
+
Q.once = Me;
|
|
97
|
+
Q.off = Me;
|
|
98
|
+
Q.removeListener = Me;
|
|
99
|
+
Q.removeAllListeners = Me;
|
|
100
|
+
Q.emit = Me;
|
|
101
|
+
Q.prependListener = Me;
|
|
102
|
+
Q.prependOnceListener = Me;
|
|
103
|
+
Q.listeners = function(e) {
|
|
104
|
+
return [];
|
|
105
|
+
};
|
|
106
|
+
Q.binding = function(e) {
|
|
107
|
+
throw new Error("process.binding is not supported");
|
|
108
|
+
};
|
|
109
|
+
Q.cwd = function() {
|
|
110
|
+
return "/";
|
|
111
|
+
};
|
|
112
|
+
Q.chdir = function(e) {
|
|
113
|
+
throw new Error("process.chdir is not supported");
|
|
114
|
+
};
|
|
115
|
+
Q.umask = function() {
|
|
116
|
+
return 0;
|
|
117
|
+
};
|
|
118
|
+
var Gi = Fn.exports;
|
|
119
|
+
const k = /* @__PURE__ */ Vi(Gi);
|
|
120
|
+
var Or = { exports: {} }, Ot = {};
|
|
121
|
+
/**
|
|
122
|
+
* @license React
|
|
123
|
+
* react-jsx-runtime.production.min.js
|
|
124
|
+
*
|
|
125
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the MIT license found in the
|
|
128
|
+
* LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/
|
|
130
|
+
var nn;
|
|
131
|
+
function Ji() {
|
|
132
|
+
if (nn) return Ot;
|
|
133
|
+
nn = 1;
|
|
134
|
+
var e = tt, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
135
|
+
function l(d, g, y) {
|
|
136
|
+
var f, b = {}, A = null, v = null;
|
|
137
|
+
y !== void 0 && (A = "" + y), g.key !== void 0 && (A = "" + g.key), g.ref !== void 0 && (v = g.ref);
|
|
138
|
+
for (f in g) o.call(g, f) && !c.hasOwnProperty(f) && (b[f] = g[f]);
|
|
139
|
+
if (d && d.defaultProps) for (f in g = d.defaultProps, g) b[f] === void 0 && (b[f] = g[f]);
|
|
140
|
+
return { $$typeof: t, type: d, key: A, ref: v, props: b, _owner: a.current };
|
|
141
|
+
}
|
|
142
|
+
return Ot.Fragment = n, Ot.jsx = l, Ot.jsxs = l, Ot;
|
|
143
|
+
}
|
|
144
|
+
var Bt = {}, on;
|
|
145
|
+
function Ki() {
|
|
146
|
+
return on || (on = 1, k.env.NODE_ENV !== "production" && function() {
|
|
147
|
+
var e = tt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), S = Symbol.iterator, T = "@@iterator";
|
|
148
|
+
function H(p) {
|
|
149
|
+
if (p === null || typeof p != "object")
|
|
150
|
+
return null;
|
|
151
|
+
var x = S && p[S] || p[T];
|
|
152
|
+
return typeof x == "function" ? x : null;
|
|
153
|
+
}
|
|
154
|
+
var _ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
155
|
+
function C(p) {
|
|
156
|
+
{
|
|
157
|
+
for (var x = arguments.length, R = new Array(x > 1 ? x - 1 : 0), B = 1; B < x; B++)
|
|
158
|
+
R[B - 1] = arguments[B];
|
|
159
|
+
D("error", p, R);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
function D(p, x, R) {
|
|
163
|
+
{
|
|
164
|
+
var B = _.ReactDebugCurrentFrame, z = B.getStackAddendum();
|
|
165
|
+
z !== "" && (x += "%s", R = R.concat([z]));
|
|
166
|
+
var W = R.map(function(U) {
|
|
167
|
+
return String(U);
|
|
168
|
+
});
|
|
169
|
+
W.unshift("Warning: " + x), Function.prototype.apply.call(console[p], console, W);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
var j = !1, Y = !1, F = !1, O = !1, ie = !1, me;
|
|
173
|
+
me = Symbol.for("react.module.reference");
|
|
174
|
+
function it(p) {
|
|
175
|
+
return !!(typeof p == "string" || typeof p == "function" || p === o || p === c || ie || p === a || p === y || p === f || O || p === v || j || Y || F || typeof p == "object" && p !== null && (p.$$typeof === A || p.$$typeof === b || p.$$typeof === l || p.$$typeof === d || p.$$typeof === g || // This needs to include all possible module reference object
|
|
176
|
+
// types supported by any Flight configuration anywhere since
|
|
177
|
+
// we don't know which Flight build this will end up being used
|
|
178
|
+
// with.
|
|
179
|
+
p.$$typeof === me || p.getModuleId !== void 0));
|
|
180
|
+
}
|
|
181
|
+
function At(p, x, R) {
|
|
182
|
+
var B = p.displayName;
|
|
183
|
+
if (B)
|
|
184
|
+
return B;
|
|
185
|
+
var z = x.displayName || x.name || "";
|
|
186
|
+
return z !== "" ? R + "(" + z + ")" : R;
|
|
187
|
+
}
|
|
188
|
+
function ot(p) {
|
|
189
|
+
return p.displayName || "Context";
|
|
190
|
+
}
|
|
191
|
+
function pe(p) {
|
|
192
|
+
if (p == null)
|
|
193
|
+
return null;
|
|
194
|
+
if (typeof p.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof p == "function")
|
|
195
|
+
return p.displayName || p.name || null;
|
|
196
|
+
if (typeof p == "string")
|
|
197
|
+
return p;
|
|
198
|
+
switch (p) {
|
|
199
|
+
case o:
|
|
200
|
+
return "Fragment";
|
|
201
|
+
case n:
|
|
202
|
+
return "Portal";
|
|
203
|
+
case c:
|
|
204
|
+
return "Profiler";
|
|
205
|
+
case a:
|
|
206
|
+
return "StrictMode";
|
|
207
|
+
case y:
|
|
208
|
+
return "Suspense";
|
|
209
|
+
case f:
|
|
210
|
+
return "SuspenseList";
|
|
211
|
+
}
|
|
212
|
+
if (typeof p == "object")
|
|
213
|
+
switch (p.$$typeof) {
|
|
214
|
+
case d:
|
|
215
|
+
var x = p;
|
|
216
|
+
return ot(x) + ".Consumer";
|
|
217
|
+
case l:
|
|
218
|
+
var R = p;
|
|
219
|
+
return ot(R._context) + ".Provider";
|
|
220
|
+
case g:
|
|
221
|
+
return At(p, p.render, "ForwardRef");
|
|
222
|
+
case b:
|
|
223
|
+
var B = p.displayName || null;
|
|
224
|
+
return B !== null ? B : pe(p.type) || "Memo";
|
|
225
|
+
case A: {
|
|
226
|
+
var z = p, W = z._payload, U = z._init;
|
|
227
|
+
try {
|
|
228
|
+
return pe(U(W));
|
|
229
|
+
} catch {
|
|
230
|
+
return null;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
return null;
|
|
235
|
+
}
|
|
236
|
+
var ve = Object.assign, De = 0, st, Ue, ue, Ce, Oe, oe, $e;
|
|
237
|
+
function ze() {
|
|
238
|
+
}
|
|
239
|
+
ze.__reactDisabledLog = !0;
|
|
240
|
+
function J() {
|
|
241
|
+
{
|
|
242
|
+
if (De === 0) {
|
|
243
|
+
st = console.log, Ue = console.info, ue = console.warn, Ce = console.error, Oe = console.group, oe = console.groupCollapsed, $e = console.groupEnd;
|
|
244
|
+
var p = {
|
|
245
|
+
configurable: !0,
|
|
246
|
+
enumerable: !0,
|
|
247
|
+
value: ze,
|
|
248
|
+
writable: !0
|
|
249
|
+
};
|
|
250
|
+
Object.defineProperties(console, {
|
|
251
|
+
info: p,
|
|
252
|
+
log: p,
|
|
253
|
+
warn: p,
|
|
254
|
+
error: p,
|
|
255
|
+
group: p,
|
|
256
|
+
groupCollapsed: p,
|
|
257
|
+
groupEnd: p
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
De++;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
function X() {
|
|
264
|
+
{
|
|
265
|
+
if (De--, De === 0) {
|
|
266
|
+
var p = {
|
|
267
|
+
configurable: !0,
|
|
268
|
+
enumerable: !0,
|
|
269
|
+
writable: !0
|
|
270
|
+
};
|
|
271
|
+
Object.defineProperties(console, {
|
|
272
|
+
log: ve({}, p, {
|
|
273
|
+
value: st
|
|
274
|
+
}),
|
|
275
|
+
info: ve({}, p, {
|
|
276
|
+
value: Ue
|
|
277
|
+
}),
|
|
278
|
+
warn: ve({}, p, {
|
|
279
|
+
value: ue
|
|
280
|
+
}),
|
|
281
|
+
error: ve({}, p, {
|
|
282
|
+
value: Ce
|
|
283
|
+
}),
|
|
284
|
+
group: ve({}, p, {
|
|
285
|
+
value: Oe
|
|
286
|
+
}),
|
|
287
|
+
groupCollapsed: ve({}, p, {
|
|
288
|
+
value: oe
|
|
289
|
+
}),
|
|
290
|
+
groupEnd: ve({}, p, {
|
|
291
|
+
value: $e
|
|
292
|
+
})
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
De < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
var Re = _.ReactCurrentDispatcher, he;
|
|
299
|
+
function ae(p, x, R) {
|
|
300
|
+
{
|
|
301
|
+
if (he === void 0)
|
|
302
|
+
try {
|
|
303
|
+
throw Error();
|
|
304
|
+
} catch (z) {
|
|
305
|
+
var B = z.stack.trim().match(/\n( *(at )?)/);
|
|
306
|
+
he = B && B[1] || "";
|
|
307
|
+
}
|
|
308
|
+
return `
|
|
309
|
+
` + he + p;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
var Be = !1, ye;
|
|
313
|
+
{
|
|
314
|
+
var se = typeof WeakMap == "function" ? WeakMap : Map;
|
|
315
|
+
ye = new se();
|
|
316
|
+
}
|
|
317
|
+
function at(p, x) {
|
|
318
|
+
if (!p || Be)
|
|
319
|
+
return "";
|
|
320
|
+
{
|
|
321
|
+
var R = ye.get(p);
|
|
322
|
+
if (R !== void 0)
|
|
323
|
+
return R;
|
|
324
|
+
}
|
|
325
|
+
var B;
|
|
326
|
+
Be = !0;
|
|
327
|
+
var z = Error.prepareStackTrace;
|
|
328
|
+
Error.prepareStackTrace = void 0;
|
|
329
|
+
var W;
|
|
330
|
+
W = Re.current, Re.current = null, J();
|
|
331
|
+
try {
|
|
332
|
+
if (x) {
|
|
333
|
+
var U = function() {
|
|
334
|
+
throw Error();
|
|
335
|
+
};
|
|
336
|
+
if (Object.defineProperty(U.prototype, "props", {
|
|
337
|
+
set: function() {
|
|
338
|
+
throw Error();
|
|
339
|
+
}
|
|
340
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
341
|
+
try {
|
|
342
|
+
Reflect.construct(U, []);
|
|
343
|
+
} catch (le) {
|
|
344
|
+
B = le;
|
|
345
|
+
}
|
|
346
|
+
Reflect.construct(p, [], U);
|
|
347
|
+
} else {
|
|
348
|
+
try {
|
|
349
|
+
U.call();
|
|
350
|
+
} catch (le) {
|
|
351
|
+
B = le;
|
|
352
|
+
}
|
|
353
|
+
p.call(U.prototype);
|
|
354
|
+
}
|
|
355
|
+
} else {
|
|
356
|
+
try {
|
|
357
|
+
throw Error();
|
|
358
|
+
} catch (le) {
|
|
359
|
+
B = le;
|
|
360
|
+
}
|
|
361
|
+
p();
|
|
362
|
+
}
|
|
363
|
+
} catch (le) {
|
|
364
|
+
if (le && B && typeof le.stack == "string") {
|
|
365
|
+
for (var N = le.stack.split(`
|
|
366
|
+
`), ce = B.stack.split(`
|
|
367
|
+
`), Z = N.length - 1, ee = ce.length - 1; Z >= 1 && ee >= 0 && N[Z] !== ce[ee]; )
|
|
368
|
+
ee--;
|
|
369
|
+
for (; Z >= 1 && ee >= 0; Z--, ee--)
|
|
370
|
+
if (N[Z] !== ce[ee]) {
|
|
371
|
+
if (Z !== 1 || ee !== 1)
|
|
372
|
+
do
|
|
373
|
+
if (Z--, ee--, ee < 0 || N[Z] !== ce[ee]) {
|
|
374
|
+
var we = `
|
|
375
|
+
` + N[Z].replace(" at new ", " at ");
|
|
376
|
+
return p.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", p.displayName)), typeof p == "function" && ye.set(p, we), we;
|
|
377
|
+
}
|
|
378
|
+
while (Z >= 1 && ee >= 0);
|
|
379
|
+
break;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
} finally {
|
|
383
|
+
Be = !1, Re.current = W, X(), Error.prepareStackTrace = z;
|
|
384
|
+
}
|
|
385
|
+
var ft = p ? p.displayName || p.name : "", Ge = ft ? ae(ft) : "";
|
|
386
|
+
return typeof p == "function" && ye.set(p, Ge), Ge;
|
|
387
|
+
}
|
|
388
|
+
function Ut(p, x, R) {
|
|
389
|
+
return at(p, !1);
|
|
390
|
+
}
|
|
391
|
+
function pr(p) {
|
|
392
|
+
var x = p.prototype;
|
|
393
|
+
return !!(x && x.isReactComponent);
|
|
394
|
+
}
|
|
395
|
+
function Ye(p, x, R) {
|
|
396
|
+
if (p == null)
|
|
397
|
+
return "";
|
|
398
|
+
if (typeof p == "function")
|
|
399
|
+
return at(p, pr(p));
|
|
400
|
+
if (typeof p == "string")
|
|
401
|
+
return ae(p);
|
|
402
|
+
switch (p) {
|
|
403
|
+
case y:
|
|
404
|
+
return ae("Suspense");
|
|
405
|
+
case f:
|
|
406
|
+
return ae("SuspenseList");
|
|
407
|
+
}
|
|
408
|
+
if (typeof p == "object")
|
|
409
|
+
switch (p.$$typeof) {
|
|
410
|
+
case g:
|
|
411
|
+
return Ut(p.render);
|
|
412
|
+
case b:
|
|
413
|
+
return Ye(p.type, x, R);
|
|
414
|
+
case A: {
|
|
415
|
+
var B = p, z = B._payload, W = B._init;
|
|
416
|
+
try {
|
|
417
|
+
return Ye(W(z), x, R);
|
|
418
|
+
} catch {
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
return "";
|
|
423
|
+
}
|
|
424
|
+
var ge = Object.prototype.hasOwnProperty, He = {}, Lt = _.ReactDebugCurrentFrame;
|
|
425
|
+
function ct(p) {
|
|
426
|
+
if (p) {
|
|
427
|
+
var x = p._owner, R = Ye(p.type, p._source, x ? x.type : null);
|
|
428
|
+
Lt.setExtraStackFrame(R);
|
|
429
|
+
} else
|
|
430
|
+
Lt.setExtraStackFrame(null);
|
|
431
|
+
}
|
|
432
|
+
function Tt(p, x, R, B, z) {
|
|
433
|
+
{
|
|
434
|
+
var W = Function.call.bind(ge);
|
|
435
|
+
for (var U in p)
|
|
436
|
+
if (W(p, U)) {
|
|
437
|
+
var N = void 0;
|
|
438
|
+
try {
|
|
439
|
+
if (typeof p[U] != "function") {
|
|
440
|
+
var ce = Error((B || "React class") + ": " + R + " type `" + U + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof p[U] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
441
|
+
throw ce.name = "Invariant Violation", ce;
|
|
442
|
+
}
|
|
443
|
+
N = p[U](x, U, B, R, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
444
|
+
} catch (Z) {
|
|
445
|
+
N = Z;
|
|
446
|
+
}
|
|
447
|
+
N && !(N instanceof Error) && (ct(z), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", B || "React class", R, U, typeof N), ct(null)), N instanceof Error && !(N.message in He) && (He[N.message] = !0, ct(z), C("Failed %s type: %s", R, N.message), ct(null));
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
var hr = Array.isArray;
|
|
452
|
+
function Ct(p) {
|
|
453
|
+
return hr(p);
|
|
454
|
+
}
|
|
455
|
+
function jt(p) {
|
|
456
|
+
{
|
|
457
|
+
var x = typeof Symbol == "function" && Symbol.toStringTag, R = x && p[Symbol.toStringTag] || p.constructor.name || "Object";
|
|
458
|
+
return R;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
function ut(p) {
|
|
462
|
+
try {
|
|
463
|
+
return de(p), !1;
|
|
464
|
+
} catch {
|
|
465
|
+
return !0;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
function de(p) {
|
|
469
|
+
return "" + p;
|
|
470
|
+
}
|
|
471
|
+
function lt(p) {
|
|
472
|
+
if (ut(p))
|
|
473
|
+
return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jt(p)), de(p);
|
|
474
|
+
}
|
|
475
|
+
var Mt = _.ReactCurrentOwner, _e = {
|
|
476
|
+
key: !0,
|
|
477
|
+
ref: !0,
|
|
478
|
+
__self: !0,
|
|
479
|
+
__source: !0
|
|
480
|
+
}, $t, s;
|
|
481
|
+
function r(p) {
|
|
482
|
+
if (ge.call(p, "ref")) {
|
|
483
|
+
var x = Object.getOwnPropertyDescriptor(p, "ref").get;
|
|
484
|
+
if (x && x.isReactWarning)
|
|
485
|
+
return !1;
|
|
486
|
+
}
|
|
487
|
+
return p.ref !== void 0;
|
|
488
|
+
}
|
|
489
|
+
function i(p) {
|
|
490
|
+
if (ge.call(p, "key")) {
|
|
491
|
+
var x = Object.getOwnPropertyDescriptor(p, "key").get;
|
|
492
|
+
if (x && x.isReactWarning)
|
|
493
|
+
return !1;
|
|
494
|
+
}
|
|
495
|
+
return p.key !== void 0;
|
|
496
|
+
}
|
|
497
|
+
function u(p, x) {
|
|
498
|
+
typeof p.ref == "string" && Mt.current;
|
|
499
|
+
}
|
|
500
|
+
function h(p, x) {
|
|
501
|
+
{
|
|
502
|
+
var R = function() {
|
|
503
|
+
$t || ($t = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
|
|
504
|
+
};
|
|
505
|
+
R.isReactWarning = !0, Object.defineProperty(p, "key", {
|
|
506
|
+
get: R,
|
|
507
|
+
configurable: !0
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
function m(p, x) {
|
|
512
|
+
{
|
|
513
|
+
var R = function() {
|
|
514
|
+
s || (s = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", x));
|
|
515
|
+
};
|
|
516
|
+
R.isReactWarning = !0, Object.defineProperty(p, "ref", {
|
|
517
|
+
get: R,
|
|
518
|
+
configurable: !0
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
var E = function(p, x, R, B, z, W, U) {
|
|
523
|
+
var N = {
|
|
524
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
525
|
+
$$typeof: t,
|
|
526
|
+
// Built-in properties that belong on the element
|
|
527
|
+
type: p,
|
|
528
|
+
key: x,
|
|
529
|
+
ref: R,
|
|
530
|
+
props: U,
|
|
531
|
+
// Record the component responsible for creating this element.
|
|
532
|
+
_owner: W
|
|
533
|
+
};
|
|
534
|
+
return N._store = {}, Object.defineProperty(N._store, "validated", {
|
|
535
|
+
configurable: !1,
|
|
536
|
+
enumerable: !1,
|
|
537
|
+
writable: !0,
|
|
538
|
+
value: !1
|
|
539
|
+
}), Object.defineProperty(N, "_self", {
|
|
540
|
+
configurable: !1,
|
|
541
|
+
enumerable: !1,
|
|
542
|
+
writable: !1,
|
|
543
|
+
value: B
|
|
544
|
+
}), Object.defineProperty(N, "_source", {
|
|
545
|
+
configurable: !1,
|
|
546
|
+
enumerable: !1,
|
|
547
|
+
writable: !1,
|
|
548
|
+
value: z
|
|
549
|
+
}), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
|
|
550
|
+
};
|
|
551
|
+
function P(p, x, R, B, z) {
|
|
552
|
+
{
|
|
553
|
+
var W, U = {}, N = null, ce = null;
|
|
554
|
+
R !== void 0 && (lt(R), N = "" + R), i(x) && (lt(x.key), N = "" + x.key), r(x) && (ce = x.ref, u(x, z));
|
|
555
|
+
for (W in x)
|
|
556
|
+
ge.call(x, W) && !_e.hasOwnProperty(W) && (U[W] = x[W]);
|
|
557
|
+
if (p && p.defaultProps) {
|
|
558
|
+
var Z = p.defaultProps;
|
|
559
|
+
for (W in Z)
|
|
560
|
+
U[W] === void 0 && (U[W] = Z[W]);
|
|
561
|
+
}
|
|
562
|
+
if (N || ce) {
|
|
563
|
+
var ee = typeof p == "function" ? p.displayName || p.name || "Unknown" : p;
|
|
564
|
+
N && h(U, ee), ce && m(U, ee);
|
|
565
|
+
}
|
|
566
|
+
return E(p, N, ce, z, B, Mt.current, U);
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
var G = _.ReactCurrentOwner, V = _.ReactDebugCurrentFrame;
|
|
570
|
+
function q(p) {
|
|
571
|
+
if (p) {
|
|
572
|
+
var x = p._owner, R = Ye(p.type, p._source, x ? x.type : null);
|
|
573
|
+
V.setExtraStackFrame(R);
|
|
574
|
+
} else
|
|
575
|
+
V.setExtraStackFrame(null);
|
|
576
|
+
}
|
|
577
|
+
var M;
|
|
578
|
+
M = !1;
|
|
579
|
+
function dr(p) {
|
|
580
|
+
return typeof p == "object" && p !== null && p.$$typeof === t;
|
|
581
|
+
}
|
|
582
|
+
function Kr() {
|
|
583
|
+
{
|
|
584
|
+
if (G.current) {
|
|
585
|
+
var p = pe(G.current.type);
|
|
586
|
+
if (p)
|
|
587
|
+
return `
|
|
588
|
+
|
|
589
|
+
Check the render method of \`` + p + "`.";
|
|
590
|
+
}
|
|
591
|
+
return "";
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
function Ci(p) {
|
|
595
|
+
return "";
|
|
596
|
+
}
|
|
597
|
+
var Xr = {};
|
|
598
|
+
function Oi(p) {
|
|
599
|
+
{
|
|
600
|
+
var x = Kr();
|
|
601
|
+
if (!x) {
|
|
602
|
+
var R = typeof p == "string" ? p : p.displayName || p.name;
|
|
603
|
+
R && (x = `
|
|
604
|
+
|
|
605
|
+
Check the top-level render call using <` + R + ">.");
|
|
606
|
+
}
|
|
607
|
+
return x;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
function Zr(p, x) {
|
|
611
|
+
{
|
|
612
|
+
if (!p._store || p._store.validated || p.key != null)
|
|
613
|
+
return;
|
|
614
|
+
p._store.validated = !0;
|
|
615
|
+
var R = Oi(x);
|
|
616
|
+
if (Xr[R])
|
|
617
|
+
return;
|
|
618
|
+
Xr[R] = !0;
|
|
619
|
+
var B = "";
|
|
620
|
+
p && p._owner && p._owner !== G.current && (B = " It was passed a child from " + pe(p._owner.type) + "."), q(p), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', R, B), q(null);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
function Qr(p, x) {
|
|
624
|
+
{
|
|
625
|
+
if (typeof p != "object")
|
|
626
|
+
return;
|
|
627
|
+
if (Ct(p))
|
|
628
|
+
for (var R = 0; R < p.length; R++) {
|
|
629
|
+
var B = p[R];
|
|
630
|
+
dr(B) && Zr(B, x);
|
|
631
|
+
}
|
|
632
|
+
else if (dr(p))
|
|
633
|
+
p._store && (p._store.validated = !0);
|
|
634
|
+
else if (p) {
|
|
635
|
+
var z = H(p);
|
|
636
|
+
if (typeof z == "function" && z !== p.entries)
|
|
637
|
+
for (var W = z.call(p), U; !(U = W.next()).done; )
|
|
638
|
+
dr(U.value) && Zr(U.value, x);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
function Bi(p) {
|
|
643
|
+
{
|
|
644
|
+
var x = p.type;
|
|
645
|
+
if (x == null || typeof x == "string")
|
|
646
|
+
return;
|
|
647
|
+
var R;
|
|
648
|
+
if (typeof x == "function")
|
|
649
|
+
R = x.propTypes;
|
|
650
|
+
else if (typeof x == "object" && (x.$$typeof === g || // Note: Memo only checks outer props here.
|
|
651
|
+
// Inner props are checked in the reconciler.
|
|
652
|
+
x.$$typeof === b))
|
|
653
|
+
R = x.propTypes;
|
|
654
|
+
else
|
|
655
|
+
return;
|
|
656
|
+
if (R) {
|
|
657
|
+
var B = pe(x);
|
|
658
|
+
Tt(R, p.props, "prop", B, p);
|
|
659
|
+
} else if (x.PropTypes !== void 0 && !M) {
|
|
660
|
+
M = !0;
|
|
661
|
+
var z = pe(x);
|
|
662
|
+
C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", z || "Unknown");
|
|
663
|
+
}
|
|
664
|
+
typeof x.getDefaultProps == "function" && !x.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
function _i(p) {
|
|
668
|
+
{
|
|
669
|
+
for (var x = Object.keys(p.props), R = 0; R < x.length; R++) {
|
|
670
|
+
var B = x[R];
|
|
671
|
+
if (B !== "children" && B !== "key") {
|
|
672
|
+
q(p), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", B), q(null);
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
p.ref !== null && (q(p), C("Invalid attribute `ref` supplied to `React.Fragment`."), q(null));
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
var en = {};
|
|
680
|
+
function tn(p, x, R, B, z, W) {
|
|
681
|
+
{
|
|
682
|
+
var U = it(p);
|
|
683
|
+
if (!U) {
|
|
684
|
+
var N = "";
|
|
685
|
+
(p === void 0 || typeof p == "object" && p !== null && Object.keys(p).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
686
|
+
var ce = Ci();
|
|
687
|
+
ce ? N += ce : N += Kr();
|
|
688
|
+
var Z;
|
|
689
|
+
p === null ? Z = "null" : Ct(p) ? Z = "array" : p !== void 0 && p.$$typeof === t ? (Z = "<" + (pe(p.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof p, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, N);
|
|
690
|
+
}
|
|
691
|
+
var ee = P(p, x, R, z, W);
|
|
692
|
+
if (ee == null)
|
|
693
|
+
return ee;
|
|
694
|
+
if (U) {
|
|
695
|
+
var we = x.children;
|
|
696
|
+
if (we !== void 0)
|
|
697
|
+
if (B)
|
|
698
|
+
if (Ct(we)) {
|
|
699
|
+
for (var ft = 0; ft < we.length; ft++)
|
|
700
|
+
Qr(we[ft], p);
|
|
701
|
+
Object.freeze && Object.freeze(we);
|
|
702
|
+
} else
|
|
703
|
+
C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
704
|
+
else
|
|
705
|
+
Qr(we, p);
|
|
706
|
+
}
|
|
707
|
+
if (ge.call(x, "key")) {
|
|
708
|
+
var Ge = pe(p), le = Object.keys(x).filter(function(Di) {
|
|
709
|
+
return Di !== "key";
|
|
710
|
+
}), mr = le.length > 0 ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
711
|
+
if (!en[Ge + mr]) {
|
|
712
|
+
var Ni = le.length > 0 ? "{" + le.join(": ..., ") + ": ...}" : "{}";
|
|
713
|
+
C(`A props object containing a "key" prop is being spread into JSX:
|
|
714
|
+
let props = %s;
|
|
715
|
+
<%s {...props} />
|
|
716
|
+
React keys must be passed directly to JSX without using spread:
|
|
717
|
+
let props = %s;
|
|
718
|
+
<%s key={someKey} {...props} />`, mr, Ge, Ni, Ge), en[Ge + mr] = !0;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
return p === o ? _i(ee) : Bi(ee), ee;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
function Ii(p, x, R) {
|
|
725
|
+
return tn(p, x, R, !0);
|
|
726
|
+
}
|
|
727
|
+
function Pi(p, x, R) {
|
|
728
|
+
return tn(p, x, R, !1);
|
|
729
|
+
}
|
|
730
|
+
var Fi = Pi, ki = Ii;
|
|
731
|
+
Bt.Fragment = o, Bt.jsx = Fi, Bt.jsxs = ki;
|
|
732
|
+
}()), Bt;
|
|
733
|
+
}
|
|
734
|
+
k.env.NODE_ENV === "production" ? Or.exports = Ji() : Or.exports = Ki();
|
|
735
|
+
var Ze = Or.exports;
|
|
736
|
+
const Xi = globalThis || void 0 || self;
|
|
737
|
+
function Un(e, t) {
|
|
738
|
+
return function() {
|
|
739
|
+
return e.apply(t, arguments);
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
const { toString: Zi } = Object.prototype, { getPrototypeOf: $r } = Object, rr = /* @__PURE__ */ ((e) => (t) => {
|
|
743
|
+
const n = Zi.call(t);
|
|
744
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
745
|
+
})(/* @__PURE__ */ Object.create(null)), Ne = (e) => (e = e.toLowerCase(), (t) => rr(t) === e), nr = (e) => (t) => typeof t === e, { isArray: xt } = Array, Ft = nr("undefined");
|
|
746
|
+
function Qi(e) {
|
|
747
|
+
return e !== null && !Ft(e) && e.constructor !== null && !Ft(e.constructor) && be(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
748
|
+
}
|
|
749
|
+
const Ln = Ne("ArrayBuffer");
|
|
750
|
+
function eo(e) {
|
|
751
|
+
let t;
|
|
752
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ln(e.buffer), t;
|
|
753
|
+
}
|
|
754
|
+
const to = nr("string"), be = nr("function"), jn = nr("number"), ir = (e) => e !== null && typeof e == "object", ro = (e) => e === !0 || e === !1, Wt = (e) => {
|
|
755
|
+
if (rr(e) !== "object")
|
|
756
|
+
return !1;
|
|
757
|
+
const t = $r(e);
|
|
758
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
759
|
+
}, no = Ne("Date"), io = Ne("File"), oo = Ne("Blob"), so = Ne("FileList"), ao = (e) => ir(e) && be(e.pipe), co = (e) => {
|
|
760
|
+
let t;
|
|
761
|
+
return e && (typeof FormData == "function" && e instanceof FormData || be(e.append) && ((t = rr(e)) === "formdata" || // detect form-data instance
|
|
762
|
+
t === "object" && be(e.toString) && e.toString() === "[object FormData]"));
|
|
763
|
+
}, uo = Ne("URLSearchParams"), lo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
764
|
+
function Nt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
765
|
+
if (e === null || typeof e > "u")
|
|
766
|
+
return;
|
|
767
|
+
let o, a;
|
|
768
|
+
if (typeof e != "object" && (e = [e]), xt(e))
|
|
769
|
+
for (o = 0, a = e.length; o < a; o++)
|
|
770
|
+
t.call(null, e[o], o, e);
|
|
771
|
+
else {
|
|
772
|
+
const c = n ? Object.getOwnPropertyNames(e) : Object.keys(e), l = c.length;
|
|
773
|
+
let d;
|
|
774
|
+
for (o = 0; o < l; o++)
|
|
775
|
+
d = c[o], t.call(null, e[d], d, e);
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
function Mn(e, t) {
|
|
779
|
+
t = t.toLowerCase();
|
|
780
|
+
const n = Object.keys(e);
|
|
781
|
+
let o = n.length, a;
|
|
782
|
+
for (; o-- > 0; )
|
|
783
|
+
if (a = n[o], t === a.toLowerCase())
|
|
784
|
+
return a;
|
|
785
|
+
return null;
|
|
786
|
+
}
|
|
787
|
+
const $n = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Xi, zn = (e) => !Ft(e) && e !== $n;
|
|
788
|
+
function Br() {
|
|
789
|
+
const { caseless: e } = zn(this) && this || {}, t = {}, n = (o, a) => {
|
|
790
|
+
const c = e && Mn(t, a) || a;
|
|
791
|
+
Wt(t[c]) && Wt(o) ? t[c] = Br(t[c], o) : Wt(o) ? t[c] = Br({}, o) : xt(o) ? t[c] = o.slice() : t[c] = o;
|
|
792
|
+
};
|
|
793
|
+
for (let o = 0, a = arguments.length; o < a; o++)
|
|
794
|
+
arguments[o] && Nt(arguments[o], n);
|
|
795
|
+
return t;
|
|
796
|
+
}
|
|
797
|
+
const fo = (e, t, n, { allOwnKeys: o } = {}) => (Nt(t, (a, c) => {
|
|
798
|
+
n && be(a) ? e[c] = Un(a, n) : e[c] = a;
|
|
799
|
+
}, { allOwnKeys: o }), e), po = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ho = (e, t, n, o) => {
|
|
800
|
+
e.prototype = Object.create(t.prototype, o), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
801
|
+
value: t.prototype
|
|
802
|
+
}), n && Object.assign(e.prototype, n);
|
|
803
|
+
}, mo = (e, t, n, o) => {
|
|
804
|
+
let a, c, l;
|
|
805
|
+
const d = {};
|
|
806
|
+
if (t = t || {}, e == null) return t;
|
|
807
|
+
do {
|
|
808
|
+
for (a = Object.getOwnPropertyNames(e), c = a.length; c-- > 0; )
|
|
809
|
+
l = a[c], (!o || o(l, e, t)) && !d[l] && (t[l] = e[l], d[l] = !0);
|
|
810
|
+
e = n !== !1 && $r(e);
|
|
811
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
812
|
+
return t;
|
|
813
|
+
}, yo = (e, t, n) => {
|
|
814
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
815
|
+
const o = e.indexOf(t, n);
|
|
816
|
+
return o !== -1 && o === n;
|
|
817
|
+
}, go = (e) => {
|
|
818
|
+
if (!e) return null;
|
|
819
|
+
if (xt(e)) return e;
|
|
820
|
+
let t = e.length;
|
|
821
|
+
if (!jn(t)) return null;
|
|
822
|
+
const n = new Array(t);
|
|
823
|
+
for (; t-- > 0; )
|
|
824
|
+
n[t] = e[t];
|
|
825
|
+
return n;
|
|
826
|
+
}, wo = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && $r(Uint8Array)), Eo = (e, t) => {
|
|
827
|
+
const o = (e && e[Symbol.iterator]).call(e);
|
|
828
|
+
let a;
|
|
829
|
+
for (; (a = o.next()) && !a.done; ) {
|
|
830
|
+
const c = a.value;
|
|
831
|
+
t.call(e, c[0], c[1]);
|
|
832
|
+
}
|
|
833
|
+
}, bo = (e, t) => {
|
|
834
|
+
let n;
|
|
835
|
+
const o = [];
|
|
836
|
+
for (; (n = e.exec(t)) !== null; )
|
|
837
|
+
o.push(n);
|
|
838
|
+
return o;
|
|
839
|
+
}, xo = Ne("HTMLFormElement"), So = (e) => e.toLowerCase().replace(
|
|
840
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
841
|
+
function(n, o, a) {
|
|
842
|
+
return o.toUpperCase() + a;
|
|
843
|
+
}
|
|
844
|
+
), sn = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), vo = Ne("RegExp"), Hn = (e, t) => {
|
|
845
|
+
const n = Object.getOwnPropertyDescriptors(e), o = {};
|
|
846
|
+
Nt(n, (a, c) => {
|
|
847
|
+
t(a, c, e) !== !1 && (o[c] = a);
|
|
848
|
+
}), Object.defineProperties(e, o);
|
|
849
|
+
}, Ro = (e) => {
|
|
850
|
+
Hn(e, (t, n) => {
|
|
851
|
+
if (be(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
852
|
+
return !1;
|
|
853
|
+
const o = e[n];
|
|
854
|
+
if (be(o)) {
|
|
855
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
856
|
+
t.writable = !1;
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
t.set || (t.set = () => {
|
|
860
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
});
|
|
864
|
+
}, Ao = (e, t) => {
|
|
865
|
+
const n = {}, o = (a) => {
|
|
866
|
+
a.forEach((c) => {
|
|
867
|
+
n[c] = !0;
|
|
868
|
+
});
|
|
869
|
+
};
|
|
870
|
+
return xt(e) ? o(e) : o(String(e).split(t)), n;
|
|
871
|
+
}, To = () => {
|
|
872
|
+
}, Co = (e, t) => (e = +e, Number.isFinite(e) ? e : t), yr = "abcdefghijklmnopqrstuvwxyz", an = "0123456789", qn = {
|
|
873
|
+
DIGIT: an,
|
|
874
|
+
ALPHA: yr,
|
|
875
|
+
ALPHA_DIGIT: yr + yr.toUpperCase() + an
|
|
876
|
+
}, Oo = (e = 16, t = qn.ALPHA_DIGIT) => {
|
|
877
|
+
let n = "";
|
|
878
|
+
const { length: o } = t;
|
|
879
|
+
for (; e--; )
|
|
880
|
+
n += t[Math.random() * o | 0];
|
|
881
|
+
return n;
|
|
882
|
+
};
|
|
883
|
+
function Bo(e) {
|
|
884
|
+
return !!(e && be(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
885
|
+
}
|
|
886
|
+
const _o = (e) => {
|
|
887
|
+
const t = new Array(10), n = (o, a) => {
|
|
888
|
+
if (ir(o)) {
|
|
889
|
+
if (t.indexOf(o) >= 0)
|
|
890
|
+
return;
|
|
891
|
+
if (!("toJSON" in o)) {
|
|
892
|
+
t[a] = o;
|
|
893
|
+
const c = xt(o) ? [] : {};
|
|
894
|
+
return Nt(o, (l, d) => {
|
|
895
|
+
const g = n(l, a + 1);
|
|
896
|
+
!Ft(g) && (c[d] = g);
|
|
897
|
+
}), t[a] = void 0, c;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
return o;
|
|
901
|
+
};
|
|
902
|
+
return n(e, 0);
|
|
903
|
+
}, Io = Ne("AsyncFunction"), Po = (e) => e && (ir(e) || be(e)) && be(e.then) && be(e.catch), w = {
|
|
904
|
+
isArray: xt,
|
|
905
|
+
isArrayBuffer: Ln,
|
|
906
|
+
isBuffer: Qi,
|
|
907
|
+
isFormData: co,
|
|
908
|
+
isArrayBufferView: eo,
|
|
909
|
+
isString: to,
|
|
910
|
+
isNumber: jn,
|
|
911
|
+
isBoolean: ro,
|
|
912
|
+
isObject: ir,
|
|
913
|
+
isPlainObject: Wt,
|
|
914
|
+
isUndefined: Ft,
|
|
915
|
+
isDate: no,
|
|
916
|
+
isFile: io,
|
|
917
|
+
isBlob: oo,
|
|
918
|
+
isRegExp: vo,
|
|
919
|
+
isFunction: be,
|
|
920
|
+
isStream: ao,
|
|
921
|
+
isURLSearchParams: uo,
|
|
922
|
+
isTypedArray: wo,
|
|
923
|
+
isFileList: so,
|
|
924
|
+
forEach: Nt,
|
|
925
|
+
merge: Br,
|
|
926
|
+
extend: fo,
|
|
927
|
+
trim: lo,
|
|
928
|
+
stripBOM: po,
|
|
929
|
+
inherits: ho,
|
|
930
|
+
toFlatObject: mo,
|
|
931
|
+
kindOf: rr,
|
|
932
|
+
kindOfTest: Ne,
|
|
933
|
+
endsWith: yo,
|
|
934
|
+
toArray: go,
|
|
935
|
+
forEachEntry: Eo,
|
|
936
|
+
matchAll: bo,
|
|
937
|
+
isHTMLForm: xo,
|
|
938
|
+
hasOwnProperty: sn,
|
|
939
|
+
hasOwnProp: sn,
|
|
940
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
941
|
+
reduceDescriptors: Hn,
|
|
942
|
+
freezeMethods: Ro,
|
|
943
|
+
toObjectSet: Ao,
|
|
944
|
+
toCamelCase: So,
|
|
945
|
+
noop: To,
|
|
946
|
+
toFiniteNumber: Co,
|
|
947
|
+
findKey: Mn,
|
|
948
|
+
global: $n,
|
|
949
|
+
isContextDefined: zn,
|
|
950
|
+
ALPHABET: qn,
|
|
951
|
+
generateString: Oo,
|
|
952
|
+
isSpecCompliantForm: Bo,
|
|
953
|
+
toJSONObject: _o,
|
|
954
|
+
isAsyncFn: Io,
|
|
955
|
+
isThenable: Po
|
|
956
|
+
};
|
|
957
|
+
var Vn = {}, or = {};
|
|
958
|
+
or.byteLength = No;
|
|
959
|
+
or.toByteArray = Uo;
|
|
960
|
+
or.fromByteArray = Mo;
|
|
961
|
+
var Fe = [], Ee = [], Fo = typeof Uint8Array < "u" ? Uint8Array : Array, gr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
962
|
+
for (var pt = 0, ko = gr.length; pt < ko; ++pt)
|
|
963
|
+
Fe[pt] = gr[pt], Ee[gr.charCodeAt(pt)] = pt;
|
|
964
|
+
Ee[45] = 62;
|
|
965
|
+
Ee[95] = 63;
|
|
966
|
+
function Wn(e) {
|
|
967
|
+
var t = e.length;
|
|
968
|
+
if (t % 4 > 0)
|
|
969
|
+
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
970
|
+
var n = e.indexOf("=");
|
|
971
|
+
n === -1 && (n = t);
|
|
972
|
+
var o = n === t ? 0 : 4 - n % 4;
|
|
973
|
+
return [n, o];
|
|
974
|
+
}
|
|
975
|
+
function No(e) {
|
|
976
|
+
var t = Wn(e), n = t[0], o = t[1];
|
|
977
|
+
return (n + o) * 3 / 4 - o;
|
|
978
|
+
}
|
|
979
|
+
function Do(e, t, n) {
|
|
980
|
+
return (t + n) * 3 / 4 - n;
|
|
981
|
+
}
|
|
982
|
+
function Uo(e) {
|
|
983
|
+
var t, n = Wn(e), o = n[0], a = n[1], c = new Fo(Do(e, o, a)), l = 0, d = a > 0 ? o - 4 : o, g;
|
|
984
|
+
for (g = 0; g < d; g += 4)
|
|
985
|
+
t = Ee[e.charCodeAt(g)] << 18 | Ee[e.charCodeAt(g + 1)] << 12 | Ee[e.charCodeAt(g + 2)] << 6 | Ee[e.charCodeAt(g + 3)], c[l++] = t >> 16 & 255, c[l++] = t >> 8 & 255, c[l++] = t & 255;
|
|
986
|
+
return a === 2 && (t = Ee[e.charCodeAt(g)] << 2 | Ee[e.charCodeAt(g + 1)] >> 4, c[l++] = t & 255), a === 1 && (t = Ee[e.charCodeAt(g)] << 10 | Ee[e.charCodeAt(g + 1)] << 4 | Ee[e.charCodeAt(g + 2)] >> 2, c[l++] = t >> 8 & 255, c[l++] = t & 255), c;
|
|
987
|
+
}
|
|
988
|
+
function Lo(e) {
|
|
989
|
+
return Fe[e >> 18 & 63] + Fe[e >> 12 & 63] + Fe[e >> 6 & 63] + Fe[e & 63];
|
|
990
|
+
}
|
|
991
|
+
function jo(e, t, n) {
|
|
992
|
+
for (var o, a = [], c = t; c < n; c += 3)
|
|
993
|
+
o = (e[c] << 16 & 16711680) + (e[c + 1] << 8 & 65280) + (e[c + 2] & 255), a.push(Lo(o));
|
|
994
|
+
return a.join("");
|
|
995
|
+
}
|
|
996
|
+
function Mo(e) {
|
|
997
|
+
for (var t, n = e.length, o = n % 3, a = [], c = 16383, l = 0, d = n - o; l < d; l += c)
|
|
998
|
+
a.push(jo(e, l, l + c > d ? d : l + c));
|
|
999
|
+
return o === 1 ? (t = e[n - 1], a.push(
|
|
1000
|
+
Fe[t >> 2] + Fe[t << 4 & 63] + "=="
|
|
1001
|
+
)) : o === 2 && (t = (e[n - 2] << 8) + e[n - 1], a.push(
|
|
1002
|
+
Fe[t >> 10] + Fe[t >> 4 & 63] + Fe[t << 2 & 63] + "="
|
|
1003
|
+
)), a.join("");
|
|
1004
|
+
}
|
|
1005
|
+
var zr = {};
|
|
1006
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
1007
|
+
zr.read = function(e, t, n, o, a) {
|
|
1008
|
+
var c, l, d = a * 8 - o - 1, g = (1 << d) - 1, y = g >> 1, f = -7, b = n ? a - 1 : 0, A = n ? -1 : 1, v = e[t + b];
|
|
1009
|
+
for (b += A, c = v & (1 << -f) - 1, v >>= -f, f += d; f > 0; c = c * 256 + e[t + b], b += A, f -= 8)
|
|
1010
|
+
;
|
|
1011
|
+
for (l = c & (1 << -f) - 1, c >>= -f, f += o; f > 0; l = l * 256 + e[t + b], b += A, f -= 8)
|
|
1012
|
+
;
|
|
1013
|
+
if (c === 0)
|
|
1014
|
+
c = 1 - y;
|
|
1015
|
+
else {
|
|
1016
|
+
if (c === g)
|
|
1017
|
+
return l ? NaN : (v ? -1 : 1) * (1 / 0);
|
|
1018
|
+
l = l + Math.pow(2, o), c = c - y;
|
|
1019
|
+
}
|
|
1020
|
+
return (v ? -1 : 1) * l * Math.pow(2, c - o);
|
|
1021
|
+
};
|
|
1022
|
+
zr.write = function(e, t, n, o, a, c) {
|
|
1023
|
+
var l, d, g, y = c * 8 - a - 1, f = (1 << y) - 1, b = f >> 1, A = a === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, v = o ? 0 : c - 1, S = o ? 1 : -1, T = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
1024
|
+
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (d = isNaN(t) ? 1 : 0, l = f) : (l = Math.floor(Math.log(t) / Math.LN2), t * (g = Math.pow(2, -l)) < 1 && (l--, g *= 2), l + b >= 1 ? t += A / g : t += A * Math.pow(2, 1 - b), t * g >= 2 && (l++, g /= 2), l + b >= f ? (d = 0, l = f) : l + b >= 1 ? (d = (t * g - 1) * Math.pow(2, a), l = l + b) : (d = t * Math.pow(2, b - 1) * Math.pow(2, a), l = 0)); a >= 8; e[n + v] = d & 255, v += S, d /= 256, a -= 8)
|
|
1025
|
+
;
|
|
1026
|
+
for (l = l << a | d, y += a; y > 0; e[n + v] = l & 255, v += S, l /= 256, y -= 8)
|
|
1027
|
+
;
|
|
1028
|
+
e[n + v - S] |= T * 128;
|
|
1029
|
+
};
|
|
1030
|
+
/*!
|
|
1031
|
+
* The buffer module from node.js, for the browser.
|
|
1032
|
+
*
|
|
1033
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
1034
|
+
* @license MIT
|
|
1035
|
+
*/
|
|
1036
|
+
(function(e) {
|
|
1037
|
+
const t = or, n = zr, o = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
1038
|
+
e.Buffer = f, e.SlowBuffer = Y, e.INSPECT_MAX_BYTES = 50;
|
|
1039
|
+
const a = 2147483647;
|
|
1040
|
+
e.kMaxLength = a;
|
|
1041
|
+
const { Uint8Array: c, ArrayBuffer: l, SharedArrayBuffer: d } = globalThis;
|
|
1042
|
+
f.TYPED_ARRAY_SUPPORT = g(), !f.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
1043
|
+
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
1044
|
+
);
|
|
1045
|
+
function g() {
|
|
1046
|
+
try {
|
|
1047
|
+
const s = new c(1), r = { foo: function() {
|
|
1048
|
+
return 42;
|
|
1049
|
+
} };
|
|
1050
|
+
return Object.setPrototypeOf(r, c.prototype), Object.setPrototypeOf(s, r), s.foo() === 42;
|
|
1051
|
+
} catch {
|
|
1052
|
+
return !1;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
Object.defineProperty(f.prototype, "parent", {
|
|
1056
|
+
enumerable: !0,
|
|
1057
|
+
get: function() {
|
|
1058
|
+
if (f.isBuffer(this))
|
|
1059
|
+
return this.buffer;
|
|
1060
|
+
}
|
|
1061
|
+
}), Object.defineProperty(f.prototype, "offset", {
|
|
1062
|
+
enumerable: !0,
|
|
1063
|
+
get: function() {
|
|
1064
|
+
if (f.isBuffer(this))
|
|
1065
|
+
return this.byteOffset;
|
|
1066
|
+
}
|
|
1067
|
+
});
|
|
1068
|
+
function y(s) {
|
|
1069
|
+
if (s > a)
|
|
1070
|
+
throw new RangeError('The value "' + s + '" is invalid for option "size"');
|
|
1071
|
+
const r = new c(s);
|
|
1072
|
+
return Object.setPrototypeOf(r, f.prototype), r;
|
|
1073
|
+
}
|
|
1074
|
+
function f(s, r, i) {
|
|
1075
|
+
if (typeof s == "number") {
|
|
1076
|
+
if (typeof r == "string")
|
|
1077
|
+
throw new TypeError(
|
|
1078
|
+
'The "string" argument must be of type string. Received type number'
|
|
1079
|
+
);
|
|
1080
|
+
return S(s);
|
|
1081
|
+
}
|
|
1082
|
+
return b(s, r, i);
|
|
1083
|
+
}
|
|
1084
|
+
f.poolSize = 8192;
|
|
1085
|
+
function b(s, r, i) {
|
|
1086
|
+
if (typeof s == "string")
|
|
1087
|
+
return T(s, r);
|
|
1088
|
+
if (l.isView(s))
|
|
1089
|
+
return _(s);
|
|
1090
|
+
if (s == null)
|
|
1091
|
+
throw new TypeError(
|
|
1092
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof s
|
|
1093
|
+
);
|
|
1094
|
+
if (de(s, l) || s && de(s.buffer, l) || typeof d < "u" && (de(s, d) || s && de(s.buffer, d)))
|
|
1095
|
+
return C(s, r, i);
|
|
1096
|
+
if (typeof s == "number")
|
|
1097
|
+
throw new TypeError(
|
|
1098
|
+
'The "value" argument must not be of type number. Received type number'
|
|
1099
|
+
);
|
|
1100
|
+
const u = s.valueOf && s.valueOf();
|
|
1101
|
+
if (u != null && u !== s)
|
|
1102
|
+
return f.from(u, r, i);
|
|
1103
|
+
const h = D(s);
|
|
1104
|
+
if (h) return h;
|
|
1105
|
+
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof s[Symbol.toPrimitive] == "function")
|
|
1106
|
+
return f.from(s[Symbol.toPrimitive]("string"), r, i);
|
|
1107
|
+
throw new TypeError(
|
|
1108
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof s
|
|
1109
|
+
);
|
|
1110
|
+
}
|
|
1111
|
+
f.from = function(s, r, i) {
|
|
1112
|
+
return b(s, r, i);
|
|
1113
|
+
}, Object.setPrototypeOf(f.prototype, c.prototype), Object.setPrototypeOf(f, c);
|
|
1114
|
+
function A(s) {
|
|
1115
|
+
if (typeof s != "number")
|
|
1116
|
+
throw new TypeError('"size" argument must be of type number');
|
|
1117
|
+
if (s < 0)
|
|
1118
|
+
throw new RangeError('The value "' + s + '" is invalid for option "size"');
|
|
1119
|
+
}
|
|
1120
|
+
function v(s, r, i) {
|
|
1121
|
+
return A(s), s <= 0 ? y(s) : r !== void 0 ? typeof i == "string" ? y(s).fill(r, i) : y(s).fill(r) : y(s);
|
|
1122
|
+
}
|
|
1123
|
+
f.alloc = function(s, r, i) {
|
|
1124
|
+
return v(s, r, i);
|
|
1125
|
+
};
|
|
1126
|
+
function S(s) {
|
|
1127
|
+
return A(s), y(s < 0 ? 0 : j(s) | 0);
|
|
1128
|
+
}
|
|
1129
|
+
f.allocUnsafe = function(s) {
|
|
1130
|
+
return S(s);
|
|
1131
|
+
}, f.allocUnsafeSlow = function(s) {
|
|
1132
|
+
return S(s);
|
|
1133
|
+
};
|
|
1134
|
+
function T(s, r) {
|
|
1135
|
+
if ((typeof r != "string" || r === "") && (r = "utf8"), !f.isEncoding(r))
|
|
1136
|
+
throw new TypeError("Unknown encoding: " + r);
|
|
1137
|
+
const i = F(s, r) | 0;
|
|
1138
|
+
let u = y(i);
|
|
1139
|
+
const h = u.write(s, r);
|
|
1140
|
+
return h !== i && (u = u.slice(0, h)), u;
|
|
1141
|
+
}
|
|
1142
|
+
function H(s) {
|
|
1143
|
+
const r = s.length < 0 ? 0 : j(s.length) | 0, i = y(r);
|
|
1144
|
+
for (let u = 0; u < r; u += 1)
|
|
1145
|
+
i[u] = s[u] & 255;
|
|
1146
|
+
return i;
|
|
1147
|
+
}
|
|
1148
|
+
function _(s) {
|
|
1149
|
+
if (de(s, c)) {
|
|
1150
|
+
const r = new c(s);
|
|
1151
|
+
return C(r.buffer, r.byteOffset, r.byteLength);
|
|
1152
|
+
}
|
|
1153
|
+
return H(s);
|
|
1154
|
+
}
|
|
1155
|
+
function C(s, r, i) {
|
|
1156
|
+
if (r < 0 || s.byteLength < r)
|
|
1157
|
+
throw new RangeError('"offset" is outside of buffer bounds');
|
|
1158
|
+
if (s.byteLength < r + (i || 0))
|
|
1159
|
+
throw new RangeError('"length" is outside of buffer bounds');
|
|
1160
|
+
let u;
|
|
1161
|
+
return r === void 0 && i === void 0 ? u = new c(s) : i === void 0 ? u = new c(s, r) : u = new c(s, r, i), Object.setPrototypeOf(u, f.prototype), u;
|
|
1162
|
+
}
|
|
1163
|
+
function D(s) {
|
|
1164
|
+
if (f.isBuffer(s)) {
|
|
1165
|
+
const r = j(s.length) | 0, i = y(r);
|
|
1166
|
+
return i.length === 0 || s.copy(i, 0, 0, r), i;
|
|
1167
|
+
}
|
|
1168
|
+
if (s.length !== void 0)
|
|
1169
|
+
return typeof s.length != "number" || lt(s.length) ? y(0) : H(s);
|
|
1170
|
+
if (s.type === "Buffer" && Array.isArray(s.data))
|
|
1171
|
+
return H(s.data);
|
|
1172
|
+
}
|
|
1173
|
+
function j(s) {
|
|
1174
|
+
if (s >= a)
|
|
1175
|
+
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + a.toString(16) + " bytes");
|
|
1176
|
+
return s | 0;
|
|
1177
|
+
}
|
|
1178
|
+
function Y(s) {
|
|
1179
|
+
return +s != s && (s = 0), f.alloc(+s);
|
|
1180
|
+
}
|
|
1181
|
+
f.isBuffer = function(r) {
|
|
1182
|
+
return r != null && r._isBuffer === !0 && r !== f.prototype;
|
|
1183
|
+
}, f.compare = function(r, i) {
|
|
1184
|
+
if (de(r, c) && (r = f.from(r, r.offset, r.byteLength)), de(i, c) && (i = f.from(i, i.offset, i.byteLength)), !f.isBuffer(r) || !f.isBuffer(i))
|
|
1185
|
+
throw new TypeError(
|
|
1186
|
+
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
1187
|
+
);
|
|
1188
|
+
if (r === i) return 0;
|
|
1189
|
+
let u = r.length, h = i.length;
|
|
1190
|
+
for (let m = 0, E = Math.min(u, h); m < E; ++m)
|
|
1191
|
+
if (r[m] !== i[m]) {
|
|
1192
|
+
u = r[m], h = i[m];
|
|
1193
|
+
break;
|
|
1194
|
+
}
|
|
1195
|
+
return u < h ? -1 : h < u ? 1 : 0;
|
|
1196
|
+
}, f.isEncoding = function(r) {
|
|
1197
|
+
switch (String(r).toLowerCase()) {
|
|
1198
|
+
case "hex":
|
|
1199
|
+
case "utf8":
|
|
1200
|
+
case "utf-8":
|
|
1201
|
+
case "ascii":
|
|
1202
|
+
case "latin1":
|
|
1203
|
+
case "binary":
|
|
1204
|
+
case "base64":
|
|
1205
|
+
case "ucs2":
|
|
1206
|
+
case "ucs-2":
|
|
1207
|
+
case "utf16le":
|
|
1208
|
+
case "utf-16le":
|
|
1209
|
+
return !0;
|
|
1210
|
+
default:
|
|
1211
|
+
return !1;
|
|
1212
|
+
}
|
|
1213
|
+
}, f.concat = function(r, i) {
|
|
1214
|
+
if (!Array.isArray(r))
|
|
1215
|
+
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
1216
|
+
if (r.length === 0)
|
|
1217
|
+
return f.alloc(0);
|
|
1218
|
+
let u;
|
|
1219
|
+
if (i === void 0)
|
|
1220
|
+
for (i = 0, u = 0; u < r.length; ++u)
|
|
1221
|
+
i += r[u].length;
|
|
1222
|
+
const h = f.allocUnsafe(i);
|
|
1223
|
+
let m = 0;
|
|
1224
|
+
for (u = 0; u < r.length; ++u) {
|
|
1225
|
+
let E = r[u];
|
|
1226
|
+
if (de(E, c))
|
|
1227
|
+
m + E.length > h.length ? (f.isBuffer(E) || (E = f.from(E)), E.copy(h, m)) : c.prototype.set.call(
|
|
1228
|
+
h,
|
|
1229
|
+
E,
|
|
1230
|
+
m
|
|
1231
|
+
);
|
|
1232
|
+
else if (f.isBuffer(E))
|
|
1233
|
+
E.copy(h, m);
|
|
1234
|
+
else
|
|
1235
|
+
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
1236
|
+
m += E.length;
|
|
1237
|
+
}
|
|
1238
|
+
return h;
|
|
1239
|
+
};
|
|
1240
|
+
function F(s, r) {
|
|
1241
|
+
if (f.isBuffer(s))
|
|
1242
|
+
return s.length;
|
|
1243
|
+
if (l.isView(s) || de(s, l))
|
|
1244
|
+
return s.byteLength;
|
|
1245
|
+
if (typeof s != "string")
|
|
1246
|
+
throw new TypeError(
|
|
1247
|
+
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof s
|
|
1248
|
+
);
|
|
1249
|
+
const i = s.length, u = arguments.length > 2 && arguments[2] === !0;
|
|
1250
|
+
if (!u && i === 0) return 0;
|
|
1251
|
+
let h = !1;
|
|
1252
|
+
for (; ; )
|
|
1253
|
+
switch (r) {
|
|
1254
|
+
case "ascii":
|
|
1255
|
+
case "latin1":
|
|
1256
|
+
case "binary":
|
|
1257
|
+
return i;
|
|
1258
|
+
case "utf8":
|
|
1259
|
+
case "utf-8":
|
|
1260
|
+
return Tt(s).length;
|
|
1261
|
+
case "ucs2":
|
|
1262
|
+
case "ucs-2":
|
|
1263
|
+
case "utf16le":
|
|
1264
|
+
case "utf-16le":
|
|
1265
|
+
return i * 2;
|
|
1266
|
+
case "hex":
|
|
1267
|
+
return i >>> 1;
|
|
1268
|
+
case "base64":
|
|
1269
|
+
return jt(s).length;
|
|
1270
|
+
default:
|
|
1271
|
+
if (h)
|
|
1272
|
+
return u ? -1 : Tt(s).length;
|
|
1273
|
+
r = ("" + r).toLowerCase(), h = !0;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
f.byteLength = F;
|
|
1277
|
+
function O(s, r, i) {
|
|
1278
|
+
let u = !1;
|
|
1279
|
+
if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, r >>>= 0, i <= r))
|
|
1280
|
+
return "";
|
|
1281
|
+
for (s || (s = "utf8"); ; )
|
|
1282
|
+
switch (s) {
|
|
1283
|
+
case "hex":
|
|
1284
|
+
return $e(this, r, i);
|
|
1285
|
+
case "utf8":
|
|
1286
|
+
case "utf-8":
|
|
1287
|
+
return Ue(this, r, i);
|
|
1288
|
+
case "ascii":
|
|
1289
|
+
return Oe(this, r, i);
|
|
1290
|
+
case "latin1":
|
|
1291
|
+
case "binary":
|
|
1292
|
+
return oe(this, r, i);
|
|
1293
|
+
case "base64":
|
|
1294
|
+
return st(this, r, i);
|
|
1295
|
+
case "ucs2":
|
|
1296
|
+
case "ucs-2":
|
|
1297
|
+
case "utf16le":
|
|
1298
|
+
case "utf-16le":
|
|
1299
|
+
return ze(this, r, i);
|
|
1300
|
+
default:
|
|
1301
|
+
if (u) throw new TypeError("Unknown encoding: " + s);
|
|
1302
|
+
s = (s + "").toLowerCase(), u = !0;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
f.prototype._isBuffer = !0;
|
|
1306
|
+
function ie(s, r, i) {
|
|
1307
|
+
const u = s[r];
|
|
1308
|
+
s[r] = s[i], s[i] = u;
|
|
1309
|
+
}
|
|
1310
|
+
f.prototype.swap16 = function() {
|
|
1311
|
+
const r = this.length;
|
|
1312
|
+
if (r % 2 !== 0)
|
|
1313
|
+
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
1314
|
+
for (let i = 0; i < r; i += 2)
|
|
1315
|
+
ie(this, i, i + 1);
|
|
1316
|
+
return this;
|
|
1317
|
+
}, f.prototype.swap32 = function() {
|
|
1318
|
+
const r = this.length;
|
|
1319
|
+
if (r % 4 !== 0)
|
|
1320
|
+
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
1321
|
+
for (let i = 0; i < r; i += 4)
|
|
1322
|
+
ie(this, i, i + 3), ie(this, i + 1, i + 2);
|
|
1323
|
+
return this;
|
|
1324
|
+
}, f.prototype.swap64 = function() {
|
|
1325
|
+
const r = this.length;
|
|
1326
|
+
if (r % 8 !== 0)
|
|
1327
|
+
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
1328
|
+
for (let i = 0; i < r; i += 8)
|
|
1329
|
+
ie(this, i, i + 7), ie(this, i + 1, i + 6), ie(this, i + 2, i + 5), ie(this, i + 3, i + 4);
|
|
1330
|
+
return this;
|
|
1331
|
+
}, f.prototype.toString = function() {
|
|
1332
|
+
const r = this.length;
|
|
1333
|
+
return r === 0 ? "" : arguments.length === 0 ? Ue(this, 0, r) : O.apply(this, arguments);
|
|
1334
|
+
}, f.prototype.toLocaleString = f.prototype.toString, f.prototype.equals = function(r) {
|
|
1335
|
+
if (!f.isBuffer(r)) throw new TypeError("Argument must be a Buffer");
|
|
1336
|
+
return this === r ? !0 : f.compare(this, r) === 0;
|
|
1337
|
+
}, f.prototype.inspect = function() {
|
|
1338
|
+
let r = "";
|
|
1339
|
+
const i = e.INSPECT_MAX_BYTES;
|
|
1340
|
+
return r = this.toString("hex", 0, i).replace(/(.{2})/g, "$1 ").trim(), this.length > i && (r += " ... "), "<Buffer " + r + ">";
|
|
1341
|
+
}, o && (f.prototype[o] = f.prototype.inspect), f.prototype.compare = function(r, i, u, h, m) {
|
|
1342
|
+
if (de(r, c) && (r = f.from(r, r.offset, r.byteLength)), !f.isBuffer(r))
|
|
1343
|
+
throw new TypeError(
|
|
1344
|
+
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof r
|
|
1345
|
+
);
|
|
1346
|
+
if (i === void 0 && (i = 0), u === void 0 && (u = r ? r.length : 0), h === void 0 && (h = 0), m === void 0 && (m = this.length), i < 0 || u > r.length || h < 0 || m > this.length)
|
|
1347
|
+
throw new RangeError("out of range index");
|
|
1348
|
+
if (h >= m && i >= u)
|
|
1349
|
+
return 0;
|
|
1350
|
+
if (h >= m)
|
|
1351
|
+
return -1;
|
|
1352
|
+
if (i >= u)
|
|
1353
|
+
return 1;
|
|
1354
|
+
if (i >>>= 0, u >>>= 0, h >>>= 0, m >>>= 0, this === r) return 0;
|
|
1355
|
+
let E = m - h, P = u - i;
|
|
1356
|
+
const G = Math.min(E, P), V = this.slice(h, m), q = r.slice(i, u);
|
|
1357
|
+
for (let M = 0; M < G; ++M)
|
|
1358
|
+
if (V[M] !== q[M]) {
|
|
1359
|
+
E = V[M], P = q[M];
|
|
1360
|
+
break;
|
|
1361
|
+
}
|
|
1362
|
+
return E < P ? -1 : P < E ? 1 : 0;
|
|
1363
|
+
};
|
|
1364
|
+
function me(s, r, i, u, h) {
|
|
1365
|
+
if (s.length === 0) return -1;
|
|
1366
|
+
if (typeof i == "string" ? (u = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i, lt(i) && (i = h ? 0 : s.length - 1), i < 0 && (i = s.length + i), i >= s.length) {
|
|
1367
|
+
if (h) return -1;
|
|
1368
|
+
i = s.length - 1;
|
|
1369
|
+
} else if (i < 0)
|
|
1370
|
+
if (h) i = 0;
|
|
1371
|
+
else return -1;
|
|
1372
|
+
if (typeof r == "string" && (r = f.from(r, u)), f.isBuffer(r))
|
|
1373
|
+
return r.length === 0 ? -1 : it(s, r, i, u, h);
|
|
1374
|
+
if (typeof r == "number")
|
|
1375
|
+
return r = r & 255, typeof c.prototype.indexOf == "function" ? h ? c.prototype.indexOf.call(s, r, i) : c.prototype.lastIndexOf.call(s, r, i) : it(s, [r], i, u, h);
|
|
1376
|
+
throw new TypeError("val must be string, number or Buffer");
|
|
1377
|
+
}
|
|
1378
|
+
function it(s, r, i, u, h) {
|
|
1379
|
+
let m = 1, E = s.length, P = r.length;
|
|
1380
|
+
if (u !== void 0 && (u = String(u).toLowerCase(), u === "ucs2" || u === "ucs-2" || u === "utf16le" || u === "utf-16le")) {
|
|
1381
|
+
if (s.length < 2 || r.length < 2)
|
|
1382
|
+
return -1;
|
|
1383
|
+
m = 2, E /= 2, P /= 2, i /= 2;
|
|
1384
|
+
}
|
|
1385
|
+
function G(q, M) {
|
|
1386
|
+
return m === 1 ? q[M] : q.readUInt16BE(M * m);
|
|
1387
|
+
}
|
|
1388
|
+
let V;
|
|
1389
|
+
if (h) {
|
|
1390
|
+
let q = -1;
|
|
1391
|
+
for (V = i; V < E; V++)
|
|
1392
|
+
if (G(s, V) === G(r, q === -1 ? 0 : V - q)) {
|
|
1393
|
+
if (q === -1 && (q = V), V - q + 1 === P) return q * m;
|
|
1394
|
+
} else
|
|
1395
|
+
q !== -1 && (V -= V - q), q = -1;
|
|
1396
|
+
} else
|
|
1397
|
+
for (i + P > E && (i = E - P), V = i; V >= 0; V--) {
|
|
1398
|
+
let q = !0;
|
|
1399
|
+
for (let M = 0; M < P; M++)
|
|
1400
|
+
if (G(s, V + M) !== G(r, M)) {
|
|
1401
|
+
q = !1;
|
|
1402
|
+
break;
|
|
1403
|
+
}
|
|
1404
|
+
if (q) return V;
|
|
1405
|
+
}
|
|
1406
|
+
return -1;
|
|
1407
|
+
}
|
|
1408
|
+
f.prototype.includes = function(r, i, u) {
|
|
1409
|
+
return this.indexOf(r, i, u) !== -1;
|
|
1410
|
+
}, f.prototype.indexOf = function(r, i, u) {
|
|
1411
|
+
return me(this, r, i, u, !0);
|
|
1412
|
+
}, f.prototype.lastIndexOf = function(r, i, u) {
|
|
1413
|
+
return me(this, r, i, u, !1);
|
|
1414
|
+
};
|
|
1415
|
+
function At(s, r, i, u) {
|
|
1416
|
+
i = Number(i) || 0;
|
|
1417
|
+
const h = s.length - i;
|
|
1418
|
+
u ? (u = Number(u), u > h && (u = h)) : u = h;
|
|
1419
|
+
const m = r.length;
|
|
1420
|
+
u > m / 2 && (u = m / 2);
|
|
1421
|
+
let E;
|
|
1422
|
+
for (E = 0; E < u; ++E) {
|
|
1423
|
+
const P = parseInt(r.substr(E * 2, 2), 16);
|
|
1424
|
+
if (lt(P)) return E;
|
|
1425
|
+
s[i + E] = P;
|
|
1426
|
+
}
|
|
1427
|
+
return E;
|
|
1428
|
+
}
|
|
1429
|
+
function ot(s, r, i, u) {
|
|
1430
|
+
return ut(Tt(r, s.length - i), s, i, u);
|
|
1431
|
+
}
|
|
1432
|
+
function pe(s, r, i, u) {
|
|
1433
|
+
return ut(hr(r), s, i, u);
|
|
1434
|
+
}
|
|
1435
|
+
function ve(s, r, i, u) {
|
|
1436
|
+
return ut(jt(r), s, i, u);
|
|
1437
|
+
}
|
|
1438
|
+
function De(s, r, i, u) {
|
|
1439
|
+
return ut(Ct(r, s.length - i), s, i, u);
|
|
1440
|
+
}
|
|
1441
|
+
f.prototype.write = function(r, i, u, h) {
|
|
1442
|
+
if (i === void 0)
|
|
1443
|
+
h = "utf8", u = this.length, i = 0;
|
|
1444
|
+
else if (u === void 0 && typeof i == "string")
|
|
1445
|
+
h = i, u = this.length, i = 0;
|
|
1446
|
+
else if (isFinite(i))
|
|
1447
|
+
i = i >>> 0, isFinite(u) ? (u = u >>> 0, h === void 0 && (h = "utf8")) : (h = u, u = void 0);
|
|
1448
|
+
else
|
|
1449
|
+
throw new Error(
|
|
1450
|
+
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
1451
|
+
);
|
|
1452
|
+
const m = this.length - i;
|
|
1453
|
+
if ((u === void 0 || u > m) && (u = m), r.length > 0 && (u < 0 || i < 0) || i > this.length)
|
|
1454
|
+
throw new RangeError("Attempt to write outside buffer bounds");
|
|
1455
|
+
h || (h = "utf8");
|
|
1456
|
+
let E = !1;
|
|
1457
|
+
for (; ; )
|
|
1458
|
+
switch (h) {
|
|
1459
|
+
case "hex":
|
|
1460
|
+
return At(this, r, i, u);
|
|
1461
|
+
case "utf8":
|
|
1462
|
+
case "utf-8":
|
|
1463
|
+
return ot(this, r, i, u);
|
|
1464
|
+
case "ascii":
|
|
1465
|
+
case "latin1":
|
|
1466
|
+
case "binary":
|
|
1467
|
+
return pe(this, r, i, u);
|
|
1468
|
+
case "base64":
|
|
1469
|
+
return ve(this, r, i, u);
|
|
1470
|
+
case "ucs2":
|
|
1471
|
+
case "ucs-2":
|
|
1472
|
+
case "utf16le":
|
|
1473
|
+
case "utf-16le":
|
|
1474
|
+
return De(this, r, i, u);
|
|
1475
|
+
default:
|
|
1476
|
+
if (E) throw new TypeError("Unknown encoding: " + h);
|
|
1477
|
+
h = ("" + h).toLowerCase(), E = !0;
|
|
1478
|
+
}
|
|
1479
|
+
}, f.prototype.toJSON = function() {
|
|
1480
|
+
return {
|
|
1481
|
+
type: "Buffer",
|
|
1482
|
+
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
1483
|
+
};
|
|
1484
|
+
};
|
|
1485
|
+
function st(s, r, i) {
|
|
1486
|
+
return r === 0 && i === s.length ? t.fromByteArray(s) : t.fromByteArray(s.slice(r, i));
|
|
1487
|
+
}
|
|
1488
|
+
function Ue(s, r, i) {
|
|
1489
|
+
i = Math.min(s.length, i);
|
|
1490
|
+
const u = [];
|
|
1491
|
+
let h = r;
|
|
1492
|
+
for (; h < i; ) {
|
|
1493
|
+
const m = s[h];
|
|
1494
|
+
let E = null, P = m > 239 ? 4 : m > 223 ? 3 : m > 191 ? 2 : 1;
|
|
1495
|
+
if (h + P <= i) {
|
|
1496
|
+
let G, V, q, M;
|
|
1497
|
+
switch (P) {
|
|
1498
|
+
case 1:
|
|
1499
|
+
m < 128 && (E = m);
|
|
1500
|
+
break;
|
|
1501
|
+
case 2:
|
|
1502
|
+
G = s[h + 1], (G & 192) === 128 && (M = (m & 31) << 6 | G & 63, M > 127 && (E = M));
|
|
1503
|
+
break;
|
|
1504
|
+
case 3:
|
|
1505
|
+
G = s[h + 1], V = s[h + 2], (G & 192) === 128 && (V & 192) === 128 && (M = (m & 15) << 12 | (G & 63) << 6 | V & 63, M > 2047 && (M < 55296 || M > 57343) && (E = M));
|
|
1506
|
+
break;
|
|
1507
|
+
case 4:
|
|
1508
|
+
G = s[h + 1], V = s[h + 2], q = s[h + 3], (G & 192) === 128 && (V & 192) === 128 && (q & 192) === 128 && (M = (m & 15) << 18 | (G & 63) << 12 | (V & 63) << 6 | q & 63, M > 65535 && M < 1114112 && (E = M));
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
E === null ? (E = 65533, P = 1) : E > 65535 && (E -= 65536, u.push(E >>> 10 & 1023 | 55296), E = 56320 | E & 1023), u.push(E), h += P;
|
|
1512
|
+
}
|
|
1513
|
+
return Ce(u);
|
|
1514
|
+
}
|
|
1515
|
+
const ue = 4096;
|
|
1516
|
+
function Ce(s) {
|
|
1517
|
+
const r = s.length;
|
|
1518
|
+
if (r <= ue)
|
|
1519
|
+
return String.fromCharCode.apply(String, s);
|
|
1520
|
+
let i = "", u = 0;
|
|
1521
|
+
for (; u < r; )
|
|
1522
|
+
i += String.fromCharCode.apply(
|
|
1523
|
+
String,
|
|
1524
|
+
s.slice(u, u += ue)
|
|
1525
|
+
);
|
|
1526
|
+
return i;
|
|
1527
|
+
}
|
|
1528
|
+
function Oe(s, r, i) {
|
|
1529
|
+
let u = "";
|
|
1530
|
+
i = Math.min(s.length, i);
|
|
1531
|
+
for (let h = r; h < i; ++h)
|
|
1532
|
+
u += String.fromCharCode(s[h] & 127);
|
|
1533
|
+
return u;
|
|
1534
|
+
}
|
|
1535
|
+
function oe(s, r, i) {
|
|
1536
|
+
let u = "";
|
|
1537
|
+
i = Math.min(s.length, i);
|
|
1538
|
+
for (let h = r; h < i; ++h)
|
|
1539
|
+
u += String.fromCharCode(s[h]);
|
|
1540
|
+
return u;
|
|
1541
|
+
}
|
|
1542
|
+
function $e(s, r, i) {
|
|
1543
|
+
const u = s.length;
|
|
1544
|
+
(!r || r < 0) && (r = 0), (!i || i < 0 || i > u) && (i = u);
|
|
1545
|
+
let h = "";
|
|
1546
|
+
for (let m = r; m < i; ++m)
|
|
1547
|
+
h += Mt[s[m]];
|
|
1548
|
+
return h;
|
|
1549
|
+
}
|
|
1550
|
+
function ze(s, r, i) {
|
|
1551
|
+
const u = s.slice(r, i);
|
|
1552
|
+
let h = "";
|
|
1553
|
+
for (let m = 0; m < u.length - 1; m += 2)
|
|
1554
|
+
h += String.fromCharCode(u[m] + u[m + 1] * 256);
|
|
1555
|
+
return h;
|
|
1556
|
+
}
|
|
1557
|
+
f.prototype.slice = function(r, i) {
|
|
1558
|
+
const u = this.length;
|
|
1559
|
+
r = ~~r, i = i === void 0 ? u : ~~i, r < 0 ? (r += u, r < 0 && (r = 0)) : r > u && (r = u), i < 0 ? (i += u, i < 0 && (i = 0)) : i > u && (i = u), i < r && (i = r);
|
|
1560
|
+
const h = this.subarray(r, i);
|
|
1561
|
+
return Object.setPrototypeOf(h, f.prototype), h;
|
|
1562
|
+
};
|
|
1563
|
+
function J(s, r, i) {
|
|
1564
|
+
if (s % 1 !== 0 || s < 0) throw new RangeError("offset is not uint");
|
|
1565
|
+
if (s + r > i) throw new RangeError("Trying to access beyond buffer length");
|
|
1566
|
+
}
|
|
1567
|
+
f.prototype.readUintLE = f.prototype.readUIntLE = function(r, i, u) {
|
|
1568
|
+
r = r >>> 0, i = i >>> 0, u || J(r, i, this.length);
|
|
1569
|
+
let h = this[r], m = 1, E = 0;
|
|
1570
|
+
for (; ++E < i && (m *= 256); )
|
|
1571
|
+
h += this[r + E] * m;
|
|
1572
|
+
return h;
|
|
1573
|
+
}, f.prototype.readUintBE = f.prototype.readUIntBE = function(r, i, u) {
|
|
1574
|
+
r = r >>> 0, i = i >>> 0, u || J(r, i, this.length);
|
|
1575
|
+
let h = this[r + --i], m = 1;
|
|
1576
|
+
for (; i > 0 && (m *= 256); )
|
|
1577
|
+
h += this[r + --i] * m;
|
|
1578
|
+
return h;
|
|
1579
|
+
}, f.prototype.readUint8 = f.prototype.readUInt8 = function(r, i) {
|
|
1580
|
+
return r = r >>> 0, i || J(r, 1, this.length), this[r];
|
|
1581
|
+
}, f.prototype.readUint16LE = f.prototype.readUInt16LE = function(r, i) {
|
|
1582
|
+
return r = r >>> 0, i || J(r, 2, this.length), this[r] | this[r + 1] << 8;
|
|
1583
|
+
}, f.prototype.readUint16BE = f.prototype.readUInt16BE = function(r, i) {
|
|
1584
|
+
return r = r >>> 0, i || J(r, 2, this.length), this[r] << 8 | this[r + 1];
|
|
1585
|
+
}, f.prototype.readUint32LE = f.prototype.readUInt32LE = function(r, i) {
|
|
1586
|
+
return r = r >>> 0, i || J(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216;
|
|
1587
|
+
}, f.prototype.readUint32BE = f.prototype.readUInt32BE = function(r, i) {
|
|
1588
|
+
return r = r >>> 0, i || J(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]);
|
|
1589
|
+
}, f.prototype.readBigUInt64LE = _e(function(r) {
|
|
1590
|
+
r = r >>> 0, ge(r, "offset");
|
|
1591
|
+
const i = this[r], u = this[r + 7];
|
|
1592
|
+
(i === void 0 || u === void 0) && He(r, this.length - 8);
|
|
1593
|
+
const h = i + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24, m = this[++r] + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + u * 2 ** 24;
|
|
1594
|
+
return BigInt(h) + (BigInt(m) << BigInt(32));
|
|
1595
|
+
}), f.prototype.readBigUInt64BE = _e(function(r) {
|
|
1596
|
+
r = r >>> 0, ge(r, "offset");
|
|
1597
|
+
const i = this[r], u = this[r + 7];
|
|
1598
|
+
(i === void 0 || u === void 0) && He(r, this.length - 8);
|
|
1599
|
+
const h = i * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r], m = this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + u;
|
|
1600
|
+
return (BigInt(h) << BigInt(32)) + BigInt(m);
|
|
1601
|
+
}), f.prototype.readIntLE = function(r, i, u) {
|
|
1602
|
+
r = r >>> 0, i = i >>> 0, u || J(r, i, this.length);
|
|
1603
|
+
let h = this[r], m = 1, E = 0;
|
|
1604
|
+
for (; ++E < i && (m *= 256); )
|
|
1605
|
+
h += this[r + E] * m;
|
|
1606
|
+
return m *= 128, h >= m && (h -= Math.pow(2, 8 * i)), h;
|
|
1607
|
+
}, f.prototype.readIntBE = function(r, i, u) {
|
|
1608
|
+
r = r >>> 0, i = i >>> 0, u || J(r, i, this.length);
|
|
1609
|
+
let h = i, m = 1, E = this[r + --h];
|
|
1610
|
+
for (; h > 0 && (m *= 256); )
|
|
1611
|
+
E += this[r + --h] * m;
|
|
1612
|
+
return m *= 128, E >= m && (E -= Math.pow(2, 8 * i)), E;
|
|
1613
|
+
}, f.prototype.readInt8 = function(r, i) {
|
|
1614
|
+
return r = r >>> 0, i || J(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r];
|
|
1615
|
+
}, f.prototype.readInt16LE = function(r, i) {
|
|
1616
|
+
r = r >>> 0, i || J(r, 2, this.length);
|
|
1617
|
+
const u = this[r] | this[r + 1] << 8;
|
|
1618
|
+
return u & 32768 ? u | 4294901760 : u;
|
|
1619
|
+
}, f.prototype.readInt16BE = function(r, i) {
|
|
1620
|
+
r = r >>> 0, i || J(r, 2, this.length);
|
|
1621
|
+
const u = this[r + 1] | this[r] << 8;
|
|
1622
|
+
return u & 32768 ? u | 4294901760 : u;
|
|
1623
|
+
}, f.prototype.readInt32LE = function(r, i) {
|
|
1624
|
+
return r = r >>> 0, i || J(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24;
|
|
1625
|
+
}, f.prototype.readInt32BE = function(r, i) {
|
|
1626
|
+
return r = r >>> 0, i || J(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3];
|
|
1627
|
+
}, f.prototype.readBigInt64LE = _e(function(r) {
|
|
1628
|
+
r = r >>> 0, ge(r, "offset");
|
|
1629
|
+
const i = this[r], u = this[r + 7];
|
|
1630
|
+
(i === void 0 || u === void 0) && He(r, this.length - 8);
|
|
1631
|
+
const h = this[r + 4] + this[r + 5] * 2 ** 8 + this[r + 6] * 2 ** 16 + (u << 24);
|
|
1632
|
+
return (BigInt(h) << BigInt(32)) + BigInt(i + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24);
|
|
1633
|
+
}), f.prototype.readBigInt64BE = _e(function(r) {
|
|
1634
|
+
r = r >>> 0, ge(r, "offset");
|
|
1635
|
+
const i = this[r], u = this[r + 7];
|
|
1636
|
+
(i === void 0 || u === void 0) && He(r, this.length - 8);
|
|
1637
|
+
const h = (i << 24) + // Overflow
|
|
1638
|
+
this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r];
|
|
1639
|
+
return (BigInt(h) << BigInt(32)) + BigInt(this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + u);
|
|
1640
|
+
}), f.prototype.readFloatLE = function(r, i) {
|
|
1641
|
+
return r = r >>> 0, i || J(r, 4, this.length), n.read(this, r, !0, 23, 4);
|
|
1642
|
+
}, f.prototype.readFloatBE = function(r, i) {
|
|
1643
|
+
return r = r >>> 0, i || J(r, 4, this.length), n.read(this, r, !1, 23, 4);
|
|
1644
|
+
}, f.prototype.readDoubleLE = function(r, i) {
|
|
1645
|
+
return r = r >>> 0, i || J(r, 8, this.length), n.read(this, r, !0, 52, 8);
|
|
1646
|
+
}, f.prototype.readDoubleBE = function(r, i) {
|
|
1647
|
+
return r = r >>> 0, i || J(r, 8, this.length), n.read(this, r, !1, 52, 8);
|
|
1648
|
+
};
|
|
1649
|
+
function X(s, r, i, u, h, m) {
|
|
1650
|
+
if (!f.isBuffer(s)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
1651
|
+
if (r > h || r < m) throw new RangeError('"value" argument is out of bounds');
|
|
1652
|
+
if (i + u > s.length) throw new RangeError("Index out of range");
|
|
1653
|
+
}
|
|
1654
|
+
f.prototype.writeUintLE = f.prototype.writeUIntLE = function(r, i, u, h) {
|
|
1655
|
+
if (r = +r, i = i >>> 0, u = u >>> 0, !h) {
|
|
1656
|
+
const P = Math.pow(2, 8 * u) - 1;
|
|
1657
|
+
X(this, r, i, u, P, 0);
|
|
1658
|
+
}
|
|
1659
|
+
let m = 1, E = 0;
|
|
1660
|
+
for (this[i] = r & 255; ++E < u && (m *= 256); )
|
|
1661
|
+
this[i + E] = r / m & 255;
|
|
1662
|
+
return i + u;
|
|
1663
|
+
}, f.prototype.writeUintBE = f.prototype.writeUIntBE = function(r, i, u, h) {
|
|
1664
|
+
if (r = +r, i = i >>> 0, u = u >>> 0, !h) {
|
|
1665
|
+
const P = Math.pow(2, 8 * u) - 1;
|
|
1666
|
+
X(this, r, i, u, P, 0);
|
|
1667
|
+
}
|
|
1668
|
+
let m = u - 1, E = 1;
|
|
1669
|
+
for (this[i + m] = r & 255; --m >= 0 && (E *= 256); )
|
|
1670
|
+
this[i + m] = r / E & 255;
|
|
1671
|
+
return i + u;
|
|
1672
|
+
}, f.prototype.writeUint8 = f.prototype.writeUInt8 = function(r, i, u) {
|
|
1673
|
+
return r = +r, i = i >>> 0, u || X(this, r, i, 1, 255, 0), this[i] = r & 255, i + 1;
|
|
1674
|
+
}, f.prototype.writeUint16LE = f.prototype.writeUInt16LE = function(r, i, u) {
|
|
1675
|
+
return r = +r, i = i >>> 0, u || X(this, r, i, 2, 65535, 0), this[i] = r & 255, this[i + 1] = r >>> 8, i + 2;
|
|
1676
|
+
}, f.prototype.writeUint16BE = f.prototype.writeUInt16BE = function(r, i, u) {
|
|
1677
|
+
return r = +r, i = i >>> 0, u || X(this, r, i, 2, 65535, 0), this[i] = r >>> 8, this[i + 1] = r & 255, i + 2;
|
|
1678
|
+
}, f.prototype.writeUint32LE = f.prototype.writeUInt32LE = function(r, i, u) {
|
|
1679
|
+
return r = +r, i = i >>> 0, u || X(this, r, i, 4, 4294967295, 0), this[i + 3] = r >>> 24, this[i + 2] = r >>> 16, this[i + 1] = r >>> 8, this[i] = r & 255, i + 4;
|
|
1680
|
+
}, f.prototype.writeUint32BE = f.prototype.writeUInt32BE = function(r, i, u) {
|
|
1681
|
+
return r = +r, i = i >>> 0, u || X(this, r, i, 4, 4294967295, 0), this[i] = r >>> 24, this[i + 1] = r >>> 16, this[i + 2] = r >>> 8, this[i + 3] = r & 255, i + 4;
|
|
1682
|
+
};
|
|
1683
|
+
function Re(s, r, i, u, h) {
|
|
1684
|
+
Ye(r, u, h, s, i, 7);
|
|
1685
|
+
let m = Number(r & BigInt(4294967295));
|
|
1686
|
+
s[i++] = m, m = m >> 8, s[i++] = m, m = m >> 8, s[i++] = m, m = m >> 8, s[i++] = m;
|
|
1687
|
+
let E = Number(r >> BigInt(32) & BigInt(4294967295));
|
|
1688
|
+
return s[i++] = E, E = E >> 8, s[i++] = E, E = E >> 8, s[i++] = E, E = E >> 8, s[i++] = E, i;
|
|
1689
|
+
}
|
|
1690
|
+
function he(s, r, i, u, h) {
|
|
1691
|
+
Ye(r, u, h, s, i, 7);
|
|
1692
|
+
let m = Number(r & BigInt(4294967295));
|
|
1693
|
+
s[i + 7] = m, m = m >> 8, s[i + 6] = m, m = m >> 8, s[i + 5] = m, m = m >> 8, s[i + 4] = m;
|
|
1694
|
+
let E = Number(r >> BigInt(32) & BigInt(4294967295));
|
|
1695
|
+
return s[i + 3] = E, E = E >> 8, s[i + 2] = E, E = E >> 8, s[i + 1] = E, E = E >> 8, s[i] = E, i + 8;
|
|
1696
|
+
}
|
|
1697
|
+
f.prototype.writeBigUInt64LE = _e(function(r, i = 0) {
|
|
1698
|
+
return Re(this, r, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1699
|
+
}), f.prototype.writeBigUInt64BE = _e(function(r, i = 0) {
|
|
1700
|
+
return he(this, r, i, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1701
|
+
}), f.prototype.writeIntLE = function(r, i, u, h) {
|
|
1702
|
+
if (r = +r, i = i >>> 0, !h) {
|
|
1703
|
+
const G = Math.pow(2, 8 * u - 1);
|
|
1704
|
+
X(this, r, i, u, G - 1, -G);
|
|
1705
|
+
}
|
|
1706
|
+
let m = 0, E = 1, P = 0;
|
|
1707
|
+
for (this[i] = r & 255; ++m < u && (E *= 256); )
|
|
1708
|
+
r < 0 && P === 0 && this[i + m - 1] !== 0 && (P = 1), this[i + m] = (r / E >> 0) - P & 255;
|
|
1709
|
+
return i + u;
|
|
1710
|
+
}, f.prototype.writeIntBE = function(r, i, u, h) {
|
|
1711
|
+
if (r = +r, i = i >>> 0, !h) {
|
|
1712
|
+
const G = Math.pow(2, 8 * u - 1);
|
|
1713
|
+
X(this, r, i, u, G - 1, -G);
|
|
1714
|
+
}
|
|
1715
|
+
let m = u - 1, E = 1, P = 0;
|
|
1716
|
+
for (this[i + m] = r & 255; --m >= 0 && (E *= 256); )
|
|
1717
|
+
r < 0 && P === 0 && this[i + m + 1] !== 0 && (P = 1), this[i + m] = (r / E >> 0) - P & 255;
|
|
1718
|
+
return i + u;
|
|
1719
|
+
}, f.prototype.writeInt8 = function(r, i, u) {
|
|
1720
|
+
return r = +r, i = i >>> 0, u || X(this, r, i, 1, 127, -128), r < 0 && (r = 255 + r + 1), this[i] = r & 255, i + 1;
|
|
1721
|
+
}, f.prototype.writeInt16LE = function(r, i, u) {
|
|
1722
|
+
return r = +r, i = i >>> 0, u || X(this, r, i, 2, 32767, -32768), this[i] = r & 255, this[i + 1] = r >>> 8, i + 2;
|
|
1723
|
+
}, f.prototype.writeInt16BE = function(r, i, u) {
|
|
1724
|
+
return r = +r, i = i >>> 0, u || X(this, r, i, 2, 32767, -32768), this[i] = r >>> 8, this[i + 1] = r & 255, i + 2;
|
|
1725
|
+
}, f.prototype.writeInt32LE = function(r, i, u) {
|
|
1726
|
+
return r = +r, i = i >>> 0, u || X(this, r, i, 4, 2147483647, -2147483648), this[i] = r & 255, this[i + 1] = r >>> 8, this[i + 2] = r >>> 16, this[i + 3] = r >>> 24, i + 4;
|
|
1727
|
+
}, f.prototype.writeInt32BE = function(r, i, u) {
|
|
1728
|
+
return r = +r, i = i >>> 0, u || X(this, r, i, 4, 2147483647, -2147483648), r < 0 && (r = 4294967295 + r + 1), this[i] = r >>> 24, this[i + 1] = r >>> 16, this[i + 2] = r >>> 8, this[i + 3] = r & 255, i + 4;
|
|
1729
|
+
}, f.prototype.writeBigInt64LE = _e(function(r, i = 0) {
|
|
1730
|
+
return Re(this, r, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1731
|
+
}), f.prototype.writeBigInt64BE = _e(function(r, i = 0) {
|
|
1732
|
+
return he(this, r, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1733
|
+
});
|
|
1734
|
+
function ae(s, r, i, u, h, m) {
|
|
1735
|
+
if (i + u > s.length) throw new RangeError("Index out of range");
|
|
1736
|
+
if (i < 0) throw new RangeError("Index out of range");
|
|
1737
|
+
}
|
|
1738
|
+
function Be(s, r, i, u, h) {
|
|
1739
|
+
return r = +r, i = i >>> 0, h || ae(s, r, i, 4), n.write(s, r, i, u, 23, 4), i + 4;
|
|
1740
|
+
}
|
|
1741
|
+
f.prototype.writeFloatLE = function(r, i, u) {
|
|
1742
|
+
return Be(this, r, i, !0, u);
|
|
1743
|
+
}, f.prototype.writeFloatBE = function(r, i, u) {
|
|
1744
|
+
return Be(this, r, i, !1, u);
|
|
1745
|
+
};
|
|
1746
|
+
function ye(s, r, i, u, h) {
|
|
1747
|
+
return r = +r, i = i >>> 0, h || ae(s, r, i, 8), n.write(s, r, i, u, 52, 8), i + 8;
|
|
1748
|
+
}
|
|
1749
|
+
f.prototype.writeDoubleLE = function(r, i, u) {
|
|
1750
|
+
return ye(this, r, i, !0, u);
|
|
1751
|
+
}, f.prototype.writeDoubleBE = function(r, i, u) {
|
|
1752
|
+
return ye(this, r, i, !1, u);
|
|
1753
|
+
}, f.prototype.copy = function(r, i, u, h) {
|
|
1754
|
+
if (!f.isBuffer(r)) throw new TypeError("argument should be a Buffer");
|
|
1755
|
+
if (u || (u = 0), !h && h !== 0 && (h = this.length), i >= r.length && (i = r.length), i || (i = 0), h > 0 && h < u && (h = u), h === u || r.length === 0 || this.length === 0) return 0;
|
|
1756
|
+
if (i < 0)
|
|
1757
|
+
throw new RangeError("targetStart out of bounds");
|
|
1758
|
+
if (u < 0 || u >= this.length) throw new RangeError("Index out of range");
|
|
1759
|
+
if (h < 0) throw new RangeError("sourceEnd out of bounds");
|
|
1760
|
+
h > this.length && (h = this.length), r.length - i < h - u && (h = r.length - i + u);
|
|
1761
|
+
const m = h - u;
|
|
1762
|
+
return this === r && typeof c.prototype.copyWithin == "function" ? this.copyWithin(i, u, h) : c.prototype.set.call(
|
|
1763
|
+
r,
|
|
1764
|
+
this.subarray(u, h),
|
|
1765
|
+
i
|
|
1766
|
+
), m;
|
|
1767
|
+
}, f.prototype.fill = function(r, i, u, h) {
|
|
1768
|
+
if (typeof r == "string") {
|
|
1769
|
+
if (typeof i == "string" ? (h = i, i = 0, u = this.length) : typeof u == "string" && (h = u, u = this.length), h !== void 0 && typeof h != "string")
|
|
1770
|
+
throw new TypeError("encoding must be a string");
|
|
1771
|
+
if (typeof h == "string" && !f.isEncoding(h))
|
|
1772
|
+
throw new TypeError("Unknown encoding: " + h);
|
|
1773
|
+
if (r.length === 1) {
|
|
1774
|
+
const E = r.charCodeAt(0);
|
|
1775
|
+
(h === "utf8" && E < 128 || h === "latin1") && (r = E);
|
|
1776
|
+
}
|
|
1777
|
+
} else typeof r == "number" ? r = r & 255 : typeof r == "boolean" && (r = Number(r));
|
|
1778
|
+
if (i < 0 || this.length < i || this.length < u)
|
|
1779
|
+
throw new RangeError("Out of range index");
|
|
1780
|
+
if (u <= i)
|
|
1781
|
+
return this;
|
|
1782
|
+
i = i >>> 0, u = u === void 0 ? this.length : u >>> 0, r || (r = 0);
|
|
1783
|
+
let m;
|
|
1784
|
+
if (typeof r == "number")
|
|
1785
|
+
for (m = i; m < u; ++m)
|
|
1786
|
+
this[m] = r;
|
|
1787
|
+
else {
|
|
1788
|
+
const E = f.isBuffer(r) ? r : f.from(r, h), P = E.length;
|
|
1789
|
+
if (P === 0)
|
|
1790
|
+
throw new TypeError('The value "' + r + '" is invalid for argument "value"');
|
|
1791
|
+
for (m = 0; m < u - i; ++m)
|
|
1792
|
+
this[m + i] = E[m % P];
|
|
1793
|
+
}
|
|
1794
|
+
return this;
|
|
1795
|
+
};
|
|
1796
|
+
const se = {};
|
|
1797
|
+
function at(s, r, i) {
|
|
1798
|
+
se[s] = class extends i {
|
|
1799
|
+
constructor() {
|
|
1800
|
+
super(), Object.defineProperty(this, "message", {
|
|
1801
|
+
value: r.apply(this, arguments),
|
|
1802
|
+
writable: !0,
|
|
1803
|
+
configurable: !0
|
|
1804
|
+
}), this.name = `${this.name} [${s}]`, this.stack, delete this.name;
|
|
1805
|
+
}
|
|
1806
|
+
get code() {
|
|
1807
|
+
return s;
|
|
1808
|
+
}
|
|
1809
|
+
set code(h) {
|
|
1810
|
+
Object.defineProperty(this, "code", {
|
|
1811
|
+
configurable: !0,
|
|
1812
|
+
enumerable: !0,
|
|
1813
|
+
value: h,
|
|
1814
|
+
writable: !0
|
|
1815
|
+
});
|
|
1816
|
+
}
|
|
1817
|
+
toString() {
|
|
1818
|
+
return `${this.name} [${s}]: ${this.message}`;
|
|
1819
|
+
}
|
|
1820
|
+
};
|
|
1821
|
+
}
|
|
1822
|
+
at(
|
|
1823
|
+
"ERR_BUFFER_OUT_OF_BOUNDS",
|
|
1824
|
+
function(s) {
|
|
1825
|
+
return s ? `${s} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
1826
|
+
},
|
|
1827
|
+
RangeError
|
|
1828
|
+
), at(
|
|
1829
|
+
"ERR_INVALID_ARG_TYPE",
|
|
1830
|
+
function(s, r) {
|
|
1831
|
+
return `The "${s}" argument must be of type number. Received type ${typeof r}`;
|
|
1832
|
+
},
|
|
1833
|
+
TypeError
|
|
1834
|
+
), at(
|
|
1835
|
+
"ERR_OUT_OF_RANGE",
|
|
1836
|
+
function(s, r, i) {
|
|
1837
|
+
let u = `The value of "${s}" is out of range.`, h = i;
|
|
1838
|
+
return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? h = Ut(String(i)) : typeof i == "bigint" && (h = String(i), (i > BigInt(2) ** BigInt(32) || i < -(BigInt(2) ** BigInt(32))) && (h = Ut(h)), h += "n"), u += ` It must be ${r}. Received ${h}`, u;
|
|
1839
|
+
},
|
|
1840
|
+
RangeError
|
|
1841
|
+
);
|
|
1842
|
+
function Ut(s) {
|
|
1843
|
+
let r = "", i = s.length;
|
|
1844
|
+
const u = s[0] === "-" ? 1 : 0;
|
|
1845
|
+
for (; i >= u + 4; i -= 3)
|
|
1846
|
+
r = `_${s.slice(i - 3, i)}${r}`;
|
|
1847
|
+
return `${s.slice(0, i)}${r}`;
|
|
1848
|
+
}
|
|
1849
|
+
function pr(s, r, i) {
|
|
1850
|
+
ge(r, "offset"), (s[r] === void 0 || s[r + i] === void 0) && He(r, s.length - (i + 1));
|
|
1851
|
+
}
|
|
1852
|
+
function Ye(s, r, i, u, h, m) {
|
|
1853
|
+
if (s > i || s < r) {
|
|
1854
|
+
const E = typeof r == "bigint" ? "n" : "";
|
|
1855
|
+
let P;
|
|
1856
|
+
throw r === 0 || r === BigInt(0) ? P = `>= 0${E} and < 2${E} ** ${(m + 1) * 8}${E}` : P = `>= -(2${E} ** ${(m + 1) * 8 - 1}${E}) and < 2 ** ${(m + 1) * 8 - 1}${E}`, new se.ERR_OUT_OF_RANGE("value", P, s);
|
|
1857
|
+
}
|
|
1858
|
+
pr(u, h, m);
|
|
1859
|
+
}
|
|
1860
|
+
function ge(s, r) {
|
|
1861
|
+
if (typeof s != "number")
|
|
1862
|
+
throw new se.ERR_INVALID_ARG_TYPE(r, "number", s);
|
|
1863
|
+
}
|
|
1864
|
+
function He(s, r, i) {
|
|
1865
|
+
throw Math.floor(s) !== s ? (ge(s, i), new se.ERR_OUT_OF_RANGE("offset", "an integer", s)) : r < 0 ? new se.ERR_BUFFER_OUT_OF_BOUNDS() : new se.ERR_OUT_OF_RANGE(
|
|
1866
|
+
"offset",
|
|
1867
|
+
`>= 0 and <= ${r}`,
|
|
1868
|
+
s
|
|
1869
|
+
);
|
|
1870
|
+
}
|
|
1871
|
+
const Lt = /[^+/0-9A-Za-z-_]/g;
|
|
1872
|
+
function ct(s) {
|
|
1873
|
+
if (s = s.split("=")[0], s = s.trim().replace(Lt, ""), s.length < 2) return "";
|
|
1874
|
+
for (; s.length % 4 !== 0; )
|
|
1875
|
+
s = s + "=";
|
|
1876
|
+
return s;
|
|
1877
|
+
}
|
|
1878
|
+
function Tt(s, r) {
|
|
1879
|
+
r = r || 1 / 0;
|
|
1880
|
+
let i;
|
|
1881
|
+
const u = s.length;
|
|
1882
|
+
let h = null;
|
|
1883
|
+
const m = [];
|
|
1884
|
+
for (let E = 0; E < u; ++E) {
|
|
1885
|
+
if (i = s.charCodeAt(E), i > 55295 && i < 57344) {
|
|
1886
|
+
if (!h) {
|
|
1887
|
+
if (i > 56319) {
|
|
1888
|
+
(r -= 3) > -1 && m.push(239, 191, 189);
|
|
1889
|
+
continue;
|
|
1890
|
+
} else if (E + 1 === u) {
|
|
1891
|
+
(r -= 3) > -1 && m.push(239, 191, 189);
|
|
1892
|
+
continue;
|
|
1893
|
+
}
|
|
1894
|
+
h = i;
|
|
1895
|
+
continue;
|
|
1896
|
+
}
|
|
1897
|
+
if (i < 56320) {
|
|
1898
|
+
(r -= 3) > -1 && m.push(239, 191, 189), h = i;
|
|
1899
|
+
continue;
|
|
1900
|
+
}
|
|
1901
|
+
i = (h - 55296 << 10 | i - 56320) + 65536;
|
|
1902
|
+
} else h && (r -= 3) > -1 && m.push(239, 191, 189);
|
|
1903
|
+
if (h = null, i < 128) {
|
|
1904
|
+
if ((r -= 1) < 0) break;
|
|
1905
|
+
m.push(i);
|
|
1906
|
+
} else if (i < 2048) {
|
|
1907
|
+
if ((r -= 2) < 0) break;
|
|
1908
|
+
m.push(
|
|
1909
|
+
i >> 6 | 192,
|
|
1910
|
+
i & 63 | 128
|
|
1911
|
+
);
|
|
1912
|
+
} else if (i < 65536) {
|
|
1913
|
+
if ((r -= 3) < 0) break;
|
|
1914
|
+
m.push(
|
|
1915
|
+
i >> 12 | 224,
|
|
1916
|
+
i >> 6 & 63 | 128,
|
|
1917
|
+
i & 63 | 128
|
|
1918
|
+
);
|
|
1919
|
+
} else if (i < 1114112) {
|
|
1920
|
+
if ((r -= 4) < 0) break;
|
|
1921
|
+
m.push(
|
|
1922
|
+
i >> 18 | 240,
|
|
1923
|
+
i >> 12 & 63 | 128,
|
|
1924
|
+
i >> 6 & 63 | 128,
|
|
1925
|
+
i & 63 | 128
|
|
1926
|
+
);
|
|
1927
|
+
} else
|
|
1928
|
+
throw new Error("Invalid code point");
|
|
1929
|
+
}
|
|
1930
|
+
return m;
|
|
1931
|
+
}
|
|
1932
|
+
function hr(s) {
|
|
1933
|
+
const r = [];
|
|
1934
|
+
for (let i = 0; i < s.length; ++i)
|
|
1935
|
+
r.push(s.charCodeAt(i) & 255);
|
|
1936
|
+
return r;
|
|
1937
|
+
}
|
|
1938
|
+
function Ct(s, r) {
|
|
1939
|
+
let i, u, h;
|
|
1940
|
+
const m = [];
|
|
1941
|
+
for (let E = 0; E < s.length && !((r -= 2) < 0); ++E)
|
|
1942
|
+
i = s.charCodeAt(E), u = i >> 8, h = i % 256, m.push(h), m.push(u);
|
|
1943
|
+
return m;
|
|
1944
|
+
}
|
|
1945
|
+
function jt(s) {
|
|
1946
|
+
return t.toByteArray(ct(s));
|
|
1947
|
+
}
|
|
1948
|
+
function ut(s, r, i, u) {
|
|
1949
|
+
let h;
|
|
1950
|
+
for (h = 0; h < u && !(h + i >= r.length || h >= s.length); ++h)
|
|
1951
|
+
r[h + i] = s[h];
|
|
1952
|
+
return h;
|
|
1953
|
+
}
|
|
1954
|
+
function de(s, r) {
|
|
1955
|
+
return s instanceof r || s != null && s.constructor != null && s.constructor.name != null && s.constructor.name === r.name;
|
|
1956
|
+
}
|
|
1957
|
+
function lt(s) {
|
|
1958
|
+
return s !== s;
|
|
1959
|
+
}
|
|
1960
|
+
const Mt = function() {
|
|
1961
|
+
const s = "0123456789abcdef", r = new Array(256);
|
|
1962
|
+
for (let i = 0; i < 16; ++i) {
|
|
1963
|
+
const u = i * 16;
|
|
1964
|
+
for (let h = 0; h < 16; ++h)
|
|
1965
|
+
r[u + h] = s[i] + s[h];
|
|
1966
|
+
}
|
|
1967
|
+
return r;
|
|
1968
|
+
}();
|
|
1969
|
+
function _e(s) {
|
|
1970
|
+
return typeof BigInt > "u" ? $t : s;
|
|
1971
|
+
}
|
|
1972
|
+
function $t() {
|
|
1973
|
+
throw new Error("BigInt not supported");
|
|
1974
|
+
}
|
|
1975
|
+
})(Vn);
|
|
1976
|
+
const $o = Vn.Buffer;
|
|
1977
|
+
function L(e, t, n, o, a) {
|
|
1978
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), o && (this.request = o), a && (this.response = a);
|
|
1979
|
+
}
|
|
1980
|
+
w.inherits(L, Error, {
|
|
1981
|
+
toJSON: function() {
|
|
1982
|
+
return {
|
|
1983
|
+
// Standard
|
|
1984
|
+
message: this.message,
|
|
1985
|
+
name: this.name,
|
|
1986
|
+
// Microsoft
|
|
1987
|
+
description: this.description,
|
|
1988
|
+
number: this.number,
|
|
1989
|
+
// Mozilla
|
|
1990
|
+
fileName: this.fileName,
|
|
1991
|
+
lineNumber: this.lineNumber,
|
|
1992
|
+
columnNumber: this.columnNumber,
|
|
1993
|
+
stack: this.stack,
|
|
1994
|
+
// Axios
|
|
1995
|
+
config: w.toJSONObject(this.config),
|
|
1996
|
+
code: this.code,
|
|
1997
|
+
status: this.response && this.response.status ? this.response.status : null
|
|
1998
|
+
};
|
|
1999
|
+
}
|
|
2000
|
+
});
|
|
2001
|
+
const Yn = L.prototype, Gn = {};
|
|
2002
|
+
[
|
|
2003
|
+
"ERR_BAD_OPTION_VALUE",
|
|
2004
|
+
"ERR_BAD_OPTION",
|
|
2005
|
+
"ECONNABORTED",
|
|
2006
|
+
"ETIMEDOUT",
|
|
2007
|
+
"ERR_NETWORK",
|
|
2008
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
2009
|
+
"ERR_DEPRECATED",
|
|
2010
|
+
"ERR_BAD_RESPONSE",
|
|
2011
|
+
"ERR_BAD_REQUEST",
|
|
2012
|
+
"ERR_CANCELED",
|
|
2013
|
+
"ERR_NOT_SUPPORT",
|
|
2014
|
+
"ERR_INVALID_URL"
|
|
2015
|
+
// eslint-disable-next-line func-names
|
|
2016
|
+
].forEach((e) => {
|
|
2017
|
+
Gn[e] = { value: e };
|
|
2018
|
+
});
|
|
2019
|
+
Object.defineProperties(L, Gn);
|
|
2020
|
+
Object.defineProperty(Yn, "isAxiosError", { value: !0 });
|
|
2021
|
+
L.from = (e, t, n, o, a, c) => {
|
|
2022
|
+
const l = Object.create(Yn);
|
|
2023
|
+
return w.toFlatObject(e, l, function(g) {
|
|
2024
|
+
return g !== Error.prototype;
|
|
2025
|
+
}, (d) => d !== "isAxiosError"), L.call(l, e.message, t, n, o, a), l.cause = e, l.name = e.name, c && Object.assign(l, c), l;
|
|
2026
|
+
};
|
|
2027
|
+
const zo = null;
|
|
2028
|
+
function _r(e) {
|
|
2029
|
+
return w.isPlainObject(e) || w.isArray(e);
|
|
2030
|
+
}
|
|
2031
|
+
function Jn(e) {
|
|
2032
|
+
return w.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
2033
|
+
}
|
|
2034
|
+
function cn(e, t, n) {
|
|
2035
|
+
return e ? e.concat(t).map(function(a, c) {
|
|
2036
|
+
return a = Jn(a), !n && c ? "[" + a + "]" : a;
|
|
2037
|
+
}).join(n ? "." : "") : t;
|
|
2038
|
+
}
|
|
2039
|
+
function Ho(e) {
|
|
2040
|
+
return w.isArray(e) && !e.some(_r);
|
|
2041
|
+
}
|
|
2042
|
+
const qo = w.toFlatObject(w, {}, null, function(t) {
|
|
2043
|
+
return /^is[A-Z]/.test(t);
|
|
2044
|
+
});
|
|
2045
|
+
function sr(e, t, n) {
|
|
2046
|
+
if (!w.isObject(e))
|
|
2047
|
+
throw new TypeError("target must be an object");
|
|
2048
|
+
t = t || new FormData(), n = w.toFlatObject(n, {
|
|
2049
|
+
metaTokens: !0,
|
|
2050
|
+
dots: !1,
|
|
2051
|
+
indexes: !1
|
|
2052
|
+
}, !1, function(T, H) {
|
|
2053
|
+
return !w.isUndefined(H[T]);
|
|
2054
|
+
});
|
|
2055
|
+
const o = n.metaTokens, a = n.visitor || f, c = n.dots, l = n.indexes, g = (n.Blob || typeof Blob < "u" && Blob) && w.isSpecCompliantForm(t);
|
|
2056
|
+
if (!w.isFunction(a))
|
|
2057
|
+
throw new TypeError("visitor must be a function");
|
|
2058
|
+
function y(S) {
|
|
2059
|
+
if (S === null) return "";
|
|
2060
|
+
if (w.isDate(S))
|
|
2061
|
+
return S.toISOString();
|
|
2062
|
+
if (!g && w.isBlob(S))
|
|
2063
|
+
throw new L("Blob is not supported. Use a Buffer instead.");
|
|
2064
|
+
return w.isArrayBuffer(S) || w.isTypedArray(S) ? g && typeof Blob == "function" ? new Blob([S]) : $o.from(S) : S;
|
|
2065
|
+
}
|
|
2066
|
+
function f(S, T, H) {
|
|
2067
|
+
let _ = S;
|
|
2068
|
+
if (S && !H && typeof S == "object") {
|
|
2069
|
+
if (w.endsWith(T, "{}"))
|
|
2070
|
+
T = o ? T : T.slice(0, -2), S = JSON.stringify(S);
|
|
2071
|
+
else if (w.isArray(S) && Ho(S) || (w.isFileList(S) || w.endsWith(T, "[]")) && (_ = w.toArray(S)))
|
|
2072
|
+
return T = Jn(T), _.forEach(function(D, j) {
|
|
2073
|
+
!(w.isUndefined(D) || D === null) && t.append(
|
|
2074
|
+
// eslint-disable-next-line no-nested-ternary
|
|
2075
|
+
l === !0 ? cn([T], j, c) : l === null ? T : T + "[]",
|
|
2076
|
+
y(D)
|
|
2077
|
+
);
|
|
2078
|
+
}), !1;
|
|
2079
|
+
}
|
|
2080
|
+
return _r(S) ? !0 : (t.append(cn(H, T, c), y(S)), !1);
|
|
2081
|
+
}
|
|
2082
|
+
const b = [], A = Object.assign(qo, {
|
|
2083
|
+
defaultVisitor: f,
|
|
2084
|
+
convertValue: y,
|
|
2085
|
+
isVisitable: _r
|
|
2086
|
+
});
|
|
2087
|
+
function v(S, T) {
|
|
2088
|
+
if (!w.isUndefined(S)) {
|
|
2089
|
+
if (b.indexOf(S) !== -1)
|
|
2090
|
+
throw Error("Circular reference detected in " + T.join("."));
|
|
2091
|
+
b.push(S), w.forEach(S, function(_, C) {
|
|
2092
|
+
(!(w.isUndefined(_) || _ === null) && a.call(
|
|
2093
|
+
t,
|
|
2094
|
+
_,
|
|
2095
|
+
w.isString(C) ? C.trim() : C,
|
|
2096
|
+
T,
|
|
2097
|
+
A
|
|
2098
|
+
)) === !0 && v(_, T ? T.concat(C) : [C]);
|
|
2099
|
+
}), b.pop();
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
if (!w.isObject(e))
|
|
2103
|
+
throw new TypeError("data must be an object");
|
|
2104
|
+
return v(e), t;
|
|
2105
|
+
}
|
|
2106
|
+
function un(e) {
|
|
2107
|
+
const t = {
|
|
2108
|
+
"!": "%21",
|
|
2109
|
+
"'": "%27",
|
|
2110
|
+
"(": "%28",
|
|
2111
|
+
")": "%29",
|
|
2112
|
+
"~": "%7E",
|
|
2113
|
+
"%20": "+",
|
|
2114
|
+
"%00": "\0"
|
|
2115
|
+
};
|
|
2116
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(o) {
|
|
2117
|
+
return t[o];
|
|
2118
|
+
});
|
|
2119
|
+
}
|
|
2120
|
+
function Hr(e, t) {
|
|
2121
|
+
this._pairs = [], e && sr(e, this, t);
|
|
2122
|
+
}
|
|
2123
|
+
const Kn = Hr.prototype;
|
|
2124
|
+
Kn.append = function(t, n) {
|
|
2125
|
+
this._pairs.push([t, n]);
|
|
2126
|
+
};
|
|
2127
|
+
Kn.toString = function(t) {
|
|
2128
|
+
const n = t ? function(o) {
|
|
2129
|
+
return t.call(this, o, un);
|
|
2130
|
+
} : un;
|
|
2131
|
+
return this._pairs.map(function(a) {
|
|
2132
|
+
return n(a[0]) + "=" + n(a[1]);
|
|
2133
|
+
}, "").join("&");
|
|
2134
|
+
};
|
|
2135
|
+
function Vo(e) {
|
|
2136
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
2137
|
+
}
|
|
2138
|
+
function Xn(e, t, n) {
|
|
2139
|
+
if (!t)
|
|
2140
|
+
return e;
|
|
2141
|
+
const o = n && n.encode || Vo, a = n && n.serialize;
|
|
2142
|
+
let c;
|
|
2143
|
+
if (a ? c = a(t, n) : c = w.isURLSearchParams(t) ? t.toString() : new Hr(t, n).toString(o), c) {
|
|
2144
|
+
const l = e.indexOf("#");
|
|
2145
|
+
l !== -1 && (e = e.slice(0, l)), e += (e.indexOf("?") === -1 ? "?" : "&") + c;
|
|
2146
|
+
}
|
|
2147
|
+
return e;
|
|
2148
|
+
}
|
|
2149
|
+
class ln {
|
|
2150
|
+
constructor() {
|
|
2151
|
+
this.handlers = [];
|
|
2152
|
+
}
|
|
2153
|
+
/**
|
|
2154
|
+
* Add a new interceptor to the stack
|
|
2155
|
+
*
|
|
2156
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
2157
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
2158
|
+
*
|
|
2159
|
+
* @return {Number} An ID used to remove interceptor later
|
|
2160
|
+
*/
|
|
2161
|
+
use(t, n, o) {
|
|
2162
|
+
return this.handlers.push({
|
|
2163
|
+
fulfilled: t,
|
|
2164
|
+
rejected: n,
|
|
2165
|
+
synchronous: o ? o.synchronous : !1,
|
|
2166
|
+
runWhen: o ? o.runWhen : null
|
|
2167
|
+
}), this.handlers.length - 1;
|
|
2168
|
+
}
|
|
2169
|
+
/**
|
|
2170
|
+
* Remove an interceptor from the stack
|
|
2171
|
+
*
|
|
2172
|
+
* @param {Number} id The ID that was returned by `use`
|
|
2173
|
+
*
|
|
2174
|
+
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
2175
|
+
*/
|
|
2176
|
+
eject(t) {
|
|
2177
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
2178
|
+
}
|
|
2179
|
+
/**
|
|
2180
|
+
* Clear all interceptors from the stack
|
|
2181
|
+
*
|
|
2182
|
+
* @returns {void}
|
|
2183
|
+
*/
|
|
2184
|
+
clear() {
|
|
2185
|
+
this.handlers && (this.handlers = []);
|
|
2186
|
+
}
|
|
2187
|
+
/**
|
|
2188
|
+
* Iterate over all the registered interceptors
|
|
2189
|
+
*
|
|
2190
|
+
* This method is particularly useful for skipping over any
|
|
2191
|
+
* interceptors that may have become `null` calling `eject`.
|
|
2192
|
+
*
|
|
2193
|
+
* @param {Function} fn The function to call for each interceptor
|
|
2194
|
+
*
|
|
2195
|
+
* @returns {void}
|
|
2196
|
+
*/
|
|
2197
|
+
forEach(t) {
|
|
2198
|
+
w.forEach(this.handlers, function(o) {
|
|
2199
|
+
o !== null && t(o);
|
|
2200
|
+
});
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
const Zn = {
|
|
2204
|
+
silentJSONParsing: !0,
|
|
2205
|
+
forcedJSONParsing: !0,
|
|
2206
|
+
clarifyTimeoutError: !1
|
|
2207
|
+
}, Wo = typeof URLSearchParams < "u" ? URLSearchParams : Hr, Yo = typeof FormData < "u" ? FormData : null, Go = typeof Blob < "u" ? Blob : null, Jo = (() => {
|
|
2208
|
+
let e;
|
|
2209
|
+
return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
2210
|
+
})(), Ko = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
2211
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ke = {
|
|
2212
|
+
classes: {
|
|
2213
|
+
URLSearchParams: Wo,
|
|
2214
|
+
FormData: Yo,
|
|
2215
|
+
Blob: Go
|
|
2216
|
+
},
|
|
2217
|
+
isStandardBrowserEnv: Jo,
|
|
2218
|
+
isStandardBrowserWebWorkerEnv: Ko,
|
|
2219
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
2220
|
+
};
|
|
2221
|
+
function Xo(e, t) {
|
|
2222
|
+
return sr(e, new ke.classes.URLSearchParams(), Object.assign({
|
|
2223
|
+
visitor: function(n, o, a, c) {
|
|
2224
|
+
return ke.isNode && w.isBuffer(n) ? (this.append(o, n.toString("base64")), !1) : c.defaultVisitor.apply(this, arguments);
|
|
2225
|
+
}
|
|
2226
|
+
}, t));
|
|
2227
|
+
}
|
|
2228
|
+
function Zo(e) {
|
|
2229
|
+
return w.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
2230
|
+
}
|
|
2231
|
+
function Qo(e) {
|
|
2232
|
+
const t = {}, n = Object.keys(e);
|
|
2233
|
+
let o;
|
|
2234
|
+
const a = n.length;
|
|
2235
|
+
let c;
|
|
2236
|
+
for (o = 0; o < a; o++)
|
|
2237
|
+
c = n[o], t[c] = e[c];
|
|
2238
|
+
return t;
|
|
2239
|
+
}
|
|
2240
|
+
function Qn(e) {
|
|
2241
|
+
function t(n, o, a, c) {
|
|
2242
|
+
let l = n[c++];
|
|
2243
|
+
const d = Number.isFinite(+l), g = c >= n.length;
|
|
2244
|
+
return l = !l && w.isArray(a) ? a.length : l, g ? (w.hasOwnProp(a, l) ? a[l] = [a[l], o] : a[l] = o, !d) : ((!a[l] || !w.isObject(a[l])) && (a[l] = []), t(n, o, a[l], c) && w.isArray(a[l]) && (a[l] = Qo(a[l])), !d);
|
|
2245
|
+
}
|
|
2246
|
+
if (w.isFormData(e) && w.isFunction(e.entries)) {
|
|
2247
|
+
const n = {};
|
|
2248
|
+
return w.forEachEntry(e, (o, a) => {
|
|
2249
|
+
t(Zo(o), a, n, 0);
|
|
2250
|
+
}), n;
|
|
2251
|
+
}
|
|
2252
|
+
return null;
|
|
2253
|
+
}
|
|
2254
|
+
const es = {
|
|
2255
|
+
"Content-Type": void 0
|
|
2256
|
+
};
|
|
2257
|
+
function ts(e, t, n) {
|
|
2258
|
+
if (w.isString(e))
|
|
2259
|
+
try {
|
|
2260
|
+
return (t || JSON.parse)(e), w.trim(e);
|
|
2261
|
+
} catch (o) {
|
|
2262
|
+
if (o.name !== "SyntaxError")
|
|
2263
|
+
throw o;
|
|
2264
|
+
}
|
|
2265
|
+
return (n || JSON.stringify)(e);
|
|
2266
|
+
}
|
|
2267
|
+
const St = {
|
|
2268
|
+
transitional: Zn,
|
|
2269
|
+
adapter: ["xhr", "http"],
|
|
2270
|
+
transformRequest: [function(t, n) {
|
|
2271
|
+
const o = n.getContentType() || "", a = o.indexOf("application/json") > -1, c = w.isObject(t);
|
|
2272
|
+
if (c && w.isHTMLForm(t) && (t = new FormData(t)), w.isFormData(t))
|
|
2273
|
+
return a && a ? JSON.stringify(Qn(t)) : t;
|
|
2274
|
+
if (w.isArrayBuffer(t) || w.isBuffer(t) || w.isStream(t) || w.isFile(t) || w.isBlob(t))
|
|
2275
|
+
return t;
|
|
2276
|
+
if (w.isArrayBufferView(t))
|
|
2277
|
+
return t.buffer;
|
|
2278
|
+
if (w.isURLSearchParams(t))
|
|
2279
|
+
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
2280
|
+
let d;
|
|
2281
|
+
if (c) {
|
|
2282
|
+
if (o.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2283
|
+
return Xo(t, this.formSerializer).toString();
|
|
2284
|
+
if ((d = w.isFileList(t)) || o.indexOf("multipart/form-data") > -1) {
|
|
2285
|
+
const g = this.env && this.env.FormData;
|
|
2286
|
+
return sr(
|
|
2287
|
+
d ? { "files[]": t } : t,
|
|
2288
|
+
g && new g(),
|
|
2289
|
+
this.formSerializer
|
|
2290
|
+
);
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
return c || a ? (n.setContentType("application/json", !1), ts(t)) : t;
|
|
2294
|
+
}],
|
|
2295
|
+
transformResponse: [function(t) {
|
|
2296
|
+
const n = this.transitional || St.transitional, o = n && n.forcedJSONParsing, a = this.responseType === "json";
|
|
2297
|
+
if (t && w.isString(t) && (o && !this.responseType || a)) {
|
|
2298
|
+
const l = !(n && n.silentJSONParsing) && a;
|
|
2299
|
+
try {
|
|
2300
|
+
return JSON.parse(t);
|
|
2301
|
+
} catch (d) {
|
|
2302
|
+
if (l)
|
|
2303
|
+
throw d.name === "SyntaxError" ? L.from(d, L.ERR_BAD_RESPONSE, this, null, this.response) : d;
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
return t;
|
|
2307
|
+
}],
|
|
2308
|
+
/**
|
|
2309
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
2310
|
+
* timeout is not created.
|
|
2311
|
+
*/
|
|
2312
|
+
timeout: 0,
|
|
2313
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
2314
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
2315
|
+
maxContentLength: -1,
|
|
2316
|
+
maxBodyLength: -1,
|
|
2317
|
+
env: {
|
|
2318
|
+
FormData: ke.classes.FormData,
|
|
2319
|
+
Blob: ke.classes.Blob
|
|
2320
|
+
},
|
|
2321
|
+
validateStatus: function(t) {
|
|
2322
|
+
return t >= 200 && t < 300;
|
|
2323
|
+
},
|
|
2324
|
+
headers: {
|
|
2325
|
+
common: {
|
|
2326
|
+
Accept: "application/json, text/plain, */*"
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
};
|
|
2330
|
+
w.forEach(["delete", "get", "head"], function(t) {
|
|
2331
|
+
St.headers[t] = {};
|
|
2332
|
+
});
|
|
2333
|
+
w.forEach(["post", "put", "patch"], function(t) {
|
|
2334
|
+
St.headers[t] = w.merge(es);
|
|
2335
|
+
});
|
|
2336
|
+
const rs = w.toObjectSet([
|
|
2337
|
+
"age",
|
|
2338
|
+
"authorization",
|
|
2339
|
+
"content-length",
|
|
2340
|
+
"content-type",
|
|
2341
|
+
"etag",
|
|
2342
|
+
"expires",
|
|
2343
|
+
"from",
|
|
2344
|
+
"host",
|
|
2345
|
+
"if-modified-since",
|
|
2346
|
+
"if-unmodified-since",
|
|
2347
|
+
"last-modified",
|
|
2348
|
+
"location",
|
|
2349
|
+
"max-forwards",
|
|
2350
|
+
"proxy-authorization",
|
|
2351
|
+
"referer",
|
|
2352
|
+
"retry-after",
|
|
2353
|
+
"user-agent"
|
|
2354
|
+
]), ns = (e) => {
|
|
2355
|
+
const t = {};
|
|
2356
|
+
let n, o, a;
|
|
2357
|
+
return e && e.split(`
|
|
2358
|
+
`).forEach(function(l) {
|
|
2359
|
+
a = l.indexOf(":"), n = l.substring(0, a).trim().toLowerCase(), o = l.substring(a + 1).trim(), !(!n || t[n] && rs[n]) && (n === "set-cookie" ? t[n] ? t[n].push(o) : t[n] = [o] : t[n] = t[n] ? t[n] + ", " + o : o);
|
|
2360
|
+
}), t;
|
|
2361
|
+
}, fn = Symbol("internals");
|
|
2362
|
+
function _t(e) {
|
|
2363
|
+
return e && String(e).trim().toLowerCase();
|
|
2364
|
+
}
|
|
2365
|
+
function Yt(e) {
|
|
2366
|
+
return e === !1 || e == null ? e : w.isArray(e) ? e.map(Yt) : String(e);
|
|
2367
|
+
}
|
|
2368
|
+
function is(e) {
|
|
2369
|
+
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
2370
|
+
let o;
|
|
2371
|
+
for (; o = n.exec(e); )
|
|
2372
|
+
t[o[1]] = o[2];
|
|
2373
|
+
return t;
|
|
2374
|
+
}
|
|
2375
|
+
const os = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
2376
|
+
function wr(e, t, n, o, a) {
|
|
2377
|
+
if (w.isFunction(o))
|
|
2378
|
+
return o.call(this, t, n);
|
|
2379
|
+
if (a && (t = n), !!w.isString(t)) {
|
|
2380
|
+
if (w.isString(o))
|
|
2381
|
+
return t.indexOf(o) !== -1;
|
|
2382
|
+
if (w.isRegExp(o))
|
|
2383
|
+
return o.test(t);
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
function ss(e) {
|
|
2387
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, o) => n.toUpperCase() + o);
|
|
2388
|
+
}
|
|
2389
|
+
function as(e, t) {
|
|
2390
|
+
const n = w.toCamelCase(" " + t);
|
|
2391
|
+
["get", "set", "has"].forEach((o) => {
|
|
2392
|
+
Object.defineProperty(e, o + n, {
|
|
2393
|
+
value: function(a, c, l) {
|
|
2394
|
+
return this[o].call(this, t, a, c, l);
|
|
2395
|
+
},
|
|
2396
|
+
configurable: !0
|
|
2397
|
+
});
|
|
2398
|
+
});
|
|
2399
|
+
}
|
|
2400
|
+
let xe = class {
|
|
2401
|
+
constructor(t) {
|
|
2402
|
+
t && this.set(t);
|
|
2403
|
+
}
|
|
2404
|
+
set(t, n, o) {
|
|
2405
|
+
const a = this;
|
|
2406
|
+
function c(d, g, y) {
|
|
2407
|
+
const f = _t(g);
|
|
2408
|
+
if (!f)
|
|
2409
|
+
throw new Error("header name must be a non-empty string");
|
|
2410
|
+
const b = w.findKey(a, f);
|
|
2411
|
+
(!b || a[b] === void 0 || y === !0 || y === void 0 && a[b] !== !1) && (a[b || g] = Yt(d));
|
|
2412
|
+
}
|
|
2413
|
+
const l = (d, g) => w.forEach(d, (y, f) => c(y, f, g));
|
|
2414
|
+
return w.isPlainObject(t) || t instanceof this.constructor ? l(t, n) : w.isString(t) && (t = t.trim()) && !os(t) ? l(ns(t), n) : t != null && c(n, t, o), this;
|
|
2415
|
+
}
|
|
2416
|
+
get(t, n) {
|
|
2417
|
+
if (t = _t(t), t) {
|
|
2418
|
+
const o = w.findKey(this, t);
|
|
2419
|
+
if (o) {
|
|
2420
|
+
const a = this[o];
|
|
2421
|
+
if (!n)
|
|
2422
|
+
return a;
|
|
2423
|
+
if (n === !0)
|
|
2424
|
+
return is(a);
|
|
2425
|
+
if (w.isFunction(n))
|
|
2426
|
+
return n.call(this, a, o);
|
|
2427
|
+
if (w.isRegExp(n))
|
|
2428
|
+
return n.exec(a);
|
|
2429
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
has(t, n) {
|
|
2434
|
+
if (t = _t(t), t) {
|
|
2435
|
+
const o = w.findKey(this, t);
|
|
2436
|
+
return !!(o && this[o] !== void 0 && (!n || wr(this, this[o], o, n)));
|
|
2437
|
+
}
|
|
2438
|
+
return !1;
|
|
2439
|
+
}
|
|
2440
|
+
delete(t, n) {
|
|
2441
|
+
const o = this;
|
|
2442
|
+
let a = !1;
|
|
2443
|
+
function c(l) {
|
|
2444
|
+
if (l = _t(l), l) {
|
|
2445
|
+
const d = w.findKey(o, l);
|
|
2446
|
+
d && (!n || wr(o, o[d], d, n)) && (delete o[d], a = !0);
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
return w.isArray(t) ? t.forEach(c) : c(t), a;
|
|
2450
|
+
}
|
|
2451
|
+
clear(t) {
|
|
2452
|
+
const n = Object.keys(this);
|
|
2453
|
+
let o = n.length, a = !1;
|
|
2454
|
+
for (; o--; ) {
|
|
2455
|
+
const c = n[o];
|
|
2456
|
+
(!t || wr(this, this[c], c, t, !0)) && (delete this[c], a = !0);
|
|
2457
|
+
}
|
|
2458
|
+
return a;
|
|
2459
|
+
}
|
|
2460
|
+
normalize(t) {
|
|
2461
|
+
const n = this, o = {};
|
|
2462
|
+
return w.forEach(this, (a, c) => {
|
|
2463
|
+
const l = w.findKey(o, c);
|
|
2464
|
+
if (l) {
|
|
2465
|
+
n[l] = Yt(a), delete n[c];
|
|
2466
|
+
return;
|
|
2467
|
+
}
|
|
2468
|
+
const d = t ? ss(c) : String(c).trim();
|
|
2469
|
+
d !== c && delete n[c], n[d] = Yt(a), o[d] = !0;
|
|
2470
|
+
}), this;
|
|
2471
|
+
}
|
|
2472
|
+
concat(...t) {
|
|
2473
|
+
return this.constructor.concat(this, ...t);
|
|
2474
|
+
}
|
|
2475
|
+
toJSON(t) {
|
|
2476
|
+
const n = /* @__PURE__ */ Object.create(null);
|
|
2477
|
+
return w.forEach(this, (o, a) => {
|
|
2478
|
+
o != null && o !== !1 && (n[a] = t && w.isArray(o) ? o.join(", ") : o);
|
|
2479
|
+
}), n;
|
|
2480
|
+
}
|
|
2481
|
+
[Symbol.iterator]() {
|
|
2482
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
2483
|
+
}
|
|
2484
|
+
toString() {
|
|
2485
|
+
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
2486
|
+
`);
|
|
2487
|
+
}
|
|
2488
|
+
get [Symbol.toStringTag]() {
|
|
2489
|
+
return "AxiosHeaders";
|
|
2490
|
+
}
|
|
2491
|
+
static from(t) {
|
|
2492
|
+
return t instanceof this ? t : new this(t);
|
|
2493
|
+
}
|
|
2494
|
+
static concat(t, ...n) {
|
|
2495
|
+
const o = new this(t);
|
|
2496
|
+
return n.forEach((a) => o.set(a)), o;
|
|
2497
|
+
}
|
|
2498
|
+
static accessor(t) {
|
|
2499
|
+
const o = (this[fn] = this[fn] = {
|
|
2500
|
+
accessors: {}
|
|
2501
|
+
}).accessors, a = this.prototype;
|
|
2502
|
+
function c(l) {
|
|
2503
|
+
const d = _t(l);
|
|
2504
|
+
o[d] || (as(a, l), o[d] = !0);
|
|
2505
|
+
}
|
|
2506
|
+
return w.isArray(t) ? t.forEach(c) : c(t), this;
|
|
2507
|
+
}
|
|
2508
|
+
};
|
|
2509
|
+
xe.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
2510
|
+
w.freezeMethods(xe.prototype);
|
|
2511
|
+
w.freezeMethods(xe);
|
|
2512
|
+
function Er(e, t) {
|
|
2513
|
+
const n = this || St, o = t || n, a = xe.from(o.headers);
|
|
2514
|
+
let c = o.data;
|
|
2515
|
+
return w.forEach(e, function(d) {
|
|
2516
|
+
c = d.call(n, c, a.normalize(), t ? t.status : void 0);
|
|
2517
|
+
}), a.normalize(), c;
|
|
2518
|
+
}
|
|
2519
|
+
function ei(e) {
|
|
2520
|
+
return !!(e && e.__CANCEL__);
|
|
2521
|
+
}
|
|
2522
|
+
function Dt(e, t, n) {
|
|
2523
|
+
L.call(this, e ?? "canceled", L.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
2524
|
+
}
|
|
2525
|
+
w.inherits(Dt, L, {
|
|
2526
|
+
__CANCEL__: !0
|
|
2527
|
+
});
|
|
2528
|
+
function cs(e, t, n) {
|
|
2529
|
+
const o = n.config.validateStatus;
|
|
2530
|
+
!n.status || !o || o(n.status) ? e(n) : t(new L(
|
|
2531
|
+
"Request failed with status code " + n.status,
|
|
2532
|
+
[L.ERR_BAD_REQUEST, L.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
2533
|
+
n.config,
|
|
2534
|
+
n.request,
|
|
2535
|
+
n
|
|
2536
|
+
));
|
|
2537
|
+
}
|
|
2538
|
+
const us = ke.isStandardBrowserEnv ? (
|
|
2539
|
+
// Standard browser envs support document.cookie
|
|
2540
|
+
/* @__PURE__ */ function() {
|
|
2541
|
+
return {
|
|
2542
|
+
write: function(n, o, a, c, l, d) {
|
|
2543
|
+
const g = [];
|
|
2544
|
+
g.push(n + "=" + encodeURIComponent(o)), w.isNumber(a) && g.push("expires=" + new Date(a).toGMTString()), w.isString(c) && g.push("path=" + c), w.isString(l) && g.push("domain=" + l), d === !0 && g.push("secure"), document.cookie = g.join("; ");
|
|
2545
|
+
},
|
|
2546
|
+
read: function(n) {
|
|
2547
|
+
const o = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
|
|
2548
|
+
return o ? decodeURIComponent(o[3]) : null;
|
|
2549
|
+
},
|
|
2550
|
+
remove: function(n) {
|
|
2551
|
+
this.write(n, "", Date.now() - 864e5);
|
|
2552
|
+
}
|
|
2553
|
+
};
|
|
2554
|
+
}()
|
|
2555
|
+
) : (
|
|
2556
|
+
// Non standard browser env (web workers, react-native) lack needed support.
|
|
2557
|
+
/* @__PURE__ */ function() {
|
|
2558
|
+
return {
|
|
2559
|
+
write: function() {
|
|
2560
|
+
},
|
|
2561
|
+
read: function() {
|
|
2562
|
+
return null;
|
|
2563
|
+
},
|
|
2564
|
+
remove: function() {
|
|
2565
|
+
}
|
|
2566
|
+
};
|
|
2567
|
+
}()
|
|
2568
|
+
);
|
|
2569
|
+
function ls(e) {
|
|
2570
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
2571
|
+
}
|
|
2572
|
+
function fs(e, t) {
|
|
2573
|
+
return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
2574
|
+
}
|
|
2575
|
+
function ti(e, t) {
|
|
2576
|
+
return e && !ls(t) ? fs(e, t) : t;
|
|
2577
|
+
}
|
|
2578
|
+
const ps = ke.isStandardBrowserEnv ? (
|
|
2579
|
+
// Standard browser envs have full support of the APIs needed to test
|
|
2580
|
+
// whether the request URL is of the same origin as current location.
|
|
2581
|
+
function() {
|
|
2582
|
+
const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
|
|
2583
|
+
let o;
|
|
2584
|
+
function a(c) {
|
|
2585
|
+
let l = c;
|
|
2586
|
+
return t && (n.setAttribute("href", l), l = n.href), n.setAttribute("href", l), {
|
|
2587
|
+
href: n.href,
|
|
2588
|
+
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
|
|
2589
|
+
host: n.host,
|
|
2590
|
+
search: n.search ? n.search.replace(/^\?/, "") : "",
|
|
2591
|
+
hash: n.hash ? n.hash.replace(/^#/, "") : "",
|
|
2592
|
+
hostname: n.hostname,
|
|
2593
|
+
port: n.port,
|
|
2594
|
+
pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
|
|
2595
|
+
};
|
|
2596
|
+
}
|
|
2597
|
+
return o = a(window.location.href), function(l) {
|
|
2598
|
+
const d = w.isString(l) ? a(l) : l;
|
|
2599
|
+
return d.protocol === o.protocol && d.host === o.host;
|
|
2600
|
+
};
|
|
2601
|
+
}()
|
|
2602
|
+
) : (
|
|
2603
|
+
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
2604
|
+
/* @__PURE__ */ function() {
|
|
2605
|
+
return function() {
|
|
2606
|
+
return !0;
|
|
2607
|
+
};
|
|
2608
|
+
}()
|
|
2609
|
+
);
|
|
2610
|
+
function hs(e) {
|
|
2611
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
2612
|
+
return t && t[1] || "";
|
|
2613
|
+
}
|
|
2614
|
+
function ds(e, t) {
|
|
2615
|
+
e = e || 10;
|
|
2616
|
+
const n = new Array(e), o = new Array(e);
|
|
2617
|
+
let a = 0, c = 0, l;
|
|
2618
|
+
return t = t !== void 0 ? t : 1e3, function(g) {
|
|
2619
|
+
const y = Date.now(), f = o[c];
|
|
2620
|
+
l || (l = y), n[a] = g, o[a] = y;
|
|
2621
|
+
let b = c, A = 0;
|
|
2622
|
+
for (; b !== a; )
|
|
2623
|
+
A += n[b++], b = b % e;
|
|
2624
|
+
if (a = (a + 1) % e, a === c && (c = (c + 1) % e), y - l < t)
|
|
2625
|
+
return;
|
|
2626
|
+
const v = f && y - f;
|
|
2627
|
+
return v ? Math.round(A * 1e3 / v) : void 0;
|
|
2628
|
+
};
|
|
2629
|
+
}
|
|
2630
|
+
function pn(e, t) {
|
|
2631
|
+
let n = 0;
|
|
2632
|
+
const o = ds(50, 250);
|
|
2633
|
+
return (a) => {
|
|
2634
|
+
const c = a.loaded, l = a.lengthComputable ? a.total : void 0, d = c - n, g = o(d), y = c <= l;
|
|
2635
|
+
n = c;
|
|
2636
|
+
const f = {
|
|
2637
|
+
loaded: c,
|
|
2638
|
+
total: l,
|
|
2639
|
+
progress: l ? c / l : void 0,
|
|
2640
|
+
bytes: d,
|
|
2641
|
+
rate: g || void 0,
|
|
2642
|
+
estimated: g && l && y ? (l - c) / g : void 0,
|
|
2643
|
+
event: a
|
|
2644
|
+
};
|
|
2645
|
+
f[t ? "download" : "upload"] = !0, e(f);
|
|
2646
|
+
};
|
|
2647
|
+
}
|
|
2648
|
+
const ms = typeof XMLHttpRequest < "u", ys = ms && function(e) {
|
|
2649
|
+
return new Promise(function(n, o) {
|
|
2650
|
+
let a = e.data;
|
|
2651
|
+
const c = xe.from(e.headers).normalize(), l = e.responseType;
|
|
2652
|
+
let d;
|
|
2653
|
+
function g() {
|
|
2654
|
+
e.cancelToken && e.cancelToken.unsubscribe(d), e.signal && e.signal.removeEventListener("abort", d);
|
|
2655
|
+
}
|
|
2656
|
+
w.isFormData(a) && (ke.isStandardBrowserEnv || ke.isStandardBrowserWebWorkerEnv ? c.setContentType(!1) : c.setContentType("multipart/form-data;", !1));
|
|
2657
|
+
let y = new XMLHttpRequest();
|
|
2658
|
+
if (e.auth) {
|
|
2659
|
+
const v = e.auth.username || "", S = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
2660
|
+
c.set("Authorization", "Basic " + btoa(v + ":" + S));
|
|
2661
|
+
}
|
|
2662
|
+
const f = ti(e.baseURL, e.url);
|
|
2663
|
+
y.open(e.method.toUpperCase(), Xn(f, e.params, e.paramsSerializer), !0), y.timeout = e.timeout;
|
|
2664
|
+
function b() {
|
|
2665
|
+
if (!y)
|
|
2666
|
+
return;
|
|
2667
|
+
const v = xe.from(
|
|
2668
|
+
"getAllResponseHeaders" in y && y.getAllResponseHeaders()
|
|
2669
|
+
), T = {
|
|
2670
|
+
data: !l || l === "text" || l === "json" ? y.responseText : y.response,
|
|
2671
|
+
status: y.status,
|
|
2672
|
+
statusText: y.statusText,
|
|
2673
|
+
headers: v,
|
|
2674
|
+
config: e,
|
|
2675
|
+
request: y
|
|
2676
|
+
};
|
|
2677
|
+
cs(function(_) {
|
|
2678
|
+
n(_), g();
|
|
2679
|
+
}, function(_) {
|
|
2680
|
+
o(_), g();
|
|
2681
|
+
}, T), y = null;
|
|
2682
|
+
}
|
|
2683
|
+
if ("onloadend" in y ? y.onloadend = b : y.onreadystatechange = function() {
|
|
2684
|
+
!y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(b);
|
|
2685
|
+
}, y.onabort = function() {
|
|
2686
|
+
y && (o(new L("Request aborted", L.ECONNABORTED, e, y)), y = null);
|
|
2687
|
+
}, y.onerror = function() {
|
|
2688
|
+
o(new L("Network Error", L.ERR_NETWORK, e, y)), y = null;
|
|
2689
|
+
}, y.ontimeout = function() {
|
|
2690
|
+
let S = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
2691
|
+
const T = e.transitional || Zn;
|
|
2692
|
+
e.timeoutErrorMessage && (S = e.timeoutErrorMessage), o(new L(
|
|
2693
|
+
S,
|
|
2694
|
+
T.clarifyTimeoutError ? L.ETIMEDOUT : L.ECONNABORTED,
|
|
2695
|
+
e,
|
|
2696
|
+
y
|
|
2697
|
+
)), y = null;
|
|
2698
|
+
}, ke.isStandardBrowserEnv) {
|
|
2699
|
+
const v = (e.withCredentials || ps(f)) && e.xsrfCookieName && us.read(e.xsrfCookieName);
|
|
2700
|
+
v && c.set(e.xsrfHeaderName, v);
|
|
2701
|
+
}
|
|
2702
|
+
a === void 0 && c.setContentType(null), "setRequestHeader" in y && w.forEach(c.toJSON(), function(S, T) {
|
|
2703
|
+
y.setRequestHeader(T, S);
|
|
2704
|
+
}), w.isUndefined(e.withCredentials) || (y.withCredentials = !!e.withCredentials), l && l !== "json" && (y.responseType = e.responseType), typeof e.onDownloadProgress == "function" && y.addEventListener("progress", pn(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", pn(e.onUploadProgress)), (e.cancelToken || e.signal) && (d = (v) => {
|
|
2705
|
+
y && (o(!v || v.type ? new Dt(null, e, y) : v), y.abort(), y = null);
|
|
2706
|
+
}, e.cancelToken && e.cancelToken.subscribe(d), e.signal && (e.signal.aborted ? d() : e.signal.addEventListener("abort", d)));
|
|
2707
|
+
const A = hs(f);
|
|
2708
|
+
if (A && ke.protocols.indexOf(A) === -1) {
|
|
2709
|
+
o(new L("Unsupported protocol " + A + ":", L.ERR_BAD_REQUEST, e));
|
|
2710
|
+
return;
|
|
2711
|
+
}
|
|
2712
|
+
y.send(a || null);
|
|
2713
|
+
});
|
|
2714
|
+
}, Gt = {
|
|
2715
|
+
http: zo,
|
|
2716
|
+
xhr: ys
|
|
2717
|
+
};
|
|
2718
|
+
w.forEach(Gt, (e, t) => {
|
|
2719
|
+
if (e) {
|
|
2720
|
+
try {
|
|
2721
|
+
Object.defineProperty(e, "name", { value: t });
|
|
2722
|
+
} catch {
|
|
2723
|
+
}
|
|
2724
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
2725
|
+
}
|
|
2726
|
+
});
|
|
2727
|
+
const gs = {
|
|
2728
|
+
getAdapter: (e) => {
|
|
2729
|
+
e = w.isArray(e) ? e : [e];
|
|
2730
|
+
const { length: t } = e;
|
|
2731
|
+
let n, o;
|
|
2732
|
+
for (let a = 0; a < t && (n = e[a], !(o = w.isString(n) ? Gt[n.toLowerCase()] : n)); a++)
|
|
2733
|
+
;
|
|
2734
|
+
if (!o)
|
|
2735
|
+
throw o === !1 ? new L(
|
|
2736
|
+
`Adapter ${n} is not supported by the environment`,
|
|
2737
|
+
"ERR_NOT_SUPPORT"
|
|
2738
|
+
) : new Error(
|
|
2739
|
+
w.hasOwnProp(Gt, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`
|
|
2740
|
+
);
|
|
2741
|
+
if (!w.isFunction(o))
|
|
2742
|
+
throw new TypeError("adapter is not a function");
|
|
2743
|
+
return o;
|
|
2744
|
+
},
|
|
2745
|
+
adapters: Gt
|
|
2746
|
+
};
|
|
2747
|
+
function br(e) {
|
|
2748
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2749
|
+
throw new Dt(null, e);
|
|
2750
|
+
}
|
|
2751
|
+
function hn(e) {
|
|
2752
|
+
return br(e), e.headers = xe.from(e.headers), e.data = Er.call(
|
|
2753
|
+
e,
|
|
2754
|
+
e.transformRequest
|
|
2755
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), gs.getAdapter(e.adapter || St.adapter)(e).then(function(o) {
|
|
2756
|
+
return br(e), o.data = Er.call(
|
|
2757
|
+
e,
|
|
2758
|
+
e.transformResponse,
|
|
2759
|
+
o
|
|
2760
|
+
), o.headers = xe.from(o.headers), o;
|
|
2761
|
+
}, function(o) {
|
|
2762
|
+
return ei(o) || (br(e), o && o.response && (o.response.data = Er.call(
|
|
2763
|
+
e,
|
|
2764
|
+
e.transformResponse,
|
|
2765
|
+
o.response
|
|
2766
|
+
), o.response.headers = xe.from(o.response.headers))), Promise.reject(o);
|
|
2767
|
+
});
|
|
2768
|
+
}
|
|
2769
|
+
const dn = (e) => e instanceof xe ? e.toJSON() : e;
|
|
2770
|
+
function mt(e, t) {
|
|
2771
|
+
t = t || {};
|
|
2772
|
+
const n = {};
|
|
2773
|
+
function o(y, f, b) {
|
|
2774
|
+
return w.isPlainObject(y) && w.isPlainObject(f) ? w.merge.call({ caseless: b }, y, f) : w.isPlainObject(f) ? w.merge({}, f) : w.isArray(f) ? f.slice() : f;
|
|
2775
|
+
}
|
|
2776
|
+
function a(y, f, b) {
|
|
2777
|
+
if (w.isUndefined(f)) {
|
|
2778
|
+
if (!w.isUndefined(y))
|
|
2779
|
+
return o(void 0, y, b);
|
|
2780
|
+
} else return o(y, f, b);
|
|
2781
|
+
}
|
|
2782
|
+
function c(y, f) {
|
|
2783
|
+
if (!w.isUndefined(f))
|
|
2784
|
+
return o(void 0, f);
|
|
2785
|
+
}
|
|
2786
|
+
function l(y, f) {
|
|
2787
|
+
if (w.isUndefined(f)) {
|
|
2788
|
+
if (!w.isUndefined(y))
|
|
2789
|
+
return o(void 0, y);
|
|
2790
|
+
} else return o(void 0, f);
|
|
2791
|
+
}
|
|
2792
|
+
function d(y, f, b) {
|
|
2793
|
+
if (b in t)
|
|
2794
|
+
return o(y, f);
|
|
2795
|
+
if (b in e)
|
|
2796
|
+
return o(void 0, y);
|
|
2797
|
+
}
|
|
2798
|
+
const g = {
|
|
2799
|
+
url: c,
|
|
2800
|
+
method: c,
|
|
2801
|
+
data: c,
|
|
2802
|
+
baseURL: l,
|
|
2803
|
+
transformRequest: l,
|
|
2804
|
+
transformResponse: l,
|
|
2805
|
+
paramsSerializer: l,
|
|
2806
|
+
timeout: l,
|
|
2807
|
+
timeoutMessage: l,
|
|
2808
|
+
withCredentials: l,
|
|
2809
|
+
adapter: l,
|
|
2810
|
+
responseType: l,
|
|
2811
|
+
xsrfCookieName: l,
|
|
2812
|
+
xsrfHeaderName: l,
|
|
2813
|
+
onUploadProgress: l,
|
|
2814
|
+
onDownloadProgress: l,
|
|
2815
|
+
decompress: l,
|
|
2816
|
+
maxContentLength: l,
|
|
2817
|
+
maxBodyLength: l,
|
|
2818
|
+
beforeRedirect: l,
|
|
2819
|
+
transport: l,
|
|
2820
|
+
httpAgent: l,
|
|
2821
|
+
httpsAgent: l,
|
|
2822
|
+
cancelToken: l,
|
|
2823
|
+
socketPath: l,
|
|
2824
|
+
responseEncoding: l,
|
|
2825
|
+
validateStatus: d,
|
|
2826
|
+
headers: (y, f) => a(dn(y), dn(f), !0)
|
|
2827
|
+
};
|
|
2828
|
+
return w.forEach(Object.keys(Object.assign({}, e, t)), function(f) {
|
|
2829
|
+
const b = g[f] || a, A = b(e[f], t[f], f);
|
|
2830
|
+
w.isUndefined(A) && b !== d || (n[f] = A);
|
|
2831
|
+
}), n;
|
|
2832
|
+
}
|
|
2833
|
+
const ri = "1.4.0", qr = {};
|
|
2834
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
2835
|
+
qr[e] = function(o) {
|
|
2836
|
+
return typeof o === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
2837
|
+
};
|
|
2838
|
+
});
|
|
2839
|
+
const mn = {};
|
|
2840
|
+
qr.transitional = function(t, n, o) {
|
|
2841
|
+
function a(c, l) {
|
|
2842
|
+
return "[Axios v" + ri + "] Transitional option '" + c + "'" + l + (o ? ". " + o : "");
|
|
2843
|
+
}
|
|
2844
|
+
return (c, l, d) => {
|
|
2845
|
+
if (t === !1)
|
|
2846
|
+
throw new L(
|
|
2847
|
+
a(l, " has been removed" + (n ? " in " + n : "")),
|
|
2848
|
+
L.ERR_DEPRECATED
|
|
2849
|
+
);
|
|
2850
|
+
return n && !mn[l] && (mn[l] = !0, console.warn(
|
|
2851
|
+
a(
|
|
2852
|
+
l,
|
|
2853
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
2854
|
+
)
|
|
2855
|
+
)), t ? t(c, l, d) : !0;
|
|
2856
|
+
};
|
|
2857
|
+
};
|
|
2858
|
+
function ws(e, t, n) {
|
|
2859
|
+
if (typeof e != "object")
|
|
2860
|
+
throw new L("options must be an object", L.ERR_BAD_OPTION_VALUE);
|
|
2861
|
+
const o = Object.keys(e);
|
|
2862
|
+
let a = o.length;
|
|
2863
|
+
for (; a-- > 0; ) {
|
|
2864
|
+
const c = o[a], l = t[c];
|
|
2865
|
+
if (l) {
|
|
2866
|
+
const d = e[c], g = d === void 0 || l(d, c, e);
|
|
2867
|
+
if (g !== !0)
|
|
2868
|
+
throw new L("option " + c + " must be " + g, L.ERR_BAD_OPTION_VALUE);
|
|
2869
|
+
continue;
|
|
2870
|
+
}
|
|
2871
|
+
if (n !== !0)
|
|
2872
|
+
throw new L("Unknown option " + c, L.ERR_BAD_OPTION);
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
const Ir = {
|
|
2876
|
+
assertOptions: ws,
|
|
2877
|
+
validators: qr
|
|
2878
|
+
}, qe = Ir.validators;
|
|
2879
|
+
let Qe = class {
|
|
2880
|
+
constructor(t) {
|
|
2881
|
+
this.defaults = t, this.interceptors = {
|
|
2882
|
+
request: new ln(),
|
|
2883
|
+
response: new ln()
|
|
2884
|
+
};
|
|
2885
|
+
}
|
|
2886
|
+
/**
|
|
2887
|
+
* Dispatch a request
|
|
2888
|
+
*
|
|
2889
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
2890
|
+
* @param {?Object} config
|
|
2891
|
+
*
|
|
2892
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
2893
|
+
*/
|
|
2894
|
+
request(t, n) {
|
|
2895
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = mt(this.defaults, n);
|
|
2896
|
+
const { transitional: o, paramsSerializer: a, headers: c } = n;
|
|
2897
|
+
o !== void 0 && Ir.assertOptions(o, {
|
|
2898
|
+
silentJSONParsing: qe.transitional(qe.boolean),
|
|
2899
|
+
forcedJSONParsing: qe.transitional(qe.boolean),
|
|
2900
|
+
clarifyTimeoutError: qe.transitional(qe.boolean)
|
|
2901
|
+
}, !1), a != null && (w.isFunction(a) ? n.paramsSerializer = {
|
|
2902
|
+
serialize: a
|
|
2903
|
+
} : Ir.assertOptions(a, {
|
|
2904
|
+
encode: qe.function,
|
|
2905
|
+
serialize: qe.function
|
|
2906
|
+
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
2907
|
+
let l;
|
|
2908
|
+
l = c && w.merge(
|
|
2909
|
+
c.common,
|
|
2910
|
+
c[n.method]
|
|
2911
|
+
), l && w.forEach(
|
|
2912
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
2913
|
+
(S) => {
|
|
2914
|
+
delete c[S];
|
|
2915
|
+
}
|
|
2916
|
+
), n.headers = xe.concat(l, c);
|
|
2917
|
+
const d = [];
|
|
2918
|
+
let g = !0;
|
|
2919
|
+
this.interceptors.request.forEach(function(T) {
|
|
2920
|
+
typeof T.runWhen == "function" && T.runWhen(n) === !1 || (g = g && T.synchronous, d.unshift(T.fulfilled, T.rejected));
|
|
2921
|
+
});
|
|
2922
|
+
const y = [];
|
|
2923
|
+
this.interceptors.response.forEach(function(T) {
|
|
2924
|
+
y.push(T.fulfilled, T.rejected);
|
|
2925
|
+
});
|
|
2926
|
+
let f, b = 0, A;
|
|
2927
|
+
if (!g) {
|
|
2928
|
+
const S = [hn.bind(this), void 0];
|
|
2929
|
+
for (S.unshift.apply(S, d), S.push.apply(S, y), A = S.length, f = Promise.resolve(n); b < A; )
|
|
2930
|
+
f = f.then(S[b++], S[b++]);
|
|
2931
|
+
return f;
|
|
2932
|
+
}
|
|
2933
|
+
A = d.length;
|
|
2934
|
+
let v = n;
|
|
2935
|
+
for (b = 0; b < A; ) {
|
|
2936
|
+
const S = d[b++], T = d[b++];
|
|
2937
|
+
try {
|
|
2938
|
+
v = S(v);
|
|
2939
|
+
} catch (H) {
|
|
2940
|
+
T.call(this, H);
|
|
2941
|
+
break;
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2944
|
+
try {
|
|
2945
|
+
f = hn.call(this, v);
|
|
2946
|
+
} catch (S) {
|
|
2947
|
+
return Promise.reject(S);
|
|
2948
|
+
}
|
|
2949
|
+
for (b = 0, A = y.length; b < A; )
|
|
2950
|
+
f = f.then(y[b++], y[b++]);
|
|
2951
|
+
return f;
|
|
2952
|
+
}
|
|
2953
|
+
getUri(t) {
|
|
2954
|
+
t = mt(this.defaults, t);
|
|
2955
|
+
const n = ti(t.baseURL, t.url);
|
|
2956
|
+
return Xn(n, t.params, t.paramsSerializer);
|
|
2957
|
+
}
|
|
2958
|
+
};
|
|
2959
|
+
w.forEach(["delete", "get", "head", "options"], function(t) {
|
|
2960
|
+
Qe.prototype[t] = function(n, o) {
|
|
2961
|
+
return this.request(mt(o || {}, {
|
|
2962
|
+
method: t,
|
|
2963
|
+
url: n,
|
|
2964
|
+
data: (o || {}).data
|
|
2965
|
+
}));
|
|
2966
|
+
};
|
|
2967
|
+
});
|
|
2968
|
+
w.forEach(["post", "put", "patch"], function(t) {
|
|
2969
|
+
function n(o) {
|
|
2970
|
+
return function(c, l, d) {
|
|
2971
|
+
return this.request(mt(d || {}, {
|
|
2972
|
+
method: t,
|
|
2973
|
+
headers: o ? {
|
|
2974
|
+
"Content-Type": "multipart/form-data"
|
|
2975
|
+
} : {},
|
|
2976
|
+
url: c,
|
|
2977
|
+
data: l
|
|
2978
|
+
}));
|
|
2979
|
+
};
|
|
2980
|
+
}
|
|
2981
|
+
Qe.prototype[t] = n(), Qe.prototype[t + "Form"] = n(!0);
|
|
2982
|
+
});
|
|
2983
|
+
let Es = class ni {
|
|
2984
|
+
constructor(t) {
|
|
2985
|
+
if (typeof t != "function")
|
|
2986
|
+
throw new TypeError("executor must be a function.");
|
|
2987
|
+
let n;
|
|
2988
|
+
this.promise = new Promise(function(c) {
|
|
2989
|
+
n = c;
|
|
2990
|
+
});
|
|
2991
|
+
const o = this;
|
|
2992
|
+
this.promise.then((a) => {
|
|
2993
|
+
if (!o._listeners) return;
|
|
2994
|
+
let c = o._listeners.length;
|
|
2995
|
+
for (; c-- > 0; )
|
|
2996
|
+
o._listeners[c](a);
|
|
2997
|
+
o._listeners = null;
|
|
2998
|
+
}), this.promise.then = (a) => {
|
|
2999
|
+
let c;
|
|
3000
|
+
const l = new Promise((d) => {
|
|
3001
|
+
o.subscribe(d), c = d;
|
|
3002
|
+
}).then(a);
|
|
3003
|
+
return l.cancel = function() {
|
|
3004
|
+
o.unsubscribe(c);
|
|
3005
|
+
}, l;
|
|
3006
|
+
}, t(function(c, l, d) {
|
|
3007
|
+
o.reason || (o.reason = new Dt(c, l, d), n(o.reason));
|
|
3008
|
+
});
|
|
3009
|
+
}
|
|
3010
|
+
/**
|
|
3011
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
3012
|
+
*/
|
|
3013
|
+
throwIfRequested() {
|
|
3014
|
+
if (this.reason)
|
|
3015
|
+
throw this.reason;
|
|
3016
|
+
}
|
|
3017
|
+
/**
|
|
3018
|
+
* Subscribe to the cancel signal
|
|
3019
|
+
*/
|
|
3020
|
+
subscribe(t) {
|
|
3021
|
+
if (this.reason) {
|
|
3022
|
+
t(this.reason);
|
|
3023
|
+
return;
|
|
3024
|
+
}
|
|
3025
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
3026
|
+
}
|
|
3027
|
+
/**
|
|
3028
|
+
* Unsubscribe from the cancel signal
|
|
3029
|
+
*/
|
|
3030
|
+
unsubscribe(t) {
|
|
3031
|
+
if (!this._listeners)
|
|
3032
|
+
return;
|
|
3033
|
+
const n = this._listeners.indexOf(t);
|
|
3034
|
+
n !== -1 && this._listeners.splice(n, 1);
|
|
3035
|
+
}
|
|
3036
|
+
/**
|
|
3037
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
3038
|
+
* cancels the `CancelToken`.
|
|
3039
|
+
*/
|
|
3040
|
+
static source() {
|
|
3041
|
+
let t;
|
|
3042
|
+
return {
|
|
3043
|
+
token: new ni(function(a) {
|
|
3044
|
+
t = a;
|
|
3045
|
+
}),
|
|
3046
|
+
cancel: t
|
|
3047
|
+
};
|
|
3048
|
+
}
|
|
3049
|
+
};
|
|
3050
|
+
function bs(e) {
|
|
3051
|
+
return function(n) {
|
|
3052
|
+
return e.apply(null, n);
|
|
3053
|
+
};
|
|
3054
|
+
}
|
|
3055
|
+
function xs(e) {
|
|
3056
|
+
return w.isObject(e) && e.isAxiosError === !0;
|
|
3057
|
+
}
|
|
3058
|
+
const Pr = {
|
|
3059
|
+
Continue: 100,
|
|
3060
|
+
SwitchingProtocols: 101,
|
|
3061
|
+
Processing: 102,
|
|
3062
|
+
EarlyHints: 103,
|
|
3063
|
+
Ok: 200,
|
|
3064
|
+
Created: 201,
|
|
3065
|
+
Accepted: 202,
|
|
3066
|
+
NonAuthoritativeInformation: 203,
|
|
3067
|
+
NoContent: 204,
|
|
3068
|
+
ResetContent: 205,
|
|
3069
|
+
PartialContent: 206,
|
|
3070
|
+
MultiStatus: 207,
|
|
3071
|
+
AlreadyReported: 208,
|
|
3072
|
+
ImUsed: 226,
|
|
3073
|
+
MultipleChoices: 300,
|
|
3074
|
+
MovedPermanently: 301,
|
|
3075
|
+
Found: 302,
|
|
3076
|
+
SeeOther: 303,
|
|
3077
|
+
NotModified: 304,
|
|
3078
|
+
UseProxy: 305,
|
|
3079
|
+
Unused: 306,
|
|
3080
|
+
TemporaryRedirect: 307,
|
|
3081
|
+
PermanentRedirect: 308,
|
|
3082
|
+
BadRequest: 400,
|
|
3083
|
+
Unauthorized: 401,
|
|
3084
|
+
PaymentRequired: 402,
|
|
3085
|
+
Forbidden: 403,
|
|
3086
|
+
NotFound: 404,
|
|
3087
|
+
MethodNotAllowed: 405,
|
|
3088
|
+
NotAcceptable: 406,
|
|
3089
|
+
ProxyAuthenticationRequired: 407,
|
|
3090
|
+
RequestTimeout: 408,
|
|
3091
|
+
Conflict: 409,
|
|
3092
|
+
Gone: 410,
|
|
3093
|
+
LengthRequired: 411,
|
|
3094
|
+
PreconditionFailed: 412,
|
|
3095
|
+
PayloadTooLarge: 413,
|
|
3096
|
+
UriTooLong: 414,
|
|
3097
|
+
UnsupportedMediaType: 415,
|
|
3098
|
+
RangeNotSatisfiable: 416,
|
|
3099
|
+
ExpectationFailed: 417,
|
|
3100
|
+
ImATeapot: 418,
|
|
3101
|
+
MisdirectedRequest: 421,
|
|
3102
|
+
UnprocessableEntity: 422,
|
|
3103
|
+
Locked: 423,
|
|
3104
|
+
FailedDependency: 424,
|
|
3105
|
+
TooEarly: 425,
|
|
3106
|
+
UpgradeRequired: 426,
|
|
3107
|
+
PreconditionRequired: 428,
|
|
3108
|
+
TooManyRequests: 429,
|
|
3109
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
3110
|
+
UnavailableForLegalReasons: 451,
|
|
3111
|
+
InternalServerError: 500,
|
|
3112
|
+
NotImplemented: 501,
|
|
3113
|
+
BadGateway: 502,
|
|
3114
|
+
ServiceUnavailable: 503,
|
|
3115
|
+
GatewayTimeout: 504,
|
|
3116
|
+
HttpVersionNotSupported: 505,
|
|
3117
|
+
VariantAlsoNegotiates: 506,
|
|
3118
|
+
InsufficientStorage: 507,
|
|
3119
|
+
LoopDetected: 508,
|
|
3120
|
+
NotExtended: 510,
|
|
3121
|
+
NetworkAuthenticationRequired: 511
|
|
3122
|
+
};
|
|
3123
|
+
Object.entries(Pr).forEach(([e, t]) => {
|
|
3124
|
+
Pr[t] = e;
|
|
3125
|
+
});
|
|
3126
|
+
function ii(e) {
|
|
3127
|
+
const t = new Qe(e), n = Un(Qe.prototype.request, t);
|
|
3128
|
+
return w.extend(n, Qe.prototype, t, { allOwnKeys: !0 }), w.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(a) {
|
|
3129
|
+
return ii(mt(e, a));
|
|
3130
|
+
}, n;
|
|
3131
|
+
}
|
|
3132
|
+
const re = ii(St);
|
|
3133
|
+
re.Axios = Qe;
|
|
3134
|
+
re.CanceledError = Dt;
|
|
3135
|
+
re.CancelToken = Es;
|
|
3136
|
+
re.isCancel = ei;
|
|
3137
|
+
re.VERSION = ri;
|
|
3138
|
+
re.toFormData = sr;
|
|
3139
|
+
re.AxiosError = L;
|
|
3140
|
+
re.Cancel = re.CanceledError;
|
|
3141
|
+
re.all = function(t) {
|
|
3142
|
+
return Promise.all(t);
|
|
3143
|
+
};
|
|
3144
|
+
re.spread = bs;
|
|
3145
|
+
re.isAxiosError = xs;
|
|
3146
|
+
re.mergeConfig = mt;
|
|
3147
|
+
re.AxiosHeaders = xe;
|
|
3148
|
+
re.formToJSON = (e) => Qn(w.isHTMLForm(e) ? new FormData(e) : e);
|
|
3149
|
+
re.HttpStatusCode = Pr;
|
|
3150
|
+
re.default = re;
|
|
3151
|
+
const {
|
|
3152
|
+
Axios: za,
|
|
3153
|
+
AxiosError: Ha,
|
|
3154
|
+
CanceledError: qa,
|
|
3155
|
+
isCancel: Va,
|
|
3156
|
+
CancelToken: Wa,
|
|
3157
|
+
VERSION: Ya,
|
|
3158
|
+
all: Ga,
|
|
3159
|
+
Cancel: Ja,
|
|
3160
|
+
isAxiosError: Ka,
|
|
3161
|
+
spread: Xa,
|
|
3162
|
+
toFormData: Za,
|
|
3163
|
+
AxiosHeaders: Qa,
|
|
3164
|
+
HttpStatusCode: ec,
|
|
3165
|
+
formToJSON: tc,
|
|
3166
|
+
mergeConfig: rc
|
|
3167
|
+
} = re, Ss = async ({ uri: e }) => re.get(e), vs = ({
|
|
3168
|
+
uri: e,
|
|
3169
|
+
queryKey: t,
|
|
3170
|
+
refetchInterval: n,
|
|
3171
|
+
isEnabled: o
|
|
3172
|
+
}) => zi({
|
|
3173
|
+
queryKey: t,
|
|
3174
|
+
queryFn: async () => (await Ss({
|
|
3175
|
+
uri: e
|
|
3176
|
+
})).data,
|
|
3177
|
+
refetchInterval: n !== void 0 ? n : 5e3,
|
|
3178
|
+
enabled: o
|
|
3179
|
+
}), Jt = ({
|
|
3180
|
+
template: e,
|
|
3181
|
+
replaceValues: t
|
|
3182
|
+
}) => e.replaceAll(/{(.*?)}/g, (n, o) => t[o] || ""), Rs = ({
|
|
3183
|
+
rawLinks: e,
|
|
3184
|
+
replaceValues: t
|
|
3185
|
+
}) => e.map(({ key: n, label: o, link: a }) => ({
|
|
3186
|
+
key: n,
|
|
3187
|
+
title: a ? /* @__PURE__ */ Ze.jsx(
|
|
3188
|
+
qi,
|
|
3189
|
+
{
|
|
3190
|
+
to: Jt({
|
|
3191
|
+
template: a,
|
|
3192
|
+
replaceValues: t
|
|
3193
|
+
}),
|
|
3194
|
+
children: Jt({
|
|
3195
|
+
template: o,
|
|
3196
|
+
replaceValues: t
|
|
3197
|
+
})
|
|
3198
|
+
}
|
|
3199
|
+
) : Jt({
|
|
3200
|
+
template: o,
|
|
3201
|
+
replaceValues: t
|
|
3202
|
+
})
|
|
3203
|
+
})), As = ({
|
|
3204
|
+
data: e,
|
|
3205
|
+
replaceValues: t,
|
|
3206
|
+
pathname: n
|
|
3207
|
+
}) => e.map(({ pathToMatch: a, breadcrumbItems: c }) => ({
|
|
3208
|
+
pathToMatch: Jt({
|
|
3209
|
+
template: a,
|
|
3210
|
+
replaceValues: t
|
|
3211
|
+
}),
|
|
3212
|
+
breadcrumbItems: Rs({
|
|
3213
|
+
rawLinks: c,
|
|
3214
|
+
replaceValues: t
|
|
3215
|
+
})
|
|
3216
|
+
})).find(({ pathToMatch: a }) => Hi(a, n));
|
|
3217
|
+
var fe = function() {
|
|
3218
|
+
return fe = Object.assign || function(t) {
|
|
3219
|
+
for (var n, o = 1, a = arguments.length; o < a; o++) {
|
|
3220
|
+
n = arguments[o];
|
|
3221
|
+
for (var c in n) Object.prototype.hasOwnProperty.call(n, c) && (t[c] = n[c]);
|
|
3222
|
+
}
|
|
3223
|
+
return t;
|
|
3224
|
+
}, fe.apply(this, arguments);
|
|
3225
|
+
};
|
|
3226
|
+
function yt(e, t, n) {
|
|
3227
|
+
if (n || arguments.length === 2) for (var o = 0, a = t.length, c; o < a; o++)
|
|
3228
|
+
(c || !(o in t)) && (c || (c = Array.prototype.slice.call(t, 0, o)), c[o] = t[o]);
|
|
3229
|
+
return e.concat(c || Array.prototype.slice.call(t));
|
|
3230
|
+
}
|
|
3231
|
+
function Ts(e) {
|
|
3232
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
3233
|
+
return function(n) {
|
|
3234
|
+
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
3235
|
+
};
|
|
3236
|
+
}
|
|
3237
|
+
var Cs = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Os = /* @__PURE__ */ Ts(
|
|
3238
|
+
function(e) {
|
|
3239
|
+
return Cs.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
3240
|
+
}
|
|
3241
|
+
/* Z+1 */
|
|
3242
|
+
), K = "-ms-", Pt = "-moz-", $ = "-webkit-", oi = "comm", ar = "rule", Vr = "decl", Bs = "@import", _s = "@namespace", si = "@keyframes", Is = "@layer", ai = Math.abs, Wr = String.fromCharCode, Fr = Object.assign;
|
|
3243
|
+
function Ps(e, t) {
|
|
3244
|
+
return ne(e, 0) ^ 45 ? (((t << 2 ^ ne(e, 0)) << 2 ^ ne(e, 1)) << 2 ^ ne(e, 2)) << 2 ^ ne(e, 3) : 0;
|
|
3245
|
+
}
|
|
3246
|
+
function ci(e) {
|
|
3247
|
+
return e.trim();
|
|
3248
|
+
}
|
|
3249
|
+
function Le(e, t) {
|
|
3250
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
3251
|
+
}
|
|
3252
|
+
function I(e, t, n) {
|
|
3253
|
+
return e.replace(t, n);
|
|
3254
|
+
}
|
|
3255
|
+
function Kt(e, t, n) {
|
|
3256
|
+
return e.indexOf(t, n);
|
|
3257
|
+
}
|
|
3258
|
+
function ne(e, t) {
|
|
3259
|
+
return e.charCodeAt(t) | 0;
|
|
3260
|
+
}
|
|
3261
|
+
function rt(e, t, n) {
|
|
3262
|
+
return e.slice(t, n);
|
|
3263
|
+
}
|
|
3264
|
+
function Ae(e) {
|
|
3265
|
+
return e.length;
|
|
3266
|
+
}
|
|
3267
|
+
function ui(e) {
|
|
3268
|
+
return e.length;
|
|
3269
|
+
}
|
|
3270
|
+
function It(e, t) {
|
|
3271
|
+
return t.push(e), e;
|
|
3272
|
+
}
|
|
3273
|
+
function Fs(e, t) {
|
|
3274
|
+
return e.map(t).join("");
|
|
3275
|
+
}
|
|
3276
|
+
function yn(e, t) {
|
|
3277
|
+
return e.filter(function(n) {
|
|
3278
|
+
return !Le(n, t);
|
|
3279
|
+
});
|
|
3280
|
+
}
|
|
3281
|
+
var cr = 1, gt = 1, li = 0, Se = 0, te = 0, vt = "";
|
|
3282
|
+
function ur(e, t, n, o, a, c, l, d) {
|
|
3283
|
+
return { value: e, root: t, parent: n, type: o, props: a, children: c, line: cr, column: gt, length: l, return: "", siblings: d };
|
|
3284
|
+
}
|
|
3285
|
+
function Ve(e, t) {
|
|
3286
|
+
return Fr(ur("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
3287
|
+
}
|
|
3288
|
+
function ht(e) {
|
|
3289
|
+
for (; e.root; )
|
|
3290
|
+
e = Ve(e.root, { children: [e] });
|
|
3291
|
+
It(e, e.siblings);
|
|
3292
|
+
}
|
|
3293
|
+
function ks() {
|
|
3294
|
+
return te;
|
|
3295
|
+
}
|
|
3296
|
+
function Ns() {
|
|
3297
|
+
return te = Se > 0 ? ne(vt, --Se) : 0, gt--, te === 10 && (gt = 1, cr--), te;
|
|
3298
|
+
}
|
|
3299
|
+
function Te() {
|
|
3300
|
+
return te = Se < li ? ne(vt, Se++) : 0, gt++, te === 10 && (gt = 1, cr++), te;
|
|
3301
|
+
}
|
|
3302
|
+
function We() {
|
|
3303
|
+
return ne(vt, Se);
|
|
3304
|
+
}
|
|
3305
|
+
function Xt() {
|
|
3306
|
+
return Se;
|
|
3307
|
+
}
|
|
3308
|
+
function lr(e, t) {
|
|
3309
|
+
return rt(vt, e, t);
|
|
3310
|
+
}
|
|
3311
|
+
function kt(e) {
|
|
3312
|
+
switch (e) {
|
|
3313
|
+
case 0:
|
|
3314
|
+
case 9:
|
|
3315
|
+
case 10:
|
|
3316
|
+
case 13:
|
|
3317
|
+
case 32:
|
|
3318
|
+
return 5;
|
|
3319
|
+
case 33:
|
|
3320
|
+
case 43:
|
|
3321
|
+
case 44:
|
|
3322
|
+
case 47:
|
|
3323
|
+
case 62:
|
|
3324
|
+
case 64:
|
|
3325
|
+
case 126:
|
|
3326
|
+
case 59:
|
|
3327
|
+
case 123:
|
|
3328
|
+
case 125:
|
|
3329
|
+
return 4;
|
|
3330
|
+
case 58:
|
|
3331
|
+
return 3;
|
|
3332
|
+
case 34:
|
|
3333
|
+
case 39:
|
|
3334
|
+
case 40:
|
|
3335
|
+
case 91:
|
|
3336
|
+
return 2;
|
|
3337
|
+
case 41:
|
|
3338
|
+
case 93:
|
|
3339
|
+
return 1;
|
|
3340
|
+
}
|
|
3341
|
+
return 0;
|
|
3342
|
+
}
|
|
3343
|
+
function Ds(e) {
|
|
3344
|
+
return cr = gt = 1, li = Ae(vt = e), Se = 0, [];
|
|
3345
|
+
}
|
|
3346
|
+
function Us(e) {
|
|
3347
|
+
return vt = "", e;
|
|
3348
|
+
}
|
|
3349
|
+
function xr(e) {
|
|
3350
|
+
return ci(lr(Se - 1, kr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
3351
|
+
}
|
|
3352
|
+
function Ls(e) {
|
|
3353
|
+
for (; (te = We()) && te < 33; )
|
|
3354
|
+
Te();
|
|
3355
|
+
return kt(e) > 2 || kt(te) > 3 ? "" : " ";
|
|
3356
|
+
}
|
|
3357
|
+
function js(e, t) {
|
|
3358
|
+
for (; --t && Te() && !(te < 48 || te > 102 || te > 57 && te < 65 || te > 70 && te < 97); )
|
|
3359
|
+
;
|
|
3360
|
+
return lr(e, Xt() + (t < 6 && We() == 32 && Te() == 32));
|
|
3361
|
+
}
|
|
3362
|
+
function kr(e) {
|
|
3363
|
+
for (; Te(); )
|
|
3364
|
+
switch (te) {
|
|
3365
|
+
case e:
|
|
3366
|
+
return Se;
|
|
3367
|
+
case 34:
|
|
3368
|
+
case 39:
|
|
3369
|
+
e !== 34 && e !== 39 && kr(te);
|
|
3370
|
+
break;
|
|
3371
|
+
case 40:
|
|
3372
|
+
e === 41 && kr(e);
|
|
3373
|
+
break;
|
|
3374
|
+
case 92:
|
|
3375
|
+
Te();
|
|
3376
|
+
break;
|
|
3377
|
+
}
|
|
3378
|
+
return Se;
|
|
3379
|
+
}
|
|
3380
|
+
function Ms(e, t) {
|
|
3381
|
+
for (; Te() && e + te !== 57; )
|
|
3382
|
+
if (e + te === 84 && We() === 47)
|
|
3383
|
+
break;
|
|
3384
|
+
return "/*" + lr(t, Se - 1) + "*" + Wr(e === 47 ? e : Te());
|
|
3385
|
+
}
|
|
3386
|
+
function $s(e) {
|
|
3387
|
+
for (; !kt(We()); )
|
|
3388
|
+
Te();
|
|
3389
|
+
return lr(e, Se);
|
|
3390
|
+
}
|
|
3391
|
+
function zs(e) {
|
|
3392
|
+
return Us(Zt("", null, null, null, [""], e = Ds(e), 0, [0], e));
|
|
3393
|
+
}
|
|
3394
|
+
function Zt(e, t, n, o, a, c, l, d, g) {
|
|
3395
|
+
for (var y = 0, f = 0, b = l, A = 0, v = 0, S = 0, T = 1, H = 1, _ = 1, C = 0, D = "", j = a, Y = c, F = o, O = D; H; )
|
|
3396
|
+
switch (S = C, C = Te()) {
|
|
3397
|
+
case 40:
|
|
3398
|
+
if (S != 108 && ne(O, b - 1) == 58) {
|
|
3399
|
+
Kt(O += I(xr(C), "&", "&\f"), "&\f", ai(y ? d[y - 1] : 0)) != -1 && (_ = -1);
|
|
3400
|
+
break;
|
|
3401
|
+
}
|
|
3402
|
+
case 34:
|
|
3403
|
+
case 39:
|
|
3404
|
+
case 91:
|
|
3405
|
+
O += xr(C);
|
|
3406
|
+
break;
|
|
3407
|
+
case 9:
|
|
3408
|
+
case 10:
|
|
3409
|
+
case 13:
|
|
3410
|
+
case 32:
|
|
3411
|
+
O += Ls(S);
|
|
3412
|
+
break;
|
|
3413
|
+
case 92:
|
|
3414
|
+
O += js(Xt() - 1, 7);
|
|
3415
|
+
continue;
|
|
3416
|
+
case 47:
|
|
3417
|
+
switch (We()) {
|
|
3418
|
+
case 42:
|
|
3419
|
+
case 47:
|
|
3420
|
+
It(Hs(Ms(Te(), Xt()), t, n, g), g), (kt(S || 1) == 5 || kt(We() || 1) == 5) && Ae(O) && rt(O, -1, void 0) !== " " && (O += " ");
|
|
3421
|
+
break;
|
|
3422
|
+
default:
|
|
3423
|
+
O += "/";
|
|
3424
|
+
}
|
|
3425
|
+
break;
|
|
3426
|
+
case 123 * T:
|
|
3427
|
+
d[y++] = Ae(O) * _;
|
|
3428
|
+
case 125 * T:
|
|
3429
|
+
case 59:
|
|
3430
|
+
case 0:
|
|
3431
|
+
switch (C) {
|
|
3432
|
+
case 0:
|
|
3433
|
+
case 125:
|
|
3434
|
+
H = 0;
|
|
3435
|
+
case 59 + f:
|
|
3436
|
+
_ == -1 && (O = I(O, /\f/g, "")), v > 0 && (Ae(O) - b || T === 0 && S === 47) && It(v > 32 ? wn(O + ";", o, n, b - 1, g) : wn(I(O, " ", "") + ";", o, n, b - 2, g), g);
|
|
3437
|
+
break;
|
|
3438
|
+
case 59:
|
|
3439
|
+
O += ";";
|
|
3440
|
+
default:
|
|
3441
|
+
if (It(F = gn(O, t, n, y, f, a, d, D, j = [], Y = [], b, c), c), C === 123)
|
|
3442
|
+
if (f === 0)
|
|
3443
|
+
Zt(O, t, F, F, j, c, b, d, Y);
|
|
3444
|
+
else {
|
|
3445
|
+
switch (A) {
|
|
3446
|
+
case 99:
|
|
3447
|
+
if (ne(O, 3) === 110) break;
|
|
3448
|
+
case 108:
|
|
3449
|
+
if (ne(O, 2) === 97) break;
|
|
3450
|
+
default:
|
|
3451
|
+
f = 0;
|
|
3452
|
+
case 100:
|
|
3453
|
+
case 109:
|
|
3454
|
+
case 115:
|
|
3455
|
+
}
|
|
3456
|
+
f ? Zt(e, F, F, o && It(gn(e, F, F, 0, 0, a, d, D, a, j = [], b, Y), Y), a, Y, b, d, o ? j : Y) : Zt(O, F, F, F, [""], Y, 0, d, Y);
|
|
3457
|
+
}
|
|
3458
|
+
}
|
|
3459
|
+
y = f = v = 0, T = _ = 1, D = O = "", b = l;
|
|
3460
|
+
break;
|
|
3461
|
+
case 58:
|
|
3462
|
+
b = 1 + Ae(O), v = S;
|
|
3463
|
+
default:
|
|
3464
|
+
if (T < 1) {
|
|
3465
|
+
if (C == 123)
|
|
3466
|
+
--T;
|
|
3467
|
+
else if (C == 125 && T++ == 0 && Ns() == 125)
|
|
3468
|
+
continue;
|
|
3469
|
+
}
|
|
3470
|
+
switch (O += Wr(C), C * T) {
|
|
3471
|
+
case 38:
|
|
3472
|
+
_ = f > 0 ? 1 : (O += "\f", -1);
|
|
3473
|
+
break;
|
|
3474
|
+
case 44:
|
|
3475
|
+
d[y++] = (Ae(O) - 1) * _, _ = 1;
|
|
3476
|
+
break;
|
|
3477
|
+
case 64:
|
|
3478
|
+
We() === 45 && (O += xr(Te())), A = We(), f = b = Ae(D = O += $s(Xt())), C++;
|
|
3479
|
+
break;
|
|
3480
|
+
case 45:
|
|
3481
|
+
S === 45 && Ae(O) == 2 && (T = 0);
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
return c;
|
|
3485
|
+
}
|
|
3486
|
+
function gn(e, t, n, o, a, c, l, d, g, y, f, b) {
|
|
3487
|
+
for (var A = a - 1, v = a === 0 ? c : [""], S = ui(v), T = 0, H = 0, _ = 0; T < o; ++T)
|
|
3488
|
+
for (var C = 0, D = rt(e, A + 1, A = ai(H = l[T])), j = e; C < S; ++C)
|
|
3489
|
+
(j = ci(H > 0 ? v[C] + " " + D : I(D, /&\f/g, v[C]))) && (g[_++] = j);
|
|
3490
|
+
return ur(e, t, n, a === 0 ? ar : d, g, y, f, b);
|
|
3491
|
+
}
|
|
3492
|
+
function Hs(e, t, n, o) {
|
|
3493
|
+
return ur(e, t, n, oi, Wr(ks()), rt(e, 2, -2), 0, o);
|
|
3494
|
+
}
|
|
3495
|
+
function wn(e, t, n, o, a) {
|
|
3496
|
+
return ur(e, t, n, Vr, rt(e, 0, o), rt(e, o + 1, -1), o, a);
|
|
3497
|
+
}
|
|
3498
|
+
function fi(e, t, n) {
|
|
3499
|
+
switch (Ps(e, t)) {
|
|
3500
|
+
case 5103:
|
|
3501
|
+
return $ + "print-" + e + e;
|
|
3502
|
+
case 5737:
|
|
3503
|
+
case 4201:
|
|
3504
|
+
case 3177:
|
|
3505
|
+
case 3433:
|
|
3506
|
+
case 1641:
|
|
3507
|
+
case 4457:
|
|
3508
|
+
case 2921:
|
|
3509
|
+
case 5572:
|
|
3510
|
+
case 6356:
|
|
3511
|
+
case 5844:
|
|
3512
|
+
case 3191:
|
|
3513
|
+
case 6645:
|
|
3514
|
+
case 3005:
|
|
3515
|
+
case 4215:
|
|
3516
|
+
case 6389:
|
|
3517
|
+
case 5109:
|
|
3518
|
+
case 5365:
|
|
3519
|
+
case 5621:
|
|
3520
|
+
case 3829:
|
|
3521
|
+
case 6391:
|
|
3522
|
+
case 5879:
|
|
3523
|
+
case 5623:
|
|
3524
|
+
case 6135:
|
|
3525
|
+
case 4599:
|
|
3526
|
+
return $ + e + e;
|
|
3527
|
+
case 4855:
|
|
3528
|
+
return $ + e.replace("add", "source-over").replace("substract", "source-out").replace("intersect", "source-in").replace("exclude", "xor") + e;
|
|
3529
|
+
case 4789:
|
|
3530
|
+
return Pt + e + e;
|
|
3531
|
+
case 5349:
|
|
3532
|
+
case 4246:
|
|
3533
|
+
case 4810:
|
|
3534
|
+
case 6968:
|
|
3535
|
+
case 2756:
|
|
3536
|
+
return $ + e + Pt + e + K + e + e;
|
|
3537
|
+
case 5936:
|
|
3538
|
+
switch (ne(e, t + 11)) {
|
|
3539
|
+
case 114:
|
|
3540
|
+
return $ + e + K + I(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
3541
|
+
case 108:
|
|
3542
|
+
return $ + e + K + I(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
3543
|
+
case 45:
|
|
3544
|
+
return $ + e + K + I(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
3545
|
+
}
|
|
3546
|
+
case 6828:
|
|
3547
|
+
case 4268:
|
|
3548
|
+
case 2903:
|
|
3549
|
+
return $ + e + K + e + e;
|
|
3550
|
+
case 6165:
|
|
3551
|
+
return $ + e + K + "flex-" + e + e;
|
|
3552
|
+
case 5187:
|
|
3553
|
+
return $ + e + I(e, /(\w+).+(:[^]+)/, $ + "box-$1$2" + K + "flex-$1$2") + e;
|
|
3554
|
+
case 5443:
|
|
3555
|
+
return $ + e + K + "flex-item-" + I(e, /flex-|-self/g, "") + (Le(e, /flex-|baseline/) ? "" : K + "grid-row-" + I(e, /flex-|-self/g, "")) + e;
|
|
3556
|
+
case 4675:
|
|
3557
|
+
return $ + e + K + "flex-line-pack" + I(e, /align-content|flex-|-self/g, "") + e;
|
|
3558
|
+
case 5548:
|
|
3559
|
+
return $ + e + K + I(e, "shrink", "negative") + e;
|
|
3560
|
+
case 5292:
|
|
3561
|
+
return $ + e + K + I(e, "basis", "preferred-size") + e;
|
|
3562
|
+
case 6060:
|
|
3563
|
+
return $ + "box-" + I(e, "-grow", "") + $ + e + K + I(e, "grow", "positive") + e;
|
|
3564
|
+
case 4554:
|
|
3565
|
+
return $ + I(e, /([^-])(transform)/g, "$1" + $ + "$2") + e;
|
|
3566
|
+
case 6187:
|
|
3567
|
+
return I(I(I(e, /(zoom-|grab)/, $ + "$1"), /(image-set)/, $ + "$1"), e, "") + e;
|
|
3568
|
+
case 5495:
|
|
3569
|
+
case 3959:
|
|
3570
|
+
return I(e, /(image-set\([^]*)/, $ + "$1$`$1");
|
|
3571
|
+
case 4968:
|
|
3572
|
+
return I(I(e, /(.+:)(flex-)?(.*)/, $ + "box-pack:$3" + K + "flex-pack:$3"), /space-between/, "justify") + $ + e + e;
|
|
3573
|
+
case 4200:
|
|
3574
|
+
if (!Le(e, /flex-|baseline/)) return K + "grid-column-align" + rt(e, t) + e;
|
|
3575
|
+
break;
|
|
3576
|
+
case 2592:
|
|
3577
|
+
case 3360:
|
|
3578
|
+
return K + I(e, "template-", "") + e;
|
|
3579
|
+
case 4384:
|
|
3580
|
+
case 3616:
|
|
3581
|
+
return n && n.some(function(o, a) {
|
|
3582
|
+
return t = a, Le(o.props, /grid-\w+-end/);
|
|
3583
|
+
}) ? ~Kt(e + (n = n[t].value), "span", 0) ? e : K + I(e, "-start", "") + e + K + "grid-row-span:" + (~Kt(n, "span", 0) ? Le(n, /\d+/) : +Le(n, /\d+/) - +Le(e, /\d+/)) + ";" : K + I(e, "-start", "") + e;
|
|
3584
|
+
case 4896:
|
|
3585
|
+
case 4128:
|
|
3586
|
+
return n && n.some(function(o) {
|
|
3587
|
+
return Le(o.props, /grid-\w+-start/);
|
|
3588
|
+
}) ? e : K + I(I(e, "-end", "-span"), "span ", "") + e;
|
|
3589
|
+
case 4095:
|
|
3590
|
+
case 3583:
|
|
3591
|
+
case 4068:
|
|
3592
|
+
case 2532:
|
|
3593
|
+
return I(e, /(.+)-inline(.+)/, $ + "$1$2") + e;
|
|
3594
|
+
case 8116:
|
|
3595
|
+
case 7059:
|
|
3596
|
+
case 5753:
|
|
3597
|
+
case 5535:
|
|
3598
|
+
case 5445:
|
|
3599
|
+
case 5701:
|
|
3600
|
+
case 4933:
|
|
3601
|
+
case 4677:
|
|
3602
|
+
case 5533:
|
|
3603
|
+
case 5789:
|
|
3604
|
+
case 5021:
|
|
3605
|
+
case 4765:
|
|
3606
|
+
if (Ae(e) - 1 - t > 6)
|
|
3607
|
+
switch (ne(e, t + 1)) {
|
|
3608
|
+
case 109:
|
|
3609
|
+
if (ne(e, t + 4) !== 45)
|
|
3610
|
+
break;
|
|
3611
|
+
case 102:
|
|
3612
|
+
return I(e, /(.+:)(.+)-([^]+)/, "$1" + $ + "$2-$3$1" + Pt + (ne(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
3613
|
+
case 115:
|
|
3614
|
+
return ~Kt(e, "stretch", 0) ? fi(I(e, "stretch", "fill-available"), t, n) + e : e;
|
|
3615
|
+
}
|
|
3616
|
+
break;
|
|
3617
|
+
case 5152:
|
|
3618
|
+
case 5920:
|
|
3619
|
+
return I(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(o, a, c, l, d, g, y) {
|
|
3620
|
+
return K + a + ":" + c + y + (l ? K + a + "-span:" + (d ? g : +g - +c) + y : "") + e;
|
|
3621
|
+
});
|
|
3622
|
+
case 4949:
|
|
3623
|
+
if (ne(e, t + 6) === 121)
|
|
3624
|
+
return I(e, ":", ":" + $) + e;
|
|
3625
|
+
break;
|
|
3626
|
+
case 6444:
|
|
3627
|
+
switch (ne(e, ne(e, 14) === 45 ? 18 : 11)) {
|
|
3628
|
+
case 120:
|
|
3629
|
+
return I(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + $ + (ne(e, 14) === 45 ? "inline-" : "") + "box$3$1" + $ + "$2$3$1" + K + "$2box$3") + e;
|
|
3630
|
+
case 100:
|
|
3631
|
+
return I(e, ":", ":" + K) + e;
|
|
3632
|
+
}
|
|
3633
|
+
break;
|
|
3634
|
+
case 5719:
|
|
3635
|
+
case 2647:
|
|
3636
|
+
case 2135:
|
|
3637
|
+
case 3927:
|
|
3638
|
+
case 2391:
|
|
3639
|
+
return I(e, "scroll-", "scroll-snap-") + e;
|
|
3640
|
+
}
|
|
3641
|
+
return e;
|
|
3642
|
+
}
|
|
3643
|
+
function er(e, t) {
|
|
3644
|
+
for (var n = "", o = 0; o < e.length; o++)
|
|
3645
|
+
n += t(e[o], o, e, t) || "";
|
|
3646
|
+
return n;
|
|
3647
|
+
}
|
|
3648
|
+
function qs(e, t, n, o) {
|
|
3649
|
+
switch (e.type) {
|
|
3650
|
+
case Is:
|
|
3651
|
+
if (e.children.length) break;
|
|
3652
|
+
case Bs:
|
|
3653
|
+
case _s:
|
|
3654
|
+
case Vr:
|
|
3655
|
+
return e.return = e.return || e.value;
|
|
3656
|
+
case oi:
|
|
3657
|
+
return "";
|
|
3658
|
+
case si:
|
|
3659
|
+
return e.return = e.value + "{" + er(e.children, o) + "}";
|
|
3660
|
+
case ar:
|
|
3661
|
+
if (!Ae(e.value = e.props.join(","))) return "";
|
|
3662
|
+
}
|
|
3663
|
+
return Ae(n = er(e.children, o)) ? e.return = e.value + "{" + n + "}" : "";
|
|
3664
|
+
}
|
|
3665
|
+
function Vs(e) {
|
|
3666
|
+
var t = ui(e);
|
|
3667
|
+
return function(n, o, a, c) {
|
|
3668
|
+
for (var l = "", d = 0; d < t; d++)
|
|
3669
|
+
l += e[d](n, o, a, c) || "";
|
|
3670
|
+
return l;
|
|
3671
|
+
};
|
|
3672
|
+
}
|
|
3673
|
+
function Ws(e) {
|
|
3674
|
+
return function(t) {
|
|
3675
|
+
t.root || (t = t.return) && e(t);
|
|
3676
|
+
};
|
|
3677
|
+
}
|
|
3678
|
+
function Ys(e, t, n, o) {
|
|
3679
|
+
if (e.length > -1 && !e.return)
|
|
3680
|
+
switch (e.type) {
|
|
3681
|
+
case Vr:
|
|
3682
|
+
e.return = fi(e.value, e.length, n);
|
|
3683
|
+
return;
|
|
3684
|
+
case si:
|
|
3685
|
+
return er([Ve(e, { value: I(e.value, "@", "@" + $) })], o);
|
|
3686
|
+
case ar:
|
|
3687
|
+
if (e.length)
|
|
3688
|
+
return Fs(n = e.props, function(a) {
|
|
3689
|
+
switch (Le(a, o = /(::plac\w+|:read-\w+)/)) {
|
|
3690
|
+
case ":read-only":
|
|
3691
|
+
case ":read-write":
|
|
3692
|
+
ht(Ve(e, { props: [I(a, /:(read-\w+)/, ":" + Pt + "$1")] })), ht(Ve(e, { props: [a] })), Fr(e, { props: yn(n, o) });
|
|
3693
|
+
break;
|
|
3694
|
+
case "::placeholder":
|
|
3695
|
+
ht(Ve(e, { props: [I(a, /:(plac\w+)/, ":" + $ + "input-$1")] })), ht(Ve(e, { props: [I(a, /:(plac\w+)/, ":" + Pt + "$1")] })), ht(Ve(e, { props: [I(a, /:(plac\w+)/, K + "input-$1")] })), ht(Ve(e, { props: [a] })), Fr(e, { props: yn(n, o) });
|
|
3696
|
+
break;
|
|
3697
|
+
}
|
|
3698
|
+
return "";
|
|
3699
|
+
});
|
|
3700
|
+
}
|
|
3701
|
+
}
|
|
3702
|
+
var Gs = {
|
|
3703
|
+
animationIterationCount: 1,
|
|
3704
|
+
aspectRatio: 1,
|
|
3705
|
+
borderImageOutset: 1,
|
|
3706
|
+
borderImageSlice: 1,
|
|
3707
|
+
borderImageWidth: 1,
|
|
3708
|
+
boxFlex: 1,
|
|
3709
|
+
boxFlexGroup: 1,
|
|
3710
|
+
boxOrdinalGroup: 1,
|
|
3711
|
+
columnCount: 1,
|
|
3712
|
+
columns: 1,
|
|
3713
|
+
flex: 1,
|
|
3714
|
+
flexGrow: 1,
|
|
3715
|
+
flexPositive: 1,
|
|
3716
|
+
flexShrink: 1,
|
|
3717
|
+
flexNegative: 1,
|
|
3718
|
+
flexOrder: 1,
|
|
3719
|
+
gridRow: 1,
|
|
3720
|
+
gridRowEnd: 1,
|
|
3721
|
+
gridRowSpan: 1,
|
|
3722
|
+
gridRowStart: 1,
|
|
3723
|
+
gridColumn: 1,
|
|
3724
|
+
gridColumnEnd: 1,
|
|
3725
|
+
gridColumnSpan: 1,
|
|
3726
|
+
gridColumnStart: 1,
|
|
3727
|
+
msGridRow: 1,
|
|
3728
|
+
msGridRowSpan: 1,
|
|
3729
|
+
msGridColumn: 1,
|
|
3730
|
+
msGridColumnSpan: 1,
|
|
3731
|
+
fontWeight: 1,
|
|
3732
|
+
lineHeight: 1,
|
|
3733
|
+
opacity: 1,
|
|
3734
|
+
order: 1,
|
|
3735
|
+
orphans: 1,
|
|
3736
|
+
tabSize: 1,
|
|
3737
|
+
widows: 1,
|
|
3738
|
+
zIndex: 1,
|
|
3739
|
+
zoom: 1,
|
|
3740
|
+
WebkitLineClamp: 1,
|
|
3741
|
+
// SVG-related properties
|
|
3742
|
+
fillOpacity: 1,
|
|
3743
|
+
floodOpacity: 1,
|
|
3744
|
+
stopOpacity: 1,
|
|
3745
|
+
strokeDasharray: 1,
|
|
3746
|
+
strokeDashoffset: 1,
|
|
3747
|
+
strokeMiterlimit: 1,
|
|
3748
|
+
strokeOpacity: 1,
|
|
3749
|
+
strokeWidth: 1
|
|
3750
|
+
}, nt = typeof k < "u" && k.env !== void 0 && (k.env.REACT_APP_SC_ATTR || k.env.SC_ATTR) || "data-styled", Yr = typeof window < "u" && "HTMLElement" in window, Js = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof k < "u" && k.env !== void 0 && k.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && k.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? k.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && k.env.REACT_APP_SC_DISABLE_SPEEDY : typeof k < "u" && k.env !== void 0 && k.env.SC_DISABLE_SPEEDY !== void 0 && k.env.SC_DISABLE_SPEEDY !== "" ? k.env.SC_DISABLE_SPEEDY !== "false" && k.env.SC_DISABLE_SPEEDY : k.env.NODE_ENV !== "production"), En = /invalid hook call/i, zt = /* @__PURE__ */ new Set(), Ks = function(e, t) {
|
|
3751
|
+
if (k.env.NODE_ENV !== "production") {
|
|
3752
|
+
var n = t ? ' with the id of "'.concat(t, '"') : "", o = "The component ".concat(e).concat(n, ` has been created dynamically.
|
|
3753
|
+
`) + `You may see this warning because you've called styled inside another component.
|
|
3754
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`, a = console.error;
|
|
3755
|
+
try {
|
|
3756
|
+
var c = !0;
|
|
3757
|
+
console.error = function(l) {
|
|
3758
|
+
for (var d = [], g = 1; g < arguments.length; g++) d[g - 1] = arguments[g];
|
|
3759
|
+
En.test(l) ? (c = !1, zt.delete(o)) : a.apply(void 0, yt([l], d, !1));
|
|
3760
|
+
}, Li(), c && !zt.has(o) && (console.warn(o), zt.add(o));
|
|
3761
|
+
} catch (l) {
|
|
3762
|
+
En.test(l.message) && zt.delete(o);
|
|
3763
|
+
} finally {
|
|
3764
|
+
console.error = a;
|
|
3765
|
+
}
|
|
3766
|
+
}
|
|
3767
|
+
}, fr = Object.freeze([]), wt = Object.freeze({});
|
|
3768
|
+
function Xs(e, t, n) {
|
|
3769
|
+
return n === void 0 && (n = wt), e.theme !== n.theme && e.theme || t || n.theme;
|
|
3770
|
+
}
|
|
3771
|
+
var Nr = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Zs = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Qs = /(^-|-$)/g;
|
|
3772
|
+
function bn(e) {
|
|
3773
|
+
return e.replace(Zs, "-").replace(Qs, "");
|
|
3774
|
+
}
|
|
3775
|
+
var ea = /(a)(d)/gi, xn = function(e) {
|
|
3776
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
3777
|
+
};
|
|
3778
|
+
function Dr(e) {
|
|
3779
|
+
var t, n = "";
|
|
3780
|
+
for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = xn(t % 52) + n;
|
|
3781
|
+
return (xn(t % 52) + n).replace(ea, "$1-$2");
|
|
3782
|
+
}
|
|
3783
|
+
var Sr, Je = function(e, t) {
|
|
3784
|
+
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
3785
|
+
return e;
|
|
3786
|
+
}, pi = function(e) {
|
|
3787
|
+
return Je(5381, e);
|
|
3788
|
+
};
|
|
3789
|
+
function ta(e) {
|
|
3790
|
+
return Dr(pi(e) >>> 0);
|
|
3791
|
+
}
|
|
3792
|
+
function hi(e) {
|
|
3793
|
+
return k.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
3794
|
+
}
|
|
3795
|
+
function vr(e) {
|
|
3796
|
+
return typeof e == "string" && (k.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
3797
|
+
}
|
|
3798
|
+
var di = typeof Symbol == "function" && Symbol.for, mi = di ? Symbol.for("react.memo") : 60115, ra = di ? Symbol.for("react.forward_ref") : 60112, na = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, ia = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, yi = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, oa = ((Sr = {})[ra] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Sr[mi] = yi, Sr);
|
|
3799
|
+
function Sn(e) {
|
|
3800
|
+
return ("type" in (t = e) && t.type.$$typeof) === mi ? yi : "$$typeof" in e ? oa[e.$$typeof] : na;
|
|
3801
|
+
var t;
|
|
3802
|
+
}
|
|
3803
|
+
var sa = Object.defineProperty, aa = Object.getOwnPropertyNames, vn = Object.getOwnPropertySymbols, ca = Object.getOwnPropertyDescriptor, ua = Object.getPrototypeOf, Rn = Object.prototype;
|
|
3804
|
+
function gi(e, t, n) {
|
|
3805
|
+
if (typeof t != "string") {
|
|
3806
|
+
if (Rn) {
|
|
3807
|
+
var o = ua(t);
|
|
3808
|
+
o && o !== Rn && gi(e, o, n);
|
|
3809
|
+
}
|
|
3810
|
+
var a = aa(t);
|
|
3811
|
+
vn && (a = a.concat(vn(t)));
|
|
3812
|
+
for (var c = Sn(e), l = Sn(t), d = 0; d < a.length; ++d) {
|
|
3813
|
+
var g = a[d];
|
|
3814
|
+
if (!(g in ia || n && n[g] || l && g in l || c && g in c)) {
|
|
3815
|
+
var y = ca(t, g);
|
|
3816
|
+
try {
|
|
3817
|
+
sa(e, g, y);
|
|
3818
|
+
} catch {
|
|
3819
|
+
}
|
|
3820
|
+
}
|
|
3821
|
+
}
|
|
3822
|
+
}
|
|
3823
|
+
return e;
|
|
3824
|
+
}
|
|
3825
|
+
function Et(e) {
|
|
3826
|
+
return typeof e == "function";
|
|
3827
|
+
}
|
|
3828
|
+
function Gr(e) {
|
|
3829
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
3830
|
+
}
|
|
3831
|
+
function Xe(e, t) {
|
|
3832
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
3833
|
+
}
|
|
3834
|
+
function An(e, t) {
|
|
3835
|
+
if (e.length === 0) return "";
|
|
3836
|
+
for (var n = e[0], o = 1; o < e.length; o++) n += e[o];
|
|
3837
|
+
return n;
|
|
3838
|
+
}
|
|
3839
|
+
function bt(e) {
|
|
3840
|
+
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
3841
|
+
}
|
|
3842
|
+
function Ur(e, t, n) {
|
|
3843
|
+
if (n === void 0 && (n = !1), !n && !bt(e) && !Array.isArray(e)) return t;
|
|
3844
|
+
if (Array.isArray(t)) for (var o = 0; o < t.length; o++) e[o] = Ur(e[o], t[o]);
|
|
3845
|
+
else if (bt(t)) for (var o in t) e[o] = Ur(e[o], t[o]);
|
|
3846
|
+
return e;
|
|
3847
|
+
}
|
|
3848
|
+
function Jr(e, t) {
|
|
3849
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
3850
|
+
}
|
|
3851
|
+
var la = k.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
3852
|
+
|
|
3853
|
+
`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
3854
|
+
|
|
3855
|
+
- Are you trying to reuse it across renders?
|
|
3856
|
+
- Are you accidentally calling collectStyles twice?
|
|
3857
|
+
|
|
3858
|
+
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
3859
|
+
|
|
3860
|
+
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
3861
|
+
|
|
3862
|
+
- Does this error occur on the client and is your target falsy?
|
|
3863
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
3864
|
+
|
|
3865
|
+
`, 5: `The clone method cannot be used on the client!
|
|
3866
|
+
|
|
3867
|
+
- Are you running in a client-like environment on the server?
|
|
3868
|
+
- Are you trying to run SSR on the client?
|
|
3869
|
+
|
|
3870
|
+
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
3871
|
+
|
|
3872
|
+
- Are you using a custom target that isn't mounted?
|
|
3873
|
+
- Does your document not have a valid head element?
|
|
3874
|
+
- Have you accidentally removed a style tag manually?
|
|
3875
|
+
|
|
3876
|
+
`, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
|
|
3877
|
+
|
|
3878
|
+
`, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
3879
|
+
|
|
3880
|
+
`, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
3881
|
+
|
|
3882
|
+
`, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
3883
|
+
|
|
3884
|
+
`, 14: `ThemeProvider: "theme" prop is required.
|
|
3885
|
+
|
|
3886
|
+
`, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
|
|
3887
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
3888
|
+
as for instance in your render method then you may be running into this limitation.
|
|
3889
|
+
|
|
3890
|
+
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
3891
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
3892
|
+
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
3893
|
+
function fa() {
|
|
3894
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
3895
|
+
for (var n = e[0], o = [], a = 1, c = e.length; a < c; a += 1) o.push(e[a]);
|
|
3896
|
+
return o.forEach(function(l) {
|
|
3897
|
+
n = n.replace(/%[a-z]/, l);
|
|
3898
|
+
}), n;
|
|
3899
|
+
}
|
|
3900
|
+
function Rt(e) {
|
|
3901
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
3902
|
+
return k.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(fa.apply(void 0, yt([la[e]], t, !1)).trim());
|
|
3903
|
+
}
|
|
3904
|
+
var pa = function() {
|
|
3905
|
+
function e(t) {
|
|
3906
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
3907
|
+
}
|
|
3908
|
+
return e.prototype.indexOfGroup = function(t) {
|
|
3909
|
+
for (var n = 0, o = 0; o < t; o++) n += this.groupSizes[o];
|
|
3910
|
+
return n;
|
|
3911
|
+
}, e.prototype.insertRules = function(t, n) {
|
|
3912
|
+
if (t >= this.groupSizes.length) {
|
|
3913
|
+
for (var o = this.groupSizes, a = o.length, c = a; t >= c; ) if ((c <<= 1) < 0) throw Rt(16, "".concat(t));
|
|
3914
|
+
this.groupSizes = new Uint32Array(c), this.groupSizes.set(o), this.length = c;
|
|
3915
|
+
for (var l = a; l < c; l++) this.groupSizes[l] = 0;
|
|
3916
|
+
}
|
|
3917
|
+
for (var d = this.indexOfGroup(t + 1), g = (l = 0, n.length); l < g; l++) this.tag.insertRule(d, n[l]) && (this.groupSizes[t]++, d++);
|
|
3918
|
+
}, e.prototype.clearGroup = function(t) {
|
|
3919
|
+
if (t < this.length) {
|
|
3920
|
+
var n = this.groupSizes[t], o = this.indexOfGroup(t), a = o + n;
|
|
3921
|
+
this.groupSizes[t] = 0;
|
|
3922
|
+
for (var c = o; c < a; c++) this.tag.deleteRule(o);
|
|
3923
|
+
}
|
|
3924
|
+
}, e.prototype.getGroup = function(t) {
|
|
3925
|
+
var n = "";
|
|
3926
|
+
if (t >= this.length || this.groupSizes[t] === 0) return n;
|
|
3927
|
+
for (var o = this.groupSizes[t], a = this.indexOfGroup(t), c = a + o, l = a; l < c; l++) n += "".concat(this.tag.getRule(l)).concat(`/*!sc*/
|
|
3928
|
+
`);
|
|
3929
|
+
return n;
|
|
3930
|
+
}, e;
|
|
3931
|
+
}(), Qt = /* @__PURE__ */ new Map(), tr = /* @__PURE__ */ new Map(), Rr = 1, Ht = function(e) {
|
|
3932
|
+
if (Qt.has(e)) return Qt.get(e);
|
|
3933
|
+
for (; tr.has(Rr); ) Rr++;
|
|
3934
|
+
var t = Rr++;
|
|
3935
|
+
if (k.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > 1073741824)) throw Rt(16, "".concat(t));
|
|
3936
|
+
return Qt.set(e, t), tr.set(t, e), t;
|
|
3937
|
+
}, ha = function(e, t) {
|
|
3938
|
+
Qt.set(e, t), tr.set(t, e);
|
|
3939
|
+
}, da = "style[".concat(nt, "][").concat("data-styled-version", '="').concat("6.0.7", '"]'), ma = new RegExp("^".concat(nt, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ya = function(e, t, n) {
|
|
3940
|
+
for (var o, a = n.split(","), c = 0, l = a.length; c < l; c++) (o = a[c]) && e.registerName(t, o);
|
|
3941
|
+
}, ga = function(e, t) {
|
|
3942
|
+
for (var n, o = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(`/*!sc*/
|
|
3943
|
+
`), a = [], c = 0, l = o.length; c < l; c++) {
|
|
3944
|
+
var d = o[c].trim();
|
|
3945
|
+
if (d) {
|
|
3946
|
+
var g = d.match(ma);
|
|
3947
|
+
if (g) {
|
|
3948
|
+
var y = 0 | parseInt(g[1], 10), f = g[2];
|
|
3949
|
+
y !== 0 && (ha(f, y), ya(e, f, g[3]), e.getTag().insertRules(y, a)), a.length = 0;
|
|
3950
|
+
} else a.push(d);
|
|
3951
|
+
}
|
|
3952
|
+
}
|
|
3953
|
+
};
|
|
3954
|
+
function wa() {
|
|
3955
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
3956
|
+
}
|
|
3957
|
+
var wi = function(e) {
|
|
3958
|
+
var t = document.head, n = e || t, o = document.createElement("style"), a = function(d) {
|
|
3959
|
+
var g = Array.from(d.querySelectorAll("style[".concat(nt, "]")));
|
|
3960
|
+
return g[g.length - 1];
|
|
3961
|
+
}(n), c = a !== void 0 ? a.nextSibling : null;
|
|
3962
|
+
o.setAttribute(nt, "active"), o.setAttribute("data-styled-version", "6.0.7");
|
|
3963
|
+
var l = wa();
|
|
3964
|
+
return l && o.setAttribute("nonce", l), n.insertBefore(o, c), o;
|
|
3965
|
+
}, Ea = function() {
|
|
3966
|
+
function e(t) {
|
|
3967
|
+
this.element = wi(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
|
|
3968
|
+
if (n.sheet) return n.sheet;
|
|
3969
|
+
for (var o = document.styleSheets, a = 0, c = o.length; a < c; a++) {
|
|
3970
|
+
var l = o[a];
|
|
3971
|
+
if (l.ownerNode === n) return l;
|
|
3972
|
+
}
|
|
3973
|
+
throw Rt(17);
|
|
3974
|
+
}(this.element), this.length = 0;
|
|
3975
|
+
}
|
|
3976
|
+
return e.prototype.insertRule = function(t, n) {
|
|
3977
|
+
try {
|
|
3978
|
+
return this.sheet.insertRule(n, t), this.length++, !0;
|
|
3979
|
+
} catch {
|
|
3980
|
+
return !1;
|
|
3981
|
+
}
|
|
3982
|
+
}, e.prototype.deleteRule = function(t) {
|
|
3983
|
+
this.sheet.deleteRule(t), this.length--;
|
|
3984
|
+
}, e.prototype.getRule = function(t) {
|
|
3985
|
+
var n = this.sheet.cssRules[t];
|
|
3986
|
+
return n && n.cssText ? n.cssText : "";
|
|
3987
|
+
}, e;
|
|
3988
|
+
}(), ba = function() {
|
|
3989
|
+
function e(t) {
|
|
3990
|
+
this.element = wi(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
3991
|
+
}
|
|
3992
|
+
return e.prototype.insertRule = function(t, n) {
|
|
3993
|
+
if (t <= this.length && t >= 0) {
|
|
3994
|
+
var o = document.createTextNode(n);
|
|
3995
|
+
return this.element.insertBefore(o, this.nodes[t] || null), this.length++, !0;
|
|
3996
|
+
}
|
|
3997
|
+
return !1;
|
|
3998
|
+
}, e.prototype.deleteRule = function(t) {
|
|
3999
|
+
this.element.removeChild(this.nodes[t]), this.length--;
|
|
4000
|
+
}, e.prototype.getRule = function(t) {
|
|
4001
|
+
return t < this.length ? this.nodes[t].textContent : "";
|
|
4002
|
+
}, e;
|
|
4003
|
+
}(), xa = function() {
|
|
4004
|
+
function e(t) {
|
|
4005
|
+
this.rules = [], this.length = 0;
|
|
4006
|
+
}
|
|
4007
|
+
return e.prototype.insertRule = function(t, n) {
|
|
4008
|
+
return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
|
|
4009
|
+
}, e.prototype.deleteRule = function(t) {
|
|
4010
|
+
this.rules.splice(t, 1), this.length--;
|
|
4011
|
+
}, e.prototype.getRule = function(t) {
|
|
4012
|
+
return t < this.length ? this.rules[t] : "";
|
|
4013
|
+
}, e;
|
|
4014
|
+
}(), Tn = Yr, Sa = { isServer: !Yr, useCSSOMInjection: !Js }, Ei = function() {
|
|
4015
|
+
function e(t, n, o) {
|
|
4016
|
+
t === void 0 && (t = wt), n === void 0 && (n = {});
|
|
4017
|
+
var a = this;
|
|
4018
|
+
this.options = fe(fe({}, Sa), t), this.gs = n, this.names = new Map(o), this.server = !!t.isServer, !this.server && Yr && Tn && (Tn = !1, function(c) {
|
|
4019
|
+
for (var l = document.querySelectorAll(da), d = 0, g = l.length; d < g; d++) {
|
|
4020
|
+
var y = l[d];
|
|
4021
|
+
y && y.getAttribute(nt) !== "active" && (ga(c, y), y.parentNode && y.parentNode.removeChild(y));
|
|
4022
|
+
}
|
|
4023
|
+
}(this)), Jr(this, function() {
|
|
4024
|
+
return function(c) {
|
|
4025
|
+
for (var l = c.getTag(), d = l.length, g = "", y = function(b) {
|
|
4026
|
+
var A = function(_) {
|
|
4027
|
+
return tr.get(_);
|
|
4028
|
+
}(b);
|
|
4029
|
+
if (A === void 0) return "continue";
|
|
4030
|
+
var v = c.names.get(A), S = l.getGroup(b);
|
|
4031
|
+
if (v === void 0 || S.length === 0) return "continue";
|
|
4032
|
+
var T = "".concat(nt, ".g").concat(b, '[id="').concat(A, '"]'), H = "";
|
|
4033
|
+
v !== void 0 && v.forEach(function(_) {
|
|
4034
|
+
_.length > 0 && (H += "".concat(_, ","));
|
|
4035
|
+
}), g += "".concat(S).concat(T, '{content:"').concat(H, '"}').concat(`/*!sc*/
|
|
4036
|
+
`);
|
|
4037
|
+
}, f = 0; f < d; f++) y(f);
|
|
4038
|
+
return g;
|
|
4039
|
+
}(a);
|
|
4040
|
+
});
|
|
4041
|
+
}
|
|
4042
|
+
return e.registerId = function(t) {
|
|
4043
|
+
return Ht(t);
|
|
4044
|
+
}, e.prototype.reconstructWithOptions = function(t, n) {
|
|
4045
|
+
return n === void 0 && (n = !0), new e(fe(fe({}, this.options), t), this.gs, n && this.names || void 0);
|
|
4046
|
+
}, e.prototype.allocateGSInstance = function(t) {
|
|
4047
|
+
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
4048
|
+
}, e.prototype.getTag = function() {
|
|
4049
|
+
return this.tag || (this.tag = (t = function(n) {
|
|
4050
|
+
var o = n.useCSSOMInjection, a = n.target;
|
|
4051
|
+
return n.isServer ? new xa(a) : o ? new Ea(a) : new ba(a);
|
|
4052
|
+
}(this.options), new pa(t)));
|
|
4053
|
+
var t;
|
|
4054
|
+
}, e.prototype.hasNameForId = function(t, n) {
|
|
4055
|
+
return this.names.has(t) && this.names.get(t).has(n);
|
|
4056
|
+
}, e.prototype.registerName = function(t, n) {
|
|
4057
|
+
if (Ht(t), this.names.has(t)) this.names.get(t).add(n);
|
|
4058
|
+
else {
|
|
4059
|
+
var o = /* @__PURE__ */ new Set();
|
|
4060
|
+
o.add(n), this.names.set(t, o);
|
|
4061
|
+
}
|
|
4062
|
+
}, e.prototype.insertRules = function(t, n, o) {
|
|
4063
|
+
this.registerName(t, n), this.getTag().insertRules(Ht(t), o);
|
|
4064
|
+
}, e.prototype.clearNames = function(t) {
|
|
4065
|
+
this.names.has(t) && this.names.get(t).clear();
|
|
4066
|
+
}, e.prototype.clearRules = function(t) {
|
|
4067
|
+
this.getTag().clearGroup(Ht(t)), this.clearNames(t);
|
|
4068
|
+
}, e.prototype.clearTag = function() {
|
|
4069
|
+
this.tag = void 0;
|
|
4070
|
+
}, e;
|
|
4071
|
+
}(), va = /&/g, Ra = /^\s*\/\/.*$/gm;
|
|
4072
|
+
function bi(e, t) {
|
|
4073
|
+
return e.map(function(n) {
|
|
4074
|
+
return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(o) {
|
|
4075
|
+
return "".concat(t, " ").concat(o);
|
|
4076
|
+
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = bi(n.children, t)), n;
|
|
4077
|
+
});
|
|
4078
|
+
}
|
|
4079
|
+
function Aa(e) {
|
|
4080
|
+
var t, n, o, a = wt, c = a.options, l = c === void 0 ? wt : c, d = a.plugins, g = d === void 0 ? fr : d, y = function(A, v, S) {
|
|
4081
|
+
return S === n || S.startsWith(n) && S.endsWith(n) && S.replaceAll(n, "").length > 0 ? ".".concat(t) : A;
|
|
4082
|
+
}, f = g.slice();
|
|
4083
|
+
f.push(function(A) {
|
|
4084
|
+
A.type === ar && A.value.includes("&") && (A.props[0] = A.props[0].replace(va, n).replace(o, y));
|
|
4085
|
+
}), l.prefix && f.push(Ys), f.push(qs);
|
|
4086
|
+
var b = function(A, v, S, T) {
|
|
4087
|
+
v === void 0 && (v = ""), S === void 0 && (S = ""), T === void 0 && (T = "&"), t = T, n = v, o = new RegExp("\\".concat(n, "\\b"), "g");
|
|
4088
|
+
var H = A.replace(Ra, ""), _ = zs(S || v ? "".concat(S, " ").concat(v, " { ").concat(H, " }") : H);
|
|
4089
|
+
l.namespace && (_ = bi(_, l.namespace));
|
|
4090
|
+
var C = [];
|
|
4091
|
+
return er(_, Vs(f.concat(Ws(function(D) {
|
|
4092
|
+
return C.push(D);
|
|
4093
|
+
})))), C;
|
|
4094
|
+
};
|
|
4095
|
+
return b.hash = g.length ? g.reduce(function(A, v) {
|
|
4096
|
+
return v.name || Rt(15), Je(A, v.name);
|
|
4097
|
+
}, 5381).toString() : "", b;
|
|
4098
|
+
}
|
|
4099
|
+
var Ta = new Ei(), Lr = Aa(), xi = tt.createContext({ shouldForwardProp: void 0, styleSheet: Ta, stylis: Lr });
|
|
4100
|
+
xi.Consumer;
|
|
4101
|
+
tt.createContext(void 0);
|
|
4102
|
+
function Cn() {
|
|
4103
|
+
return ji(xi);
|
|
4104
|
+
}
|
|
4105
|
+
var On = function() {
|
|
4106
|
+
function e(t, n) {
|
|
4107
|
+
var o = this;
|
|
4108
|
+
this.inject = function(a, c) {
|
|
4109
|
+
c === void 0 && (c = Lr);
|
|
4110
|
+
var l = o.name + c.hash;
|
|
4111
|
+
a.hasNameForId(o.id, l) || a.insertRules(o.id, l, c(o.rules, l, "@keyframes"));
|
|
4112
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, Jr(this, function() {
|
|
4113
|
+
throw Rt(12, String(o.name));
|
|
4114
|
+
});
|
|
4115
|
+
}
|
|
4116
|
+
return e.prototype.getName = function(t) {
|
|
4117
|
+
return t === void 0 && (t = Lr), this.name + t.hash;
|
|
4118
|
+
}, e;
|
|
4119
|
+
}(), Ca = function(e) {
|
|
4120
|
+
return e >= "A" && e <= "Z";
|
|
4121
|
+
};
|
|
4122
|
+
function Bn(e) {
|
|
4123
|
+
for (var t = "", n = 0; n < e.length; n++) {
|
|
4124
|
+
var o = e[n];
|
|
4125
|
+
if (n === 1 && o === "-" && e[0] === "-") return e;
|
|
4126
|
+
Ca(o) ? t += "-" + o.toLowerCase() : t += o;
|
|
4127
|
+
}
|
|
4128
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
4129
|
+
}
|
|
4130
|
+
var Si = function(e) {
|
|
4131
|
+
return e == null || e === !1 || e === "";
|
|
4132
|
+
}, vi = function(e) {
|
|
4133
|
+
var t, n, o = [];
|
|
4134
|
+
for (var a in e) {
|
|
4135
|
+
var c = e[a];
|
|
4136
|
+
e.hasOwnProperty(a) && !Si(c) && (Array.isArray(c) && c.isCss || Et(c) ? o.push("".concat(Bn(a), ":"), c, ";") : bt(c) ? o.push.apply(o, yt(yt(["".concat(a, " {")], vi(c), !1), ["}"], !1)) : o.push("".concat(Bn(a), ": ").concat((t = a, (n = c) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Gs || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
|
|
4137
|
+
}
|
|
4138
|
+
return o;
|
|
4139
|
+
};
|
|
4140
|
+
function et(e, t, n, o) {
|
|
4141
|
+
if (Si(e)) return [];
|
|
4142
|
+
if (Gr(e)) return [".".concat(e.styledComponentId)];
|
|
4143
|
+
if (Et(e)) {
|
|
4144
|
+
if (!Et(c = e) || c.prototype && c.prototype.isReactComponent || !t) return [e];
|
|
4145
|
+
var a = e(t);
|
|
4146
|
+
return k.env.NODE_ENV === "production" || typeof a != "object" || Array.isArray(a) || a instanceof On || bt(a) || a === null || console.error("".concat(hi(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), et(a, t, n, o);
|
|
4147
|
+
}
|
|
4148
|
+
var c;
|
|
4149
|
+
return e instanceof On ? n ? (e.inject(n, o), [e.getName(o)]) : [e] : bt(e) ? vi(e) : Array.isArray(e) ? Array.prototype.concat.apply(fr, e.map(function(l) {
|
|
4150
|
+
return et(l, t, n, o);
|
|
4151
|
+
})) : [e.toString()];
|
|
4152
|
+
}
|
|
4153
|
+
function Oa(e) {
|
|
4154
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
4155
|
+
var n = e[t];
|
|
4156
|
+
if (Et(n) && !Gr(n)) return !1;
|
|
4157
|
+
}
|
|
4158
|
+
return !0;
|
|
4159
|
+
}
|
|
4160
|
+
var Ba = pi("6.0.7"), _a = function() {
|
|
4161
|
+
function e(t, n, o) {
|
|
4162
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = k.env.NODE_ENV === "production" && (o === void 0 || o.isStatic) && Oa(t), this.componentId = n, this.baseHash = Je(Ba, n), this.baseStyle = o, Ei.registerId(n);
|
|
4163
|
+
}
|
|
4164
|
+
return e.prototype.generateAndInjectStyles = function(t, n, o) {
|
|
4165
|
+
var a = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, o) : "";
|
|
4166
|
+
if (this.isStatic && !o.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) a = Xe(a, this.staticRulesId);
|
|
4167
|
+
else {
|
|
4168
|
+
var c = An(et(this.rules, t, n, o)), l = Dr(Je(this.baseHash, c) >>> 0);
|
|
4169
|
+
if (!n.hasNameForId(this.componentId, l)) {
|
|
4170
|
+
var d = o(c, ".".concat(l), void 0, this.componentId);
|
|
4171
|
+
n.insertRules(this.componentId, l, d);
|
|
4172
|
+
}
|
|
4173
|
+
a = Xe(a, l), this.staticRulesId = l;
|
|
4174
|
+
}
|
|
4175
|
+
else {
|
|
4176
|
+
for (var g = Je(this.baseHash, o.hash), y = "", f = 0; f < this.rules.length; f++) {
|
|
4177
|
+
var b = this.rules[f];
|
|
4178
|
+
if (typeof b == "string") y += b, k.env.NODE_ENV !== "production" && (g = Je(g, b));
|
|
4179
|
+
else if (b) {
|
|
4180
|
+
var A = An(et(b, t, n, o));
|
|
4181
|
+
g = Je(g, A), y += A;
|
|
4182
|
+
}
|
|
4183
|
+
}
|
|
4184
|
+
if (y) {
|
|
4185
|
+
var v = Dr(g >>> 0);
|
|
4186
|
+
n.hasNameForId(this.componentId, v) || n.insertRules(this.componentId, v, o(y, ".".concat(v), void 0, this.componentId)), a = Xe(a, v);
|
|
4187
|
+
}
|
|
4188
|
+
}
|
|
4189
|
+
return a;
|
|
4190
|
+
}, e;
|
|
4191
|
+
}(), Ri = tt.createContext(void 0);
|
|
4192
|
+
Ri.Consumer;
|
|
4193
|
+
var Ar = {}, _n = /* @__PURE__ */ new Set();
|
|
4194
|
+
function Ia(e, t, n) {
|
|
4195
|
+
var o = Gr(e), a = e, c = !vr(e), l = t.attrs, d = l === void 0 ? fr : l, g = t.componentId, y = g === void 0 ? function(j, Y) {
|
|
4196
|
+
var F = typeof j != "string" ? "sc" : bn(j);
|
|
4197
|
+
Ar[F] = (Ar[F] || 0) + 1;
|
|
4198
|
+
var O = "".concat(F, "-").concat(ta("6.0.7" + F + Ar[F]));
|
|
4199
|
+
return Y ? "".concat(Y, "-").concat(O) : O;
|
|
4200
|
+
}(t.displayName, t.parentComponentId) : g, f = t.displayName, b = f === void 0 ? function(j) {
|
|
4201
|
+
return vr(j) ? "styled.".concat(j) : "Styled(".concat(hi(j), ")");
|
|
4202
|
+
}(e) : f, A = t.displayName && t.componentId ? "".concat(bn(t.displayName), "-").concat(t.componentId) : t.componentId || y, v = o && a.attrs ? a.attrs.concat(d).filter(Boolean) : d, S = t.shouldForwardProp;
|
|
4203
|
+
if (o && a.shouldForwardProp) {
|
|
4204
|
+
var T = a.shouldForwardProp;
|
|
4205
|
+
if (t.shouldForwardProp) {
|
|
4206
|
+
var H = t.shouldForwardProp;
|
|
4207
|
+
S = function(j, Y) {
|
|
4208
|
+
return T(j, Y) && H(j, Y);
|
|
4209
|
+
};
|
|
4210
|
+
} else S = T;
|
|
4211
|
+
}
|
|
4212
|
+
var _ = new _a(n, A, o ? a.componentStyle : void 0);
|
|
4213
|
+
function C(j, Y) {
|
|
4214
|
+
return function(F, O, ie) {
|
|
4215
|
+
var me = F.attrs, it = F.componentStyle, At = F.defaultProps, ot = F.foldedComponentIds, pe = F.styledComponentId, ve = F.target, De = tt.useContext(Ri), st = Cn(), Ue = F.shouldForwardProp || st.shouldForwardProp;
|
|
4216
|
+
k.env.NODE_ENV !== "production" && rn(pe);
|
|
4217
|
+
var ue = function(J, X, Re) {
|
|
4218
|
+
for (var he, ae = fe(fe({}, X), { className: void 0, theme: Re }), Be = 0; Be < J.length; Be += 1) {
|
|
4219
|
+
var ye = Et(he = J[Be]) ? he(ae) : he;
|
|
4220
|
+
for (var se in ye) ae[se] = se === "className" ? Xe(ae[se], ye[se]) : se === "style" ? fe(fe({}, ae[se]), ye[se]) : ye[se];
|
|
4221
|
+
}
|
|
4222
|
+
return X.className && (ae.className = Xe(ae.className, X.className)), ae;
|
|
4223
|
+
}(me, O, Xs(O, De, At) || wt), Ce = ue.as || ve, Oe = {};
|
|
4224
|
+
for (var oe in ue) ue[oe] === void 0 || oe[0] === "$" || oe === "as" || oe === "theme" || (oe === "forwardedAs" ? Oe.as = ue.forwardedAs : Ue && !Ue(oe, Ce) || (Oe[oe] = ue[oe], Ue || k.env.NODE_ENV !== "development" || Os(oe) || _n.has(oe) || !Nr.has(Ce) || (_n.add(oe), console.warn('styled-components: it looks like an unknown prop "'.concat(oe, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
4225
|
+
var $e = function(J, X) {
|
|
4226
|
+
var Re = Cn(), he = J.generateAndInjectStyles(X, Re.styleSheet, Re.stylis);
|
|
4227
|
+
return k.env.NODE_ENV !== "production" && rn(he), he;
|
|
4228
|
+
}(it, ue);
|
|
4229
|
+
k.env.NODE_ENV !== "production" && F.warnTooManyClasses && F.warnTooManyClasses($e);
|
|
4230
|
+
var ze = Xe(ot, pe);
|
|
4231
|
+
return $e && (ze += " " + $e), ue.className && (ze += " " + ue.className), Oe[vr(Ce) && !Nr.has(Ce) ? "class" : "className"] = ze, Oe.ref = ie, Ui(Ce, Oe);
|
|
4232
|
+
}(D, j, Y);
|
|
4233
|
+
}
|
|
4234
|
+
k.env.NODE_ENV !== "production" && (C.displayName = b);
|
|
4235
|
+
var D = tt.forwardRef(C);
|
|
4236
|
+
return D.attrs = v, D.componentStyle = _, D.shouldForwardProp = S, k.env.NODE_ENV !== "production" && (D.displayName = b), D.foldedComponentIds = o ? Xe(a.foldedComponentIds, a.styledComponentId) : "", D.styledComponentId = A, D.target = o ? a.target : e, Object.defineProperty(D, "defaultProps", { get: function() {
|
|
4237
|
+
return this._foldedDefaultProps;
|
|
4238
|
+
}, set: function(j) {
|
|
4239
|
+
this._foldedDefaultProps = o ? function(Y) {
|
|
4240
|
+
for (var F = [], O = 1; O < arguments.length; O++) F[O - 1] = arguments[O];
|
|
4241
|
+
for (var ie = 0, me = F; ie < me.length; ie++) Ur(Y, me[ie], !0);
|
|
4242
|
+
return Y;
|
|
4243
|
+
}({}, a.defaultProps, j) : j;
|
|
4244
|
+
} }), k.env.NODE_ENV !== "production" && (Ks(b, A), D.warnTooManyClasses = /* @__PURE__ */ function(j, Y) {
|
|
4245
|
+
var F = {}, O = !1;
|
|
4246
|
+
return function(ie) {
|
|
4247
|
+
if (!O && (F[ie] = !0, Object.keys(F).length >= 200)) {
|
|
4248
|
+
var me = Y ? ' with the id of "'.concat(Y, '"') : "";
|
|
4249
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(j).concat(me, `.
|
|
4250
|
+
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
4251
|
+
Example:
|
|
4252
|
+
const Component = styled.div.attrs(props => ({
|
|
4253
|
+
style: {
|
|
4254
|
+
background: props.background,
|
|
4255
|
+
},
|
|
4256
|
+
}))\`width: 100%;\`
|
|
4257
|
+
|
|
4258
|
+
<Component />`), O = !0, F = {};
|
|
4259
|
+
}
|
|
4260
|
+
};
|
|
4261
|
+
}(b, A)), Jr(D, function() {
|
|
4262
|
+
return ".".concat(D.styledComponentId);
|
|
4263
|
+
}), c && gi(D, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), D;
|
|
4264
|
+
}
|
|
4265
|
+
function In(e, t) {
|
|
4266
|
+
for (var n = [e[0]], o = 0, a = t.length; o < a; o += 1) n.push(t[o], e[o + 1]);
|
|
4267
|
+
return n;
|
|
4268
|
+
}
|
|
4269
|
+
var Pn = function(e) {
|
|
4270
|
+
return Object.assign(e, { isCss: !0 });
|
|
4271
|
+
};
|
|
4272
|
+
function Pa(e) {
|
|
4273
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
4274
|
+
if (Et(e) || bt(e)) {
|
|
4275
|
+
var o = e;
|
|
4276
|
+
return Pn(et(In(fr, yt([o], t, !0))));
|
|
4277
|
+
}
|
|
4278
|
+
var a = e;
|
|
4279
|
+
return t.length === 0 && a.length === 1 && typeof a[0] == "string" ? et(a) : Pn(et(In(a, t)));
|
|
4280
|
+
}
|
|
4281
|
+
function jr(e, t, n) {
|
|
4282
|
+
if (n === void 0 && (n = wt), !t) throw Rt(1, t);
|
|
4283
|
+
var o = function(a) {
|
|
4284
|
+
for (var c = [], l = 1; l < arguments.length; l++) c[l - 1] = arguments[l];
|
|
4285
|
+
return e(t, n, Pa.apply(void 0, yt([a], c, !1)));
|
|
4286
|
+
};
|
|
4287
|
+
return o.attrs = function(a) {
|
|
4288
|
+
return jr(e, t, fe(fe({}, n), { attrs: Array.prototype.concat(n.attrs, a).filter(Boolean) }));
|
|
4289
|
+
}, o.withConfig = function(a) {
|
|
4290
|
+
return jr(e, t, fe(fe({}, n), a));
|
|
4291
|
+
}, o;
|
|
4292
|
+
}
|
|
4293
|
+
var Ai = function(e) {
|
|
4294
|
+
return jr(Ia, e);
|
|
4295
|
+
}, Ti = Ai;
|
|
4296
|
+
Nr.forEach(function(e) {
|
|
4297
|
+
Ti[e] = Ai(e);
|
|
4298
|
+
});
|
|
4299
|
+
k.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
4300
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
4301
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
4302
|
+
var qt = "__sc-".concat(nt, "__");
|
|
4303
|
+
k.env.NODE_ENV !== "production" && k.env.NODE_ENV !== "test" && typeof window < "u" && (window[qt] || (window[qt] = 0), window[qt] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
4304
|
+
|
|
4305
|
+
See https://s-c.sh/2BAXzed for more info.`), window[qt] += 1);
|
|
4306
|
+
const Fa = Ti.div`
|
|
4307
|
+
min-height: 22px;
|
|
4308
|
+
width: 100%;
|
|
4309
|
+
`, Mr = {
|
|
4310
|
+
HeightDiv: Fa
|
|
4311
|
+
}, ka = ({ data: e, replaceValues: t, pathname: n }) => {
|
|
4312
|
+
const o = e?.items.map(({ spec: c }) => c);
|
|
4313
|
+
if (!o)
|
|
4314
|
+
return null;
|
|
4315
|
+
const a = As({
|
|
4316
|
+
data: o,
|
|
4317
|
+
replaceValues: t,
|
|
4318
|
+
pathname: n
|
|
4319
|
+
});
|
|
4320
|
+
return a ? /* @__PURE__ */ Ze.jsx(Mr.HeightDiv, { children: /* @__PURE__ */ Ze.jsx(Mi, { separator: ">", items: a.breadcrumbItems }) }) : /* @__PURE__ */ Ze.jsx(Mr.HeightDiv, {});
|
|
4321
|
+
}, nc = ({
|
|
4322
|
+
uri: e,
|
|
4323
|
+
refetchInterval: t,
|
|
4324
|
+
isEnabled: n,
|
|
4325
|
+
replaceValues: o,
|
|
4326
|
+
pathname: a
|
|
4327
|
+
}) => {
|
|
4328
|
+
const {
|
|
4329
|
+
data: c,
|
|
4330
|
+
isError: l,
|
|
4331
|
+
isLoading: d
|
|
4332
|
+
} = vs({
|
|
4333
|
+
uri: e,
|
|
4334
|
+
refetchInterval: t,
|
|
4335
|
+
queryKey: ["breadcrumb", e],
|
|
4336
|
+
isEnabled: n
|
|
4337
|
+
});
|
|
4338
|
+
return l ? null : d ? /* @__PURE__ */ Ze.jsx(Mr.HeightDiv, { children: /* @__PURE__ */ Ze.jsx($i, {}) }) : c ? /* @__PURE__ */ Ze.jsx(ka, { data: c, replaceValues: o, pathname: a }) : null;
|
|
4339
|
+
};
|
|
4340
|
+
export {
|
|
4341
|
+
ka as ManageableBreadcrumbs,
|
|
4342
|
+
nc as ManageableBreadcrumbsWithDataProvider,
|
|
4343
|
+
As as prepareDataForManageableBreadcrumbs
|
|
4344
|
+
};
|
|
4345
|
+
//# sourceMappingURL=openapi-k8s-toolkit.es.js.map
|