@tracktor/shared-module 2.12.2 → 2.12.4
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/CHANGELOG.md +1 -1
- package/dist/axios.cjs +1 -0
- package/dist/axios.d.ts +1 -0
- package/dist/axios.js +14 -0
- package/dist/{config/orval/axiosCustomInstance.ts → axiosCustomInstance.ts} +0 -1
- package/dist/main.cjs +25 -0
- package/dist/main.d.ts +0 -1
- package/dist/main.js +653 -2316
- package/package.json +26 -8
- package/src/axios/axiosCustomInstance.ts +23 -0
- package/dist/main.umd.cjs +0 -30
- /package/dist/{config/orval → axios}/axiosCustomInstance.d.ts +0 -0
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import We, { createContext as gt, useMemo as fe, useContext as k, useState as Ve, useRef as ht, useEffect as z, Suspense as yt, useCallback as te } from "react";
|
|
2
|
+
var le = { exports: {} }, J = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,21 +9,21 @@ var Me = { exports: {} }, ie = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
for (
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof:
|
|
12
|
+
var $e;
|
|
13
|
+
function mt() {
|
|
14
|
+
if ($e) return J;
|
|
15
|
+
$e = 1;
|
|
16
|
+
var t = We, n = Symbol.for("react.element"), o = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function f(d, u, m) {
|
|
18
|
+
var g, S = {}, P = null, s = null;
|
|
19
|
+
m !== void 0 && (P = "" + m), u.key !== void 0 && (P = "" + u.key), u.ref !== void 0 && (s = u.ref);
|
|
20
|
+
for (g in u) i.call(u, g) && !l.hasOwnProperty(g) && (S[g] = u[g]);
|
|
21
|
+
if (d && d.defaultProps) for (g in u = d.defaultProps, u) S[g] === void 0 && (S[g] = u[g]);
|
|
22
|
+
return { $$typeof: n, type: d, key: P, ref: s, props: S, _owner: a.current };
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return J.Fragment = o, J.jsx = f, J.jsxs = f, J;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var K = {};
|
|
27
27
|
/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.development.js
|
|
@@ -33,91 +33,91 @@ var ae = {};
|
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
var
|
|
40
|
-
function
|
|
41
|
-
if (
|
|
36
|
+
var Ne;
|
|
37
|
+
function Et() {
|
|
38
|
+
return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var t = We, n = Symbol.for("react.element"), o = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), s = Symbol.for("react.offscreen"), C = Symbol.iterator, R = "@@iterator";
|
|
40
|
+
function b(e) {
|
|
41
|
+
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var
|
|
44
|
-
return typeof
|
|
43
|
+
var r = C && e[C] || e[R];
|
|
44
|
+
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var h = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function _(e) {
|
|
48
48
|
{
|
|
49
|
-
for (var
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
for (var r = arguments.length, c = new Array(r > 1 ? r - 1 : 0), v = 1; v < r; v++)
|
|
50
|
+
c[v - 1] = arguments[v];
|
|
51
|
+
x("error", e, c);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function x(e, r, c) {
|
|
55
55
|
{
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
var
|
|
59
|
-
return String(
|
|
56
|
+
var v = h.ReactDebugCurrentFrame, w = v.getStackAddendum();
|
|
57
|
+
w !== "" && (r += "%s", c = c.concat([w]));
|
|
58
|
+
var p = c.map(function(E) {
|
|
59
|
+
return String(E);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
function
|
|
67
|
-
return !!(typeof
|
|
64
|
+
var F = !1, L = !1, $ = !1, T = !1, de = !1, re;
|
|
65
|
+
re = Symbol.for("react.module.reference");
|
|
66
|
+
function q(e) {
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === i || e === l || de || e === a || e === m || e === g || T || e === s || F || L || $ || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === S || e.$$typeof === f || e.$$typeof === d || e.$$typeof === u || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
|
-
|
|
71
|
+
e.$$typeof === re || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
77
|
-
var
|
|
78
|
-
return
|
|
73
|
+
function ze(e, r, c) {
|
|
74
|
+
var v = e.displayName;
|
|
75
|
+
if (v)
|
|
76
|
+
return v;
|
|
77
|
+
var w = r.displayName || r.name || "";
|
|
78
|
+
return w !== "" ? c + "(" + w + ")" : c;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return
|
|
80
|
+
function ve(e) {
|
|
81
|
+
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
if (
|
|
83
|
+
function W(e) {
|
|
84
|
+
if (e == null)
|
|
85
85
|
return null;
|
|
86
|
-
if (typeof
|
|
87
|
-
return
|
|
88
|
-
if (typeof
|
|
89
|
-
return
|
|
90
|
-
switch (
|
|
91
|
-
case
|
|
86
|
+
if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
|
+
return e.displayName || e.name || null;
|
|
88
|
+
if (typeof e == "string")
|
|
89
|
+
return e;
|
|
90
|
+
switch (e) {
|
|
91
|
+
case i:
|
|
92
92
|
return "Fragment";
|
|
93
|
-
case
|
|
93
|
+
case o:
|
|
94
94
|
return "Portal";
|
|
95
|
-
case
|
|
95
|
+
case l:
|
|
96
96
|
return "Profiler";
|
|
97
|
-
case
|
|
97
|
+
case a:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case
|
|
99
|
+
case m:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case g:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
|
-
if (typeof
|
|
105
|
-
switch (
|
|
106
|
-
case
|
|
107
|
-
var
|
|
108
|
-
return
|
|
109
|
-
case i:
|
|
110
|
-
var g = a;
|
|
111
|
-
return rt(g._context) + ".Provider";
|
|
104
|
+
if (typeof e == "object")
|
|
105
|
+
switch (e.$$typeof) {
|
|
106
|
+
case d:
|
|
107
|
+
var r = e;
|
|
108
|
+
return ve(r) + ".Consumer";
|
|
112
109
|
case f:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
var
|
|
110
|
+
var c = e;
|
|
111
|
+
return ve(c._context) + ".Provider";
|
|
112
|
+
case u:
|
|
113
|
+
return ze(e, e.render, "ForwardRef");
|
|
114
|
+
case S:
|
|
115
|
+
var v = e.displayName || null;
|
|
116
|
+
return v !== null ? v : W(e.type) || "Memo";
|
|
117
|
+
case P: {
|
|
118
|
+
var w = e, p = w._payload, E = w._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return W(E(p));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,558 +125,554 @@ function Mr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
128
|
+
var V = Object.assign, G = 0, ge, he, ye, me, Ee, we, Re;
|
|
129
|
+
function _e() {
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
function
|
|
131
|
+
_e.__reactDisabledLog = !0;
|
|
132
|
+
function Ue() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
|
|
136
|
-
var
|
|
134
|
+
if (G === 0) {
|
|
135
|
+
ge = console.log, he = console.info, ye = console.warn, me = console.error, Ee = console.group, we = console.groupCollapsed, Re = console.groupEnd;
|
|
136
|
+
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
139
|
-
value:
|
|
139
|
+
value: _e,
|
|
140
140
|
writable: !0
|
|
141
141
|
};
|
|
142
142
|
Object.defineProperties(console, {
|
|
143
|
-
info:
|
|
144
|
-
log:
|
|
145
|
-
warn:
|
|
146
|
-
error:
|
|
147
|
-
group:
|
|
148
|
-
groupCollapsed:
|
|
149
|
-
groupEnd:
|
|
143
|
+
info: e,
|
|
144
|
+
log: e,
|
|
145
|
+
warn: e,
|
|
146
|
+
error: e,
|
|
147
|
+
group: e,
|
|
148
|
+
groupCollapsed: e,
|
|
149
|
+
groupEnd: e
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
G++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Me() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
158
|
-
var
|
|
157
|
+
if (G--, G === 0) {
|
|
158
|
+
var e = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
161
161
|
writable: !0
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
165
|
-
value:
|
|
164
|
+
log: V({}, e, {
|
|
165
|
+
value: ge
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
168
|
-
value:
|
|
167
|
+
info: V({}, e, {
|
|
168
|
+
value: he
|
|
169
169
|
}),
|
|
170
|
-
warn:
|
|
171
|
-
value:
|
|
170
|
+
warn: V({}, e, {
|
|
171
|
+
value: ye
|
|
172
172
|
}),
|
|
173
|
-
error:
|
|
174
|
-
value:
|
|
173
|
+
error: V({}, e, {
|
|
174
|
+
value: me
|
|
175
175
|
}),
|
|
176
|
-
group:
|
|
177
|
-
value:
|
|
176
|
+
group: V({}, e, {
|
|
177
|
+
value: Ee
|
|
178
178
|
}),
|
|
179
|
-
groupCollapsed:
|
|
180
|
-
value:
|
|
179
|
+
groupCollapsed: V({}, e, {
|
|
180
|
+
value: we
|
|
181
181
|
}),
|
|
182
|
-
groupEnd:
|
|
183
|
-
value:
|
|
182
|
+
groupEnd: V({}, e, {
|
|
183
|
+
value: Re
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
G < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var
|
|
191
|
-
function
|
|
190
|
+
var ne = h.ReactCurrentDispatcher, oe;
|
|
191
|
+
function B(e, r, c) {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (oe === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var
|
|
198
|
-
|
|
196
|
+
} catch (w) {
|
|
197
|
+
var v = w.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
oe = v && v[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
|
-
` +
|
|
201
|
+
` + oe + e;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var ae = !1, Q;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
|
|
206
|
+
var Ge = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
Q = new Ge();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!
|
|
209
|
+
function pe(e, r) {
|
|
210
|
+
if (!e || ae)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
if (
|
|
215
|
-
return
|
|
213
|
+
var c = Q.get(e);
|
|
214
|
+
if (c !== void 0)
|
|
215
|
+
return c;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
218
|
-
|
|
219
|
-
var
|
|
217
|
+
var v;
|
|
218
|
+
ae = !0;
|
|
219
|
+
var w = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var p;
|
|
222
|
+
p = ne.current, ne.current = null, Ue();
|
|
223
223
|
try {
|
|
224
|
-
if (
|
|
225
|
-
var
|
|
224
|
+
if (r) {
|
|
225
|
+
var E = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(E.prototype, "props", {
|
|
229
229
|
set: function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
}
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
|
-
Reflect.construct(
|
|
235
|
-
} catch (
|
|
236
|
-
|
|
234
|
+
Reflect.construct(E, []);
|
|
235
|
+
} catch (N) {
|
|
236
|
+
v = N;
|
|
237
237
|
}
|
|
238
|
-
Reflect.construct(
|
|
238
|
+
Reflect.construct(e, [], E);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
|
-
|
|
242
|
-
} catch (
|
|
243
|
-
|
|
241
|
+
E.call();
|
|
242
|
+
} catch (N) {
|
|
243
|
+
v = N;
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
e.call(E.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
|
|
250
|
+
} catch (N) {
|
|
251
|
+
v = N;
|
|
252
252
|
}
|
|
253
|
-
|
|
253
|
+
e();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var
|
|
258
|
-
`),
|
|
259
|
-
`), j =
|
|
260
|
-
|
|
261
|
-
for (; j >= 1 &&
|
|
262
|
-
if (
|
|
263
|
-
if (j !== 1 ||
|
|
255
|
+
} catch (N) {
|
|
256
|
+
if (N && v && typeof N.stack == "string") {
|
|
257
|
+
for (var y = N.stack.split(`
|
|
258
|
+
`), A = v.stack.split(`
|
|
259
|
+
`), j = y.length - 1, O = A.length - 1; j >= 1 && O >= 0 && y[j] !== A[O]; )
|
|
260
|
+
O--;
|
|
261
|
+
for (; j >= 1 && O >= 0; j--, O--)
|
|
262
|
+
if (y[j] !== A[O]) {
|
|
263
|
+
if (j !== 1 || O !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (j--,
|
|
266
|
-
var
|
|
267
|
-
` +
|
|
268
|
-
return
|
|
265
|
+
if (j--, O--, O < 0 || y[j] !== A[O]) {
|
|
266
|
+
var I = `
|
|
267
|
+
` + y[j].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, I), I;
|
|
269
269
|
}
|
|
270
|
-
while (j >= 1 &&
|
|
270
|
+
while (j >= 1 && O >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
ae = !1, ne.current = p, Me(), Error.prepareStackTrace = w;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof
|
|
277
|
+
var M = e ? e.displayName || e.name : "", Le = M ? B(M) : "";
|
|
278
|
+
return typeof e == "function" && Q.set(e, Le), Le;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function Je(e, r, c) {
|
|
281
|
+
return pe(e, !1);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
var
|
|
285
|
-
return !!(
|
|
283
|
+
function Ke(e) {
|
|
284
|
+
var r = e.prototype;
|
|
285
|
+
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
if (
|
|
287
|
+
function X(e, r, c) {
|
|
288
|
+
if (e == null)
|
|
289
289
|
return "";
|
|
290
|
-
if (typeof
|
|
291
|
-
return
|
|
292
|
-
if (typeof
|
|
293
|
-
return
|
|
294
|
-
switch (
|
|
295
|
-
case
|
|
296
|
-
return
|
|
297
|
-
case
|
|
298
|
-
return
|
|
290
|
+
if (typeof e == "function")
|
|
291
|
+
return pe(e, Ke(e));
|
|
292
|
+
if (typeof e == "string")
|
|
293
|
+
return B(e);
|
|
294
|
+
switch (e) {
|
|
295
|
+
case m:
|
|
296
|
+
return B("Suspense");
|
|
297
|
+
case g:
|
|
298
|
+
return B("SuspenseList");
|
|
299
299
|
}
|
|
300
|
-
if (typeof
|
|
301
|
-
switch (
|
|
302
|
-
case
|
|
303
|
-
return
|
|
304
|
-
case
|
|
305
|
-
return
|
|
306
|
-
case
|
|
307
|
-
var
|
|
300
|
+
if (typeof e == "object")
|
|
301
|
+
switch (e.$$typeof) {
|
|
302
|
+
case u:
|
|
303
|
+
return Je(e.render);
|
|
304
|
+
case S:
|
|
305
|
+
return X(e.type, r, c);
|
|
306
|
+
case P: {
|
|
307
|
+
var v = e, w = v._payload, p = v._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return X(p(w), r, c);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
318
|
-
if (
|
|
319
|
-
var
|
|
320
|
-
|
|
316
|
+
var H = Object.prototype.hasOwnProperty, Ce = {}, Se = h.ReactDebugCurrentFrame;
|
|
317
|
+
function Z(e) {
|
|
318
|
+
if (e) {
|
|
319
|
+
var r = e._owner, c = X(e.type, e._source, r ? r.type : null);
|
|
320
|
+
Se.setExtraStackFrame(c);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
Se.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function qe(e, r, c, v, w) {
|
|
325
325
|
{
|
|
326
|
-
var
|
|
327
|
-
for (var
|
|
328
|
-
if (
|
|
329
|
-
var
|
|
326
|
+
var p = Function.call.bind(H);
|
|
327
|
+
for (var E in e)
|
|
328
|
+
if (p(e, E)) {
|
|
329
|
+
var y = void 0;
|
|
330
330
|
try {
|
|
331
|
-
if (typeof
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
331
|
+
if (typeof e[E] != "function") {
|
|
332
|
+
var A = Error((v || "React class") + ": " + c + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw A.name = "Invariant Violation", A;
|
|
334
334
|
}
|
|
335
|
-
|
|
335
|
+
y = e[E](r, E, v, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (j) {
|
|
337
|
-
|
|
337
|
+
y = j;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
y && !(y instanceof Error) && (Z(w), _("%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).", v || "React class", c, E, typeof y), Z(null)), y instanceof Error && !(y.message in Ce) && (Ce[y.message] = !0, Z(w), _("Failed %s type: %s", c, y.message), Z(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
return
|
|
343
|
+
var Be = Array.isArray;
|
|
344
|
+
function ie(e) {
|
|
345
|
+
return Be(e);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function Qe(e) {
|
|
348
348
|
{
|
|
349
|
-
var
|
|
350
|
-
return
|
|
349
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, c = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
+
return c;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Xe(e) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return Pe(e), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
return "" +
|
|
360
|
+
function Pe(e) {
|
|
361
|
+
return "" + e;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
if (
|
|
365
|
-
return
|
|
363
|
+
function be(e) {
|
|
364
|
+
if (Xe(e))
|
|
365
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qe(e)), Pe(e);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var je = h.ReactCurrentOwner, He = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
},
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
if (h && h.isReactWarning)
|
|
372
|
+
}, Oe, Te;
|
|
373
|
+
function Ze(e) {
|
|
374
|
+
if (H.call(e, "ref")) {
|
|
375
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
|
+
if (r && r.isReactWarning)
|
|
378
377
|
return !1;
|
|
379
378
|
}
|
|
380
|
-
return
|
|
379
|
+
return e.ref !== void 0;
|
|
381
380
|
}
|
|
382
|
-
function
|
|
383
|
-
if (
|
|
384
|
-
var
|
|
385
|
-
if (
|
|
381
|
+
function et(e) {
|
|
382
|
+
if (H.call(e, "key")) {
|
|
383
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
|
+
if (r && r.isReactWarning)
|
|
386
385
|
return !1;
|
|
387
386
|
}
|
|
388
|
-
return
|
|
387
|
+
return e.key !== void 0;
|
|
389
388
|
}
|
|
390
|
-
function
|
|
391
|
-
|
|
392
|
-
var g = V(se.current.type);
|
|
393
|
-
De[g] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', V(se.current.type), a.ref), De[g] = !0);
|
|
394
|
-
}
|
|
389
|
+
function tt(e, r) {
|
|
390
|
+
typeof e.ref == "string" && je.current;
|
|
395
391
|
}
|
|
396
|
-
function
|
|
392
|
+
function rt(e, r) {
|
|
397
393
|
{
|
|
398
|
-
var
|
|
399
|
-
|
|
394
|
+
var c = function() {
|
|
395
|
+
Oe || (Oe = !0, _("%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)", r));
|
|
400
396
|
};
|
|
401
|
-
|
|
402
|
-
get:
|
|
397
|
+
c.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
+
get: c,
|
|
403
399
|
configurable: !0
|
|
404
400
|
});
|
|
405
401
|
}
|
|
406
402
|
}
|
|
407
|
-
function
|
|
403
|
+
function nt(e, r) {
|
|
408
404
|
{
|
|
409
|
-
var
|
|
410
|
-
|
|
405
|
+
var c = function() {
|
|
406
|
+
Te || (Te = !0, _("%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)", r));
|
|
411
407
|
};
|
|
412
|
-
|
|
413
|
-
get:
|
|
408
|
+
c.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
|
+
get: c,
|
|
414
410
|
configurable: !0
|
|
415
411
|
});
|
|
416
412
|
}
|
|
417
413
|
}
|
|
418
|
-
var
|
|
419
|
-
var
|
|
414
|
+
var ot = function(e, r, c, v, w, p, E) {
|
|
415
|
+
var y = {
|
|
420
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
|
-
$$typeof:
|
|
417
|
+
$$typeof: n,
|
|
422
418
|
// Built-in properties that belong on the element
|
|
423
|
-
type:
|
|
424
|
-
key:
|
|
425
|
-
ref:
|
|
426
|
-
props:
|
|
419
|
+
type: e,
|
|
420
|
+
key: r,
|
|
421
|
+
ref: c,
|
|
422
|
+
props: E,
|
|
427
423
|
// Record the component responsible for creating this element.
|
|
428
|
-
_owner:
|
|
424
|
+
_owner: p
|
|
429
425
|
};
|
|
430
|
-
return
|
|
426
|
+
return y._store = {}, Object.defineProperty(y._store, "validated", {
|
|
431
427
|
configurable: !1,
|
|
432
428
|
enumerable: !1,
|
|
433
429
|
writable: !0,
|
|
434
430
|
value: !1
|
|
435
|
-
}), Object.defineProperty(
|
|
431
|
+
}), Object.defineProperty(y, "_self", {
|
|
436
432
|
configurable: !1,
|
|
437
433
|
enumerable: !1,
|
|
438
434
|
writable: !1,
|
|
439
|
-
value:
|
|
440
|
-
}), Object.defineProperty(
|
|
435
|
+
value: v
|
|
436
|
+
}), Object.defineProperty(y, "_source", {
|
|
441
437
|
configurable: !1,
|
|
442
438
|
enumerable: !1,
|
|
443
439
|
writable: !1,
|
|
444
|
-
value:
|
|
445
|
-
}), Object.freeze && (Object.freeze(
|
|
440
|
+
value: w
|
|
441
|
+
}), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
|
|
446
442
|
};
|
|
447
|
-
function
|
|
443
|
+
function at(e, r, c, v, w) {
|
|
448
444
|
{
|
|
449
|
-
var
|
|
450
|
-
|
|
451
|
-
for (
|
|
452
|
-
|
|
453
|
-
if (
|
|
454
|
-
var j =
|
|
455
|
-
for (
|
|
456
|
-
|
|
445
|
+
var p, E = {}, y = null, A = null;
|
|
446
|
+
c !== void 0 && (be(c), y = "" + c), et(r) && (be(r.key), y = "" + r.key), Ze(r) && (A = r.ref, tt(r, w));
|
|
447
|
+
for (p in r)
|
|
448
|
+
H.call(r, p) && !He.hasOwnProperty(p) && (E[p] = r[p]);
|
|
449
|
+
if (e && e.defaultProps) {
|
|
450
|
+
var j = e.defaultProps;
|
|
451
|
+
for (p in j)
|
|
452
|
+
E[p] === void 0 && (E[p] = j[p]);
|
|
457
453
|
}
|
|
458
|
-
if (
|
|
459
|
-
var
|
|
460
|
-
|
|
454
|
+
if (y || A) {
|
|
455
|
+
var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
+
y && rt(E, O), A && nt(E, O);
|
|
461
457
|
}
|
|
462
|
-
return
|
|
458
|
+
return ot(e, y, A, w, v, je.current, E);
|
|
463
459
|
}
|
|
464
460
|
}
|
|
465
|
-
var
|
|
466
|
-
function
|
|
467
|
-
if (
|
|
468
|
-
var
|
|
469
|
-
|
|
461
|
+
var ce = h.ReactCurrentOwner, Ae = h.ReactDebugCurrentFrame;
|
|
462
|
+
function U(e) {
|
|
463
|
+
if (e) {
|
|
464
|
+
var r = e._owner, c = X(e.type, e._source, r ? r.type : null);
|
|
465
|
+
Ae.setExtraStackFrame(c);
|
|
470
466
|
} else
|
|
471
|
-
|
|
467
|
+
Ae.setExtraStackFrame(null);
|
|
472
468
|
}
|
|
473
|
-
var
|
|
474
|
-
|
|
475
|
-
function
|
|
476
|
-
return typeof
|
|
469
|
+
var se;
|
|
470
|
+
se = !1;
|
|
471
|
+
function ue(e) {
|
|
472
|
+
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
477
473
|
}
|
|
478
|
-
function
|
|
474
|
+
function xe() {
|
|
479
475
|
{
|
|
480
|
-
if (
|
|
481
|
-
var
|
|
482
|
-
if (
|
|
476
|
+
if (ce.current) {
|
|
477
|
+
var e = W(ce.current.type);
|
|
478
|
+
if (e)
|
|
483
479
|
return `
|
|
484
480
|
|
|
485
|
-
Check the render method of \`` +
|
|
481
|
+
Check the render method of \`` + e + "`.";
|
|
486
482
|
}
|
|
487
483
|
return "";
|
|
488
484
|
}
|
|
489
485
|
}
|
|
490
|
-
function
|
|
486
|
+
function it(e) {
|
|
491
487
|
return "";
|
|
492
488
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
489
|
+
var Ie = {};
|
|
490
|
+
function ct(e) {
|
|
495
491
|
{
|
|
496
|
-
var
|
|
497
|
-
if (!
|
|
498
|
-
var
|
|
499
|
-
|
|
492
|
+
var r = xe();
|
|
493
|
+
if (!r) {
|
|
494
|
+
var c = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
|
+
c && (r = `
|
|
500
496
|
|
|
501
|
-
Check the top-level render call using <` +
|
|
497
|
+
Check the top-level render call using <` + c + ">.");
|
|
502
498
|
}
|
|
503
|
-
return
|
|
499
|
+
return r;
|
|
504
500
|
}
|
|
505
501
|
}
|
|
506
|
-
function
|
|
502
|
+
function De(e, r) {
|
|
507
503
|
{
|
|
508
|
-
if (!
|
|
504
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
509
505
|
return;
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
if (
|
|
506
|
+
e._store.validated = !0;
|
|
507
|
+
var c = ct(r);
|
|
508
|
+
if (Ie[c])
|
|
513
509
|
return;
|
|
514
|
-
|
|
515
|
-
var
|
|
516
|
-
|
|
510
|
+
Ie[c] = !0;
|
|
511
|
+
var v = "";
|
|
512
|
+
e && e._owner && e._owner !== ce.current && (v = " It was passed a child from " + W(e._owner.type) + "."), U(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, v), U(null);
|
|
517
513
|
}
|
|
518
514
|
}
|
|
519
|
-
function
|
|
515
|
+
function ke(e, r) {
|
|
520
516
|
{
|
|
521
|
-
if (typeof
|
|
517
|
+
if (typeof e != "object")
|
|
522
518
|
return;
|
|
523
|
-
if (
|
|
524
|
-
for (var
|
|
525
|
-
var
|
|
526
|
-
|
|
519
|
+
if (ie(e))
|
|
520
|
+
for (var c = 0; c < e.length; c++) {
|
|
521
|
+
var v = e[c];
|
|
522
|
+
ue(v) && De(v, r);
|
|
527
523
|
}
|
|
528
|
-
else if (
|
|
529
|
-
|
|
530
|
-
else if (
|
|
531
|
-
var
|
|
532
|
-
if (typeof
|
|
533
|
-
for (var
|
|
534
|
-
|
|
524
|
+
else if (ue(e))
|
|
525
|
+
e._store && (e._store.validated = !0);
|
|
526
|
+
else if (e) {
|
|
527
|
+
var w = b(e);
|
|
528
|
+
if (typeof w == "function" && w !== e.entries)
|
|
529
|
+
for (var p = w.call(e), E; !(E = p.next()).done; )
|
|
530
|
+
ue(E.value) && De(E.value, r);
|
|
535
531
|
}
|
|
536
532
|
}
|
|
537
533
|
}
|
|
538
|
-
function
|
|
534
|
+
function st(e) {
|
|
539
535
|
{
|
|
540
|
-
var
|
|
541
|
-
if (
|
|
536
|
+
var r = e.type;
|
|
537
|
+
if (r == null || typeof r == "string")
|
|
542
538
|
return;
|
|
543
|
-
var
|
|
544
|
-
if (typeof
|
|
545
|
-
|
|
546
|
-
else if (typeof
|
|
539
|
+
var c;
|
|
540
|
+
if (typeof r == "function")
|
|
541
|
+
c = r.propTypes;
|
|
542
|
+
else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
|
|
547
543
|
// Inner props are checked in the reconciler.
|
|
548
|
-
|
|
549
|
-
|
|
544
|
+
r.$$typeof === S))
|
|
545
|
+
c = r.propTypes;
|
|
550
546
|
else
|
|
551
547
|
return;
|
|
552
|
-
if (
|
|
553
|
-
var
|
|
554
|
-
|
|
555
|
-
} else if (
|
|
556
|
-
|
|
557
|
-
var
|
|
558
|
-
|
|
548
|
+
if (c) {
|
|
549
|
+
var v = W(r);
|
|
550
|
+
qe(c, e.props, "prop", v, e);
|
|
551
|
+
} else if (r.PropTypes !== void 0 && !se) {
|
|
552
|
+
se = !0;
|
|
553
|
+
var w = W(r);
|
|
554
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
|
|
559
555
|
}
|
|
560
|
-
typeof
|
|
556
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
557
|
}
|
|
562
558
|
}
|
|
563
|
-
function
|
|
559
|
+
function ut(e) {
|
|
564
560
|
{
|
|
565
|
-
for (var
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
|
|
561
|
+
for (var r = Object.keys(e.props), c = 0; c < r.length; c++) {
|
|
562
|
+
var v = r[c];
|
|
563
|
+
if (v !== "children" && v !== "key") {
|
|
564
|
+
U(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), U(null);
|
|
569
565
|
break;
|
|
570
566
|
}
|
|
571
567
|
}
|
|
572
|
-
|
|
568
|
+
e.ref !== null && (U(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
|
|
573
569
|
}
|
|
574
570
|
}
|
|
575
|
-
function
|
|
571
|
+
function Fe(e, r, c, v, w, p) {
|
|
576
572
|
{
|
|
577
|
-
var
|
|
578
|
-
if (!
|
|
579
|
-
var
|
|
580
|
-
(
|
|
581
|
-
var
|
|
582
|
-
|
|
573
|
+
var E = q(e);
|
|
574
|
+
if (!E) {
|
|
575
|
+
var y = "";
|
|
576
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
577
|
+
var A = it();
|
|
578
|
+
A ? y += A : y += xe();
|
|
583
579
|
var j;
|
|
584
|
-
|
|
580
|
+
e === null ? j = "null" : ie(e) ? j = "array" : e !== void 0 && e.$$typeof === n ? (j = "<" + (W(e.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : j = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, y);
|
|
585
581
|
}
|
|
586
|
-
var
|
|
587
|
-
if (
|
|
588
|
-
return
|
|
589
|
-
if (
|
|
590
|
-
var
|
|
591
|
-
if (
|
|
592
|
-
if (
|
|
593
|
-
if (
|
|
594
|
-
for (var
|
|
595
|
-
|
|
596
|
-
Object.freeze && Object.freeze(
|
|
582
|
+
var O = at(e, r, c, w, p);
|
|
583
|
+
if (O == null)
|
|
584
|
+
return O;
|
|
585
|
+
if (E) {
|
|
586
|
+
var I = r.children;
|
|
587
|
+
if (I !== void 0)
|
|
588
|
+
if (v)
|
|
589
|
+
if (ie(I)) {
|
|
590
|
+
for (var M = 0; M < I.length; M++)
|
|
591
|
+
ke(I[M], e);
|
|
592
|
+
Object.freeze && Object.freeze(I);
|
|
597
593
|
} else
|
|
598
|
-
|
|
594
|
+
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
599
595
|
else
|
|
600
|
-
|
|
596
|
+
ke(I, e);
|
|
601
597
|
}
|
|
602
|
-
return
|
|
598
|
+
return e === i ? ut(O) : st(O), O;
|
|
603
599
|
}
|
|
604
600
|
}
|
|
605
|
-
function
|
|
606
|
-
return
|
|
601
|
+
function lt(e, r, c) {
|
|
602
|
+
return Fe(e, r, c, !0);
|
|
607
603
|
}
|
|
608
|
-
function
|
|
609
|
-
return
|
|
604
|
+
function ft(e, r, c) {
|
|
605
|
+
return Fe(e, r, c, !1);
|
|
610
606
|
}
|
|
611
|
-
var
|
|
612
|
-
|
|
613
|
-
}()),
|
|
607
|
+
var dt = ft, vt = lt;
|
|
608
|
+
K.Fragment = i, K.jsx = dt, K.jsxs = vt;
|
|
609
|
+
}()), K;
|
|
614
610
|
}
|
|
615
|
-
process.env.NODE_ENV === "production" ?
|
|
616
|
-
var
|
|
617
|
-
const
|
|
618
|
-
const
|
|
611
|
+
process.env.NODE_ENV === "production" ? le.exports = mt() : le.exports = Et();
|
|
612
|
+
var Y = le.exports;
|
|
613
|
+
const D = gt({}), Ft = ({ children: t, apiURL: n, libraries: o, localStorageKeys: i }) => {
|
|
614
|
+
const a = fe(
|
|
619
615
|
() => ({
|
|
620
|
-
apiURL:
|
|
621
|
-
libraries:
|
|
622
|
-
localStorageKeys:
|
|
616
|
+
apiURL: n,
|
|
617
|
+
libraries: o,
|
|
618
|
+
localStorageKeys: i
|
|
623
619
|
}),
|
|
624
|
-
[
|
|
620
|
+
[n, o, i]
|
|
625
621
|
);
|
|
626
|
-
return /* @__PURE__ */
|
|
627
|
-
},
|
|
628
|
-
var
|
|
629
|
-
const { libraries:
|
|
630
|
-
if (!
|
|
622
|
+
return /* @__PURE__ */ Y.jsx(D.Provider, { value: a, children: t });
|
|
623
|
+
}, wt = "user", Lt = ({ Fallback: t, isLogged: n, loginPath: o = "/login", redirect401Path: i = "/login", ...a }) => {
|
|
624
|
+
var x, F, L, $;
|
|
625
|
+
const { libraries: l, localStorageKeys: f } = k(D), d = (a == null ? void 0 : a.reactRouter) || (l == null ? void 0 : l.reactRouter), u = (a == null ? void 0 : a.axios) || (l == null ? void 0 : l.axios), m = (a == null ? void 0 : a.localStorageKey) || (f == null ? void 0 : f.user) || wt;
|
|
626
|
+
if (!d)
|
|
631
627
|
throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
632
|
-
const [
|
|
633
|
-
return
|
|
634
|
-
|
|
635
|
-
(
|
|
636
|
-
async (
|
|
637
|
-
var
|
|
638
|
-
return typeof
|
|
628
|
+
const [g, S] = Ve(null), { useLocation: P, Navigate: s, Outlet: C } = d, R = P(), b = ht(!1), h = typeof n == "function" ? n() : !!n, _ = typeof h == "boolean" ? h : h == null ? void 0 : h.isLogged;
|
|
629
|
+
return z(() => {
|
|
630
|
+
b.current || (b.current = !0, u.interceptors.response.use(
|
|
631
|
+
(T) => T,
|
|
632
|
+
async (T) => {
|
|
633
|
+
var q;
|
|
634
|
+
return typeof T == "object" && T && "response" in T && T.response && typeof T.response == "object" && "status" in T.response && T.response && typeof T.response == "object" && "status" in T.response && ((q = T == null ? void 0 : T.response) == null ? void 0 : q.status) === 401 && (u.defaults.headers.common.Authorization = null, typeof window < "u" && window.localStorage && localStorage.removeItem(m), S(i)), Promise.reject(T);
|
|
639
635
|
}
|
|
640
636
|
));
|
|
641
|
-
}, [
|
|
642
|
-
},
|
|
643
|
-
const { libraries:
|
|
644
|
-
if (!
|
|
637
|
+
}, [u.defaults.headers.common, u.interceptors.response, m, i]), _ && !g ? /* @__PURE__ */ Y.jsx(yt, { fallback: t, children: (F = (x = R.state) == null ? void 0 : x.from) != null && F.state && (($ = (L = R.state) == null ? void 0 : L.from) == null ? void 0 : $.pathname) === o ? /* @__PURE__ */ Y.jsx(s, { to: R.state.from.state.from.pathname + R.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ Y.jsx(C, {}) }) : /* @__PURE__ */ Y.jsx(s, { to: o + R.search, state: { from: R }, replace: !0 });
|
|
638
|
+
}, $t = ({ data: t, ...n }) => {
|
|
639
|
+
const { libraries: o } = k(D), i = (n == null ? void 0 : n.reactRouter) || (o == null ? void 0 : o.reactRouter), a = (n == null ? void 0 : n.gtm) || (o == null ? void 0 : o.gtm);
|
|
640
|
+
if (!i)
|
|
645
641
|
throw new Error(
|
|
646
642
|
"React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
|
|
647
643
|
);
|
|
648
|
-
if (!
|
|
644
|
+
if (!a)
|
|
649
645
|
throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
|
|
650
|
-
const { useGoogleTagManager:
|
|
651
|
-
return
|
|
652
|
-
|
|
646
|
+
const { useGoogleTagManager: l } = a, { useLocation: f, Outlet: d } = i, { pathname: u } = f(), { sendEvent: m } = l();
|
|
647
|
+
return z(() => {
|
|
648
|
+
m({
|
|
653
649
|
event: "pageView",
|
|
654
|
-
pathname:
|
|
655
|
-
...
|
|
650
|
+
pathname: u,
|
|
651
|
+
...t
|
|
656
652
|
});
|
|
657
|
-
}, [
|
|
658
|
-
},
|
|
659
|
-
tokenTypeKey:
|
|
660
|
-
tokenKey:
|
|
661
|
-
postContentType:
|
|
662
|
-
...
|
|
653
|
+
}, [t, u, m]), /* @__PURE__ */ Y.jsx(d, {});
|
|
654
|
+
}, Rt = "user", Nt = ({
|
|
655
|
+
tokenTypeKey: t = "tokenType",
|
|
656
|
+
tokenKey: n = "accessToken",
|
|
657
|
+
postContentType: o = "application/json",
|
|
658
|
+
...i
|
|
663
659
|
}) => {
|
|
664
|
-
const { apiURL:
|
|
665
|
-
if (!
|
|
660
|
+
const { apiURL: a = i.apiURL, libraries: l, localStorageKeys: f } = k(D), d = (i == null ? void 0 : i.userLocalStorageKey) || (f == null ? void 0 : f.user) || Rt, u = (i == null ? void 0 : i.axios) || (l == null ? void 0 : l.axios);
|
|
661
|
+
if (!u)
|
|
666
662
|
throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
667
|
-
if (!(
|
|
663
|
+
if (!(u != null && u.defaults))
|
|
668
664
|
return null;
|
|
669
665
|
if (typeof window < "u" && window.localStorage) {
|
|
670
|
-
const
|
|
671
|
-
|
|
666
|
+
const m = localStorage.getItem(d), g = m ? JSON.parse(m) : null, S = g != null && g[t] ? g[t] : null, P = g != null && g[n] ? g[n] : null, s = m ? `${S} ${P}` : null;
|
|
667
|
+
s && (u.defaults.headers.common.Authorization = s);
|
|
672
668
|
}
|
|
673
|
-
return
|
|
674
|
-
},
|
|
675
|
-
const { libraries:
|
|
676
|
-
if (!
|
|
669
|
+
return u.defaults.baseURL = a, u.defaults.headers.post["Content-Type"] = o, null;
|
|
670
|
+
}, Yt = ({ debug: t, resources: n, ...o }) => {
|
|
671
|
+
const { libraries: i } = k(D), a = (o == null ? void 0 : o.i18) || (i == null ? void 0 : i.i18), { i18next: l, initReactI18next: f, languageDetector: d } = a || {};
|
|
672
|
+
if (!a)
|
|
677
673
|
throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
678
|
-
return
|
|
679
|
-
debug:
|
|
674
|
+
return l != null && l.isInitialized || (l.use(d).use(f).init({
|
|
675
|
+
debug: t,
|
|
680
676
|
fallbackLng: "en",
|
|
681
677
|
interpolation: {
|
|
682
678
|
escapeValue: !1
|
|
@@ -686,40 +682,40 @@ const q = Ur({}), No = ({ children: e, apiURL: t, libraries: r, localStorageKeys
|
|
|
686
682
|
bindI18n: "languageChanged loaded",
|
|
687
683
|
useSuspense: !0
|
|
688
684
|
},
|
|
689
|
-
resources:
|
|
685
|
+
resources: n,
|
|
690
686
|
returnNull: !1
|
|
691
687
|
}).then(() => {
|
|
692
|
-
document.documentElement.lang !==
|
|
693
|
-
}),
|
|
694
|
-
document.documentElement.setAttribute("lang",
|
|
688
|
+
document.documentElement.lang !== l.resolvedLanguage && l.resolvedLanguage && document.documentElement.setAttribute("lang", l.resolvedLanguage);
|
|
689
|
+
}), l.on("languageChanged", (u) => {
|
|
690
|
+
document.documentElement.setAttribute("lang", u);
|
|
695
691
|
})), null;
|
|
696
|
-
},
|
|
697
|
-
dsn:
|
|
698
|
-
integrations:
|
|
699
|
-
tracesSampleRate:
|
|
700
|
-
replaysSessionSampleRate:
|
|
701
|
-
replaysOnErrorSampleRate:
|
|
702
|
-
tracePropagationTargets:
|
|
703
|
-
ignoreErrors:
|
|
704
|
-
debug:
|
|
705
|
-
environment:
|
|
706
|
-
release:
|
|
707
|
-
...
|
|
692
|
+
}, Wt = ({
|
|
693
|
+
dsn: t,
|
|
694
|
+
integrations: n,
|
|
695
|
+
tracesSampleRate: o,
|
|
696
|
+
replaysSessionSampleRate: i,
|
|
697
|
+
replaysOnErrorSampleRate: a,
|
|
698
|
+
tracePropagationTargets: l,
|
|
699
|
+
ignoreErrors: f,
|
|
700
|
+
debug: d,
|
|
701
|
+
environment: u,
|
|
702
|
+
release: m,
|
|
703
|
+
...g
|
|
708
704
|
}) => {
|
|
709
|
-
const { libraries:
|
|
710
|
-
if (!
|
|
705
|
+
const { libraries: S } = k(D), P = (g == null ? void 0 : g.sentry) || (S == null ? void 0 : S.sentry), s = (g == null ? void 0 : g.reactRouter) || (S == null ? void 0 : S.reactRouter);
|
|
706
|
+
if (!P)
|
|
711
707
|
throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
712
|
-
if (!
|
|
708
|
+
if (!s)
|
|
713
709
|
throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
714
|
-
if (
|
|
710
|
+
if (P.isInitialized())
|
|
715
711
|
return null;
|
|
716
|
-
const { createRoutesFromChildren:
|
|
717
|
-
return (
|
|
718
|
-
debug:
|
|
719
|
-
dsn:
|
|
720
|
-
environment:
|
|
712
|
+
const { createRoutesFromChildren: C, matchRoutes: R, useLocation: b, useNavigationType: h } = s;
|
|
713
|
+
return (d || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && P.init({
|
|
714
|
+
debug: d,
|
|
715
|
+
dsn: t,
|
|
716
|
+
environment: u || "production",
|
|
721
717
|
ignoreErrors: [
|
|
722
|
-
...
|
|
718
|
+
...f || [],
|
|
723
719
|
/dynamically imported module/,
|
|
724
720
|
/Cannot read properties of undefined \(reading 'default'\)/,
|
|
725
721
|
/Loading chunk \d+ failed/,
|
|
@@ -728,1988 +724,329 @@ const q = Ur({}), No = ({ children: e, apiURL: t, libraries: r, localStorageKeys
|
|
|
728
724
|
/vite:preloadError/
|
|
729
725
|
],
|
|
730
726
|
integrations: [
|
|
731
|
-
|
|
732
|
-
createRoutesFromChildren:
|
|
733
|
-
matchRoutes:
|
|
734
|
-
useEffect:
|
|
735
|
-
useLocation:
|
|
736
|
-
useNavigationType:
|
|
727
|
+
P.reactRouterV6BrowserTracingIntegration({
|
|
728
|
+
createRoutesFromChildren: C,
|
|
729
|
+
matchRoutes: R,
|
|
730
|
+
useEffect: z,
|
|
731
|
+
useLocation: b,
|
|
732
|
+
useNavigationType: h
|
|
737
733
|
}),
|
|
738
|
-
...
|
|
734
|
+
...n || []
|
|
739
735
|
],
|
|
740
|
-
release:
|
|
741
|
-
replaysOnErrorSampleRate:
|
|
742
|
-
replaysSessionSampleRate:
|
|
743
|
-
tracePropagationTargets:
|
|
744
|
-
tracesSampleRate:
|
|
736
|
+
release: m,
|
|
737
|
+
replaysOnErrorSampleRate: a || 1,
|
|
738
|
+
replaysSessionSampleRate: i || 0.1,
|
|
739
|
+
tracePropagationTargets: l,
|
|
740
|
+
tracesSampleRate: o || 1
|
|
745
741
|
}), null;
|
|
746
|
-
},
|
|
747
|
-
const
|
|
742
|
+
}, Vt = ({ IMaskMixin: t, ...n }) => {
|
|
743
|
+
const o = fe(
|
|
748
744
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
749
|
-
() =>
|
|
750
|
-
[
|
|
745
|
+
() => t(({ TextField: i, ...a }) => /* @__PURE__ */ Y.jsx(i, { ...a })),
|
|
746
|
+
[t]
|
|
751
747
|
);
|
|
752
|
-
return /* @__PURE__ */
|
|
753
|
-
},
|
|
754
|
-
const { libraries:
|
|
755
|
-
if (!
|
|
748
|
+
return /* @__PURE__ */ Y.jsx(o, { ...n });
|
|
749
|
+
}, zt = ({ language: t, ...n }) => {
|
|
750
|
+
const { libraries: o } = k(D), i = (n == null ? void 0 : n.dayjs) || (o == null ? void 0 : o.dayjs), a = (n == null ? void 0 : n.plugin) || (o == null ? void 0 : o.dayjsPlugin);
|
|
751
|
+
if (!i)
|
|
756
752
|
throw new Error(
|
|
757
753
|
"Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
|
|
758
754
|
);
|
|
759
|
-
return
|
|
755
|
+
return z(() => {
|
|
760
756
|
(async () => {
|
|
761
|
-
var
|
|
762
|
-
const
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
}), await import("dayjs/locale/en"), await import("dayjs/locale/fr"),
|
|
757
|
+
var d;
|
|
758
|
+
const f = t || ((d = navigator.language) == null ? void 0 : d.slice(0, 2)) || "en";
|
|
759
|
+
a && a.forEach((u) => {
|
|
760
|
+
u && i.extend(u);
|
|
761
|
+
}), await import("dayjs/locale/en"), await import("dayjs/locale/fr"), i.locale(f);
|
|
766
762
|
})().then();
|
|
767
|
-
}, [
|
|
768
|
-
},
|
|
769
|
-
const
|
|
763
|
+
}, [i, a, t]), null;
|
|
764
|
+
}, Ut = () => (z(() => {
|
|
765
|
+
const t = (n) => {
|
|
770
766
|
try {
|
|
771
|
-
|
|
767
|
+
n.preventDefault(), n.stopPropagation(), n.stopImmediatePropagation(), window.location.reload();
|
|
772
768
|
} catch {
|
|
773
769
|
}
|
|
774
770
|
};
|
|
775
|
-
return window.addEventListener("vite:preloadError",
|
|
776
|
-
window.removeEventListener("vite:preloadError",
|
|
771
|
+
return window.addEventListener("vite:preloadError", t), () => {
|
|
772
|
+
window.removeEventListener("vite:preloadError", t);
|
|
777
773
|
};
|
|
778
|
-
}, []), null),
|
|
779
|
-
children:
|
|
780
|
-
defaultQueriesOptions:
|
|
781
|
-
defaultMutationsOptions:
|
|
782
|
-
...
|
|
774
|
+
}, []), null), _t = (t) => t && typeof t == "function", pt = (t) => t && typeof t == "function", Mt = ({
|
|
775
|
+
children: t,
|
|
776
|
+
defaultQueriesOptions: n,
|
|
777
|
+
defaultMutationsOptions: o,
|
|
778
|
+
...i
|
|
783
779
|
}) => {
|
|
784
|
-
var
|
|
785
|
-
const { libraries:
|
|
786
|
-
if (!
|
|
780
|
+
var u, m;
|
|
781
|
+
const { libraries: a } = k(D), l = (i == null ? void 0 : i.QueryClient) || ((u = a == null ? void 0 : a.reactQuery) == null ? void 0 : u.QueryClient), f = (i == null ? void 0 : i.QueryClientProvider) || ((m = a == null ? void 0 : a.reactQuery) == null ? void 0 : m.QueryClientProvider);
|
|
782
|
+
if (!l)
|
|
787
783
|
throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
788
|
-
if (!
|
|
784
|
+
if (!f)
|
|
789
785
|
throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
790
|
-
if (!
|
|
786
|
+
if (!_t(f))
|
|
791
787
|
throw new Error("Provided QueryClientProvider dependencies are not valid.");
|
|
792
|
-
if (!
|
|
788
|
+
if (!pt(l))
|
|
793
789
|
throw new Error("Provided QueryClient dependencies are not valid.");
|
|
794
|
-
const
|
|
790
|
+
const d = new l({
|
|
795
791
|
defaultOptions: {
|
|
796
792
|
mutations: {
|
|
797
|
-
...
|
|
793
|
+
...o
|
|
798
794
|
},
|
|
799
795
|
queries: {
|
|
800
|
-
getNextPageParam: (
|
|
796
|
+
getNextPageParam: (g, S, P) => g.length + (P || 0),
|
|
801
797
|
refetchOnWindowFocus: !1,
|
|
802
798
|
retry: 3,
|
|
803
|
-
...
|
|
799
|
+
...n
|
|
804
800
|
}
|
|
805
801
|
}
|
|
806
802
|
});
|
|
807
|
-
return /* @__PURE__ */
|
|
808
|
-
},
|
|
809
|
-
var
|
|
810
|
-
const { libraries:
|
|
811
|
-
(
|
|
812
|
-
var
|
|
813
|
-
const { response:
|
|
814
|
-
return
|
|
803
|
+
return /* @__PURE__ */ Y.jsx(f, { client: d, children: t });
|
|
804
|
+
}, Gt = (t) => {
|
|
805
|
+
var m, g, S;
|
|
806
|
+
const { libraries: n } = k(D), o = (t == null ? void 0 : t.i18) || (n == null ? void 0 : n.i18), i = ((m = t == null ? void 0 : t.i18) == null ? void 0 : m.translateFunction) || ((g = n == null ? void 0 : n.i18) == null ? void 0 : g.translateFunction), a = ((S = o == null ? void 0 : o.i18next) == null ? void 0 : S.t) || i || ((P) => P), { unknownErrorTranslationKey: l = "error.unknownError" } = t || {}, f = a(l), d = te(
|
|
807
|
+
(P) => {
|
|
808
|
+
var C, R, b, h, _, x, F, L, $;
|
|
809
|
+
const { response: s } = P || {};
|
|
810
|
+
return s != null && s.reason ? String(s.reason) : (C = s == null ? void 0 : s.data) != null && C.reason ? String(s.data.reason) : (R = s == null ? void 0 : s.data) != null && R.message ? String(s.data.message) : (h = (b = s == null ? void 0 : s.data) == null ? void 0 : b.detail) != null && h.length && Array.isArray((_ = s == null ? void 0 : s.data) == null ? void 0 : _.detail) && ((F = (x = s == null ? void 0 : s.data) == null ? void 0 : x.detail[0]) != null && F.msg) && typeof (($ = (L = s == null ? void 0 : s.data) == null ? void 0 : L.detail[0]) == null ? void 0 : $.msg) == "string" ? String(s.data.detail[0].msg) : f;
|
|
815
811
|
},
|
|
816
|
-
[
|
|
812
|
+
[f]
|
|
817
813
|
);
|
|
818
|
-
return { getErrorCode:
|
|
819
|
-
var
|
|
820
|
-
const { response:
|
|
821
|
-
return
|
|
822
|
-
}, []), printError:
|
|
823
|
-
},
|
|
824
|
-
data:
|
|
825
|
-
fetchNextPage:
|
|
826
|
-
isFetchingNextPage:
|
|
827
|
-
isInitialLoading:
|
|
828
|
-
isLoading:
|
|
829
|
-
enabled:
|
|
814
|
+
return { getErrorCode: te((P) => {
|
|
815
|
+
var C, R, b;
|
|
816
|
+
const { response: s } = P || {};
|
|
817
|
+
return s != null && s.error_code ? String(s == null ? void 0 : s.error_code) : (C = s == null ? void 0 : s.data) != null && C.error_code ? String((R = s == null ? void 0 : s.data) == null ? void 0 : R.error_code) : s != null && s.error_code ? String(s == null ? void 0 : s.error_code) : (b = s == null ? void 0 : s.data) != null && b.error_code ? String(s.data.error_code) : "unknown_error_code";
|
|
818
|
+
}, []), printError: d };
|
|
819
|
+
}, Jt = ({
|
|
820
|
+
data: t,
|
|
821
|
+
fetchNextPage: n,
|
|
822
|
+
isFetchingNextPage: o,
|
|
823
|
+
isInitialLoading: i,
|
|
824
|
+
isLoading: a,
|
|
825
|
+
enabled: l = !0
|
|
830
826
|
}) => {
|
|
831
|
-
const
|
|
832
|
-
async (
|
|
833
|
-
|
|
827
|
+
const f = te(
|
|
828
|
+
async (u) => {
|
|
829
|
+
o || !l || await n({ pageParam: (u == null ? void 0 : u.pageParam) || u.visibleRowsCount });
|
|
834
830
|
},
|
|
835
|
-
[
|
|
836
|
-
),
|
|
837
|
-
if (
|
|
838
|
-
return
|
|
839
|
-
}, [
|
|
831
|
+
[l, n, o]
|
|
832
|
+
), d = fe(() => {
|
|
833
|
+
if (t)
|
|
834
|
+
return t.pages.reduce((u, m) => [...u, ...m], []);
|
|
835
|
+
}, [t]);
|
|
840
836
|
return {
|
|
841
|
-
fetchNextPageOnRowsScrollEnd:
|
|
842
|
-
isLoading:
|
|
843
|
-
loadingVariant:
|
|
844
|
-
rows:
|
|
837
|
+
fetchNextPageOnRowsScrollEnd: f,
|
|
838
|
+
isLoading: o || a,
|
|
839
|
+
loadingVariant: i ? "skeleton" : "linear",
|
|
840
|
+
rows: d
|
|
845
841
|
};
|
|
846
|
-
},
|
|
847
|
-
const { libraries:
|
|
848
|
-
if (!
|
|
842
|
+
}, Kt = (t) => {
|
|
843
|
+
const { libraries: n } = k(D), o = (t == null ? void 0 : t.axios) || (n == null ? void 0 : n.axios), i = (t == null ? void 0 : t.localStorageKey) || "user";
|
|
844
|
+
if (!o)
|
|
849
845
|
throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
|
|
850
|
-
const
|
|
851
|
-
({ tokenType:
|
|
852
|
-
|
|
846
|
+
const a = te(
|
|
847
|
+
({ tokenType: f, accessToken: d }) => {
|
|
848
|
+
o.defaults.headers.common.Authorization = `${f} ${d}`;
|
|
853
849
|
},
|
|
854
|
-
[
|
|
855
|
-
),
|
|
856
|
-
|
|
850
|
+
[o.defaults.headers.common]
|
|
851
|
+
), l = () => {
|
|
852
|
+
o.defaults.headers.common.Authorization = null;
|
|
857
853
|
};
|
|
858
|
-
return
|
|
859
|
-
const
|
|
860
|
-
if (
|
|
854
|
+
return z(() => {
|
|
855
|
+
const f = ({ newValue: d, key: u }) => {
|
|
856
|
+
if (u === i && d)
|
|
861
857
|
try {
|
|
862
|
-
const { accessToken:
|
|
863
|
-
|
|
864
|
-
} catch (
|
|
865
|
-
console.error("Failed to parse newValue from localStorage:",
|
|
858
|
+
const { accessToken: m, tokenType: g } = JSON.parse(d);
|
|
859
|
+
a({ accessToken: m, tokenType: g });
|
|
860
|
+
} catch (m) {
|
|
861
|
+
console.error("Failed to parse newValue from localStorage:", m);
|
|
866
862
|
}
|
|
867
863
|
};
|
|
868
|
-
return window.addEventListener("storage",
|
|
869
|
-
window.removeEventListener("storage",
|
|
864
|
+
return window.addEventListener("storage", f), () => {
|
|
865
|
+
window.removeEventListener("storage", f);
|
|
870
866
|
};
|
|
871
|
-
}, [
|
|
872
|
-
clearAuthenticationToken:
|
|
873
|
-
setAuthenticationToken:
|
|
867
|
+
}, [i, a]), {
|
|
868
|
+
clearAuthenticationToken: l,
|
|
869
|
+
setAuthenticationToken: a
|
|
874
870
|
};
|
|
875
|
-
},
|
|
876
|
-
const { fractionDigits:
|
|
877
|
-
return Number.isNaN(
|
|
878
|
-
},
|
|
879
|
-
if (!
|
|
871
|
+
}, Ct = ({ library: t, date: n, format: o = "ll" }) => t(n).format(o), St = (t, n) => {
|
|
872
|
+
const { fractionDigits: o = 0, metric: i = "km" } = n || {}, a = Number(t);
|
|
873
|
+
return Number.isNaN(a) ? `0${i}` : `${a.toFixed(o)}${i}`;
|
|
874
|
+
}, Pt = (t) => !t || typeof t != "string" ? "" : t.replace(/_/g, " ").toLowerCase().split(" ").map((o) => o.length > 0 ? o.charAt(0).toUpperCase() + o.slice(1) : o).join(" "), bt = (t) => t != null && t.startsWith("/") ? t != null && t.startsWith("/files") ? t : `/files${t}` : t != null && t.startsWith("files") ? `/${t}` : `/files/${t}`, jt = ({ path: t, size: n, apiURL: o }) => {
|
|
875
|
+
if (!t)
|
|
880
876
|
return "";
|
|
881
|
-
const
|
|
882
|
-
return typeof
|
|
883
|
-
},
|
|
884
|
-
const { apiURL:
|
|
877
|
+
const i = bt(t), a = `${o}${i}`, l = a.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
|
|
878
|
+
return typeof n == "number" && l ? `${a.replace("/files", `/thumbs/${n}`)}` : a;
|
|
879
|
+
}, qt = (t) => {
|
|
880
|
+
const { apiURL: n, libraries: o } = k(D), i = (t == null ? void 0 : t.dayjs) || (o == null ? void 0 : o.dayjs);
|
|
885
881
|
return {
|
|
886
|
-
dateAdapter: (
|
|
887
|
-
if (!
|
|
882
|
+
dateAdapter: (f, d) => {
|
|
883
|
+
if (!i)
|
|
888
884
|
throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
889
|
-
return
|
|
890
|
-
date:
|
|
891
|
-
format:
|
|
892
|
-
library:
|
|
885
|
+
return Ct({
|
|
886
|
+
date: f,
|
|
887
|
+
format: d,
|
|
888
|
+
library: i
|
|
893
889
|
});
|
|
894
890
|
},
|
|
895
|
-
distanceAdapter:
|
|
896
|
-
filePathAdapter: (
|
|
897
|
-
if (!
|
|
891
|
+
distanceAdapter: St,
|
|
892
|
+
filePathAdapter: (f, d) => {
|
|
893
|
+
if (!n)
|
|
898
894
|
throw new Error(
|
|
899
895
|
"API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter."
|
|
900
896
|
);
|
|
901
|
-
return
|
|
902
|
-
apiURL:
|
|
903
|
-
path:
|
|
904
|
-
size:
|
|
897
|
+
return jt({
|
|
898
|
+
apiURL: n,
|
|
899
|
+
path: f,
|
|
900
|
+
size: d
|
|
905
901
|
});
|
|
906
902
|
},
|
|
907
|
-
worksiteNameAdapter:
|
|
903
|
+
worksiteNameAdapter: Pt
|
|
908
904
|
};
|
|
909
|
-
},
|
|
910
|
-
const [
|
|
911
|
-
const
|
|
912
|
-
return
|
|
905
|
+
}, ee = (t, n) => n === "short" ? t.split("-")[0] : t, Bt = (t, n = "full") => {
|
|
906
|
+
const [o, i] = Ve(() => {
|
|
907
|
+
const a = (t == null ? void 0 : t.language) || navigator.language;
|
|
908
|
+
return t && "isInitialized" in t && t.isInitialized, ee(a, n);
|
|
913
909
|
});
|
|
914
|
-
return
|
|
915
|
-
var
|
|
916
|
-
|
|
917
|
-
const
|
|
918
|
-
|
|
910
|
+
return z(() => {
|
|
911
|
+
var l;
|
|
912
|
+
t && "isInitialized" in t && t.isInitialized && t.language && i(ee(t.language, n));
|
|
913
|
+
const a = (f) => {
|
|
914
|
+
i(ee(f, n));
|
|
919
915
|
};
|
|
920
|
-
return (
|
|
921
|
-
var
|
|
922
|
-
(
|
|
916
|
+
return (l = t == null ? void 0 : t.on) == null || l.call(t, "languageChanged", a), () => {
|
|
917
|
+
var f;
|
|
918
|
+
(f = t == null ? void 0 : t.off) == null || f.call(t, "languageChanged", a);
|
|
923
919
|
};
|
|
924
|
-
}, [
|
|
925
|
-
},
|
|
926
|
-
const { libraries:
|
|
927
|
-
if (!
|
|
920
|
+
}, [t, n]), o;
|
|
921
|
+
}, Ot = "tracktor.filter", Ye = (t, n, o) => `${o}_${t}=>${n}`, Qt = (t) => {
|
|
922
|
+
const { libraries: n, localStorageKeys: o } = k(D), i = (t == null ? void 0 : t.reactRouter) || (n == null ? void 0 : n.reactRouter), { useLocation: a, useSearchParams: l } = i, { pathname: f } = a(), [d, u] = l(), m = (o == null ? void 0 : o.filter) || Ot;
|
|
923
|
+
if (!i)
|
|
928
924
|
throw new Error(
|
|
929
925
|
"React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
|
|
930
926
|
);
|
|
931
|
-
const
|
|
932
|
-
const
|
|
933
|
-
if (!
|
|
934
|
-
|
|
927
|
+
const g = (C, R, b = !0) => {
|
|
928
|
+
const h = Ye(C, (t == null ? void 0 : t.pathname) || f, m);
|
|
929
|
+
if (!R || Array.isArray(R) && !R.length) {
|
|
930
|
+
d.delete(C), u(d), localStorage.removeItem(h);
|
|
935
931
|
return;
|
|
936
932
|
}
|
|
937
|
-
|
|
933
|
+
b && R && localStorage.setItem(h, JSON.stringify({ ...d, [C]: R })), R && (d.set(C, JSON.stringify(R)), u(d));
|
|
938
934
|
};
|
|
939
935
|
return {
|
|
940
|
-
getFilter: (
|
|
941
|
-
const
|
|
942
|
-
if (
|
|
936
|
+
getFilter: (C, R) => {
|
|
937
|
+
const b = d.get(C);
|
|
938
|
+
if (b)
|
|
943
939
|
try {
|
|
944
|
-
return JSON.parse(
|
|
940
|
+
return JSON.parse(b);
|
|
945
941
|
} catch {
|
|
946
|
-
return
|
|
942
|
+
return b;
|
|
947
943
|
}
|
|
948
|
-
const
|
|
949
|
-
if (
|
|
944
|
+
const h = Ye(C, (t == null ? void 0 : t.pathname) || f, m), _ = localStorage.getItem(h);
|
|
945
|
+
if (_)
|
|
950
946
|
try {
|
|
951
|
-
return JSON.parse(
|
|
947
|
+
return JSON.parse(_)[C];
|
|
952
948
|
} catch {
|
|
953
949
|
}
|
|
954
|
-
return
|
|
950
|
+
return R;
|
|
955
951
|
},
|
|
956
952
|
getFilters: () => {
|
|
957
|
-
const
|
|
958
|
-
(
|
|
959
|
-
).reduce((
|
|
960
|
-
var
|
|
961
|
-
const
|
|
962
|
-
if (
|
|
963
|
-
const
|
|
964
|
-
|
|
953
|
+
const C = Object.fromEntries(d.entries()), b = Object.keys(localStorage).filter(
|
|
954
|
+
(h) => h.startsWith(m) && h.endsWith((t == null ? void 0 : t.pathname) || f)
|
|
955
|
+
).reduce((h, _) => {
|
|
956
|
+
var F, L;
|
|
957
|
+
const x = localStorage.getItem(_);
|
|
958
|
+
if (x) {
|
|
959
|
+
const $ = JSON.parse(x), T = (F = Object.keys($)) == null ? void 0 : F[0];
|
|
960
|
+
h[T] = (L = Object.values($)) == null ? void 0 : L[0];
|
|
965
961
|
}
|
|
966
|
-
return
|
|
962
|
+
return h;
|
|
967
963
|
}, {});
|
|
968
964
|
return {
|
|
969
|
-
...
|
|
970
|
-
...
|
|
965
|
+
...C,
|
|
966
|
+
...b
|
|
971
967
|
};
|
|
972
968
|
},
|
|
973
|
-
handleFilter: (
|
|
974
|
-
if (
|
|
975
|
-
const
|
|
976
|
-
|
|
969
|
+
handleFilter: (C, R) => (b, h) => {
|
|
970
|
+
if (h || Array.isArray(h) && h.length === 0) {
|
|
971
|
+
const _ = R || "value", x = typeof h == "object" && _ in h ? h[_] : h;
|
|
972
|
+
g(C, x);
|
|
977
973
|
return;
|
|
978
974
|
}
|
|
979
|
-
|
|
975
|
+
g(C, void 0);
|
|
980
976
|
},
|
|
981
|
-
setFilter:
|
|
977
|
+
setFilter: g
|
|
982
978
|
};
|
|
983
|
-
},
|
|
984
|
-
const
|
|
985
|
-
return
|
|
986
|
-
},
|
|
987
|
-
const
|
|
988
|
-
return `${
|
|
989
|
-
},
|
|
990
|
-
if (
|
|
991
|
-
return (
|
|
979
|
+
}, Tt = (t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), At = (t) => {
|
|
980
|
+
const i = t.split("/").filter((a) => a.length > 0).map((a) => a.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((u) => u.charAt(0).toUpperCase() + u.slice(1)).join("")).join("");
|
|
981
|
+
return i.charAt(0).toLowerCase() + i.slice(1);
|
|
982
|
+
}, xt = (t) => (t.split("/").pop() || t).replace(/\.json$/, "").replace(/^openapi\./, ""), It = (t, n, o) => {
|
|
983
|
+
const i = At(n), a = Tt(o);
|
|
984
|
+
return `${i}${a}`;
|
|
985
|
+
}, Dt = (t) => {
|
|
986
|
+
if (t)
|
|
987
|
+
return (t == null ? void 0 : t.reduce((n, o) => (n[o] = {
|
|
992
988
|
query: {
|
|
993
989
|
useInfinite: !0,
|
|
994
990
|
useInfiniteQueryParam: "offset",
|
|
995
991
|
useQuery: !0
|
|
996
992
|
}
|
|
997
|
-
},
|
|
998
|
-
},
|
|
999
|
-
const { output:
|
|
993
|
+
}, n), {})) || {};
|
|
994
|
+
}, Xt = (t) => (Array.isArray(t) ? t : [t]).reduce((o, i) => {
|
|
995
|
+
const { output: a, operationsToGenerateInfiniteQueryHook: l, input: f = "./openapi.json" } = i || {}, d = xt(f);
|
|
1000
996
|
return {
|
|
1001
|
-
...
|
|
1002
|
-
[
|
|
997
|
+
...o,
|
|
998
|
+
[d]: {
|
|
1003
999
|
hooks: {
|
|
1004
1000
|
afterAllFilesWrite: "prettier src/api/ --write"
|
|
1005
1001
|
},
|
|
1006
|
-
input:
|
|
1002
|
+
input: f,
|
|
1007
1003
|
output: {
|
|
1008
|
-
baseUrl:
|
|
1004
|
+
baseUrl: a == null ? void 0 : a.baseUrl,
|
|
1009
1005
|
client: "react-query",
|
|
1010
1006
|
mode: "tags-split",
|
|
1011
1007
|
override: {
|
|
1012
|
-
...(
|
|
1013
|
-
header: (
|
|
1008
|
+
...(l == null ? void 0 : l.length) && { operations: Dt(l) },
|
|
1009
|
+
header: (u) => [
|
|
1014
1010
|
"Generated by orval 🍺",
|
|
1015
|
-
...
|
|
1016
|
-
...
|
|
1011
|
+
...u.title ? [u.title] : [],
|
|
1012
|
+
...u.description ? [u.description] : []
|
|
1017
1013
|
],
|
|
1018
1014
|
mutator: {
|
|
1019
1015
|
name: "axiosCustomInstance",
|
|
1020
|
-
path: "./axiosCustomInstance.ts"
|
|
1016
|
+
path: "./node_modules/@tracktor/shared-module/dist/axiosCustomInstance.ts"
|
|
1021
1017
|
},
|
|
1022
|
-
operationName:
|
|
1018
|
+
operationName: It,
|
|
1023
1019
|
query: {
|
|
1024
1020
|
useQuery: !0
|
|
1025
1021
|
}
|
|
1026
1022
|
},
|
|
1027
|
-
schemas: (
|
|
1028
|
-
target: (
|
|
1029
|
-
...
|
|
1023
|
+
schemas: (a == null ? void 0 : a.schemas) || `src/api/${d}/model`,
|
|
1024
|
+
target: (a == null ? void 0 : a.target) || `src/api/${d}/services/api.ts`,
|
|
1025
|
+
...a
|
|
1030
1026
|
}
|
|
1031
1027
|
}
|
|
1032
1028
|
};
|
|
1033
1029
|
}, {});
|
|
1034
|
-
function zt(e, t) {
|
|
1035
|
-
return function() {
|
|
1036
|
-
return e.apply(t, arguments);
|
|
1037
|
-
};
|
|
1038
|
-
}
|
|
1039
|
-
const { toString: on } = Object.prototype, { getPrototypeOf: Qe } = Object, Oe = /* @__PURE__ */ ((e) => (t) => {
|
|
1040
|
-
const r = on.call(t);
|
|
1041
|
-
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
1042
|
-
})(/* @__PURE__ */ Object.create(null)), W = (e) => (e = e.toLowerCase(), (t) => Oe(t) === e), Te = (e) => (t) => typeof t === e, { isArray: te } = Array, ue = Te("undefined");
|
|
1043
|
-
function sn(e) {
|
|
1044
|
-
return e !== null && !ue(e) && e.constructor !== null && !ue(e.constructor) && $(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1045
|
-
}
|
|
1046
|
-
const Wt = W("ArrayBuffer");
|
|
1047
|
-
function an(e) {
|
|
1048
|
-
let t;
|
|
1049
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Wt(e.buffer), t;
|
|
1050
|
-
}
|
|
1051
|
-
const cn = Te("string"), $ = Te("function"), Vt = Te("number"), Ae = (e) => e !== null && typeof e == "object", un = (e) => e === !0 || e === !1, we = (e) => {
|
|
1052
|
-
if (Oe(e) !== "object")
|
|
1053
|
-
return !1;
|
|
1054
|
-
const t = Qe(e);
|
|
1055
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
1056
|
-
}, ln = W("Date"), fn = W("File"), dn = W("Blob"), hn = W("FileList"), pn = (e) => Ae(e) && $(e.pipe), mn = (e) => {
|
|
1057
|
-
let t;
|
|
1058
|
-
return e && (typeof FormData == "function" && e instanceof FormData || $(e.append) && ((t = Oe(e)) === "formdata" || // detect form-data instance
|
|
1059
|
-
t === "object" && $(e.toString) && e.toString() === "[object FormData]"));
|
|
1060
|
-
}, yn = W("URLSearchParams"), [gn, En, wn, Rn] = ["ReadableStream", "Request", "Response", "Headers"].map(W), bn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
1061
|
-
function le(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
1062
|
-
if (e === null || typeof e > "u")
|
|
1063
|
-
return;
|
|
1064
|
-
let n, o;
|
|
1065
|
-
if (typeof e != "object" && (e = [e]), te(e))
|
|
1066
|
-
for (n = 0, o = e.length; n < o; n++)
|
|
1067
|
-
t.call(null, e[n], n, e);
|
|
1068
|
-
else {
|
|
1069
|
-
const s = r ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
|
|
1070
|
-
let c;
|
|
1071
|
-
for (n = 0; n < i; n++)
|
|
1072
|
-
c = s[n], t.call(null, e[c], c, e);
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
function Ht(e, t) {
|
|
1076
|
-
t = t.toLowerCase();
|
|
1077
|
-
const r = Object.keys(e);
|
|
1078
|
-
let n = r.length, o;
|
|
1079
|
-
for (; n-- > 0; )
|
|
1080
|
-
if (o = r[n], t === o.toLowerCase())
|
|
1081
|
-
return o;
|
|
1082
|
-
return null;
|
|
1083
|
-
}
|
|
1084
|
-
const Jt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Yt = (e) => !ue(e) && e !== Jt;
|
|
1085
|
-
function ze() {
|
|
1086
|
-
const { caseless: e } = Yt(this) && this || {}, t = {}, r = (n, o) => {
|
|
1087
|
-
const s = e && Ht(t, o) || o;
|
|
1088
|
-
we(t[s]) && we(n) ? t[s] = ze(t[s], n) : we(n) ? t[s] = ze({}, n) : te(n) ? t[s] = n.slice() : t[s] = n;
|
|
1089
|
-
};
|
|
1090
|
-
for (let n = 0, o = arguments.length; n < o; n++)
|
|
1091
|
-
arguments[n] && le(arguments[n], r);
|
|
1092
|
-
return t;
|
|
1093
|
-
}
|
|
1094
|
-
const vn = (e, t, r, { allOwnKeys: n } = {}) => (le(t, (o, s) => {
|
|
1095
|
-
r && $(o) ? e[s] = zt(o, r) : e[s] = o;
|
|
1096
|
-
}, { allOwnKeys: n }), e), Sn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), On = (e, t, r, n) => {
|
|
1097
|
-
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
1098
|
-
value: t.prototype
|
|
1099
|
-
}), r && Object.assign(e.prototype, r);
|
|
1100
|
-
}, Tn = (e, t, r, n) => {
|
|
1101
|
-
let o, s, i;
|
|
1102
|
-
const c = {};
|
|
1103
|
-
if (t = t || {}, e == null) return t;
|
|
1104
|
-
do {
|
|
1105
|
-
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
|
|
1106
|
-
i = o[s], (!n || n(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
1107
|
-
e = r !== !1 && Qe(e);
|
|
1108
|
-
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
1109
|
-
return t;
|
|
1110
|
-
}, An = (e, t, r) => {
|
|
1111
|
-
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
1112
|
-
const n = e.indexOf(t, r);
|
|
1113
|
-
return n !== -1 && n === r;
|
|
1114
|
-
}, Cn = (e) => {
|
|
1115
|
-
if (!e) return null;
|
|
1116
|
-
if (te(e)) return e;
|
|
1117
|
-
let t = e.length;
|
|
1118
|
-
if (!Vt(t)) return null;
|
|
1119
|
-
const r = new Array(t);
|
|
1120
|
-
for (; t-- > 0; )
|
|
1121
|
-
r[t] = e[t];
|
|
1122
|
-
return r;
|
|
1123
|
-
}, _n = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Qe(Uint8Array)), Pn = (e, t) => {
|
|
1124
|
-
const n = (e && e[Symbol.iterator]).call(e);
|
|
1125
|
-
let o;
|
|
1126
|
-
for (; (o = n.next()) && !o.done; ) {
|
|
1127
|
-
const s = o.value;
|
|
1128
|
-
t.call(e, s[0], s[1]);
|
|
1129
|
-
}
|
|
1130
|
-
}, xn = (e, t) => {
|
|
1131
|
-
let r;
|
|
1132
|
-
const n = [];
|
|
1133
|
-
for (; (r = e.exec(t)) !== null; )
|
|
1134
|
-
n.push(r);
|
|
1135
|
-
return n;
|
|
1136
|
-
}, jn = W("HTMLFormElement"), Fn = (e) => e.toLowerCase().replace(
|
|
1137
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
1138
|
-
function(r, n, o) {
|
|
1139
|
-
return n.toUpperCase() + o;
|
|
1140
|
-
}
|
|
1141
|
-
), _t = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Nn = W("RegExp"), Kt = (e, t) => {
|
|
1142
|
-
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
1143
|
-
le(r, (o, s) => {
|
|
1144
|
-
let i;
|
|
1145
|
-
(i = t(o, s, e)) !== !1 && (n[s] = i || o);
|
|
1146
|
-
}), Object.defineProperties(e, n);
|
|
1147
|
-
}, Dn = (e) => {
|
|
1148
|
-
Kt(e, (t, r) => {
|
|
1149
|
-
if ($(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
1150
|
-
return !1;
|
|
1151
|
-
const n = e[r];
|
|
1152
|
-
if ($(n)) {
|
|
1153
|
-
if (t.enumerable = !1, "writable" in t) {
|
|
1154
|
-
t.writable = !1;
|
|
1155
|
-
return;
|
|
1156
|
-
}
|
|
1157
|
-
t.set || (t.set = () => {
|
|
1158
|
-
throw Error("Can not rewrite read-only method '" + r + "'");
|
|
1159
|
-
});
|
|
1160
|
-
}
|
|
1161
|
-
});
|
|
1162
|
-
}, Ln = (e, t) => {
|
|
1163
|
-
const r = {}, n = (o) => {
|
|
1164
|
-
o.forEach((s) => {
|
|
1165
|
-
r[s] = !0;
|
|
1166
|
-
});
|
|
1167
|
-
};
|
|
1168
|
-
return te(e) ? n(e) : n(String(e).split(t)), r;
|
|
1169
|
-
}, kn = () => {
|
|
1170
|
-
}, In = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Ue = "abcdefghijklmnopqrstuvwxyz", Pt = "0123456789", Gt = {
|
|
1171
|
-
DIGIT: Pt,
|
|
1172
|
-
ALPHA: Ue,
|
|
1173
|
-
ALPHA_DIGIT: Ue + Ue.toUpperCase() + Pt
|
|
1174
|
-
}, Un = (e = 16, t = Gt.ALPHA_DIGIT) => {
|
|
1175
|
-
let r = "";
|
|
1176
|
-
const { length: n } = t;
|
|
1177
|
-
for (; e--; )
|
|
1178
|
-
r += t[Math.random() * n | 0];
|
|
1179
|
-
return r;
|
|
1180
|
-
};
|
|
1181
|
-
function Bn(e) {
|
|
1182
|
-
return !!(e && $(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
1183
|
-
}
|
|
1184
|
-
const $n = (e) => {
|
|
1185
|
-
const t = new Array(10), r = (n, o) => {
|
|
1186
|
-
if (Ae(n)) {
|
|
1187
|
-
if (t.indexOf(n) >= 0)
|
|
1188
|
-
return;
|
|
1189
|
-
if (!("toJSON" in n)) {
|
|
1190
|
-
t[o] = n;
|
|
1191
|
-
const s = te(n) ? [] : {};
|
|
1192
|
-
return le(n, (i, c) => {
|
|
1193
|
-
const f = r(i, o + 1);
|
|
1194
|
-
!ue(f) && (s[c] = f);
|
|
1195
|
-
}), t[o] = void 0, s;
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
return n;
|
|
1199
|
-
};
|
|
1200
|
-
return r(e, 0);
|
|
1201
|
-
}, qn = W("AsyncFunction"), Mn = (e) => e && (Ae(e) || $(e)) && $(e.then) && $(e.catch), l = {
|
|
1202
|
-
isArray: te,
|
|
1203
|
-
isArrayBuffer: Wt,
|
|
1204
|
-
isBuffer: sn,
|
|
1205
|
-
isFormData: mn,
|
|
1206
|
-
isArrayBufferView: an,
|
|
1207
|
-
isString: cn,
|
|
1208
|
-
isNumber: Vt,
|
|
1209
|
-
isBoolean: un,
|
|
1210
|
-
isObject: Ae,
|
|
1211
|
-
isPlainObject: we,
|
|
1212
|
-
isReadableStream: gn,
|
|
1213
|
-
isRequest: En,
|
|
1214
|
-
isResponse: wn,
|
|
1215
|
-
isHeaders: Rn,
|
|
1216
|
-
isUndefined: ue,
|
|
1217
|
-
isDate: ln,
|
|
1218
|
-
isFile: fn,
|
|
1219
|
-
isBlob: dn,
|
|
1220
|
-
isRegExp: Nn,
|
|
1221
|
-
isFunction: $,
|
|
1222
|
-
isStream: pn,
|
|
1223
|
-
isURLSearchParams: yn,
|
|
1224
|
-
isTypedArray: _n,
|
|
1225
|
-
isFileList: hn,
|
|
1226
|
-
forEach: le,
|
|
1227
|
-
merge: ze,
|
|
1228
|
-
extend: vn,
|
|
1229
|
-
trim: bn,
|
|
1230
|
-
stripBOM: Sn,
|
|
1231
|
-
inherits: On,
|
|
1232
|
-
toFlatObject: Tn,
|
|
1233
|
-
kindOf: Oe,
|
|
1234
|
-
kindOfTest: W,
|
|
1235
|
-
endsWith: An,
|
|
1236
|
-
toArray: Cn,
|
|
1237
|
-
forEachEntry: Pn,
|
|
1238
|
-
matchAll: xn,
|
|
1239
|
-
isHTMLForm: jn,
|
|
1240
|
-
hasOwnProperty: _t,
|
|
1241
|
-
hasOwnProp: _t,
|
|
1242
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
1243
|
-
reduceDescriptors: Kt,
|
|
1244
|
-
freezeMethods: Dn,
|
|
1245
|
-
toObjectSet: Ln,
|
|
1246
|
-
toCamelCase: Fn,
|
|
1247
|
-
noop: kn,
|
|
1248
|
-
toFiniteNumber: In,
|
|
1249
|
-
findKey: Ht,
|
|
1250
|
-
global: Jt,
|
|
1251
|
-
isContextDefined: Yt,
|
|
1252
|
-
ALPHABET: Gt,
|
|
1253
|
-
generateString: Un,
|
|
1254
|
-
isSpecCompliantForm: Bn,
|
|
1255
|
-
toJSONObject: $n,
|
|
1256
|
-
isAsyncFn: qn,
|
|
1257
|
-
isThenable: Mn
|
|
1258
|
-
};
|
|
1259
|
-
function v(e, t, r, n, o) {
|
|
1260
|
-
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), r && (this.config = r), n && (this.request = n), o && (this.response = o);
|
|
1261
|
-
}
|
|
1262
|
-
l.inherits(v, Error, {
|
|
1263
|
-
toJSON: function() {
|
|
1264
|
-
return {
|
|
1265
|
-
// Standard
|
|
1266
|
-
message: this.message,
|
|
1267
|
-
name: this.name,
|
|
1268
|
-
// Microsoft
|
|
1269
|
-
description: this.description,
|
|
1270
|
-
number: this.number,
|
|
1271
|
-
// Mozilla
|
|
1272
|
-
fileName: this.fileName,
|
|
1273
|
-
lineNumber: this.lineNumber,
|
|
1274
|
-
columnNumber: this.columnNumber,
|
|
1275
|
-
stack: this.stack,
|
|
1276
|
-
// Axios
|
|
1277
|
-
config: l.toJSONObject(this.config),
|
|
1278
|
-
code: this.code,
|
|
1279
|
-
status: this.response && this.response.status ? this.response.status : null
|
|
1280
|
-
};
|
|
1281
|
-
}
|
|
1282
|
-
});
|
|
1283
|
-
const Qt = v.prototype, Xt = {};
|
|
1284
|
-
[
|
|
1285
|
-
"ERR_BAD_OPTION_VALUE",
|
|
1286
|
-
"ERR_BAD_OPTION",
|
|
1287
|
-
"ECONNABORTED",
|
|
1288
|
-
"ETIMEDOUT",
|
|
1289
|
-
"ERR_NETWORK",
|
|
1290
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
1291
|
-
"ERR_DEPRECATED",
|
|
1292
|
-
"ERR_BAD_RESPONSE",
|
|
1293
|
-
"ERR_BAD_REQUEST",
|
|
1294
|
-
"ERR_CANCELED",
|
|
1295
|
-
"ERR_NOT_SUPPORT",
|
|
1296
|
-
"ERR_INVALID_URL"
|
|
1297
|
-
// eslint-disable-next-line func-names
|
|
1298
|
-
].forEach((e) => {
|
|
1299
|
-
Xt[e] = { value: e };
|
|
1300
|
-
});
|
|
1301
|
-
Object.defineProperties(v, Xt);
|
|
1302
|
-
Object.defineProperty(Qt, "isAxiosError", { value: !0 });
|
|
1303
|
-
v.from = (e, t, r, n, o, s) => {
|
|
1304
|
-
const i = Object.create(Qt);
|
|
1305
|
-
return l.toFlatObject(e, i, function(f) {
|
|
1306
|
-
return f !== Error.prototype;
|
|
1307
|
-
}, (c) => c !== "isAxiosError"), v.call(i, e.message, t, r, n, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
1308
|
-
};
|
|
1309
|
-
const zn = null;
|
|
1310
|
-
function We(e) {
|
|
1311
|
-
return l.isPlainObject(e) || l.isArray(e);
|
|
1312
|
-
}
|
|
1313
|
-
function Zt(e) {
|
|
1314
|
-
return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
1315
|
-
}
|
|
1316
|
-
function xt(e, t, r) {
|
|
1317
|
-
return e ? e.concat(t).map(function(o, s) {
|
|
1318
|
-
return o = Zt(o), !r && s ? "[" + o + "]" : o;
|
|
1319
|
-
}).join(r ? "." : "") : t;
|
|
1320
|
-
}
|
|
1321
|
-
function Wn(e) {
|
|
1322
|
-
return l.isArray(e) && !e.some(We);
|
|
1323
|
-
}
|
|
1324
|
-
const Vn = l.toFlatObject(l, {}, null, function(t) {
|
|
1325
|
-
return /^is[A-Z]/.test(t);
|
|
1326
|
-
});
|
|
1327
|
-
function Ce(e, t, r) {
|
|
1328
|
-
if (!l.isObject(e))
|
|
1329
|
-
throw new TypeError("target must be an object");
|
|
1330
|
-
t = t || new FormData(), r = l.toFlatObject(r, {
|
|
1331
|
-
metaTokens: !0,
|
|
1332
|
-
dots: !1,
|
|
1333
|
-
indexes: !1
|
|
1334
|
-
}, !1, function(E, O) {
|
|
1335
|
-
return !l.isUndefined(O[E]);
|
|
1336
|
-
});
|
|
1337
|
-
const n = r.metaTokens, o = r.visitor || u, s = r.dots, i = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(t);
|
|
1338
|
-
if (!l.isFunction(o))
|
|
1339
|
-
throw new TypeError("visitor must be a function");
|
|
1340
|
-
function d(m) {
|
|
1341
|
-
if (m === null) return "";
|
|
1342
|
-
if (l.isDate(m))
|
|
1343
|
-
return m.toISOString();
|
|
1344
|
-
if (!f && l.isBlob(m))
|
|
1345
|
-
throw new v("Blob is not supported. Use a Buffer instead.");
|
|
1346
|
-
return l.isArrayBuffer(m) || l.isTypedArray(m) ? f && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
1347
|
-
}
|
|
1348
|
-
function u(m, E, O) {
|
|
1349
|
-
let w = m;
|
|
1350
|
-
if (m && !O && typeof m == "object") {
|
|
1351
|
-
if (l.endsWith(E, "{}"))
|
|
1352
|
-
E = n ? E : E.slice(0, -2), m = JSON.stringify(m);
|
|
1353
|
-
else if (l.isArray(m) && Wn(m) || (l.isFileList(m) || l.endsWith(E, "[]")) && (w = l.toArray(m)))
|
|
1354
|
-
return E = Zt(E), w.forEach(function(T, L) {
|
|
1355
|
-
!(l.isUndefined(T) || T === null) && t.append(
|
|
1356
|
-
// eslint-disable-next-line no-nested-ternary
|
|
1357
|
-
i === !0 ? xt([E], L, s) : i === null ? E : E + "[]",
|
|
1358
|
-
d(T)
|
|
1359
|
-
);
|
|
1360
|
-
}), !1;
|
|
1361
|
-
}
|
|
1362
|
-
return We(m) ? !0 : (t.append(xt(O, E, s), d(m)), !1);
|
|
1363
|
-
}
|
|
1364
|
-
const y = [], R = Object.assign(Vn, {
|
|
1365
|
-
defaultVisitor: u,
|
|
1366
|
-
convertValue: d,
|
|
1367
|
-
isVisitable: We
|
|
1368
|
-
});
|
|
1369
|
-
function p(m, E) {
|
|
1370
|
-
if (!l.isUndefined(m)) {
|
|
1371
|
-
if (y.indexOf(m) !== -1)
|
|
1372
|
-
throw Error("Circular reference detected in " + E.join("."));
|
|
1373
|
-
y.push(m), l.forEach(m, function(w, S) {
|
|
1374
|
-
(!(l.isUndefined(w) || w === null) && o.call(
|
|
1375
|
-
t,
|
|
1376
|
-
w,
|
|
1377
|
-
l.isString(S) ? S.trim() : S,
|
|
1378
|
-
E,
|
|
1379
|
-
R
|
|
1380
|
-
)) === !0 && p(w, E ? E.concat(S) : [S]);
|
|
1381
|
-
}), y.pop();
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
if (!l.isObject(e))
|
|
1385
|
-
throw new TypeError("data must be an object");
|
|
1386
|
-
return p(e), t;
|
|
1387
|
-
}
|
|
1388
|
-
function jt(e) {
|
|
1389
|
-
const t = {
|
|
1390
|
-
"!": "%21",
|
|
1391
|
-
"'": "%27",
|
|
1392
|
-
"(": "%28",
|
|
1393
|
-
")": "%29",
|
|
1394
|
-
"~": "%7E",
|
|
1395
|
-
"%20": "+",
|
|
1396
|
-
"%00": "\0"
|
|
1397
|
-
};
|
|
1398
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
|
|
1399
|
-
return t[n];
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
function Xe(e, t) {
|
|
1403
|
-
this._pairs = [], e && Ce(e, this, t);
|
|
1404
|
-
}
|
|
1405
|
-
const er = Xe.prototype;
|
|
1406
|
-
er.append = function(t, r) {
|
|
1407
|
-
this._pairs.push([t, r]);
|
|
1408
|
-
};
|
|
1409
|
-
er.toString = function(t) {
|
|
1410
|
-
const r = t ? function(n) {
|
|
1411
|
-
return t.call(this, n, jt);
|
|
1412
|
-
} : jt;
|
|
1413
|
-
return this._pairs.map(function(o) {
|
|
1414
|
-
return r(o[0]) + "=" + r(o[1]);
|
|
1415
|
-
}, "").join("&");
|
|
1416
|
-
};
|
|
1417
|
-
function Hn(e) {
|
|
1418
|
-
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1419
|
-
}
|
|
1420
|
-
function tr(e, t, r) {
|
|
1421
|
-
if (!t)
|
|
1422
|
-
return e;
|
|
1423
|
-
const n = r && r.encode || Hn, o = r && r.serialize;
|
|
1424
|
-
let s;
|
|
1425
|
-
if (o ? s = o(t, r) : s = l.isURLSearchParams(t) ? t.toString() : new Xe(t, r).toString(n), s) {
|
|
1426
|
-
const i = e.indexOf("#");
|
|
1427
|
-
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
1428
|
-
}
|
|
1429
|
-
return e;
|
|
1430
|
-
}
|
|
1431
|
-
class Ft {
|
|
1432
|
-
constructor() {
|
|
1433
|
-
this.handlers = [];
|
|
1434
|
-
}
|
|
1435
|
-
/**
|
|
1436
|
-
* Add a new interceptor to the stack
|
|
1437
|
-
*
|
|
1438
|
-
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
1439
|
-
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
1440
|
-
*
|
|
1441
|
-
* @return {Number} An ID used to remove interceptor later
|
|
1442
|
-
*/
|
|
1443
|
-
use(t, r, n) {
|
|
1444
|
-
return this.handlers.push({
|
|
1445
|
-
fulfilled: t,
|
|
1446
|
-
rejected: r,
|
|
1447
|
-
synchronous: n ? n.synchronous : !1,
|
|
1448
|
-
runWhen: n ? n.runWhen : null
|
|
1449
|
-
}), this.handlers.length - 1;
|
|
1450
|
-
}
|
|
1451
|
-
/**
|
|
1452
|
-
* Remove an interceptor from the stack
|
|
1453
|
-
*
|
|
1454
|
-
* @param {Number} id The ID that was returned by `use`
|
|
1455
|
-
*
|
|
1456
|
-
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
1457
|
-
*/
|
|
1458
|
-
eject(t) {
|
|
1459
|
-
this.handlers[t] && (this.handlers[t] = null);
|
|
1460
|
-
}
|
|
1461
|
-
/**
|
|
1462
|
-
* Clear all interceptors from the stack
|
|
1463
|
-
*
|
|
1464
|
-
* @returns {void}
|
|
1465
|
-
*/
|
|
1466
|
-
clear() {
|
|
1467
|
-
this.handlers && (this.handlers = []);
|
|
1468
|
-
}
|
|
1469
|
-
/**
|
|
1470
|
-
* Iterate over all the registered interceptors
|
|
1471
|
-
*
|
|
1472
|
-
* This method is particularly useful for skipping over any
|
|
1473
|
-
* interceptors that may have become `null` calling `eject`.
|
|
1474
|
-
*
|
|
1475
|
-
* @param {Function} fn The function to call for each interceptor
|
|
1476
|
-
*
|
|
1477
|
-
* @returns {void}
|
|
1478
|
-
*/
|
|
1479
|
-
forEach(t) {
|
|
1480
|
-
l.forEach(this.handlers, function(n) {
|
|
1481
|
-
n !== null && t(n);
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
const rr = {
|
|
1486
|
-
silentJSONParsing: !0,
|
|
1487
|
-
forcedJSONParsing: !0,
|
|
1488
|
-
clarifyTimeoutError: !1
|
|
1489
|
-
}, Jn = typeof URLSearchParams < "u" ? URLSearchParams : Xe, Yn = typeof FormData < "u" ? FormData : null, Kn = typeof Blob < "u" ? Blob : null, Gn = {
|
|
1490
|
-
isBrowser: !0,
|
|
1491
|
-
classes: {
|
|
1492
|
-
URLSearchParams: Jn,
|
|
1493
|
-
FormData: Yn,
|
|
1494
|
-
Blob: Kn
|
|
1495
|
-
},
|
|
1496
|
-
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1497
|
-
}, Ze = typeof window < "u" && typeof document < "u", Qn = ((e) => Ze && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Xn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
1498
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Zn = Ze && window.location.href || "http://localhost", eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1499
|
-
__proto__: null,
|
|
1500
|
-
hasBrowserEnv: Ze,
|
|
1501
|
-
hasStandardBrowserEnv: Qn,
|
|
1502
|
-
hasStandardBrowserWebWorkerEnv: Xn,
|
|
1503
|
-
origin: Zn
|
|
1504
|
-
}, Symbol.toStringTag, { value: "Module" })), M = {
|
|
1505
|
-
...eo,
|
|
1506
|
-
...Gn
|
|
1507
|
-
};
|
|
1508
|
-
function to(e, t) {
|
|
1509
|
-
return Ce(e, new M.classes.URLSearchParams(), Object.assign({
|
|
1510
|
-
visitor: function(r, n, o, s) {
|
|
1511
|
-
return M.isNode && l.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
1512
|
-
}
|
|
1513
|
-
}, t));
|
|
1514
|
-
}
|
|
1515
|
-
function ro(e) {
|
|
1516
|
-
return l.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
1517
|
-
}
|
|
1518
|
-
function no(e) {
|
|
1519
|
-
const t = {}, r = Object.keys(e);
|
|
1520
|
-
let n;
|
|
1521
|
-
const o = r.length;
|
|
1522
|
-
let s;
|
|
1523
|
-
for (n = 0; n < o; n++)
|
|
1524
|
-
s = r[n], t[s] = e[s];
|
|
1525
|
-
return t;
|
|
1526
|
-
}
|
|
1527
|
-
function nr(e) {
|
|
1528
|
-
function t(r, n, o, s) {
|
|
1529
|
-
let i = r[s++];
|
|
1530
|
-
if (i === "__proto__") return !0;
|
|
1531
|
-
const c = Number.isFinite(+i), f = s >= r.length;
|
|
1532
|
-
return i = !i && l.isArray(o) ? o.length : i, f ? (l.hasOwnProp(o, i) ? o[i] = [o[i], n] : o[i] = n, !c) : ((!o[i] || !l.isObject(o[i])) && (o[i] = []), t(r, n, o[i], s) && l.isArray(o[i]) && (o[i] = no(o[i])), !c);
|
|
1533
|
-
}
|
|
1534
|
-
if (l.isFormData(e) && l.isFunction(e.entries)) {
|
|
1535
|
-
const r = {};
|
|
1536
|
-
return l.forEachEntry(e, (n, o) => {
|
|
1537
|
-
t(ro(n), o, r, 0);
|
|
1538
|
-
}), r;
|
|
1539
|
-
}
|
|
1540
|
-
return null;
|
|
1541
|
-
}
|
|
1542
|
-
function oo(e, t, r) {
|
|
1543
|
-
if (l.isString(e))
|
|
1544
|
-
try {
|
|
1545
|
-
return (t || JSON.parse)(e), l.trim(e);
|
|
1546
|
-
} catch (n) {
|
|
1547
|
-
if (n.name !== "SyntaxError")
|
|
1548
|
-
throw n;
|
|
1549
|
-
}
|
|
1550
|
-
return (r || JSON.stringify)(e);
|
|
1551
|
-
}
|
|
1552
|
-
const fe = {
|
|
1553
|
-
transitional: rr,
|
|
1554
|
-
adapter: ["xhr", "http", "fetch"],
|
|
1555
|
-
transformRequest: [function(t, r) {
|
|
1556
|
-
const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, s = l.isObject(t);
|
|
1557
|
-
if (s && l.isHTMLForm(t) && (t = new FormData(t)), l.isFormData(t))
|
|
1558
|
-
return o ? JSON.stringify(nr(t)) : t;
|
|
1559
|
-
if (l.isArrayBuffer(t) || l.isBuffer(t) || l.isStream(t) || l.isFile(t) || l.isBlob(t) || l.isReadableStream(t))
|
|
1560
|
-
return t;
|
|
1561
|
-
if (l.isArrayBufferView(t))
|
|
1562
|
-
return t.buffer;
|
|
1563
|
-
if (l.isURLSearchParams(t))
|
|
1564
|
-
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
1565
|
-
let c;
|
|
1566
|
-
if (s) {
|
|
1567
|
-
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1568
|
-
return to(t, this.formSerializer).toString();
|
|
1569
|
-
if ((c = l.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
1570
|
-
const f = this.env && this.env.FormData;
|
|
1571
|
-
return Ce(
|
|
1572
|
-
c ? { "files[]": t } : t,
|
|
1573
|
-
f && new f(),
|
|
1574
|
-
this.formSerializer
|
|
1575
|
-
);
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
return s || o ? (r.setContentType("application/json", !1), oo(t)) : t;
|
|
1579
|
-
}],
|
|
1580
|
-
transformResponse: [function(t) {
|
|
1581
|
-
const r = this.transitional || fe.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
|
|
1582
|
-
if (l.isResponse(t) || l.isReadableStream(t))
|
|
1583
|
-
return t;
|
|
1584
|
-
if (t && l.isString(t) && (n && !this.responseType || o)) {
|
|
1585
|
-
const i = !(r && r.silentJSONParsing) && o;
|
|
1586
|
-
try {
|
|
1587
|
-
return JSON.parse(t);
|
|
1588
|
-
} catch (c) {
|
|
1589
|
-
if (i)
|
|
1590
|
-
throw c.name === "SyntaxError" ? v.from(c, v.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
return t;
|
|
1594
|
-
}],
|
|
1595
|
-
/**
|
|
1596
|
-
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
1597
|
-
* timeout is not created.
|
|
1598
|
-
*/
|
|
1599
|
-
timeout: 0,
|
|
1600
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
1601
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
1602
|
-
maxContentLength: -1,
|
|
1603
|
-
maxBodyLength: -1,
|
|
1604
|
-
env: {
|
|
1605
|
-
FormData: M.classes.FormData,
|
|
1606
|
-
Blob: M.classes.Blob
|
|
1607
|
-
},
|
|
1608
|
-
validateStatus: function(t) {
|
|
1609
|
-
return t >= 200 && t < 300;
|
|
1610
|
-
},
|
|
1611
|
-
headers: {
|
|
1612
|
-
common: {
|
|
1613
|
-
Accept: "application/json, text/plain, */*",
|
|
1614
|
-
"Content-Type": void 0
|
|
1615
|
-
}
|
|
1616
|
-
}
|
|
1617
|
-
};
|
|
1618
|
-
l.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1619
|
-
fe.headers[e] = {};
|
|
1620
|
-
});
|
|
1621
|
-
const so = l.toObjectSet([
|
|
1622
|
-
"age",
|
|
1623
|
-
"authorization",
|
|
1624
|
-
"content-length",
|
|
1625
|
-
"content-type",
|
|
1626
|
-
"etag",
|
|
1627
|
-
"expires",
|
|
1628
|
-
"from",
|
|
1629
|
-
"host",
|
|
1630
|
-
"if-modified-since",
|
|
1631
|
-
"if-unmodified-since",
|
|
1632
|
-
"last-modified",
|
|
1633
|
-
"location",
|
|
1634
|
-
"max-forwards",
|
|
1635
|
-
"proxy-authorization",
|
|
1636
|
-
"referer",
|
|
1637
|
-
"retry-after",
|
|
1638
|
-
"user-agent"
|
|
1639
|
-
]), io = (e) => {
|
|
1640
|
-
const t = {};
|
|
1641
|
-
let r, n, o;
|
|
1642
|
-
return e && e.split(`
|
|
1643
|
-
`).forEach(function(i) {
|
|
1644
|
-
o = i.indexOf(":"), r = i.substring(0, o).trim().toLowerCase(), n = i.substring(o + 1).trim(), !(!r || t[r] && so[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
1645
|
-
}), t;
|
|
1646
|
-
}, Nt = Symbol("internals");
|
|
1647
|
-
function ce(e) {
|
|
1648
|
-
return e && String(e).trim().toLowerCase();
|
|
1649
|
-
}
|
|
1650
|
-
function Re(e) {
|
|
1651
|
-
return e === !1 || e == null ? e : l.isArray(e) ? e.map(Re) : String(e);
|
|
1652
|
-
}
|
|
1653
|
-
function ao(e) {
|
|
1654
|
-
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1655
|
-
let n;
|
|
1656
|
-
for (; n = r.exec(e); )
|
|
1657
|
-
t[n[1]] = n[2];
|
|
1658
|
-
return t;
|
|
1659
|
-
}
|
|
1660
|
-
const co = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1661
|
-
function Be(e, t, r, n, o) {
|
|
1662
|
-
if (l.isFunction(n))
|
|
1663
|
-
return n.call(this, t, r);
|
|
1664
|
-
if (o && (t = r), !!l.isString(t)) {
|
|
1665
|
-
if (l.isString(n))
|
|
1666
|
-
return t.indexOf(n) !== -1;
|
|
1667
|
-
if (l.isRegExp(n))
|
|
1668
|
-
return n.test(t);
|
|
1669
|
-
}
|
|
1670
|
-
}
|
|
1671
|
-
function uo(e) {
|
|
1672
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
1673
|
-
}
|
|
1674
|
-
function lo(e, t) {
|
|
1675
|
-
const r = l.toCamelCase(" " + t);
|
|
1676
|
-
["get", "set", "has"].forEach((n) => {
|
|
1677
|
-
Object.defineProperty(e, n + r, {
|
|
1678
|
-
value: function(o, s, i) {
|
|
1679
|
-
return this[n].call(this, t, o, s, i);
|
|
1680
|
-
},
|
|
1681
|
-
configurable: !0
|
|
1682
|
-
});
|
|
1683
|
-
});
|
|
1684
|
-
}
|
|
1685
|
-
class I {
|
|
1686
|
-
constructor(t) {
|
|
1687
|
-
t && this.set(t);
|
|
1688
|
-
}
|
|
1689
|
-
set(t, r, n) {
|
|
1690
|
-
const o = this;
|
|
1691
|
-
function s(c, f, d) {
|
|
1692
|
-
const u = ce(f);
|
|
1693
|
-
if (!u)
|
|
1694
|
-
throw new Error("header name must be a non-empty string");
|
|
1695
|
-
const y = l.findKey(o, u);
|
|
1696
|
-
(!y || o[y] === void 0 || d === !0 || d === void 0 && o[y] !== !1) && (o[y || f] = Re(c));
|
|
1697
|
-
}
|
|
1698
|
-
const i = (c, f) => l.forEach(c, (d, u) => s(d, u, f));
|
|
1699
|
-
if (l.isPlainObject(t) || t instanceof this.constructor)
|
|
1700
|
-
i(t, r);
|
|
1701
|
-
else if (l.isString(t) && (t = t.trim()) && !co(t))
|
|
1702
|
-
i(io(t), r);
|
|
1703
|
-
else if (l.isHeaders(t))
|
|
1704
|
-
for (const [c, f] of t.entries())
|
|
1705
|
-
s(f, c, n);
|
|
1706
|
-
else
|
|
1707
|
-
t != null && s(r, t, n);
|
|
1708
|
-
return this;
|
|
1709
|
-
}
|
|
1710
|
-
get(t, r) {
|
|
1711
|
-
if (t = ce(t), t) {
|
|
1712
|
-
const n = l.findKey(this, t);
|
|
1713
|
-
if (n) {
|
|
1714
|
-
const o = this[n];
|
|
1715
|
-
if (!r)
|
|
1716
|
-
return o;
|
|
1717
|
-
if (r === !0)
|
|
1718
|
-
return ao(o);
|
|
1719
|
-
if (l.isFunction(r))
|
|
1720
|
-
return r.call(this, o, n);
|
|
1721
|
-
if (l.isRegExp(r))
|
|
1722
|
-
return r.exec(o);
|
|
1723
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
1724
|
-
}
|
|
1725
|
-
}
|
|
1726
|
-
}
|
|
1727
|
-
has(t, r) {
|
|
1728
|
-
if (t = ce(t), t) {
|
|
1729
|
-
const n = l.findKey(this, t);
|
|
1730
|
-
return !!(n && this[n] !== void 0 && (!r || Be(this, this[n], n, r)));
|
|
1731
|
-
}
|
|
1732
|
-
return !1;
|
|
1733
|
-
}
|
|
1734
|
-
delete(t, r) {
|
|
1735
|
-
const n = this;
|
|
1736
|
-
let o = !1;
|
|
1737
|
-
function s(i) {
|
|
1738
|
-
if (i = ce(i), i) {
|
|
1739
|
-
const c = l.findKey(n, i);
|
|
1740
|
-
c && (!r || Be(n, n[c], c, r)) && (delete n[c], o = !0);
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
|
-
return l.isArray(t) ? t.forEach(s) : s(t), o;
|
|
1744
|
-
}
|
|
1745
|
-
clear(t) {
|
|
1746
|
-
const r = Object.keys(this);
|
|
1747
|
-
let n = r.length, o = !1;
|
|
1748
|
-
for (; n--; ) {
|
|
1749
|
-
const s = r[n];
|
|
1750
|
-
(!t || Be(this, this[s], s, t, !0)) && (delete this[s], o = !0);
|
|
1751
|
-
}
|
|
1752
|
-
return o;
|
|
1753
|
-
}
|
|
1754
|
-
normalize(t) {
|
|
1755
|
-
const r = this, n = {};
|
|
1756
|
-
return l.forEach(this, (o, s) => {
|
|
1757
|
-
const i = l.findKey(n, s);
|
|
1758
|
-
if (i) {
|
|
1759
|
-
r[i] = Re(o), delete r[s];
|
|
1760
|
-
return;
|
|
1761
|
-
}
|
|
1762
|
-
const c = t ? uo(s) : String(s).trim();
|
|
1763
|
-
c !== s && delete r[s], r[c] = Re(o), n[c] = !0;
|
|
1764
|
-
}), this;
|
|
1765
|
-
}
|
|
1766
|
-
concat(...t) {
|
|
1767
|
-
return this.constructor.concat(this, ...t);
|
|
1768
|
-
}
|
|
1769
|
-
toJSON(t) {
|
|
1770
|
-
const r = /* @__PURE__ */ Object.create(null);
|
|
1771
|
-
return l.forEach(this, (n, o) => {
|
|
1772
|
-
n != null && n !== !1 && (r[o] = t && l.isArray(n) ? n.join(", ") : n);
|
|
1773
|
-
}), r;
|
|
1774
|
-
}
|
|
1775
|
-
[Symbol.iterator]() {
|
|
1776
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
1777
|
-
}
|
|
1778
|
-
toString() {
|
|
1779
|
-
return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
|
|
1780
|
-
`);
|
|
1781
|
-
}
|
|
1782
|
-
get [Symbol.toStringTag]() {
|
|
1783
|
-
return "AxiosHeaders";
|
|
1784
|
-
}
|
|
1785
|
-
static from(t) {
|
|
1786
|
-
return t instanceof this ? t : new this(t);
|
|
1787
|
-
}
|
|
1788
|
-
static concat(t, ...r) {
|
|
1789
|
-
const n = new this(t);
|
|
1790
|
-
return r.forEach((o) => n.set(o)), n;
|
|
1791
|
-
}
|
|
1792
|
-
static accessor(t) {
|
|
1793
|
-
const n = (this[Nt] = this[Nt] = {
|
|
1794
|
-
accessors: {}
|
|
1795
|
-
}).accessors, o = this.prototype;
|
|
1796
|
-
function s(i) {
|
|
1797
|
-
const c = ce(i);
|
|
1798
|
-
n[c] || (lo(o, i), n[c] = !0);
|
|
1799
|
-
}
|
|
1800
|
-
return l.isArray(t) ? t.forEach(s) : s(t), this;
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
I.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
1804
|
-
l.reduceDescriptors(I.prototype, ({ value: e }, t) => {
|
|
1805
|
-
let r = t[0].toUpperCase() + t.slice(1);
|
|
1806
|
-
return {
|
|
1807
|
-
get: () => e,
|
|
1808
|
-
set(n) {
|
|
1809
|
-
this[r] = n;
|
|
1810
|
-
}
|
|
1811
|
-
};
|
|
1812
|
-
});
|
|
1813
|
-
l.freezeMethods(I);
|
|
1814
|
-
function $e(e, t) {
|
|
1815
|
-
const r = this || fe, n = t || r, o = I.from(n.headers);
|
|
1816
|
-
let s = n.data;
|
|
1817
|
-
return l.forEach(e, function(c) {
|
|
1818
|
-
s = c.call(r, s, o.normalize(), t ? t.status : void 0);
|
|
1819
|
-
}), o.normalize(), s;
|
|
1820
|
-
}
|
|
1821
|
-
function or(e) {
|
|
1822
|
-
return !!(e && e.__CANCEL__);
|
|
1823
|
-
}
|
|
1824
|
-
function re(e, t, r) {
|
|
1825
|
-
v.call(this, e ?? "canceled", v.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
1826
|
-
}
|
|
1827
|
-
l.inherits(re, v, {
|
|
1828
|
-
__CANCEL__: !0
|
|
1829
|
-
});
|
|
1830
|
-
function sr(e, t, r) {
|
|
1831
|
-
const n = r.config.validateStatus;
|
|
1832
|
-
!r.status || !n || n(r.status) ? e(r) : t(new v(
|
|
1833
|
-
"Request failed with status code " + r.status,
|
|
1834
|
-
[v.ERR_BAD_REQUEST, v.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
1835
|
-
r.config,
|
|
1836
|
-
r.request,
|
|
1837
|
-
r
|
|
1838
|
-
));
|
|
1839
|
-
}
|
|
1840
|
-
function fo(e) {
|
|
1841
|
-
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1842
|
-
return t && t[1] || "";
|
|
1843
|
-
}
|
|
1844
|
-
function ho(e, t) {
|
|
1845
|
-
e = e || 10;
|
|
1846
|
-
const r = new Array(e), n = new Array(e);
|
|
1847
|
-
let o = 0, s = 0, i;
|
|
1848
|
-
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
1849
|
-
const d = Date.now(), u = n[s];
|
|
1850
|
-
i || (i = d), r[o] = f, n[o] = d;
|
|
1851
|
-
let y = s, R = 0;
|
|
1852
|
-
for (; y !== o; )
|
|
1853
|
-
R += r[y++], y = y % e;
|
|
1854
|
-
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), d - i < t)
|
|
1855
|
-
return;
|
|
1856
|
-
const p = u && d - u;
|
|
1857
|
-
return p ? Math.round(R * 1e3 / p) : void 0;
|
|
1858
|
-
};
|
|
1859
|
-
}
|
|
1860
|
-
function po(e, t) {
|
|
1861
|
-
let r = 0;
|
|
1862
|
-
const n = 1e3 / t;
|
|
1863
|
-
let o = null;
|
|
1864
|
-
return function() {
|
|
1865
|
-
const i = this === !0, c = Date.now();
|
|
1866
|
-
if (i || c - r > n)
|
|
1867
|
-
return o && (clearTimeout(o), o = null), r = c, e.apply(null, arguments);
|
|
1868
|
-
o || (o = setTimeout(() => (o = null, r = Date.now(), e.apply(null, arguments)), n - (c - r)));
|
|
1869
|
-
};
|
|
1870
|
-
}
|
|
1871
|
-
const ve = (e, t, r = 3) => {
|
|
1872
|
-
let n = 0;
|
|
1873
|
-
const o = ho(50, 250);
|
|
1874
|
-
return po((s) => {
|
|
1875
|
-
const i = s.loaded, c = s.lengthComputable ? s.total : void 0, f = i - n, d = o(f), u = i <= c;
|
|
1876
|
-
n = i;
|
|
1877
|
-
const y = {
|
|
1878
|
-
loaded: i,
|
|
1879
|
-
total: c,
|
|
1880
|
-
progress: c ? i / c : void 0,
|
|
1881
|
-
bytes: f,
|
|
1882
|
-
rate: d || void 0,
|
|
1883
|
-
estimated: d && c && u ? (c - i) / d : void 0,
|
|
1884
|
-
event: s,
|
|
1885
|
-
lengthComputable: c != null
|
|
1886
|
-
};
|
|
1887
|
-
y[t ? "download" : "upload"] = !0, e(y);
|
|
1888
|
-
}, r);
|
|
1889
|
-
}, mo = M.hasStandardBrowserEnv ? (
|
|
1890
|
-
// Standard browser envs have full support of the APIs needed to test
|
|
1891
|
-
// whether the request URL is of the same origin as current location.
|
|
1892
|
-
function() {
|
|
1893
|
-
const t = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a");
|
|
1894
|
-
let n;
|
|
1895
|
-
function o(s) {
|
|
1896
|
-
let i = s;
|
|
1897
|
-
return t && (r.setAttribute("href", i), i = r.href), r.setAttribute("href", i), {
|
|
1898
|
-
href: r.href,
|
|
1899
|
-
protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
|
|
1900
|
-
host: r.host,
|
|
1901
|
-
search: r.search ? r.search.replace(/^\?/, "") : "",
|
|
1902
|
-
hash: r.hash ? r.hash.replace(/^#/, "") : "",
|
|
1903
|
-
hostname: r.hostname,
|
|
1904
|
-
port: r.port,
|
|
1905
|
-
pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
|
|
1906
|
-
};
|
|
1907
|
-
}
|
|
1908
|
-
return n = o(window.location.href), function(i) {
|
|
1909
|
-
const c = l.isString(i) ? o(i) : i;
|
|
1910
|
-
return c.protocol === n.protocol && c.host === n.host;
|
|
1911
|
-
};
|
|
1912
|
-
}()
|
|
1913
|
-
) : (
|
|
1914
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
1915
|
-
/* @__PURE__ */ function() {
|
|
1916
|
-
return function() {
|
|
1917
|
-
return !0;
|
|
1918
|
-
};
|
|
1919
|
-
}()
|
|
1920
|
-
), yo = M.hasStandardBrowserEnv ? (
|
|
1921
|
-
// Standard browser envs support document.cookie
|
|
1922
|
-
{
|
|
1923
|
-
write(e, t, r, n, o, s) {
|
|
1924
|
-
const i = [e + "=" + encodeURIComponent(t)];
|
|
1925
|
-
l.isNumber(r) && i.push("expires=" + new Date(r).toGMTString()), l.isString(n) && i.push("path=" + n), l.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
1926
|
-
},
|
|
1927
|
-
read(e) {
|
|
1928
|
-
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
1929
|
-
return t ? decodeURIComponent(t[3]) : null;
|
|
1930
|
-
},
|
|
1931
|
-
remove(e) {
|
|
1932
|
-
this.write(e, "", Date.now() - 864e5);
|
|
1933
|
-
}
|
|
1934
|
-
}
|
|
1935
|
-
) : (
|
|
1936
|
-
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
1937
|
-
{
|
|
1938
|
-
write() {
|
|
1939
|
-
},
|
|
1940
|
-
read() {
|
|
1941
|
-
return null;
|
|
1942
|
-
},
|
|
1943
|
-
remove() {
|
|
1944
|
-
}
|
|
1945
|
-
}
|
|
1946
|
-
);
|
|
1947
|
-
function go(e) {
|
|
1948
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1949
|
-
}
|
|
1950
|
-
function Eo(e, t) {
|
|
1951
|
-
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1952
|
-
}
|
|
1953
|
-
function ir(e, t) {
|
|
1954
|
-
return e && !go(t) ? Eo(e, t) : t;
|
|
1955
|
-
}
|
|
1956
|
-
const Dt = (e) => e instanceof I ? { ...e } : e;
|
|
1957
|
-
function Q(e, t) {
|
|
1958
|
-
t = t || {};
|
|
1959
|
-
const r = {};
|
|
1960
|
-
function n(d, u, y) {
|
|
1961
|
-
return l.isPlainObject(d) && l.isPlainObject(u) ? l.merge.call({ caseless: y }, d, u) : l.isPlainObject(u) ? l.merge({}, u) : l.isArray(u) ? u.slice() : u;
|
|
1962
|
-
}
|
|
1963
|
-
function o(d, u, y) {
|
|
1964
|
-
if (l.isUndefined(u)) {
|
|
1965
|
-
if (!l.isUndefined(d))
|
|
1966
|
-
return n(void 0, d, y);
|
|
1967
|
-
} else return n(d, u, y);
|
|
1968
|
-
}
|
|
1969
|
-
function s(d, u) {
|
|
1970
|
-
if (!l.isUndefined(u))
|
|
1971
|
-
return n(void 0, u);
|
|
1972
|
-
}
|
|
1973
|
-
function i(d, u) {
|
|
1974
|
-
if (l.isUndefined(u)) {
|
|
1975
|
-
if (!l.isUndefined(d))
|
|
1976
|
-
return n(void 0, d);
|
|
1977
|
-
} else return n(void 0, u);
|
|
1978
|
-
}
|
|
1979
|
-
function c(d, u, y) {
|
|
1980
|
-
if (y in t)
|
|
1981
|
-
return n(d, u);
|
|
1982
|
-
if (y in e)
|
|
1983
|
-
return n(void 0, d);
|
|
1984
|
-
}
|
|
1985
|
-
const f = {
|
|
1986
|
-
url: s,
|
|
1987
|
-
method: s,
|
|
1988
|
-
data: s,
|
|
1989
|
-
baseURL: i,
|
|
1990
|
-
transformRequest: i,
|
|
1991
|
-
transformResponse: i,
|
|
1992
|
-
paramsSerializer: i,
|
|
1993
|
-
timeout: i,
|
|
1994
|
-
timeoutMessage: i,
|
|
1995
|
-
withCredentials: i,
|
|
1996
|
-
withXSRFToken: i,
|
|
1997
|
-
adapter: i,
|
|
1998
|
-
responseType: i,
|
|
1999
|
-
xsrfCookieName: i,
|
|
2000
|
-
xsrfHeaderName: i,
|
|
2001
|
-
onUploadProgress: i,
|
|
2002
|
-
onDownloadProgress: i,
|
|
2003
|
-
decompress: i,
|
|
2004
|
-
maxContentLength: i,
|
|
2005
|
-
maxBodyLength: i,
|
|
2006
|
-
beforeRedirect: i,
|
|
2007
|
-
transport: i,
|
|
2008
|
-
httpAgent: i,
|
|
2009
|
-
httpsAgent: i,
|
|
2010
|
-
cancelToken: i,
|
|
2011
|
-
socketPath: i,
|
|
2012
|
-
responseEncoding: i,
|
|
2013
|
-
validateStatus: c,
|
|
2014
|
-
headers: (d, u) => o(Dt(d), Dt(u), !0)
|
|
2015
|
-
};
|
|
2016
|
-
return l.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
2017
|
-
const y = f[u] || o, R = y(e[u], t[u], u);
|
|
2018
|
-
l.isUndefined(R) && y !== c || (r[u] = R);
|
|
2019
|
-
}), r;
|
|
2020
|
-
}
|
|
2021
|
-
const ar = (e) => {
|
|
2022
|
-
const t = Q({}, e);
|
|
2023
|
-
let { data: r, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: c } = t;
|
|
2024
|
-
t.headers = i = I.from(i), t.url = tr(ir(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
|
|
2025
|
-
"Authorization",
|
|
2026
|
-
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
2027
|
-
);
|
|
2028
|
-
let f;
|
|
2029
|
-
if (l.isFormData(r)) {
|
|
2030
|
-
if (M.hasStandardBrowserEnv || M.hasStandardBrowserWebWorkerEnv)
|
|
2031
|
-
i.setContentType(void 0);
|
|
2032
|
-
else if ((f = i.getContentType()) !== !1) {
|
|
2033
|
-
const [d, ...u] = f ? f.split(";").map((y) => y.trim()).filter(Boolean) : [];
|
|
2034
|
-
i.setContentType([d || "multipart/form-data", ...u].join("; "));
|
|
2035
|
-
}
|
|
2036
|
-
}
|
|
2037
|
-
if (M.hasStandardBrowserEnv && (n && l.isFunction(n) && (n = n(t)), n || n !== !1 && mo(t.url))) {
|
|
2038
|
-
const d = o && s && yo.read(s);
|
|
2039
|
-
d && i.set(o, d);
|
|
2040
|
-
}
|
|
2041
|
-
return t;
|
|
2042
|
-
}, wo = typeof XMLHttpRequest < "u", Ro = wo && function(e) {
|
|
2043
|
-
return new Promise(function(r, n) {
|
|
2044
|
-
const o = ar(e);
|
|
2045
|
-
let s = o.data;
|
|
2046
|
-
const i = I.from(o.headers).normalize();
|
|
2047
|
-
let { responseType: c } = o, f;
|
|
2048
|
-
function d() {
|
|
2049
|
-
o.cancelToken && o.cancelToken.unsubscribe(f), o.signal && o.signal.removeEventListener("abort", f);
|
|
2050
|
-
}
|
|
2051
|
-
let u = new XMLHttpRequest();
|
|
2052
|
-
u.open(o.method.toUpperCase(), o.url, !0), u.timeout = o.timeout;
|
|
2053
|
-
function y() {
|
|
2054
|
-
if (!u)
|
|
2055
|
-
return;
|
|
2056
|
-
const p = I.from(
|
|
2057
|
-
"getAllResponseHeaders" in u && u.getAllResponseHeaders()
|
|
2058
|
-
), E = {
|
|
2059
|
-
data: !c || c === "text" || c === "json" ? u.responseText : u.response,
|
|
2060
|
-
status: u.status,
|
|
2061
|
-
statusText: u.statusText,
|
|
2062
|
-
headers: p,
|
|
2063
|
-
config: e,
|
|
2064
|
-
request: u
|
|
2065
|
-
};
|
|
2066
|
-
sr(function(w) {
|
|
2067
|
-
r(w), d();
|
|
2068
|
-
}, function(w) {
|
|
2069
|
-
n(w), d();
|
|
2070
|
-
}, E), u = null;
|
|
2071
|
-
}
|
|
2072
|
-
"onloadend" in u ? u.onloadend = y : u.onreadystatechange = function() {
|
|
2073
|
-
!u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.indexOf("file:") === 0) || setTimeout(y);
|
|
2074
|
-
}, u.onabort = function() {
|
|
2075
|
-
u && (n(new v("Request aborted", v.ECONNABORTED, o, u)), u = null);
|
|
2076
|
-
}, u.onerror = function() {
|
|
2077
|
-
n(new v("Network Error", v.ERR_NETWORK, o, u)), u = null;
|
|
2078
|
-
}, u.ontimeout = function() {
|
|
2079
|
-
let m = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
2080
|
-
const E = o.transitional || rr;
|
|
2081
|
-
o.timeoutErrorMessage && (m = o.timeoutErrorMessage), n(new v(
|
|
2082
|
-
m,
|
|
2083
|
-
E.clarifyTimeoutError ? v.ETIMEDOUT : v.ECONNABORTED,
|
|
2084
|
-
o,
|
|
2085
|
-
u
|
|
2086
|
-
)), u = null;
|
|
2087
|
-
}, s === void 0 && i.setContentType(null), "setRequestHeader" in u && l.forEach(i.toJSON(), function(m, E) {
|
|
2088
|
-
u.setRequestHeader(E, m);
|
|
2089
|
-
}), l.isUndefined(o.withCredentials) || (u.withCredentials = !!o.withCredentials), c && c !== "json" && (u.responseType = o.responseType), typeof o.onDownloadProgress == "function" && u.addEventListener("progress", ve(o.onDownloadProgress, !0)), typeof o.onUploadProgress == "function" && u.upload && u.upload.addEventListener("progress", ve(o.onUploadProgress)), (o.cancelToken || o.signal) && (f = (p) => {
|
|
2090
|
-
u && (n(!p || p.type ? new re(null, e, u) : p), u.abort(), u = null);
|
|
2091
|
-
}, o.cancelToken && o.cancelToken.subscribe(f), o.signal && (o.signal.aborted ? f() : o.signal.addEventListener("abort", f)));
|
|
2092
|
-
const R = fo(o.url);
|
|
2093
|
-
if (R && M.protocols.indexOf(R) === -1) {
|
|
2094
|
-
n(new v("Unsupported protocol " + R + ":", v.ERR_BAD_REQUEST, e));
|
|
2095
|
-
return;
|
|
2096
|
-
}
|
|
2097
|
-
u.send(s || null);
|
|
2098
|
-
});
|
|
2099
|
-
}, bo = (e, t) => {
|
|
2100
|
-
let r = new AbortController(), n;
|
|
2101
|
-
const o = function(f) {
|
|
2102
|
-
if (!n) {
|
|
2103
|
-
n = !0, i();
|
|
2104
|
-
const d = f instanceof Error ? f : this.reason;
|
|
2105
|
-
r.abort(d instanceof v ? d : new re(d instanceof Error ? d.message : d));
|
|
2106
|
-
}
|
|
2107
|
-
};
|
|
2108
|
-
let s = t && setTimeout(() => {
|
|
2109
|
-
o(new v(`timeout ${t} of ms exceeded`, v.ETIMEDOUT));
|
|
2110
|
-
}, t);
|
|
2111
|
-
const i = () => {
|
|
2112
|
-
e && (s && clearTimeout(s), s = null, e.forEach((f) => {
|
|
2113
|
-
f && (f.removeEventListener ? f.removeEventListener("abort", o) : f.unsubscribe(o));
|
|
2114
|
-
}), e = null);
|
|
2115
|
-
};
|
|
2116
|
-
e.forEach((f) => f && f.addEventListener && f.addEventListener("abort", o));
|
|
2117
|
-
const { signal: c } = r;
|
|
2118
|
-
return c.unsubscribe = i, [c, () => {
|
|
2119
|
-
s && clearTimeout(s), s = null;
|
|
2120
|
-
}];
|
|
2121
|
-
}, vo = function* (e, t) {
|
|
2122
|
-
let r = e.byteLength;
|
|
2123
|
-
if (!t || r < t) {
|
|
2124
|
-
yield e;
|
|
2125
|
-
return;
|
|
2126
|
-
}
|
|
2127
|
-
let n = 0, o;
|
|
2128
|
-
for (; n < r; )
|
|
2129
|
-
o = n + t, yield e.slice(n, o), n = o;
|
|
2130
|
-
}, So = async function* (e, t, r) {
|
|
2131
|
-
for await (const n of e)
|
|
2132
|
-
yield* vo(ArrayBuffer.isView(n) ? n : await r(String(n)), t);
|
|
2133
|
-
}, Lt = (e, t, r, n, o) => {
|
|
2134
|
-
const s = So(e, t, o);
|
|
2135
|
-
let i = 0;
|
|
2136
|
-
return new ReadableStream({
|
|
2137
|
-
type: "bytes",
|
|
2138
|
-
async pull(c) {
|
|
2139
|
-
const { done: f, value: d } = await s.next();
|
|
2140
|
-
if (f) {
|
|
2141
|
-
c.close(), n();
|
|
2142
|
-
return;
|
|
2143
|
-
}
|
|
2144
|
-
let u = d.byteLength;
|
|
2145
|
-
r && r(i += u), c.enqueue(new Uint8Array(d));
|
|
2146
|
-
},
|
|
2147
|
-
cancel(c) {
|
|
2148
|
-
return n(c), s.return();
|
|
2149
|
-
}
|
|
2150
|
-
}, {
|
|
2151
|
-
highWaterMark: 2
|
|
2152
|
-
});
|
|
2153
|
-
}, kt = (e, t) => {
|
|
2154
|
-
const r = e != null;
|
|
2155
|
-
return (n) => setTimeout(() => t({
|
|
2156
|
-
lengthComputable: r,
|
|
2157
|
-
total: e,
|
|
2158
|
-
loaded: n
|
|
2159
|
-
}));
|
|
2160
|
-
}, _e = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", cr = _e && typeof ReadableStream == "function", Ve = _e && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Oo = cr && (() => {
|
|
2161
|
-
let e = !1;
|
|
2162
|
-
const t = new Request(M.origin, {
|
|
2163
|
-
body: new ReadableStream(),
|
|
2164
|
-
method: "POST",
|
|
2165
|
-
get duplex() {
|
|
2166
|
-
return e = !0, "half";
|
|
2167
|
-
}
|
|
2168
|
-
}).headers.has("Content-Type");
|
|
2169
|
-
return e && !t;
|
|
2170
|
-
})(), It = 64 * 1024, He = cr && !!(() => {
|
|
2171
|
-
try {
|
|
2172
|
-
return l.isReadableStream(new Response("").body);
|
|
2173
|
-
} catch {
|
|
2174
|
-
}
|
|
2175
|
-
})(), Se = {
|
|
2176
|
-
stream: He && ((e) => e.body)
|
|
2177
|
-
};
|
|
2178
|
-
_e && ((e) => {
|
|
2179
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
2180
|
-
!Se[t] && (Se[t] = l.isFunction(e[t]) ? (r) => r[t]() : (r, n) => {
|
|
2181
|
-
throw new v(`Response type '${t}' is not supported`, v.ERR_NOT_SUPPORT, n);
|
|
2182
|
-
});
|
|
2183
|
-
});
|
|
2184
|
-
})(new Response());
|
|
2185
|
-
const To = async (e) => {
|
|
2186
|
-
if (e == null)
|
|
2187
|
-
return 0;
|
|
2188
|
-
if (l.isBlob(e))
|
|
2189
|
-
return e.size;
|
|
2190
|
-
if (l.isSpecCompliantForm(e))
|
|
2191
|
-
return (await new Request(e).arrayBuffer()).byteLength;
|
|
2192
|
-
if (l.isArrayBufferView(e))
|
|
2193
|
-
return e.byteLength;
|
|
2194
|
-
if (l.isURLSearchParams(e) && (e = e + ""), l.isString(e))
|
|
2195
|
-
return (await Ve(e)).byteLength;
|
|
2196
|
-
}, Ao = async (e, t) => {
|
|
2197
|
-
const r = l.toFiniteNumber(e.getContentLength());
|
|
2198
|
-
return r ?? To(t);
|
|
2199
|
-
}, Co = _e && (async (e) => {
|
|
2200
|
-
let {
|
|
2201
|
-
url: t,
|
|
2202
|
-
method: r,
|
|
2203
|
-
data: n,
|
|
2204
|
-
signal: o,
|
|
2205
|
-
cancelToken: s,
|
|
2206
|
-
timeout: i,
|
|
2207
|
-
onDownloadProgress: c,
|
|
2208
|
-
onUploadProgress: f,
|
|
2209
|
-
responseType: d,
|
|
2210
|
-
headers: u,
|
|
2211
|
-
withCredentials: y = "same-origin",
|
|
2212
|
-
fetchOptions: R
|
|
2213
|
-
} = ar(e);
|
|
2214
|
-
d = d ? (d + "").toLowerCase() : "text";
|
|
2215
|
-
let [p, m] = o || s || i ? bo([o, s], i) : [], E, O;
|
|
2216
|
-
const w = () => {
|
|
2217
|
-
!E && setTimeout(() => {
|
|
2218
|
-
p && p.unsubscribe();
|
|
2219
|
-
}), E = !0;
|
|
2220
|
-
};
|
|
2221
|
-
let S;
|
|
2222
|
-
try {
|
|
2223
|
-
if (f && Oo && r !== "get" && r !== "head" && (S = await Ao(u, n)) !== 0) {
|
|
2224
|
-
let D = new Request(t, {
|
|
2225
|
-
method: "POST",
|
|
2226
|
-
body: n,
|
|
2227
|
-
duplex: "half"
|
|
2228
|
-
}), x;
|
|
2229
|
-
l.isFormData(n) && (x = D.headers.get("content-type")) && u.setContentType(x), D.body && (n = Lt(D.body, It, kt(
|
|
2230
|
-
S,
|
|
2231
|
-
ve(f)
|
|
2232
|
-
), null, Ve));
|
|
2233
|
-
}
|
|
2234
|
-
l.isString(y) || (y = y ? "cors" : "omit"), O = new Request(t, {
|
|
2235
|
-
...R,
|
|
2236
|
-
signal: p,
|
|
2237
|
-
method: r.toUpperCase(),
|
|
2238
|
-
headers: u.normalize().toJSON(),
|
|
2239
|
-
body: n,
|
|
2240
|
-
duplex: "half",
|
|
2241
|
-
withCredentials: y
|
|
2242
|
-
});
|
|
2243
|
-
let T = await fetch(O);
|
|
2244
|
-
const L = He && (d === "stream" || d === "response");
|
|
2245
|
-
if (He && (c || L)) {
|
|
2246
|
-
const D = {};
|
|
2247
|
-
["status", "statusText", "headers"].forEach((ne) => {
|
|
2248
|
-
D[ne] = T[ne];
|
|
2249
|
-
});
|
|
2250
|
-
const x = l.toFiniteNumber(T.headers.get("content-length"));
|
|
2251
|
-
T = new Response(
|
|
2252
|
-
Lt(T.body, It, c && kt(
|
|
2253
|
-
x,
|
|
2254
|
-
ve(c, !0)
|
|
2255
|
-
), L && w, Ve),
|
|
2256
|
-
D
|
|
2257
|
-
);
|
|
2258
|
-
}
|
|
2259
|
-
d = d || "text";
|
|
2260
|
-
let U = await Se[l.findKey(Se, d) || "text"](T, e);
|
|
2261
|
-
return !L && w(), m && m(), await new Promise((D, x) => {
|
|
2262
|
-
sr(D, x, {
|
|
2263
|
-
data: U,
|
|
2264
|
-
headers: I.from(T.headers),
|
|
2265
|
-
status: T.status,
|
|
2266
|
-
statusText: T.statusText,
|
|
2267
|
-
config: e,
|
|
2268
|
-
request: O
|
|
2269
|
-
});
|
|
2270
|
-
});
|
|
2271
|
-
} catch (T) {
|
|
2272
|
-
throw w(), T && T.name === "TypeError" && /fetch/i.test(T.message) ? Object.assign(
|
|
2273
|
-
new v("Network Error", v.ERR_NETWORK, e, O),
|
|
2274
|
-
{
|
|
2275
|
-
cause: T.cause || T
|
|
2276
|
-
}
|
|
2277
|
-
) : v.from(T, T && T.code, e, O);
|
|
2278
|
-
}
|
|
2279
|
-
}), Je = {
|
|
2280
|
-
http: zn,
|
|
2281
|
-
xhr: Ro,
|
|
2282
|
-
fetch: Co
|
|
2283
|
-
};
|
|
2284
|
-
l.forEach(Je, (e, t) => {
|
|
2285
|
-
if (e) {
|
|
2286
|
-
try {
|
|
2287
|
-
Object.defineProperty(e, "name", { value: t });
|
|
2288
|
-
} catch {
|
|
2289
|
-
}
|
|
2290
|
-
Object.defineProperty(e, "adapterName", { value: t });
|
|
2291
|
-
}
|
|
2292
|
-
});
|
|
2293
|
-
const Ut = (e) => `- ${e}`, _o = (e) => l.isFunction(e) || e === null || e === !1, ur = {
|
|
2294
|
-
getAdapter: (e) => {
|
|
2295
|
-
e = l.isArray(e) ? e : [e];
|
|
2296
|
-
const { length: t } = e;
|
|
2297
|
-
let r, n;
|
|
2298
|
-
const o = {};
|
|
2299
|
-
for (let s = 0; s < t; s++) {
|
|
2300
|
-
r = e[s];
|
|
2301
|
-
let i;
|
|
2302
|
-
if (n = r, !_o(r) && (n = Je[(i = String(r)).toLowerCase()], n === void 0))
|
|
2303
|
-
throw new v(`Unknown adapter '${i}'`);
|
|
2304
|
-
if (n)
|
|
2305
|
-
break;
|
|
2306
|
-
o[i || "#" + s] = n;
|
|
2307
|
-
}
|
|
2308
|
-
if (!n) {
|
|
2309
|
-
const s = Object.entries(o).map(
|
|
2310
|
-
([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
2311
|
-
);
|
|
2312
|
-
let i = t ? s.length > 1 ? `since :
|
|
2313
|
-
` + s.map(Ut).join(`
|
|
2314
|
-
`) : " " + Ut(s[0]) : "as no adapter specified";
|
|
2315
|
-
throw new v(
|
|
2316
|
-
"There is no suitable adapter to dispatch the request " + i,
|
|
2317
|
-
"ERR_NOT_SUPPORT"
|
|
2318
|
-
);
|
|
2319
|
-
}
|
|
2320
|
-
return n;
|
|
2321
|
-
},
|
|
2322
|
-
adapters: Je
|
|
2323
|
-
};
|
|
2324
|
-
function qe(e) {
|
|
2325
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2326
|
-
throw new re(null, e);
|
|
2327
|
-
}
|
|
2328
|
-
function Bt(e) {
|
|
2329
|
-
return qe(e), e.headers = I.from(e.headers), e.data = $e.call(
|
|
2330
|
-
e,
|
|
2331
|
-
e.transformRequest
|
|
2332
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ur.getAdapter(e.adapter || fe.adapter)(e).then(function(n) {
|
|
2333
|
-
return qe(e), n.data = $e.call(
|
|
2334
|
-
e,
|
|
2335
|
-
e.transformResponse,
|
|
2336
|
-
n
|
|
2337
|
-
), n.headers = I.from(n.headers), n;
|
|
2338
|
-
}, function(n) {
|
|
2339
|
-
return or(n) || (qe(e), n && n.response && (n.response.data = $e.call(
|
|
2340
|
-
e,
|
|
2341
|
-
e.transformResponse,
|
|
2342
|
-
n.response
|
|
2343
|
-
), n.response.headers = I.from(n.response.headers))), Promise.reject(n);
|
|
2344
|
-
});
|
|
2345
|
-
}
|
|
2346
|
-
const lr = "1.7.2", et = {};
|
|
2347
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
2348
|
-
et[e] = function(n) {
|
|
2349
|
-
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
2350
|
-
};
|
|
2351
|
-
});
|
|
2352
|
-
const $t = {};
|
|
2353
|
-
et.transitional = function(t, r, n) {
|
|
2354
|
-
function o(s, i) {
|
|
2355
|
-
return "[Axios v" + lr + "] Transitional option '" + s + "'" + i + (n ? ". " + n : "");
|
|
2356
|
-
}
|
|
2357
|
-
return (s, i, c) => {
|
|
2358
|
-
if (t === !1)
|
|
2359
|
-
throw new v(
|
|
2360
|
-
o(i, " has been removed" + (r ? " in " + r : "")),
|
|
2361
|
-
v.ERR_DEPRECATED
|
|
2362
|
-
);
|
|
2363
|
-
return r && !$t[i] && ($t[i] = !0, console.warn(
|
|
2364
|
-
o(
|
|
2365
|
-
i,
|
|
2366
|
-
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
2367
|
-
)
|
|
2368
|
-
)), t ? t(s, i, c) : !0;
|
|
2369
|
-
};
|
|
2370
|
-
};
|
|
2371
|
-
function Po(e, t, r) {
|
|
2372
|
-
if (typeof e != "object")
|
|
2373
|
-
throw new v("options must be an object", v.ERR_BAD_OPTION_VALUE);
|
|
2374
|
-
const n = Object.keys(e);
|
|
2375
|
-
let o = n.length;
|
|
2376
|
-
for (; o-- > 0; ) {
|
|
2377
|
-
const s = n[o], i = t[s];
|
|
2378
|
-
if (i) {
|
|
2379
|
-
const c = e[s], f = c === void 0 || i(c, s, e);
|
|
2380
|
-
if (f !== !0)
|
|
2381
|
-
throw new v("option " + s + " must be " + f, v.ERR_BAD_OPTION_VALUE);
|
|
2382
|
-
continue;
|
|
2383
|
-
}
|
|
2384
|
-
if (r !== !0)
|
|
2385
|
-
throw new v("Unknown option " + s, v.ERR_BAD_OPTION);
|
|
2386
|
-
}
|
|
2387
|
-
}
|
|
2388
|
-
const Ye = {
|
|
2389
|
-
assertOptions: Po,
|
|
2390
|
-
validators: et
|
|
2391
|
-
}, Y = Ye.validators;
|
|
2392
|
-
class G {
|
|
2393
|
-
constructor(t) {
|
|
2394
|
-
this.defaults = t, this.interceptors = {
|
|
2395
|
-
request: new Ft(),
|
|
2396
|
-
response: new Ft()
|
|
2397
|
-
};
|
|
2398
|
-
}
|
|
2399
|
-
/**
|
|
2400
|
-
* Dispatch a request
|
|
2401
|
-
*
|
|
2402
|
-
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
2403
|
-
* @param {?Object} config
|
|
2404
|
-
*
|
|
2405
|
-
* @returns {Promise} The Promise to be fulfilled
|
|
2406
|
-
*/
|
|
2407
|
-
async request(t, r) {
|
|
2408
|
-
try {
|
|
2409
|
-
return await this._request(t, r);
|
|
2410
|
-
} catch (n) {
|
|
2411
|
-
if (n instanceof Error) {
|
|
2412
|
-
let o;
|
|
2413
|
-
Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
|
|
2414
|
-
const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
|
|
2415
|
-
try {
|
|
2416
|
-
n.stack ? s && !String(n.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (n.stack += `
|
|
2417
|
-
` + s) : n.stack = s;
|
|
2418
|
-
} catch {
|
|
2419
|
-
}
|
|
2420
|
-
}
|
|
2421
|
-
throw n;
|
|
2422
|
-
}
|
|
2423
|
-
}
|
|
2424
|
-
_request(t, r) {
|
|
2425
|
-
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = Q(this.defaults, r);
|
|
2426
|
-
const { transitional: n, paramsSerializer: o, headers: s } = r;
|
|
2427
|
-
n !== void 0 && Ye.assertOptions(n, {
|
|
2428
|
-
silentJSONParsing: Y.transitional(Y.boolean),
|
|
2429
|
-
forcedJSONParsing: Y.transitional(Y.boolean),
|
|
2430
|
-
clarifyTimeoutError: Y.transitional(Y.boolean)
|
|
2431
|
-
}, !1), o != null && (l.isFunction(o) ? r.paramsSerializer = {
|
|
2432
|
-
serialize: o
|
|
2433
|
-
} : Ye.assertOptions(o, {
|
|
2434
|
-
encode: Y.function,
|
|
2435
|
-
serialize: Y.function
|
|
2436
|
-
}, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
2437
|
-
let i = s && l.merge(
|
|
2438
|
-
s.common,
|
|
2439
|
-
s[r.method]
|
|
2440
|
-
);
|
|
2441
|
-
s && l.forEach(
|
|
2442
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
2443
|
-
(m) => {
|
|
2444
|
-
delete s[m];
|
|
2445
|
-
}
|
|
2446
|
-
), r.headers = I.concat(i, s);
|
|
2447
|
-
const c = [];
|
|
2448
|
-
let f = !0;
|
|
2449
|
-
this.interceptors.request.forEach(function(E) {
|
|
2450
|
-
typeof E.runWhen == "function" && E.runWhen(r) === !1 || (f = f && E.synchronous, c.unshift(E.fulfilled, E.rejected));
|
|
2451
|
-
});
|
|
2452
|
-
const d = [];
|
|
2453
|
-
this.interceptors.response.forEach(function(E) {
|
|
2454
|
-
d.push(E.fulfilled, E.rejected);
|
|
2455
|
-
});
|
|
2456
|
-
let u, y = 0, R;
|
|
2457
|
-
if (!f) {
|
|
2458
|
-
const m = [Bt.bind(this), void 0];
|
|
2459
|
-
for (m.unshift.apply(m, c), m.push.apply(m, d), R = m.length, u = Promise.resolve(r); y < R; )
|
|
2460
|
-
u = u.then(m[y++], m[y++]);
|
|
2461
|
-
return u;
|
|
2462
|
-
}
|
|
2463
|
-
R = c.length;
|
|
2464
|
-
let p = r;
|
|
2465
|
-
for (y = 0; y < R; ) {
|
|
2466
|
-
const m = c[y++], E = c[y++];
|
|
2467
|
-
try {
|
|
2468
|
-
p = m(p);
|
|
2469
|
-
} catch (O) {
|
|
2470
|
-
E.call(this, O);
|
|
2471
|
-
break;
|
|
2472
|
-
}
|
|
2473
|
-
}
|
|
2474
|
-
try {
|
|
2475
|
-
u = Bt.call(this, p);
|
|
2476
|
-
} catch (m) {
|
|
2477
|
-
return Promise.reject(m);
|
|
2478
|
-
}
|
|
2479
|
-
for (y = 0, R = d.length; y < R; )
|
|
2480
|
-
u = u.then(d[y++], d[y++]);
|
|
2481
|
-
return u;
|
|
2482
|
-
}
|
|
2483
|
-
getUri(t) {
|
|
2484
|
-
t = Q(this.defaults, t);
|
|
2485
|
-
const r = ir(t.baseURL, t.url);
|
|
2486
|
-
return tr(r, t.params, t.paramsSerializer);
|
|
2487
|
-
}
|
|
2488
|
-
}
|
|
2489
|
-
l.forEach(["delete", "get", "head", "options"], function(t) {
|
|
2490
|
-
G.prototype[t] = function(r, n) {
|
|
2491
|
-
return this.request(Q(n || {}, {
|
|
2492
|
-
method: t,
|
|
2493
|
-
url: r,
|
|
2494
|
-
data: (n || {}).data
|
|
2495
|
-
}));
|
|
2496
|
-
};
|
|
2497
|
-
});
|
|
2498
|
-
l.forEach(["post", "put", "patch"], function(t) {
|
|
2499
|
-
function r(n) {
|
|
2500
|
-
return function(s, i, c) {
|
|
2501
|
-
return this.request(Q(c || {}, {
|
|
2502
|
-
method: t,
|
|
2503
|
-
headers: n ? {
|
|
2504
|
-
"Content-Type": "multipart/form-data"
|
|
2505
|
-
} : {},
|
|
2506
|
-
url: s,
|
|
2507
|
-
data: i
|
|
2508
|
-
}));
|
|
2509
|
-
};
|
|
2510
|
-
}
|
|
2511
|
-
G.prototype[t] = r(), G.prototype[t + "Form"] = r(!0);
|
|
2512
|
-
});
|
|
2513
|
-
class tt {
|
|
2514
|
-
constructor(t) {
|
|
2515
|
-
if (typeof t != "function")
|
|
2516
|
-
throw new TypeError("executor must be a function.");
|
|
2517
|
-
let r;
|
|
2518
|
-
this.promise = new Promise(function(s) {
|
|
2519
|
-
r = s;
|
|
2520
|
-
});
|
|
2521
|
-
const n = this;
|
|
2522
|
-
this.promise.then((o) => {
|
|
2523
|
-
if (!n._listeners) return;
|
|
2524
|
-
let s = n._listeners.length;
|
|
2525
|
-
for (; s-- > 0; )
|
|
2526
|
-
n._listeners[s](o);
|
|
2527
|
-
n._listeners = null;
|
|
2528
|
-
}), this.promise.then = (o) => {
|
|
2529
|
-
let s;
|
|
2530
|
-
const i = new Promise((c) => {
|
|
2531
|
-
n.subscribe(c), s = c;
|
|
2532
|
-
}).then(o);
|
|
2533
|
-
return i.cancel = function() {
|
|
2534
|
-
n.unsubscribe(s);
|
|
2535
|
-
}, i;
|
|
2536
|
-
}, t(function(s, i, c) {
|
|
2537
|
-
n.reason || (n.reason = new re(s, i, c), r(n.reason));
|
|
2538
|
-
});
|
|
2539
|
-
}
|
|
2540
|
-
/**
|
|
2541
|
-
* Throws a `CanceledError` if cancellation has been requested.
|
|
2542
|
-
*/
|
|
2543
|
-
throwIfRequested() {
|
|
2544
|
-
if (this.reason)
|
|
2545
|
-
throw this.reason;
|
|
2546
|
-
}
|
|
2547
|
-
/**
|
|
2548
|
-
* Subscribe to the cancel signal
|
|
2549
|
-
*/
|
|
2550
|
-
subscribe(t) {
|
|
2551
|
-
if (this.reason) {
|
|
2552
|
-
t(this.reason);
|
|
2553
|
-
return;
|
|
2554
|
-
}
|
|
2555
|
-
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
2556
|
-
}
|
|
2557
|
-
/**
|
|
2558
|
-
* Unsubscribe from the cancel signal
|
|
2559
|
-
*/
|
|
2560
|
-
unsubscribe(t) {
|
|
2561
|
-
if (!this._listeners)
|
|
2562
|
-
return;
|
|
2563
|
-
const r = this._listeners.indexOf(t);
|
|
2564
|
-
r !== -1 && this._listeners.splice(r, 1);
|
|
2565
|
-
}
|
|
2566
|
-
/**
|
|
2567
|
-
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
2568
|
-
* cancels the `CancelToken`.
|
|
2569
|
-
*/
|
|
2570
|
-
static source() {
|
|
2571
|
-
let t;
|
|
2572
|
-
return {
|
|
2573
|
-
token: new tt(function(o) {
|
|
2574
|
-
t = o;
|
|
2575
|
-
}),
|
|
2576
|
-
cancel: t
|
|
2577
|
-
};
|
|
2578
|
-
}
|
|
2579
|
-
}
|
|
2580
|
-
function xo(e) {
|
|
2581
|
-
return function(r) {
|
|
2582
|
-
return e.apply(null, r);
|
|
2583
|
-
};
|
|
2584
|
-
}
|
|
2585
|
-
function jo(e) {
|
|
2586
|
-
return l.isObject(e) && e.isAxiosError === !0;
|
|
2587
|
-
}
|
|
2588
|
-
const Ke = {
|
|
2589
|
-
Continue: 100,
|
|
2590
|
-
SwitchingProtocols: 101,
|
|
2591
|
-
Processing: 102,
|
|
2592
|
-
EarlyHints: 103,
|
|
2593
|
-
Ok: 200,
|
|
2594
|
-
Created: 201,
|
|
2595
|
-
Accepted: 202,
|
|
2596
|
-
NonAuthoritativeInformation: 203,
|
|
2597
|
-
NoContent: 204,
|
|
2598
|
-
ResetContent: 205,
|
|
2599
|
-
PartialContent: 206,
|
|
2600
|
-
MultiStatus: 207,
|
|
2601
|
-
AlreadyReported: 208,
|
|
2602
|
-
ImUsed: 226,
|
|
2603
|
-
MultipleChoices: 300,
|
|
2604
|
-
MovedPermanently: 301,
|
|
2605
|
-
Found: 302,
|
|
2606
|
-
SeeOther: 303,
|
|
2607
|
-
NotModified: 304,
|
|
2608
|
-
UseProxy: 305,
|
|
2609
|
-
Unused: 306,
|
|
2610
|
-
TemporaryRedirect: 307,
|
|
2611
|
-
PermanentRedirect: 308,
|
|
2612
|
-
BadRequest: 400,
|
|
2613
|
-
Unauthorized: 401,
|
|
2614
|
-
PaymentRequired: 402,
|
|
2615
|
-
Forbidden: 403,
|
|
2616
|
-
NotFound: 404,
|
|
2617
|
-
MethodNotAllowed: 405,
|
|
2618
|
-
NotAcceptable: 406,
|
|
2619
|
-
ProxyAuthenticationRequired: 407,
|
|
2620
|
-
RequestTimeout: 408,
|
|
2621
|
-
Conflict: 409,
|
|
2622
|
-
Gone: 410,
|
|
2623
|
-
LengthRequired: 411,
|
|
2624
|
-
PreconditionFailed: 412,
|
|
2625
|
-
PayloadTooLarge: 413,
|
|
2626
|
-
UriTooLong: 414,
|
|
2627
|
-
UnsupportedMediaType: 415,
|
|
2628
|
-
RangeNotSatisfiable: 416,
|
|
2629
|
-
ExpectationFailed: 417,
|
|
2630
|
-
ImATeapot: 418,
|
|
2631
|
-
MisdirectedRequest: 421,
|
|
2632
|
-
UnprocessableEntity: 422,
|
|
2633
|
-
Locked: 423,
|
|
2634
|
-
FailedDependency: 424,
|
|
2635
|
-
TooEarly: 425,
|
|
2636
|
-
UpgradeRequired: 426,
|
|
2637
|
-
PreconditionRequired: 428,
|
|
2638
|
-
TooManyRequests: 429,
|
|
2639
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
2640
|
-
UnavailableForLegalReasons: 451,
|
|
2641
|
-
InternalServerError: 500,
|
|
2642
|
-
NotImplemented: 501,
|
|
2643
|
-
BadGateway: 502,
|
|
2644
|
-
ServiceUnavailable: 503,
|
|
2645
|
-
GatewayTimeout: 504,
|
|
2646
|
-
HttpVersionNotSupported: 505,
|
|
2647
|
-
VariantAlsoNegotiates: 506,
|
|
2648
|
-
InsufficientStorage: 507,
|
|
2649
|
-
LoopDetected: 508,
|
|
2650
|
-
NotExtended: 510,
|
|
2651
|
-
NetworkAuthenticationRequired: 511
|
|
2652
|
-
};
|
|
2653
|
-
Object.entries(Ke).forEach(([e, t]) => {
|
|
2654
|
-
Ke[t] = e;
|
|
2655
|
-
});
|
|
2656
|
-
function fr(e) {
|
|
2657
|
-
const t = new G(e), r = zt(G.prototype.request, t);
|
|
2658
|
-
return l.extend(r, G.prototype, t, { allOwnKeys: !0 }), l.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
|
|
2659
|
-
return fr(Q(e, o));
|
|
2660
|
-
}, r;
|
|
2661
|
-
}
|
|
2662
|
-
const F = fr(fe);
|
|
2663
|
-
F.Axios = G;
|
|
2664
|
-
F.CanceledError = re;
|
|
2665
|
-
F.CancelToken = tt;
|
|
2666
|
-
F.isCancel = or;
|
|
2667
|
-
F.VERSION = lr;
|
|
2668
|
-
F.toFormData = Ce;
|
|
2669
|
-
F.AxiosError = v;
|
|
2670
|
-
F.Cancel = F.CanceledError;
|
|
2671
|
-
F.all = function(t) {
|
|
2672
|
-
return Promise.all(t);
|
|
2673
|
-
};
|
|
2674
|
-
F.spread = xo;
|
|
2675
|
-
F.isAxiosError = jo;
|
|
2676
|
-
F.mergeConfig = Q;
|
|
2677
|
-
F.AxiosHeaders = I;
|
|
2678
|
-
F.formToJSON = (e) => nr(l.isHTMLForm(e) ? new FormData(e) : e);
|
|
2679
|
-
F.getAdapter = ur.getAdapter;
|
|
2680
|
-
F.HttpStatusCode = Ke;
|
|
2681
|
-
F.default = F;
|
|
2682
|
-
const Go = (e, t) => {
|
|
2683
|
-
const r = F.CancelToken.source(), n = F({
|
|
2684
|
-
...e,
|
|
2685
|
-
...t,
|
|
2686
|
-
cancelToken: r.token
|
|
2687
|
-
}).then(({ data: o }) => o);
|
|
2688
|
-
return n.cancel = () => {
|
|
2689
|
-
r.cancel("Query was cancelled");
|
|
2690
|
-
}, n;
|
|
2691
|
-
};
|
|
2692
1030
|
export {
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
Kr as worksiteNameAdapter
|
|
1031
|
+
$t as GTMSendPageView,
|
|
1032
|
+
Nt as InitializeAxiosConfig,
|
|
1033
|
+
zt as InitializeDaysJSConfig,
|
|
1034
|
+
Yt as InitializeI18nConfig,
|
|
1035
|
+
Wt as InitializeSentryConfig,
|
|
1036
|
+
D as InjectDependenciesContext,
|
|
1037
|
+
Ft as InjectDependenciesProvider,
|
|
1038
|
+
Vt as MaskTextField,
|
|
1039
|
+
Ut as PreloadErrorHandler,
|
|
1040
|
+
Mt as QueryClientProviderWithConfig,
|
|
1041
|
+
Lt as RequireAuth,
|
|
1042
|
+
Ct as dateAdapter,
|
|
1043
|
+
St as distanceAdapter,
|
|
1044
|
+
Xt as getOrvalConfig,
|
|
1045
|
+
qt as useAdapter,
|
|
1046
|
+
Kt as useAuth,
|
|
1047
|
+
Bt as useCurrentLanguage,
|
|
1048
|
+
Qt as useFilters,
|
|
1049
|
+
Jt as useInfiniteDataGrid,
|
|
1050
|
+
Gt as useResponseError,
|
|
1051
|
+
Pt as worksiteNameAdapter
|
|
2715
1052
|
};
|