wcz-test 6.27.2 → 6.27.3

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.
Files changed (34) hide show
  1. package/dist/DialogsContext-CGAKEKKW.js +546 -0
  2. package/dist/DialogsContext-CGAKEKKW.js.map +1 -0
  3. package/dist/DialogsHooks-BZUdpDVJ.js +231 -0
  4. package/dist/{DialogsHooks-DzqOb2Zx.js.map → DialogsHooks-BZUdpDVJ.js.map} +1 -1
  5. package/dist/{FileHooks-C8Akmy_o.js → FileHooks-DCznEPaA.js} +65 -61
  6. package/dist/{FileHooks-C8Akmy_o.js.map → FileHooks-DCznEPaA.js.map} +1 -1
  7. package/dist/RouterListItemButton-C_jUvB6C.js +18 -0
  8. package/dist/RouterListItemButton-C_jUvB6C.js.map +1 -0
  9. package/dist/compiler-runtime-BNHg76kC.js +37 -0
  10. package/dist/compiler-runtime-BNHg76kC.js.map +1 -0
  11. package/dist/components.js +1562 -944
  12. package/dist/components.js.map +1 -1
  13. package/dist/hooks.js +278 -278
  14. package/dist/hooks.js.map +1 -1
  15. package/dist/i18next-Bx3TmZAT.js +1337 -0
  16. package/dist/i18next-Bx3TmZAT.js.map +1 -0
  17. package/dist/index.js +842 -973
  18. package/dist/index.js.map +1 -1
  19. package/dist/queries.js +85 -85
  20. package/dist/queries.js.map +1 -1
  21. package/dist/utils-DV30kRxW.js +1921 -0
  22. package/dist/utils-DV30kRxW.js.map +1 -0
  23. package/dist/utils.js +4 -5
  24. package/dist/utils.js.map +1 -1
  25. package/package.json +1 -2
  26. package/dist/DialogsContext-2Yy6yhzQ.js +0 -6
  27. package/dist/DialogsContext-2Yy6yhzQ.js.map +0 -1
  28. package/dist/DialogsHooks-DzqOb2Zx.js +0 -233
  29. package/dist/RouterListItemButton-i4Ne2G-Z.js +0 -508
  30. package/dist/RouterListItemButton-i4Ne2G-Z.js.map +0 -1
  31. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
  32. package/dist/_commonjsHelpers-DaMA6jEr.js.map +0 -1
  33. package/dist/utils-IWcYo8tM.js +0 -106
  34. package/dist/utils-IWcYo8tM.js.map +0 -1
