@das-fed/utils 7.1.0-dev.30 → 7.1.0-dev.31

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.
@@ -1,27 +1,28 @@
1
- import { getConfig as nt } from "@das-fed/utils/config";
2
- function _e(e, t) {
1
+ import { getConfig as Fe } from "@das-fed/utils/config";
2
+ import { clearPlatformAuthStorage as ke, getAccessToken as ut } from "@das-fed/utils/token-tools";
3
+ function Be(e, t) {
3
4
  return function() {
4
5
  return e.apply(t, arguments);
5
6
  };
6
7
  }
7
- const { toString: rt } = Object.prototype, { getPrototypeOf: de } = Object, { iterator: G, toStringTag: Ue } = Symbol, Q = /* @__PURE__ */ ((e) => (t) => {
8
- const n = rt.call(t);
8
+ const { toString: lt } = Object.prototype, { getPrototypeOf: pe } = Object, { iterator: X, toStringTag: De } = Symbol, Q = /* @__PURE__ */ ((e) => (t) => {
9
+ const n = lt.call(t);
9
10
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => Q(t) === e), Z = (e) => (t) => typeof t === e, { isArray: B } = Array, I = Z("undefined");
11
+ })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => Q(t) === e), Y = (e) => (t) => typeof t === e, { isArray: B } = Array, I = Y("undefined");
11
12
  function q(e) {
12
13
  return e !== null && !I(e) && e.constructor !== null && !I(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13
14
  }
14
- const Le = x("ArrayBuffer");
15
- function st(e) {
15
+ const je = x("ArrayBuffer");
16
+ function ft(e) {
16
17
  let t;
17
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Le(e.buffer), t;
18
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && je(e.buffer), t;
18
19
  }
19
- const ot = Z("string"), A = Z("function"), Fe = Z("number"), M = (e) => e !== null && typeof e == "object", it = (e) => e === !0 || e === !1, J = (e) => {
20
+ const dt = Y("string"), A = Y("function"), Ie = Y("number"), M = (e) => e !== null && typeof e == "object", pt = (e) => e === !0 || e === !1, J = (e) => {
20
21
  if (Q(e) !== "object")
21
22
  return !1;
22
- const t = de(e);
23
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ue in e) && !(G in e);
24
- }, at = (e) => {
23
+ const t = pe(e);
24
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(De in e) && !(X in e);
25
+ }, ht = (e) => {
25
26
  if (!M(e) || q(e))
26
27
  return !1;
27
28
  try {
@@ -29,11 +30,11 @@ const ot = Z("string"), A = Z("function"), Fe = Z("number"), M = (e) => e !== nu
29
30
  } catch {
30
31
  return !1;
31
32
  }
32
- }, ct = x("Date"), ut = x("File"), lt = x("Blob"), ft = x("FileList"), dt = (e) => M(e) && A(e.pipe), pt = (e) => {
33
+ }, mt = x("Date"), yt = x("File"), wt = x("Blob"), gt = x("FileList"), bt = (e) => M(e) && A(e.pipe), Et = (e) => {
33
34
  let t;
34
35
  return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = Q(e)) === "formdata" || // detect form-data instance
35
36
  t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
36
- }, ht = x("URLSearchParams"), [mt, yt, wt, bt] = ["ReadableStream", "Request", "Response", "Headers"].map(x), gt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
+ }, Rt = x("URLSearchParams"), [St, Ot, Tt, At] = ["ReadableStream", "Request", "Response", "Headers"].map(x), Ct = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
38
  function H(e, t, { allOwnKeys: n = !1 } = {}) {
38
39
  if (e === null || typeof e > "u")
39
40
  return;
@@ -50,7 +51,7 @@ function H(e, t, { allOwnKeys: n = !1 } = {}) {
50
51
  c = i[r], t.call(null, e[c], c, e);
51
52
  }
52
53
  }
53
- function ke(e, t) {
54
+ function qe(e, t) {
54
55
  if (q(e))
55
56
  return null;
56
57
  t = t.toLowerCase();
@@ -61,71 +62,71 @@ function ke(e, t) {
61
62
  return s;
62
63
  return null;
63
64
  }
64
- const L = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Be = (e) => !I(e) && e !== L;
65
- function oe() {
66
- const { caseless: e } = Be(this) && this || {}, t = {}, n = (r, s) => {
67
- const i = e && ke(t, s) || s;
68
- J(t[i]) && J(r) ? t[i] = oe(t[i], r) : J(r) ? t[i] = oe({}, r) : B(r) ? t[i] = r.slice() : t[i] = r;
65
+ const N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Me = (e) => !I(e) && e !== N;
66
+ function ie() {
67
+ const { caseless: e } = Me(this) && this || {}, t = {}, n = (r, s) => {
68
+ const i = e && qe(t, s) || s;
69
+ J(t[i]) && J(r) ? t[i] = ie(t[i], r) : J(r) ? t[i] = ie({}, r) : B(r) ? t[i] = r.slice() : t[i] = r;
69
70
  };
70
71
  for (let r = 0, s = arguments.length; r < s; r++)
71
72
  arguments[r] && H(arguments[r], n);
72
73
  return t;
73
74
  }
74
- const Et = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, i) => {
75
- n && A(s) ? e[i] = _e(s, n) : e[i] = s;
76
- }, { allOwnKeys: r }), e), Rt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), St = (e, t, n, r) => {
75
+ const xt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, i) => {
76
+ n && A(s) ? e[i] = Be(s, n) : e[i] = s;
77
+ }, { allOwnKeys: r }), e), _t = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ut = (e, t, n, r) => {
77
78
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
78
79
  value: t.prototype
79
80
  }), n && Object.assign(e.prototype, n);
80
- }, Ot = (e, t, n, r) => {
81
+ }, Pt = (e, t, n, r) => {
81
82
  let s, i, o;
82
83
  const c = {};
83
84
  if (t = t || {}, e == null) return t;
84
85
  do {
85
86
  for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
86
87
  o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
87
- e = n !== !1 && de(e);
88
+ e = n !== !1 && pe(e);
88
89
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
89
90
  return t;
90
- }, Tt = (e, t, n) => {
91
+ }, Lt = (e, t, n) => {
91
92
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
92
93
  const r = e.indexOf(t, n);
93
94
  return r !== -1 && r === n;
94
- }, At = (e) => {
95
+ }, Nt = (e) => {
95
96
  if (!e) return null;
96
97
  if (B(e)) return e;
97
98
  let t = e.length;
98
- if (!Fe(t)) return null;
99
+ if (!Ie(t)) return null;
99
100
  const n = new Array(t);
100
101
  for (; t-- > 0; )
101
102
  n[t] = e[t];
102
103
  return n;
103
- }, Ct = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && de(Uint8Array)), xt = (e, t) => {
104
- const r = (e && e[G]).call(e);
104
+ }, Ft = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && pe(Uint8Array)), kt = (e, t) => {
105
+ const r = (e && e[X]).call(e);
105
106
  let s;
106
107
  for (; (s = r.next()) && !s.done; ) {
107
108
  const i = s.value;
108
109
  t.call(e, i[0], i[1]);
109
110
  }
110
- }, Nt = (e, t) => {
111
+ }, Bt = (e, t) => {
111
112
  let n;
112
113
  const r = [];
113
114
  for (; (n = e.exec(t)) !== null; )
114
115
  r.push(n);
115
116
  return r;
116
- }, Pt = x("HTMLFormElement"), _t = (e) => e.toLowerCase().replace(
117
+ }, Dt = x("HTMLFormElement"), jt = (e) => e.toLowerCase().replace(
117
118
  /[-_\s]([a-z\d])(\w*)/g,
118
119
  function(n, r, s) {
119
120
  return r.toUpperCase() + s;
120
121
  }
121
- ), ye = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ut = x("RegExp"), De = (e, t) => {
122
+ ), be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), It = x("RegExp"), He = (e, t) => {
122
123
  const n = Object.getOwnPropertyDescriptors(e), r = {};
123
124
  H(n, (s, i) => {
124
125
  let o;
125
126
  (o = t(s, i, e)) !== !1 && (r[i] = o || s);
126
127
  }), Object.defineProperties(e, r);
127
- }, Lt = (e) => {
128
- De(e, (t, n) => {
128
+ }, qt = (e) => {
129
+ He(e, (t, n) => {
129
130
  if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
130
131
  return !1;
131
132
  const r = e[n];
@@ -139,19 +140,19 @@ const Et = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, i) => {
139
140
  });
140
141
  }
141
142
  });
