@iankibetsh/vue-streamline 1.0.5 → 1.0.7

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,32 +1,32 @@
1
- import { inject as me } from "vue";
1
+ import { ref as et, inject as me, reactive as tt, toRefs as nt } from "vue";
2
2
  function Fe(e, t) {
3
3
  return function() {
4
4
  return e.apply(t, arguments);
5
5
  };
6
6
  }
7
- const { toString: et } = Object.prototype, { getPrototypeOf: ue } = Object, v = /* @__PURE__ */ ((e) => (t) => {
8
- const n = et.call(t);
7
+ const { toString: rt } = Object.prototype, { getPrototypeOf: ue } = Object, V = /* @__PURE__ */ ((e) => (t) => {
8
+ const n = rt.call(t);
9
9
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => v(t) === e), W = (e) => (t) => typeof t === e, { isArray: B } = Array, q = W("undefined");
11
- function tt(e) {
10
+ })(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => V(t) === e), W = (e) => (t) => typeof t === e, { isArray: B } = Array, q = W("undefined");
11
+ function st(e) {
12
12
  return e !== null && !q(e) && e.constructor !== null && !q(e.constructor) && T(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13
13
  }
14
- const _e = C("ArrayBuffer");
15
- function nt(e) {
14
+ const _e = P("ArrayBuffer");
15
+ function ot(e) {
16
16
  let t;
17
17
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && _e(e.buffer), t;
18
18
  }
19
- const rt = W("string"), T = W("function"), Le = W("number"), K = (e) => e !== null && typeof e == "object", st = (e) => e === !0 || e === !1, z = (e) => {
20
- if (v(e) !== "object")
19
+ const it = W("string"), T = W("function"), Le = W("number"), K = (e) => e !== null && typeof e == "object", at = (e) => e === !0 || e === !1, z = (e) => {
20
+ if (V(e) !== "object")
21
21
  return !1;
22
22
  const t = ue(e);
23
23
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
24
- }, ot = C("Date"), it = C("File"), at = C("Blob"), ct = C("FileList"), ut = (e) => K(e) && T(e.pipe), lt = (e) => {
24
+ }, ct = P("Date"), ut = P("File"), lt = P("Blob"), ft = P("FileList"), dt = (e) => K(e) && T(e.pipe), pt = (e) => {
25
25
  let t;
26
- return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t = v(e)) === "formdata" || // detect form-data instance
26
+ return e && (typeof FormData == "function" && e instanceof FormData || T(e.append) && ((t = V(e)) === "formdata" || // detect form-data instance
27
27
  t === "object" && T(e.toString) && e.toString() === "[object FormData]"));
28
- }, ft = C("URLSearchParams"), [dt, pt, ht, mt] = ["ReadableStream", "Request", "Response", "Headers"].map(C), yt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
29
- function H(e, t, { allOwnKeys: n = !1 } = {}) {
28
+ }, ht = P("URLSearchParams"), [mt, yt, wt, Et] = ["ReadableStream", "Request", "Response", "Headers"].map(P), bt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
29
+ function M(e, t, { allOwnKeys: n = !1 } = {}) {
30
30
  if (e === null || typeof e > "u")
31
31
  return;
32
32
  let r, s;
@@ -56,16 +56,16 @@ function ne() {
56
56
  z(t[o]) && z(r) ? t[o] = ne(t[o], r) : z(r) ? t[o] = ne({}, r) : B(r) ? t[o] = r.slice() : t[o] = r;
57
57
  };
58
58
  for (let r = 0, s = arguments.length; r < s; r++)
59
- arguments[r] && H(arguments[r], n);
59
+ arguments[r] && M(arguments[r], n);
60
60
  return t;
61
61
  }
62
- const wt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, o) => {
62
+ const gt = (e, t, n, { allOwnKeys: r } = {}) => (M(t, (s, o) => {
63
63
  n && T(s) ? e[o] = Fe(s, n) : e[o] = s;
64
- }, { allOwnKeys: r }), e), bt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Et = (e, t, n, r) => {
64
+ }, { allOwnKeys: r }), e), Rt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), St = (e, t, n, r) => {
65
65
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
66
66
  value: t.prototype
67
67
  }), n && Object.assign(e.prototype, n);