@@ -0,0 +1,1921 @@
1
+ import { z as F } from "zod";
2
+ function $e(e, t) {
3
+ if (e instanceof Promise) throw new Error(t);
4
+ }
5
+ function Et(e, t) {
6
+ const n = {}, r = [];
7
+ for (const s in e) {
8
+ const i = e[s]["~standard"].validate(t[s]);
9
+ if ($e(i, `Validation must be synchronous, but ${s} returned a Promise.`), i.issues) {
10
+ r.push(...i.issues.map((o) => ({
11
+ ...o,
12
+ message: o.message,
13
+ path: [s, ...o.path ?? []]
14
+ })));
15
+ continue;
16
+ }
17
+ n[s] = i.value;
18
+ }
19
+ return r.length ? { issues: r } : { value: n };
20
+ }
21
+ function Je(e) {
22
+ const t = e.runtimeEnvStrict ?? e.runtimeEnv ?? process.env;
23
+ if (e.emptyStringAsUndefined ?? !1)
24
+ for (const [p, d] of Object.entries(t)) d === "" && delete t[p];
25
+ if (e.skipValidation) {
26
+ if (e.extends) for (const p of e.extends) p.skipValidation = !0;
27
+ return t;
28
+ }
29
+ const n = typeof e.client == "object" ? e.client : {}, r = typeof e.server == "object" ? e.server : {}, s = typeof e.shared == "object" ? e.shared : {}, i = e.isServer ?? (typeof window > "u" || "Deno" in window), o = i ? {
30
+ ...r,
31
+ ...s,
32
+ ...n
33
+ } : {
34
+ ...n,
35
+ ...s
36
+ }, c = e.createFinalSchema?.(o, i)?.["~standard"].validate(t) ?? Et(o, t);
37
+ $e(c, "Validation must be synchronous");
38
+ const h = e.onValidationError ?? ((p) => {
39
+ throw console.error("❌ Invalid environment variables:", p), new Error("Invalid environment variables");
40
+ }), f = e.onInvalidAccess ?? (() => {
41
+ throw new Error("❌ Attempted to access a server-side environment variable on the client");
42
+ });
43
+ if (c.issues) return h(c.issues);
44
+ const l = (p) => e.clientPrefix ? !p.startsWith(e.clientPrefix) && !(p in s) : !0, m = (p) => i || !l(p), b = (p) => p === "__esModule" || p === "$$typeof", g = (e.extends ?? []).reduce((p, d) => Object.assign(p, d), {}), u = Object.assign(g, c.value);
45
+ return new Proxy(u, { get(p, d) {
46
+ if (typeof d == "string" && !b(d))
47
+ return m(d) ? Reflect.get(p, d) : f(d);
48
+ } });
49
+ }
50
+ const wt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_API_URL: "http://localhost:3000", VITE_APP_TITLE: "WCZ Layout", VITE_DYNAMSOFT_LICENSE_KEY: "DLS2eyJoYW5kc2hha2VDb2RlIjoiMTAxMjU2MzQ5LTEwMTI4MDIzNyIsIm1haW5TZXJ2ZXJVUkwiOiJodHRwczovL21sdHMuZHluYW1zb2Z0LmNvbS8iLCJvcmdhbml6YXRpb25JRCI6IjEwMTI1NjM0OSIsInN0YW5kYnlTZXJ2ZXJVUkwiOiJodHRwczovL3NsdHMuZHluYW1zb2Z0LmNvbS8iLCJjaGVja0NvZGUiOi0yMjMwMzAzMjZ9", VITE_MUI_LICENSE_KEY: "d7aeb74913a4918a319bf4c253aa1a49Tz0xMjIzOTYsRT0xNzk1ODIzOTk5MDAwLFM9cHJlbWl1bSxMTT1zdWJzY3JpcHRpb24sUFY9aW5pdGlhbCxLVj0y" }, pe = Je({
51
+ clientPrefix: "VITE_",
52
+ client: {
53
+ VITE_APP_TITLE: F.string(),
54
+ VITE_MUI_LICENSE_KEY: F.string(),
55
+ VITE_API_URL: F.url()
56
+ },
57
+ runtimeEnv: wt,
58
+ emptyStringAsUndefined: !0
59
+ });
60
+ Je({
61
+ server: {
62
+ NODE_ENV: F.enum(["development", "testing", "staging", "production"]),
63
+ MICROSOFT_TENANT_ID: F.string(),
64
+ MICROSOFT_CLIENT_ID: F.string(),
65
+ MICROSOFT_CLIENT_SECRET: F.string(),
66
+ MICROSOFT_REDIRECT_URI: F.url(),
67
+ SESSION_SECRET: F.string()
68
+ },
69
+ runtimeEnv: process.env,
70
+ emptyStringAsUndefined: !0
71
+ });
72
+ function We(e, t) {
73
+ return function() {
74
+ return e.apply(t, arguments);
75
+ };
76
+ }
77
+ const { toString: gt } = Object.prototype, { getPrototypeOf: we } = Object, { iterator: se, toStringTag: Ke } = Symbol, oe = /* @__PURE__ */ ((e) => (t) => {
78
+ const n = gt.call(t);
79
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
80
+ })(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => oe(t) === e), ie = (e) => (t) => typeof t === e, { isArray: q } = Array, H = ie("undefined");
81
+ function J(e) {
82
+ return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && T(e.constructor.isBuffer) && e.constructor.isBuffer(e);
83
+ }
84
+ const Xe = P("ArrayBuffer");
85
+ function St(e) {
86
+ let t;
87
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Xe(e.buffer), t;
88
+ }
89
+ const Rt = ie("string"), T = ie("function"), Ye = ie("number"), W = (e) => e !== null && typeof e == "object", Ot = (e) => e === !0 || e === !1, ee = (e) => {
90
+ if (oe(e) !== "object")
91
+ return !1;
92
+ const t = we(e);
93
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ke in e) && !(se in e);
94
+ }, Tt = (e) => {
95
+ if (!W(e) || J(e))
96
+ return !1;
97
+ try {
98
+ return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
99
+ } catch {
100
+ return !1;
101
+ }
102
+ }, At = P("Date"), Ct = P("File"), _t = P("Blob"), xt = P("FileList"), Pt = (e) => W(e) && T(e.pipe), Nt = (e) => {
103
+ let t;
104
+ return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t = oe(e)) === "formdata" || // detect form-data instance
105
+ t === "object" && T(e.toString) && e.toString() === "[object FormData]"));
106
+ }, Lt = P("URLSearchParams"), [Ft, Ut, It, Dt] = ["ReadableStream", "Request", "Response", "Headers"].map(P), kt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
107
+ function K(e, t, { allOwnKeys: n = !1 } = {}) {
108
+ if (e === null || typeof e > "u")
109
+ return;
110
+ let r, s;
111
+ if (typeof e != "object" && (e = [e]), q(e))
112
+ for (r = 0, s = e.length; r < s; r++)
113
+ t.call(null, e[r], r, e);
114
+ else {
115
+ if (J(e))
116
+ return;
117
+ const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
118
+ let c;
119
+ for (r = 0; r < o; r++)
120
+ c = i[r], t.call(null, e[c], c, e);
121
+ }
122
+ }
123
+ function Ze(e, t) {
124
+ if (J(e))
125
+ return null;
126
+ t = t.toLowerCase();
127
+ const n = Object.keys(e);
128
+ let r = n.length, s;
129
+ for (; r-- > 0; )
130
+ if (s = n[r], t === s.toLowerCase())
131
+ return s;
132
+ return null;
133
+ }
134
+ const j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ge = (e) => !H(e) && e !== j;
135
+ function me() {
136
+ const { caseless: e, skipUndefined: t } = Ge(this) && this || {}, n = {}, r = (s, i) => {
137
+ const o = e && Ze(n, i) || i;
138
+ ee(n[o]) && ee(s) ? n[o] = me(n[o], s) : ee(s) ? n[o] = me({}, s) : q(s) ? n[o] = s.slice() : (!t || !H(s)) && (n[o] = s);
139
+ };
140
+ for (let s = 0, i = arguments.length; s < i; s++)
141
+ arguments[s] && K(arguments[s], r);
142
+ return n;
143
+ }
144
+ const jt = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (s, i) => {
145
+ n && T(s) ? e[i] = We(s, n) : e[i] = s;
146
+ }, { allOwnKeys: r }), e), Bt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Mt = (e, t, n, r) => {
147
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
148
+ value: t.prototype
149
+ }), n && Object.assign(e.prototype, n);
150
+ }, vt = (e, t, n, r) => {
151
+ let s, i, o;
152
+ const c = {};
153
+ if (t = t || {}, e == null) return t;
154
+ do {
155
+ for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
156
+ o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
157
+ e = n !== !1 && we(e);
158
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
159
+ return t;
160
+ }, Ht = (e, t, n) => {
161
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
162
+ const r = e.indexOf(t, n);
163
+ return r !== -1 && r === n;
164
+ }, qt = (e) => {
165
+ if (!e) return null;
166
+ if (q(e)) return e;
167
+ let t = e.length;
168
+ if (!Ye(t)) return null;
169
+ const n = new Array(t);
170
+ for (; t-- > 0; )
171
+ n[t] = e[t];
172
+ return n;
173
+ }, zt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && we(Uint8Array)), Vt = (e, t) => {
174
+ const r = (e && e[se]).call(e);
175
+ let s;
176
+ for (; (s = r.next()) && !s.done; ) {
177
+ const i = s.value;
178
+ t.call(e, i[0], i[1]);
179
+ }
180
+ }, $t = (e, t) => {
181
+ let n;
182
+ const r = [];
183
+ for (; (n = e.exec(t)) !== null; )
184
+ r.push(n);
185
+ return r;
186
+ }, Jt = P("HTMLFormElement"), Wt = (e) => e.toLowerCase().replace(
187
+ /[-_\s]([a-z\d])(\w*)/g,
188
+ function(n, r, s) {
189
+ return r.toUpperCase() + s;
190
+ }
191
+ ), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Kt = P("RegExp"), Qe = (e, t) => {
192
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
193
+ K(n, (s, i) => {
194
+ let o;
195
+ (o = t(s, i, e)) !== !1 && (r[i] = o || s);
196
+ }), Object.defineProperties(e, r);
197
+ }, Xt = (e) => {
198
+ Qe(e, (t, n) => {
199
+ if (T(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
200
+ return !1;
201
+ const r = e[n];
202
+ if (T(r)) {
203
+ if (t.enumerable = !1, "writable" in t) {
204
+ t.writable = !1;
205
+ return;
206
+ }
207
+ t.set || (t.set = () => {
208
+ throw Error("Can not rewrite read-only method '" + n + "'");
209
+ });
210
+ }
211
+ });
212
+ }, Yt = (e, t) => {
213
+ const n = {}, r = (s) => {
214
+ s.forEach((i) => {
215
+ n[i] = !0;
216
+ });
217
+ };
218
+ return q(e) ? r(e) : r(String(e).split(t)), n;
219
+ }, Zt = () => {
220
+ }, Gt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
221
+ function Qt(e) {
222
+ return !!(e && T(e.append) && e[Ke] === "FormData" && e[se]);
223
+ }
224
+ const en = (e) => {
225
+ const t = new Array(10), n = (r, s) => {
226
+ if (W(r)) {
227
+ if (t.indexOf(r) >= 0)
228
+ return;
229
+ if (J(r))
230
+ return r;
231
+ if (!("toJSON" in r)) {
232
+ t[s] = r;
233
+ const i = q(r) ? [] : {};
234
+ return K(r, (o, c) => {
235
+ const h = n(o, s + 1);
236
+ !H(h) && (i[c] = h);
237
+ }), t[s] = void 0, i;
238
+ }
239
+ }
240
+ return r;
241
+ };
242
+ return n(e, 0);
243
+ }, tn = P("AsyncFunction"), nn = (e) => e && (W(e) || T(e)) && T(e.then) && T(e.catch), et = ((e, t) => e ? setImmediate : t ? ((n, r) => (j.addEventListener("message", ({ source: s, data: i }) => {
244
+ s === j && i === n && r.length && r.shift()();
245
+ }, !1), (s) => {
246
+ r.push(s), j.postMessage(n, "*");
247
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
248
+ typeof setImmediate == "function",
249
+ T(j.postMessage)
250
+ ), rn = typeof queueMicrotask < "u" ? queueMicrotask.bind(j) : typeof process < "u" && process.nextTick || et, sn = (e) => e != null && T(e[se]), a = {
251
+ isArray: q,
252
+ isArrayBuffer: Xe,
253
+ isBuffer: J,
254
+ isFormData: Nt,
255
+ isArrayBufferView: St,
256
+ isString: Rt,
257
+ isNumber: Ye,
258
+ isBoolean: Ot,
259
+ isObject: W,
260
+ isPlainObject: ee,
261
+ isEmptyObject: Tt,
262
+ isReadableStream: Ft,
263
+ isRequest: Ut,
264
+ isResponse: It,
265
+ isHeaders: Dt,
266
+ isUndefined: H,
267
+ isDate: At,
268
+ isFile: Ct,
269
+ isBlob: _t,
270
+ isRegExp: Kt,
271
+ isFunction: T,
272
+ isStream: Pt,
273
+ isURLSearchParams: Lt,
274
+ isTypedArray: zt,
275
+ isFileList: xt,
276
+ forEach: K,
277
+ merge: me,
278
+ extend: jt,
279
+ trim: kt,
280
+ stripBOM: Bt,
281
+ inherits: Mt,
282
+ toFlatObject: vt,
283
+ kindOf: oe,
284
+ kindOfTest: P,
285
+ endsWith: Ht,
286
+ toArray: qt,
287
+ forEachEntry: Vt,
288
+ matchAll: $t,
289
+ isHTMLForm: Jt,
290
+ hasOwnProperty: Pe,
291
+ hasOwnProp: Pe,
292
+ // an alias to avoid ESLint no-prototype-builtins detection
293
+ reduceDescriptors: Qe,
294
+ freezeMethods: Xt,
295
+ toObjectSet: Yt,
296
+ toCamelCase: Wt,
297
+ noop: Zt,
298
+ toFiniteNumber: Gt,
299
+ findKey: Ze,
300
+ global: j,
301
+ isContextDefined: Ge,
302
+ isSpecCompliantForm: Qt,
303
+ toJSONObject: en,
304
+ isAsyncFn: tn,
305
+ isThenable: nn,
306
+ setImmediate: et,
307
+ asap: rn,
308
+ isIterable: sn
309
+ };
310
+ function y(e, t, n, r, s) {
311
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
312
+ }
313
+ a.inherits(y, Error, {
314
+ toJSON: function() {
315
+ return {
316
+ // Standard
317
+ message: this.message,
318
+ name: this.name,
319
+ // Microsoft
320
+ description: this.description,
321
+ number: this.number,
322
+ // Mozilla
323
+ fileName: this.fileName,
324
+ lineNumber: this.lineNumber,
325
+ columnNumber: this.columnNumber,
326
+ stack: this.stack,
327
+ // Axios
328
+ config: a.toJSONObject(this.config),
329
+ code: this.code,
330
+ status: this.status
331
+ };
332
+ }
333
+ });
334
+ const tt = y.prototype, nt = {};
335
+ [
336
+ "ERR_BAD_OPTION_VALUE",
337
+ "ERR_BAD_OPTION",
338
+ "ECONNABORTED",
339
+ "ETIMEDOUT",
340
+ "ERR_NETWORK",
341
+ "ERR_FR_TOO_MANY_REDIRECTS",
342
+ "ERR_DEPRECATED",
343
+ "ERR_BAD_RESPONSE",
344
+ "ERR_BAD_REQUEST",
345
+ "ERR_CANCELED",
346
+ "ERR_NOT_SUPPORT",
347
+ "ERR_INVALID_URL"
348
+ // eslint-disable-next-line func-names
349
+ ].forEach((e) => {
350
+ nt[e] = { value: e };
351
+ });
352
+ Object.defineProperties(y, nt);
353
+ Object.defineProperty(tt, "isAxiosError", { value: !0 });
354
+ y.from = (e, t, n, r, s, i) => {
355
+ const o = Object.create(tt);
356
+ a.toFlatObject(e, o, function(l) {
357
+ return l !== Error.prototype;
358
+ }, (f) => f !== "isAxiosError");
359
+ const c = e && e.message ? e.message : "Error", h = t == null && e ? e.code : t;
360
+ return y.call(o, c, h, n, r, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
361
+ };
362
+ const on = null;
363
+ function ye(e) {
364
+ return a.isPlainObject(e) || a.isArray(e);
365
+ }
366
+ function rt(e) {
367
+ return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
368
+ }
369
+ function Ne(e, t, n) {
370
+ return e ? e.concat(t).map(function(s, i) {
371
+ return s = rt(s), !n && i ? "[" + s + "]" : s;
372
+ }).join(n ? "." : "") : t;
373
+ }
374
+ function an(e) {
375
+ return a.isArray(e) && !e.some(ye);
376
+ }
377
+ const cn = a.toFlatObject(a, {}, null, function(t) {
378
+ return /^is[A-Z]/.test(t);
379
+ });
380
+ function ae(e, t, n) {
381
+ if (!a.isObject(e))
382
+ throw new TypeError("target must be an object");
383
+ t = t || new FormData(), n = a.toFlatObject(n, {
384
+ metaTokens: !0,
385
+ dots: !1,
386
+ indexes: !1
387
+ }, !1, function(p, d) {
388
+ return !a.isUndefined(d[p]);
389
+ });
390
+ const r = n.metaTokens, s = n.visitor || l, i = n.dots, o = n.indexes, h = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
391
+ if (!a.isFunction(s))
392
+ throw new TypeError("visitor must be a function");
393
+ function f(u) {
394
+ if (u === null) return "";
395
+ if (a.isDate(u))
396
+ return u.toISOString();
397
+ if (a.isBoolean(u))
398
+ return u.toString();
399
+ if (!h && a.isBlob(u))
400
+ throw new y("Blob is not supported. Use a Buffer instead.");
401
+ return a.isArrayBuffer(u) || a.isTypedArray(u) ? h && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
402
+ }
403
+ function l(u, p, d) {
404
+ let w = u;
405
+ if (u && !d && typeof u == "object") {
406
+ if (a.endsWith(p, "{}"))
407
+ p = r ? p : p.slice(0, -2), u = JSON.stringify(u);
408
+ else if (a.isArray(u) && an(u) || (a.isFileList(u) || a.endsWith(p, "[]")) && (w = a.toArray(u)))
409
+ return p = rt(p), w.forEach(function(S, O) {
410
+ !(a.isUndefined(S) || S === null) && t.append(
411
+ // eslint-disable-next-line no-nested-ternary
412
+ o === !0 ? Ne([p], O, i) : o === null ? p : p + "[]",
413
+ f(S)
414
+ );
415
+ }), !1;
416
+ }
417
+ return ye(u) ? !0 : (t.append(Ne(d, p, i), f(u)), !1);
418
+ }
419
+ const m = [], b = Object.assign(cn, {
420
+ defaultVisitor: l,
421
+ convertValue: f,
422
+ isVisitable: ye
423
+ });
424
+ function g(u, p) {
425
+ if (!a.isUndefined(u)) {
426
+ if (m.indexOf(u) !== -1)
427
+ throw Error("Circular reference detected in " + p.join("."));
428
+ m.push(u), a.forEach(u, function(w, C) {
429
+ (!(a.isUndefined(w) || w === null) && s.call(
430
+ t,
431
+ w,
432
+ a.isString(C) ? C.trim() : C,
433
+ p,
434
+ b
435
+ )) === !0 && g(w, p ? p.concat(C) : [C]);
436
+ }), m.pop();
437
+ }
438
+ }
439
+ if (!a.isObject(e))
440
+ throw new TypeError("data must be an object");
441
+ return g(e), t;
442
+ }
443
+ function Le(e) {
444
+ const t = {
445
+ "!": "%21",
446
+ "'": "%27",
447
+ "(": "%28",
448
+ ")": "%29",
449
+ "~": "%7E",
450
+ "%20": "+",
451
+ "%00": "\0"
452
+ };
453
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
454
+ return t[r];
455
+ });
456
+ }
457
+ function ge(e, t) {
458
+ this._pairs = [], e && ae(e, this, t);
459
+ }
460
+ const st = ge.prototype;
461
+ st.append = function(t, n) {
462
+ this._pairs.push([t, n]);
463
+ };
464
+ st.toString = function(t) {
465
+ const n = t ? function(r) {
466
+ return t.call(this, r, Le);
467
+ } : Le;
468
+ return this._pairs.map(function(s) {
469
+ return n(s[0]) + "=" + n(s[1]);
470
+ }, "").join("&");
471
+ };
472
+ function ln(e) {
473
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
474
+ }
475
+ function ot(e, t, n) {
476
+ if (!t)
477
+ return e;
478
+ const r = n && n.encode || ln;
479
+ a.isFunction(n) && (n = {
480
+ serialize: n
481
+ });
482
+ const s = n && n.serialize;
483
+ let i;
484
+ if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new ge(t, n).toString(r), i) {
485
+ const o = e.indexOf("#");
486
+ o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
487
+ }
488
+ return e;
489
+ }
490
+ class Fe {
491
+ constructor() {
492
+ this.handlers = [];
493
+ }
494
+ /**
495
+ * Add a new interceptor to the stack
496
+ *
497
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
498
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
499
+ *
500
+ * @return {Number} An ID used to remove interceptor later
501
+ */
502
+ use(t, n, r) {
503
+ return this.handlers.push({
504
+ fulfilled: t,
505
+ rejected: n,
506
+ synchronous: r ? r.synchronous : !1,
507
+ runWhen: r ? r.runWhen : null
508
+ }), this.handlers.length - 1;
509
+ }
510
+ /**
511
+ * Remove an interceptor from the stack
512
+ *
513
+ * @param {Number} id The ID that was returned by `use`
514
+ *
515
+ * @returns {void}
516
+ */
517
+ eject(t) {
518
+ this.handlers[t] && (this.handlers[t] = null);
519
+ }
520
+ /**
521
+ * Clear all interceptors from the stack
522
+ *
523
+ * @returns {void}
524
+ */
525
+ clear() {
526
+ this.handlers && (this.handlers = []);
527
+ }
528
+ /**
529
+ * Iterate over all the registered interceptors
530
+ *
531
+ * This method is particularly useful for skipping over any
532
+ * interceptors that may have become `null` calling `eject`.
533
+ *
534
+ * @param {Function} fn The function to call for each interceptor
535
+ *
536
+ * @returns {void}
537
+ */
538
+ forEach(t) {
539
+ a.forEach(this.handlers, function(r) {
540
+ r !== null && t(r);
541
+ });
542
+ }
543
+ }
544
+ const it = {
545
+ silentJSONParsing: !0,
546
+ forcedJSONParsing: !0,
547
+ clarifyTimeoutError: !1
548
+ }, un = typeof URLSearchParams < "u" ? URLSearchParams : ge, fn = typeof FormData < "u" ? FormData : null, dn = typeof Blob < "u" ? Blob : null, hn = {
549
+ isBrowser: !0,
550
+ classes: {
551
+ URLSearchParams: un,
552
+ FormData: fn,
553
+ Blob: dn
554
+ },
555
+ protocols: ["http", "https", "file", "blob", "url", "data"]
556
+ }, Se = typeof window < "u" && typeof document < "u", be = typeof navigator == "object" && navigator || void 0, pn = Se && (!be || ["ReactNative", "NativeScript", "NS"].indexOf(be.product) < 0), mn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
557
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", yn = Se && window.location.href || "http://localhost", bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
558
+ __proto__: null,
559
+ hasBrowserEnv: Se,
560
+ hasStandardBrowserEnv: pn,
561
+ hasStandardBrowserWebWorkerEnv: mn,
562
+ navigator: be,
563
+ origin: yn
564
+ }, Symbol.toStringTag, { value: "Module" })), R = {
565
+ ...bn,
566
+ ...hn
567
+ };
568
+ function En(e, t) {
569
+ return ae(e, new R.classes.URLSearchParams(), {
570
+ visitor: function(n, r, s, i) {
571
+ return R.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
572
+ },
573
+ ...t
574
+ });
575
+ }
576
+ function wn(e) {
577
+ return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
578
+ }
579
+ function gn(e) {
580
+ const t = {}, n = Object.keys(e);
581
+ let r;
582
+ const s = n.length;
583
+ let i;
584
+ for (r = 0; r < s; r++)
585
+ i = n[r], t[i] = e[i];
586
+ return t;
587
+ }
588
+ function at(e) {
589
+ function t(n, r, s, i) {
590
+ let o = n[i++];
591
+ if (o === "__proto__") return !0;
592
+ const c = Number.isFinite(+o), h = i >= n.length;
593
+ return o = !o && a.isArray(s) ? s.length : o, h ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = gn(s[o])), !c);
594
+ }
595
+ if (a.isFormData(e) && a.isFunction(e.entries)) {
596
+ const n = {};
597
+ return a.forEachEntry(e, (r, s) => {
598
+ t(wn(r), s, n, 0);
599
+ }), n;
600
+ }
601
+ return null;
602
+ }
603
+ function Sn(e, t, n) {
604
+ if (a.isString(e))
605
+ try {
606
+ return (t || JSON.parse)(e), a.trim(e);
607
+ } catch (r) {
608
+ if (r.name !== "SyntaxError")
609
+ throw r;
610
+ }
611
+ return (n || JSON.stringify)(e);
612
+ }
613
+ const X = {
614
+ transitional: it,
615
+ adapter: ["xhr", "http", "fetch"],
616
+ transformRequest: [function(t, n) {
617
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
618
+ if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
619
+ return s ? JSON.stringify(at(t)) : t;
620
+ if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
621
+ return t;
622
+ if (a.isArrayBufferView(t))
623
+ return t.buffer;
624
+ if (a.isURLSearchParams(t))
625
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
626
+ let c;
627
+ if (i) {
628
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
629
+ return En(t, this.formSerializer).toString();
630
+ if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
631
+ const h = this.env && this.env.FormData;
632
+ return ae(
633
+ c ? { "files[]": t } : t,
634
+ h && new h(),
635
+ this.formSerializer
636
+ );
637
+ }
638
+ }
639
+ return i || s ? (n.setContentType("application/json", !1), Sn(t)) : t;
640
+ }],
641
+ transformResponse: [function(t) {
642
+ const n = this.transitional || X.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
643
+ if (a.isResponse(t) || a.isReadableStream(t))
644
+ return t;
645
+ if (t && a.isString(t) && (r && !this.responseType || s)) {
646
+ const o = !(n && n.silentJSONParsing) && s;
647
+ try {
648
+ return JSON.parse(t, this.parseReviver);
649
+ } catch (c) {
650
+ if (o)
651
+ throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
652
+ }
653
+ }
654
+ return t;
655
+ }],
656
+ /**
657
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
658
+ * timeout is not created.
659
+ */
660
+ timeout: 0,
661
+ xsrfCookieName: "XSRF-TOKEN",
662
+ xsrfHeaderName: "X-XSRF-TOKEN",
663
+ maxContentLength: -1,
664
+ maxBodyLength: -1,
665
+ env: {
666
+ FormData: R.classes.FormData,
667
+ Blob: R.classes.Blob
668
+ },
669
+ validateStatus: function(t) {
670
+ return t >= 200 && t < 300;
671
+ },
672
+ headers: {
673
+ common: {
674
+ Accept: "application/json, text/plain, */*",
675
+ "Content-Type": void 0
676
+ }
677
+ }
678
+ };
679
+ a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
680
+ X.headers[e] = {};
681
+ });
682
+ const Rn = a.toObjectSet([
683
+ "age",
684
+ "authorization",
685
+ "content-length",
686
+ "content-type",
687
+ "etag",
688
+ "expires",
689
+ "from",
690
+ "host",
691
+ "if-modified-since",
692
+ "if-unmodified-since",
693
+ "last-modified",
694
+ "location",
695
+ "max-forwards",
696
+ "proxy-authorization",
697
+ "referer",
698
+ "retry-after",
699
+ "user-agent"
700
+ ]), On = (e) => {
701
+ const t = {};
702
+ let n, r, s;
703
+ return e && e.split(`
704
+ `).forEach(function(o) {
705
+ s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && Rn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
706
+ }), t;
707
+ }, Ue = /* @__PURE__ */ Symbol("internals");
708
+ function $(e) {
709
+ return e && String(e).trim().toLowerCase();
710
+ }
711
+ function te(e) {
712
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(te) : String(e);
713
+ }
714
+ function Tn(e) {
715
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
716
+ let r;
717
+ for (; r = n.exec(e); )
718
+ t[r[1]] = r[2];
719
+ return t;
720
+ }
721
+ const An = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
722
+ function fe(e, t, n, r, s) {
723
+ if (a.isFunction(r))
724
+ return r.call(this, t, n);
725
+ if (s && (t = n), !!a.isString(t)) {
726
+ if (a.isString(r))
727
+ return t.indexOf(r) !== -1;
728
+ if (a.isRegExp(r))
729
+ return r.test(t);
730
+ }
731
+ }
732
+ function Cn(e) {
733
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
734
+ }
735
+ function _n(e, t) {
736
+ const n = a.toCamelCase(" " + t);
737
+ ["get", "set", "has"].forEach((r) => {
738
+ Object.defineProperty(e, r + n, {
739
+ value: function(s, i, o) {
740
+ return this[r].call(this, t, s, i, o);
741
+ },
742
+ configurable: !0
743
+ });
744
+ });
745
+ }
746
+ let A = class {
747
+ constructor(t) {
748
+ t && this.set(t);
749
+ }
750
+ set(t, n, r) {
751
+ const s = this;
752
+ function i(c, h, f) {
753
+ const l = $(h);
754
+ if (!l)
755
+ throw new Error("header name must be a non-empty string");
756
+ const m = a.findKey(s, l);
757
+ (!m || s[m] === void 0 || f === !0 || f === void 0 && s[m] !== !1) && (s[m || h] = te(c));
758
+ }
759
+ const o = (c, h) => a.forEach(c, (f, l) => i(f, l, h));
760
+ if (a.isPlainObject(t) || t instanceof this.constructor)
761
+ o(t, n);
762
+ else if (a.isString(t) && (t = t.trim()) && !An(t))
763
+ o(On(t), n);
764
+ else if (a.isObject(t) && a.isIterable(t)) {
765
+ let c = {}, h, f;
766
+ for (const l of t) {
767
+ if (!a.isArray(l))
768
+ throw TypeError("Object iterator must return a key-value pair");
769
+ c[f = l[0]] = (h = c[f]) ? a.isArray(h) ? [...h, l[1]] : [h, l[1]] : l[1];
770
+ }
771
+ o(c, n);
772
+ } else
773
+ t != null && i(n, t, r);
774
+ return this;
775
+ }
776
+ get(t, n) {
777
+ if (t = $(t), t) {
778
+ const r = a.findKey(this, t);
779
+ if (r) {
780
+ const s = this[r];
781
+ if (!n)
782
+ return s;
783
+ if (n === !0)
784
+ return Tn(s);
785
+ if (a.isFunction(n))
786
+ return n.call(this, s, r);
787
+ if (a.isRegExp(n))
788
+ return n.exec(s);
789
+ throw new TypeError("parser must be boolean|regexp|function");
790
+ }
791
+ }
792
+ }
793
+ has(t, n) {
794
+ if (t = $(t), t) {
795
+ const r = a.findKey(this, t);
796
+ return !!(r && this[r] !== void 0 && (!n || fe(this, this[r], r, n)));
797
+ }
798
+ return !1;
799
+ }
800
+ delete(t, n) {
801
+ const r = this;
802
+ let s = !1;
803
+ function i(o) {
804
+ if (o = $(o), o) {
805
+ const c = a.findKey(r, o);
806
+ c && (!n || fe(r, r[c], c, n)) && (delete r[c], s = !0);
807
+ }
808
+ }
809
+ return a.isArray(t) ? t.forEach(i) : i(t), s;
810
+ }
811
+ clear(t) {
812
+ const n = Object.keys(this);
813
+ let r = n.length, s = !1;
814
+ for (; r--; ) {
815
+ const i = n[r];
816
+ (!t || fe(this, this[i], i, t, !0)) && (delete this[i], s = !0);
817
+ }
818
+ return s;
819
+ }
820
+ normalize(t) {
821
+ const n = this, r = {};
822
+ return a.forEach(this, (s, i) => {
823
+ const o = a.findKey(r, i);
824
+ if (o) {
825
+ n[o] = te(s), delete n[i];
826
+ return;
827
+ }
828
+ const c = t ? Cn(i) : String(i).trim();
829
+ c !== i && delete n[i], n[c] = te(s), r[c] = !0;
830
+ }), this;
831
+ }
832
+ concat(...t) {
833
+ return this.constructor.concat(this, ...t);
834
+ }
835
+ toJSON(t) {
836
+ const n = /* @__PURE__ */ Object.create(null);
837
+ return a.forEach(this, (r, s) => {
838
+ r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
839
+ }), n;
840
+ }
841
+ [Symbol.iterator]() {
842
+ return Object.entries(this.toJSON())[Symbol.iterator]();
843
+ }
844
+ toString() {
845
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
846
+ `);
847
+ }
848
+ getSetCookie() {
849
+ return this.get("set-cookie") || [];
850
+ }
851
+ get [Symbol.toStringTag]() {
852
+ return "AxiosHeaders";
853
+ }
854
+ static from(t) {
855
+ return t instanceof this ? t : new this(t);
856
+ }
857
+ static concat(t, ...n) {
858
+ const r = new this(t);
859
+ return n.forEach((s) => r.set(s)), r;
860
+ }
861
+ static accessor(t) {
862
+ const r = (this[Ue] = this[Ue] = {
863
+ accessors: {}
864
+ }).accessors, s = this.prototype;
865
+ function i(o) {
866
+ const c = $(o);
867
+ r[c] || (_n(s, o), r[c] = !0);
868
+ }
869
+ return a.isArray(t) ? t.forEach(i) : i(t), this;
870
+ }
871
+ };
872
+ A.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
873
+ a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
874
+ let n = t[0].toUpperCase() + t.slice(1);
875
+ return {
876
+ get: () => e,
877
+ set(r) {
878
+ this[n] = r;
879
+ }
880
+ };
881
+ });
882
+ a.freezeMethods(A);
883
+ function de(e, t) {
884
+ const n = this || X, r = t || n, s = A.from(r.headers);
885
+ let i = r.data;
886
+ return a.forEach(e, function(c) {
887
+ i = c.call(n, i, s.normalize(), t ? t.status : void 0);
888
+ }), s.normalize(), i;
889
+ }
890
+ function ct(e) {
891
+ return !!(e && e.__CANCEL__);
892
+ }
893
+ function z(e, t, n) {
894
+ y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
895
+ }
896
+ a.inherits(z, y, {
897
+ __CANCEL__: !0
898
+ });
899
+ function lt(e, t, n) {
900
+ const r = n.config.validateStatus;
901
+ !n.status || !r || r(n.status) ? e(n) : t(new y(
902
+ "Request failed with status code " + n.status,
903
+ [y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
904
+ n.config,
905
+ n.request,
906
+ n
907
+ ));
908
+ }
909
+ function xn(e) {
910
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
911
+ return t && t[1] || "";
912
+ }
913
+ function Pn(e, t) {
914
+ e = e || 10;
915
+ const n = new Array(e), r = new Array(e);
916
+ let s = 0, i = 0, o;
917
+ return t = t !== void 0 ? t : 1e3, function(h) {
918
+ const f = Date.now(), l = r[i];
919
+ o || (o = f), n[s] = h, r[s] = f;
920
+ let m = i, b = 0;
921
+ for (; m !== s; )
922
+ b += n[m++], m = m % e;
923
+ if (s = (s + 1) % e, s === i && (i = (i + 1) % e), f - o < t)
924
+ return;
925
+ const g = l && f - l;
926
+ return g ? Math.round(b * 1e3 / g) : void 0;
927
+ };
928
+ }
929
+ function Nn(e, t) {
930
+ let n = 0, r = 1e3 / t, s, i;
931
+ const o = (f, l = Date.now()) => {
932
+ n = l, s = null, i && (clearTimeout(i), i = null), e(...f);
933
+ };
934
+ return [(...f) => {
935
+ const l = Date.now(), m = l - n;
936
+ m >= r ? o(f, l) : (s = f, i || (i = setTimeout(() => {
937
+ i = null, o(s);
938
+ }, r - m)));
939
+ }, () => s && o(s)];
940
+ }
941
+ const re = (e, t, n = 3) => {
942
+ let r = 0;
943
+ const s = Pn(50, 250);
944
+ return Nn((i) => {
945
+ const o = i.loaded, c = i.lengthComputable ? i.total : void 0, h = o - r, f = s(h), l = o <= c;
946
+ r = o;
947
+ const m = {
948
+ loaded: o,
949
+ total: c,
950
+ progress: c ? o / c : void 0,
951
+ bytes: h,
952
+ rate: f || void 0,
953
+ estimated: f && c && l ? (c - o) / f : void 0,
954
+ event: i,
955
+ lengthComputable: c != null,
956
+ [t ? "download" : "upload"]: !0
957
+ };
958
+ e(m);
959
+ }, n);
960
+ }, Ie = (e, t) => {
961
+ const n = e != null;
962
+ return [(r) => t[0]({
963
+ lengthComputable: n,
964
+ total: e,
965
+ loaded: r
966
+ }), t[1]];
967
+ }, De = (e) => (...t) => a.asap(() => e(...t)), Ln = R.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, R.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
968
+ new URL(R.origin),
969
+ R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
970
+ ) : () => !0, Fn = R.hasStandardBrowserEnv ? (
971
+ // Standard browser envs support document.cookie
972
+ {
973
+ write(e, t, n, r, s, i, o) {
974
+ if (typeof document > "u") return;
975
+ const c = [`${e}=${encodeURIComponent(t)}`];
976
+ a.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), a.isString(r) && c.push(`path=${r}`), a.isString(s) && c.push(`domain=${s}`), i === !0 && c.push("secure"), a.isString(o) && c.push(`SameSite=${o}`), document.cookie = c.join("; ");
977
+ },
978
+ read(e) {
979
+ if (typeof document > "u") return null;
980
+ const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
981
+ return t ? decodeURIComponent(t[1]) : null;
982
+ },
983
+ remove(e) {
984
+ this.write(e, "", Date.now() - 864e5, "/");
985
+ }
986
+ }
987
+ ) : (
988
+ // Non-standard browser env (web workers, react-native) lack needed support.
989
+ {
990
+ write() {
991
+ },
992
+ read() {
993
+ return null;
994
+ },
995
+ remove() {
996
+ }
997
+ }
998
+ );
999
+ function Un(e) {
1000
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1001
+ }
1002
+ function In(e, t) {
1003
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
1004
+ }
1005
+ function ut(e, t, n) {
1006
+ let r = !Un(t);
1007
+ return e && (r || n == !1) ? In(e, t) : t;
1008
+ }
1009
+ const ke = (e) => e instanceof A ? { ...e } : e;
1010
+ function M(e, t) {
1011
+ t = t || {};
1012
+ const n = {};
1013
+ function r(f, l, m, b) {
1014
+ return a.isPlainObject(f) && a.isPlainObject(l) ? a.merge.call({ caseless: b }, f, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
1015
+ }
1016
+ function s(f, l, m, b) {
1017
+ if (a.isUndefined(l)) {
1018
+ if (!a.isUndefined(f))
1019
+ return r(void 0, f, m, b);
1020
+ } else return r(f, l, m, b);
1021
+ }
1022
+ function i(f, l) {
1023
+ if (!a.isUndefined(l))
1024
+ return r(void 0, l);
1025
+ }
1026
+ function o(f, l) {
1027
+ if (a.isUndefined(l)) {
1028
+ if (!a.isUndefined(f))
1029
+ return r(void 0, f);
1030
+ } else return r(void 0, l);
1031
+ }
1032
+ function c(f, l, m) {
1033
+ if (m in t)
1034
+ return r(f, l);
1035
+ if (m in e)
1036
+ return r(void 0, f);
1037
+ }
1038
+ const h = {
1039
+ url: i,
1040
+ method: i,
1041
+ data: i,
1042
+ baseURL: o,
1043
+ transformRequest: o,
1044
+ transformResponse: o,
1045
+ paramsSerializer: o,
1046
+ timeout: o,
1047
+ timeoutMessage: o,
1048
+ withCredentials: o,
1049
+ withXSRFToken: o,
1050
+ adapter: o,
1051
+ responseType: o,
1052
+ xsrfCookieName: o,
1053
+ xsrfHeaderName: o,
1054
+ onUploadProgress: o,
1055
+ onDownloadProgress: o,
1056
+ decompress: o,
1057
+ maxContentLength: o,
1058
+ maxBodyLength: o,
1059
+ beforeRedirect: o,
1060
+ transport: o,
1061
+ httpAgent: o,
1062
+ httpsAgent: o,
1063
+ cancelToken: o,
1064
+ socketPath: o,
1065
+ responseEncoding: o,
1066
+ validateStatus: c,
1067
+ headers: (f, l, m) => s(ke(f), ke(l), m, !0)
1068
+ };
1069
+ return a.forEach(Object.keys({ ...e, ...t }), function(l) {
1070
+ const m = h[l] || s, b = m(e[l], t[l], l);
1071
+ a.isUndefined(b) && m !== c || (n[l] = b);
1072
+ }), n;
1073
+ }
1074
+ const ft = (e) => {
1075
+ const t = M({}, e);
1076
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
1077
+ if (t.headers = o = A.from(o), t.url = ot(ut(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
1078
+ "Authorization",
1079
+ "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1080
+ ), a.isFormData(n)) {
1081
+ if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
1082
+ o.setContentType(void 0);
1083
+ else if (a.isFunction(n.getHeaders)) {
1084
+ const h = n.getHeaders(), f = ["content-type", "content-length"];
1085
+ Object.entries(h).forEach(([l, m]) => {
1086
+ f.includes(l.toLowerCase()) && o.set(l, m);
1087
+ });
1088
+ }
1089
+ }
1090
+ if (R.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Ln(t.url))) {
1091
+ const h = s && i && Fn.read(i);
1092
+ h && o.set(s, h);
1093
+ }
1094
+ return t;
1095
+ }, Dn = typeof XMLHttpRequest < "u", kn = Dn && function(e) {
1096
+ return new Promise(function(n, r) {
1097
+ const s = ft(e);
1098
+ let i = s.data;
1099
+ const o = A.from(s.headers).normalize();
1100
+ let { responseType: c, onUploadProgress: h, onDownloadProgress: f } = s, l, m, b, g, u;
1101
+ function p() {
1102
+ g && g(), u && u(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1103
+ }
1104
+ let d = new XMLHttpRequest();
1105
+ d.open(s.method.toUpperCase(), s.url, !0), d.timeout = s.timeout;
1106
+ function w() {
1107
+ if (!d)
1108
+ return;
1109
+ const S = A.from(
1110
+ "getAllResponseHeaders" in d && d.getAllResponseHeaders()
1111
+ ), x = {
1112
+ data: !c || c === "text" || c === "json" ? d.responseText : d.response,
1113
+ status: d.status,
1114
+ statusText: d.statusText,
1115
+ headers: S,
1116
+ config: e,
1117
+ request: d
1118
+ };
1119
+ lt(function(_) {
1120
+ n(_), p();
1121
+ }, function(_) {
1122
+ r(_), p();
1123
+ }, x), d = null;
1124
+ }
1125
+ "onloadend" in d ? d.onloadend = w : d.onreadystatechange = function() {
1126
+ !d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(w);
1127
+ }, d.onabort = function() {
1128
+ d && (r(new y("Request aborted", y.ECONNABORTED, e, d)), d = null);
1129
+ }, d.onerror = function(O) {
1130
+ const x = O && O.message ? O.message : "Network Error", D = new y(x, y.ERR_NETWORK, e, d);
1131
+ D.event = O || null, r(D), d = null;
1132
+ }, d.ontimeout = function() {
1133
+ let O = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1134
+ const x = s.transitional || it;
1135
+ s.timeoutErrorMessage && (O = s.timeoutErrorMessage), r(new y(
1136
+ O,
1137
+ x.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1138
+ e,
1139
+ d
1140
+ )), d = null;
1141
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in d && a.forEach(o.toJSON(), function(O, x) {
1142
+ d.setRequestHeader(x, O);
1143
+ }), a.isUndefined(s.withCredentials) || (d.withCredentials = !!s.withCredentials), c && c !== "json" && (d.responseType = s.responseType), f && ([b, u] = re(f, !0), d.addEventListener("progress", b)), h && d.upload && ([m, g] = re(h), d.upload.addEventListener("progress", m), d.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (l = (S) => {
1144
+ d && (r(!S || S.type ? new z(null, e, d) : S), d.abort(), d = null);
1145
+ }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1146
+ const C = xn(s.url);
1147
+ if (C && R.protocols.indexOf(C) === -1) {
1148
+ r(new y("Unsupported protocol " + C + ":", y.ERR_BAD_REQUEST, e));
1149
+ return;
1150
+ }
1151
+ d.send(i || null);
1152
+ });
1153
+ }, jn = (e, t) => {
1154
+ const { length: n } = e = e ? e.filter(Boolean) : [];
1155
+ if (t || n) {
1156
+ let r = new AbortController(), s;
1157
+ const i = function(f) {
1158
+ if (!s) {
1159
+ s = !0, c();
1160
+ const l = f instanceof Error ? f : this.reason;
1161
+ r.abort(l instanceof y ? l : new z(l instanceof Error ? l.message : l));
1162
+ }
1163
+ };
1164
+ let o = t && setTimeout(() => {
1165
+ o = null, i(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1166
+ }, t);
1167
+ const c = () => {
1168
+ e && (o && clearTimeout(o), o = null, e.forEach((f) => {
1169
+ f.unsubscribe ? f.unsubscribe(i) : f.removeEventListener("abort", i);
1170
+ }), e = null);
1171
+ };
1172
+ e.forEach((f) => f.addEventListener("abort", i));
1173
+ const { signal: h } = r;
1174
+ return h.unsubscribe = () => a.asap(c), h;
1175
+ }
1176
+ }, Bn = function* (e, t) {
1177
+ let n = e.byteLength;
1178
+ if (n < t) {
1179
+ yield e;
1180
+ return;
1181
+ }
1182
+ let r = 0, s;
1183
+ for (; r < n; )
1184
+ s = r + t, yield e.slice(r, s), r = s;
1185
+ }, Mn = async function* (e, t) {
1186
+ for await (const n of vn(e))
1187
+ yield* Bn(n, t);
1188
+ }, vn = async function* (e) {
1189
+ if (e[Symbol.asyncIterator]) {
1190
+ yield* e;
1191
+ return;
1192
+ }
1193
+ const t = e.getReader();
1194
+ try {
1195
+ for (; ; ) {
1196
+ const { done: n, value: r } = await t.read();
1197
+ if (n)
1198
+ break;
1199
+ yield r;
1200
+ }
1201
+ } finally {
1202
+ await t.cancel();
1203
+ }
1204
+ }, je = (e, t, n, r) => {
1205
+ const s = Mn(e, t);
1206
+ let i = 0, o, c = (h) => {
1207
+ o || (o = !0, r && r(h));
1208
+ };
1209
+ return new ReadableStream({
1210
+ async pull(h) {
1211
+ try {
1212
+ const { done: f, value: l } = await s.next();
1213
+ if (f) {
1214
+ c(), h.close();
1215
+ return;
1216
+ }
1217
+ let m = l.byteLength;
1218
+ if (n) {
1219
+ let b = i += m;
1220
+ n(b);
1221
+ }
1222
+ h.enqueue(new Uint8Array(l));
1223
+ } catch (f) {
1224
+ throw c(f), f;
1225
+ }
1226
+ },
1227
+ cancel(h) {
1228
+ return c(h), s.return();
1229
+ }
1230
+ }, {
1231
+ highWaterMark: 2
1232
+ });
1233
+ }, Be = 64 * 1024, { isFunction: Q } = a, Hn = (({ Request: e, Response: t }) => ({
1234
+ Request: e,
1235
+ Response: t
1236
+ }))(a.global), {
1237
+ ReadableStream: Me,
1238
+ TextEncoder: ve
1239
+ } = a.global, He = (e, ...t) => {
1240
+ try {
1241
+ return !!e(...t);
1242
+ } catch {
1243
+ return !1;
1244
+ }
1245
+ }, qn = (e) => {
1246
+ e = a.merge.call({
1247
+ skipUndefined: !0
1248
+ }, Hn, e);
1249
+ const { fetch: t, Request: n, Response: r } = e, s = t ? Q(t) : typeof fetch == "function", i = Q(n), o = Q(r);
1250
+ if (!s)
1251
+ return !1;
1252
+ const c = s && Q(Me), h = s && (typeof ve == "function" ? /* @__PURE__ */ ((u) => (p) => u.encode(p))(new ve()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = i && c && He(() => {
1253
+ let u = !1;
1254
+ const p = new n(R.origin, {
1255
+ body: new Me(),
1256
+ method: "POST",
1257
+ get duplex() {
1258
+ return u = !0, "half";
1259
+ }
1260
+ }).headers.has("Content-Type");
1261
+ return u && !p;
1262
+ }), l = o && c && He(() => a.isReadableStream(new r("").body)), m = {
1263
+ stream: l && ((u) => u.body)
1264
+ };
1265
+ s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
1266
+ !m[u] && (m[u] = (p, d) => {
1267
+ let w = p && p[u];
1268
+ if (w)
1269
+ return w.call(p);
1270
+ throw new y(`Response type '${u}' is not supported`, y.ERR_NOT_SUPPORT, d);
1271
+ });
1272
+ });
1273
+ const b = async (u) => {
1274
+ if (u == null)
1275
+ return 0;
1276
+ if (a.isBlob(u))
1277
+ return u.size;
1278
+ if (a.isSpecCompliantForm(u))
1279
+ return (await new n(R.origin, {
1280
+ method: "POST",
1281
+ body: u
1282
+ }).arrayBuffer()).byteLength;
1283
+ if (a.isArrayBufferView(u) || a.isArrayBuffer(u))
1284
+ return u.byteLength;
1285
+ if (a.isURLSearchParams(u) && (u = u + ""), a.isString(u))
1286
+ return (await h(u)).byteLength;
1287
+ }, g = async (u, p) => {
1288
+ const d = a.toFiniteNumber(u.getContentLength());
1289
+ return d ?? b(p);
1290
+ };
1291
+ return async (u) => {
1292
+ let {
1293
+ url: p,
1294
+ method: d,
1295
+ data: w,
1296
+ signal: C,
1297
+ cancelToken: S,
1298
+ timeout: O,
1299
+ onDownloadProgress: x,
1300
+ onUploadProgress: D,
1301
+ responseType: _,
1302
+ headers: le,
1303
+ withCredentials: Y = "same-origin",
1304
+ fetchOptions: Oe
1305
+ } = ft(u), Te = t || fetch;
1306
+ _ = _ ? (_ + "").toLowerCase() : "text";
1307
+ let Z = jn([C, S && S.toAbortSignal()], O), V = null;
1308
+ const k = Z && Z.unsubscribe && (() => {
1309
+ Z.unsubscribe();
1310
+ });
1311
+ let Ae;
1312
+ try {
1313
+ if (D && f && d !== "get" && d !== "head" && (Ae = await g(le, w)) !== 0) {
1314
+ let I = new n(p, {
1315
+ method: "POST",
1316
+ body: w,
1317
+ duplex: "half"
1318
+ }), v;
1319
+ if (a.isFormData(w) && (v = I.headers.get("content-type")) && le.setContentType(v), I.body) {
1320
+ const [ue, G] = Ie(
1321
+ Ae,
1322
+ re(De(D))
1323
+ );
1324
+ w = je(I.body, Be, ue, G);
1325
+ }
1326
+ }
1327
+ a.isString(Y) || (Y = Y ? "include" : "omit");
1328
+ const N = i && "credentials" in n.prototype, Ce = {
1329
+ ...Oe,
1330
+ signal: Z,
1331
+ method: d.toUpperCase(),
1332
+ headers: le.normalize().toJSON(),
1333
+ body: w,
1334
+ duplex: "half",
1335
+ credentials: N ? Y : void 0
1336
+ };
1337
+ V = i && new n(p, Ce);
1338
+ let U = await (i ? Te(V, Oe) : Te(p, Ce));
1339
+ const _e = l && (_ === "stream" || _ === "response");
1340
+ if (l && (x || _e && k)) {
1341
+ const I = {};
1342
+ ["status", "statusText", "headers"].forEach((xe) => {
1343
+ I[xe] = U[xe];
1344
+ });
1345
+ const v = a.toFiniteNumber(U.headers.get("content-length")), [ue, G] = x && Ie(
1346
+ v,
1347
+ re(De(x), !0)
1348
+ ) || [];
1349
+ U = new r(
1350
+ je(U.body, Be, ue, () => {
1351
+ G && G(), k && k();
1352
+ }),
1353
+ I
1354
+ );
1355
+ }
1356
+ _ = _ || "text";
1357
+ let bt = await m[a.findKey(m, _) || "text"](U, u);
1358
+ return !_e && k && k(), await new Promise((I, v) => {
1359
+ lt(I, v, {
1360
+ data: bt,
1361
+ headers: A.from(U.headers),
1362
+ status: U.status,
1363
+ statusText: U.statusText,
1364
+ config: u,
1365
+ request: V
1366
+ });
1367
+ });
1368
+ } catch (N) {
1369
+ throw k && k(), N && N.name === "TypeError" && /Load failed|fetch/i.test(N.message) ? Object.assign(
1370
+ new y("Network Error", y.ERR_NETWORK, u, V),
1371
+ {
1372
+ cause: N.cause || N
1373
+ }
1374
+ ) : y.from(N, N && N.code, u, V);
1375
+ }
1376
+ };
1377
+ }, zn = /* @__PURE__ */ new Map(), dt = (e) => {
1378
+ let t = e && e.env || {};
1379
+ const { fetch: n, Request: r, Response: s } = t, i = [
1380
+ r,
1381
+ s,
1382
+ n
1383
+ ];
1384
+ let o = i.length, c = o, h, f, l = zn;
1385
+ for (; c--; )
1386
+ h = i[c], f = l.get(h), f === void 0 && l.set(h, f = c ? /* @__PURE__ */ new Map() : qn(t)), l = f;
1387
+ return f;
1388
+ };
1389
+ dt();
1390
+ const Re = {
1391
+ http: on,
1392
+ xhr: kn,
1393
+ fetch: {
1394
+ get: dt
1395
+ }
1396
+ };
1397
+ a.forEach(Re, (e, t) => {
1398
+ if (e) {
1399
+ try {
1400
+ Object.defineProperty(e, "name", { value: t });
1401
+ } catch {
1402
+ }
1403
+ Object.defineProperty(e, "adapterName", { value: t });
1404
+ }
1405
+ });
1406
+ const qe = (e) => `- ${e}`, Vn = (e) => a.isFunction(e) || e === null || e === !1;
1407
+ function $n(e, t) {
1408
+ e = a.isArray(e) ? e : [e];
1409
+ const { length: n } = e;
1410
+ let r, s;
1411
+ const i = {};
1412
+ for (let o = 0; o < n; o++) {
1413
+ r = e[o];
1414
+ let c;
1415
+ if (s = r, !Vn(r) && (s = Re[(c = String(r)).toLowerCase()], s === void 0))
1416
+ throw new y(`Unknown adapter '${c}'`);
1417
+ if (s && (a.isFunction(s) || (s = s.get(t))))
1418
+ break;
1419
+ i[c || "#" + o] = s;
1420
+ }
1421
+ if (!s) {
1422
+ const o = Object.entries(i).map(
1423
+ ([h, f]) => `adapter ${h} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1424
+ );
1425
+ let c = n ? o.length > 1 ? `since :
1426
+ ` + o.map(qe).join(`
1427
+ `) : " " + qe(o[0]) : "as no adapter specified";
1428
+ throw new y(
1429
+ "There is no suitable adapter to dispatch the request " + c,
1430
+ "ERR_NOT_SUPPORT"
1431
+ );
1432
+ }
1433
+ return s;
1434
+ }
1435
+ const ht = {
1436
+ /**
1437
+ * Resolve an adapter from a list of adapter names or functions.
1438
+ * @type {Function}
1439
+ */
1440
+ getAdapter: $n,
1441
+ /**
1442
+ * Exposes all known adapters
1443
+ * @type {Object<string, Function|Object>}
1444
+ */
1445
+ adapters: Re
1446
+ };
1447
+ function he(e) {
1448
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1449
+ throw new z(null, e);
1450
+ }
1451
+ function ze(e) {
1452
+ return he(e), e.headers = A.from(e.headers), e.data = de.call(
1453
+ e,
1454
+ e.transformRequest
1455
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ht.getAdapter(e.adapter || X.adapter, e)(e).then(function(r) {
1456
+ return he(e), r.data = de.call(
1457
+ e,
1458
+ e.transformResponse,
1459
+ r
1460
+ ), r.headers = A.from(r.headers), r;
1461
+ }, function(r) {
1462
+ return ct(r) || (he(e), r && r.response && (r.response.data = de.call(
1463
+ e,
1464
+ e.transformResponse,
1465
+ r.response
1466
+ ), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
1467
+ });
1468
+ }
1469
+ const pt = "1.13.2", ce = {};
1470
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1471
+ ce[e] = function(r) {
1472
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1473
+ };
1474
+ });
1475
+ const Ve = {};
1476
+ ce.transitional = function(t, n, r) {
1477
+ function s(i, o) {
1478
+ return "[Axios v" + pt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1479
+ }
1480
+ return (i, o, c) => {
1481
+ if (t === !1)
1482
+ throw new y(
1483
+ s(o, " has been removed" + (n ? " in " + n : "")),
1484
+ y.ERR_DEPRECATED
1485
+ );
1486
+ return n && !Ve[o] && (Ve[o] = !0, console.warn(
1487
+ s(
1488
+ o,
1489
+ " has been deprecated since v" + n + " and will be removed in the near future"
1490
+ )
1491
+ )), t ? t(i, o, c) : !0;
1492
+ };
1493
+ };
1494
+ ce.spelling = function(t) {
1495
+ return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1496
+ };
1497
+ function Jn(e, t, n) {
1498
+ if (typeof e != "object")
1499
+ throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1500
+ const r = Object.keys(e);
1501
+ let s = r.length;
1502
+ for (; s-- > 0; ) {
1503
+ const i = r[s], o = t[i];
1504
+ if (o) {
1505
+ const c = e[i], h = c === void 0 || o(c, i, e);
1506
+ if (h !== !0)
1507
+ throw new y("option " + i + " must be " + h, y.ERR_BAD_OPTION_VALUE);
1508
+ continue;
1509
+ }
1510
+ if (n !== !0)
1511
+ throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
1512
+ }
1513
+ }
1514
+ const ne = {
1515
+ assertOptions: Jn,
1516
+ validators: ce
1517
+ }, L = ne.validators;
1518
+ let B = class {
1519
+ constructor(t) {
1520
+ this.defaults = t || {}, this.interceptors = {
1521
+ request: new Fe(),
1522
+ response: new Fe()
1523
+ };
1524
+ }
1525
+ /**
1526
+ * Dispatch a request
1527
+ *
1528
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1529
+ * @param {?Object} config
1530
+ *
1531
+ * @returns {Promise} The Promise to be fulfilled
1532
+ */
1533
+ async request(t, n) {
1534
+ try {
1535
+ return await this._request(t, n);
1536
+ } catch (r) {
1537
+ if (r instanceof Error) {
1538
+ let s = {};
1539
+ Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1540
+ const i = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1541
+ try {
1542
+ r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
1543
+ ` + i) : r.stack = i;
1544
+ } catch {
1545
+ }
1546
+ }
1547
+ throw r;
1548
+ }
1549
+ }
1550
+ _request(t, n) {
1551
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = M(this.defaults, n);
1552
+ const { transitional: r, paramsSerializer: s, headers: i } = n;
1553
+ r !== void 0 && ne.assertOptions(r, {
1554
+ silentJSONParsing: L.transitional(L.boolean),
1555
+ forcedJSONParsing: L.transitional(L.boolean),
1556
+ clarifyTimeoutError: L.transitional(L.boolean)
1557
+ }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1558
+ serialize: s
1559
+ } : ne.assertOptions(s, {
1560
+ encode: L.function,
1561
+ serialize: L.function
1562
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ne.assertOptions(n, {
1563
+ baseUrl: L.spelling("baseURL"),
1564
+ withXsrfToken: L.spelling("withXSRFToken")
1565
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1566
+ let o = i && a.merge(
1567
+ i.common,
1568
+ i[n.method]
1569
+ );
1570
+ i && a.forEach(
1571
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1572
+ (u) => {
1573
+ delete i[u];
1574
+ }
1575
+ ), n.headers = A.concat(o, i);
1576
+ const c = [];
1577
+ let h = !0;
1578
+ this.interceptors.request.forEach(function(p) {
1579
+ typeof p.runWhen == "function" && p.runWhen(n) === !1 || (h = h && p.synchronous, c.unshift(p.fulfilled, p.rejected));
1580
+ });
1581
+ const f = [];
1582
+ this.interceptors.response.forEach(function(p) {
1583
+ f.push(p.fulfilled, p.rejected);
1584
+ });
1585
+ let l, m = 0, b;
1586
+ if (!h) {
1587
+ const u = [ze.bind(this), void 0];
1588
+ for (u.unshift(...c), u.push(...f), b = u.length, l = Promise.resolve(n); m < b; )
1589
+ l = l.then(u[m++], u[m++]);
1590
+ return l;
1591
+ }
1592
+ b = c.length;
1593
+ let g = n;
1594
+ for (; m < b; ) {
1595
+ const u = c[m++], p = c[m++];
1596
+ try {
1597
+ g = u(g);
1598
+ } catch (d) {
1599
+ p.call(this, d);
1600
+ break;
1601
+ }
1602
+ }
1603
+ try {
1604
+ l = ze.call(this, g);
1605
+ } catch (u) {
1606
+ return Promise.reject(u);
1607
+ }
1608
+ for (m = 0, b = f.length; m < b; )
1609
+ l = l.then(f[m++], f[m++]);
1610
+ return l;
1611
+ }
1612
+ getUri(t) {
1613
+ t = M(this.defaults, t);
1614
+ const n = ut(t.baseURL, t.url, t.allowAbsoluteUrls);
1615
+ return ot(n, t.params, t.paramsSerializer);
1616
+ }
1617
+ };
1618
+ a.forEach(["delete", "get", "head", "options"], function(t) {
1619
+ B.prototype[t] = function(n, r) {
1620
+ return this.request(M(r || {}, {
1621
+ method: t,
1622
+ url: n,
1623
+ data: (r || {}).data
1624
+ }));
1625
+ };
1626
+ });
1627
+ a.forEach(["post", "put", "patch"], function(t) {
1628
+ function n(r) {
1629
+ return function(i, o, c) {
1630
+ return this.request(M(c || {}, {
1631
+ method: t,
1632
+ headers: r ? {
1633
+ "Content-Type": "multipart/form-data"
1634
+ } : {},
1635
+ url: i,
1636
+ data: o
1637
+ }));
1638
+ };
1639
+ }
1640
+ B.prototype[t] = n(), B.prototype[t + "Form"] = n(!0);
1641
+ });
1642
+ let Wn = class mt {
1643
+ constructor(t) {
1644
+ if (typeof t != "function")
1645
+ throw new TypeError("executor must be a function.");
1646
+ let n;
1647
+ this.promise = new Promise(function(i) {
1648
+ n = i;
1649
+ });
1650
+ const r = this;
1651
+ this.promise.then((s) => {
1652
+ if (!r._listeners) return;
1653
+ let i = r._listeners.length;
1654
+ for (; i-- > 0; )
1655
+ r._listeners[i](s);
1656
+ r._listeners = null;
1657
+ }), this.promise.then = (s) => {
1658
+ let i;
1659
+ const o = new Promise((c) => {
1660
+ r.subscribe(c), i = c;
1661
+ }).then(s);
1662
+ return o.cancel = function() {
1663
+ r.unsubscribe(i);
1664
+ }, o;
1665
+ }, t(function(i, o, c) {
1666
+ r.reason || (r.reason = new z(i, o, c), n(r.reason));
1667
+ });
1668
+ }
1669
+ /**
1670
+ * Throws a `CanceledError` if cancellation has been requested.
1671
+ */
1672
+ throwIfRequested() {
1673
+ if (this.reason)
1674
+ throw this.reason;
1675
+ }
1676
+ /**
1677
+ * Subscribe to the cancel signal
1678
+ */
1679
+ subscribe(t) {
1680
+ if (this.reason) {
1681
+ t(this.reason);
1682
+ return;
1683
+ }
1684
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1685
+ }
1686
+ /**
1687
+ * Unsubscribe from the cancel signal
1688
+ */
1689
+ unsubscribe(t) {
1690
+ if (!this._listeners)
1691
+ return;
1692
+ const n = this._listeners.indexOf(t);
1693
+ n !== -1 && this._listeners.splice(n, 1);
1694
+ }
1695
+ toAbortSignal() {
1696
+ const t = new AbortController(), n = (r) => {
1697
+ t.abort(r);
1698
+ };
1699
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1700
+ }
1701
+ /**
1702
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1703
+ * cancels the `CancelToken`.
1704
+ */
1705
+ static source() {
1706
+ let t;
1707
+ return {
1708
+ token: new mt(function(s) {
1709
+ t = s;
1710
+ }),
1711
+ cancel: t
1712
+ };
1713
+ }
1714
+ };
1715
+ function Kn(e) {
1716
+ return function(n) {
1717
+ return e.apply(null, n);
1718
+ };
1719
+ }
1720
+ function Xn(e) {
1721
+ return a.isObject(e) && e.isAxiosError === !0;
1722
+ }
1723
+ const Ee = {
1724
+ Continue: 100,
1725
+ SwitchingProtocols: 101,
1726
+ Processing: 102,
1727
+ EarlyHints: 103,
1728
+ Ok: 200,
1729
+ Created: 201,
1730
+ Accepted: 202,
1731
+ NonAuthoritativeInformation: 203,
1732
+ NoContent: 204,
1733
+ ResetContent: 205,
1734
+ PartialContent: 206,
1735
+ MultiStatus: 207,
1736
+ AlreadyReported: 208,
1737
+ ImUsed: 226,
1738
+ MultipleChoices: 300,
1739
+ MovedPermanently: 301,
1740
+ Found: 302,
1741
+ SeeOther: 303,
1742
+ NotModified: 304,
1743
+ UseProxy: 305,
1744
+ Unused: 306,
1745
+ TemporaryRedirect: 307,
1746
+ PermanentRedirect: 308,
1747
+ BadRequest: 400,
1748
+ Unauthorized: 401,
1749
+ PaymentRequired: 402,
1750
+ Forbidden: 403,
1751
+ NotFound: 404,
1752
+ MethodNotAllowed: 405,
1753
+ NotAcceptable: 406,
1754
+ ProxyAuthenticationRequired: 407,
1755
+ RequestTimeout: 408,
1756
+ Conflict: 409,
1757
+ Gone: 410,
1758
+ LengthRequired: 411,
1759
+ PreconditionFailed: 412,
1760
+ PayloadTooLarge: 413,
1761
+ UriTooLong: 414,
1762
+ UnsupportedMediaType: 415,
1763
+ RangeNotSatisfiable: 416,
1764
+ ExpectationFailed: 417,
1765
+ ImATeapot: 418,
1766
+ MisdirectedRequest: 421,
1767
+ UnprocessableEntity: 422,
1768
+ Locked: 423,
1769
+ FailedDependency: 424,
1770
+ TooEarly: 425,
1771
+ UpgradeRequired: 426,
1772
+ PreconditionRequired: 428,
1773
+ TooManyRequests: 429,
1774
+ RequestHeaderFieldsTooLarge: 431,
1775
+ UnavailableForLegalReasons: 451,
1776
+ InternalServerError: 500,
1777
+ NotImplemented: 501,
1778
+ BadGateway: 502,
1779
+ ServiceUnavailable: 503,
1780
+ GatewayTimeout: 504,
1781
+ HttpVersionNotSupported: 505,
1782
+ VariantAlsoNegotiates: 506,
1783
+ InsufficientStorage: 507,
1784
+ LoopDetected: 508,
1785
+ NotExtended: 510,
1786
+ NetworkAuthenticationRequired: 511,
1787
+ WebServerIsDown: 521,
1788
+ ConnectionTimedOut: 522,
1789
+ OriginIsUnreachable: 523,
1790
+ TimeoutOccurred: 524,
1791
+ SslHandshakeFailed: 525,
1792
+ InvalidSslCertificate: 526
1793
+ };
1794
+ Object.entries(Ee).forEach(([e, t]) => {
1795
+ Ee[t] = e;
1796
+ });
1797
+ function yt(e) {
1798
+ const t = new B(e), n = We(B.prototype.request, t);
1799
+ return a.extend(n, B.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1800
+ return yt(M(e, s));
1801
+ }, n;
1802
+ }
1803
+ const E = yt(X);
1804
+ E.Axios = B;
1805
+ E.CanceledError = z;
1806
+ E.CancelToken = Wn;
1807
+ E.isCancel = ct;
1808
+ E.VERSION = pt;
1809
+ E.toFormData = ae;
1810
+ E.AxiosError = y;
1811
+ E.Cancel = E.CanceledError;
1812
+ E.all = function(t) {
1813
+ return Promise.all(t);
1814
+ };
1815
+ E.spread = Kn;
1816
+ E.isAxiosError = Xn;
1817
+ E.mergeConfig = M;
1818
+ E.AxiosHeaders = A;
1819
+ E.formToJSON = (e) => at(a.isHTMLForm(e) ? new FormData(e) : e);
1820
+ E.getAdapter = ht.getAdapter;
1821
+ E.HttpStatusCode = Ee;
1822
+ E.default = E;
1823
+ const {
1824
+ Axios: Qn,
1825
+ AxiosError: er,
1826
+ CanceledError: tr,
1827
+ isCancel: nr,
1828
+ CancelToken: rr,
1829
+ VERSION: sr,
1830
+ all: or,
1831
+ Cancel: ir,
1832
+ isAxiosError: ar,
1833
+ spread: cr,
1834
+ toFormData: lr,
1835
+ AxiosHeaders: ur,
1836
+ HttpStatusCode: fr,
1837
+ formToJSON: dr,
1838
+ getAdapter: hr,
1839
+ mergeConfig: pr
1840
+ } = E, mr = "#00506E", yr = "#64DC00";
1841
+ class br {
1842
+ static get isAndroid() {
1843
+ return /android/i.test(this.userAgent);
1844
+ }
1845
+ static get isIOS() {
1846
+ return /iPad|iPhone|iPod/.test(this.userAgent);
1847
+ }
1848
+ static get isWindows() {
1849
+ return /windows/i.test(this.userAgent);
1850
+ }
1851
+ static get isMacOS() {
1852
+ return /Macintosh|MacIntel|MacPPC|Mac68K/.test(this.userAgent);
1853
+ }
1854
+ static get userAgent() {
1855
+ return typeof navigator > "u" ? "" : navigator.userAgent;
1856
+ }
1857
+ }
1858
+ const Er = () => ({
1859
+ meta: [{
1860
+ charSet: "utf-8"
1861
+ }, {
1862
+ name: "viewport",
1863
+ content: "width=device-width, initial-scale=1"
1864
+ }, {
1865
+ title: pe.VITE_APP_TITLE
1866
+ }, {
1867
+ name: "og:type",
1868
+ content: "website"
1869
+ }, {
1870
+ name: "og:title",
1871
+ content: pe.VITE_APP_TITLE
1872
+ }, {
1873
+ name: "og:image",
1874
+ content: "/favicon-32x32.png"
1875
+ }],
1876
+ links: [{
1877
+ rel: "apple-touch-icon",
1878
+ sizes: "180x180",
1879
+ href: "/apple-touch-icon.png"
1880
+ }, {
1881
+ rel: "icon",
1882
+ type: "image/png",
1883
+ sizes: "32x32",
1884
+ href: "/favicon-32x32.png"
1885
+ }, {
1886
+ rel: "icon",
1887
+ type: "image/png",
1888
+ sizes: "16x16",
1889
+ href: "/favicon-16x16.png"
1890
+ }, {
1891
+ rel: "manifest",
1892
+ href: "/manifest.webmanifest"
1893
+ }, {
1894
+ rel: "icon",
1895
+ href: "/favicon.ico"
1896
+ }]
1897
+ }), wr = E.create({
1898
+ baseURL: pe.VITE_API_URL
1899
+ // TODO: Not working in children projects
1900
+ }), gr = (e) => {
1901
+ const {
1902
+ meta: t
1903
+ } = e.state, n = t.isTouched, r = !!t.errors.length, s = t.errors[0]?.message;
1904
+ return {
1905
+ isTouched: n,
1906
+ hasError: r,
1907
+ helperText: s
1908
+ };
1909
+ }, Sr = (e) => e.replaceAll(/([a-z])([A-Z])/g, "$1-$2").replaceAll(/[\s_]+/g, "-").replaceAll(/[^a-zA-Z0-9-]/g, "").toLowerCase().replaceAll(/-+/g, "-").replaceAll(/(^-|-$)/g, "");
1910
+ export {
1911
+ br as P,
1912
+ mr as W,
1913
+ pe as a,
1914
+ yr as b,
1915
+ Je as c,
1916
+ gr as g,
1917
+ wr as h,
1918
+ Er as r,
1919
+ Sr as t
1920
+ };
1921
+ //# sourceMappingURL=utils-DV30kRxW.js.map