zsysview 0.0.16 → 0.0.18

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 (76) hide show
  1. package/README.md +19 -3
  2. package/dist/backup-BwHGMFM9.js +519 -0
  3. package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-B-s19d7a.js +42 -0
  4. package/dist/change_password-Cvx2fsBt.js +135 -0
  5. package/dist/department-D19P31la.js +410 -0
  6. package/dist/desktop-IlIshTtF.js +9 -0
  7. package/dist/http_api_v1-DFc71lD8.js +2755 -0
  8. package/dist/index-C_d1JnWR.js +49346 -0
  9. package/dist/index.es-BcGc183Q.js +170 -0
  10. package/dist/log-sQxXMuk2.js +163 -0
  11. package/dist/login-CN37wrzM.js +111 -0
  12. package/dist/main-B5GBQKz0.js +292 -0
  13. package/dist/message-Dd0EkBmy.js +26 -0
  14. package/dist/position-DfWT0ovL.js +312 -0
  15. package/dist/role-CNn2CuOU.js +405 -0
  16. package/dist/self-CraGrpq3.js +102 -0
  17. package/dist/sys-BjlP52cg.js +30 -0
  18. package/dist/user-CYvTCZB6.js +651 -0
  19. package/dist/vite.svg +1 -0
  20. package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-DTE_uo5w.js +72 -0
  21. package/dist/zsys_eventBus-Dc_JZwH4.js +36 -0
  22. package/dist/zsys_time-DHEMuVgo.js +17 -0
  23. package/dist/zsyslist.vue_vue_type_script_setup_true_lang-CiKZqB0j.js +465 -0
  24. package/dist/zsysview.css +1 -0
  25. package/dist/zsysview.es.js +2 -0
  26. package/package.json +34 -20
  27. package/assets/default_avatar.png +0 -0
  28. package/assets/default_logo.png +0 -0
  29. package/assets/default_logo_40.png +0 -0
  30. package/assets/login_bg.jpg +0 -0
  31. package/components/export/export_dialog.vue +0 -150
  32. package/components/export/export_progress.vue +0 -62
  33. package/components/list/zsyslist.vue +0 -164
  34. package/components/list/zsyslist_content.vue +0 -29
  35. package/components/list/zsyslist_header.vue +0 -62
  36. package/components/message/index.ts +0 -3
  37. package/components/message/message.ts +0 -35
  38. package/components/zsys_delbutton.vue +0 -60
  39. package/core/app.ts +0 -32
  40. package/core/common/common.ts +0 -29
  41. package/core/common/zsys_eventBus.ts +0 -45
  42. package/core/common/zsys_time.ts +0 -26
  43. package/core/httpapi/http_api_return_data.ts +0 -43
  44. package/core/httpapi/http_api_v1.ts +0 -151
  45. package/core/httpapi/http_axios.ts +0 -54
  46. package/core/router copy.ts +0 -148
  47. package/core/router.ts +0 -149
  48. package/core/runtime.ts +0 -14
  49. package/core/user_token.ts +0 -17
  50. package/css/common.css +0 -16
  51. package/css/style.css +0 -79
  52. package/index.ts +0 -0
  53. package/view/app.vue +0 -10
  54. package/view/backup/backup.vue +0 -308
  55. package/view/building.vue +0 -22
  56. package/view/department/department.vue +0 -111
  57. package/view/department/department_edit_dialog.vue +0 -267
  58. package/view/desktop/desktop.vue +0 -11
  59. package/view/log/log.vue +0 -60
  60. package/view/log/log_setting.vue +0 -41
  61. package/view/login.vue +0 -91
  62. package/view/main/breadcrumb.vue +0 -41
  63. package/view/main/main.vue +0 -60
  64. package/view/main/userHeader.vue +0 -73
  65. package/view/main/userMenu.vue +0 -132
  66. package/view/main/userMenuItem.vue +0 -49
  67. package/view/position/position.vue +0 -58
  68. package/view/position/position_edit_dialog.vue +0 -203
  69. package/view/role/role.vue +0 -72
  70. package/view/role/role_edit_dialog.vue +0 -271
  71. package/view/self/change_password.vue +0 -97
  72. package/view/self/self.vue +0 -62
  73. package/view/sys/sys.vue +0 -19
  74. package/view/user/change_user_password_dialog.vue +0 -155
  75. package/view/user/user.vue +0 -110
  76. package/view/user/user_edit_dialog.vue +0 -283