142
- }, Ft = (e, t) => {
143
+ }, Mt = (e, t) => {
143
144
  const n = {}, r = (s) => {
144
145
  s.forEach((i) => {
145
146
  n[i] = !0;
146
147
  });
147
148
  };
148
149
  return B(e) ? r(e) : r(String(e).split(t)), n;
149
- }, kt = () => {
150
- }, Bt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
151
- function Dt(e) {
152
- return !!(e && A(e.append) && e[Ue] === "FormData" && e[G]);
150
+ }, Ht = () => {
151
+ }, zt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
152
+ function $t(e) {
153
+ return !!(e && A(e.append) && e[De] === "FormData" && e[X]);
153
154
  }
154
- const jt = (e) => {
155
+ const vt = (e) => {
155
156
  const t = new Array(10), n = (r, s) => {
156
157
  if (M(r)) {
157
158
  if (t.indexOf(r) >= 0)
@@ -170,72 +171,72 @@ const jt = (e) => {
170
171
  return r;
171
172
  };
172
173
  return n(e, 0);
173
- }, It = x("AsyncFunction"), qt = (e) => e && (M(e) || A(e)) && A(e.then) && A(e.catch), je = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: s, data: i }) => {
174
- s === L && i === n && r.length && r.shift()();
174
+ }, Jt = x("AsyncFunction"), Vt = (e) => e && (M(e) || A(e)) && A(e.then) && A(e.catch), ze = ((e, t) => e ? setImmediate : t ? ((n, r) => (N.addEventListener("message", ({ source: s, data: i }) => {
175
+ s === N && i === n && r.length && r.shift()();
175
176
  }, !1), (s) => {
176
- r.push(s), L.postMessage(n, "*");
177
+ r.push(s), N.postMessage(n, "*");
177
178
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
178
179
  typeof setImmediate == "function",
179
- A(L.postMessage)
180
- ), Mt = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || je, Ht = (e) => e != null && A(e[G]), a = {
180
+ A(N.postMessage)
181
+ ), Kt = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || ze, Wt = (e) => e != null && A(e[X]), a = {
181
182
  isArray: B,
182
- isArrayBuffer: Le,
183
+ isArrayBuffer: je,
183
184
  isBuffer: q,
184
- isFormData: pt,
185
- isArrayBufferView: st,
186
- isString: ot,
187
- isNumber: Fe,
188
- isBoolean: it,
185
+ isFormData: Et,
186
+ isArrayBufferView: ft,
187
+ isString: dt,
188
+ isNumber: Ie,
189
+ isBoolean: pt,
189
190
  isObject: M,
190
191
  isPlainObject: J,
191
- isEmptyObject: at,
192
- isReadableStream: mt,
193
- isRequest: yt,
194
- isResponse: wt,
195
- isHeaders: bt,
192
+ isEmptyObject: ht,
193
+ isReadableStream: St,
194
+ isRequest: Ot,
195
+ isResponse: Tt,
196
+ isHeaders: At,
196
197
  isUndefined: I,
197
- isDate: ct,
198
- isFile: ut,
199
- isBlob: lt,
200
- isRegExp: Ut,
198
+ isDate: mt,
199
+ isFile: yt,
200
+ isBlob: wt,
201
+ isRegExp: It,
201
202
  isFunction: A,
202
- isStream: dt,
203
- isURLSearchParams: ht,
204
- isTypedArray: Ct,
205
- isFileList: ft,
203
+ isStream: bt,
204
+ isURLSearchParams: Rt,
205
+ isTypedArray: Ft,
206
+ isFileList: gt,
206
207
  forEach: H,
207
- merge: oe,
208
- extend: Et,
209
- trim: gt,
210
- stripBOM: Rt,
211
- inherits: St,
212
- toFlatObject: Ot,
208
+ merge: ie,
209
+ extend: xt,
210
+ trim: Ct,
211
+ stripBOM: _t,
212
+ inherits: Ut,
213
+ toFlatObject: Pt,
213
214
  kindOf: Q,
214
215
  kindOfTest: x,
215
- endsWith: Tt,
216
- toArray: At,
217
- forEachEntry: xt,
218
- matchAll: Nt,
219
- isHTMLForm: Pt,
220
- hasOwnProperty: ye,
221
- hasOwnProp: ye,
216
+ endsWith: Lt,
217
+ toArray: Nt,
218
+ forEachEntry: kt,
219
+ matchAll: Bt,
220
+ isHTMLForm: Dt,
221
+ hasOwnProperty: be,
222
+ hasOwnProp: be,
222
223
  // an alias to avoid ESLint no-prototype-builtins detection
223
- reduceDescriptors: De,
224
- freezeMethods: Lt,
225
- toObjectSet: Ft,
226
- toCamelCase: _t,
227
- noop: kt,
228
- toFiniteNumber: Bt,
229
- findKey: ke,
230
- global: L,
231
- isContextDefined: Be,
232
- isSpecCompliantForm: Dt,
233
- toJSONObject: jt,
234
- isAsyncFn: It,
235
- isThenable: qt,
236
- setImmediate: je,
237
- asap: Mt,
238
- isIterable: Ht
224
+ reduceDescriptors: He,
225
+ freezeMethods: qt,
226
+ toObjectSet: Mt,
227
+ toCamelCase: jt,
228
+ noop: Ht,
229
+ toFiniteNumber: zt,
230
+ findKey: qe,
231
+ global: N,
232
+ isContextDefined: Me,
233
+ isSpecCompliantForm: $t,
234
+ toJSONObject: vt,
235
+ isAsyncFn: Jt,
236
+ isThenable: Vt,
237
+ setImmediate: ze,
238
+ asap: Kt,
239
+ isIterable: Wt
239
240
  };
240
241
  function m(e, t, n, r, s) {
241
242
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
@@ -261,7 +262,7 @@ a.inherits(m, Error, {
261
262
  };
262
263
  }
263
264
  });
264
- const Ie = m.prototype, qe = {};
265
+ const $e = m.prototype, ve = {};
265
266
  [
266
267
  "ERR_BAD_OPTION_VALUE",
267
268
  "ERR_BAD_OPTION",
@@ -277,35 +278,35 @@ const Ie = m.prototype, qe = {};
277
278
  "ERR_INVALID_URL"
278
279
  // eslint-disable-next-line func-names
279
280
  ].forEach((e) => {
280
- qe[e] = { value: e };
281
+ ve[e] = { value: e };
281
282
  });
282
- Object.defineProperties(m, qe);
283
- Object.defineProperty(Ie, "isAxiosError", { value: !0 });
283
+ Object.defineProperties(m, ve);
284
+ Object.defineProperty($e, "isAxiosError", { value: !0 });
284
285
  m.from = (e, t, n, r, s, i) => {
285
- const o = Object.create(Ie);
286
+ const o = Object.create($e);
286
287
  return a.toFlatObject(e, o, function(f) {
287
288
  return f !== Error.prototype;
288
289
  }, (c) => c !== "isAxiosError"), m.call(o, e.message, t, n, r, s), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
289
290
  };
290
- const zt = null;
291
- function ie(e) {
291
+ const Gt = null;
292
+ function ae(e) {
292
293
  return a.isPlainObject(e) || a.isArray(e);
293
294
  }
294
- function Me(e) {
295
+ function Je(e) {
295
296
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
296
297
  }
297
- function we(e, t, n) {
298
+ function Ee(e, t, n) {
298
299
  return e ? e.concat(t).map(function(s, i) {
299
- return s = Me(s), !n && i ? "[" + s + "]" : s;
300
+ return s = Je(s), !n && i ? "[" + s + "]" : s;
300
301
  }).join(n ? "." : "") : t;
301
302
  }
302
- function $t(e) {
303
- return a.isArray(e) && !e.some(ie);
303
+ function Xt(e) {
304
+ return a.isArray(e) && !e.some(ae);
304
305
  }
305
- const vt = a.toFlatObject(a, {}, null, function(t) {
306
+ const Qt = a.toFlatObject(a, {}, null, function(t) {
306
307
  return /^is[A-Z]/.test(t);
307
308
  });
308
- function Y(e, t, n) {
309
+ function Z(e, t, n) {
309
310
  if (!a.isObject(e))
310
311
  throw new TypeError("target must be an object");
311
312
  t = t || new FormData(), n = a.toFlatObject(n, {
@@ -329,38 +330,38 @@ function Y(e, t, n) {
329
330
  return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
330
331
  }
331
332
  function u(p, y, h) {
332
- let g = p;
333
+ let b = p;
333
334
  if (p && !h && typeof p == "object") {
334
335
  if (a.endsWith(y, "{}"))
335
336
  y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
336
- else if (a.isArray(p) && $t(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (g = a.toArray(p)))
337
- return y = Me(y), g.forEach(function(S, P) {
337
+ else if (a.isArray(p) && Xt(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (b = a.toArray(p)))
338
+ return y = Je(y), b.forEach(function(S, U) {
338
339
  !(a.isUndefined(S) || S === null) && t.append(
339
340
  // eslint-disable-next-line no-nested-ternary
340
- o === !0 ? we([y], P, i) : o === null ? y : y + "[]",
341
+ o === !0 ? Ee([y], U, i) : o === null ? y : y + "[]",
341
342
  l(S)
342
343
  );
343
344
  }), !1;
344
345
  }
345
- return ie(p) ? !0 : (t.append(we(h, y, i), l(p)), !1);
346
+ return ae(p) ? !0 : (t.append(Ee(h, y, i), l(p)), !1);
346
347
  }
347
- const d = [], w = Object.assign(vt, {
348
+ const d = [], w = Object.assign(Qt, {
348
349
  defaultVisitor: u,
349
350
  convertValue: l,
350
- isVisitable: ie
351
+ isVisitable: ae
351
352
  });
352
353
  function E(p, y) {
353
354
  if (!a.isUndefined(p)) {
354
355
  if (d.indexOf(p) !== -1)
355
356
  throw Error("Circular reference detected in " + y.join("."));
356
- d.push(p), a.forEach(p, function(g, R) {
357
- (!(a.isUndefined(g) || g === null) && s.call(
357
+ d.push(p), a.forEach(p, function(b, R) {
358
+ (!(a.isUndefined(b) || b === null) && s.call(
358
359
  t,
359
- g,
360
+ b,
360
361
  a.isString(R) ? R.trim() : R,
361
362
  y,
362
363
  w
363
- )) === !0 && E(g, y ? y.concat(R) : [R]);
364
+ )) === !0 && E(b, y ? y.concat(R) : [R]);
364
365
  }), d.pop();
365
366
  }
366
367
  }
@@ -368,7 +369,7 @@ function Y(e, t, n) {
368
369
  throw new TypeError("data must be an object");
369
370
  return E(e), t;
370
371
  }
371
- function be(e) {
372
+ function Re(e) {
372
373
  const t = {
373
374
  "!": "%21",
374
375
  "'": "%27",
@@ -382,40 +383,40 @@ function be(e) {
382
383
  return t[r];
383
384
  });
384
385
  }
385
- function pe(e, t) {
386
- this._pairs = [], e && Y(e, this, t);
386
+ function he(e, t) {
387
+ this._pairs = [], e && Z(e, this, t);
387
388
  }
388
- const He = pe.prototype;
389
- He.append = function(t, n) {
389
+ const Ve = he.prototype;
390
+ Ve.append = function(t, n) {
390
391
  this._pairs.push([t, n]);
391
392
  };
392
- He.toString = function(t) {
393
+ Ve.toString = function(t) {
393
394
  const n = t ? function(r) {
394
- return t.call(this, r, be);
395
- } : be;
395
+ return t.call(this, r, Re);
396
+ } : Re;
396
397
  return this._pairs.map(function(s) {
397
398
  return n(s[0]) + "=" + n(s[1]);
398
399
  }, "").join("&");
399
400
  };
400
- function Jt(e) {
401
+ function Yt(e) {
401
402
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
402
403
  }
403
- function ze(e, t, n) {
404
+ function Ke(e, t, n) {
404
405
  if (!t)
405
406
  return e;
406
- const r = n && n.encode || Jt;
407
+ const r = n && n.encode || Yt;
407
408
  a.isFunction(n) && (n = {
408
409
  serialize: n
409
410
  });
410
411
  const s = n && n.serialize;
411
412
  let i;
412
- if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new pe(t, n).toString(r), i) {
413
+ if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new he(t, n).toString(r), i) {
413
414
  const o = e.indexOf("#");
414
415
  o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
415
416
  }
416
417
  return e;
417
418
  }
418
- class ge {
419
+ class Se {
419
420
  constructor() {
420
421
  this.handlers = [];
421
422
  }
@@ -469,42 +470,42 @@ class ge {
469
470
  });
470
471
  }
471
472
  }
472
- const $e = {
473
+ const We = {
473
474
  silentJSONParsing: !0,
474
475
  forcedJSONParsing: !0,
475
476
  clarifyTimeoutError: !1
476
- }, Vt = typeof URLSearchParams < "u" ? URLSearchParams : pe, Wt = typeof FormData < "u" ? FormData : null, Kt = typeof Blob < "u" ? Blob : null, Xt = {
477
+ }, Zt = typeof URLSearchParams < "u" ? URLSearchParams : he, en = typeof FormData < "u" ? FormData : null, tn = typeof Blob < "u" ? Blob : null, nn = {
477
478
  isBrowser: !0,
478
479
  classes: {
479
- URLSearchParams: Vt,
480
- FormData: Wt,
481
- Blob: Kt
480
+ URLSearchParams: Zt,
481
+ FormData: en,
482
+ Blob: tn
482
483
  },
483
484
  protocols: ["http", "https", "file", "blob", "url", "data"]
484
- }, he = typeof window < "u" && typeof document < "u", ae = typeof navigator == "object" && navigator || void 0, Gt = he && (!ae || ["ReactNative", "NativeScript", "NS"].indexOf(ae.product) < 0), Qt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
485
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Zt = he && window.location.href || "http://localhost", Yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
485
+ }, me = typeof window < "u" && typeof document < "u", ce = typeof navigator == "object" && navigator || void 0, rn = me && (!ce || ["ReactNative", "NativeScript", "NS"].indexOf(ce.product) < 0), sn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
486
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", on = me && window.location.href || "http://localhost", an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
486
487
  __proto__: null,
487
- hasBrowserEnv: he,
488
- hasStandardBrowserEnv: Gt,
489
- hasStandardBrowserWebWorkerEnv: Qt,
490
- navigator: ae,
491
- origin: Zt
488
+ hasBrowserEnv: me,
489
+ hasStandardBrowserEnv: rn,
490
+ hasStandardBrowserWebWorkerEnv: sn,
491
+ navigator: ce,
492
+ origin: on
492
493
  }, Symbol.toStringTag, { value: "Module" })), O = {
493
- ...Yt,
494
- ...Xt
494
+ ...an,
495
+ ...nn
495
496
  };
496
- function en(e, t) {
497
- return Y(e, new O.classes.URLSearchParams(), {
497
+ function cn(e, t) {
498
+ return Z(e, new O.classes.URLSearchParams(), {
498
499
  visitor: function(n, r, s, i) {
499
500
  return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
500
501
  },
501
502
  ...t
502
503
  });
503
504
  }
504
- function tn(e) {
505
+ function un(e) {
505
506
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
506
507
  }
507
- function nn(e) {
508
+ function ln(e) {
508
509
  const t = {}, n = Object.keys(e);
509
510
  let r;
510
511
  const s = n.length;
@@ -513,22 +514,22 @@ function nn(e) {
513
514
  i = n[r], t[i] = e[i];
514
515
  return t;
515
516
  }
516
- function ve(e) {
517
+ function Ge(e) {
517
518
  function t(n, r, s, i) {
518
519
  let o = n[i++];
519
520
  if (o === "__proto__") return !0;
520
521
  const c = Number.isFinite(+o), f = i >= n.length;
521
- return o = !o && a.isArray(s) ? s.length : o, f ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = nn(s[o])), !c);
522
+ return o = !o && a.isArray(s) ? s.length : o, f ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = ln(s[o])), !c);
522
523
  }
523
524
  if (a.isFormData(e) && a.isFunction(e.entries)) {
524
525
  const n = {};
525
526
  return a.forEachEntry(e, (r, s) => {
526
- t(tn(r), s, n, 0);
527
+ t(un(r), s, n, 0);
527
528
  }), n;
528
529
  }
529
530
  return null;
530
531
  }
531
- function rn(e, t, n) {
532
+ function fn(e, t, n) {
532
533
  if (a.isString(e))
533
534
  try {
534
535
  return (t || JSON.parse)(e), a.trim(e);
@@ -539,12 +540,12 @@ function rn(e, t, n) {
539
540
  return (n || JSON.stringify)(e);
540
541
  }
541
542
  const z = {
542
- transitional: $e,
543
+ transitional: We,
543
544
  adapter: ["xhr", "http", "fetch"],
544
545
  transformRequest: [function(t, n) {
545
546
  const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
546
547
  if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
547
- return s ? JSON.stringify(ve(t)) : t;
548
+ return s ? JSON.stringify(Ge(t)) : t;
548
549
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
549
550
  return t;
550
551
  if (a.isArrayBufferView(t))
@@ -554,17 +555,17 @@ const z = {
554
555
  let c;
555
556
  if (i) {
556
557
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
557
- return en(t, this.formSerializer).toString();
558
+ return cn(t, this.formSerializer).toString();
558
559
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
559
560
  const f = this.env && this.env.FormData;
560
- return Y(
561
+ return Z(
561
562
  c ? { "files[]": t } : t,
562
563
  f && new f(),
563
564
  this.formSerializer
564
565
  );
565
566
  }
566
567
  }
567
- return i || s ? (n.setContentType("application/json", !1), rn(t)) : t;
568
+ return i || s ? (n.setContentType("application/json", !1), fn(t)) : t;
568
569
  }],
569
570
  transformResponse: [function(t) {
570
571
  const n = this.transitional || z.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
@@ -607,7 +608,7 @@ const z = {
607
608
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
608
609
  z.headers[e] = {};
609
610
  });
610
- const sn = a.toObjectSet([
611
+ const dn = a.toObjectSet([
611
612
  "age",
612
613
  "authorization",
613
614
  "content-length",
@@ -625,28 +626,28 @@ const sn = a.toObjectSet([
625
626
  "referer",
626
627
  "retry-after",
627
628
  "user-agent"
628
- ]), on = (e) => {
629
+ ]), pn = (e) => {
629
630
  const t = {};
630
631
  let n, r, s;
631
632
  return e && e.split(`
632
633
  `).forEach(function(o) {
633
- s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && sn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
634
+ s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && dn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
634
635
  }), t;
635
- }, Ee = Symbol("internals");
636
+ }, Oe = Symbol("internals");
636
637
  function j(e) {
637
638
  return e && String(e).trim().toLowerCase();
638
639
  }
639
640
  function V(e) {
640
641
  return e === !1 || e == null ? e : a.isArray(e) ? e.map(V) : String(e);
641
642
  }
642
- function an(e) {
643
+ function hn(e) {
643
644
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
644
645
  let r;
645
646
  for (; r = n.exec(e); )
646
647
  t[r[1]] = r[2];
647
648
  return t;
648
649
  }
649
- const cn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
650
+ const mn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
650
651
  function ne(e, t, n, r, s) {
651
652
  if (a.isFunction(r))
652
653
  return r.call(this, t, n);
@@ -657,10 +658,10 @@ function ne(e, t, n, r, s) {
657
658
  return r.test(t);
658
659
  }
659
660
  }
660
- function un(e) {
661
+ function yn(e) {
661
662
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
662
663
  }
663
- function ln(e, t) {
664
+ function wn(e, t) {
664
665
  const n = a.toCamelCase(" " + t);
665
666
  ["get", "set", "has"].forEach((r) => {
666
667
  Object.defineProperty(e, r + n, {
@@ -687,8 +688,8 @@ let C = class {
687
688
  const o = (c, f) => a.forEach(c, (l, u) => i(l, u, f));
688
689
  if (a.isPlainObject(t) || t instanceof this.constructor)
689
690
  o(t, n);
690
- else if (a.isString(t) && (t = t.trim()) && !cn(t))
691
- o(on(t), n);
691
+ else if (a.isString(t) && (t = t.trim()) && !mn(t))
692
+ o(pn(t), n);
692
693
  else if (a.isObject(t) && a.isIterable(t)) {
693
694
  let c = {}, f, l;
694
695
  for (const u of t) {
@@ -709,7 +710,7 @@ let C = class {
709
710
  if (!n)
710
711
  return s;
711
712
  if (n === !0)
712
- return an(s);
713
+ return hn(s);
713
714
  if (a.isFunction(n))
714
715
  return n.call(this, s, r);
715
716
  if (a.isRegExp(n))
@@ -753,7 +754,7 @@ let C = class {
753
754
  n[o] = V(s), delete n[i];
754
755
  return;
755
756
  }
756
- const c = t ? un(i) : String(i).trim();
757
+ const c = t ? yn(i) : String(i).trim();
757
758
  c !== i && delete n[i], n[c] = V(s), r[c] = !0;
758
759
  }), this;
759
760
  }
@@ -787,12 +788,12 @@ let C = class {
787
788
  return n.forEach((s) => r.set(s)), r;
788
789
  }
789
790
  static accessor(t) {
790
- const r = (this[Ee] = this[Ee] = {
791
+ const r = (this[Oe] = this[Oe] = {
791
792
  accessors: {}
792
793
  }).accessors, s = this.prototype;
793
794
  function i(o) {
794
795
  const c = j(o);
795
- r[c] || (ln(s, o), r[c] = !0);
796
+ r[c] || (wn(s, o), r[c] = !0);
796
797
  }
797
798
  return a.isArray(t) ? t.forEach(i) : i(t), this;
798
799
  }
@@ -815,7 +816,7 @@ function re(e, t) {
815
816
  i = c.call(n, i, s.normalize(), t ? t.status : void 0);
816
817
  }), s.normalize(), i;
817
818
  }
818
- function Je(e) {
819
+ function Xe(e) {
819
820
  return !!(e && e.__CANCEL__);
820
821
  }
821
822
  function D(e, t, n) {
@@ -824,7 +825,7 @@ function D(e, t, n) {
824
825
  a.inherits(D, m, {
825
826
  __CANCEL__: !0
826
827
  });
827
- function Ve(e, t, n) {
828
+ function Qe(e, t, n) {
828
829
  const r = n.config.validateStatus;
829
830
  !n.status || !r || r(n.status) ? e(n) : t(new m(
830
831
  "Request failed with status code " + n.status,
@@ -834,11 +835,11 @@ function Ve(e, t, n) {
834
835
  n
835
836
  ));
836
837
  }
837
- function fn(e) {
838
+ function gn(e) {
838
839
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
839
840
  return t && t[1] || "";
840
841
  }
841
- function dn(e, t) {
842
+ function bn(e, t) {
842
843
  e = e || 10;
843
844
  const n = new Array(e), r = new Array(e);
844
845
  let s = 0, i = 0, o;
@@ -854,7 +855,7 @@ function dn(e, t) {
854
855
  return E ? Math.round(w * 1e3 / E) : void 0;
855
856
  };
856
857
  }
857
- function pn(e, t) {
858
+ function En(e, t) {
858
859
  let n = 0, r = 1e3 / t, s, i;
859
860
  const o = (l, u = Date.now()) => {
860
861
  n = u, s = null, i && (clearTimeout(i), i = null), e(...l);
@@ -866,10 +867,10 @@ function pn(e, t) {
866
867
  }, r - d)));
867
868
  }, () => s && o(s)];
868
869
  }
869
- const K = (e, t, n = 3) => {
870
+ const W = (e, t, n = 3) => {
870
871
  let r = 0;
871
- const s = dn(50, 250);
872
- return pn((i) => {
872
+ const s = bn(50, 250);
873
+ return En((i) => {
873
874
  const o = i.loaded, c = i.lengthComputable ? i.total : void 0, f = o - r, l = s(f), u = o <= c;
874
875
  r = o;
875
876
  const d = {
@@ -885,17 +886,17 @@ const K = (e, t, n = 3) => {
885
886
  };
886
887
  e(d);
887
888
  }, n);
888
- }, Re = (e, t) => {
889
+ }, Te = (e, t) => {
889
890
  const n = e != null;
890
891
  return [(r) => t[0]({
891
892
  lengthComputable: n,
892
893
  total: e,
893
894
  loaded: r
894
895
  }), t[1]];
895
- }, Se = (e) => (...t) => a.asap(() => e(...t)), hn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
896
+ }, Ae = (e) => (...t) => a.asap(() => e(...t)), Rn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
896
897
  new URL(O.origin),
897
898
  O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
898
- ) : () => !0, mn = O.hasStandardBrowserEnv ? (
899
+ ) : () => !0, Sn = O.hasStandardBrowserEnv ? (
899
900
  // Standard browser envs support document.cookie
900
901
  {
901
902
  write(e, t, n, r, s, i) {
@@ -922,17 +923,17 @@ const K = (e, t, n = 3) => {
922
923
  }
923
924
  }
924
925
  );
925
- function yn(e) {
926
+ function On(e) {
926
927
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
927
928
  }
928
- function wn(e, t) {
929
+ function Tn(e, t) {
929
930
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
930
931
  }
931
- function We(e, t, n) {
932
- let r = !yn(t);
933
- return e && (r || n == !1) ? wn(e, t) : t;
932
+ function Ye(e, t, n) {
933
+ let r = !On(t);
934
+ return e && (r || n == !1) ? Tn(e, t) : t;
934
935
  }
935
- const Oe = (e) => e instanceof C ? { ...e } : e;
936
+ const Ce = (e) => e instanceof C ? { ...e } : e;
936
937
  function k(e, t) {
937
938
  t = t || {};
938
939
  const n = {};
@@ -990,17 +991,17 @@ function k(e, t) {
990
991
  socketPath: o,
991
992
  responseEncoding: o,
992
993
  validateStatus: c,
993
- headers: (l, u, d) => s(Oe(l), Oe(u), d, !0)
994
+ headers: (l, u, d) => s(Ce(l), Ce(u), d, !0)
994
995
  };
995
996
  return a.forEach(Object.keys({ ...e, ...t }), function(u) {
996
997
  const d = f[u] || s, w = d(e[u], t[u], u);
997
998
  a.isUndefined(w) && d !== c || (n[u] = w);
998
999
  }), n;
999
1000
  }
1000
- const Ke = (e) => {
1001
+ const Ze = (e) => {
1001
1002
  const t = k({}, e);
1002
1003
  let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
1003
- t.headers = o = C.from(o), t.url = ze(We(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
1004
+ t.headers = o = C.from(o), t.url = Ke(Ye(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
1004
1005
  "Authorization",
1005
1006
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1006
1007
  );
@@ -1013,14 +1014,14 @@ const Ke = (e) => {
1013
1014
  o.setContentType([l || "multipart/form-data", ...u].join("; "));
1014
1015
  }
1015
1016
  }
1016
- if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && hn(t.url))) {
1017
- const l = s && i && mn.read(i);
1017
+ if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Rn(t.url))) {
1018
+ const l = s && i && Sn.read(i);
1018
1019
  l && o.set(s, l);
1019
1020
  }
1020
1021
  return t;
1021
- }, bn = typeof XMLHttpRequest < "u", gn = bn && function(e) {
1022
+ }, An = typeof XMLHttpRequest < "u", Cn = An && function(e) {
1022
1023
  return new Promise(function(n, r) {
1023
- const s = Ke(e);
1024
+ const s = Ze(e);
1024
1025
  let i = s.data;
1025
1026
  const o = C.from(s.headers).normalize();
1026
1027
  let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, d, w, E, p;
@@ -1029,7 +1030,7 @@ const Ke = (e) => {
1029
1030
  }
1030
1031
  let h = new XMLHttpRequest();
1031
1032
  h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1032
- function g() {
1033
+ function b() {
1033
1034
  if (!h)
1034
1035
  return;
1035
1036
  const S = C.from(
@@ -1042,40 +1043,40 @@ const Ke = (e) => {
1042
1043
  config: e,
1043
1044
  request: h
1044
1045
  };
1045
- Ve(function(U) {
1046
- n(U), y();
1047
- }, function(U) {
1048
- r(U), y();
1046
+ Qe(function(L) {
1047
+ n(L), y();
1048
+ }, function(L) {
1049
+ r(L), y();
1049
1050
  }, T), h = null;
1050
1051
  }
1051
- "onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
1052
- !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
1052
+ "onloadend" in h ? h.onloadend = b : h.onreadystatechange = function() {
1053
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(b);
1053
1054
  }, h.onabort = function() {
1054
1055
  h && (r(new m("Request aborted", m.ECONNABORTED, e, h)), h = null);
1055
1056
  }, h.onerror = function() {
1056
1057
  r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
1057
1058
  }, h.ontimeout = function() {
1058
- let P = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1059
- const T = s.transitional || $e;
1060
- s.timeoutErrorMessage && (P = s.timeoutErrorMessage), r(new m(
1061
- P,
1059
+ let U = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1060
+ const T = s.transitional || We;
1061
+ s.timeoutErrorMessage && (U = s.timeoutErrorMessage), r(new m(
1062
+ U,
1062
1063
  T.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1063
1064
  e,
1064
1065
  h
1065
1066
  )), h = null;
1066
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(P, T) {
1067
- h.setRequestHeader(T, P);
1068
- }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([w, p] = K(l, !0), h.addEventListener("progress", w)), f && h.upload && ([d, E] = K(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (u = (S) => {
1067
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(U, T) {
1068
+ h.setRequestHeader(T, U);
1069
+ }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([w, p] = W(l, !0), h.addEventListener("progress", w)), f && h.upload && ([d, E] = W(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (u = (S) => {
1069
1070
  h && (r(!S || S.type ? new D(null, e, h) : S), h.abort(), h = null);
1070
1071
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1071
- const R = fn(s.url);
1072
+ const R = gn(s.url);
1072
1073
  if (R && O.protocols.indexOf(R) === -1) {
1073
1074
  r(new m("Unsupported protocol " + R + ":", m.ERR_BAD_REQUEST, e));
1074
1075
  return;
1075
1076
  }
1076
1077
  h.send(i || null);
1077
1078
  });
1078
- }, En = (e, t) => {
1079
+ }, xn = (e, t) => {
1079
1080
  const { length: n } = e = e ? e.filter(Boolean) : [];
1080
1081
  if (t || n) {
1081
1082
  let r = new AbortController(), s;
@@ -1098,7 +1099,7 @@ const Ke = (e) => {
1098
1099
  const { signal: f } = r;
1099
1100
  return f.unsubscribe = () => a.asap(c), f;
1100
1101
  }
1101
- }, Rn = function* (e, t) {
1102
+ }, _n = function* (e, t) {
1102
1103
  let n = e.byteLength;
1103
1104
  if (n < t) {
1104
1105
  yield e;
@@ -1107,10 +1108,10 @@ const Ke = (e) => {
1107
1108
  let r = 0, s;
1108
1109
  for (; r < n; )
1109
1110
  s = r + t, yield e.slice(r, s), r = s;
1110
- }, Sn = async function* (e, t) {
1111
- for await (const n of On(e))
1112
- yield* Rn(n, t);
1113
- }, On = async function* (e) {
1111
+ }, Un = async function* (e, t) {
1112
+ for await (const n of Pn(e))
1113
+ yield* _n(n, t);
1114
+ }, Pn = async function* (e) {
1114
1115
  if (e[Symbol.asyncIterator]) {
1115
1116
  yield* e;
1116
1117
  return;
@@ -1126,8 +1127,8 @@ const Ke = (e) => {
1126
1127
  } finally {
1127
1128
  await t.cancel();
1128
1129
  }
1129
- }, Te = (e, t, n, r) => {
1130
- const s = Sn(e, t);
1130
+ }, xe = (e, t, n, r) => {
1131
+ const s = Un(e, t);
1131
1132
  let i = 0, o, c = (f) => {
1132
1133
  o || (o = !0, r && r(f));
1133
1134
  };
@@ -1155,13 +1156,13 @@ const Ke = (e) => {
1155
1156
  }, {
1156
1157
  highWaterMark: 2
1157
1158
  });
1158
- }, ee = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Xe = ee && typeof ReadableStream == "function", Tn = ee && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ge = (e, ...t) => {
1159
+ }, ee = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", et = ee && typeof ReadableStream == "function", Ln = ee && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), tt = (e, ...t) => {
1159
1160
  try {
1160
1161
  return !!e(...t);
1161
1162
  } catch {
1162
1163
  return !1;
1163
1164
  }
1164
- }, An = Xe && Ge(() => {
1165
+ }, Nn = et && tt(() => {
1165
1166
  let e = !1;
1166
1167
  const t = new Request(O.origin, {
1167
1168
  body: new ReadableStream(),
@@ -1171,17 +1172,17 @@ const Ke = (e) => {
1171
1172
  }
1172
1173
  }).headers.has("Content-Type");
1173
1174
  return e && !t;
1174
- }), Ae = 64 * 1024, ce = Xe && Ge(() => a.isReadableStream(new Response("").body)), X = {
1175
- stream: ce && ((e) => e.body)
1175
+ }), _e = 64 * 1024, ue = et && tt(() => a.isReadableStream(new Response("").body)), G = {
1176
+ stream: ue && ((e) => e.body)
1176
1177
  };
1177
1178
  ee && ((e) => {
1178
1179
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1179
- !X[t] && (X[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1180
+ !G[t] && (G[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1180
1181
  throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
1181
1182
  });
1182
1183
  });
1183
1184
  })(new Response());
1184
- const Cn = async (e) => {
1185
+ const Fn = async (e) => {
1185
1186
  if (e == null)
1186
1187
  return 0;
1187
1188
  if (a.isBlob(e))
@@ -1194,11 +1195,11 @@ const Cn = async (e) => {
1194
1195
  if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1195
1196
  return e.byteLength;
1196
1197
  if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1197
- return (await Tn(e)).byteLength;
1198
- }, xn = async (e, t) => {
1198
+ return (await Ln(e)).byteLength;
1199
+ }, kn = async (e, t) => {
1199
1200
  const n = a.toFiniteNumber(e.getContentLength());
1200
- return n ?? Cn(t);
1201
- }, Nn = ee && (async (e) => {
1201
+ return n ?? Fn(t);
1202
+ }, Bn = ee && (async (e) => {
1202
1203
  let {
1203
1204
  url: t,
1204
1205
  method: n,
@@ -1212,30 +1213,30 @@ const Cn = async (e) => {
1212
1213
  headers: u,
1213
1214
  withCredentials: d = "same-origin",
1214
1215
  fetchOptions: w
1215
- } = Ke(e);
1216
+ } = Ze(e);
1216
1217
  l = l ? (l + "").toLowerCase() : "text";
1217
- let E = En([s, i && i.toAbortSignal()], o), p;
1218
+ let E = xn([s, i && i.toAbortSignal()], o), p;
1218
1219
  const y = E && E.unsubscribe && (() => {
1219
1220
  E.unsubscribe();
1220
1221
  });
1221
1222
  let h;
1222
1223
  try {
1223
- if (f && An && n !== "get" && n !== "head" && (h = await xn(u, r)) !== 0) {
1224
+ if (f && Nn && n !== "get" && n !== "head" && (h = await kn(u, r)) !== 0) {
1224
1225
  let T = new Request(t, {
1225
1226
  method: "POST",
1226
1227
  body: r,
1227
1228
  duplex: "half"
1228
- }), _;
1229
- if (a.isFormData(r) && (_ = T.headers.get("content-type")) && u.setContentType(_), T.body) {
1230
- const [U, $] = Re(
1229
+ }), P;
1230
+ if (a.isFormData(r) && (P = T.headers.get("content-type")) && u.setContentType(P), T.body) {
1231
+ const [L, $] = Te(
1231
1232
  h,
1232
- K(Se(f))
1233
+ W(Ae(f))
1233
1234
  );
1234
- r = Te(T.body, Ae, U, $);
1235
+ r = xe(T.body, _e, L, $);
1235
1236
  }
1236
1237
  }
1237
1238
  a.isString(d) || (d = d ? "include" : "omit");
1238
- const g = "credentials" in Request.prototype;
1239
+ const b = "credentials" in Request.prototype;
1239
1240
  p = new Request(t, {
1240
1241
  ...w,
1241
1242
  signal: E,
@@ -1243,31 +1244,31 @@ const Cn = async (e) => {
1243
1244
  headers: u.normalize().toJSON(),
1244
1245
  body: r,
1245
1246
  duplex: "half",
1246
- credentials: g ? d : void 0
1247
+ credentials: b ? d : void 0
1247
1248
  });
1248
1249
  let R = await fetch(p, w);
1249
- const S = ce && (l === "stream" || l === "response");
1250
- if (ce && (c || S && y)) {
1250
+ const S = ue && (l === "stream" || l === "response");
1251
+ if (ue && (c || S && y)) {
1251
1252
  const T = {};
1252
- ["status", "statusText", "headers"].forEach((me) => {
1253
- T[me] = R[me];
1253
+ ["status", "statusText", "headers"].forEach((ge) => {
1254
+ T[ge] = R[ge];
1254
1255
  });
1255
- const _ = a.toFiniteNumber(R.headers.get("content-length")), [U, $] = c && Re(
1256
- _,
1257
- K(Se(c), !0)
1256
+ const P = a.toFiniteNumber(R.headers.get("content-length")), [L, $] = c && Te(
1257
+ P,
1258
+ W(Ae(c), !0)
1258
1259
  ) || [];
1259
1260
  R = new Response(
1260
- Te(R.body, Ae, U, () => {
1261
+ xe(R.body, _e, L, () => {
1261
1262
  $ && $(), y && y();
1262
1263
  }),
1263
1264
  T
1264
1265
  );
1265
1266
  }
1266
1267
  l = l || "text";
1267
- let P = await X[a.findKey(X, l) || "text"](R, e);
1268
- return !S && y && y(), await new Promise((T, _) => {
1269
- Ve(T, _, {
1270
- data: P,
1268
+ let U = await G[a.findKey(G, l) || "text"](R, e);
1269
+ return !S && y && y(), await new Promise((T, P) => {
1270
+ Qe(T, P, {
1271
+ data: U,
1271
1272
  headers: C.from(R.headers),
1272
1273
  status: R.status,
1273
1274
  statusText: R.statusText,
@@ -1275,20 +1276,20 @@ const Cn = async (e) => {
1275
1276
  request: p
1276
1277
  });
1277
1278
  });
1278
- } catch (g) {
1279
- throw y && y(), g && g.name === "TypeError" && /Load failed|fetch/i.test(g.message) ? Object.assign(
1279
+ } catch (b) {
1280
+ throw y && y(), b && b.name === "TypeError" && /Load failed|fetch/i.test(b.message) ? Object.assign(
1280
1281
  new m("Network Error", m.ERR_NETWORK, e, p),
1281
1282
  {
1282
- cause: g.cause || g
1283
+ cause: b.cause || b
1283
1284
  }
1284
- ) : m.from(g, g && g.code, e, p);
1285
+ ) : m.from(b, b && b.code, e, p);
1285
1286
  }
1286
- }), ue = {
1287
- http: zt,
1288
- xhr: gn,
1289
- fetch: Nn
1287
+ }), le = {
1288
+ http: Gt,
1289
+ xhr: Cn,
1290
+ fetch: Bn
1290
1291
  };
1291
- a.forEach(ue, (e, t) => {
1292
+ a.forEach(le, (e, t) => {
1292
1293
  if (e) {
1293
1294
  try {
1294
1295
  Object.defineProperty(e, "name", { value: t });
@@ -1297,7 +1298,7 @@ a.forEach(ue, (e, t) => {
1297
1298
  Object.defineProperty(e, "adapterName", { value: t });
1298
1299
  }
1299
1300
  });
1300
- const Ce = (e) => `- ${e}`, Pn = (e) => a.isFunction(e) || e === null || e === !1, Qe = {
1301
+ const Ue = (e) => `- ${e}`, Dn = (e) => a.isFunction(e) || e === null || e === !1, nt = {
1301
1302
  getAdapter: (e) => {
1302
1303
  e = a.isArray(e) ? e : [e];
1303
1304
  const { length: t } = e;
@@ -1306,7 +1307,7 @@ const Ce = (e) => `- ${e}`, Pn = (e) => a.isFunction(e) || e === null || e === !
1306
1307
  for (let i = 0; i < t; i++) {
1307
1308
  n = e[i];
1308
1309
  let o;
1309
- if (r = n, !Pn(n) && (r = ue[(o = String(n)).toLowerCase()], r === void 0))
1310
+ if (r = n, !Dn(n) && (r = le[(o = String(n)).toLowerCase()], r === void 0))
1310
1311
  throw new m(`Unknown adapter '${o}'`);
1311
1312
  if (r)
1312
1313
  break;
@@ -1317,8 +1318,8 @@ const Ce = (e) => `- ${e}`, Pn = (e) => a.isFunction(e) || e === null || e === !
1317
1318
  ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1318
1319
  );
1319
1320
  let o = t ? i.length > 1 ? `since :
1320
- ` + i.map(Ce).join(`
1321
- `) : " " + Ce(i[0]) : "as no adapter specified";
1321
+ ` + i.map(Ue).join(`
1322
+ `) : " " + Ue(i[0]) : "as no adapter specified";
1322
1323
  throw new m(
1323
1324
  "There is no suitable adapter to dispatch the request " + o,
1324
1325
  "ERR_NOT_SUPPORT"
@@ -1326,40 +1327,40 @@ const Ce = (e) => `- ${e}`, Pn = (e) => a.isFunction(e) || e === null || e === !
1326
1327
  }
1327
1328
  return r;
1328
1329
  },
1329
- adapters: ue
1330
+ adapters: le
1330
1331
  };
1331
1332
  function se(e) {
1332
1333
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1333
1334
  throw new D(null, e);
1334
1335
  }
1335
- function xe(e) {
1336
+ function Pe(e) {
1336
1337
  return se(e), e.headers = C.from(e.headers), e.data = re.call(
1337
1338
  e,
1338
1339
  e.transformRequest
1339
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Qe.getAdapter(e.adapter || z.adapter)(e).then(function(r) {
1340
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), nt.getAdapter(e.adapter || z.adapter)(e).then(function(r) {
1340
1341
  return se(e), r.data = re.call(
1341
1342
  e,
1342
1343
  e.transformResponse,
1343
1344
  r
1344
1345
  ), r.headers = C.from(r.headers), r;
1345
1346
  }, function(r) {
1346
- return Je(r) || (se(e), r && r.response && (r.response.data = re.call(
1347
+ return Xe(r) || (se(e), r && r.response && (r.response.data = re.call(
1347
1348
  e,
1348
1349
  e.transformResponse,
1349
1350
  r.response
1350
1351
  ), r.response.headers = C.from(r.response.headers))), Promise.reject(r);
1351
1352
  });
1352
1353
  }
1353
- const Ze = "1.11.0", te = {};
1354
+ const rt = "1.11.0", te = {};
1354
1355
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1355
1356
  te[e] = function(r) {
1356
1357
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1357
1358
  };
1358
1359
  });
1359
- const Ne = {};
1360
+ const Le = {};
1360
1361
  te.transitional = function(t, n, r) {
1361
1362
  function s(i, o) {
1362
- return "[Axios v" + Ze + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1363
+ return "[Axios v" + rt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1363
1364
  }
1364
1365
  return (i, o, c) => {
1365
1366
  if (t === !1)
@@ -1367,13 +1368,13 @@ te.transitional = function(t, n, r) {
1367
1368
  s(o, " has been removed" + (n ? " in " + n : "")),
1368
1369
  m.ERR_DEPRECATED
1369
1370
  );
1370
- return n && !Ne[o] && (Ne[o] = !0), t ? t(i, o, c) : !0;
1371
+ return n && !Le[o] && (Le[o] = !0), t ? t(i, o, c) : !0;
1371
1372
  };
1372
1373
  };
1373
1374
  te.spelling = function(t) {
1374
1375
  return (n, r) => !0;
1375
1376
  };
1376
- function _n(e, t, n) {
1377
+ function jn(e, t, n) {
1377
1378
  if (typeof e != "object")
1378
1379
  throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1379
1380
  const r = Object.keys(e);
@@ -1390,15 +1391,15 @@ function _n(e, t, n) {
1390
1391
  throw new m("Unknown option " + i, m.ERR_BAD_OPTION);
1391
1392
  }
1392
1393
  }
1393
- const W = {
1394
- assertOptions: _n,
1394
+ const K = {
1395
+ assertOptions: jn,
1395
1396
  validators: te
1396
- }, N = W.validators;
1397
+ }, _ = K.validators;
1397
1398
  let F = class {
1398
1399
  constructor(t) {
1399
1400
  this.defaults = t || {}, this.interceptors = {
1400
- request: new ge(),
1401
- response: new ge()
1401
+ request: new Se(),
1402
+ response: new Se()
1402
1403
  };
1403
1404
  }
1404
1405
  /**
@@ -1429,18 +1430,18 @@ let F = class {
1429
1430
  _request(t, n) {
1430
1431
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = k(this.defaults, n);
1431
1432
  const { transitional: r, paramsSerializer: s, headers: i } = n;
1432
- r !== void 0 && W.assertOptions(r, {
1433
- silentJSONParsing: N.transitional(N.boolean),
1434
- forcedJSONParsing: N.transitional(N.boolean),
1435
- clarifyTimeoutError: N.transitional(N.boolean)
1433
+ r !== void 0 && K.assertOptions(r, {
1434
+ silentJSONParsing: _.transitional(_.boolean),
1435
+ forcedJSONParsing: _.transitional(_.boolean),
1436
+ clarifyTimeoutError: _.transitional(_.boolean)
1436
1437
  }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1437
1438
  serialize: s
1438
- } : W.assertOptions(s, {
1439
- encode: N.function,
1440
- serialize: N.function
1441
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), W.assertOptions(n, {
1442
- baseUrl: N.spelling("baseURL"),
1443
- withXsrfToken: N.spelling("withXSRFToken")
1439
+ } : K.assertOptions(s, {
1440
+ encode: _.function,
1441
+ serialize: _.function
1442
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), K.assertOptions(n, {
1443
+ baseUrl: _.spelling("baseURL"),
1444
+ withXsrfToken: _.spelling("withXSRFToken")
1444
1445
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1445
1446
  let o = i && a.merge(
1446
1447
  i.common,
@@ -1463,7 +1464,7 @@ let F = class {
1463
1464
  });
1464
1465
  let u, d = 0, w;
1465
1466
  if (!f) {
1466
- const p = [xe.bind(this), void 0];
1467
+ const p = [Pe.bind(this), void 0];
1467
1468
  for (p.unshift(...c), p.push(...l), w = p.length, u = Promise.resolve(n); d < w; )
1468
1469
  u = u.then(p[d++], p[d++]);
1469
1470
  return u;
@@ -1480,7 +1481,7 @@ let F = class {
1480
1481
  }
1481
1482
  }
1482
1483
  try {
1483
- u = xe.call(this, E);
1484
+ u = Pe.call(this, E);
1484
1485
  } catch (p) {
1485
1486
  return Promise.reject(p);
1486
1487
  }
@@ -1490,8 +1491,8 @@ let F = class {
1490
1491
  }
1491
1492
  getUri(t) {
1492
1493
  t = k(this.defaults, t);
1493
- const n = We(t.baseURL, t.url, t.allowAbsoluteUrls);
1494
- return ze(n, t.params, t.paramsSerializer);
1494
+ const n = Ye(t.baseURL, t.url, t.allowAbsoluteUrls);
1495
+ return Ke(n, t.params, t.paramsSerializer);
1495
1496
  }
1496
1497
  };
1497
1498
  a.forEach(["delete", "get", "head", "options"], function(t) {
@@ -1518,7 +1519,7 @@ a.forEach(["post", "put", "patch"], function(t) {
1518
1519
  }
1519
1520
  F.prototype[t] = n(), F.prototype[t + "Form"] = n(!0);
1520
1521
  });
1521
- let Un = class Ye {
1522
+ let In = class st {
1522
1523
  constructor(t) {
1523
1524
  if (typeof t != "function")
1524
1525
  throw new TypeError("executor must be a function.");
@@ -1584,22 +1585,22 @@ let Un = class Ye {
1584
1585
  static source() {
1585
1586
  let t;
1586
1587
  return {
1587
- token: new Ye(function(s) {
1588
+ token: new st(function(s) {
1588
1589
  t = s;
1589
1590
  }),
1590
1591
  cancel: t
1591
1592
  };
1592
1593
  }
1593
1594
  };
1594
- function Ln(e) {
1595
+ function qn(e) {
1595
1596
  return function(n) {
1596
1597
  return e.apply(null, n);
1597
1598
  };
1598
1599
  }
1599
- function Fn(e) {
1600
+ function Mn(e) {
1600
1601
  return a.isObject(e) && e.isAxiosError === !0;
1601
1602
  }
1602
- const le = {
1603
+ const fe = {
1603
1604
  Continue: 100,
1604
1605
  SwitchingProtocols: 101,
1605
1606
  Processing: 102,
@@ -1664,53 +1665,53 @@ const le = {
1664
1665
  NotExtended: 510,
1665
1666
  NetworkAuthenticationRequired: 511
1666
1667
  };
1667
- Object.entries(le).forEach(([e, t]) => {
1668
- le[t] = e;
1668
+ Object.entries(fe).forEach(([e, t]) => {
1669
+ fe[t] = e;
1669
1670
  });
1670
- function et(e) {
1671
- const t = new F(e), n = _e(F.prototype.request, t);
1671
+ function ot(e) {
1672
+ const t = new F(e), n = Be(F.prototype.request, t);
1672
1673
  return a.extend(n, F.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1673
- return et(k(e, s));
1674
+ return ot(k(e, s));
1674
1675
  }, n;
1675
1676
  }
1676
- const b = et(z);
1677
- b.Axios = F;
1678
- b.CanceledError = D;
1679
- b.CancelToken = Un;
1680
- b.isCancel = Je;
1681
- b.VERSION = Ze;
1682
- b.toFormData = Y;
1683
- b.AxiosError = m;
1684
- b.Cancel = b.CanceledError;
1685
- b.all = function(t) {
1677
+ const g = ot(z);
1678
+ g.Axios = F;
1679
+ g.CanceledError = D;
1680
+ g.CancelToken = In;
1681
+ g.isCancel = Xe;
1682
+ g.VERSION = rt;
1683
+ g.toFormData = Z;
1684
+ g.AxiosError = m;
1685
+ g.Cancel = g.CanceledError;
1686
+ g.all = function(t) {
1686
1687
  return Promise.all(t);
1687
1688
  };
1688
- b.spread = Ln;
1689
- b.isAxiosError = Fn;
1690
- b.mergeConfig = k;
1691
- b.AxiosHeaders = C;
1692
- b.formToJSON = (e) => ve(a.isHTMLForm(e) ? new FormData(e) : e);
1693
- b.getAdapter = Qe.getAdapter;
1694
- b.HttpStatusCode = le;
1695
- b.default = b;
1689
+ g.spread = qn;
1690
+ g.isAxiosError = Mn;
1691
+ g.mergeConfig = k;
1692
+ g.AxiosHeaders = C;
1693
+ g.formToJSON = (e) => Ge(a.isHTMLForm(e) ? new FormData(e) : e);
1694
+ g.getAdapter = nt.getAdapter;
1695
+ g.HttpStatusCode = fe;
1696
+ g.default = g;
1696
1697
  const {
1697
- Axios: $n,
1698
- AxiosError: vn,
1699
- CanceledError: Jn,
1700
- isCancel: Vn,
1701
- CancelToken: Wn,
1702
- VERSION: Kn,
1703
- all: Xn,
1704
- Cancel: Gn,
1705
- isAxiosError: Qn,
1706
- spread: Zn,
1707
- toFormData: Yn,
1708
- AxiosHeaders: er,
1709
- HttpStatusCode: tr,
1710
- formToJSON: nr,
1711
- getAdapter: rr,
1712
- mergeConfig: sr
1713
- } = b;
1698
+ Axios: tr,
1699
+ AxiosError: nr,
1700
+ CanceledError: rr,
1701
+ isCancel: sr,
1702
+ CancelToken: or,
1703
+ VERSION: ir,
1704
+ all: ar,
1705
+ Cancel: cr,
1706
+ isAxiosError: ur,
1707
+ spread: lr,
1708
+ toFormData: fr,
1709
+ AxiosHeaders: dr,
1710
+ HttpStatusCode: pr,
1711
+ formToJSON: hr,
1712
+ getAdapter: mr,
1713
+ mergeConfig: yr
1714
+ } = g;
1714
1715
  /*! js-cookie v3.0.5 | MIT */
1715
1716
  function v(e) {
1716
1717
  for (var t = 1; t < arguments.length; t++) {
@@ -1720,7 +1721,7 @@ function v(e) {
1720
1721
  }
1721
1722
  return e;
1722
1723
  }
1723
- var kn = {
1724
+ var Hn = {
1724
1725
  read: function(e) {
1725
1726
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1726
1727
  },
@@ -1731,7 +1732,7 @@ var kn = {
1731
1732
  );
1732
1733
  }
1733
1734
  };
1734
- function fe(e, t) {
1735
+ function de(e, t) {
1735
1736
  function n(s, i, o) {
1736
1737
  if (!(typeof document > "u")) {
1737
1738
  o = v({}, t, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), s = encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
@@ -1769,10 +1770,10 @@ function fe(e, t) {
1769
1770
  );
1770
1771
  },
1771
1772
  withAttributes: function(s) {
1772
- return fe(this.converter, v({}, this.attributes, s));
1773
+ return de(this.converter, v({}, this.attributes, s));
1773
1774
  },
1774
1775
  withConverter: function(s) {
1775
- return fe(v({}, this.converter, s), this.attributes);
1776
+ return de(v({}, this.converter, s), this.attributes);
1776
1777
  }
1777
1778
  },
1778
1779
  {
@@ -1781,22 +1782,42 @@ function fe(e, t) {
1781
1782
  }
1782
1783
  );
1783
1784
  }
1784
- var Pe = fe(kn, { path: "/" });
1785
- const Bn = "/api/justauth/client/v1/visitor/sso-param", Dn = {
1785
+ var Ne = de(Hn, { path: "/" });
1786
+ const oe = "loginType", zn = (e) => new URL(location.href).searchParams.get(e), $n = () => {
1787
+ const e = zn(oe) || "";
1788
+ return e ? (localStorage.setItem(oe, e), e) : localStorage.getItem(oe) || "";
1789
+ }, vn = "/api/justauth/client/v1/visitor/sso-param", Jn = "/api/justauth/client/v1/visitor/jmc/sso/status", it = "thirdLogouSource", Vn = ["zhongshen", "jmc"], Kn = {
1786
1790
  uat: "https://sso-uat.jmc.com.cn"
1787
- }, jn = () => {
1788
- const e = localStorage.getItem("thirdLogouSource"), t = localStorage.getItem("loginType");
1789
- return e === "jmc" && t === "das" ? !1 : e === "zhongshen" || e === "jmc";
1790
- }, tt = (e) => {
1791
- localStorage.removeItem("thirdLogouSource"), window.__isAutoCloseApp = !1, location.href = e;
1792
- }, In = (e) => {
1791
+ };
1792
+ let ye = "";
1793
+ const we = () => localStorage.getItem(it) || ye, at = (e) => {
1794
+ const t = $n();
1795
+ return e === "jmc" && t === "das" ? !1 : Vn.includes(e);
1796
+ }, wr = () => at(we()), ct = (e) => {
1797
+ ye = we(), localStorage.removeItem(it), window.__isAutoCloseApp = !1, location.href = e;
1798
+ }, Wn = (e) => {
1799
+ ke();
1793
1800
  const n = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(e)}&entityId=AIoT&redirectToLogin=true`;
1794
- tt(n);
1795
- }, qn = async () => {
1801
+ ct(n);
1802
+ }, Gn = async (e = "") => {
1803
+ try {
1804
+ const { baseURL: t } = Fe();
1805
+ await g.create().post(
1806
+ Jn,
1807
+ {
1808
+ ssoToken: e,
1809
+ // 平台退出前已清理本地 token,这里通过 cookie 兜底读取,便于后端定位并清理 cookie token。
1810
+ platformToken: ut()
1811
+ },
1812
+ { baseURL: t }
1813
+ );
1814
+ } catch {
1815
+ }
1816
+ }, Xn = async () => {
1796
1817
  let e = "";
1797
1818
  try {
1798
- const { baseURL: s } = nt();
1799
- e = (await b.create().get(Bn, {
1819
+ const { baseURL: s } = Fe();
1820
+ e = (await g.create().get(vn, {
1800
1821
  baseURL: s,
1801
1822
  params: {
1802
1823
  source: "jmc",
@@ -1812,24 +1833,25 @@ const Bn = "/api/justauth/client/v1/visitor/sso-param", Dn = {
1812
1833
  } catch {
1813
1834
  return "";
1814
1835
  }
1815
- })(), n = t === Dn.uat ? Pe.get("sso_access_token_uat") : Pe.get("sso_access_token"), r = `${t}/oauth2/system/auth/logout?sso_token=${n}`;
1836
+ })(), n = t === Kn.uat ? Ne.get("sso_access_token_uat") : Ne.get("sso_access_token"), r = `${t}/oauth2/system/auth/logout?sso_token=${n}`;
1816
1837
  try {
1817
- await b.post(r);
1838
+ await g.post(r);
1818
1839
  } catch {
1819
1840
  }
1820
- tt(e);
1821
- }, or = async (e = "") => {
1822
- if (!jn()) return;
1823
- const t = localStorage.getItem("thirdLogouSource");
1824
- if (t === "zhongshen") {
1825
- In(e);
1826
- return;
1841
+ await Gn(n), ke(), ct(e);
1842
+ }, gr = async (e = "") => {
1843
+ const t = we();
1844
+ if (at(t)) {
1845
+ if (ye = t, t === "zhongshen") {
1846
+ Wn(e);
1847
+ return;
1848
+ }
1849
+ t === "jmc" && await Xn();
1827
1850
  }
1828
- t === "jmc" && await qn();
1829
1851
  };
1830
1852
  export {
1831
- jn as isThirdLogin,
1832
- qn as jmcLogout,
1833
- or as thirdLogout,
1834
- In as zhongshenLogout
1853
+ wr as isThirdLogin,
1854
+ Xn as jmcLogout,
1855
+ gr as thirdLogout,
1856
+ Wn as zhongshenLogout
1835
1857
  };