68
- }, Rt = (e, t, n, r) => {
68
+ }, Ot = (e, t, n, r) => {
69
69
  let s, o, i;
70
70
  const c = {};
71
71
  if (t = t || {}, e == null) return t;
@@ -75,11 +75,11 @@ const wt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, o) => {
75
75
  e = n !== !1 && ue(e);
76
76
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
77
77
  return t;
78
- }, St = (e, t, n) => {
78
+ }, Tt = (e, t, n) => {
79
79
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
80
80
  const r = e.indexOf(t, n);
81
81
  return r !== -1 && r === n;
82
- }, gt = (e) => {
82
+ }, At = (e) => {
83
83
  if (!e) return null;
84
84
  if (B(e)) return e;
85
85
  let t = e.length;
@@ -88,31 +88,31 @@ const wt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, o) => {
88
88
  for (; t-- > 0; )
89
89
  n[t] = e[t];
90
90
  return n;
91
- }, Ot = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ue(Uint8Array)), Tt = (e, t) => {
91
+ }, xt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ue(Uint8Array)), Pt = (e, t) => {
92
92
  const r = (e && e[Symbol.iterator]).call(e);
93
93
  let s;
94
94
  for (; (s = r.next()) && !s.done; ) {
95
95
  const o = s.value;
96
96
  t.call(e, o[0], o[1]);
97
97
  }
98
- }, At = (e, t) => {
98
+ }, Ct = (e, t) => {
99
99
  let n;
100
100
  const r = [];
101
101
  for (; (n = e.exec(t)) !== null; )
102
102
  r.push(n);
103
103
  return r;
104
- }, xt = C("HTMLFormElement"), Ct = (e) => e.toLowerCase().replace(
104
+ }, Nt = P("HTMLFormElement"), Ft = (e) => e.toLowerCase().replace(
105
105
  /[-_\s]([a-z\d])(\w*)/g,
106
106
  function(n, r, s) {
107
107
  return r.toUpperCase() + s;
108
108
  }
109
- ), ye = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Nt = C("RegExp"), Be = (e, t) => {
109
+ ), ye = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _t = P("RegExp"), Be = (e, t) => {
110
110
  const n = Object.getOwnPropertyDescriptors(e), r = {};
111
- H(n, (s, o) => {
111
+ M(n, (s, o) => {
112
112
  let i;
113
113
  (i = t(s, o, e)) !== !1 && (r[o] = i || s);
114
114
  }), Object.defineProperties(e, r);
115
- }, Pt = (e) => {
115
+ }, Lt = (e) => {
116
116
  Be(e, (t, n) => {
117
117
  if (T(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
118
118
  return !1;
@@ -127,29 +127,29 @@ const wt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, o) => {
127
127
  });
128
128
  }
129
129
  });
130
- }, Ft = (e, t) => {
130
+ }, Ut = (e, t) => {
131
131
  const n = {}, r = (s) => {
132
132
  s.forEach((o) => {
133
133
  n[o] = !0;
134
134
  });
135
135
  };
136
136
  return B(e) ? r(e) : r(String(e).split(t)), n;
137
- }, _t = () => {
138
- }, Lt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Z = "abcdefghijklmnopqrstuvwxyz", we = "0123456789", ke = {
137
+ }, Dt = () => {
138
+ }, Bt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Z = "abcdefghijklmnopqrstuvwxyz", we = "0123456789", ke = {
139
139
  DIGIT: we,
140
140
  ALPHA: Z,
141
141
  ALPHA_DIGIT: Z + Z.toUpperCase() + we
142
- }, Ut = (e = 16, t = ke.ALPHA_DIGIT) => {
142
+ }, kt = (e = 16, t = ke.ALPHA_DIGIT) => {
143
143
  let n = "";
144
144
  const { length: r } = t;
145
145
  for (; e--; )
146
146
  n += t[Math.random() * r | 0];
147
147
  return n;
148
148
  };
149
- function Dt(e) {
149
+ function jt(e) {
150
150
  return !!(e && T(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
151
151
  }
152
- const Bt = (e) => {
152
+ const qt = (e) => {
153
153
  const t = new Array(10), n = (r, s) => {
154
154
  if (K(r)) {
155
155
  if (t.indexOf(r) >= 0)
@@ -157,81 +157,81 @@ const Bt = (e) => {
157
157
  if (!("toJSON" in r)) {
158
158
  t[s] = r;
159
159
  const o = B(r) ? [] : {};
160
- return H(r, (i, c) => {
161
- const f = n(i, s + 1);
162
- !q(f) && (o[c] = f);
160
+ return M(r, (i, c) => {
161
+ const d = n(i, s + 1);
162
+ !q(d) && (o[c] = d);
163
163
  }), t[s] = void 0, o;
164
164
  }
165
165
  }
166
166
  return r;
167
167
  };
168
168
  return n(e, 0);
169
- }, kt = C("AsyncFunction"), jt = (e) => e && (K(e) || T(e)) && T(e.then) && T(e.catch), je = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: s, data: o }) => {
169
+ }, Mt = P("AsyncFunction"), Ht = (e) => e && (K(e) || T(e)) && T(e.then) && T(e.catch), je = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: s, data: o }) => {
170
170
  s === L && o === n && r.length && r.shift()();
171
171
  }, !1), (s) => {
172
172
  r.push(s), L.postMessage(n, "*");
173
173
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
174
174
  typeof setImmediate == "function",
175
175
  T(L.postMessage)
176
- ), qt = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || je, a = {
176
+ ), It = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || je, a = {
177
177
  isArray: B,
178
178
  isArrayBuffer: _e,
179
- isBuffer: tt,
180
- isFormData: lt,
181
- isArrayBufferView: nt,
182
- isString: rt,
179
+ isBuffer: st,
180
+ isFormData: pt,
181
+ isArrayBufferView: ot,
182
+ isString: it,
183
183
  isNumber: Le,
184
- isBoolean: st,
184
+ isBoolean: at,
185
185
  isObject: K,
186
186
  isPlainObject: z,
187
- isReadableStream: dt,
188
- isRequest: pt,
189
- isResponse: ht,
190
- isHeaders: mt,
187
+ isReadableStream: mt,
188
+ isRequest: yt,
189
+ isResponse: wt,
190
+ isHeaders: Et,
191
191
  isUndefined: q,
192
- isDate: ot,
193
- isFile: it,
194
- isBlob: at,
195
- isRegExp: Nt,
192
+ isDate: ct,
193
+ isFile: ut,
194
+ isBlob: lt,
195
+ isRegExp: _t,
196
196
  isFunction: T,
197
- isStream: ut,
198
- isURLSearchParams: ft,
199
- isTypedArray: Ot,
200
- isFileList: ct,
201
- forEach: H,
197
+ isStream: dt,
198
+ isURLSearchParams: ht,
199
+ isTypedArray: xt,
200
+ isFileList: ft,
201
+ forEach: M,
202
202
  merge: ne,
203
- extend: wt,
204
- trim: yt,
205
- stripBOM: bt,
206
- inherits: Et,
207
- toFlatObject: Rt,
208
- kindOf: v,
209
- kindOfTest: C,
210
- endsWith: St,
211
- toArray: gt,
212
- forEachEntry: Tt,
213
- matchAll: At,
214
- isHTMLForm: xt,
203
+ extend: gt,
204
+ trim: bt,
205
+ stripBOM: Rt,
206
+ inherits: St,
207
+ toFlatObject: Ot,
208
+ kindOf: V,
209
+ kindOfTest: P,
210
+ endsWith: Tt,
211
+ toArray: At,
212
+ forEachEntry: Pt,
213
+ matchAll: Ct,
214
+ isHTMLForm: Nt,
215
215
  hasOwnProperty: ye,
216
216
  hasOwnProp: ye,
217
217
  // an alias to avoid ESLint no-prototype-builtins detection
218
218
  reduceDescriptors: Be,
219
- freezeMethods: Pt,
220
- toObjectSet: Ft,
221
- toCamelCase: Ct,
222
- noop: _t,
223
- toFiniteNumber: Lt,
219
+ freezeMethods: Lt,
220
+ toObjectSet: Ut,
221
+ toCamelCase: Ft,
222
+ noop: Dt,
223
+ toFiniteNumber: Bt,
224
224
  findKey: Ue,
225
225
  global: L,
226
226
  isContextDefined: De,
227
227
  ALPHABET: ke,
228
- generateString: Ut,
229
- isSpecCompliantForm: Dt,
230
- toJSONObject: Bt,
231
- isAsyncFn: kt,
232
- isThenable: jt,
228
+ generateString: kt,
229
+ isSpecCompliantForm: jt,
230
+ toJSONObject: qt,
231
+ isAsyncFn: Mt,
232
+ isThenable: Ht,
233
233
  setImmediate: je,
234
- asap: qt
234
+ asap: It
235
235
  };
236
236
  function m(e, t, n, r, s) {
237
237
  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);
@@ -257,7 +257,7 @@ a.inherits(m, Error, {
257
257
  };
258
258
  }
259
259
  });
260
- const qe = m.prototype, He = {};
260
+ const qe = m.prototype, Me = {};
261
261
  [
262
262
  "ERR_BAD_OPTION_VALUE",
263
263
  "ERR_BAD_OPTION",
@@ -273,32 +273,32 @@ const qe = m.prototype, He = {};
273
273
  "ERR_INVALID_URL"
274
274
  // eslint-disable-next-line func-names
275
275
  ].forEach((e) => {
276
- He[e] = { value: e };
276
+ Me[e] = { value: e };
277
277
  });
278
- Object.defineProperties(m, He);
278
+ Object.defineProperties(m, Me);
279
279
  Object.defineProperty(qe, "isAxiosError", { value: !0 });
280
280
  m.from = (e, t, n, r, s, o) => {
281
281
  const i = Object.create(qe);
282
- return a.toFlatObject(e, i, function(f) {
283
- return f !== Error.prototype;
282
+ return a.toFlatObject(e, i, function(d) {
283
+ return d !== Error.prototype;
284
284
  }, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
285
285
  };
286
- const Ht = null;
286
+ const zt = null;
287
287
  function re(e) {
288
288
  return a.isPlainObject(e) || a.isArray(e);
289
289
  }
290
- function Ie(e) {
290
+ function He(e) {
291
291
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
292
292
  }
293
- function be(e, t, n) {
293
+ function Ee(e, t, n) {
294
294
  return e ? e.concat(t).map(function(s, o) {
295
- return s = Ie(s), !n && o ? "[" + s + "]" : s;
295
+ return s = He(s), !n && o ? "[" + s + "]" : s;
296
296
  }).join(n ? "." : "") : t;
297
297
  }
298
- function It(e) {
298
+ function Jt(e) {
299
299
  return a.isArray(e) && !e.some(re);
300
300
  }
301
- const Mt = a.toFlatObject(a, {}, null, function(t) {
301
+ const vt = a.toFlatObject(a, {}, null, function(t) {
302
302
  return /^is[A-Z]/.test(t);
303
303
  });
304
304
  function G(e, t, n) {
@@ -308,61 +308,61 @@ function G(e, t, n) {
308
308
  metaTokens: !0,
309
309
  dots: !1,
310
310
  indexes: !1
311
- }, !1, function(y, d) {
312
- return !a.isUndefined(d[y]);
311
+ }, !1, function(y, p) {
312
+ return !a.isUndefined(p[y]);
313
313
  });
314
- const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
314
+ const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
315
315
  if (!a.isFunction(s))
316
316
  throw new TypeError("visitor must be a function");
317
317
  function u(h) {
318
318
  if (h === null) return "";
319
319
  if (a.isDate(h))
320
320
  return h.toISOString();
321
- if (!f && a.isBlob(h))
321
+ if (!d && a.isBlob(h))
322
322
  throw new m("Blob is not supported. Use a Buffer instead.");
323
- return a.isArrayBuffer(h) || a.isTypedArray(h) ? f && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
323
+ return a.isArrayBuffer(h) || a.isTypedArray(h) ? d && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
324
324
  }
325
- function l(h, y, d) {
325
+ function l(h, y, p) {
326
326
  let S = h;
327
- if (h && !d && typeof h == "object") {
327
+ if (h && !p && typeof h == "object") {
328
328
  if (a.endsWith(y, "{}"))
329
329
  y = r ? y : y.slice(0, -2), h = JSON.stringify(h);
330
- else if (a.isArray(h) && It(h) || (a.isFileList(h) || a.endsWith(y, "[]")) && (S = a.toArray(h)))
331
- return y = Ie(y), S.forEach(function(w, A) {
330
+ else if (a.isArray(h) && Jt(h) || (a.isFileList(h) || a.endsWith(y, "[]")) && (S = a.toArray(h)))
331
+ return y = He(y), S.forEach(function(w, A) {
332
332
  !(a.isUndefined(w) || w === null) && t.append(
333
333
  // eslint-disable-next-line no-nested-ternary
334
- i === !0 ? be([y], A, o) : i === null ? y : y + "[]",
334
+ i === !0 ? Ee([y], A, o) : i === null ? y : y + "[]",
335
335
  u(w)
336
336
  );
337
337
  }), !1;
338
338
  }
339
- return re(h) ? !0 : (t.append(be(d, y, o), u(h)), !1);
339
+ return re(h) ? !0 : (t.append(Ee(p, y, o), u(h)), !1);
340
340
  }
341
- const p = [], b = Object.assign(Mt, {
341
+ const f = [], E = Object.assign(vt, {
342
342
  defaultVisitor: l,
343
343
  convertValue: u,
344
344
  isVisitable: re
345
345
  });
346
- function E(h, y) {
346
+ function b(h, y) {
347
347
  if (!a.isUndefined(h)) {
348
- if (p.indexOf(h) !== -1)
348
+ if (f.indexOf(h) !== -1)
349
349
  throw Error("Circular reference detected in " + y.join("."));
350
- p.push(h), a.forEach(h, function(S, O) {
350
+ f.push(h), a.forEach(h, function(S, g) {
351
351
  (!(a.isUndefined(S) || S === null) && s.call(
352
352
  t,
353
353
  S,
354
- a.isString(O) ? O.trim() : O,
354
+ a.isString(g) ? g.trim() : g,
355
355
  y,
356
- b
357
- )) === !0 && E(S, y ? y.concat(O) : [O]);
358
- }), p.pop();
356
+ E
357
+ )) === !0 && b(S, y ? y.concat(g) : [g]);
358
+ }), f.pop();
359
359
  }
360
360
  }
361
361
  if (!a.isObject(e))
362
362
  throw new TypeError("data must be an object");
363
- return E(e), t;
363
+ return b(e), t;
364
364
  }
365
- function Ee(e) {
365
+ function be(e) {
366
366
  const t = {
367
367
  "!": "%21",
368
368
  "'": "%27",
@@ -379,25 +379,25 @@ function Ee(e) {
379
379
  function le(e, t) {
380
380
  this._pairs = [], e && G(e, this, t);
381
381
  }
382
- const Me = le.prototype;
383
- Me.append = function(t, n) {
382
+ const Ie = le.prototype;
383
+ Ie.append = function(t, n) {
384
384
  this._pairs.push([t, n]);
385
385
  };
386
- Me.toString = function(t) {
386
+ Ie.toString = function(t) {
387
387
  const n = t ? function(r) {
388
- return t.call(this, r, Ee);
389
- } : Ee;
388
+ return t.call(this, r, be);
389
+ } : be;
390
390
  return this._pairs.map(function(s) {
391
391
  return n(s[0]) + "=" + n(s[1]);
392
392
  }, "").join("&");
393
393
  };
394
- function zt(e) {
394
+ function $t(e) {
395
395
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
396
396
  }
397
397
  function ze(e, t, n) {
398
398
  if (!t)
399
399
  return e;
400
- const r = n && n.encode || zt, s = n && n.serialize;
400
+ const r = n && n.encode || $t, s = n && n.serialize;
401
401
  let o;
402
402
  if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new le(t, n).toString(r), o) {
403
403
  const i = e.indexOf("#");
@@ -405,7 +405,7 @@ function ze(e, t, n) {
405
405
  }
406
406
  return e;
407
407
  }
408
- class Re {
408
+ class ge {
409
409
  constructor() {
410
410
  this.handlers = [];
411
411
  }
@@ -463,36 +463,36 @@ const Je = {
463
463
  silentJSONParsing: !0,
464
464
  forcedJSONParsing: !0,
465
465
  clarifyTimeoutError: !1
466
- }, Jt = typeof URLSearchParams < "u" ? URLSearchParams : le, Vt = typeof FormData < "u" ? FormData : null, $t = typeof Blob < "u" ? Blob : null, vt = {
466
+ }, Vt = typeof URLSearchParams < "u" ? URLSearchParams : le, Wt = typeof FormData < "u" ? FormData : null, Kt = typeof Blob < "u" ? Blob : null, Gt = {
467
467
  isBrowser: !0,
468
468
  classes: {
469
- URLSearchParams: Jt,
470
- FormData: Vt,
471
- Blob: $t
469
+ URLSearchParams: Vt,
470
+ FormData: Wt,
471
+ Blob: Kt
472
472
  },
473
473
  protocols: ["http", "https", "file", "blob", "url", "data"]
474
- }, fe = typeof window < "u" && typeof document < "u", Wt = ((e) => fe && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Kt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
475
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Gt = fe && window.location.href || "http://localhost", Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
474
+ }, fe = typeof window < "u" && typeof document < "u", Xt = ((e) => fe && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Qt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
475
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Zt = fe && window.location.href || "http://localhost", Yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
476
476
  __proto__: null,
477
477
  hasBrowserEnv: fe,
478
- hasStandardBrowserEnv: Wt,
479
- hasStandardBrowserWebWorkerEnv: Kt,
480
- origin: Gt
478
+ hasStandardBrowserEnv: Xt,
479
+ hasStandardBrowserWebWorkerEnv: Qt,
480
+ origin: Zt
481
481
  }, Symbol.toStringTag, { value: "Module" })), x = {
482
- ...Xt,
483
- ...vt
482
+ ...Yt,
483
+ ...Gt
484
484
  };
485
- function Qt(e, t) {
485
+ function en(e, t) {
486
486
  return G(e, new x.classes.URLSearchParams(), Object.assign({
487
487
  visitor: function(n, r, s, o) {
488
488
  return x.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
489
489
  }
490
490
  }, t));
491
491
  }
492
- function Zt(e) {
492
+ function tn(e) {
493
493
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
494
494
  }
495
- function Yt(e) {
495
+ function nn(e) {
496
496
  const t = {}, n = Object.keys(e);
497
497
  let r;
498
498
  const s = n.length;
@@ -501,22 +501,22 @@ function Yt(e) {
501
501
  o = n[r], t[o] = e[o];
502
502
  return t;
503
503
  }
504
- function Ve(e) {
504
+ function ve(e) {
505
505
  function t(n, r, s, o) {
506
506
  let i = n[o++];
507
507
  if (i === "__proto__") return !0;
508
- const c = Number.isFinite(+i), f = o >= n.length;
509
- return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Yt(s[i])), !c);
508
+ const c = Number.isFinite(+i), d = o >= n.length;
509
+ return i = !i && a.isArray(s) ? s.length : i, d ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = nn(s[i])), !c);
510
510
  }
511
511
  if (a.isFormData(e) && a.isFunction(e.entries)) {
512
512
  const n = {};
513
513
  return a.forEachEntry(e, (r, s) => {
514
- t(Zt(r), s, n, 0);
514
+ t(tn(r), s, n, 0);
515
515
  }), n;
516
516
  }
517
517
  return null;
518
518
  }
519
- function en(e, t, n) {
519
+ function rn(e, t, n) {
520
520
  if (a.isString(e))
521
521
  try {
522
522
  return (t || JSON.parse)(e), a.trim(e);
@@ -526,13 +526,13 @@ function en(e, t, n) {
526
526
  }
527
527
  return (n || JSON.stringify)(e);
528
528
  }
529
- const I = {
529
+ const H = {
530
530
  transitional: Je,
531
531
  adapter: ["xhr", "http", "fetch"],
532
532
  transformRequest: [function(t, n) {
533
533
  const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
534
534
  if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
535
- return s ? JSON.stringify(Ve(t)) : t;
535
+ return s ? JSON.stringify(ve(t)) : t;
536
536
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
537
537
  return t;
538
538
  if (a.isArrayBufferView(t))
@@ -542,20 +542,20 @@ const I = {
542
542
  let c;
543
543
  if (o) {
544
544
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
545
- return Qt(t, this.formSerializer).toString();
545
+ return en(t, this.formSerializer).toString();
546
546
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
547
- const f = this.env && this.env.FormData;
547
+ const d = this.env && this.env.FormData;
548
548
  return G(
549
549
  c ? { "files[]": t } : t,
550
- f && new f(),
550
+ d && new d(),
551
551
  this.formSerializer
552
552
  );
553
553
  }
554
554
  }
555
- return o || s ? (n.setContentType("application/json", !1), en(t)) : t;
555
+ return o || s ? (n.setContentType("application/json", !1), rn(t)) : t;
556
556
  }],
557
557
  transformResponse: [function(t) {
558
- const n = this.transitional || I.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
558
+ const n = this.transitional || H.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
559
559
  if (a.isResponse(t) || a.isReadableStream(t))
560
560
  return t;
561
561
  if (t && a.isString(t) && (r && !this.responseType || s)) {
@@ -593,9 +593,9 @@ const I = {
593
593
  }
594
594
  };
595
595
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
596
- I.headers[e] = {};
596
+ H.headers[e] = {};
597
597
  });
598
- const tn = a.toObjectSet([
598
+ const sn = a.toObjectSet([
599
599
  "age",
600
600
  "authorization",
601
601
  "content-length",
@@ -613,28 +613,28 @@ const tn = a.toObjectSet([
613
613
  "referer",
614
614
  "retry-after",
615
615
  "user-agent"
616
- ]), nn = (e) => {
616
+ ]), on = (e) => {
617
617
  const t = {};
618
618
  let n, r, s;
619
619
  return e && e.split(`
620
620
  `).forEach(function(i) {
621
- s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && tn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
621
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.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);
622
622
  }), t;
623
- }, Se = Symbol("internals");
623
+ }, Re = Symbol("internals");
624
624
  function j(e) {
625
625
  return e && String(e).trim().toLowerCase();
626
626
  }
627
627
  function J(e) {
628
628
  return e === !1 || e == null ? e : a.isArray(e) ? e.map(J) : String(e);
629
629
  }
630
- function rn(e) {
630
+ function an(e) {
631
631
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
632
632
  let r;
633
633
  for (; r = n.exec(e); )
634
634
  t[r[1]] = r[2];
635
635
  return t;
636
636
  }
637
- const sn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
637
+ const cn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
638
638
  function Y(e, t, n, r, s) {
639
639
  if (a.isFunction(r))
640
640
  return r.call(this, t, n);
@@ -645,10 +645,10 @@ function Y(e, t, n, r, s) {
645
645
  return r.test(t);
646
646
  }
647
647
  }
648
- function on(e) {
648
+ function un(e) {
649
649
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
650
650
  }
651
- function an(e, t) {
651
+ function ln(e, t) {
652
652
  const n = a.toCamelCase(" " + t);
653
653
  ["get", "set", "has"].forEach((r) => {
654
654
  Object.defineProperty(e, r + n, {
@@ -659,27 +659,27 @@ function an(e, t) {
659
659
  });
660
660
  });
661
661
  }
662
- class g {
662
+ class O {
663
663
  constructor(t) {
664
664
  t && this.set(t);
665
665
  }
666
666
  set(t, n, r) {
667
667
  const s = this;
668
- function o(c, f, u) {
669
- const l = j(f);
668
+ function o(c, d, u) {
669
+ const l = j(d);
670
670
  if (!l)
671
671
  throw new Error("header name must be a non-empty string");
672
- const p = a.findKey(s, l);
673
- (!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || f] = J(c));
672
+ const f = a.findKey(s, l);
673
+ (!f || s[f] === void 0 || u === !0 || u === void 0 && s[f] !== !1) && (s[f || d] = J(c));
674
674
  }
675
- const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
675
+ const i = (c, d) => a.forEach(c, (u, l) => o(u, l, d));
676
676
  if (a.isPlainObject(t) || t instanceof this.constructor)
677
677
  i(t, n);
678
- else if (a.isString(t) && (t = t.trim()) && !sn(t))
679
- i(nn(t), n);
678
+ else if (a.isString(t) && (t = t.trim()) && !cn(t))
679
+ i(on(t), n);
680
680
  else if (a.isHeaders(t))
681
- for (const [c, f] of t.entries())
682
- o(f, c, r);
681
+ for (const [c, d] of t.entries())
682
+ o(d, c, r);
683
683
  else
684
684
  t != null && o(n, t, r);
685
685
  return this;
@@ -692,7 +692,7 @@ class g {
692
692
  if (!n)
693
693
  return s;
694
694
  if (n === !0)
695
- return rn(s);
695
+ return an(s);
696
696
  if (a.isFunction(n))
697
697
  return n.call(this, s, r);
698
698
  if (a.isRegExp(n))
@@ -736,7 +736,7 @@ class g {
736
736
  n[i] = J(s), delete n[o];
737
737
  return;
738
738
  }
739
- const c = t ? on(o) : String(o).trim();
739
+ const c = t ? un(o) : String(o).trim();
740
740
  c !== o && delete n[o], n[c] = J(s), r[c] = !0;
741
741
  }), this;
742
742
  }
@@ -767,18 +767,18 @@ class g {
767
767
  return n.forEach((s) => r.set(s)), r;
768
768
  }
769
769
  static accessor(t) {
770
- const r = (this[Se] = this[Se] = {
770
+ const r = (this[Re] = this[Re] = {
771
771
  accessors: {}
772
772
  }).accessors, s = this.prototype;
773
773
  function o(i) {
774
774
  const c = j(i);
775
- r[c] || (an(s, i), r[c] = !0);
775
+ r[c] || (ln(s, i), r[c] = !0);
776
776
  }
777
777
  return a.isArray(t) ? t.forEach(o) : o(t), this;
778
778
  }
779
779
  }
780
- g.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
781
- a.reduceDescriptors(g.prototype, ({ value: e }, t) => {
780
+ O.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
781
+ a.reduceDescriptors(O.prototype, ({ value: e }, t) => {
782
782
  let n = t[0].toUpperCase() + t.slice(1);
783
783
  return {
784
784
  get: () => e,
@@ -787,9 +787,9 @@ a.reduceDescriptors(g.prototype, ({ value: e }, t) => {
787
787
  }
788
788
  };
789
789
  });
790
- a.freezeMethods(g);
790
+ a.freezeMethods(O);
791
791
  function ee(e, t) {
792
- const n = this || I, r = t || n, s = g.from(r.headers);
792
+ const n = this || H, r = t || n, s = O.from(r.headers);
793
793
  let o = r.data;
794
794
  return a.forEach(e, function(c) {
795
795
  o = c.call(n, o, s.normalize(), t ? t.status : void 0);
@@ -804,7 +804,7 @@ function k(e, t, n) {
804
804
  a.inherits(k, m, {
805
805
  __CANCEL__: !0
806
806
  });
807
- function ve(e, t, n) {
807
+ function Ve(e, t, n) {
808
808
  const r = n.config.validateStatus;
809
809
  !n.status || !r || r(n.status) ? e(n) : t(new m(
810
810
  "Request failed with status code " + n.status,
@@ -814,65 +814,65 @@ function ve(e, t, n) {
814
814
  n
815
815
  ));
816
816
  }
817
- function cn(e) {
817
+ function fn(e) {
818
818
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
819
819
  return t && t[1] || "";
820
820
  }
821
- function un(e, t) {
821
+ function dn(e, t) {
822
822
  e = e || 10;
823
823
  const n = new Array(e), r = new Array(e);
824
824
  let s = 0, o = 0, i;
825
- return t = t !== void 0 ? t : 1e3, function(f) {
825
+ return t = t !== void 0 ? t : 1e3, function(d) {
826
826
  const u = Date.now(), l = r[o];
827
- i || (i = u), n[s] = f, r[s] = u;
828
- let p = o, b = 0;
829
- for (; p !== s; )
830
- b += n[p++], p = p % e;
827
+ i || (i = u), n[s] = d, r[s] = u;
828
+ let f = o, E = 0;
829
+ for (; f !== s; )
830
+ E += n[f++], f = f % e;
831
831
  if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
832
832
  return;
833
- const E = l && u - l;
834
- return E ? Math.round(b * 1e3 / E) : void 0;
833
+ const b = l && u - l;
834
+ return b ? Math.round(E * 1e3 / b) : void 0;
835
835
  };
836
836
  }
837
- function ln(e, t) {
837
+ function pn(e, t) {
838
838
  let n = 0, r = 1e3 / t, s, o;
839
839
  const i = (u, l = Date.now()) => {
840
840
  n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
841
841
  };
842
842
  return [(...u) => {
843
- const l = Date.now(), p = l - n;
844
- p >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
843
+ const l = Date.now(), f = l - n;
844
+ f >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
845
845
  o = null, i(s);
846
- }, r - p)));
846
+ }, r - f)));
847
847
  }, () => s && i(s)];
848
848
  }
849
- const V = (e, t, n = 3) => {
849
+ const v = (e, t, n = 3) => {
850
850
  let r = 0;
851
- const s = un(50, 250);
852
- return ln((o) => {
853
- const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
851
+ const s = dn(50, 250);
852
+ return pn((o) => {
853
+ const i = o.loaded, c = o.lengthComputable ? o.total : void 0, d = i - r, u = s(d), l = i <= c;
854
854
  r = i;
855
- const p = {
855
+ const f = {
856
856
  loaded: i,
857
857
  total: c,
858
858
  progress: c ? i / c : void 0,
859
- bytes: f,
859
+ bytes: d,
860
860
  rate: u || void 0,
861
861
  estimated: u && c && l ? (c - i) / u : void 0,
862
862
  event: o,
863
863
  lengthComputable: c != null,
864
864
  [t ? "download" : "upload"]: !0
865
865
  };
866
- e(p);
866
+ e(f);
867
867
  }, n);
868
- }, ge = (e, t) => {
868
+ }, Se = (e, t) => {
869
869
  const n = e != null;
870
870
  return [(r) => t[0]({
871
871
  lengthComputable: n,
872
872
  total: e,
873
873
  loaded: r
874
874
  }), t[1]];
875
- }, Oe = (e) => (...t) => a.asap(() => e(...t)), fn = x.hasStandardBrowserEnv ? (
875
+ }, Oe = (e) => (...t) => a.asap(() => e(...t)), hn = x.hasStandardBrowserEnv ? (
876
876
  // Standard browser envs have full support of the APIs needed to test
877
877
  // whether the request URL is of the same origin as current location.
878
878
  function() {
@@ -903,7 +903,7 @@ const V = (e, t, n = 3) => {
903
903
  return !0;
904
904
  };
905
905
  }()
906
- ), dn = x.hasStandardBrowserEnv ? (
906
+ ), mn = x.hasStandardBrowserEnv ? (
907
907
  // Standard browser envs support document.cookie
908
908
  {
909
909
  write(e, t, n, r, s, o) {
@@ -930,27 +930,27 @@ const V = (e, t, n = 3) => {
930
930
  }
931
931
  }
932
932
  );
933
- function pn(e) {
933
+ function yn(e) {
934
934
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
935
935
  }
936
- function hn(e, t) {
936
+ function wn(e, t) {
937
937
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
938
938
  }
939
939
  function We(e, t) {
940
- return e && !pn(t) ? hn(e, t) : t;
940
+ return e && !yn(t) ? wn(e, t) : t;
941
941
  }
942
- const Te = (e) => e instanceof g ? { ...e } : e;
942
+ const Te = (e) => e instanceof O ? { ...e } : e;
943
943
  function D(e, t) {
944
944
  t = t || {};
945
945
  const n = {};
946
- function r(u, l, p) {
947
- return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: p }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
946
+ function r(u, l, f) {
947
+ return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: f }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
948
948
  }
949
- function s(u, l, p) {
949
+ function s(u, l, f) {
950
950
  if (a.isUndefined(l)) {
951
951
  if (!a.isUndefined(u))
952
- return r(void 0, u, p);
953
- } else return r(u, l, p);
952
+ return r(void 0, u, f);
953
+ } else return r(u, l, f);
954
954
  }
955
955
  function o(u, l) {
956
956
  if (!a.isUndefined(l))
@@ -962,13 +962,13 @@ function D(e, t) {
962
962
  return r(void 0, u);
963
963
  } else return r(void 0, l);
964
964
  }
965
- function c(u, l, p) {
966
- if (p in t)
965
+ function c(u, l, f) {
966
+ if (f in t)
967
967
  return r(u, l);
968
- if (p in e)
968
+ if (f in e)
969
969
  return r(void 0, u);
970
970
  }
971
- const f = {
971
+ const d = {
972
972
  url: o,
973
973
  method: o,
974
974
  data: o,
@@ -1000,94 +1000,94 @@ function D(e, t) {
1000
1000
  headers: (u, l) => s(Te(u), Te(l), !0)
1001
1001
  };
1002
1002
  return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
1003
- const p = f[l] || s, b = p(e[l], t[l], l);
1004
- a.isUndefined(b) && p !== c || (n[l] = b);
1003
+ const f = d[l] || s, E = f(e[l], t[l], l);
1004
+ a.isUndefined(E) && f !== c || (n[l] = E);
1005
1005
  }), n;
1006
1006
  }
1007
1007
  const Ke = (e) => {
1008
1008
  const t = D({}, e);
1009
1009
  let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
1010
- t.headers = i = g.from(i), t.url = ze(We(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
1010
+ t.headers = i = O.from(i), t.url = ze(We(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
1011
1011
  "Authorization",
1012
1012
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1013
1013
  );
1014
- let f;
1014
+ let d;
1015
1015
  if (a.isFormData(n)) {
1016
1016
  if (x.hasStandardBrowserEnv || x.hasStandardBrowserWebWorkerEnv)
1017
1017
  i.setContentType(void 0);
1018
- else if ((f = i.getContentType()) !== !1) {
1019
- const [u, ...l] = f ? f.split(";").map((p) => p.trim()).filter(Boolean) : [];
1018
+ else if ((d = i.getContentType()) !== !1) {
1019
+ const [u, ...l] = d ? d.split(";").map((f) => f.trim()).filter(Boolean) : [];
1020
1020
  i.setContentType([u || "multipart/form-data", ...l].join("; "));
1021
1021
  }
1022
1022
  }
1023
- if (x.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && fn(t.url))) {
1024
- const u = s && o && dn.read(o);
1023
+ if (x.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && hn(t.url))) {
1024
+ const u = s && o && mn.read(o);
1025
1025
  u && i.set(s, u);
1026
1026
  }
1027
1027
  return t;
1028
- }, mn = typeof XMLHttpRequest < "u", yn = mn && function(e) {
1028
+ }, En = typeof XMLHttpRequest < "u", bn = En && function(e) {
1029
1029
  return new Promise(function(n, r) {
1030
1030
  const s = Ke(e);
1031
1031
  let o = s.data;
1032
- const i = g.from(s.headers).normalize();
1033
- let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, p, b, E, h;
1032
+ const i = O.from(s.headers).normalize();
1033
+ let { responseType: c, onUploadProgress: d, onDownloadProgress: u } = s, l, f, E, b, h;
1034
1034
  function y() {
1035
- E && E(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1035
+ b && b(), h && h(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1036
1036
  }
1037
- let d = new XMLHttpRequest();
1038
- d.open(s.method.toUpperCase(), s.url, !0), d.timeout = s.timeout;
1037
+ let p = new XMLHttpRequest();
1038
+ p.open(s.method.toUpperCase(), s.url, !0), p.timeout = s.timeout;
1039
1039
  function S() {
1040
- if (!d)
1040
+ if (!p)
1041
1041
  return;
1042
- const w = g.from(
1043
- "getAllResponseHeaders" in d && d.getAllResponseHeaders()
1042
+ const w = O.from(
1043
+ "getAllResponseHeaders" in p && p.getAllResponseHeaders()
1044
1044
  ), _ = {
1045
- data: !c || c === "text" || c === "json" ? d.responseText : d.response,
1046
- status: d.status,
1047
- statusText: d.statusText,
1045
+ data: !c || c === "text" || c === "json" ? p.responseText : p.response,
1046
+ status: p.status,
1047
+ statusText: p.statusText,
1048
1048
  headers: w,
1049
1049
  config: e,
1050
- request: d
1050
+ request: p
1051
1051
  };
1052
- ve(function(P) {
1053
- n(P), y();
1054
- }, function(P) {
1055
- r(P), y();
1056
- }, _), d = null;
1052
+ Ve(function(N) {
1053
+ n(N), y();
1054
+ }, function(N) {
1055
+ r(N), y();
1056
+ }, _), p = null;
1057
1057
  }
1058
- "onloadend" in d ? d.onloadend = S : d.onreadystatechange = function() {
1059
- !d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.indexOf("file:") === 0) || setTimeout(S);
1060
- }, d.onabort = function() {
1061
- d && (r(new m("Request aborted", m.ECONNABORTED, e, d)), d = null);
1062
- }, d.onerror = function() {
1063
- r(new m("Network Error", m.ERR_NETWORK, e, d)), d = null;
1064
- }, d.ontimeout = function() {
1058
+ "onloadend" in p ? p.onloadend = S : p.onreadystatechange = function() {
1059
+ !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(S);
1060
+ }, p.onabort = function() {
1061
+ p && (r(new m("Request aborted", m.ECONNABORTED, e, p)), p = null);
1062
+ }, p.onerror = function() {
1063
+ r(new m("Network Error", m.ERR_NETWORK, e, p)), p = null;
1064
+ }, p.ontimeout = function() {
1065
1065
  let A = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1066
1066
  const _ = s.transitional || Je;
1067
1067
  s.timeoutErrorMessage && (A = s.timeoutErrorMessage), r(new m(
1068
1068
  A,
1069
1069
  _.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1070
1070
  e,
1071
- d
1072
- )), d = null;
1073
- }, o === void 0 && i.setContentType(null), "setRequestHeader" in d && a.forEach(i.toJSON(), function(A, _) {
1074
- d.setRequestHeader(_, A);
1075
- }), a.isUndefined(s.withCredentials) || (d.withCredentials = !!s.withCredentials), c && c !== "json" && (d.responseType = s.responseType), u && ([b, h] = V(u, !0), d.addEventListener("progress", b)), f && d.upload && ([p, E] = V(f), d.upload.addEventListener("progress", p), d.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (l = (w) => {
1076
- d && (r(!w || w.type ? new k(null, e, d) : w), d.abort(), d = null);
1071
+ p
1072
+ )), p = null;
1073
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in p && a.forEach(i.toJSON(), function(A, _) {
1074
+ p.setRequestHeader(_, A);
1075
+ }), a.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), c && c !== "json" && (p.responseType = s.responseType), u && ([E, h] = v(u, !0), p.addEventListener("progress", E)), d && p.upload && ([f, b] = v(d), p.upload.addEventListener("progress", f), p.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (l = (w) => {
1076
+ p && (r(!w || w.type ? new k(null, e, p) : w), p.abort(), p = null);
1077
1077
  }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1078
- const O = cn(s.url);
1079
- if (O && x.protocols.indexOf(O) === -1) {
1080
- r(new m("Unsupported protocol " + O + ":", m.ERR_BAD_REQUEST, e));
1078
+ const g = fn(s.url);
1079
+ if (g && x.protocols.indexOf(g) === -1) {
1080
+ r(new m("Unsupported protocol " + g + ":", m.ERR_BAD_REQUEST, e));
1081
1081
  return;
1082
1082
  }
1083
- d.send(o || null);
1083
+ p.send(o || null);
1084
1084
  });
1085
- }, wn = (e, t) => {
1085
+ }, gn = (e, t) => {
1086
1086
  let n = new AbortController(), r;
1087
- const s = function(f) {
1087
+ const s = function(d) {
1088
1088
  if (!r) {
1089
1089
  r = !0, i();
1090
- const u = f instanceof Error ? f : this.reason;
1090
+ const u = d instanceof Error ? d : this.reason;
1091
1091
  n.abort(u instanceof m ? u : new k(u instanceof Error ? u.message : u));
1092
1092
  }
1093
1093
  };
@@ -1095,16 +1095,16 @@ const Ke = (e) => {
1095
1095
  s(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT));
1096
1096
  }, t);
1097
1097
  const i = () => {
1098
- e && (o && clearTimeout(o), o = null, e.forEach((f) => {
1099
- f && (f.removeEventListener ? f.removeEventListener("abort", s) : f.unsubscribe(s));
1098
+ e && (o && clearTimeout(o), o = null, e.forEach((d) => {
1099
+ d && (d.removeEventListener ? d.removeEventListener("abort", s) : d.unsubscribe(s));
1100
1100
  }), e = null);
1101
1101
  };
1102
- e.forEach((f) => f && f.addEventListener && f.addEventListener("abort", s));
1102
+ e.forEach((d) => d && d.addEventListener && d.addEventListener("abort", s));
1103
1103
  const { signal: c } = n;
1104
1104
  return c.unsubscribe = i, [c, () => {
1105
1105
  o && clearTimeout(o), o = null;
1106
1106
  }];
1107
- }, bn = function* (e, t) {
1107
+ }, Rn = function* (e, t) {
1108
1108
  let n = e.byteLength;
1109
1109
  if (!t || n < t) {
1110
1110
  yield e;
@@ -1113,34 +1113,34 @@ const Ke = (e) => {
1113
1113
  let r = 0, s;
1114
1114
  for (; r < n; )
1115
1115
  s = r + t, yield e.slice(r, s), r = s;
1116
- }, En = async function* (e, t, n) {
1116
+ }, Sn = async function* (e, t, n) {
1117
1117
  for await (const r of e)
1118
- yield* bn(ArrayBuffer.isView(r) ? r : await n(String(r)), t);
1118
+ yield* Rn(ArrayBuffer.isView(r) ? r : await n(String(r)), t);
1119
1119
  }, Ae = (e, t, n, r, s) => {
1120
- const o = En(e, t, s);
1121
- let i = 0, c, f = (u) => {
1120
+ const o = Sn(e, t, s);
1121
+ let i = 0, c, d = (u) => {
1122
1122
  c || (c = !0, r && r(u));
1123
1123
  };
1124
1124
  return new ReadableStream({
1125
1125
  async pull(u) {
1126
1126
  try {
1127
- const { done: l, value: p } = await o.next();
1127
+ const { done: l, value: f } = await o.next();
1128
1128
  if (l) {
1129
- f(), u.close();
1129
+ d(), u.close();
1130
1130
  return;
1131
1131
  }
1132
- let b = p.byteLength;
1132
+ let E = f.byteLength;
1133
1133
  if (n) {
1134
- let E = i += b;
1135
- n(E);
1134
+ let b = i += E;
1135
+ n(b);
1136
1136
  }
1137
- u.enqueue(new Uint8Array(p));
1137
+ u.enqueue(new Uint8Array(f));
1138
1138
  } catch (l) {
1139
- throw f(l), l;
1139
+ throw d(l), l;
1140
1140
  }
1141
1141
  },
1142
1142
  cancel(u) {
1143
- return f(u), o.return();
1143
+ return d(u), o.return();
1144
1144
  }
1145
1145
  }, {
1146
1146
  highWaterMark: 2
@@ -1151,7 +1151,7 @@ const Ke = (e) => {
1151
1151
  } catch {
1152
1152
  return !1;
1153
1153
  }
1154
- }, Rn = Ge && Xe(() => {
1154
+ }, On = Ge && Xe(() => {
1155
1155
  let e = !1;
1156
1156
  const t = new Request(x.origin, {
1157
1157
  body: new ReadableStream(),
@@ -1171,7 +1171,7 @@ X && ((e) => {
1171
1171
  });
1172
1172
  });
1173
1173
  })(new Response());
1174
- const Sn = async (e) => {
1174
+ const Tn = async (e) => {
1175
1175
  if (e == null)
1176
1176
  return 0;
1177
1177
  if (a.isBlob(e))
@@ -1182,10 +1182,10 @@ const Sn = async (e) => {
1182
1182
  return e.byteLength;
1183
1183
  if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1184
1184
  return (await se(e)).byteLength;
1185
- }, gn = async (e, t) => {
1185
+ }, An = async (e, t) => {
1186
1186
  const n = a.toFiniteNumber(e.getContentLength());
1187
- return n ?? Sn(t);
1188
- }, On = X && (async (e) => {
1187
+ return n ?? Tn(t);
1188
+ }, xn = X && (async (e) => {
1189
1189
  let {
1190
1190
  url: t,
1191
1191
  method: n,
@@ -1194,86 +1194,86 @@ const Sn = async (e) => {
1194
1194
  cancelToken: o,
1195
1195
  timeout: i,
1196
1196
  onDownloadProgress: c,
1197
- onUploadProgress: f,
1197
+ onUploadProgress: d,
1198
1198
  responseType: u,
1199
1199
  headers: l,
1200
- withCredentials: p = "same-origin",
1201
- fetchOptions: b
1200
+ withCredentials: f = "same-origin",
1201
+ fetchOptions: E
1202
1202
  } = Ke(e);
1203
1203
  u = u ? (u + "").toLowerCase() : "text";
1204
- let [E, h] = s || o || i ? wn([s, o], i) : [], y, d;
1204
+ let [b, h] = s || o || i ? gn([s, o], i) : [], y, p;
1205
1205
  const S = () => {
1206
1206
  !y && setTimeout(() => {
1207
- E && E.unsubscribe();
1207
+ b && b.unsubscribe();
1208
1208
  }), y = !0;
1209
1209
  };
1210
- let O;
1210
+ let g;
1211
1211
  try {
1212
- if (f && Rn && n !== "get" && n !== "head" && (O = await gn(l, r)) !== 0) {
1213
- let N = new Request(t, {
1212
+ if (d && On && n !== "get" && n !== "head" && (g = await An(l, r)) !== 0) {
1213
+ let C = new Request(t, {
1214
1214
  method: "POST",
1215
1215
  body: r,
1216
1216
  duplex: "half"
1217
- }), P;
1218
- if (a.isFormData(r) && (P = N.headers.get("content-type")) && l.setContentType(P), N.body) {
1219
- const [Q, M] = ge(
1220
- O,
1221
- V(Oe(f))
1217
+ }), N;
1218
+ if (a.isFormData(r) && (N = C.headers.get("content-type")) && l.setContentType(N), C.body) {
1219
+ const [Q, I] = Se(
1220
+ g,
1221
+ v(Oe(d))
1222
1222
  );
1223
- r = Ae(N.body, xe, Q, M, se);
1223
+ r = Ae(C.body, xe, Q, I, se);
1224
1224
  }
1225
1225
  }
1226
- a.isString(p) || (p = p ? "include" : "omit"), d = new Request(t, {
1227
- ...b,
1228
- signal: E,
1226
+ a.isString(f) || (f = f ? "include" : "omit"), p = new Request(t, {
1227
+ ...E,
1228
+ signal: b,
1229
1229
  method: n.toUpperCase(),
1230
1230
  headers: l.normalize().toJSON(),
1231
1231
  body: r,
1232
1232
  duplex: "half",
1233
- credentials: p
1233
+ credentials: f
1234
1234
  });
1235
- let w = await fetch(d);
1235
+ let w = await fetch(p);
1236
1236
  const A = oe && (u === "stream" || u === "response");
1237
1237
  if (oe && (c || A)) {
1238
- const N = {};
1238
+ const C = {};
1239
1239
  ["status", "statusText", "headers"].forEach((he) => {
1240
- N[he] = w[he];
1240
+ C[he] = w[he];
1241
1241
  });
1242
- const P = a.toFiniteNumber(w.headers.get("content-length")), [Q, M] = c && ge(
1243
- P,
1244
- V(Oe(c), !0)
1242
+ const N = a.toFiniteNumber(w.headers.get("content-length")), [Q, I] = c && Se(
1243
+ N,
1244
+ v(Oe(c), !0)
1245
1245
  ) || [];
1246
1246
  w = new Response(
1247
1247
  Ae(w.body, xe, Q, () => {
1248
- M && M(), A && S();
1248
+ I && I(), A && S();
1249
1249
  }, se),
1250
- N
1250
+ C
1251
1251
  );
1252
1252
  }
1253
1253
  u = u || "text";
1254
1254
  let _ = await $[a.findKey($, u) || "text"](w, e);
1255
- return !A && S(), h && h(), await new Promise((N, P) => {
1256
- ve(N, P, {
1255
+ return !A && S(), h && h(), await new Promise((C, N) => {
1256
+ Ve(C, N, {
1257
1257
  data: _,
1258
- headers: g.from(w.headers),
1258
+ headers: O.from(w.headers),
1259
1259
  status: w.status,
1260
1260
  statusText: w.statusText,
1261
1261
  config: e,
1262
- request: d
1262
+ request: p
1263
1263
  });
1264
1264
  });
1265
1265
  } catch (w) {
1266
1266
  throw S(), w && w.name === "TypeError" && /fetch/i.test(w.message) ? Object.assign(
1267
- new m("Network Error", m.ERR_NETWORK, e, d),
1267
+ new m("Network Error", m.ERR_NETWORK, e, p),
1268
1268
  {
1269
1269
  cause: w.cause || w
1270
1270
  }
1271
- ) : m.from(w, w && w.code, e, d);
1271
+ ) : m.from(w, w && w.code, e, p);
1272
1272
  }
1273
1273
  }), ie = {
1274
- http: Ht,
1275
- xhr: yn,
1276
- fetch: On
1274
+ http: zt,
1275
+ xhr: bn,
1276
+ fetch: xn
1277
1277
  };
1278
1278
  a.forEach(ie, (e, t) => {
1279
1279
  if (e) {
@@ -1284,7 +1284,7 @@ a.forEach(ie, (e, t) => {
1284
1284
  Object.defineProperty(e, "adapterName", { value: t });
1285
1285
  }
1286
1286
  });
1287
- const Ce = (e) => `- ${e}`, Tn = (e) => a.isFunction(e) || e === null || e === !1, Qe = {
1287
+ const Pe = (e) => `- ${e}`, Pn = (e) => a.isFunction(e) || e === null || e === !1, Qe = {
1288
1288
  getAdapter: (e) => {
1289
1289
  e = a.isArray(e) ? e : [e];
1290
1290
  const { length: t } = e;
@@ -1293,7 +1293,7 @@ const Ce = (e) => `- ${e}`, Tn = (e) => a.isFunction(e) || e === null || e === !
1293
1293
  for (let o = 0; o < t; o++) {
1294
1294
  n = e[o];
1295
1295
  let i;
1296
- if (r = n, !Tn(n) && (r = ie[(i = String(n)).toLowerCase()], r === void 0))
1296
+ if (r = n, !Pn(n) && (r = ie[(i = String(n)).toLowerCase()], r === void 0))
1297
1297
  throw new m(`Unknown adapter '${i}'`);
1298
1298
  if (r)
1299
1299
  break;
@@ -1301,11 +1301,11 @@ const Ce = (e) => `- ${e}`, Tn = (e) => a.isFunction(e) || e === null || e === !
1301
1301
  }
1302
1302
  if (!r) {
1303
1303
  const o = Object.entries(s).map(
1304
- ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1304
+ ([c, d]) => `adapter ${c} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
1305
1305
  );
1306
1306
  let i = t ? o.length > 1 ? `since :
1307
- ` + o.map(Ce).join(`
1308
- `) : " " + Ce(o[0]) : "as no adapter specified";
1307
+ ` + o.map(Pe).join(`
1308
+ `) : " " + Pe(o[0]) : "as no adapter specified";
1309
1309
  throw new m(
1310
1310
  "There is no suitable adapter to dispatch the request " + i,
1311
1311
  "ERR_NOT_SUPPORT"
@@ -1319,22 +1319,22 @@ function te(e) {
1319
1319
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1320
1320
  throw new k(null, e);
1321
1321
  }
1322
- function Ne(e) {
1323
- return te(e), e.headers = g.from(e.headers), e.data = ee.call(
1322
+ function Ce(e) {
1323
+ return te(e), e.headers = O.from(e.headers), e.data = ee.call(
1324
1324
  e,
1325
1325
  e.transformRequest
1326
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Qe.getAdapter(e.adapter || I.adapter)(e).then(function(r) {
1326
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Qe.getAdapter(e.adapter || H.adapter)(e).then(function(r) {
1327
1327
  return te(e), r.data = ee.call(
1328
1328
  e,
1329
1329
  e.transformResponse,
1330
1330
  r
1331
- ), r.headers = g.from(r.headers), r;
1331
+ ), r.headers = O.from(r.headers), r;
1332
1332
  }, function(r) {
1333
1333
  return $e(r) || (te(e), r && r.response && (r.response.data = ee.call(
1334
1334
  e,
1335
1335
  e.transformResponse,
1336
1336
  r.response
1337
- ), r.response.headers = g.from(r.response.headers))), Promise.reject(r);
1337
+ ), r.response.headers = O.from(r.response.headers))), Promise.reject(r);
1338
1338
  });
1339
1339
  }
1340
1340
  const Ze = "1.7.4", de = {};
@@ -1343,7 +1343,7 @@ const Ze = "1.7.4", de = {};
1343
1343
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1344
1344
  };
1345
1345
  });
1346
- const Pe = {};
1346
+ const Ne = {};
1347
1347
  de.transitional = function(t, n, r) {
1348
1348
  function s(o, i) {
1349
1349
  return "[Axios v" + Ze + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
@@ -1354,7 +1354,7 @@ de.transitional = function(t, n, r) {
1354
1354
  s(i, " has been removed" + (n ? " in " + n : "")),
1355
1355
  m.ERR_DEPRECATED
1356
1356
  );
1357
- return n && !Pe[i] && (Pe[i] = !0, console.warn(
1357
+ return n && !Ne[i] && (Ne[i] = !0, console.warn(
1358
1358
  s(
1359
1359
  i,
1360
1360
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -1362,7 +1362,7 @@ de.transitional = function(t, n, r) {
1362
1362
  )), t ? t(o, i, c) : !0;
1363
1363
  };
1364
1364
  };
1365
- function An(e, t, n) {
1365
+ function Cn(e, t, n) {
1366
1366
  if (typeof e != "object")
1367
1367
  throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1368
1368
  const r = Object.keys(e);
@@ -1370,9 +1370,9 @@ function An(e, t, n) {
1370
1370
  for (; s-- > 0; ) {
1371
1371
  const o = r[s], i = t[o];
1372
1372
  if (i) {
1373
- const c = e[o], f = c === void 0 || i(c, o, e);
1374
- if (f !== !0)
1375
- throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
1373
+ const c = e[o], d = c === void 0 || i(c, o, e);
1374
+ if (d !== !0)
1375
+ throw new m("option " + o + " must be " + d, m.ERR_BAD_OPTION_VALUE);
1376
1376
  continue;
1377
1377
  }
1378
1378
  if (n !== !0)
@@ -1380,14 +1380,14 @@ function An(e, t, n) {
1380
1380
  }
1381
1381
  }
1382
1382
  const ae = {
1383
- assertOptions: An,
1383
+ assertOptions: Cn,
1384
1384
  validators: de
1385
1385
  }, F = ae.validators;
1386
1386
  class U {
1387
1387
  constructor(t) {
1388
1388
  this.defaults = t, this.interceptors = {
1389
- request: new Re(),
1390
- response: new Re()
1389
+ request: new ge(),
1390
+ response: new ge()
1391
1391
  };
1392
1392
  }
1393
1393
  /**
@@ -1437,41 +1437,41 @@ class U {
1437
1437
  (h) => {
1438
1438
  delete o[h];
1439
1439
  }
1440
- ), n.headers = g.concat(i, o);
1440
+ ), n.headers = O.concat(i, o);
1441
1441
  const c = [];
1442
- let f = !0;
1442
+ let d = !0;
1443
1443
  this.interceptors.request.forEach(function(y) {
1444
- typeof y.runWhen == "function" && y.runWhen(n) === !1 || (f = f && y.synchronous, c.unshift(y.fulfilled, y.rejected));
1444
+ typeof y.runWhen == "function" && y.runWhen(n) === !1 || (d = d && y.synchronous, c.unshift(y.fulfilled, y.rejected));
1445
1445
  });
1446
1446
  const u = [];
1447
1447
  this.interceptors.response.forEach(function(y) {
1448
1448
  u.push(y.fulfilled, y.rejected);
1449
1449
  });
1450
- let l, p = 0, b;
1451
- if (!f) {
1452
- const h = [Ne.bind(this), void 0];
1453
- for (h.unshift.apply(h, c), h.push.apply(h, u), b = h.length, l = Promise.resolve(n); p < b; )
1454
- l = l.then(h[p++], h[p++]);
1450
+ let l, f = 0, E;
1451
+ if (!d) {
1452
+ const h = [Ce.bind(this), void 0];
1453
+ for (h.unshift.apply(h, c), h.push.apply(h, u), E = h.length, l = Promise.resolve(n); f < E; )
1454
+ l = l.then(h[f++], h[f++]);
1455
1455
  return l;
1456
1456
  }
1457
- b = c.length;
1458
- let E = n;
1459
- for (p = 0; p < b; ) {
1460
- const h = c[p++], y = c[p++];
1457
+ E = c.length;
1458
+ let b = n;
1459
+ for (f = 0; f < E; ) {
1460
+ const h = c[f++], y = c[f++];
1461
1461
  try {
1462
- E = h(E);
1463
- } catch (d) {
1464
- y.call(this, d);
1462
+ b = h(b);
1463
+ } catch (p) {
1464
+ y.call(this, p);
1465
1465
  break;
1466
1466
  }
1467
1467
  }
1468
1468
  try {
1469
- l = Ne.call(this, E);
1469
+ l = Ce.call(this, b);
1470
1470
  } catch (h) {
1471
1471
  return Promise.reject(h);
1472
1472
  }
1473
- for (p = 0, b = u.length; p < b; )
1474
- l = l.then(u[p++], u[p++]);
1473
+ for (f = 0, E = u.length; f < E; )
1474
+ l = l.then(u[f++], u[f++]);
1475
1475
  return l;
1476
1476
  }
1477
1477
  getUri(t) {
@@ -1571,12 +1571,12 @@ class pe {
1571
1571
  };
1572
1572
  }
1573
1573
  }
1574
- function xn(e) {
1574
+ function Nn(e) {
1575
1575
  return function(n) {
1576
1576
  return e.apply(null, n);
1577
1577
  };
1578
1578
  }
1579
- function Cn(e) {
1579
+ function Fn(e) {
1580
1580
  return a.isObject(e) && e.isAxiosError === !0;
1581
1581
  }
1582
1582
  const ce = {
@@ -1653,7 +1653,7 @@ function Ye(e) {
1653
1653
  return Ye(D(e, s));
1654
1654
  }, n;
1655
1655
  }
1656
- const R = Ye(I);
1656
+ const R = Ye(H);
1657
1657
  R.Axios = U;
1658
1658
  R.CanceledError = k;
1659
1659
  R.CancelToken = pe;
@@ -1665,50 +1665,89 @@ R.Cancel = R.CanceledError;
1665
1665
  R.all = function(t) {
1666
1666
  return Promise.all(t);
1667
1667
  };
1668
- R.spread = xn;
1669
- R.isAxiosError = Cn;
1668
+ R.spread = Nn;
1669
+ R.isAxiosError = Fn;
1670
1670
  R.mergeConfig = D;
1671
- R.AxiosHeaders = g;
1672
- R.formToJSON = (e) => Ve(a.isHTMLForm(e) ? new FormData(e) : e);
1671
+ R.AxiosHeaders = O;
1672
+ R.formToJSON = (e) => ve(a.isHTMLForm(e) ? new FormData(e) : e);
1673
1673
  R.getAdapter = Qe.getAdapter;
1674
1674
  R.HttpStatusCode = ce;
1675
1675
  R.default = R;
1676
- const Pn = (e) => {
1677
- let t = {};
1678
- const n = me("streamlineUrl"), r = me("streamlineHeaders"), s = new Proxy({}, {
1679
- get(o, i) {
1680
- return o[i] ? o[i] : (...c) => {
1681
- if (["setFormData", "setData"].includes(i))
1682
- return t = c[0], s;
1683
- const u = R.create({
1684
- headers: {
1685
- ...r
1686
- }
1687
- });
1688
- window.streamlineAxios = u;
1689
- const l = {
1690
- action: i,
1676
+ const Ln = (e, ...t) => {
1677
+ let n = {};
1678
+ const r = et(!1), s = me("streamlineUrl"), o = me("streamlineHeaders"), i = R.create({
1679
+ headers: {
1680
+ ...o
1681
+ }
1682
+ }), c = tt({}), d = async () => {
1683
+ try {
1684
+ r.value = !0;
1685
+ const f = await i.post(s, {
1686
+ action: "onMounted",
1687
+ stream: e,
1688
+ params: t
1689
+ });
1690
+ u(f.data);
1691
+ } catch (f) {
1692
+ throw console.error(`Error fetching properties for stream ${e}`, f), f;
1693
+ } finally {
1694
+ r.value = !1;
1695
+ }
1696
+ }, u = (f) => {
1697
+ Object.assign(c, f.properties);
1698
+ const E = f.methods;
1699
+ for (const b of E)
1700
+ c[b] = async (...h) => {
1701
+ try {
1702
+ return (await i.post(s, {
1703
+ action: b,
1704
+ stream: e,
1705
+ ...n,
1706
+ params: h
1707
+ })).data;
1708
+ } catch (y) {
1709
+ throw console.error(`Error calling ${b} on stream ${e}`, y), y;
1710
+ }
1711
+ };
1712
+ }, l = new Proxy(c, {
1713
+ get(f, E) {
1714
+ return E in f ? f[E] : (...b) => {
1715
+ if (["setFormData", "setData"].includes(E))
1716
+ return n = b[0], l;
1717
+ if (["getMethods", "getActions", "getFunctions", "getServiceMethods"].includes(E))
1718
+ return Object.keys(l).filter((g) => {
1719
+ if (typeof l[g] == "function")
1720
+ return g;
1721
+ });
1722
+ const p = {
1723
+ action: E,
1691
1724
  stream: e,
1692
- ...t
1725
+ ...n
1693
1726
  };
1694
- if (["getUrl", "getFullUrl", "getActionUrl"].includes(i)) {
1695
- l.action = c[0];
1696
- const b = c.slice(1);
1697
- return b.length > 0 && (l.params = b), n + "?" + new URLSearchParams(l).toString();
1727
+ if (["getUrl", "getFullUrl", "getActionUrl"].includes(E)) {
1728
+ p.action = b[0];
1729
+ const g = b.slice(1);
1730
+ return g.length > 0 && (p.params = g), s + "?" + new URLSearchParams(p).toString();
1698
1731
  }
1699
- return l.params = c, u.post(n, l);
1732
+ return p.params = b, i.post(s, p).then((g) => g.data).catch((g) => {
1733
+ throw console.error(`Error calling ${E} on stream ${e}`, g), g;
1734
+ });
1700
1735
  };
1701
1736
  }
1702
1737
  });
1703
- return {
1704
- service: s
1738
+ return d(), {
1739
+ ...nt(c),
1740
+ // Spread the reactive service properties and return as refs for reactivity
1741
+ service: l,
1742
+ // Return the proxy service for method calls
1743
+ loading: r
1705
1744
  };
1706
- }, Fn = {
1745
+ }, Un = {
1707
1746
  install(e, t) {
1708
1747
  e.provide("streamlineUrl", t.streamlineUrl), e.provide("streamlineHeaders", t.streamlineHeaders);
1709
1748
  }
1710
1749
  };
1711
1750
  export {
1712
- Fn as streamline,
1713
- Pn as useStreamline
1751
+ Un as streamline,
1752
+ Ln as useStreamline
1714
1753
  };