@@ -0,0 +1,2755 @@
1
+ import { x as sr, k as or } from "./index-C_d1JnWR.js";
2
+ function kt(e, t) {
3
+ return function() {
4
+ return e.apply(t, arguments);
5
+ };
6
+ }
7
+ const { toString: ar } = Object.prototype, { getPrototypeOf: at } = Object, { iterator: $e, toStringTag: Ut } = Symbol, ze = /* @__PURE__ */ ((e) => (t) => {
8
+ const r = ar.call(t);
9
+ return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
10
+ })(/* @__PURE__ */ Object.create(null)), he = (e) => (e = e.toLowerCase(), (t) => ze(t) === e), Je = (e) => (t) => typeof t === e, { isArray: xe } = Array, Re = Je("undefined");
11
+ function Be(e) {
12
+ return e !== null && !Re(e) && e.constructor !== null && !Re(e.constructor) && le(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13
+ }
14
+ const Lt = he("ArrayBuffer");
15
+ function cr(e) {
16
+ let t;
17
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Lt(e.buffer), t;
18
+ }
19
+ const lr = Je("string"), le = Je("function"), Dt = Je("number"), ve = (e) => e !== null && typeof e == "object", ur = (e) => e === !0 || e === !1, De = (e) => {
20
+ if (ze(e) !== "object")
21
+ return !1;
22
+ const t = at(e);
23
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ut in e) && !($e in e);
24
+ }, fr = (e) => {
25
+ if (!ve(e) || Be(e))
26
+ return !1;
27
+ try {
28
+ return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
29
+ } catch {
30
+ return !1;
31
+ }
32
+ }, dr = he("Date"), pr = he("File"), hr = he("Blob"), mr = he("FileList"), gr = (e) => ve(e) && le(e.pipe), wr = (e) => {
33
+ let t;
34
+ return e && (typeof FormData == "function" && e instanceof FormData || le(e.append) && ((t = ze(e)) === "formdata" || // detect form-data instance
35
+ t === "object" && le(e.toString) && e.toString() === "[object FormData]"));
36
+ }, _r = he("URLSearchParams"), [yr, Er, br, Or] = ["ReadableStream", "Request", "Response", "Headers"].map(he), Sr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
+ function Fe(e, t, { allOwnKeys: r = !1 } = {}) {
38
+ if (e === null || typeof e > "u")
39
+ return;
40
+ let n, s;
41
+ if (typeof e != "object" && (e = [e]), xe(e))
42
+ for (n = 0, s = e.length; n < s; n++)
43
+ t.call(null, e[n], n, e);
44
+ else {
45
+ if (Be(e))
46
+ return;
47
+ const l = r ? Object.getOwnPropertyNames(e) : Object.keys(e), c = l.length;
48
+ let p;
49
+ for (n = 0; n < c; n++)
50
+ p = l[n], t.call(null, e[p], p, e);
51
+ }
52
+ }
53
+ function It(e, t) {
54
+ if (Be(e))
55
+ return null;
56
+ t = t.toLowerCase();
57
+ const r = Object.keys(e);
58
+ let n = r.length, s;
59
+ for (; n-- > 0; )
60
+ if (s = r[n], t === s.toLowerCase())
61
+ return s;
62
+ return null;
63
+ }
64
+ const be = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, jt = (e) => !Re(e) && e !== be;
65
+ function rt() {
66
+ const { caseless: e, skipUndefined: t } = jt(this) && this || {}, r = {}, n = (s, l) => {
67
+ const c = e && It(r, l) || l;
68
+ De(r[c]) && De(s) ? r[c] = rt(r[c], s) : De(s) ? r[c] = rt({}, s) : xe(s) ? r[c] = s.slice() : (!t || !Re(s)) && (r[c] = s);
69
+ };
70
+ for (let s = 0, l = arguments.length; s < l; s++)
71
+ arguments[s] && Fe(arguments[s], n);
72
+ return r;
73
+ }
74
+ const Ar = (e, t, r, { allOwnKeys: n } = {}) => (Fe(t, (s, l) => {
75
+ r && le(s) ? e[l] = kt(s, r) : e[l] = s;
76
+ }, { allOwnKeys: n }), e), Rr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), xr = (e, t, r, n) => {
77
+ e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
78
+ value: t.prototype
79
+ }), r && Object.assign(e.prototype, r);
80
+ }, Nr = (e, t, r, n) => {
81
+ let s, l, c;
82
+ const p = {};
83
+ if (t = t || {}, e == null) return t;
84
+ do {
85
+ for (s = Object.getOwnPropertyNames(e), l = s.length; l-- > 0; )
86
+ c = s[l], (!n || n(c, e, t)) && !p[c] && (t[c] = e[c], p[c] = !0);
87
+ e = r !== !1 && at(e);
88
+ } while (e && (!r || r(e, t)) && e !== Object.prototype);
89
+ return t;
90
+ }, Tr = (e, t, r) => {
91
+ e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
92
+ const n = e.indexOf(t, r);
93
+ return n !== -1 && n === r;
94
+ }, Cr = (e) => {
95
+ if (!e) return null;
96
+ if (xe(e)) return e;
97
+ let t = e.length;
98
+ if (!Dt(t)) return null;
99
+ const r = new Array(t);
100
+ for (; t-- > 0; )
101
+ r[t] = e[t];
102
+ return r;
103
+ }, Pr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && at(Uint8Array)), Br = (e, t) => {
104
+ const n = (e && e[$e]).call(e);
105
+ let s;
106
+ for (; (s = n.next()) && !s.done; ) {
107
+ const l = s.value;
108
+ t.call(e, l[0], l[1]);
109
+ }
110
+ }, vr = (e, t) => {
111
+ let r;
112
+ const n = [];
113
+ for (; (r = e.exec(t)) !== null; )
114
+ n.push(r);
115
+ return n;
116
+ }, Fr = he("HTMLFormElement"), kr = (e) => e.toLowerCase().replace(
117
+ /[-_\s]([a-z\d])(\w*)/g,
118
+ function(r, n, s) {
119
+ return n.toUpperCase() + s;
120
+ }
121
+ ), pt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Ur = he("RegExp"), qt = (e, t) => {
122
+ const r = Object.getOwnPropertyDescriptors(e), n = {};
123
+ Fe(r, (s, l) => {
124
+ let c;
125
+ (c = t(s, l, e)) !== !1 && (n[l] = c || s);
126
+ }), Object.defineProperties(e, n);
127
+ }, Lr = (e) => {
128
+ qt(e, (t, r) => {
129
+ if (le(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
130
+ return !1;
131
+ const n = e[r];
132
+ if (le(n)) {
133
+ if (t.enumerable = !1, "writable" in t) {
134
+ t.writable = !1;
135
+ return;
136
+ }
137
+ t.set || (t.set = () => {
138
+ throw Error("Can not rewrite read-only method '" + r + "'");
139
+ });
140
+ }
141
+ });
142
+ }, Dr = (e, t) => {
143
+ const r = {}, n = (s) => {
144
+ s.forEach((l) => {
145
+ r[l] = !0;
146
+ });
147
+ };
148
+ return xe(e) ? n(e) : n(String(e).split(t)), r;
149
+ }, Ir = () => {
150
+ }, jr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
151
+ function qr(e) {
152
+ return !!(e && le(e.append) && e[Ut] === "FormData" && e[$e]);
153
+ }
154
+ const Mr = (e) => {
155
+ const t = new Array(10), r = (n, s) => {
156
+ if (ve(n)) {
157
+ if (t.indexOf(n) >= 0)
158
+ return;
159
+ if (Be(n))
160
+ return n;
161
+ if (!("toJSON" in n)) {
162
+ t[s] = n;
163
+ const l = xe(n) ? [] : {};
164
+ return Fe(n, (c, p) => {
165
+ const N = r(c, s + 1);
166
+ !Re(N) && (l[p] = N);
167
+ }), t[s] = void 0, l;
168
+ }
169
+ }
170
+ return n;
171
+ };
172
+ return r(e, 0);
173
+ }, Hr = he("AsyncFunction"), $r = (e) => e && (ve(e) || le(e)) && le(e.then) && le(e.catch), Mt = ((e, t) => e ? setImmediate : t ? ((r, n) => (be.addEventListener("message", ({ source: s, data: l }) => {
174
+ s === be && l === r && n.length && n.shift()();
175
+ }, !1), (s) => {
176
+ n.push(s), be.postMessage(r, "*");
177
+ }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
178
+ typeof setImmediate == "function",
179
+ le(be.postMessage)
180
+ ), zr = typeof queueMicrotask < "u" ? queueMicrotask.bind(be) : typeof process < "u" && process.nextTick || Mt, Jr = (e) => e != null && le(e[$e]), _ = {
181
+ isArray: xe,
182
+ isArrayBuffer: Lt,
183
+ isBuffer: Be,
184
+ isFormData: wr,
185
+ isArrayBufferView: cr,
186
+ isString: lr,
187
+ isNumber: Dt,
188
+ isBoolean: ur,
189
+ isObject: ve,
190
+ isPlainObject: De,
191
+ isEmptyObject: fr,
192
+ isReadableStream: yr,
193
+ isRequest: Er,
194
+ isResponse: br,
195
+ isHeaders: Or,
196
+ isUndefined: Re,
197
+ isDate: dr,
198
+ isFile: pr,
199
+ isBlob: hr,
200
+ isRegExp: Ur,
201
+ isFunction: le,
202
+ isStream: gr,
203
+ isURLSearchParams: _r,
204
+ isTypedArray: Pr,
205
+ isFileList: mr,
206
+ forEach: Fe,
207
+ merge: rt,
208
+ extend: Ar,
209
+ trim: Sr,
210
+ stripBOM: Rr,
211
+ inherits: xr,
212
+ toFlatObject: Nr,
213
+ kindOf: ze,
214
+ kindOfTest: he,
215
+ endsWith: Tr,
216
+ toArray: Cr,
217
+ forEachEntry: Br,
218
+ matchAll: vr,
219
+ isHTMLForm: Fr,
220
+ hasOwnProperty: pt,
221
+ hasOwnProp: pt,
222
+ // an alias to avoid ESLint no-prototype-builtins detection
223
+ reduceDescriptors: qt,
224
+ freezeMethods: Lr,
225
+ toObjectSet: Dr,
226
+ toCamelCase: kr,
227
+ noop: Ir,
228
+ toFiniteNumber: jr,
229
+ findKey: It,
230
+ global: be,
231
+ isContextDefined: jt,
232
+ isSpecCompliantForm: qr,
233
+ toJSONObject: Mr,
234
+ isAsyncFn: Hr,
235
+ isThenable: $r,
236
+ setImmediate: Mt,
237
+ asap: zr,
238
+ isIterable: Jr
239
+ };
240
+ function j(e, t, r, n, s) {
241
+ 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), s && (this.response = s, this.status = s.status ? s.status : null);
242
+ }
243
+ _.inherits(j, Error, {
244
+ toJSON: function() {
245
+ return {
246
+ // Standard
247
+ message: this.message,
248
+ name: this.name,
249
+ // Microsoft
250
+ description: this.description,
251
+ number: this.number,
252
+ // Mozilla
253
+ fileName: this.fileName,
254
+ lineNumber: this.lineNumber,
255
+ columnNumber: this.columnNumber,
256
+ stack: this.stack,
257
+ // Axios
258
+ config: _.toJSONObject(this.config),
259
+ code: this.code,
260
+ status: this.status
261
+ };
262
+ }
263
+ });
264
+ const Ht = j.prototype, $t = {};
265
+ [
266
+ "ERR_BAD_OPTION_VALUE",
267
+ "ERR_BAD_OPTION",
268
+ "ECONNABORTED",
269
+ "ETIMEDOUT",
270
+ "ERR_NETWORK",
271
+ "ERR_FR_TOO_MANY_REDIRECTS",
272
+ "ERR_DEPRECATED",
273
+ "ERR_BAD_RESPONSE",
274
+ "ERR_BAD_REQUEST",
275
+ "ERR_CANCELED",
276
+ "ERR_NOT_SUPPORT",
277
+ "ERR_INVALID_URL"
278
+ // eslint-disable-next-line func-names
279
+ ].forEach((e) => {
280
+ $t[e] = { value: e };
281
+ });
282
+ Object.defineProperties(j, $t);
283
+ Object.defineProperty(Ht, "isAxiosError", { value: !0 });
284
+ j.from = (e, t, r, n, s, l) => {
285
+ const c = Object.create(Ht);
286
+ _.toFlatObject(e, c, function(b) {
287
+ return b !== Error.prototype;
288
+ }, (y) => y !== "isAxiosError");
289
+ const p = e && e.message ? e.message : "Error", N = t == null && e ? e.code : t;
290
+ return j.call(c, p, N, r, n, s), e && c.cause == null && Object.defineProperty(c, "cause", { value: e, configurable: !0 }), c.name = e && e.name || "Error", l && Object.assign(c, l), c;
291
+ };
292
+ const Vr = null;
293
+ function nt(e) {
294
+ return _.isPlainObject(e) || _.isArray(e);
295
+ }
296
+ function zt(e) {
297
+ return _.endsWith(e, "[]") ? e.slice(0, -2) : e;
298
+ }
299
+ function ht(e, t, r) {
300
+ return e ? e.concat(t).map(function(s, l) {
301
+ return s = zt(s), !r && l ? "[" + s + "]" : s;
302
+ }).join(r ? "." : "") : t;
303
+ }
304
+ function Gr(e) {
305
+ return _.isArray(e) && !e.some(nt);
306
+ }
307
+ const Wr = _.toFlatObject(_, {}, null, function(t) {
308
+ return /^is[A-Z]/.test(t);
309
+ });
310
+ function Ve(e, t, r) {
311
+ if (!_.isObject(e))
312
+ throw new TypeError("target must be an object");
313
+ t = t || new FormData(), r = _.toFlatObject(r, {
314
+ metaTokens: !0,
315
+ dots: !1,
316
+ indexes: !1
317
+ }, !1, function(C, x) {
318
+ return !_.isUndefined(x[C]);
319
+ });
320
+ const n = r.metaTokens, s = r.visitor || b, l = r.dots, c = r.indexes, N = (r.Blob || typeof Blob < "u" && Blob) && _.isSpecCompliantForm(t);
321
+ if (!_.isFunction(s))
322
+ throw new TypeError("visitor must be a function");
323
+ function y(O) {
324
+ if (O === null) return "";
325
+ if (_.isDate(O))
326
+ return O.toISOString();
327
+ if (_.isBoolean(O))
328
+ return O.toString();
329
+ if (!N && _.isBlob(O))
330
+ throw new j("Blob is not supported. Use a Buffer instead.");
331
+ return _.isArrayBuffer(O) || _.isTypedArray(O) ? N && typeof Blob == "function" ? new Blob([O]) : Buffer.from(O) : O;
332
+ }
333
+ function b(O, C, x) {
334
+ let q = O;
335
+ if (O && !x && typeof O == "object") {
336
+ if (_.endsWith(C, "{}"))
337
+ C = n ? C : C.slice(0, -2), O = JSON.stringify(O);
338
+ else if (_.isArray(O) && Gr(O) || (_.isFileList(O) || _.endsWith(C, "[]")) && (q = _.toArray(O)))
339
+ return C = zt(C), q.forEach(function(F, D) {
340
+ !(_.isUndefined(F) || F === null) && t.append(
341
+ // eslint-disable-next-line no-nested-ternary
342
+ c === !0 ? ht([C], D, l) : c === null ? C : C + "[]",
343
+ y(F)
344
+ );
345
+ }), !1;
346
+ }
347
+ return nt(O) ? !0 : (t.append(ht(x, C, l), y(O)), !1);
348
+ }
349
+ const S = [], v = Object.assign(Wr, {
350
+ defaultVisitor: b,
351
+ convertValue: y,
352
+ isVisitable: nt
353
+ });
354
+ function I(O, C) {
355
+ if (!_.isUndefined(O)) {
356
+ if (S.indexOf(O) !== -1)
357
+ throw Error("Circular reference detected in " + C.join("."));
358
+ S.push(O), _.forEach(O, function(q, B) {
359
+ (!(_.isUndefined(q) || q === null) && s.call(
360
+ t,
361
+ q,
362
+ _.isString(B) ? B.trim() : B,
363
+ C,
364
+ v
365
+ )) === !0 && I(q, C ? C.concat(B) : [B]);
366
+ }), S.pop();
367
+ }
368
+ }
369
+ if (!_.isObject(e))
370
+ throw new TypeError("data must be an object");
371
+ return I(e), t;
372
+ }
373
+ function mt(e) {
374
+ const t = {
375
+ "!": "%21",
376
+ "'": "%27",
377
+ "(": "%28",
378
+ ")": "%29",
379
+ "~": "%7E",
380
+ "%20": "+",
381
+ "%00": "\0"
382
+ };
383
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
384
+ return t[n];
385
+ });
386
+ }
387
+ function ct(e, t) {
388
+ this._pairs = [], e && Ve(e, this, t);
389
+ }
390
+ const Jt = ct.prototype;
391
+ Jt.append = function(t, r) {
392
+ this._pairs.push([t, r]);
393
+ };
394
+ Jt.toString = function(t) {
395
+ const r = t ? function(n) {
396
+ return t.call(this, n, mt);
397
+ } : mt;
398
+ return this._pairs.map(function(s) {
399
+ return r(s[0]) + "=" + r(s[1]);
400
+ }, "").join("&");
401
+ };
402
+ function Xr(e) {
403
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
404
+ }
405
+ function Vt(e, t, r) {
406
+ if (!t)
407
+ return e;
408
+ const n = r && r.encode || Xr;
409
+ _.isFunction(r) && (r = {
410
+ serialize: r
411
+ });
412
+ const s = r && r.serialize;
413
+ let l;
414
+ if (s ? l = s(t, r) : l = _.isURLSearchParams(t) ? t.toString() : new ct(t, r).toString(n), l) {
415
+ const c = e.indexOf("#");
416
+ c !== -1 && (e = e.slice(0, c)), e += (e.indexOf("?") === -1 ? "?" : "&") + l;
417
+ }
418
+ return e;
419
+ }
420
+ class gt {
421
+ constructor() {
422
+ this.handlers = [];
423
+ }
424
+ /**
425
+ * Add a new interceptor to the stack
426
+ *
427
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
428
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
429
+ *
430
+ * @return {Number} An ID used to remove interceptor later
431
+ */
432
+ use(t, r, n) {
433
+ return this.handlers.push({
434
+ fulfilled: t,
435
+ rejected: r,
436
+ synchronous: n ? n.synchronous : !1,
437
+ runWhen: n ? n.runWhen : null
438
+ }), this.handlers.length - 1;
439
+ }
440
+ /**
441
+ * Remove an interceptor from the stack
442
+ *
443
+ * @param {Number} id The ID that was returned by `use`
444
+ *
445
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
446
+ */
447
+ eject(t) {
448
+ this.handlers[t] && (this.handlers[t] = null);
449
+ }
450
+ /**
451
+ * Clear all interceptors from the stack
452
+ *
453
+ * @returns {void}
454
+ */
455
+ clear() {
456
+ this.handlers && (this.handlers = []);
457
+ }
458
+ /**
459
+ * Iterate over all the registered interceptors
460
+ *
461
+ * This method is particularly useful for skipping over any
462
+ * interceptors that may have become `null` calling `eject`.
463
+ *
464
+ * @param {Function} fn The function to call for each interceptor
465
+ *
466
+ * @returns {void}
467
+ */
468
+ forEach(t) {
469
+ _.forEach(this.handlers, function(n) {
470
+ n !== null && t(n);
471
+ });
472
+ }
473
+ }
474
+ const Gt = {
475
+ silentJSONParsing: !0,
476
+ forcedJSONParsing: !0,
477
+ clarifyTimeoutError: !1
478
+ }, Kr = typeof URLSearchParams < "u" ? URLSearchParams : ct, Qr = typeof FormData < "u" ? FormData : null, Yr = typeof Blob < "u" ? Blob : null, Zr = {
479
+ isBrowser: !0,
480
+ classes: {
481
+ URLSearchParams: Kr,
482
+ FormData: Qr,
483
+ Blob: Yr
484
+ },
485
+ protocols: ["http", "https", "file", "blob", "url", "data"]
486
+ }, lt = typeof window < "u" && typeof document < "u", it = typeof navigator == "object" && navigator || void 0, en = lt && (!it || ["ReactNative", "NativeScript", "NS"].indexOf(it.product) < 0), tn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", rn = lt && window.location.href || "http://localhost", nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
+ __proto__: null,
489
+ hasBrowserEnv: lt,
490
+ hasStandardBrowserEnv: en,
491
+ hasStandardBrowserWebWorkerEnv: tn,
492
+ navigator: it,
493
+ origin: rn
494
+ }, Symbol.toStringTag, { value: "Module" })), se = {
495
+ ...nn,
496
+ ...Zr
497
+ };
498
+ function sn(e, t) {
499
+ return Ve(e, new se.classes.URLSearchParams(), {
500
+ visitor: function(r, n, s, l) {
501
+ return se.isNode && _.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : l.defaultVisitor.apply(this, arguments);
502
+ },
503
+ ...t
504
+ });
505
+ }
506
+ function on(e) {
507
+ return _.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
508
+ }
509
+ function an(e) {
510
+ const t = {}, r = Object.keys(e);
511
+ let n;
512
+ const s = r.length;
513
+ let l;
514
+ for (n = 0; n < s; n++)
515
+ l = r[n], t[l] = e[l];
516
+ return t;
517
+ }
518
+ function Wt(e) {
519
+ function t(r, n, s, l) {
520
+ let c = r[l++];
521
+ if (c === "__proto__") return !0;
522
+ const p = Number.isFinite(+c), N = l >= r.length;
523
+ return c = !c && _.isArray(s) ? s.length : c, N ? (_.hasOwnProp(s, c) ? s[c] = [s[c], n] : s[c] = n, !p) : ((!s[c] || !_.isObject(s[c])) && (s[c] = []), t(r, n, s[c], l) && _.isArray(s[c]) && (s[c] = an(s[c])), !p);
524
+ }
525
+ if (_.isFormData(e) && _.isFunction(e.entries)) {
526
+ const r = {};
527
+ return _.forEachEntry(e, (n, s) => {
528
+ t(on(n), s, r, 0);
529
+ }), r;
530
+ }
531
+ return null;
532
+ }
533
+ function cn(e, t, r) {
534
+ if (_.isString(e))
535
+ try {
536
+ return (t || JSON.parse)(e), _.trim(e);
537
+ } catch (n) {
538
+ if (n.name !== "SyntaxError")
539
+ throw n;
540
+ }
541
+ return (r || JSON.stringify)(e);
542
+ }
543
+ const ke = {
544
+ transitional: Gt,
545
+ adapter: ["xhr", "http", "fetch"],
546
+ transformRequest: [function(t, r) {
547
+ const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, l = _.isObject(t);
548
+ if (l && _.isHTMLForm(t) && (t = new FormData(t)), _.isFormData(t))
549
+ return s ? JSON.stringify(Wt(t)) : t;
550
+ if (_.isArrayBuffer(t) || _.isBuffer(t) || _.isStream(t) || _.isFile(t) || _.isBlob(t) || _.isReadableStream(t))
551
+ return t;
552
+ if (_.isArrayBufferView(t))
553
+ return t.buffer;
554
+ if (_.isURLSearchParams(t))
555
+ return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
556
+ let p;
557
+ if (l) {
558
+ if (n.indexOf("application/x-www-form-urlencoded") > -1)
559
+ return sn(t, this.formSerializer).toString();
560
+ if ((p = _.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
561
+ const N = this.env && this.env.FormData;
562
+ return Ve(
563
+ p ? { "files[]": t } : t,
564
+ N && new N(),
565
+ this.formSerializer
566
+ );
567
+ }
568
+ }
569
+ return l || s ? (r.setContentType("application/json", !1), cn(t)) : t;
570
+ }],
571
+ transformResponse: [function(t) {
572
+ const r = this.transitional || ke.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
573
+ if (_.isResponse(t) || _.isReadableStream(t))
574
+ return t;
575
+ if (t && _.isString(t) && (n && !this.responseType || s)) {
576
+ const c = !(r && r.silentJSONParsing) && s;
577
+ try {
578
+ return JSON.parse(t, this.parseReviver);
579
+ } catch (p) {
580
+ if (c)
581
+ throw p.name === "SyntaxError" ? j.from(p, j.ERR_BAD_RESPONSE, this, null, this.response) : p;
582
+ }
583
+ }
584
+ return t;
585
+ }],
586
+ /**
587
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
588
+ * timeout is not created.
589
+ */
590
+ timeout: 0,
591
+ xsrfCookieName: "XSRF-TOKEN",
592
+ xsrfHeaderName: "X-XSRF-TOKEN",
593
+ maxContentLength: -1,
594
+ maxBodyLength: -1,
595
+ env: {
596
+ FormData: se.classes.FormData,
597
+ Blob: se.classes.Blob
598
+ },
599
+ validateStatus: function(t) {
600
+ return t >= 200 && t < 300;
601
+ },
602
+ headers: {
603
+ common: {
604
+ Accept: "application/json, text/plain, */*",
605
+ "Content-Type": void 0
606
+ }
607
+ }
608
+ };
609
+ _.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
610
+ ke.headers[e] = {};
611
+ });
612
+ const ln = _.toObjectSet([
613
+ "age",
614
+ "authorization",
615
+ "content-length",
616
+ "content-type",
617
+ "etag",
618
+ "expires",
619
+ "from",
620
+ "host",
621
+ "if-modified-since",
622
+ "if-unmodified-since",
623
+ "last-modified",
624
+ "location",
625
+ "max-forwards",
626
+ "proxy-authorization",
627
+ "referer",
628
+ "retry-after",
629
+ "user-agent"
630
+ ]), un = (e) => {
631
+ const t = {};
632
+ let r, n, s;
633
+ return e && e.split(`
634
+ `).forEach(function(c) {
635
+ s = c.indexOf(":"), r = c.substring(0, s).trim().toLowerCase(), n = c.substring(s + 1).trim(), !(!r || t[r] && ln[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
636
+ }), t;
637
+ }, wt = Symbol("internals");
638
+ function Ce(e) {
639
+ return e && String(e).trim().toLowerCase();
640
+ }
641
+ function Ie(e) {
642
+ return e === !1 || e == null ? e : _.isArray(e) ? e.map(Ie) : String(e);
643
+ }
644
+ function fn(e) {
645
+ const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
646
+ let n;
647
+ for (; n = r.exec(e); )
648
+ t[n[1]] = n[2];
649
+ return t;
650
+ }
651
+ const dn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
652
+ function Qe(e, t, r, n, s) {
653
+ if (_.isFunction(n))
654
+ return n.call(this, t, r);
655
+ if (s && (t = r), !!_.isString(t)) {
656
+ if (_.isString(n))
657
+ return t.indexOf(n) !== -1;
658
+ if (_.isRegExp(n))
659
+ return n.test(t);
660
+ }
661
+ }
662
+ function pn(e) {
663
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
664
+ }
665
+ function hn(e, t) {
666
+ const r = _.toCamelCase(" " + t);
667
+ ["get", "set", "has"].forEach((n) => {
668
+ Object.defineProperty(e, n + r, {
669
+ value: function(s, l, c) {
670
+ return this[n].call(this, t, s, l, c);
671
+ },
672
+ configurable: !0
673
+ });
674
+ });
675
+ }
676
+ let ue = class {
677
+ constructor(t) {
678
+ t && this.set(t);
679
+ }
680
+ set(t, r, n) {
681
+ const s = this;
682
+ function l(p, N, y) {
683
+ const b = Ce(N);
684
+ if (!b)
685
+ throw new Error("header name must be a non-empty string");
686
+ const S = _.findKey(s, b);
687
+ (!S || s[S] === void 0 || y === !0 || y === void 0 && s[S] !== !1) && (s[S || N] = Ie(p));
688
+ }
689
+ const c = (p, N) => _.forEach(p, (y, b) => l(y, b, N));
690
+ if (_.isPlainObject(t) || t instanceof this.constructor)
691
+ c(t, r);
692
+ else if (_.isString(t) && (t = t.trim()) && !dn(t))
693
+ c(un(t), r);
694
+ else if (_.isObject(t) && _.isIterable(t)) {
695
+ let p = {}, N, y;
696
+ for (const b of t) {
697
+ if (!_.isArray(b))
698
+ throw TypeError("Object iterator must return a key-value pair");
699
+ p[y = b[0]] = (N = p[y]) ? _.isArray(N) ? [...N, b[1]] : [N, b[1]] : b[1];
700
+ }
701
+ c(p, r);
702
+ } else
703
+ t != null && l(r, t, n);
704
+ return this;
705
+ }
706
+ get(t, r) {
707
+ if (t = Ce(t), t) {
708
+ const n = _.findKey(this, t);
709
+ if (n) {
710
+ const s = this[n];
711
+ if (!r)
712
+ return s;
713
+ if (r === !0)
714
+ return fn(s);
715
+ if (_.isFunction(r))
716
+ return r.call(this, s, n);
717
+ if (_.isRegExp(r))
718
+ return r.exec(s);
719
+ throw new TypeError("parser must be boolean|regexp|function");
720
+ }
721
+ }
722
+ }
723
+ has(t, r) {
724
+ if (t = Ce(t), t) {
725
+ const n = _.findKey(this, t);
726
+ return !!(n && this[n] !== void 0 && (!r || Qe(this, this[n], n, r)));
727
+ }
728
+ return !1;
729
+ }
730
+ delete(t, r) {
731
+ const n = this;
732
+ let s = !1;
733
+ function l(c) {
734
+ if (c = Ce(c), c) {
735
+ const p = _.findKey(n, c);
736
+ p && (!r || Qe(n, n[p], p, r)) && (delete n[p], s = !0);
737
+ }
738
+ }
739
+ return _.isArray(t) ? t.forEach(l) : l(t), s;
740
+ }
741
+ clear(t) {
742
+ const r = Object.keys(this);
743
+ let n = r.length, s = !1;
744
+ for (; n--; ) {
745
+ const l = r[n];
746
+ (!t || Qe(this, this[l], l, t, !0)) && (delete this[l], s = !0);
747
+ }
748
+ return s;
749
+ }
750
+ normalize(t) {
751
+ const r = this, n = {};
752
+ return _.forEach(this, (s, l) => {
753
+ const c = _.findKey(n, l);
754
+ if (c) {
755
+ r[c] = Ie(s), delete r[l];
756
+ return;
757
+ }
758
+ const p = t ? pn(l) : String(l).trim();
759
+ p !== l && delete r[l], r[p] = Ie(s), n[p] = !0;
760
+ }), this;
761
+ }
762
+ concat(...t) {
763
+ return this.constructor.concat(this, ...t);
764
+ }
765
+ toJSON(t) {
766
+ const r = /* @__PURE__ */ Object.create(null);
767
+ return _.forEach(this, (n, s) => {
768
+ n != null && n !== !1 && (r[s] = t && _.isArray(n) ? n.join(", ") : n);
769
+ }), r;
770
+ }
771
+ [Symbol.iterator]() {
772
+ return Object.entries(this.toJSON())[Symbol.iterator]();
773
+ }
774
+ toString() {
775
+ return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
776
+ `);
777
+ }
778
+ getSetCookie() {
779
+ return this.get("set-cookie") || [];
780
+ }
781
+ get [Symbol.toStringTag]() {
782
+ return "AxiosHeaders";
783
+ }
784
+ static from(t) {
785
+ return t instanceof this ? t : new this(t);
786
+ }
787
+ static concat(t, ...r) {
788
+ const n = new this(t);
789
+ return r.forEach((s) => n.set(s)), n;
790
+ }
791
+ static accessor(t) {
792
+ const n = (this[wt] = this[wt] = {
793
+ accessors: {}
794
+ }).accessors, s = this.prototype;
795
+ function l(c) {
796
+ const p = Ce(c);
797
+ n[p] || (hn(s, c), n[p] = !0);
798
+ }
799
+ return _.isArray(t) ? t.forEach(l) : l(t), this;
800
+ }
801
+ };
802
+ ue.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
803
+ _.reduceDescriptors(ue.prototype, ({ value: e }, t) => {
804
+ let r = t[0].toUpperCase() + t.slice(1);
805
+ return {
806
+ get: () => e,
807
+ set(n) {
808
+ this[r] = n;
809
+ }
810
+ };
811
+ });
812
+ _.freezeMethods(ue);
813
+ function Ye(e, t) {
814
+ const r = this || ke, n = t || r, s = ue.from(n.headers);
815
+ let l = n.data;
816
+ return _.forEach(e, function(p) {
817
+ l = p.call(r, l, s.normalize(), t ? t.status : void 0);
818
+ }), s.normalize(), l;
819
+ }
820
+ function Xt(e) {
821
+ return !!(e && e.__CANCEL__);
822
+ }
823
+ function Ne(e, t, r) {
824
+ j.call(this, e ?? "canceled", j.ERR_CANCELED, t, r), this.name = "CanceledError";
825
+ }
826
+ _.inherits(Ne, j, {
827
+ __CANCEL__: !0
828
+ });
829
+ function Kt(e, t, r) {
830
+ const n = r.config.validateStatus;
831
+ !r.status || !n || n(r.status) ? e(r) : t(new j(
832
+ "Request failed with status code " + r.status,
833
+ [j.ERR_BAD_REQUEST, j.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
834
+ r.config,
835
+ r.request,
836
+ r
837
+ ));
838
+ }
839
+ function mn(e) {
840
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
841
+ return t && t[1] || "";
842
+ }
843
+ function gn(e, t) {
844
+ e = e || 10;
845
+ const r = new Array(e), n = new Array(e);
846
+ let s = 0, l = 0, c;
847
+ return t = t !== void 0 ? t : 1e3, function(N) {
848
+ const y = Date.now(), b = n[l];
849
+ c || (c = y), r[s] = N, n[s] = y;
850
+ let S = l, v = 0;
851
+ for (; S !== s; )
852
+ v += r[S++], S = S % e;
853
+ if (s = (s + 1) % e, s === l && (l = (l + 1) % e), y - c < t)
854
+ return;
855
+ const I = b && y - b;
856
+ return I ? Math.round(v * 1e3 / I) : void 0;
857
+ };
858
+ }
859
+ function wn(e, t) {
860
+ let r = 0, n = 1e3 / t, s, l;
861
+ const c = (y, b = Date.now()) => {
862
+ r = b, s = null, l && (clearTimeout(l), l = null), e(...y);
863
+ };
864
+ return [(...y) => {
865
+ const b = Date.now(), S = b - r;
866
+ S >= n ? c(y, b) : (s = y, l || (l = setTimeout(() => {
867
+ l = null, c(s);
868
+ }, n - S)));
869
+ }, () => s && c(s)];
870
+ }
871
+ const Me = (e, t, r = 3) => {
872
+ let n = 0;
873
+ const s = gn(50, 250);
874
+ return wn((l) => {
875
+ const c = l.loaded, p = l.lengthComputable ? l.total : void 0, N = c - n, y = s(N), b = c <= p;
876
+ n = c;
877
+ const S = {
878
+ loaded: c,
879
+ total: p,
880
+ progress: p ? c / p : void 0,
881
+ bytes: N,
882
+ rate: y || void 0,
883
+ estimated: y && p && b ? (p - c) / y : void 0,
884
+ event: l,
885
+ lengthComputable: p != null,
886
+ [t ? "download" : "upload"]: !0
887
+ };
888
+ e(S);
889
+ }, r);
890
+ }, _t = (e, t) => {
891
+ const r = e != null;
892
+ return [(n) => t[0]({
893
+ lengthComputable: r,
894
+ total: e,
895
+ loaded: n
896
+ }), t[1]];
897
+ }, yt = (e) => (...t) => _.asap(() => e(...t)), _n = se.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, se.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
898
+ new URL(se.origin),
899
+ se.navigator && /(msie|trident)/i.test(se.navigator.userAgent)
900
+ ) : () => !0, yn = se.hasStandardBrowserEnv ? (
901
+ // Standard browser envs support document.cookie
902
+ {
903
+ write(e, t, r, n, s, l) {
904
+ const c = [e + "=" + encodeURIComponent(t)];
905
+ _.isNumber(r) && c.push("expires=" + new Date(r).toGMTString()), _.isString(n) && c.push("path=" + n), _.isString(s) && c.push("domain=" + s), l === !0 && c.push("secure"), document.cookie = c.join("; ");
906
+ },
907
+ read(e) {
908
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
909
+ return t ? decodeURIComponent(t[3]) : null;
910
+ },
911
+ remove(e) {
912
+ this.write(e, "", Date.now() - 864e5);
913
+ }
914
+ }
915
+ ) : (
916
+ // Non-standard browser env (web workers, react-native) lack needed support.
917
+ {
918
+ write() {
919
+ },
920
+ read() {
921
+ return null;
922
+ },
923
+ remove() {
924
+ }
925
+ }
926
+ );
927
+ function En(e) {
928
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
929
+ }
930
+ function bn(e, t) {
931
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
932
+ }
933
+ function Qt(e, t, r) {
934
+ let n = !En(t);
935
+ return e && (n || r == !1) ? bn(e, t) : t;
936
+ }
937
+ const Et = (e) => e instanceof ue ? { ...e } : e;
938
+ function Se(e, t) {
939
+ t = t || {};
940
+ const r = {};
941
+ function n(y, b, S, v) {
942
+ return _.isPlainObject(y) && _.isPlainObject(b) ? _.merge.call({ caseless: v }, y, b) : _.isPlainObject(b) ? _.merge({}, b) : _.isArray(b) ? b.slice() : b;
943
+ }
944
+ function s(y, b, S, v) {
945
+ if (_.isUndefined(b)) {
946
+ if (!_.isUndefined(y))
947
+ return n(void 0, y, S, v);
948
+ } else return n(y, b, S, v);
949
+ }
950
+ function l(y, b) {
951
+ if (!_.isUndefined(b))
952
+ return n(void 0, b);
953
+ }
954
+ function c(y, b) {
955
+ if (_.isUndefined(b)) {
956
+ if (!_.isUndefined(y))
957
+ return n(void 0, y);
958
+ } else return n(void 0, b);
959
+ }
960
+ function p(y, b, S) {
961
+ if (S in t)
962
+ return n(y, b);
963
+ if (S in e)
964
+ return n(void 0, y);
965
+ }
966
+ const N = {
967
+ url: l,
968
+ method: l,
969
+ data: l,
970
+ baseURL: c,
971
+ transformRequest: c,
972
+ transformResponse: c,
973
+ paramsSerializer: c,
974
+ timeout: c,
975
+ timeoutMessage: c,
976
+ withCredentials: c,
977
+ withXSRFToken: c,
978
+ adapter: c,
979
+ responseType: c,
980
+ xsrfCookieName: c,
981
+ xsrfHeaderName: c,
982
+ onUploadProgress: c,
983
+ onDownloadProgress: c,
984
+ decompress: c,
985
+ maxContentLength: c,
986
+ maxBodyLength: c,
987
+ beforeRedirect: c,
988
+ transport: c,
989
+ httpAgent: c,
990
+ httpsAgent: c,
991
+ cancelToken: c,
992
+ socketPath: c,
993
+ responseEncoding: c,
994
+ validateStatus: p,
995
+ headers: (y, b, S) => s(Et(y), Et(b), S, !0)
996
+ };
997
+ return _.forEach(Object.keys({ ...e, ...t }), function(b) {
998
+ const S = N[b] || s, v = S(e[b], t[b], b);
999
+ _.isUndefined(v) && S !== p || (r[b] = v);
1000
+ }), r;
1001
+ }
1002
+ const Yt = (e) => {
1003
+ const t = Se({}, e);
1004
+ let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: l, headers: c, auth: p } = t;
1005
+ if (t.headers = c = ue.from(c), t.url = Vt(Qt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), p && c.set(
1006
+ "Authorization",
1007
+ "Basic " + btoa((p.username || "") + ":" + (p.password ? unescape(encodeURIComponent(p.password)) : ""))
1008
+ ), _.isFormData(r)) {
1009
+ if (se.hasStandardBrowserEnv || se.hasStandardBrowserWebWorkerEnv)
1010
+ c.setContentType(void 0);
1011
+ else if (_.isFunction(r.getHeaders)) {
1012
+ const N = r.getHeaders(), y = ["content-type", "content-length"];
1013
+ Object.entries(N).forEach(([b, S]) => {
1014
+ y.includes(b.toLowerCase()) && c.set(b, S);
1015
+ });
1016
+ }
1017
+ }
1018
+ if (se.hasStandardBrowserEnv && (n && _.isFunction(n) && (n = n(t)), n || n !== !1 && _n(t.url))) {
1019
+ const N = s && l && yn.read(l);
1020
+ N && c.set(s, N);
1021
+ }
1022
+ return t;
1023
+ }, On = typeof XMLHttpRequest < "u", Sn = On && function(e) {
1024
+ return new Promise(function(r, n) {
1025
+ const s = Yt(e);
1026
+ let l = s.data;
1027
+ const c = ue.from(s.headers).normalize();
1028
+ let { responseType: p, onUploadProgress: N, onDownloadProgress: y } = s, b, S, v, I, O;
1029
+ function C() {
1030
+ I && I(), O && O(), s.cancelToken && s.cancelToken.unsubscribe(b), s.signal && s.signal.removeEventListener("abort", b);
1031
+ }
1032
+ let x = new XMLHttpRequest();
1033
+ x.open(s.method.toUpperCase(), s.url, !0), x.timeout = s.timeout;
1034
+ function q() {
1035
+ if (!x)
1036
+ return;
1037
+ const F = ue.from(
1038
+ "getAllResponseHeaders" in x && x.getAllResponseHeaders()
1039
+ ), M = {
1040
+ data: !p || p === "text" || p === "json" ? x.responseText : x.response,
1041
+ status: x.status,
1042
+ statusText: x.statusText,
1043
+ headers: F,
1044
+ config: e,
1045
+ request: x
1046
+ };
1047
+ Kt(function(P) {
1048
+ r(P), C();
1049
+ }, function(P) {
1050
+ n(P), C();
1051
+ }, M), x = null;
1052
+ }
1053
+ "onloadend" in x ? x.onloadend = q : x.onreadystatechange = function() {
1054
+ !x || x.readyState !== 4 || x.status === 0 && !(x.responseURL && x.responseURL.indexOf("file:") === 0) || setTimeout(q);
1055
+ }, x.onabort = function() {
1056
+ x && (n(new j("Request aborted", j.ECONNABORTED, e, x)), x = null);
1057
+ }, x.onerror = function(D) {
1058
+ const M = D && D.message ? D.message : "Network Error", k = new j(M, j.ERR_NETWORK, e, x);
1059
+ k.event = D || null, n(k), x = null;
1060
+ }, x.ontimeout = function() {
1061
+ let D = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1062
+ const M = s.transitional || Gt;
1063
+ s.timeoutErrorMessage && (D = s.timeoutErrorMessage), n(new j(
1064
+ D,
1065
+ M.clarifyTimeoutError ? j.ETIMEDOUT : j.ECONNABORTED,
1066
+ e,
1067
+ x
1068
+ )), x = null;
1069
+ }, l === void 0 && c.setContentType(null), "setRequestHeader" in x && _.forEach(c.toJSON(), function(D, M) {
1070
+ x.setRequestHeader(M, D);
1071
+ }), _.isUndefined(s.withCredentials) || (x.withCredentials = !!s.withCredentials), p && p !== "json" && (x.responseType = s.responseType), y && ([v, O] = Me(y, !0), x.addEventListener("progress", v)), N && x.upload && ([S, I] = Me(N), x.upload.addEventListener("progress", S), x.upload.addEventListener("loadend", I)), (s.cancelToken || s.signal) && (b = (F) => {
1072
+ x && (n(!F || F.type ? new Ne(null, e, x) : F), x.abort(), x = null);
1073
+ }, s.cancelToken && s.cancelToken.subscribe(b), s.signal && (s.signal.aborted ? b() : s.signal.addEventListener("abort", b)));
1074
+ const B = mn(s.url);
1075
+ if (B && se.protocols.indexOf(B) === -1) {
1076
+ n(new j("Unsupported protocol " + B + ":", j.ERR_BAD_REQUEST, e));
1077
+ return;
1078
+ }
1079
+ x.send(l || null);
1080
+ });
1081
+ }, An = (e, t) => {
1082
+ const { length: r } = e = e ? e.filter(Boolean) : [];
1083
+ if (t || r) {
1084
+ let n = new AbortController(), s;
1085
+ const l = function(y) {
1086
+ if (!s) {
1087
+ s = !0, p();
1088
+ const b = y instanceof Error ? y : this.reason;
1089
+ n.abort(b instanceof j ? b : new Ne(b instanceof Error ? b.message : b));
1090
+ }
1091
+ };
1092
+ let c = t && setTimeout(() => {
1093
+ c = null, l(new j(`timeout ${t} of ms exceeded`, j.ETIMEDOUT));
1094
+ }, t);
1095
+ const p = () => {
1096
+ e && (c && clearTimeout(c), c = null, e.forEach((y) => {
1097
+ y.unsubscribe ? y.unsubscribe(l) : y.removeEventListener("abort", l);
1098
+ }), e = null);
1099
+ };
1100
+ e.forEach((y) => y.addEventListener("abort", l));
1101
+ const { signal: N } = n;
1102
+ return N.unsubscribe = () => _.asap(p), N;
1103
+ }
1104
+ }, Rn = function* (e, t) {
1105
+ let r = e.byteLength;
1106
+ if (r < t) {
1107
+ yield e;
1108
+ return;
1109
+ }
1110
+ let n = 0, s;
1111
+ for (; n < r; )
1112
+ s = n + t, yield e.slice(n, s), n = s;
1113
+ }, xn = async function* (e, t) {
1114
+ for await (const r of Nn(e))
1115
+ yield* Rn(r, t);
1116
+ }, Nn = async function* (e) {
1117
+ if (e[Symbol.asyncIterator]) {
1118
+ yield* e;
1119
+ return;
1120
+ }
1121
+ const t = e.getReader();
1122
+ try {
1123
+ for (; ; ) {
1124
+ const { done: r, value: n } = await t.read();
1125
+ if (r)
1126
+ break;
1127
+ yield n;
1128
+ }
1129
+ } finally {
1130
+ await t.cancel();
1131
+ }
1132
+ }, bt = (e, t, r, n) => {
1133
+ const s = xn(e, t);
1134
+ let l = 0, c, p = (N) => {
1135
+ c || (c = !0, n && n(N));
1136
+ };
1137
+ return new ReadableStream({
1138
+ async pull(N) {
1139
+ try {
1140
+ const { done: y, value: b } = await s.next();
1141
+ if (y) {
1142
+ p(), N.close();
1143
+ return;
1144
+ }
1145
+ let S = b.byteLength;
1146
+ if (r) {
1147
+ let v = l += S;
1148
+ r(v);
1149
+ }
1150
+ N.enqueue(new Uint8Array(b));
1151
+ } catch (y) {
1152
+ throw p(y), y;
1153
+ }
1154
+ },
1155
+ cancel(N) {
1156
+ return p(N), s.return();
1157
+ }
1158
+ }, {
1159
+ highWaterMark: 2
1160
+ });
1161
+ }, Ot = 64 * 1024, { isFunction: Le } = _, Tn = (({ Request: e, Response: t }) => ({
1162
+ Request: e,
1163
+ Response: t
1164
+ }))(_.global), {
1165
+ ReadableStream: St,
1166
+ TextEncoder: At
1167
+ } = _.global, Rt = (e, ...t) => {
1168
+ try {
1169
+ return !!e(...t);
1170
+ } catch {
1171
+ return !1;
1172
+ }
1173
+ }, Cn = (e) => {
1174
+ e = _.merge.call({
1175
+ skipUndefined: !0
1176
+ }, Tn, e);
1177
+ const { fetch: t, Request: r, Response: n } = e, s = t ? Le(t) : typeof fetch == "function", l = Le(r), c = Le(n);
1178
+ if (!s)
1179
+ return !1;
1180
+ const p = s && Le(St), N = s && (typeof At == "function" ? /* @__PURE__ */ ((O) => (C) => O.encode(C))(new At()) : async (O) => new Uint8Array(await new r(O).arrayBuffer())), y = l && p && Rt(() => {
1181
+ let O = !1;
1182
+ const C = new r(se.origin, {
1183
+ body: new St(),
1184
+ method: "POST",
1185
+ get duplex() {
1186
+ return O = !0, "half";
1187
+ }
1188
+ }).headers.has("Content-Type");
1189
+ return O && !C;
1190
+ }), b = c && p && Rt(() => _.isReadableStream(new n("").body)), S = {
1191
+ stream: b && ((O) => O.body)
1192
+ };
1193
+ s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((O) => {
1194
+ !S[O] && (S[O] = (C, x) => {
1195
+ let q = C && C[O];
1196
+ if (q)
1197
+ return q.call(C);
1198
+ throw new j(`Response type '${O}' is not supported`, j.ERR_NOT_SUPPORT, x);
1199
+ });
1200
+ });
1201
+ const v = async (O) => {
1202
+ if (O == null)
1203
+ return 0;
1204
+ if (_.isBlob(O))
1205
+ return O.size;
1206
+ if (_.isSpecCompliantForm(O))
1207
+ return (await new r(se.origin, {
1208
+ method: "POST",
1209
+ body: O
1210
+ }).arrayBuffer()).byteLength;
1211
+ if (_.isArrayBufferView(O) || _.isArrayBuffer(O))
1212
+ return O.byteLength;
1213
+ if (_.isURLSearchParams(O) && (O = O + ""), _.isString(O))
1214
+ return (await N(O)).byteLength;
1215
+ }, I = async (O, C) => {
1216
+ const x = _.toFiniteNumber(O.getContentLength());
1217
+ return x ?? v(C);
1218
+ };
1219
+ return async (O) => {
1220
+ let {
1221
+ url: C,
1222
+ method: x,
1223
+ data: q,
1224
+ signal: B,
1225
+ cancelToken: F,
1226
+ timeout: D,
1227
+ onDownloadProgress: M,
1228
+ onUploadProgress: k,
1229
+ responseType: P,
1230
+ headers: z,
1231
+ withCredentials: J = "same-origin",
1232
+ fetchOptions: T
1233
+ } = Yt(O), X = t || fetch;
1234
+ P = P ? (P + "").toLowerCase() : "text";
1235
+ let V = An([B, F && F.toAbortSignal()], D), G = null;
1236
+ const K = V && V.unsubscribe && (() => {
1237
+ V.unsubscribe();
1238
+ });
1239
+ let re;
1240
+ try {
1241
+ if (k && y && x !== "get" && x !== "head" && (re = await I(z, q)) !== 0) {
1242
+ let fe = new r(C, {
1243
+ method: "POST",
1244
+ body: q,
1245
+ duplex: "half"
1246
+ }), ce;
1247
+ if (_.isFormData(q) && (ce = fe.headers.get("content-type")) && z.setContentType(ce), fe.body) {
1248
+ const [Ee, R] = _t(
1249
+ re,
1250
+ Me(yt(k))
1251
+ );
1252
+ q = bt(fe.body, Ot, Ee, R);
1253
+ }
1254
+ }
1255
+ _.isString(J) || (J = J ? "include" : "omit");
1256
+ const te = l && "credentials" in r.prototype, ae = {
1257
+ ...T,
1258
+ signal: V,
1259
+ method: x.toUpperCase(),
1260
+ headers: z.normalize().toJSON(),
1261
+ body: q,
1262
+ duplex: "half",
1263
+ credentials: te ? J : void 0
1264
+ };
1265
+ G = l && new r(C, ae);
1266
+ let ne = await (l ? X(G, T) : X(C, ae));
1267
+ const ye = b && (P === "stream" || P === "response");
1268
+ if (b && (M || ye && K)) {
1269
+ const fe = {};
1270
+ ["status", "statusText", "headers"].forEach((Ae) => {
1271
+ fe[Ae] = ne[Ae];
1272
+ });
1273
+ const ce = _.toFiniteNumber(ne.headers.get("content-length")), [Ee, R] = M && _t(
1274
+ ce,
1275
+ Me(yt(M), !0)
1276
+ ) || [];
1277
+ ne = new n(
1278
+ bt(ne.body, Ot, Ee, () => {
1279
+ R && R(), K && K();
1280
+ }),
1281
+ fe
1282
+ );
1283
+ }
1284
+ P = P || "text";
1285
+ let me = await S[_.findKey(S, P) || "text"](ne, O);
1286
+ return !ye && K && K(), await new Promise((fe, ce) => {
1287
+ Kt(fe, ce, {
1288
+ data: me,
1289
+ headers: ue.from(ne.headers),
1290
+ status: ne.status,
1291
+ statusText: ne.statusText,
1292
+ config: O,
1293
+ request: G
1294
+ });
1295
+ });
1296
+ } catch (te) {
1297
+ throw K && K(), te && te.name === "TypeError" && /Load failed|fetch/i.test(te.message) ? Object.assign(
1298
+ new j("Network Error", j.ERR_NETWORK, O, G),
1299
+ {
1300
+ cause: te.cause || te
1301
+ }
1302
+ ) : j.from(te, te && te.code, O, G);
1303
+ }
1304
+ };
1305
+ }, Pn = /* @__PURE__ */ new Map(), Zt = (e) => {
1306
+ let t = e ? e.env : {};
1307
+ const { fetch: r, Request: n, Response: s } = t, l = [
1308
+ n,
1309
+ s,
1310
+ r
1311
+ ];
1312
+ let c = l.length, p = c, N, y, b = Pn;
1313
+ for (; p--; )
1314
+ N = l[p], y = b.get(N), y === void 0 && b.set(N, y = p ? /* @__PURE__ */ new Map() : Cn(t)), b = y;
1315
+ return y;
1316
+ };
1317
+ Zt();
1318
+ const st = {
1319
+ http: Vr,
1320
+ xhr: Sn,
1321
+ fetch: {
1322
+ get: Zt
1323
+ }
1324
+ };
1325
+ _.forEach(st, (e, t) => {
1326
+ if (e) {
1327
+ try {
1328
+ Object.defineProperty(e, "name", { value: t });
1329
+ } catch {
1330
+ }
1331
+ Object.defineProperty(e, "adapterName", { value: t });
1332
+ }
1333
+ });
1334
+ const xt = (e) => `- ${e}`, Bn = (e) => _.isFunction(e) || e === null || e === !1, er = {
1335
+ getAdapter: (e, t) => {
1336
+ e = _.isArray(e) ? e : [e];
1337
+ const { length: r } = e;
1338
+ let n, s;
1339
+ const l = {};
1340
+ for (let c = 0; c < r; c++) {
1341
+ n = e[c];
1342
+ let p;
1343
+ if (s = n, !Bn(n) && (s = st[(p = String(n)).toLowerCase()], s === void 0))
1344
+ throw new j(`Unknown adapter '${p}'`);
1345
+ if (s && (_.isFunction(s) || (s = s.get(t))))
1346
+ break;
1347
+ l[p || "#" + c] = s;
1348
+ }
1349
+ if (!s) {
1350
+ const c = Object.entries(l).map(
1351
+ ([N, y]) => `adapter ${N} ` + (y === !1 ? "is not supported by the environment" : "is not available in the build")
1352
+ );
1353
+ let p = r ? c.length > 1 ? `since :
1354
+ ` + c.map(xt).join(`
1355
+ `) : " " + xt(c[0]) : "as no adapter specified";
1356
+ throw new j(
1357
+ "There is no suitable adapter to dispatch the request " + p,
1358
+ "ERR_NOT_SUPPORT"
1359
+ );
1360
+ }
1361
+ return s;
1362
+ },
1363
+ adapters: st
1364
+ };
1365
+ function Ze(e) {
1366
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1367
+ throw new Ne(null, e);
1368
+ }
1369
+ function Nt(e) {
1370
+ return Ze(e), e.headers = ue.from(e.headers), e.data = Ye.call(
1371
+ e,
1372
+ e.transformRequest
1373
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), er.getAdapter(e.adapter || ke.adapter, e)(e).then(function(n) {
1374
+ return Ze(e), n.data = Ye.call(
1375
+ e,
1376
+ e.transformResponse,
1377
+ n
1378
+ ), n.headers = ue.from(n.headers), n;
1379
+ }, function(n) {
1380
+ return Xt(n) || (Ze(e), n && n.response && (n.response.data = Ye.call(
1381
+ e,
1382
+ e.transformResponse,
1383
+ n.response
1384
+ ), n.response.headers = ue.from(n.response.headers))), Promise.reject(n);
1385
+ });
1386
+ }
1387
+ const tr = "1.12.2", Ge = {};
1388
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1389
+ Ge[e] = function(n) {
1390
+ return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
1391
+ };
1392
+ });
1393
+ const Tt = {};
1394
+ Ge.transitional = function(t, r, n) {
1395
+ function s(l, c) {
1396
+ return "[Axios v" + tr + "] Transitional option '" + l + "'" + c + (n ? ". " + n : "");
1397
+ }
1398
+ return (l, c, p) => {
1399
+ if (t === !1)
1400
+ throw new j(
1401
+ s(c, " has been removed" + (r ? " in " + r : "")),
1402
+ j.ERR_DEPRECATED
1403
+ );
1404
+ return r && !Tt[c] && (Tt[c] = !0, console.warn(
1405
+ s(
1406
+ c,
1407
+ " has been deprecated since v" + r + " and will be removed in the near future"
1408
+ )
1409
+ )), t ? t(l, c, p) : !0;
1410
+ };
1411
+ };
1412
+ Ge.spelling = function(t) {
1413
+ return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
1414
+ };
1415
+ function vn(e, t, r) {
1416
+ if (typeof e != "object")
1417
+ throw new j("options must be an object", j.ERR_BAD_OPTION_VALUE);
1418
+ const n = Object.keys(e);
1419
+ let s = n.length;
1420
+ for (; s-- > 0; ) {
1421
+ const l = n[s], c = t[l];
1422
+ if (c) {
1423
+ const p = e[l], N = p === void 0 || c(p, l, e);
1424
+ if (N !== !0)
1425
+ throw new j("option " + l + " must be " + N, j.ERR_BAD_OPTION_VALUE);
1426
+ continue;
1427
+ }
1428
+ if (r !== !0)
1429
+ throw new j("Unknown option " + l, j.ERR_BAD_OPTION);
1430
+ }
1431
+ }
1432
+ const je = {
1433
+ assertOptions: vn,
1434
+ validators: Ge
1435
+ }, we = je.validators;
1436
+ let Oe = class {
1437
+ constructor(t) {
1438
+ this.defaults = t || {}, this.interceptors = {
1439
+ request: new gt(),
1440
+ response: new gt()
1441
+ };
1442
+ }
1443
+ /**
1444
+ * Dispatch a request
1445
+ *
1446
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1447
+ * @param {?Object} config
1448
+ *
1449
+ * @returns {Promise} The Promise to be fulfilled
1450
+ */
1451
+ async request(t, r) {
1452
+ try {
1453
+ return await this._request(t, r);
1454
+ } catch (n) {
1455
+ if (n instanceof Error) {
1456
+ let s = {};
1457
+ Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1458
+ const l = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1459
+ try {
1460
+ n.stack ? l && !String(n.stack).endsWith(l.replace(/^.+\n.+\n/, "")) && (n.stack += `
1461
+ ` + l) : n.stack = l;
1462
+ } catch {
1463
+ }
1464
+ }
1465
+ throw n;
1466
+ }
1467
+ }
1468
+ _request(t, r) {
1469
+ typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = Se(this.defaults, r);
1470
+ const { transitional: n, paramsSerializer: s, headers: l } = r;
1471
+ n !== void 0 && je.assertOptions(n, {
1472
+ silentJSONParsing: we.transitional(we.boolean),
1473
+ forcedJSONParsing: we.transitional(we.boolean),
1474
+ clarifyTimeoutError: we.transitional(we.boolean)
1475
+ }, !1), s != null && (_.isFunction(s) ? r.paramsSerializer = {
1476
+ serialize: s
1477
+ } : je.assertOptions(s, {
1478
+ encode: we.function,
1479
+ serialize: we.function
1480
+ }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), je.assertOptions(r, {
1481
+ baseUrl: we.spelling("baseURL"),
1482
+ withXsrfToken: we.spelling("withXSRFToken")
1483
+ }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1484
+ let c = l && _.merge(
1485
+ l.common,
1486
+ l[r.method]
1487
+ );
1488
+ l && _.forEach(
1489
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1490
+ (O) => {
1491
+ delete l[O];
1492
+ }
1493
+ ), r.headers = ue.concat(c, l);
1494
+ const p = [];
1495
+ let N = !0;
1496
+ this.interceptors.request.forEach(function(C) {
1497
+ typeof C.runWhen == "function" && C.runWhen(r) === !1 || (N = N && C.synchronous, p.unshift(C.fulfilled, C.rejected));
1498
+ });
1499
+ const y = [];
1500
+ this.interceptors.response.forEach(function(C) {
1501
+ y.push(C.fulfilled, C.rejected);
1502
+ });
1503
+ let b, S = 0, v;
1504
+ if (!N) {
1505
+ const O = [Nt.bind(this), void 0];
1506
+ for (O.unshift(...p), O.push(...y), v = O.length, b = Promise.resolve(r); S < v; )
1507
+ b = b.then(O[S++], O[S++]);
1508
+ return b;
1509
+ }
1510
+ v = p.length;
1511
+ let I = r;
1512
+ for (; S < v; ) {
1513
+ const O = p[S++], C = p[S++];
1514
+ try {
1515
+ I = O(I);
1516
+ } catch (x) {
1517
+ C.call(this, x);
1518
+ break;
1519
+ }
1520
+ }
1521
+ try {
1522
+ b = Nt.call(this, I);
1523
+ } catch (O) {
1524
+ return Promise.reject(O);
1525
+ }
1526
+ for (S = 0, v = y.length; S < v; )
1527
+ b = b.then(y[S++], y[S++]);
1528
+ return b;
1529
+ }
1530
+ getUri(t) {
1531
+ t = Se(this.defaults, t);
1532
+ const r = Qt(t.baseURL, t.url, t.allowAbsoluteUrls);
1533
+ return Vt(r, t.params, t.paramsSerializer);
1534
+ }
1535
+ };
1536
+ _.forEach(["delete", "get", "head", "options"], function(t) {
1537
+ Oe.prototype[t] = function(r, n) {
1538
+ return this.request(Se(n || {}, {
1539
+ method: t,
1540
+ url: r,
1541
+ data: (n || {}).data
1542
+ }));
1543
+ };
1544
+ });
1545
+ _.forEach(["post", "put", "patch"], function(t) {
1546
+ function r(n) {
1547
+ return function(l, c, p) {
1548
+ return this.request(Se(p || {}, {
1549
+ method: t,
1550
+ headers: n ? {
1551
+ "Content-Type": "multipart/form-data"
1552
+ } : {},
1553
+ url: l,
1554
+ data: c
1555
+ }));
1556
+ };
1557
+ }
1558
+ Oe.prototype[t] = r(), Oe.prototype[t + "Form"] = r(!0);
1559
+ });
1560
+ let Fn = class rr {
1561
+ constructor(t) {
1562
+ if (typeof t != "function")
1563
+ throw new TypeError("executor must be a function.");
1564
+ let r;
1565
+ this.promise = new Promise(function(l) {
1566
+ r = l;
1567
+ });
1568
+ const n = this;
1569
+ this.promise.then((s) => {
1570
+ if (!n._listeners) return;
1571
+ let l = n._listeners.length;
1572
+ for (; l-- > 0; )
1573
+ n._listeners[l](s);
1574
+ n._listeners = null;
1575
+ }), this.promise.then = (s) => {
1576
+ let l;
1577
+ const c = new Promise((p) => {
1578
+ n.subscribe(p), l = p;
1579
+ }).then(s);
1580
+ return c.cancel = function() {
1581
+ n.unsubscribe(l);
1582
+ }, c;
1583
+ }, t(function(l, c, p) {
1584
+ n.reason || (n.reason = new Ne(l, c, p), r(n.reason));
1585
+ });
1586
+ }
1587
+ /**
1588
+ * Throws a `CanceledError` if cancellation has been requested.
1589
+ */
1590
+ throwIfRequested() {
1591
+ if (this.reason)
1592
+ throw this.reason;
1593
+ }
1594
+ /**
1595
+ * Subscribe to the cancel signal
1596
+ */
1597
+ subscribe(t) {
1598
+ if (this.reason) {
1599
+ t(this.reason);
1600
+ return;
1601
+ }
1602
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1603
+ }
1604
+ /**
1605
+ * Unsubscribe from the cancel signal
1606
+ */
1607
+ unsubscribe(t) {
1608
+ if (!this._listeners)
1609
+ return;
1610
+ const r = this._listeners.indexOf(t);
1611
+ r !== -1 && this._listeners.splice(r, 1);
1612
+ }
1613
+ toAbortSignal() {
1614
+ const t = new AbortController(), r = (n) => {
1615
+ t.abort(n);
1616
+ };
1617
+ return this.subscribe(r), t.signal.unsubscribe = () => this.unsubscribe(r), t.signal;
1618
+ }
1619
+ /**
1620
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1621
+ * cancels the `CancelToken`.
1622
+ */
1623
+ static source() {
1624
+ let t;
1625
+ return {
1626
+ token: new rr(function(s) {
1627
+ t = s;
1628
+ }),
1629
+ cancel: t
1630
+ };
1631
+ }
1632
+ };
1633
+ function kn(e) {
1634
+ return function(r) {
1635
+ return e.apply(null, r);
1636
+ };
1637
+ }
1638
+ function Un(e) {
1639
+ return _.isObject(e) && e.isAxiosError === !0;
1640
+ }
1641
+ const ot = {
1642
+ Continue: 100,
1643
+ SwitchingProtocols: 101,
1644
+ Processing: 102,
1645
+ EarlyHints: 103,
1646
+ Ok: 200,
1647
+ Created: 201,
1648
+ Accepted: 202,
1649
+ NonAuthoritativeInformation: 203,
1650
+ NoContent: 204,
1651
+ ResetContent: 205,
1652
+ PartialContent: 206,
1653
+ MultiStatus: 207,
1654
+ AlreadyReported: 208,
1655
+ ImUsed: 226,
1656
+ MultipleChoices: 300,
1657
+ MovedPermanently: 301,
1658
+ Found: 302,
1659
+ SeeOther: 303,
1660
+ NotModified: 304,
1661
+ UseProxy: 305,
1662
+ Unused: 306,
1663
+ TemporaryRedirect: 307,
1664
+ PermanentRedirect: 308,
1665
+ BadRequest: 400,
1666
+ Unauthorized: 401,
1667
+ PaymentRequired: 402,
1668
+ Forbidden: 403,
1669
+ NotFound: 404,
1670
+ MethodNotAllowed: 405,
1671
+ NotAcceptable: 406,
1672
+ ProxyAuthenticationRequired: 407,
1673
+ RequestTimeout: 408,
1674
+ Conflict: 409,
1675
+ Gone: 410,
1676
+ LengthRequired: 411,
1677
+ PreconditionFailed: 412,
1678
+ PayloadTooLarge: 413,
1679
+ UriTooLong: 414,
1680
+ UnsupportedMediaType: 415,
1681
+ RangeNotSatisfiable: 416,
1682
+ ExpectationFailed: 417,
1683
+ ImATeapot: 418,
1684
+ MisdirectedRequest: 421,
1685
+ UnprocessableEntity: 422,
1686
+ Locked: 423,
1687
+ FailedDependency: 424,
1688
+ TooEarly: 425,
1689
+ UpgradeRequired: 426,
1690
+ PreconditionRequired: 428,
1691
+ TooManyRequests: 429,
1692
+ RequestHeaderFieldsTooLarge: 431,
1693
+ UnavailableForLegalReasons: 451,
1694
+ InternalServerError: 500,
1695
+ NotImplemented: 501,
1696
+ BadGateway: 502,
1697
+ ServiceUnavailable: 503,
1698
+ GatewayTimeout: 504,
1699
+ HttpVersionNotSupported: 505,
1700
+ VariantAlsoNegotiates: 506,
1701
+ InsufficientStorage: 507,
1702
+ LoopDetected: 508,
1703
+ NotExtended: 510,
1704
+ NetworkAuthenticationRequired: 511
1705
+ };
1706
+ Object.entries(ot).forEach(([e, t]) => {
1707
+ ot[t] = e;
1708
+ });
1709
+ function nr(e) {
1710
+ const t = new Oe(e), r = kt(Oe.prototype.request, t);
1711
+ return _.extend(r, Oe.prototype, t, { allOwnKeys: !0 }), _.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(s) {
1712
+ return nr(Se(e, s));
1713
+ }, r;
1714
+ }
1715
+ const Z = nr(ke);
1716
+ Z.Axios = Oe;
1717
+ Z.CanceledError = Ne;
1718
+ Z.CancelToken = Fn;
1719
+ Z.isCancel = Xt;
1720
+ Z.VERSION = tr;
1721
+ Z.toFormData = Ve;
1722
+ Z.AxiosError = j;
1723
+ Z.Cancel = Z.CanceledError;
1724
+ Z.all = function(t) {
1725
+ return Promise.all(t);
1726
+ };
1727
+ Z.spread = kn;
1728
+ Z.isAxiosError = Un;
1729
+ Z.mergeConfig = Se;
1730
+ Z.AxiosHeaders = ue;
1731
+ Z.formToJSON = (e) => Wt(_.isHTMLForm(e) ? new FormData(e) : e);
1732
+ Z.getAdapter = er.getAdapter;
1733
+ Z.HttpStatusCode = ot;
1734
+ Z.default = Z;
1735
+ const {
1736
+ Axios: Jn,
1737
+ AxiosError: Vn,
1738
+ CanceledError: Gn,
1739
+ isCancel: Wn,
1740
+ CancelToken: Xn,
1741
+ VERSION: Kn,
1742
+ all: Qn,
1743
+ Cancel: Yn,
1744
+ isAxiosError: Zn,
1745
+ spread: ei,
1746
+ toFormData: ti,
1747
+ AxiosHeaders: ri,
1748
+ HttpStatusCode: ni,
1749
+ formToJSON: ii,
1750
+ getAdapter: si,
1751
+ mergeConfig: oi
1752
+ } = Z;
1753
+ var Pe = { exports: {} }, et = { exports: {} }, qe = { exports: {} }, Ln = qe.exports, Ct;
1754
+ function ir() {
1755
+ return Ct || (Ct = 1, (function(e) {
1756
+ (function(t) {
1757
+ var r, n = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, s = Math.ceil, l = Math.floor, c = "[BigNumber Error] ", p = c + "Number primitive has more than 15 significant digits: ", N = 1e14, y = 14, b = 9007199254740991, S = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], v = 1e7, I = 1e9;
1758
+ function O(k) {
1759
+ var P, z, J, T = R.prototype = { constructor: R, toString: null, valueOf: null }, X = new R(1), V = 20, G = 4, K = -7, re = 21, te = -1e7, ae = 1e7, ne = !1, ye = 1, me = 0, fe = {
1760
+ prefix: "",
1761
+ groupSize: 3,
1762
+ secondaryGroupSize: 0,
1763
+ groupSeparator: ",",
1764
+ decimalSeparator: ".",
1765
+ fractionGroupSize: 0,
1766
+ fractionGroupSeparator: " ",
1767
+ // non-breaking space
1768
+ suffix: ""
1769
+ }, ce = "0123456789abcdefghijklmnopqrstuvwxyz", Ee = !0;
1770
+ function R(i, o) {
1771
+ var a, g, f, h, E, u, d, w, m = this;
1772
+ if (!(m instanceof R)) return new R(i, o);
1773
+ if (o == null) {
1774
+ if (i && i._isBigNumber === !0) {
1775
+ m.s = i.s, !i.c || i.e > ae ? m.c = m.e = null : i.e < te ? m.c = [m.e = 0] : (m.e = i.e, m.c = i.c.slice());
1776
+ return;
1777
+ }
1778
+ if ((u = typeof i == "number") && i * 0 == 0) {
1779
+ if (m.s = 1 / i < 0 ? (i = -i, -1) : 1, i === ~~i) {
1780
+ for (h = 0, E = i; E >= 10; E /= 10, h++) ;
1781
+ h > ae ? m.c = m.e = null : (m.e = h, m.c = [i]);
1782
+ return;
1783
+ }
1784
+ w = String(i);
1785
+ } else {
1786
+ if (!n.test(w = String(i))) return J(m, w, u);
1787
+ m.s = w.charCodeAt(0) == 45 ? (w = w.slice(1), -1) : 1;
1788
+ }
1789
+ (h = w.indexOf(".")) > -1 && (w = w.replace(".", "")), (E = w.search(/e/i)) > 0 ? (h < 0 && (h = E), h += +w.slice(E + 1), w = w.substring(0, E)) : h < 0 && (h = w.length);
1790
+ } else {
1791
+ if (B(o, 2, ce.length, "Base"), o == 10 && Ee)
1792
+ return m = new R(i), de(m, V + m.e + 1, G);
1793
+ if (w = String(i), u = typeof i == "number") {
1794
+ if (i * 0 != 0) return J(m, w, u, o);
1795
+ if (m.s = 1 / i < 0 ? (w = w.slice(1), -1) : 1, R.DEBUG && w.replace(/^0\.0*|\./, "").length > 15)
1796
+ throw Error(p + i);
1797
+ } else
1798
+ m.s = w.charCodeAt(0) === 45 ? (w = w.slice(1), -1) : 1;
1799
+ for (a = ce.slice(0, o), h = E = 0, d = w.length; E < d; E++)
1800
+ if (a.indexOf(g = w.charAt(E)) < 0) {
1801
+ if (g == ".") {
1802
+ if (E > h) {
1803
+ h = d;
1804
+ continue;
1805
+ }
1806
+ } else if (!f && (w == w.toUpperCase() && (w = w.toLowerCase()) || w == w.toLowerCase() && (w = w.toUpperCase()))) {
1807
+ f = !0, E = -1, h = 0;
1808
+ continue;
1809
+ }
1810
+ return J(m, String(i), u, o);
1811
+ }
1812
+ u = !1, w = z(w, o, 10, m.s), (h = w.indexOf(".")) > -1 ? w = w.replace(".", "") : h = w.length;
1813
+ }
1814
+ for (E = 0; w.charCodeAt(E) === 48; E++) ;
1815
+ for (d = w.length; w.charCodeAt(--d) === 48; ) ;
1816
+ if (w = w.slice(E, ++d)) {
1817
+ if (d -= E, u && R.DEBUG && d > 15 && (i > b || i !== l(i)))
1818
+ throw Error(p + m.s * i);
1819
+ if ((h = h - E - 1) > ae)
1820
+ m.c = m.e = null;
1821
+ else if (h < te)
1822
+ m.c = [m.e = 0];
1823
+ else {
1824
+ if (m.e = h, m.c = [], E = (h + 1) % y, h < 0 && (E += y), E < d) {
1825
+ for (E && m.c.push(+w.slice(0, E)), d -= y; E < d; )
1826
+ m.c.push(+w.slice(E, E += y));
1827
+ E = y - (w = w.slice(E)).length;
1828
+ } else
1829
+ E -= d;
1830
+ for (; E--; w += "0") ;
1831
+ m.c.push(+w);
1832
+ }
1833
+ } else
1834
+ m.c = [m.e = 0];
1835
+ }
1836
+ R.clone = O, R.ROUND_UP = 0, R.ROUND_DOWN = 1, R.ROUND_CEIL = 2, R.ROUND_FLOOR = 3, R.ROUND_HALF_UP = 4, R.ROUND_HALF_DOWN = 5, R.ROUND_HALF_EVEN = 6, R.ROUND_HALF_CEIL = 7, R.ROUND_HALF_FLOOR = 8, R.EUCLID = 9, R.config = R.set = function(i) {
1837
+ var o, a;
1838
+ if (i != null)
1839
+ if (typeof i == "object") {
1840
+ if (i.hasOwnProperty(o = "DECIMAL_PLACES") && (a = i[o], B(a, 0, I, o), V = a), i.hasOwnProperty(o = "ROUNDING_MODE") && (a = i[o], B(a, 0, 8, o), G = a), i.hasOwnProperty(o = "EXPONENTIAL_AT") && (a = i[o], a && a.pop ? (B(a[0], -I, 0, o), B(a[1], 0, I, o), K = a[0], re = a[1]) : (B(a, -I, I, o), K = -(re = a < 0 ? -a : a))), i.hasOwnProperty(o = "RANGE"))
1841
+ if (a = i[o], a && a.pop)
1842
+ B(a[0], -I, -1, o), B(a[1], 1, I, o), te = a[0], ae = a[1];
1843
+ else if (B(a, -I, I, o), a)
1844
+ te = -(ae = a < 0 ? -a : a);
1845
+ else
1846
+ throw Error(c + o + " cannot be zero: " + a);
1847
+ if (i.hasOwnProperty(o = "CRYPTO"))
1848
+ if (a = i[o], a === !!a)
1849
+ if (a)
1850
+ if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
1851
+ ne = a;
1852
+ else
1853
+ throw ne = !a, Error(c + "crypto unavailable");
1854
+ else
1855
+ ne = a;
1856
+ else
1857
+ throw Error(c + o + " not true or false: " + a);
1858
+ if (i.hasOwnProperty(o = "MODULO_MODE") && (a = i[o], B(a, 0, 9, o), ye = a), i.hasOwnProperty(o = "POW_PRECISION") && (a = i[o], B(a, 0, I, o), me = a), i.hasOwnProperty(o = "FORMAT"))
1859
+ if (a = i[o], typeof a == "object") fe = a;
1860
+ else throw Error(c + o + " not an object: " + a);
1861
+ if (i.hasOwnProperty(o = "ALPHABET"))
1862
+ if (a = i[o], typeof a == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(a))
1863
+ Ee = a.slice(0, 10) == "0123456789", ce = a;
1864
+ else
1865
+ throw Error(c + o + " invalid: " + a);
1866
+ } else
1867
+ throw Error(c + "Object expected: " + i);
1868
+ return {
1869
+ DECIMAL_PLACES: V,
1870
+ ROUNDING_MODE: G,
1871
+ EXPONENTIAL_AT: [K, re],
1872
+ RANGE: [te, ae],
1873
+ CRYPTO: ne,
1874
+ MODULO_MODE: ye,
1875
+ POW_PRECISION: me,
1876
+ FORMAT: fe,
1877
+ ALPHABET: ce
1878
+ };
1879
+ }, R.isBigNumber = function(i) {
1880
+ if (!i || i._isBigNumber !== !0) return !1;
1881
+ if (!R.DEBUG) return !0;
1882
+ var o, a, g = i.c, f = i.e, h = i.s;
1883
+ e: if ({}.toString.call(g) == "[object Array]") {
1884
+ if ((h === 1 || h === -1) && f >= -I && f <= I && f === l(f)) {
1885
+ if (g[0] === 0) {
1886
+ if (f === 0 && g.length === 1) return !0;
1887
+ break e;
1888
+ }
1889
+ if (o = (f + 1) % y, o < 1 && (o += y), String(g[0]).length == o) {
1890
+ for (o = 0; o < g.length; o++)
1891
+ if (a = g[o], a < 0 || a >= N || a !== l(a)) break e;
1892
+ if (a !== 0) return !0;
1893
+ }
1894
+ }
1895
+ } else if (g === null && f === null && (h === null || h === 1 || h === -1))
1896
+ return !0;
1897
+ throw Error(c + "Invalid BigNumber: " + i);
1898
+ }, R.maximum = R.max = function() {
1899
+ return dt(arguments, -1);
1900
+ }, R.minimum = R.min = function() {
1901
+ return dt(arguments, 1);
1902
+ }, R.random = (function() {
1903
+ var i = 9007199254740992, o = Math.random() * i & 2097151 ? function() {
1904
+ return l(Math.random() * i);
1905
+ } : function() {
1906
+ return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
1907
+ };
1908
+ return function(a) {
1909
+ var g, f, h, E, u, d = 0, w = [], m = new R(X);
1910
+ if (a == null ? a = V : B(a, 0, I), E = s(a / y), ne)
1911
+ if (crypto.getRandomValues) {
1912
+ for (g = crypto.getRandomValues(new Uint32Array(E *= 2)); d < E; )
1913
+ u = g[d] * 131072 + (g[d + 1] >>> 11), u >= 9e15 ? (f = crypto.getRandomValues(new Uint32Array(2)), g[d] = f[0], g[d + 1] = f[1]) : (w.push(u % 1e14), d += 2);
1914
+ d = E / 2;
1915
+ } else if (crypto.randomBytes) {
1916
+ for (g = crypto.randomBytes(E *= 7); d < E; )
1917
+ u = (g[d] & 31) * 281474976710656 + g[d + 1] * 1099511627776 + g[d + 2] * 4294967296 + g[d + 3] * 16777216 + (g[d + 4] << 16) + (g[d + 5] << 8) + g[d + 6], u >= 9e15 ? crypto.randomBytes(7).copy(g, d) : (w.push(u % 1e14), d += 7);
1918
+ d = E / 7;
1919
+ } else
1920
+ throw ne = !1, Error(c + "crypto unavailable");
1921
+ if (!ne)
1922
+ for (; d < E; )
1923
+ u = o(), u < 9e15 && (w[d++] = u % 1e14);
1924
+ for (E = w[--d], a %= y, E && a && (u = S[y - a], w[d] = l(E / u) * u); w[d] === 0; w.pop(), d--) ;
1925
+ if (d < 0)
1926
+ w = [h = 0];
1927
+ else {
1928
+ for (h = -1; w[0] === 0; w.splice(0, 1), h -= y) ;
1929
+ for (d = 1, u = w[0]; u >= 10; u /= 10, d++) ;
1930
+ d < y && (h -= y - d);
1931
+ }
1932
+ return m.e = h, m.c = w, m;
1933
+ };
1934
+ })(), R.sum = function() {
1935
+ for (var i = 1, o = arguments, a = new R(o[0]); i < o.length; ) a = a.plus(o[i++]);
1936
+ return a;
1937
+ }, z = /* @__PURE__ */ (function() {
1938
+ var i = "0123456789";
1939
+ function o(a, g, f, h) {
1940
+ for (var E, u = [0], d, w = 0, m = a.length; w < m; ) {
1941
+ for (d = u.length; d--; u[d] *= g) ;
1942
+ for (u[0] += h.indexOf(a.charAt(w++)), E = 0; E < u.length; E++)
1943
+ u[E] > f - 1 && (u[E + 1] == null && (u[E + 1] = 0), u[E + 1] += u[E] / f | 0, u[E] %= f);
1944
+ }
1945
+ return u.reverse();
1946
+ }
1947
+ return function(a, g, f, h, E) {
1948
+ var u, d, w, m, A, U, L, $, Q = a.indexOf("."), ee = V, H = G;
1949
+ for (Q >= 0 && (m = me, me = 0, a = a.replace(".", ""), $ = new R(g), U = $.pow(a.length - Q), me = m, $.c = o(
1950
+ M(x(U.c), U.e, "0"),
1951
+ 10,
1952
+ f,
1953
+ i
1954
+ ), $.e = $.c.length), L = o(a, g, f, E ? (u = ce, i) : (u = i, ce)), w = m = L.length; L[--m] == 0; L.pop()) ;
1955
+ if (!L[0]) return u.charAt(0);
1956
+ if (Q < 0 ? --w : (U.c = L, U.e = w, U.s = h, U = P(U, $, ee, H, f), L = U.c, A = U.r, w = U.e), d = w + ee + 1, Q = L[d], m = f / 2, A = A || d < 0 || L[d + 1] != null, A = H < 4 ? (Q != null || A) && (H == 0 || H == (U.s < 0 ? 3 : 2)) : Q > m || Q == m && (H == 4 || A || H == 6 && L[d - 1] & 1 || H == (U.s < 0 ? 8 : 7)), d < 1 || !L[0])
1957
+ a = A ? M(u.charAt(1), -ee, u.charAt(0)) : u.charAt(0);
1958
+ else {
1959
+ if (L.length = d, A)
1960
+ for (--f; ++L[--d] > f; )
1961
+ L[d] = 0, d || (++w, L = [1].concat(L));
1962
+ for (m = L.length; !L[--m]; ) ;
1963
+ for (Q = 0, a = ""; Q <= m; a += u.charAt(L[Q++])) ;
1964
+ a = M(a, w, u.charAt(0));
1965
+ }
1966
+ return a;
1967
+ };
1968
+ })(), P = /* @__PURE__ */ (function() {
1969
+ function i(g, f, h) {
1970
+ var E, u, d, w, m = 0, A = g.length, U = f % v, L = f / v | 0;
1971
+ for (g = g.slice(); A--; )
1972
+ d = g[A] % v, w = g[A] / v | 0, E = L * d + w * U, u = U * d + E % v * v + m, m = (u / h | 0) + (E / v | 0) + L * w, g[A] = u % h;
1973
+ return m && (g = [m].concat(g)), g;
1974
+ }
1975
+ function o(g, f, h, E) {
1976
+ var u, d;
1977
+ if (h != E)
1978
+ d = h > E ? 1 : -1;
1979
+ else
1980
+ for (u = d = 0; u < h; u++)
1981
+ if (g[u] != f[u]) {
1982
+ d = g[u] > f[u] ? 1 : -1;
1983
+ break;
1984
+ }
1985
+ return d;
1986
+ }
1987
+ function a(g, f, h, E) {
1988
+ for (var u = 0; h--; )
1989
+ g[h] -= u, u = g[h] < f[h] ? 1 : 0, g[h] = u * E + g[h] - f[h];
1990
+ for (; !g[0] && g.length > 1; g.splice(0, 1)) ;
1991
+ }
1992
+ return function(g, f, h, E, u) {
1993
+ var d, w, m, A, U, L, $, Q, ee, H, W, ie, Ue, Xe, Ke, ge, Te, pe = g.s == f.s ? 1 : -1, oe = g.c, Y = f.c;
1994
+ if (!oe || !oe[0] || !Y || !Y[0])
1995
+ return new R(
1996
+ // Return NaN if either NaN, or both Infinity or 0.
1997
+ !g.s || !f.s || (oe ? Y && oe[0] == Y[0] : !Y) ? NaN : (
1998
+ // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
1999
+ oe && oe[0] == 0 || !Y ? pe * 0 : pe / 0
2000
+ )
2001
+ );
2002
+ for (Q = new R(pe), ee = Q.c = [], w = g.e - f.e, pe = h + w + 1, u || (u = N, w = C(g.e / y) - C(f.e / y), pe = pe / y | 0), m = 0; Y[m] == (oe[m] || 0); m++) ;
2003
+ if (Y[m] > (oe[m] || 0) && w--, pe < 0)
2004
+ ee.push(1), A = !0;
2005
+ else {
2006
+ for (Xe = oe.length, ge = Y.length, m = 0, pe += 2, U = l(u / (Y[0] + 1)), U > 1 && (Y = i(Y, U, u), oe = i(oe, U, u), ge = Y.length, Xe = oe.length), Ue = ge, H = oe.slice(0, ge), W = H.length; W < ge; H[W++] = 0) ;
2007
+ Te = Y.slice(), Te = [0].concat(Te), Ke = Y[0], Y[1] >= u / 2 && Ke++;
2008
+ do {
2009
+ if (U = 0, d = o(Y, H, ge, W), d < 0) {
2010
+ if (ie = H[0], ge != W && (ie = ie * u + (H[1] || 0)), U = l(ie / Ke), U > 1)
2011
+ for (U >= u && (U = u - 1), L = i(Y, U, u), $ = L.length, W = H.length; o(L, H, $, W) == 1; )
2012
+ U--, a(L, ge < $ ? Te : Y, $, u), $ = L.length, d = 1;
2013
+ else
2014
+ U == 0 && (d = U = 1), L = Y.slice(), $ = L.length;
2015
+ if ($ < W && (L = [0].concat(L)), a(H, L, W, u), W = H.length, d == -1)
2016
+ for (; o(Y, H, ge, W) < 1; )
2017
+ U++, a(H, ge < W ? Te : Y, W, u), W = H.length;
2018
+ } else d === 0 && (U++, H = [0]);
2019
+ ee[m++] = U, H[0] ? H[W++] = oe[Ue] || 0 : (H = [oe[Ue]], W = 1);
2020
+ } while ((Ue++ < Xe || H[0] != null) && pe--);
2021
+ A = H[0] != null, ee[0] || ee.splice(0, 1);
2022
+ }
2023
+ if (u == N) {
2024
+ for (m = 1, pe = ee[0]; pe >= 10; pe /= 10, m++) ;
2025
+ de(Q, h + (Q.e = m + w * y - 1) + 1, E, A);
2026
+ } else
2027
+ Q.e = w, Q.r = +A;
2028
+ return Q;
2029
+ };
2030
+ })();
2031
+ function Ae(i, o, a, g) {
2032
+ var f, h, E, u, d;
2033
+ if (a == null ? a = G : B(a, 0, 8), !i.c) return i.toString();
2034
+ if (f = i.c[0], E = i.e, o == null)
2035
+ d = x(i.c), d = g == 1 || g == 2 && (E <= K || E >= re) ? D(d, E) : M(d, E, "0");
2036
+ else if (i = de(new R(i), o, a), h = i.e, d = x(i.c), u = d.length, g == 1 || g == 2 && (o <= h || h <= K)) {
2037
+ for (; u < o; d += "0", u++) ;
2038
+ d = D(d, h);
2039
+ } else if (o -= E + (g === 2 && h > E), d = M(d, h, "0"), h + 1 > u) {
2040
+ if (--o > 0) for (d += "."; o--; d += "0") ;
2041
+ } else if (o += h - u, o > 0)
2042
+ for (h + 1 == u && (d += "."); o--; d += "0") ;
2043
+ return i.s < 0 && f ? "-" + d : d;
2044
+ }
2045
+ function dt(i, o) {
2046
+ for (var a, g, f = 1, h = new R(i[0]); f < i.length; f++)
2047
+ g = new R(i[f]), (!g.s || (a = q(h, g)) === o || a === 0 && h.s === o) && (h = g);
2048
+ return h;
2049
+ }
2050
+ function We(i, o, a) {
2051
+ for (var g = 1, f = o.length; !o[--f]; o.pop()) ;
2052
+ for (f = o[0]; f >= 10; f /= 10, g++) ;
2053
+ return (a = g + a * y - 1) > ae ? i.c = i.e = null : a < te ? i.c = [i.e = 0] : (i.e = a, i.c = o), i;
2054
+ }
2055
+ J = /* @__PURE__ */ (function() {
2056
+ var i = /^(-?)0([xbo])(?=\w[\w.]*$)/i, o = /^([^.]+)\.$/, a = /^\.([^.]+)$/, g = /^-?(Infinity|NaN)$/, f = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
2057
+ return function(h, E, u, d) {
2058
+ var w, m = u ? E : E.replace(f, "");
2059
+ if (g.test(m))
2060
+ h.s = isNaN(m) ? null : m < 0 ? -1 : 1;
2061
+ else {
2062
+ if (!u && (m = m.replace(i, function(A, U, L) {
2063
+ return w = (L = L.toLowerCase()) == "x" ? 16 : L == "b" ? 2 : 8, !d || d == w ? U : A;
2064
+ }), d && (w = d, m = m.replace(o, "$1").replace(a, "0.$1")), E != m))
2065
+ return new R(m, w);
2066
+ if (R.DEBUG)
2067
+ throw Error(c + "Not a" + (d ? " base " + d : "") + " number: " + E);
2068
+ h.s = null;
2069
+ }
2070
+ h.c = h.e = null;
2071
+ };
2072
+ })();
2073
+ function de(i, o, a, g) {
2074
+ var f, h, E, u, d, w, m, A = i.c, U = S;
2075
+ if (A) {
2076
+ e: {
2077
+ for (f = 1, u = A[0]; u >= 10; u /= 10, f++) ;
2078
+ if (h = o - f, h < 0)
2079
+ h += y, E = o, d = A[w = 0], m = l(d / U[f - E - 1] % 10);
2080
+ else if (w = s((h + 1) / y), w >= A.length)
2081
+ if (g) {
2082
+ for (; A.length <= w; A.push(0)) ;
2083
+ d = m = 0, f = 1, h %= y, E = h - y + 1;
2084
+ } else
2085
+ break e;
2086
+ else {
2087
+ for (d = u = A[w], f = 1; u >= 10; u /= 10, f++) ;
2088
+ h %= y, E = h - y + f, m = E < 0 ? 0 : l(d / U[f - E - 1] % 10);
2089
+ }
2090
+ if (g = g || o < 0 || // Are there any non-zero digits after the rounding digit?
2091
+ // The expression n % pows10[d - j - 1] returns all digits of n to the right
2092
+ // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
2093
+ A[w + 1] != null || (E < 0 ? d : d % U[f - E - 1]), g = a < 4 ? (m || g) && (a == 0 || a == (i.s < 0 ? 3 : 2)) : m > 5 || m == 5 && (a == 4 || g || a == 6 && // Check whether the digit to the left of the rounding digit is odd.
2094
+ (h > 0 ? E > 0 ? d / U[f - E] : 0 : A[w - 1]) % 10 & 1 || a == (i.s < 0 ? 8 : 7)), o < 1 || !A[0])
2095
+ return A.length = 0, g ? (o -= i.e + 1, A[0] = U[(y - o % y) % y], i.e = -o || 0) : A[0] = i.e = 0, i;
2096
+ if (h == 0 ? (A.length = w, u = 1, w--) : (A.length = w + 1, u = U[y - h], A[w] = E > 0 ? l(d / U[f - E] % U[E]) * u : 0), g)
2097
+ for (; ; )
2098
+ if (w == 0) {
2099
+ for (h = 1, E = A[0]; E >= 10; E /= 10, h++) ;
2100
+ for (E = A[0] += u, u = 1; E >= 10; E /= 10, u++) ;
2101
+ h != u && (i.e++, A[0] == N && (A[0] = 1));
2102
+ break;
2103
+ } else {
2104
+ if (A[w] += u, A[w] != N) break;
2105
+ A[w--] = 0, u = 1;
2106
+ }
2107
+ for (h = A.length; A[--h] === 0; A.pop()) ;
2108
+ }
2109
+ i.e > ae ? i.c = i.e = null : i.e < te && (i.c = [i.e = 0]);
2110
+ }
2111
+ return i;
2112
+ }
2113
+ function _e(i) {
2114
+ var o, a = i.e;
2115
+ return a === null ? i.toString() : (o = x(i.c), o = a <= K || a >= re ? D(o, a) : M(o, a, "0"), i.s < 0 ? "-" + o : o);
2116
+ }
2117
+ return T.absoluteValue = T.abs = function() {
2118
+ var i = new R(this);
2119
+ return i.s < 0 && (i.s = 1), i;
2120
+ }, T.comparedTo = function(i, o) {
2121
+ return q(this, new R(i, o));
2122
+ }, T.decimalPlaces = T.dp = function(i, o) {
2123
+ var a, g, f, h = this;
2124
+ if (i != null)
2125
+ return B(i, 0, I), o == null ? o = G : B(o, 0, 8), de(new R(h), i + h.e + 1, o);
2126
+ if (!(a = h.c)) return null;
2127
+ if (g = ((f = a.length - 1) - C(this.e / y)) * y, f = a[f]) for (; f % 10 == 0; f /= 10, g--) ;
2128
+ return g < 0 && (g = 0), g;
2129
+ }, T.dividedBy = T.div = function(i, o) {
2130
+ return P(this, new R(i, o), V, G);
2131
+ }, T.dividedToIntegerBy = T.idiv = function(i, o) {
2132
+ return P(this, new R(i, o), 0, 1);
2133
+ }, T.exponentiatedBy = T.pow = function(i, o) {
2134
+ var a, g, f, h, E, u, d, w, m, A = this;
2135
+ if (i = new R(i), i.c && !i.isInteger())
2136
+ throw Error(c + "Exponent not an integer: " + _e(i));
2137
+ if (o != null && (o = new R(o)), u = i.e > 14, !A.c || !A.c[0] || A.c[0] == 1 && !A.e && A.c.length == 1 || !i.c || !i.c[0])
2138
+ return m = new R(Math.pow(+_e(A), u ? i.s * (2 - F(i)) : +_e(i))), o ? m.mod(o) : m;
2139
+ if (d = i.s < 0, o) {
2140
+ if (o.c ? !o.c[0] : !o.s) return new R(NaN);
2141
+ g = !d && A.isInteger() && o.isInteger(), g && (A = A.mod(o));
2142
+ } else {
2143
+ if (i.e > 9 && (A.e > 0 || A.e < -1 || (A.e == 0 ? A.c[0] > 1 || u && A.c[1] >= 24e7 : A.c[0] < 8e13 || u && A.c[0] <= 9999975e7)))
2144
+ return h = A.s < 0 && F(i) ? -0 : 0, A.e > -1 && (h = 1 / h), new R(d ? 1 / h : h);
2145
+ me && (h = s(me / y + 2));
2146
+ }
2147
+ for (u ? (a = new R(0.5), d && (i.s = 1), w = F(i)) : (f = Math.abs(+_e(i)), w = f % 2), m = new R(X); ; ) {
2148
+ if (w) {
2149
+ if (m = m.times(A), !m.c) break;
2150
+ h ? m.c.length > h && (m.c.length = h) : g && (m = m.mod(o));
2151
+ }
2152
+ if (f) {
2153
+ if (f = l(f / 2), f === 0) break;
2154
+ w = f % 2;
2155
+ } else if (i = i.times(a), de(i, i.e + 1, 1), i.e > 14)
2156
+ w = F(i);
2157
+ else {
2158
+ if (f = +_e(i), f === 0) break;
2159
+ w = f % 2;
2160
+ }
2161
+ A = A.times(A), h ? A.c && A.c.length > h && (A.c.length = h) : g && (A = A.mod(o));
2162
+ }
2163
+ return g ? m : (d && (m = X.div(m)), o ? m.mod(o) : h ? de(m, me, G, E) : m);
2164
+ }, T.integerValue = function(i) {
2165
+ var o = new R(this);
2166
+ return i == null ? i = G : B(i, 0, 8), de(o, o.e + 1, i);
2167
+ }, T.isEqualTo = T.eq = function(i, o) {
2168
+ return q(this, new R(i, o)) === 0;
2169
+ }, T.isFinite = function() {
2170
+ return !!this.c;
2171
+ }, T.isGreaterThan = T.gt = function(i, o) {
2172
+ return q(this, new R(i, o)) > 0;
2173
+ }, T.isGreaterThanOrEqualTo = T.gte = function(i, o) {
2174
+ return (o = q(this, new R(i, o))) === 1 || o === 0;
2175
+ }, T.isInteger = function() {
2176
+ return !!this.c && C(this.e / y) > this.c.length - 2;
2177
+ }, T.isLessThan = T.lt = function(i, o) {
2178
+ return q(this, new R(i, o)) < 0;
2179
+ }, T.isLessThanOrEqualTo = T.lte = function(i, o) {
2180
+ return (o = q(this, new R(i, o))) === -1 || o === 0;
2181
+ }, T.isNaN = function() {
2182
+ return !this.s;
2183
+ }, T.isNegative = function() {
2184
+ return this.s < 0;
2185
+ }, T.isPositive = function() {
2186
+ return this.s > 0;
2187
+ }, T.isZero = function() {
2188
+ return !!this.c && this.c[0] == 0;
2189
+ }, T.minus = function(i, o) {
2190
+ var a, g, f, h, E = this, u = E.s;
2191
+ if (i = new R(i, o), o = i.s, !u || !o) return new R(NaN);
2192
+ if (u != o)
2193
+ return i.s = -o, E.plus(i);
2194
+ var d = E.e / y, w = i.e / y, m = E.c, A = i.c;
2195
+ if (!d || !w) {
2196
+ if (!m || !A) return m ? (i.s = -o, i) : new R(A ? E : NaN);
2197
+ if (!m[0] || !A[0])
2198
+ return A[0] ? (i.s = -o, i) : new R(m[0] ? E : (
2199
+ // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
2200
+ G == 3 ? -0 : 0
2201
+ ));
2202
+ }
2203
+ if (d = C(d), w = C(w), m = m.slice(), u = d - w) {
2204
+ for ((h = u < 0) ? (u = -u, f = m) : (w = d, f = A), f.reverse(), o = u; o--; f.push(0)) ;
2205
+ f.reverse();
2206
+ } else
2207
+ for (g = (h = (u = m.length) < (o = A.length)) ? u : o, u = o = 0; o < g; o++)
2208
+ if (m[o] != A[o]) {
2209
+ h = m[o] < A[o];
2210
+ break;
2211
+ }
2212
+ if (h && (f = m, m = A, A = f, i.s = -i.s), o = (g = A.length) - (a = m.length), o > 0) for (; o--; m[a++] = 0) ;
2213
+ for (o = N - 1; g > u; ) {
2214
+ if (m[--g] < A[g]) {
2215
+ for (a = g; a && !m[--a]; m[a] = o) ;
2216
+ --m[a], m[g] += N;
2217
+ }
2218
+ m[g] -= A[g];
2219
+ }
2220
+ for (; m[0] == 0; m.splice(0, 1), --w) ;
2221
+ return m[0] ? We(i, m, w) : (i.s = G == 3 ? -1 : 1, i.c = [i.e = 0], i);
2222
+ }, T.modulo = T.mod = function(i, o) {
2223
+ var a, g, f = this;
2224
+ return i = new R(i, o), !f.c || !i.s || i.c && !i.c[0] ? new R(NaN) : !i.c || f.c && !f.c[0] ? new R(f) : (ye == 9 ? (g = i.s, i.s = 1, a = P(f, i, 0, 3), i.s = g, a.s *= g) : a = P(f, i, 0, ye), i = f.minus(a.times(i)), !i.c[0] && ye == 1 && (i.s = f.s), i);
2225
+ }, T.multipliedBy = T.times = function(i, o) {
2226
+ var a, g, f, h, E, u, d, w, m, A, U, L, $, Q, ee, H = this, W = H.c, ie = (i = new R(i, o)).c;
2227
+ if (!W || !ie || !W[0] || !ie[0])
2228
+ return !H.s || !i.s || W && !W[0] && !ie || ie && !ie[0] && !W ? i.c = i.e = i.s = null : (i.s *= H.s, !W || !ie ? i.c = i.e = null : (i.c = [0], i.e = 0)), i;
2229
+ for (g = C(H.e / y) + C(i.e / y), i.s *= H.s, d = W.length, A = ie.length, d < A && ($ = W, W = ie, ie = $, f = d, d = A, A = f), f = d + A, $ = []; f--; $.push(0)) ;
2230
+ for (Q = N, ee = v, f = A; --f >= 0; ) {
2231
+ for (a = 0, U = ie[f] % ee, L = ie[f] / ee | 0, E = d, h = f + E; h > f; )
2232
+ w = W[--E] % ee, m = W[E] / ee | 0, u = L * w + m * U, w = U * w + u % ee * ee + $[h] + a, a = (w / Q | 0) + (u / ee | 0) + L * m, $[h--] = w % Q;
2233
+ $[h] = a;
2234
+ }
2235
+ return a ? ++g : $.splice(0, 1), We(i, $, g);
2236
+ }, T.negated = function() {
2237
+ var i = new R(this);
2238
+ return i.s = -i.s || null, i;
2239
+ }, T.plus = function(i, o) {
2240
+ var a, g = this, f = g.s;
2241
+ if (i = new R(i, o), o = i.s, !f || !o) return new R(NaN);
2242
+ if (f != o)
2243
+ return i.s = -o, g.minus(i);
2244
+ var h = g.e / y, E = i.e / y, u = g.c, d = i.c;
2245
+ if (!h || !E) {
2246
+ if (!u || !d) return new R(f / 0);
2247
+ if (!u[0] || !d[0]) return d[0] ? i : new R(u[0] ? g : f * 0);
2248
+ }
2249
+ if (h = C(h), E = C(E), u = u.slice(), f = h - E) {
2250
+ for (f > 0 ? (E = h, a = d) : (f = -f, a = u), a.reverse(); f--; a.push(0)) ;
2251
+ a.reverse();
2252
+ }
2253
+ for (f = u.length, o = d.length, f - o < 0 && (a = d, d = u, u = a, o = f), f = 0; o; )
2254
+ f = (u[--o] = u[o] + d[o] + f) / N | 0, u[o] = N === u[o] ? 0 : u[o] % N;
2255
+ return f && (u = [f].concat(u), ++E), We(i, u, E);
2256
+ }, T.precision = T.sd = function(i, o) {
2257
+ var a, g, f, h = this;
2258
+ if (i != null && i !== !!i)
2259
+ return B(i, 1, I), o == null ? o = G : B(o, 0, 8), de(new R(h), i, o);
2260
+ if (!(a = h.c)) return null;
2261
+ if (f = a.length - 1, g = f * y + 1, f = a[f]) {
2262
+ for (; f % 10 == 0; f /= 10, g--) ;
2263
+ for (f = a[0]; f >= 10; f /= 10, g++) ;
2264
+ }
2265
+ return i && h.e + 1 > g && (g = h.e + 1), g;
2266
+ }, T.shiftedBy = function(i) {
2267
+ return B(i, -b, b), this.times("1e" + i);
2268
+ }, T.squareRoot = T.sqrt = function() {
2269
+ var i, o, a, g, f, h = this, E = h.c, u = h.s, d = h.e, w = V + 4, m = new R("0.5");
2270
+ if (u !== 1 || !E || !E[0])
2271
+ return new R(!u || u < 0 && (!E || E[0]) ? NaN : E ? h : 1 / 0);
2272
+ if (u = Math.sqrt(+_e(h)), u == 0 || u == 1 / 0 ? (o = x(E), (o.length + d) % 2 == 0 && (o += "0"), u = Math.sqrt(+o), d = C((d + 1) / 2) - (d < 0 || d % 2), u == 1 / 0 ? o = "5e" + d : (o = u.toExponential(), o = o.slice(0, o.indexOf("e") + 1) + d), a = new R(o)) : a = new R(u + ""), a.c[0]) {
2273
+ for (d = a.e, u = d + w, u < 3 && (u = 0); ; )
2274
+ if (f = a, a = m.times(f.plus(P(h, f, w, 1))), x(f.c).slice(0, u) === (o = x(a.c)).slice(0, u))
2275
+ if (a.e < d && --u, o = o.slice(u - 3, u + 1), o == "9999" || !g && o == "4999") {
2276
+ if (!g && (de(f, f.e + V + 2, 0), f.times(f).eq(h))) {
2277
+ a = f;
2278
+ break;
2279
+ }
2280
+ w += 4, u += 4, g = 1;
2281
+ } else {
2282
+ (!+o || !+o.slice(1) && o.charAt(0) == "5") && (de(a, a.e + V + 2, 1), i = !a.times(a).eq(h));
2283
+ break;
2284
+ }
2285
+ }
2286
+ return de(a, a.e + V + 1, G, i);
2287
+ }, T.toExponential = function(i, o) {
2288
+ return i != null && (B(i, 0, I), i++), Ae(this, i, o, 1);
2289
+ }, T.toFixed = function(i, o) {
2290
+ return i != null && (B(i, 0, I), i = i + this.e + 1), Ae(this, i, o);
2291
+ }, T.toFormat = function(i, o, a) {
2292
+ var g, f = this;
2293
+ if (a == null)
2294
+ i != null && o && typeof o == "object" ? (a = o, o = null) : i && typeof i == "object" ? (a = i, i = o = null) : a = fe;
2295
+ else if (typeof a != "object")
2296
+ throw Error(c + "Argument not an object: " + a);
2297
+ if (g = f.toFixed(i, o), f.c) {
2298
+ var h, E = g.split("."), u = +a.groupSize, d = +a.secondaryGroupSize, w = a.groupSeparator || "", m = E[0], A = E[1], U = f.s < 0, L = U ? m.slice(1) : m, $ = L.length;
2299
+ if (d && (h = u, u = d, d = h, $ -= h), u > 0 && $ > 0) {
2300
+ for (h = $ % u || u, m = L.substr(0, h); h < $; h += u) m += w + L.substr(h, u);
2301
+ d > 0 && (m += w + L.slice(h)), U && (m = "-" + m);
2302
+ }
2303
+ g = A ? m + (a.decimalSeparator || "") + ((d = +a.fractionGroupSize) ? A.replace(
2304
+ new RegExp("\\d{" + d + "}\\B", "g"),
2305
+ "$&" + (a.fractionGroupSeparator || "")
2306
+ ) : A) : m;
2307
+ }
2308
+ return (a.prefix || "") + g + (a.suffix || "");
2309
+ }, T.toFraction = function(i) {
2310
+ var o, a, g, f, h, E, u, d, w, m, A, U, L = this, $ = L.c;
2311
+ if (i != null && (u = new R(i), !u.isInteger() && (u.c || u.s !== 1) || u.lt(X)))
2312
+ throw Error(c + "Argument " + (u.isInteger() ? "out of range: " : "not an integer: ") + _e(u));
2313
+ if (!$) return new R(L);
2314
+ for (o = new R(X), w = a = new R(X), g = d = new R(X), U = x($), h = o.e = U.length - L.e - 1, o.c[0] = S[(E = h % y) < 0 ? y + E : E], i = !i || u.comparedTo(o) > 0 ? h > 0 ? o : w : u, E = ae, ae = 1 / 0, u = new R(U), d.c[0] = 0; m = P(u, o, 0, 1), f = a.plus(m.times(g)), f.comparedTo(i) != 1; )
2315
+ a = g, g = f, w = d.plus(m.times(f = w)), d = f, o = u.minus(m.times(f = o)), u = f;
2316
+ return f = P(i.minus(a), g, 0, 1), d = d.plus(f.times(w)), a = a.plus(f.times(g)), d.s = w.s = L.s, h = h * 2, A = P(w, g, h, G).minus(L).abs().comparedTo(
2317
+ P(d, a, h, G).minus(L).abs()
2318
+ ) < 1 ? [w, g] : [d, a], ae = E, A;
2319
+ }, T.toNumber = function() {
2320
+ return +_e(this);
2321
+ }, T.toPrecision = function(i, o) {
2322
+ return i != null && B(i, 1, I), Ae(this, i, o, 2);
2323
+ }, T.toString = function(i) {
2324
+ var o, a = this, g = a.s, f = a.e;
2325
+ return f === null ? g ? (o = "Infinity", g < 0 && (o = "-" + o)) : o = "NaN" : (i == null ? o = f <= K || f >= re ? D(x(a.c), f) : M(x(a.c), f, "0") : i === 10 && Ee ? (a = de(new R(a), V + f + 1, G), o = M(x(a.c), a.e, "0")) : (B(i, 2, ce.length, "Base"), o = z(M(x(a.c), f, "0"), 10, i, g, !0)), g < 0 && a.c[0] && (o = "-" + o)), o;
2326
+ }, T.valueOf = T.toJSON = function() {
2327
+ return _e(this);
2328
+ }, T._isBigNumber = !0, k != null && R.set(k), R;
2329
+ }
2330
+ function C(k) {
2331
+ var P = k | 0;
2332
+ return k > 0 || k === P ? P : P - 1;
2333
+ }
2334
+ function x(k) {
2335
+ for (var P, z, J = 1, T = k.length, X = k[0] + ""; J < T; ) {
2336
+ for (P = k[J++] + "", z = y - P.length; z--; P = "0" + P) ;
2337
+ X += P;
2338
+ }
2339
+ for (T = X.length; X.charCodeAt(--T) === 48; ) ;
2340
+ return X.slice(0, T + 1 || 1);
2341
+ }
2342
+ function q(k, P) {
2343
+ var z, J, T = k.c, X = P.c, V = k.s, G = P.s, K = k.e, re = P.e;
2344
+ if (!V || !G) return null;
2345
+ if (z = T && !T[0], J = X && !X[0], z || J) return z ? J ? 0 : -G : V;
2346
+ if (V != G) return V;
2347
+ if (z = V < 0, J = K == re, !T || !X) return J ? 0 : !T ^ z ? 1 : -1;
2348
+ if (!J) return K > re ^ z ? 1 : -1;
2349
+ for (G = (K = T.length) < (re = X.length) ? K : re, V = 0; V < G; V++) if (T[V] != X[V]) return T[V] > X[V] ^ z ? 1 : -1;
2350
+ return K == re ? 0 : K > re ^ z ? 1 : -1;
2351
+ }
2352
+ function B(k, P, z, J) {
2353
+ if (k < P || k > z || k !== l(k))
2354
+ throw Error(c + (J || "Argument") + (typeof k == "number" ? k < P || k > z ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(k));
2355
+ }
2356
+ function F(k) {
2357
+ var P = k.c.length - 1;
2358
+ return C(k.e / y) == P && k.c[P] % 2 != 0;
2359
+ }
2360
+ function D(k, P) {
2361
+ return (k.length > 1 ? k.charAt(0) + "." + k.slice(1) : k) + (P < 0 ? "e" : "e+") + P;
2362
+ }
2363
+ function M(k, P, z) {
2364
+ var J, T;
2365
+ if (P < 0) {
2366
+ for (T = z + "."; ++P; T += z) ;
2367
+ k = T + k;
2368
+ } else if (J = k.length, ++P > J) {
2369
+ for (T = z, P -= J; --P; T += z) ;
2370
+ k += T;
2371
+ } else P < J && (k = k.slice(0, P) + "." + k.slice(P));
2372
+ return k;
2373
+ }
2374
+ r = O(), r.default = r.BigNumber = r, e.exports ? e.exports = r : (t || (t = typeof self < "u" && self ? self : window), t.BigNumber = r);
2375
+ })(Ln);
2376
+ })(qe)), qe.exports;
2377
+ }
2378
+ var Pt;
2379
+ function Dn() {
2380
+ return Pt || (Pt = 1, (function(e) {
2381
+ var t = ir(), r = e.exports;
2382
+ (function() {
2383
+ var n = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, s, l, c = {
2384
+ // table of character substitutions
2385
+ "\b": "\\b",
2386
+ " ": "\\t",
2387
+ "\n": "\\n",
2388
+ "\f": "\\f",
2389
+ "\r": "\\r",
2390
+ '"': '\\"',
2391
+ "\\": "\\\\"
2392
+ }, p;
2393
+ function N(b) {
2394
+ return n.lastIndex = 0, n.test(b) ? '"' + b.replace(n, function(S) {
2395
+ var v = c[S];
2396
+ return typeof v == "string" ? v : "\\u" + ("0000" + S.charCodeAt(0).toString(16)).slice(-4);
2397
+ }) + '"' : '"' + b + '"';
2398
+ }
2399
+ function y(b, S) {
2400
+ var v, I, O, C, x = s, q, B = S[b], F = B != null && (B instanceof t || t.isBigNumber(B));
2401
+ switch (B && typeof B == "object" && typeof B.toJSON == "function" && (B = B.toJSON(b)), typeof p == "function" && (B = p.call(S, b, B)), typeof B) {
2402
+ case "string":
2403
+ return F ? B : N(B);
2404
+ case "number":
2405
+ return isFinite(B) ? String(B) : "null";
2406
+ case "boolean":
2407
+ case "null":
2408
+ case "bigint":
2409
+ return String(B);
2410
+ // If the type is 'object', we might be dealing with an object or an array or
2411
+ // null.
2412
+ case "object":
2413
+ if (!B)
2414
+ return "null";
2415
+ if (s += l, q = [], Object.prototype.toString.apply(B) === "[object Array]") {
2416
+ for (C = B.length, v = 0; v < C; v += 1)
2417
+ q[v] = y(v, B) || "null";
2418
+ return O = q.length === 0 ? "[]" : s ? `[
2419
+ ` + s + q.join(`,
2420
+ ` + s) + `
2421
+ ` + x + "]" : "[" + q.join(",") + "]", s = x, O;
2422
+ }
2423
+ if (p && typeof p == "object")
2424
+ for (C = p.length, v = 0; v < C; v += 1)
2425
+ typeof p[v] == "string" && (I = p[v], O = y(I, B), O && q.push(N(I) + (s ? ": " : ":") + O));
2426
+ else
2427
+ Object.keys(B).forEach(function(D) {
2428
+ var M = y(D, B);
2429
+ M && q.push(N(D) + (s ? ": " : ":") + M);
2430
+ });
2431
+ return O = q.length === 0 ? "{}" : s ? `{
2432
+ ` + s + q.join(`,
2433
+ ` + s) + `
2434
+ ` + x + "}" : "{" + q.join(",") + "}", s = x, O;
2435
+ }
2436
+ }
2437
+ typeof r.stringify != "function" && (r.stringify = function(b, S, v) {
2438
+ var I;
2439
+ if (s = "", l = "", typeof v == "number")
2440
+ for (I = 0; I < v; I += 1)
2441
+ l += " ";
2442
+ else typeof v == "string" && (l = v);
2443
+ if (p = S, S && typeof S != "function" && (typeof S != "object" || typeof S.length != "number"))
2444
+ throw new Error("JSON.stringify");
2445
+ return y("", { "": b });
2446
+ });
2447
+ })();
2448
+ })(et)), et.exports;
2449
+ }
2450
+ var tt, Bt;
2451
+ function In() {
2452
+ if (Bt) return tt;
2453
+ Bt = 1;
2454
+ var e = null;
2455
+ const t = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/, r = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;
2456
+ var n = function(s) {
2457
+ var l = {
2458
+ strict: !1,
2459
+ // not being strict means do not generate syntax errors for "duplicate key"
2460
+ storeAsString: !1,
2461
+ // toggles whether the values should be stored as BigNumber (default) or a string
2462
+ alwaysParseAsBig: !1,
2463
+ // toggles whether all numbers should be Big
2464
+ useNativeBigInt: !1,
2465
+ // toggles whether to use native BigInt instead of bignumber.js
2466
+ protoAction: "error",
2467
+ constructorAction: "error"
2468
+ };
2469
+ if (s != null) {
2470
+ if (s.strict === !0 && (l.strict = !0), s.storeAsString === !0 && (l.storeAsString = !0), l.alwaysParseAsBig = s.alwaysParseAsBig === !0 ? s.alwaysParseAsBig : !1, l.useNativeBigInt = s.useNativeBigInt === !0 ? s.useNativeBigInt : !1, typeof s.constructorAction < "u")
2471
+ if (s.constructorAction === "error" || s.constructorAction === "ignore" || s.constructorAction === "preserve")
2472
+ l.constructorAction = s.constructorAction;
2473
+ else
2474
+ throw new Error(
2475
+ `Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${s.constructorAction}`
2476
+ );
2477
+ if (typeof s.protoAction < "u")
2478
+ if (s.protoAction === "error" || s.protoAction === "ignore" || s.protoAction === "preserve")
2479
+ l.protoAction = s.protoAction;
2480
+ else
2481
+ throw new Error(
2482
+ `Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${s.protoAction}`
2483
+ );
2484
+ }
2485
+ var c, p, N = {
2486
+ '"': '"',
2487
+ "\\": "\\",
2488
+ "/": "/",
2489
+ b: "\b",
2490
+ f: "\f",
2491
+ n: `
2492
+ `,
2493
+ r: "\r",
2494
+ t: " "
2495
+ }, y, b = function(F) {
2496
+ throw {
2497
+ name: "SyntaxError",
2498
+ message: F,
2499
+ at: c,
2500
+ text: y
2501
+ };
2502
+ }, S = function(F) {
2503
+ return F && F !== p && b("Expected '" + F + "' instead of '" + p + "'"), p = y.charAt(c), c += 1, p;
2504
+ }, v = function() {
2505
+ var F, D = "";
2506
+ for (p === "-" && (D = "-", S("-")); p >= "0" && p <= "9"; )
2507
+ D += p, S();
2508
+ if (p === ".")
2509
+ for (D += "."; S() && p >= "0" && p <= "9"; )
2510
+ D += p;
2511
+ if (p === "e" || p === "E")
2512
+ for (D += p, S(), (p === "-" || p === "+") && (D += p, S()); p >= "0" && p <= "9"; )
2513
+ D += p, S();
2514
+ if (F = +D, !isFinite(F))
2515
+ b("Bad number");
2516
+ else
2517
+ return e == null && (e = ir()), D.length > 15 ? l.storeAsString ? D : l.useNativeBigInt ? BigInt(D) : new e(D) : l.alwaysParseAsBig ? l.useNativeBigInt ? BigInt(F) : new e(F) : F;
2518
+ }, I = function() {
2519
+ var F, D, M = "", k;
2520
+ if (p === '"')
2521
+ for (var P = c; S(); ) {
2522
+ if (p === '"')
2523
+ return c - 1 > P && (M += y.substring(P, c - 1)), S(), M;
2524
+ if (p === "\\") {
2525
+ if (c - 1 > P && (M += y.substring(P, c - 1)), S(), p === "u") {
2526
+ for (k = 0, D = 0; D < 4 && (F = parseInt(S(), 16), !!isFinite(F)); D += 1)
2527
+ k = k * 16 + F;
2528
+ M += String.fromCharCode(k);
2529
+ } else if (typeof N[p] == "string")
2530
+ M += N[p];
2531
+ else
2532
+ break;
2533
+ P = c;
2534
+ }
2535
+ }
2536
+ b("Bad string");
2537
+ }, O = function() {
2538
+ for (; p && p <= " "; )
2539
+ S();
2540
+ }, C = function() {
2541
+ switch (p) {
2542
+ case "t":
2543
+ return S("t"), S("r"), S("u"), S("e"), !0;
2544
+ case "f":
2545
+ return S("f"), S("a"), S("l"), S("s"), S("e"), !1;
2546
+ case "n":
2547
+ return S("n"), S("u"), S("l"), S("l"), null;
2548
+ }
2549
+ b("Unexpected '" + p + "'");
2550
+ }, x, q = function() {
2551
+ var F = [];
2552
+ if (p === "[") {
2553
+ if (S("["), O(), p === "]")
2554
+ return S("]"), F;
2555
+ for (; p; ) {
2556
+ if (F.push(x()), O(), p === "]")
2557
+ return S("]"), F;
2558
+ S(","), O();
2559
+ }
2560
+ }
2561
+ b("Bad array");
2562
+ }, B = function() {
2563
+ var F, D = /* @__PURE__ */ Object.create(null);
2564
+ if (p === "{") {
2565
+ if (S("{"), O(), p === "}")
2566
+ return S("}"), D;
2567
+ for (; p; ) {
2568
+ if (F = I(), O(), S(":"), l.strict === !0 && Object.hasOwnProperty.call(D, F) && b('Duplicate key "' + F + '"'), t.test(F) === !0 ? l.protoAction === "error" ? b("Object contains forbidden prototype property") : l.protoAction === "ignore" ? x() : D[F] = x() : r.test(F) === !0 ? l.constructorAction === "error" ? b("Object contains forbidden constructor property") : l.constructorAction === "ignore" ? x() : D[F] = x() : D[F] = x(), O(), p === "}")
2569
+ return S("}"), D;
2570
+ S(","), O();
2571
+ }
2572
+ }
2573
+ b("Bad object");
2574
+ };
2575
+ return x = function() {
2576
+ switch (O(), p) {
2577
+ case "{":
2578
+ return B();
2579
+ case "[":
2580
+ return q();
2581
+ case '"':
2582
+ return I();
2583
+ case "-":
2584
+ return v();
2585
+ default:
2586
+ return p >= "0" && p <= "9" ? v() : C();
2587
+ }
2588
+ }, function(F, D) {
2589
+ var M;
2590
+ return y = F + "", c = 0, p = " ", M = x(), O(), p && b("Syntax error"), typeof D == "function" ? (function k(P, z) {
2591
+ var J, T = P[z];
2592
+ return T && typeof T == "object" && Object.keys(T).forEach(function(X) {
2593
+ J = k(T, X), J !== void 0 ? T[X] = J : delete T[X];
2594
+ }), D.call(P, z, T);
2595
+ })({ "": M }, "") : M;
2596
+ };
2597
+ };
2598
+ return tt = n, tt;
2599
+ }
2600
+ var vt;
2601
+ function jn() {
2602
+ if (vt) return Pe.exports;
2603
+ vt = 1;
2604
+ var e = Dn().stringify, t = In();
2605
+ return Pe.exports = function(r) {
2606
+ return {
2607
+ parse: t(r),
2608
+ stringify: e
2609
+ };
2610
+ }, Pe.exports.parse = t(), Pe.exports.stringify = e, Pe.exports;
2611
+ }
2612
+ var qn = jn();
2613
+ const Ft = /* @__PURE__ */ sr(qn), He = or();
2614
+ let ut = Z.create({
2615
+ transformResponse: [(e) => {
2616
+ try {
2617
+ return Ft.parse(e);
2618
+ } catch (t) {
2619
+ throw console.error("JSON parse error:", t), t;
2620
+ }
2621
+ }],
2622
+ transformRequest: [(e) => Ft.stringify(e)]
2623
+ // transformRequest: [(data) => {
2624
+ // return JSON.stringify(data, (_, value) => {
2625
+ // if (typeof value === 'bigint') {
2626
+ // return value.toString(); // 自动转换 BigInt
2627
+ // }
2628
+ // return value;
2629
+ // });
2630
+ // }],
2631
+ });
2632
+ ut.interceptors.request.use((e) => (console.log(He.token.value), e.headers.authorization = "Bearer " + He.token.value, e));
2633
+ ut.interceptors.response.use((e) => (e.data.error_code == 100 && He.saveToken("none"), typeof e.headers.authorization < "u" && He.saveToken(e.headers.authorization), e), (e) => Promise.reject(e));
2634
+ class ft {
2635
+ error_code;
2636
+ message;
2637
+ data;
2638
+ constructor() {
2639
+ this.error_code = 1, this.message = "未知错误", this.data = {};
2640
+ }
2641
+ get IsSuccess() {
2642
+ return this.error_code == 0;
2643
+ }
2644
+ static fromObject(t) {
2645
+ const r = new ft();
2646
+ return Object.assign(r, t), r;
2647
+ }
2648
+ }
2649
+ const Mn = `${window.location.protocol}//${window.location.host}/`;
2650
+ class ai {
2651
+ //系统基础接口
2652
+ static api_host = Mn;
2653
+ //'http://localhost:1788/' //1788
2654
+ //当前用户
2655
+ static url_login = "api/login";
2656
+ static url_usercenter = "api/user_center";
2657
+ static url_change_password = "api/change_password";
2658
+ static url_user_permission = "api/user_permission";
2659
+ //用户管理
2660
+ static url_user_save = "api/user_save";
2661
+ static url_user_list = "api/user_list";
2662
+ static url_user_export = "api/user_export";
2663
+ static url_user_del = "api/user_del";
2664
+ static url_user_detail = "api/user_detail";
2665
+ static url_user_change_pwd = "api/user_change_pwd";
2666
+ //组织架构
2667
+ static url_department_save = "api/department_save";
2668
+ static url_department_list = "api/department_list";
2669
+ static url_department_del = "api/department_del";
2670
+ static url_department_detail = "api/department_detail";
2671
+ //职务
2672
+ static url_position_list = "api/position_list";
2673
+ static url_position_detail = "api/position_detail";
2674
+ static url_position_save = "api/position_save";
2675
+ static url_position_del = "api/position_del";
2676
+ //系统日志
2677
+ static url_syslog_list = "api/syslog_list";
2678
+ static url_syslog_config_detail = "api/syslog_config_detail";
2679
+ static url_syslog_config_save = "api/syslog_config_save";
2680
+ //备份
2681
+ static url_backup_start = "api/backup_start";
2682
+ static url_backup_list = "api/backup_list";
2683
+ static url_backup_del = "api/backup_del";
2684
+ static url_backup_config_get = "api/backup_config_get";
2685
+ static url_backup_config_save = "api/backup_config_save";
2686
+ //权限
2687
+ static url_syspermission_list = "api/permission_list";
2688
+ static url_sysrole_list = "api/role_list";
2689
+ static url_sysrole_del = "api/role_del";
2690
+ static url_sysrole_save = "api/role_save";
2691
+ static url_sysrole_detail = "api/role_detail";
2692
+ //导出
2693
+ static url_export_detail = "api/export_detail";
2694
+ static url_export_file = "api/export_file";
2695
+ // 系统
2696
+ static url_system_publish = "api/system_publish";
2697
+ //应用级接口==========================
2698
+ //桌面
2699
+ static url_desktop = "api/desktop";
2700
+ static url_desktop_config_detail = "api/desktop_config_detail";
2701
+ static url_desktop_config_save = "api/desktop_config_save";
2702
+ //数据看板
2703
+ static url_chart_weekly = "api/chart_weekly";
2704
+ static url_chart_all = "api/chart_all";
2705
+ static url_chart_last = "api/chart_last";
2706
+ //事件
2707
+ static url_event_list = "api/event_list";
2708
+ static url_event_detail = "api/event_detail";
2709
+ static url_event_file = "api/event_file";
2710
+ static url_event_dispose = "api/event_dispose";
2711
+ //规则
2712
+ static url_rule_list = "api/rule_list";
2713
+ static url_rule_save = "api/rule_save";
2714
+ static url_rule_del = "api/rule_del";
2715
+ static url_rule_detail = "api/rule_detail";
2716
+ //时间模板
2717
+ static url_time_list = "api/time_list";
2718
+ static url_time_save = "api/time_save";
2719
+ static url_time_del = "api/time_del";
2720
+ static url_time_detail = "api/time_detail";
2721
+ //区域
2722
+ static url_area_save = "api/area_save";
2723
+ static url_area_list = "api/area_list";
2724
+ static url_area_del = "api/area_del";
2725
+ static url_area_detail = "api/area_detail";
2726
+ //设备
2727
+ static url_equipment_save = "api/equipment_save";
2728
+ static url_equipment_list = "api/equipment_list";
2729
+ static url_equipment_detail = "api/equipment_detail";
2730
+ static url_equipment_del = "api/equipment_del";
2731
+ //通道画面
2732
+ static url_channel_save = "api/channel_save";
2733
+ static url_channel_list = "api/channel_list";
2734
+ static url_channel_detail = "api/channel_detail";
2735
+ static url_channel_del = "api/channel_del";
2736
+ static GetFullApiUrl(t) {
2737
+ return this.api_host + t;
2738
+ }
2739
+ static async Post(t, r) {
2740
+ try {
2741
+ let n = await ut.post(this.api_host + t, r);
2742
+ return ft.fromObject(n.data);
2743
+ } catch (n) {
2744
+ return console.log(n), Promise.reject("访问服务器失败");
2745
+ }
2746
+ }
2747
+ // http_axios.interceptors.response.use(res=>{
2748
+ // return res
2749
+ // },err=>{
2750
+ // return Promise.reject(err)
2751
+ // })
2752
+ }
2753
+ export {
2754
+ ai as H
2755
+ };