ch3chi-commons-vue 0.1.12 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,13 +1,13 @@
1
- import { Modal as Ca, Tooltip as Pe, Dropdown as ge } from "bootstrap";
2
- import { ref as qa, isRef as Ua } from "vue";
3
- import { v4 as _a } from "uuid";
4
- import we from "dayjs";
5
- import * as Pa from "lodash";
6
- import E from "lodash";
1
+ import { Modal as _a, Tooltip as Me, Dropdown as ke } from "bootstrap";
2
+ import { ref as je, isRef as Na } from "vue";
3
+ import { v4 as Da } from "uuid";
4
+ import Ee from "dayjs";
5
+ import * as La from "lodash";
6
+ import j from "lodash";
7
7
  import "yup";
8
- var Na = /* @__PURE__ */ ((e) => (e.Info = "infoModal", e.Form = "formModal", e.Table = "tableModal", e))(Na || {});
9
- class Ne {
10
- modalInstance = qa(null);
8
+ var Ma = /* @__PURE__ */ ((a) => (a.Info = "infoModal", a.Form = "formModal", a.Table = "tableModal", a))(Ma || {});
9
+ class Be {
10
+ modalInstance = je(null);
11
11
  elt = null;
12
12
  type;
13
13
  modalId;
@@ -17,11 +17,11 @@ class Ne {
17
17
  // 額外的配置選項與 Modal config 一致
18
18
  onOpen;
19
19
  onClose;
20
- constructor(a) {
21
- this.type = a?.type || "infoModal", this.modalId = `${this.type}-${_a()}`, this.labelId = `${this.modalId}-label`, this.title = a?.title || this.defaultTitle(), this.onOpen = a?.onOpen, this.onClose = a?.onClose, this.config = Object.assign({
20
+ constructor(e) {
21
+ this.type = e?.type || "infoModal", this.modalId = `${this.type}-${Da()}`, this.labelId = `${this.modalId}-label`, this.title = e?.title || this.defaultTitle(), this.onOpen = e?.onOpen, this.onClose = e?.onClose, this.config = Object.assign({
22
22
  backdrop: "static",
23
23
  keyboard: !1
24
- }, a?.config);
24
+ }, e?.config);
25
25
  }
26
26
  defaultTitle() {
27
27
  switch (this.type) {
@@ -41,8 +41,8 @@ class Ne {
41
41
  hide() {
42
42
  this.modalInstance.value?.hide();
43
43
  }
44
- init({ elt: a }) {
45
- a && (this.elt = a, this.modalInstance.value = new Ca(this.elt, {
44
+ init({ elt: e }) {
45
+ e && (this.elt = e, this.modalInstance.value = new _a(this.elt, {
46
46
  ...this.config
47
47
  }), this.elt.addEventListener("show.bs.modal", () => {
48
48
  this.onOpen?.();
@@ -54,71 +54,71 @@ class Ne {
54
54
  this.modalInstance.value && (this.modalInstance.value.dispose(), this.modalInstance.value = null), this.elt = null;
55
55
  }
56
56
  }
57
- const qn = {
58
- mounted(e) {
59
- new Pe(e);
57
+ const _n = {
58
+ mounted(a) {
59
+ new Me(a);
60
60
  },
61
- unmounted(e) {
62
- const a = Pe.getInstance(e);
63
- a && a.dispose();
61
+ unmounted(a) {
62
+ const e = Me.getInstance(a);
63
+ e && e.dispose();
64
64
  }
65
- }, Un = {
66
- mounted(e, a) {
67
- if (!(a.value instanceof Ne)) {
65
+ }, Nn = {
66
+ mounted(a, e) {
67
+ if (!(e.value instanceof Be)) {
68
68
  console.error("vdCBSModal directive requires binding.value to be an instance of CBSModalView");
69
69
  return;
70
70
  }
71
- a.value.init({ elt: e });
71
+ e.value.init({ elt: a });
72
72
  },
73
- unmounted(e, a) {
74
- if (!(a.value instanceof Ne)) {
73
+ unmounted(a, e) {
74
+ if (!(e.value instanceof Be)) {
75
75
  console.error("vdCBSModal directive requires binding.value to be an instance of CBSModalView");
76
76
  return;
77
77
  }
78
- a.value.unmount();
78
+ e.value.unmount();
79
79
  }
80
80
  };
81
- function De(e, a) {
82
- if (!e.contains(a.target)) {
83
- ge.getInstance(e)?.hide();
81
+ function Ie(a, e) {
82
+ if (!a.contains(e.target)) {
83
+ ke.getInstance(a)?.hide();
84
84
  return;
85
85
  }
86
86
  }
87
- const _n = {
88
- mounted(e) {
89
- const a = ge.getOrCreateInstance(e);
90
- e.addEventListener("click", (n) => (n.preventDefault(), n.stopPropagation(), a.toggle(), !1));
91
- const i = De.bind(null, e);
87
+ const Dn = {
88
+ mounted(a) {
89
+ const e = ke.getOrCreateInstance(a);
90
+ a.addEventListener("click", (n) => (n.preventDefault(), n.stopPropagation(), e.toggle(), !1));
91
+ const i = Ie.bind(null, a);
92
92
  document.addEventListener("click", i);
93
93
  },
94
- unmounted(e) {
95
- ge.getInstance(e)?.dispose();
96
- const i = De.bind(null, e);
94
+ unmounted(a) {
95
+ ke.getInstance(a)?.dispose();
96
+ const i = Ie.bind(null, a);
97
97
  document.removeEventListener("click", i);
98
98
  }
99
99
  };
100
- function Le(e, a) {
100
+ function $e(a, e) {
101
101
  let i;
102
- Ua(a) ? i = a.value : a instanceof Date && (i = a);
103
- const n = e.getAttribute("data-date-format") || "YYYY-MM-DD", s = i ? we(i).format(n) : "";
104
- e.tagName === "INPUT" && e.type === "text" ? e.value = s : ["SPAN", "P", "DIV"].includes(e.tagName) && (e.innerHTML = s);
102
+ Na(e) ? i = e.value : e instanceof Date && (i = e);
103
+ const n = a.getAttribute("data-date-format") || "YYYY-MM-DD", s = i ? Ee(i).format(n) : "";
104
+ a.tagName === "INPUT" && a.type === "text" ? a.value = s : ["SPAN", "P", "DIV"].includes(a.tagName) && (a.innerHTML = s);
105
105
  }
106
- const Pn = {
107
- mounted(e, a) {
108
- Le(e, a.value);
106
+ const Ln = {
107
+ mounted(a, e) {
108
+ $e(a, e.value);
109
109
  },
110
- updated(e, a) {
111
- Le(e, a.value);
110
+ updated(a, e) {
111
+ $e(a, e.value);
112
112
  }
113
- }, Da = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Nn = {
114
- mounted(e, a) {
115
- const i = a.value, n = Pa.get(Da, "VITE_CLOUDFLARE_TURNSTILE_SITE_KEY");
113
+ }, Ba = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Mn = {
114
+ mounted(a, e) {
115
+ const i = e.value, n = La.get(Ba, "VITE_CLOUDFLARE_TURNSTILE_SITE_KEY");
116
116
  if (!n) {
117
117
  console.error("Cloudflare Turnstile site key is not defined.");
118
118
  return;
119
119
  }
120
120
  const s = () => {
121
- window.turnstile?.render(e, {
121
+ window.turnstile?.render(a, {
122
122
  sitekey: n,
123
123
  callback: (o) => {
124
124
  i.value.value = o;
@@ -133,67 +133,243 @@ const Pn = {
133
133
  window.turnstile && (clearInterval(t), s());
134
134
  }, 100);
135
135
  }
136
- }, Dn = {
137
- mounted(e, a) {
138
- Me(e, a.value);
136
+ }, Bn = {
137
+ mounted(a, e) {
138
+ He(a, e.value);
139
139
  },
140
- updated(e, a) {
141
- Me(e, a.value);
140
+ updated(a, e) {
141
+ He(a, e.value);
142
142
  }
143
143
  };
144
- function Me(e, a) {
145
- if (E.isNil(a) || !E.has(a, "errors") || !E.isArray(a.errors.value)) {
146
- e.classList.remove("is-invalid");
144
+ function He(a, e) {
145
+ if (j.isNil(e) || !j.has(e, "errors") || !j.isArray(e.errors.value)) {
146
+ a.classList.remove("is-invalid");
147
147
  return;
148
148
  }
149
- E.isEmpty(a.errors.value) ? e.classList.remove("is-invalid") : e.classList.add("is-invalid");
149
+ j.isEmpty(e.errors.value) ? a.classList.remove("is-invalid") : a.classList.add("is-invalid");
150
150
  }
151
- const Ln = {
152
- mounted(e, a) {
153
- Be(e, a.value);
151
+ const In = {
152
+ mounted(a, e) {
153
+ Ve(a, e.value);
154
154
  },
155
- updated(e, a) {
156
- Be(e, a.value);
155
+ updated(a, e) {
156
+ Ve(a, e.value);
157
157
  }
158
158
  };
159
- function Be(e, a) {
160
- if (E.isNil(a) || !E.isFunction(a.validateSync)) {
161
- e.classList.remove("is-invalid");
159
+ function Ve(a, e) {
160
+ if (j.isNil(e) || !j.isFunction(e.validateSync)) {
161
+ a.classList.remove("is-invalid");
162
162
  return;
163
163
  }
164
164
  try {
165
- const i = e.value || "";
166
- a.validateSync(i), e.classList.remove("is-invalid");
165
+ const i = a.value || "";
166
+ e.validateSync(i), a.classList.remove("is-invalid");
167
167
  } catch {
168
- e.classList.add("is-invalid");
168
+ a.classList.add("is-invalid");
169
169
  }
170
170
  }
171
- function La(e) {
172
- if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
173
- var a = e.default;
174
- if (typeof a == "function") {
171
+ const J = (a, e) => {
172
+ j.isNil(a) || !("value" in a) || (a.value = e);
173
+ };
174
+ function Se(a) {
175
+ return j.isNil(a) || a instanceof FormData ? a : Ee.isDayjs(a) || a instanceof Date ? Ee(a).format("YYYY-MM-DDTHH:mm:ss") : j.isArray(a) ? a.map((e) => Se(e)) : j.isObject(a) ? j.mapValues(a, (e) => Se(e)) : a;
176
+ }
177
+ class X {
178
+ id;
179
+ name;
180
+ icon;
181
+ fontIcon;
182
+ path;
183
+ needRoles;
184
+ permission;
185
+ activePaths;
186
+ children;
187
+ isOpen;
188
+ // 是否展開子選單
189
+ isActive;
190
+ // 是否為當前選中項目
191
+ constructor(e) {
192
+ this.id = e.id, this.name = e.name, this.icon = e.icon, this.fontIcon = e.fontIcon, this.path = e.path, this.needRoles = e.needRoles, this.permission = e.permission, this.activePaths = e.activePaths || [], e.children && (this.children = e.children.map((i) => X.parse(i)), this.isOpen = je(!1)), this.isActive = je(!1);
193
+ }
194
+ /**
195
+ * 判斷是否有子選單項目
196
+ * @returns {boolean} 如果有子選單項目則返回 true,否則返回 false
197
+ */
198
+ hasChildren() {
199
+ return j.isArray(this.children) && !j.isEmpty(this.children);
200
+ }
201
+ /**
202
+ * 使用 collapse 屬性來控制子選單的展開或收起狀態
203
+ * 這個方法可以在 Vue 模板中使用 v-bind 指令來
204
+ * 綁定到 collapse 屬性上,以實現子選單的折
205
+ */
206
+ useCollapseAttribute() {
207
+ if (!this.hasChildren()) return {};
208
+ const e = this.useCollapseId();
209
+ return {
210
+ href: `#${e}`,
211
+ role: "button",
212
+ "aria-expanded": "false",
213
+ "aria-controls": e
214
+ };
215
+ }
216
+ /**
217
+ * 使用 collapseId 方法來生成唯一的折疊 ID
218
+ */
219
+ useCollapseId() {
220
+ return `collapse-sidebar-${this.id}`;
221
+ }
222
+ /**
223
+ * 使用 useClassName 方法來生成 CSS 類名
224
+ */
225
+ useClassNameForNavLink() {
226
+ let e = "c-nav-link";
227
+ return this.isActive?.value && (e += " c-active"), e;
228
+ }
229
+ /**
230
+ * 使用 useClassName 方法來生成 CSS 類名
231
+ */
232
+ useClassNameForLi() {
233
+ let e = "";
234
+ return this.isActive?.value && (e += " c-active"), this.hasChildren() && (e += " has-children"), e;
235
+ }
236
+ /**
237
+ * 計算箭頭圖示的 CSS 類名
238
+ */
239
+ computeArrowClass() {
240
+ return this.isOpen?.value ? "caret-down" : "caret-left";
241
+ }
242
+ /**
243
+ * 計算折疊顯示的 CSS 類名
244
+ */
245
+ computeCollapseShowClass() {
246
+ return this.isOpen?.value ? "show" : "";
247
+ }
248
+ /**
249
+ * 計算折疊的 CSS 類名
250
+ * @returns {string} 返回折疊的 CSS 類名
251
+ */
252
+ collapseClassName() {
253
+ return this.isOpen?.value ? "show" : "";
254
+ }
255
+ /**
256
+ * 檢查當前路徑是否與此選單項目的路徑匹配
257
+ * @param currentPath
258
+ */
259
+ checkCurrentPath(e) {
260
+ let i = !1;
261
+ if (this.path === e && (J(this.isActive, !0), i = !0), !i && this.activePaths && (J(this.isActive, j.some(this.activePaths, (n) => e.startsWith(n))), i = this.isActive?.value || !1), this.children)
262
+ for (const n of this.children)
263
+ n.checkCurrentPath(e) && (J(this.isActive, !0), J(this.isOpen, !0), i = !0);
264
+ return i || J(e, !1), i;
265
+ }
266
+ /**
267
+ * 靜態方法用於從 MenuItem 物件解析出 CMenuItem 實例
268
+ * @param item {MenuItem} 要解析的 MenuItem 物件
269
+ * @return {CMenuItem} 返回解析後的 CMenuItem 實例
270
+ */
271
+ static parse(e) {
272
+ return new X({
273
+ ...e,
274
+ children: e.children ? e.children.map(X.parse) : []
275
+ });
276
+ }
277
+ }
278
+ class W {
279
+ /**
280
+ * 角色權限映射表
281
+ * 定義角色對應多個權限項目
282
+ * @private
283
+ */
284
+ static _rolePermissionMap = {};
285
+ /**
286
+ * 選單定義映射表
287
+ * 定義不同角色對應的選單結構
288
+ * @private
289
+ */
290
+ static _menuDefineMap = {};
291
+ /**
292
+ * 設定角色權限映射
293
+ * @param map 角色權限映射物件
294
+ */
295
+ static set rolePermissionMap(e) {
296
+ this._rolePermissionMap = e;
297
+ }
298
+ /**
299
+ * 設定選單定義映射
300
+ * @param map
301
+ */
302
+ static set menuDefineMap(e) {
303
+ this._menuDefineMap = e;
304
+ }
305
+ /**
306
+ * 配置角色與權限關係,以及選單定義映射
307
+ * @param config 配置物件
308
+ */
309
+ static configure(e) {
310
+ W.rolePermissionMap = e.rolePermissionMap || {}, W.menuDefineMap = e.menuDefineMap;
311
+ }
312
+ /**
313
+ * 檢查角色列表是否包含所需的權限
314
+ * @param roleCodes
315
+ * @param requiredPermission
316
+ */
317
+ static hasPermissionByRole(e, i) {
318
+ for (const n of e) {
319
+ const s = W._rolePermissionMap[n];
320
+ if (s && s.includes(i))
321
+ return !0;
322
+ }
323
+ return !1;
324
+ }
325
+ /**
326
+ * 根據角色列表提供選單項目
327
+ * @param roleCode 角色代碼
328
+ * @param permissions 權限列表
329
+ */
330
+ static provideMenuByPermission(e) {
331
+ const i = (s) => s.reduce((t, o) => {
332
+ if (!(!o.permission || (Array.isArray(o.permission) ? o.permission.some((l) => e.permissions.includes(l)) : e.permissions.includes(o.permission))))
333
+ return t;
334
+ const d = X.parse(o);
335
+ if (o.children) {
336
+ const l = i(o.children);
337
+ if (l.length === 0)
338
+ return t;
339
+ d.children = l;
340
+ }
341
+ return t.push(d), t;
342
+ }, []);
343
+ let n = e.picker ? e.picker(e.roleCode) : [];
344
+ return e.picker ? n = e.picker(e.roleCode) : n = j.values(W._menuDefineMap || {})[0] || [], i(n);
345
+ }
346
+ }
347
+ function Ia(a) {
348
+ if (Object.prototype.hasOwnProperty.call(a, "__esModule")) return a;
349
+ var e = a.default;
350
+ if (typeof e == "function") {
175
351
  var i = function n() {
176
352
  var s = !1;
177
353
  try {
178
354
  s = this instanceof n;
179
355
  } catch {
180
356
  }
181
- return s ? Reflect.construct(a, arguments, this.constructor) : a.apply(this, arguments);
357
+ return s ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
182
358
  };
183
- i.prototype = a.prototype;
359
+ i.prototype = e.prototype;
184
360
  } else i = {};
185
- return Object.defineProperty(i, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
186
- var s = Object.getOwnPropertyDescriptor(e, n);
361
+ return Object.defineProperty(i, "__esModule", { value: !0 }), Object.keys(a).forEach(function(n) {
362
+ var s = Object.getOwnPropertyDescriptor(a, n);
187
363
  Object.defineProperty(i, n, s.get ? s : {
188
364
  enumerable: !0,
189
365
  get: function() {
190
- return e[n];
366
+ return a[n];
191
367
  }
192
368
  });
193
369
  }), i;
194
370
  }
195
- var de = {};
196
- const Ma = {
371
+ var fe = {};
372
+ const $a = {
197
373
  "application/1d-interleaved-parityfec": { source: "iana" },
198
374
  "application/3gpdash-qoe-report+xml": { source: "iana", charset: "UTF-8", compressible: !0 },
199
375
  "application/3gpp-ims+xml": { source: "iana", compressible: !0 },
@@ -2717,25 +2893,25 @@ const Ma = {
2717
2893
  "x-shader/x-fragment": { compressible: !0 },
2718
2894
  "x-shader/x-vertex": { compressible: !0 }
2719
2895
  };
2720
- var me, Ie;
2721
- function Ba() {
2722
- return Ie || (Ie = 1, me = Ma), me;
2896
+ var ve, Je;
2897
+ function Ha() {
2898
+ return Je || (Je = 1, ve = $a), ve;
2723
2899
  }
2724
- const Ia = {}, $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2900
+ const Va = {}, Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2725
2901
  __proto__: null,
2726
- default: Ia
2727
- }, Symbol.toStringTag, { value: "Module" })), Ha = /* @__PURE__ */ La($a);
2728
- var xe, $e;
2729
- function Ja() {
2730
- if ($e) return xe;
2731
- $e = 1;
2732
- var e = {
2902
+ default: Va
2903
+ }, Symbol.toStringTag, { value: "Module" })), Ka = /* @__PURE__ */ Ia(Ja);
2904
+ var be, Ke;
2905
+ function Wa() {
2906
+ if (Ke) return be;
2907
+ Ke = 1;
2908
+ var a = {
2733
2909
  "prs.": 100,
2734
2910
  "x-": 200,
2735
2911
  "x.": 300,
2736
2912
  "vnd.": 400,
2737
2913
  default: 900
2738
- }, a = {
2914
+ }, e = {
2739
2915
  nginx: 10,
2740
2916
  apache: 20,
2741
2917
  iana: 40,
@@ -2749,32 +2925,32 @@ function Ja() {
2749
2925
  font: 2,
2750
2926
  default: 0
2751
2927
  };
2752
- return xe = function(s, t = "default") {
2928
+ return be = function(s, t = "default") {
2753
2929
  if (s === "application/octet-stream")
2754
2930
  return 0;
2755
- const [o, r] = s.split("/"), d = r.replace(/(\.|x-).*/, "$1"), l = e[d] || e.default, u = a[t] || a.default, f = i[o] || i.default, h = 1 - s.length / 100;
2931
+ const [o, r] = s.split("/"), d = r.replace(/(\.|x-).*/, "$1"), l = a[d] || a.default, u = e[t] || e.default, f = i[o] || i.default, h = 1 - s.length / 100;
2756
2932
  return l + u + f + h;
2757
- }, xe;
2933
+ }, be;
2758
2934
  }
2759
- var He;
2760
- function Va() {
2761
- return He || (He = 1, (function(e) {
2762
- var a = Ba(), i = Ha.extname, n = Ja(), s = /^\s*([^;\s]*)(?:;|\s|$)/, t = /^text\//i;
2763
- e.charset = o, e.charsets = { lookup: o }, e.contentType = r, e.extension = d, e.extensions = /* @__PURE__ */ Object.create(null), e.lookup = l, e.types = /* @__PURE__ */ Object.create(null), e._extensionConflicts = [], u(e.extensions, e.types);
2935
+ var We;
2936
+ function Xa() {
2937
+ return We || (We = 1, (function(a) {
2938
+ var e = Ha(), i = Ka.extname, n = Wa(), s = /^\s*([^;\s]*)(?:;|\s|$)/, t = /^text\//i;
2939
+ a.charset = o, a.charsets = { lookup: o }, a.contentType = r, a.extension = d, a.extensions = /* @__PURE__ */ Object.create(null), a.lookup = l, a.types = /* @__PURE__ */ Object.create(null), a._extensionConflicts = [], u(a.extensions, a.types);
2764
2940
  function o(b) {
2765
2941
  if (!b || typeof b != "string")
2766
2942
  return !1;
2767
- var p = s.exec(b), x = p && a[p[1].toLowerCase()];
2943
+ var p = s.exec(b), x = p && e[p[1].toLowerCase()];
2768
2944
  return x && x.charset ? x.charset : p && t.test(p[1]) ? "UTF-8" : !1;
2769
2945
  }
2770
2946
  function r(b) {
2771
2947
  if (!b || typeof b != "string")
2772
2948
  return !1;
2773
- var p = b.indexOf("/") === -1 ? e.lookup(b) : b;
2949
+ var p = b.indexOf("/") === -1 ? a.lookup(b) : b;
2774
2950
  if (!p)
2775
2951
  return !1;
2776
2952
  if (p.indexOf("charset") === -1) {
2777
- var x = e.charset(p);
2953
+ var x = a.charset(p);
2778
2954
  x && (p += "; charset=" + x.toLowerCase());
2779
2955
  }
2780
2956
  return p;
@@ -2782,18 +2958,18 @@ function Va() {
2782
2958
  function d(b) {
2783
2959
  if (!b || typeof b != "string")
2784
2960
  return !1;
2785
- var p = s.exec(b), x = p && e.extensions[p[1].toLowerCase()];
2961
+ var p = s.exec(b), x = p && a.extensions[p[1].toLowerCase()];
2786
2962
  return !x || !x.length ? !1 : x[0];
2787
2963
  }
2788
2964
  function l(b) {
2789
2965
  if (!b || typeof b != "string")
2790
2966
  return !1;
2791
2967
  var p = i("x." + b).toLowerCase().slice(1);
2792
- return p && e.types[p] || !1;
2968
+ return p && a.types[p] || !1;
2793
2969
  }
2794
2970
  function u(b, p) {
2795
- Object.keys(a).forEach(function(m) {
2796
- var g = a[m], y = g.extensions;
2971
+ Object.keys(e).forEach(function(m) {
2972
+ var g = e[m], y = g.extensions;
2797
2973
  if (!(!y || !y.length)) {
2798
2974
  b[m] = y;
2799
2975
  for (var k = 0; k < y.length; k++) {
@@ -2804,262 +2980,262 @@ function Va() {
2804
2980
  p[w],
2805
2981
  m
2806
2982
  );
2807
- T !== p[w] && e._extensionConflicts.push([w, T, p[w]]);
2983
+ T !== p[w] && a._extensionConflicts.push([w, T, p[w]]);
2808
2984
  }
2809
2985
  }
2810
2986
  });
2811
2987
  }
2812
2988
  function f(b, p, x) {
2813
- var m = p ? n(p, a[p].source) : 0, g = x ? n(x, a[x].source) : 0;
2989
+ var m = p ? n(p, e[p].source) : 0, g = x ? n(x, e[x].source) : 0;
2814
2990
  return m > g ? p : x;
2815
2991
  }
2816
2992
  function h(b, p, x) {
2817
- var m = ["nginx", "apache", void 0, "iana"], g = p ? m.indexOf(a[p].source) : 0, y = x ? m.indexOf(a[x].source) : 0;
2818
- return e.types[d] !== "application/octet-stream" && (g > y || g === y && e.types[d]?.slice(0, 12) === "application/") || g > y ? p : x;
2993
+ var m = ["nginx", "apache", void 0, "iana"], g = p ? m.indexOf(e[p].source) : 0, y = x ? m.indexOf(e[x].source) : 0;
2994
+ return a.types[d] !== "application/octet-stream" && (g > y || g === y && a.types[d]?.slice(0, 12) === "application/") || g > y ? p : x;
2819
2995
  }
2820
- })(de)), de;
2996
+ })(fe)), fe;
2821
2997
  }
2822
- var Ka = Va();
2823
- function ca(e, a) {
2998
+ var Ya = Xa();
2999
+ function ua(a, e) {
2824
3000
  return function() {
2825
- return e.apply(a, arguments);
3001
+ return a.apply(e, arguments);
2826
3002
  };
2827
3003
  }
2828
- const { toString: Wa } = Object.prototype, { getPrototypeOf: Te } = Object, { iterator: oe, toStringTag: ra } = Symbol, te = /* @__PURE__ */ ((e) => (a) => {
2829
- const i = Wa.call(a);
2830
- return e[i] || (e[i] = i.slice(8, -1).toLowerCase());
2831
- })(/* @__PURE__ */ Object.create(null)), A = (e) => (e = e.toLowerCase(), (a) => te(a) === e), ce = (e) => (a) => typeof a === e, { isArray: $ } = Array, I = ce("undefined");
2832
- function K(e) {
2833
- return e !== null && !I(e) && e.constructor !== null && !I(e.constructor) && R(e.constructor.isBuffer) && e.constructor.isBuffer(e);
3004
+ const { toString: Ga } = Object.prototype, { getPrototypeOf: ze } = Object, { iterator: re, toStringTag: da } = Symbol, pe = /* @__PURE__ */ ((a) => (e) => {
3005
+ const i = Ga.call(e);
3006
+ return a[i] || (a[i] = i.slice(8, -1).toLowerCase());
3007
+ })(/* @__PURE__ */ Object.create(null)), z = (a) => (a = a.toLowerCase(), (e) => pe(e) === a), le = (a) => (e) => typeof e === a, { isArray: $ } = Array, I = le("undefined");
3008
+ function Y(a) {
3009
+ return a !== null && !I(a) && a.constructor !== null && !I(a.constructor) && R(a.constructor.isBuffer) && a.constructor.isBuffer(a);
2834
3010
  }
2835
- const pa = A("ArrayBuffer");
2836
- function Xa(e) {
2837
- let a;
2838
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? a = ArrayBuffer.isView(e) : a = e && e.buffer && pa(e.buffer), a;
3011
+ const ma = z("ArrayBuffer");
3012
+ function Qa(a) {
3013
+ let e;
3014
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(a) : e = a && a.buffer && ma(a.buffer), e;
2839
3015
  }
2840
- const Ya = ce("string"), R = ce("function"), la = ce("number"), W = (e) => e !== null && typeof e == "object", Ga = (e) => e === !0 || e === !1, ae = (e) => {
2841
- if (te(e) !== "object")
3016
+ const Za = le("string"), R = le("function"), xa = le("number"), G = (a) => a !== null && typeof a == "object", ei = (a) => a === !0 || a === !1, se = (a) => {
3017
+ if (pe(a) !== "object")
2842
3018
  return !1;
2843
- const a = Te(e);
2844
- return (a === null || a === Object.prototype || Object.getPrototypeOf(a) === null) && !(ra in e) && !(oe in e);
2845
- }, Qa = (e) => {
2846
- if (!W(e) || K(e))
3019
+ const e = ze(a);
3020
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(da in a) && !(re in a);
3021
+ }, ai = (a) => {
3022
+ if (!G(a) || Y(a))
2847
3023
  return !1;
2848
3024
  try {
2849
- return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
3025
+ return Object.keys(a).length === 0 && Object.getPrototypeOf(a) === Object.prototype;
2850
3026
  } catch {
2851
3027
  return !1;
2852
3028
  }
2853
- }, Za = A("Date"), ei = A("File"), ai = A("Blob"), ii = A("FileList"), ni = (e) => W(e) && R(e.pipe), si = (e) => {
2854
- let a;
2855
- return e && (typeof FormData == "function" && e instanceof FormData || R(e.append) && ((a = te(e)) === "formdata" || // detect form-data instance
2856
- a === "object" && R(e.toString) && e.toString() === "[object FormData]"));
2857
- }, oi = A("URLSearchParams"), [ti, ci, ri, pi] = ["ReadableStream", "Request", "Response", "Headers"].map(A), li = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
2858
- function X(e, a, { allOwnKeys: i = !1 } = {}) {
2859
- if (e === null || typeof e > "u")
3029
+ }, ii = z("Date"), ni = z("File"), si = z("Blob"), oi = z("FileList"), ti = (a) => G(a) && R(a.pipe), ci = (a) => {
3030
+ let e;
3031
+ return a && (typeof FormData == "function" && a instanceof FormData || R(a.append) && ((e = pe(a)) === "formdata" || // detect form-data instance
3032
+ e === "object" && R(a.toString) && a.toString() === "[object FormData]"));
3033
+ }, ri = z("URLSearchParams"), [pi, li, ui, di] = ["ReadableStream", "Request", "Response", "Headers"].map(z), mi = (a) => a.trim ? a.trim() : a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
3034
+ function Q(a, e, { allOwnKeys: i = !1 } = {}) {
3035
+ if (a === null || typeof a > "u")
2860
3036
  return;
2861
3037
  let n, s;
2862
- if (typeof e != "object" && (e = [e]), $(e))
2863
- for (n = 0, s = e.length; n < s; n++)
2864
- a.call(null, e[n], n, e);
3038
+ if (typeof a != "object" && (a = [a]), $(a))
3039
+ for (n = 0, s = a.length; n < s; n++)
3040
+ e.call(null, a[n], n, a);
2865
3041
  else {
2866
- if (K(e))
3042
+ if (Y(a))
2867
3043
  return;
2868
- const t = i ? Object.getOwnPropertyNames(e) : Object.keys(e), o = t.length;
3044
+ const t = i ? Object.getOwnPropertyNames(a) : Object.keys(a), o = t.length;
2869
3045
  let r;
2870
3046
  for (n = 0; n < o; n++)
2871
- r = t[n], a.call(null, e[r], r, e);
3047
+ r = t[n], e.call(null, a[r], r, a);
2872
3048
  }
2873
3049
  }
2874
- function ua(e, a) {
2875
- if (K(e))
3050
+ function fa(a, e) {
3051
+ if (Y(a))
2876
3052
  return null;
2877
- a = a.toLowerCase();
2878
- const i = Object.keys(e);
3053
+ e = e.toLowerCase();
3054
+ const i = Object.keys(a);
2879
3055
  let n = i.length, s;
2880
3056
  for (; n-- > 0; )
2881
- if (s = i[n], a === s.toLowerCase())
3057
+ if (s = i[n], e === s.toLowerCase())
2882
3058
  return s;
2883
3059
  return null;
2884
3060
  }
2885
- const D = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, da = (e) => !I(e) && e !== D;
2886
- function ye() {
2887
- const { caseless: e, skipUndefined: a } = da(this) && this || {}, i = {}, n = (s, t) => {
2888
- const o = e && ua(i, t) || t;
2889
- ae(i[o]) && ae(s) ? i[o] = ye(i[o], s) : ae(s) ? i[o] = ye({}, s) : $(s) ? i[o] = s.slice() : (!a || !I(s)) && (i[o] = s);
3061
+ const D = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, va = (a) => !I(a) && a !== D;
3062
+ function Te() {
3063
+ const { caseless: a, skipUndefined: e } = va(this) && this || {}, i = {}, n = (s, t) => {
3064
+ const o = a && fa(i, t) || t;
3065
+ se(i[o]) && se(s) ? i[o] = Te(i[o], s) : se(s) ? i[o] = Te({}, s) : $(s) ? i[o] = s.slice() : (!e || !I(s)) && (i[o] = s);
2890
3066
  };
2891
3067
  for (let s = 0, t = arguments.length; s < t; s++)
2892
- arguments[s] && X(arguments[s], n);
3068
+ arguments[s] && Q(arguments[s], n);
2893
3069
  return i;
2894
3070
  }
2895
- const ui = (e, a, i, { allOwnKeys: n } = {}) => (X(a, (s, t) => {
2896
- i && R(s) ? e[t] = ca(s, i) : e[t] = s;
2897
- }, { allOwnKeys: n }), e), di = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), mi = (e, a, i, n) => {
2898
- e.prototype = Object.create(a.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
2899
- value: a.prototype
2900
- }), i && Object.assign(e.prototype, i);
2901
- }, xi = (e, a, i, n) => {
3071
+ const xi = (a, e, i, { allOwnKeys: n } = {}) => (Q(e, (s, t) => {
3072
+ i && R(s) ? a[t] = ua(s, i) : a[t] = s;
3073
+ }, { allOwnKeys: n }), a), fi = (a) => (a.charCodeAt(0) === 65279 && (a = a.slice(1)), a), vi = (a, e, i, n) => {
3074
+ a.prototype = Object.create(e.prototype, n), a.prototype.constructor = a, Object.defineProperty(a, "super", {
3075
+ value: e.prototype
3076
+ }), i && Object.assign(a.prototype, i);
3077
+ }, bi = (a, e, i, n) => {
2902
3078
  let s, t, o;
2903
3079
  const r = {};
2904
- if (a = a || {}, e == null) return a;
3080
+ if (e = e || {}, a == null) return e;
2905
3081
  do {
2906
- for (s = Object.getOwnPropertyNames(e), t = s.length; t-- > 0; )
2907
- o = s[t], (!n || n(o, e, a)) && !r[o] && (a[o] = e[o], r[o] = !0);
2908
- e = i !== !1 && Te(e);
2909
- } while (e && (!i || i(e, a)) && e !== Object.prototype);
2910
- return a;
2911
- }, fi = (e, a, i) => {
2912
- e = String(e), (i === void 0 || i > e.length) && (i = e.length), i -= a.length;
2913
- const n = e.indexOf(a, i);
3082
+ for (s = Object.getOwnPropertyNames(a), t = s.length; t-- > 0; )
3083
+ o = s[t], (!n || n(o, a, e)) && !r[o] && (e[o] = a[o], r[o] = !0);
3084
+ a = i !== !1 && ze(a);
3085
+ } while (a && (!i || i(a, e)) && a !== Object.prototype);
3086
+ return e;
3087
+ }, hi = (a, e, i) => {
3088
+ a = String(a), (i === void 0 || i > a.length) && (i = a.length), i -= e.length;
3089
+ const n = a.indexOf(e, i);
2914
3090
  return n !== -1 && n === i;
2915
- }, vi = (e) => {
2916
- if (!e) return null;
2917
- if ($(e)) return e;
2918
- let a = e.length;
2919
- if (!la(a)) return null;
2920
- const i = new Array(a);
2921
- for (; a-- > 0; )
2922
- i[a] = e[a];
3091
+ }, gi = (a) => {
3092
+ if (!a) return null;
3093
+ if ($(a)) return a;
3094
+ let e = a.length;
3095
+ if (!xa(e)) return null;
3096
+ const i = new Array(e);
3097
+ for (; e-- > 0; )
3098
+ i[e] = a[e];
2923
3099
  return i;
2924
- }, bi = /* @__PURE__ */ ((e) => (a) => e && a instanceof e)(typeof Uint8Array < "u" && Te(Uint8Array)), hi = (e, a) => {
2925
- const n = (e && e[oe]).call(e);
3100
+ }, wi = /* @__PURE__ */ ((a) => (e) => a && e instanceof a)(typeof Uint8Array < "u" && ze(Uint8Array)), yi = (a, e) => {
3101
+ const n = (a && a[re]).call(a);
2926
3102
  let s;
2927
3103
  for (; (s = n.next()) && !s.done; ) {
2928
3104
  const t = s.value;
2929
- a.call(e, t[0], t[1]);
3105
+ e.call(a, t[0], t[1]);
2930
3106
  }
2931
- }, gi = (e, a) => {
3107
+ }, ki = (a, e) => {
2932
3108
  let i;
2933
3109
  const n = [];
2934
- for (; (i = e.exec(a)) !== null; )
3110
+ for (; (i = a.exec(e)) !== null; )
2935
3111
  n.push(i);
2936
3112
  return n;
2937
- }, wi = A("HTMLFormElement"), yi = (e) => e.toLowerCase().replace(
3113
+ }, ji = z("HTMLFormElement"), Ei = (a) => a.toLowerCase().replace(
2938
3114
  /[-_\s]([a-z\d])(\w*)/g,
2939
3115
  function(i, n, s) {
2940
3116
  return n.toUpperCase() + s;
2941
3117
  }
2942
- ), Je = (({ hasOwnProperty: e }) => (a, i) => e.call(a, i))(Object.prototype), ki = A("RegExp"), ma = (e, a) => {
2943
- const i = Object.getOwnPropertyDescriptors(e), n = {};
2944
- X(i, (s, t) => {
3118
+ ), Xe = (({ hasOwnProperty: a }) => (e, i) => a.call(e, i))(Object.prototype), Si = z("RegExp"), ba = (a, e) => {
3119
+ const i = Object.getOwnPropertyDescriptors(a), n = {};
3120
+ Q(i, (s, t) => {
2945
3121
  let o;
2946
- (o = a(s, t, e)) !== !1 && (n[t] = o || s);
2947
- }), Object.defineProperties(e, n);
2948
- }, ji = (e) => {
2949
- ma(e, (a, i) => {
2950
- if (R(e) && ["arguments", "caller", "callee"].indexOf(i) !== -1)
3122
+ (o = e(s, t, a)) !== !1 && (n[t] = o || s);
3123
+ }), Object.defineProperties(a, n);
3124
+ }, Ti = (a) => {
3125
+ ba(a, (e, i) => {
3126
+ if (R(a) && ["arguments", "caller", "callee"].indexOf(i) !== -1)
2951
3127
  return !1;
2952
- const n = e[i];
3128
+ const n = a[i];
2953
3129
  if (R(n)) {
2954
- if (a.enumerable = !1, "writable" in a) {
2955
- a.writable = !1;
3130
+ if (e.enumerable = !1, "writable" in e) {
3131
+ e.writable = !1;
2956
3132
  return;
2957
3133
  }
2958
- a.set || (a.set = () => {
3134
+ e.set || (e.set = () => {
2959
3135
  throw Error("Can not rewrite read-only method '" + i + "'");
2960
3136
  });
2961
3137
  }
2962
3138
  });
2963
- }, Ei = (e, a) => {
3139
+ }, Ri = (a, e) => {
2964
3140
  const i = {}, n = (s) => {
2965
3141
  s.forEach((t) => {
2966
3142
  i[t] = !0;
2967
3143
  });
2968
3144
  };
2969
- return $(e) ? n(e) : n(String(e).split(a)), i;
2970
- }, Si = () => {
2971
- }, Ti = (e, a) => e != null && Number.isFinite(e = +e) ? e : a;
2972
- function Ri(e) {
2973
- return !!(e && R(e.append) && e[ra] === "FormData" && e[oe]);
3145
+ return $(a) ? n(a) : n(String(a).split(e)), i;
3146
+ }, Oi = () => {
3147
+ }, Ai = (a, e) => a != null && Number.isFinite(a = +a) ? a : e;
3148
+ function zi(a) {
3149
+ return !!(a && R(a.append) && a[da] === "FormData" && a[re]);
2974
3150
  }
2975
- const Oi = (e) => {
2976
- const a = new Array(10), i = (n, s) => {
2977
- if (W(n)) {
2978
- if (a.indexOf(n) >= 0)
3151
+ const Ci = (a) => {
3152
+ const e = new Array(10), i = (n, s) => {
3153
+ if (G(n)) {
3154
+ if (e.indexOf(n) >= 0)
2979
3155
  return;
2980
- if (K(n))
3156
+ if (Y(n))
2981
3157
  return n;
2982
3158
  if (!("toJSON" in n)) {
2983
- a[s] = n;
3159
+ e[s] = n;
2984
3160
  const t = $(n) ? [] : {};
2985
- return X(n, (o, r) => {
3161
+ return Q(n, (o, r) => {
2986
3162
  const d = i(o, s + 1);
2987
3163
  !I(d) && (t[r] = d);
2988
- }), a[s] = void 0, t;
3164
+ }), e[s] = void 0, t;
2989
3165
  }
2990
3166
  }
2991
3167
  return n;
2992
3168
  };
2993
- return i(e, 0);
2994
- }, zi = A("AsyncFunction"), Ai = (e) => e && (W(e) || R(e)) && R(e.then) && R(e.catch), xa = ((e, a) => e ? setImmediate : a ? ((i, n) => (D.addEventListener("message", ({ source: s, data: t }) => {
3169
+ return i(a, 0);
3170
+ }, Fi = z("AsyncFunction"), qi = (a) => a && (G(a) || R(a)) && R(a.then) && R(a.catch), ha = ((a, e) => a ? setImmediate : e ? ((i, n) => (D.addEventListener("message", ({ source: s, data: t }) => {
2995
3171
  s === D && t === i && n.length && n.shift()();
2996
3172
  }, !1), (s) => {
2997
3173
  n.push(s), D.postMessage(i, "*");
2998
3174
  }))(`axios@${Math.random()}`, []) : (i) => setTimeout(i))(
2999
3175
  typeof setImmediate == "function",
3000
3176
  R(D.postMessage)
3001
- ), Fi = typeof queueMicrotask < "u" ? queueMicrotask.bind(D) : typeof process < "u" && process.nextTick || xa, Ci = (e) => e != null && R(e[oe]), c = {
3177
+ ), Ui = typeof queueMicrotask < "u" ? queueMicrotask.bind(D) : typeof process < "u" && process.nextTick || ha, Pi = (a) => a != null && R(a[re]), c = {
3002
3178
  isArray: $,
3003
- isArrayBuffer: pa,
3004
- isBuffer: K,
3005
- isFormData: si,
3006
- isArrayBufferView: Xa,
3007
- isString: Ya,
3008
- isNumber: la,
3009
- isBoolean: Ga,
3010
- isObject: W,
3011
- isPlainObject: ae,
3012
- isEmptyObject: Qa,
3013
- isReadableStream: ti,
3014
- isRequest: ci,
3015
- isResponse: ri,
3016
- isHeaders: pi,
3179
+ isArrayBuffer: ma,
3180
+ isBuffer: Y,
3181
+ isFormData: ci,
3182
+ isArrayBufferView: Qa,
3183
+ isString: Za,
3184
+ isNumber: xa,
3185
+ isBoolean: ei,
3186
+ isObject: G,
3187
+ isPlainObject: se,
3188
+ isEmptyObject: ai,
3189
+ isReadableStream: pi,
3190
+ isRequest: li,
3191
+ isResponse: ui,
3192
+ isHeaders: di,
3017
3193
  isUndefined: I,
3018
- isDate: Za,
3019
- isFile: ei,
3020
- isBlob: ai,
3021
- isRegExp: ki,
3194
+ isDate: ii,
3195
+ isFile: ni,
3196
+ isBlob: si,
3197
+ isRegExp: Si,
3022
3198
  isFunction: R,
3023
- isStream: ni,
3024
- isURLSearchParams: oi,
3025
- isTypedArray: bi,
3026
- isFileList: ii,
3027
- forEach: X,
3028
- merge: ye,
3029
- extend: ui,
3030
- trim: li,
3031
- stripBOM: di,
3032
- inherits: mi,
3033
- toFlatObject: xi,
3034
- kindOf: te,
3035
- kindOfTest: A,
3036
- endsWith: fi,
3037
- toArray: vi,
3038
- forEachEntry: hi,
3039
- matchAll: gi,
3040
- isHTMLForm: wi,
3041
- hasOwnProperty: Je,
3042
- hasOwnProp: Je,
3199
+ isStream: ti,
3200
+ isURLSearchParams: ri,
3201
+ isTypedArray: wi,
3202
+ isFileList: oi,
3203
+ forEach: Q,
3204
+ merge: Te,
3205
+ extend: xi,
3206
+ trim: mi,
3207
+ stripBOM: fi,
3208
+ inherits: vi,
3209
+ toFlatObject: bi,
3210
+ kindOf: pe,
3211
+ kindOfTest: z,
3212
+ endsWith: hi,
3213
+ toArray: gi,
3214
+ forEachEntry: yi,
3215
+ matchAll: ki,
3216
+ isHTMLForm: ji,
3217
+ hasOwnProperty: Xe,
3218
+ hasOwnProp: Xe,
3043
3219
  // an alias to avoid ESLint no-prototype-builtins detection
3044
- reduceDescriptors: ma,
3045
- freezeMethods: ji,
3046
- toObjectSet: Ei,
3047
- toCamelCase: yi,
3048
- noop: Si,
3049
- toFiniteNumber: Ti,
3050
- findKey: ua,
3220
+ reduceDescriptors: ba,
3221
+ freezeMethods: Ti,
3222
+ toObjectSet: Ri,
3223
+ toCamelCase: Ei,
3224
+ noop: Oi,
3225
+ toFiniteNumber: Ai,
3226
+ findKey: fa,
3051
3227
  global: D,
3052
- isContextDefined: da,
3053
- isSpecCompliantForm: Ri,
3054
- toJSONObject: Oi,
3055
- isAsyncFn: zi,
3056
- isThenable: Ai,
3057
- setImmediate: xa,
3058
- asap: Fi,
3059
- isIterable: Ci
3228
+ isContextDefined: va,
3229
+ isSpecCompliantForm: zi,
3230
+ toJSONObject: Ci,
3231
+ isAsyncFn: Fi,
3232
+ isThenable: qi,
3233
+ setImmediate: ha,
3234
+ asap: Ui,
3235
+ isIterable: Pi
3060
3236
  };
3061
- function v(e, a, i, n, s) {
3062
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", a && (this.code = a), i && (this.config = i), n && (this.request = n), s && (this.response = s, this.status = s.status ? s.status : null);
3237
+ function v(a, e, i, n, s) {
3238
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = a, this.name = "AxiosError", e && (this.code = e), i && (this.config = i), n && (this.request = n), s && (this.response = s, this.status = s.status ? s.status : null);
3063
3239
  }
3064
3240
  c.inherits(v, Error, {
3065
3241
  toJSON: function() {
@@ -3082,7 +3258,7 @@ c.inherits(v, Error, {
3082
3258
  };
3083
3259
  }
3084
3260
  });
3085
- const fa = v.prototype, va = {};
3261
+ const ga = v.prototype, wa = {};
3086
3262
  [
3087
3263
  "ERR_BAD_OPTION_VALUE",
3088
3264
  "ERR_BAD_OPTION",
@@ -3097,48 +3273,48 @@ const fa = v.prototype, va = {};
3097
3273
  "ERR_NOT_SUPPORT",
3098
3274
  "ERR_INVALID_URL"
3099
3275
  // eslint-disable-next-line func-names
3100
- ].forEach((e) => {
3101
- va[e] = { value: e };
3276
+ ].forEach((a) => {
3277
+ wa[a] = { value: a };
3102
3278
  });
3103
- Object.defineProperties(v, va);
3104
- Object.defineProperty(fa, "isAxiosError", { value: !0 });
3105
- v.from = (e, a, i, n, s, t) => {
3106
- const o = Object.create(fa);
3107
- c.toFlatObject(e, o, function(u) {
3279
+ Object.defineProperties(v, wa);
3280
+ Object.defineProperty(ga, "isAxiosError", { value: !0 });
3281
+ v.from = (a, e, i, n, s, t) => {
3282
+ const o = Object.create(ga);
3283
+ c.toFlatObject(a, o, function(u) {
3108
3284
  return u !== Error.prototype;
3109
3285
  }, (l) => l !== "isAxiosError");
3110
- const r = e && e.message ? e.message : "Error", d = a == null && e ? e.code : a;
3111
- return v.call(o, r, d, i, n, s), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", t && Object.assign(o, t), o;
3286
+ const r = a && a.message ? a.message : "Error", d = e == null && a ? a.code : e;
3287
+ return v.call(o, r, d, i, n, s), a && o.cause == null && Object.defineProperty(o, "cause", { value: a, configurable: !0 }), o.name = a && a.name || "Error", t && Object.assign(o, t), o;
3112
3288
  };
3113
- const qi = null;
3114
- function ke(e) {
3115
- return c.isPlainObject(e) || c.isArray(e);
3289
+ const _i = null;
3290
+ function Re(a) {
3291
+ return c.isPlainObject(a) || c.isArray(a);
3116
3292
  }
3117
- function ba(e) {
3118
- return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
3293
+ function ya(a) {
3294
+ return c.endsWith(a, "[]") ? a.slice(0, -2) : a;
3119
3295
  }
3120
- function Ve(e, a, i) {
3121
- return e ? e.concat(a).map(function(s, t) {
3122
- return s = ba(s), !i && t ? "[" + s + "]" : s;
3123
- }).join(i ? "." : "") : a;
3296
+ function Ye(a, e, i) {
3297
+ return a ? a.concat(e).map(function(s, t) {
3298
+ return s = ya(s), !i && t ? "[" + s + "]" : s;
3299
+ }).join(i ? "." : "") : e;
3124
3300
  }
3125
- function Ui(e) {
3126
- return c.isArray(e) && !e.some(ke);
3301
+ function Ni(a) {
3302
+ return c.isArray(a) && !a.some(Re);
3127
3303
  }
3128
- const _i = c.toFlatObject(c, {}, null, function(a) {
3129
- return /^is[A-Z]/.test(a);
3304
+ const Di = c.toFlatObject(c, {}, null, function(e) {
3305
+ return /^is[A-Z]/.test(e);
3130
3306
  });
3131
- function re(e, a, i) {
3132
- if (!c.isObject(e))
3307
+ function ue(a, e, i) {
3308
+ if (!c.isObject(a))
3133
3309
  throw new TypeError("target must be an object");
3134
- a = a || new FormData(), i = c.toFlatObject(i, {
3310
+ e = e || new FormData(), i = c.toFlatObject(i, {
3135
3311
  metaTokens: !0,
3136
3312
  dots: !1,
3137
3313
  indexes: !1
3138
3314
  }, !1, function(x, m) {
3139
3315
  return !c.isUndefined(m[x]);
3140
3316
  });
3141
- const n = i.metaTokens, s = i.visitor || u, t = i.dots, o = i.indexes, d = (i.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(a);
3317
+ const n = i.metaTokens, s = i.visitor || u, t = i.dots, o = i.indexes, d = (i.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(e);
3142
3318
  if (!c.isFunction(s))
3143
3319
  throw new TypeError("visitor must be a function");
3144
3320
  function l(p) {
@@ -3156,21 +3332,21 @@ function re(e, a, i) {
3156
3332
  if (p && !m && typeof p == "object") {
3157
3333
  if (c.endsWith(x, "{}"))
3158
3334
  x = n ? x : x.slice(0, -2), p = JSON.stringify(p);
3159
- else if (c.isArray(p) && Ui(p) || (c.isFileList(p) || c.endsWith(x, "[]")) && (g = c.toArray(p)))
3160
- return x = ba(x), g.forEach(function(k, w) {
3161
- !(c.isUndefined(k) || k === null) && a.append(
3335
+ else if (c.isArray(p) && Ni(p) || (c.isFileList(p) || c.endsWith(x, "[]")) && (g = c.toArray(p)))
3336
+ return x = ya(x), g.forEach(function(k, w) {
3337
+ !(c.isUndefined(k) || k === null) && e.append(
3162
3338
  // eslint-disable-next-line no-nested-ternary
3163
- o === !0 ? Ve([x], w, t) : o === null ? x : x + "[]",
3339
+ o === !0 ? Ye([x], w, t) : o === null ? x : x + "[]",
3164
3340
  l(k)
3165
3341
  );
3166
3342
  }), !1;
3167
3343
  }
3168
- return ke(p) ? !0 : (a.append(Ve(m, x, t), l(p)), !1);
3344
+ return Re(p) ? !0 : (e.append(Ye(m, x, t), l(p)), !1);
3169
3345
  }
3170
- const f = [], h = Object.assign(_i, {
3346
+ const f = [], h = Object.assign(Di, {
3171
3347
  defaultVisitor: u,
3172
3348
  convertValue: l,
3173
- isVisitable: ke
3349
+ isVisitable: Re
3174
3350
  });
3175
3351
  function b(p, x) {
3176
3352
  if (!c.isUndefined(p)) {
@@ -3178,7 +3354,7 @@ function re(e, a, i) {
3178
3354
  throw Error("Circular reference detected in " + x.join("."));
3179
3355
  f.push(p), c.forEach(p, function(g, y) {
3180
3356
  (!(c.isUndefined(g) || g === null) && s.call(
3181
- a,
3357
+ e,
3182
3358
  g,
3183
3359
  c.isString(y) ? y.trim() : y,
3184
3360
  x,
@@ -3187,12 +3363,12 @@ function re(e, a, i) {
3187
3363
  }), f.pop();
3188
3364
  }
3189
3365
  }
3190
- if (!c.isObject(e))
3366
+ if (!c.isObject(a))
3191
3367
  throw new TypeError("data must be an object");
3192
- return b(e), a;
3368
+ return b(a), e;
3193
3369
  }
3194
- function Ke(e) {
3195
- const a = {
3370
+ function Ge(a) {
3371
+ const e = {
3196
3372
  "!": "%21",
3197
3373
  "'": "%27",
3198
3374
  "(": "%28",
@@ -3201,44 +3377,44 @@ function Ke(e) {
3201
3377
  "%20": "+",
3202
3378
  "%00": "\0"
3203
3379
  };
3204
- return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
3205
- return a[n];
3380
+ return encodeURIComponent(a).replace(/[!'()~]|%20|%00/g, function(n) {
3381
+ return e[n];
3206
3382
  });
3207
3383
  }
3208
- function Re(e, a) {
3209
- this._pairs = [], e && re(e, this, a);
3384
+ function Ce(a, e) {
3385
+ this._pairs = [], a && ue(a, this, e);
3210
3386
  }
3211
- const ha = Re.prototype;
3212
- ha.append = function(a, i) {
3213
- this._pairs.push([a, i]);
3387
+ const ka = Ce.prototype;
3388
+ ka.append = function(e, i) {
3389
+ this._pairs.push([e, i]);
3214
3390
  };
3215
- ha.toString = function(a) {
3216
- const i = a ? function(n) {
3217
- return a.call(this, n, Ke);
3218
- } : Ke;
3391
+ ka.toString = function(e) {
3392
+ const i = e ? function(n) {
3393
+ return e.call(this, n, Ge);
3394
+ } : Ge;
3219
3395
  return this._pairs.map(function(s) {
3220
3396
  return i(s[0]) + "=" + i(s[1]);
3221
3397
  }, "").join("&");
3222
3398
  };
3223
- function Pi(e) {
3224
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
3399
+ function Li(a) {
3400
+ return encodeURIComponent(a).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
3225
3401
  }
3226
- function ga(e, a, i) {
3227
- if (!a)
3228
- return e;
3229
- const n = i && i.encode || Pi;
3402
+ function ja(a, e, i) {
3403
+ if (!e)
3404
+ return a;
3405
+ const n = i && i.encode || Li;
3230
3406
  c.isFunction(i) && (i = {
3231
3407
  serialize: i
3232
3408
  });
3233
3409
  const s = i && i.serialize;
3234
3410
  let t;
3235
- if (s ? t = s(a, i) : t = c.isURLSearchParams(a) ? a.toString() : new Re(a, i).toString(n), t) {
3236
- const o = e.indexOf("#");
3237
- o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + t;
3411
+ if (s ? t = s(e, i) : t = c.isURLSearchParams(e) ? e.toString() : new Ce(e, i).toString(n), t) {
3412
+ const o = a.indexOf("#");
3413
+ o !== -1 && (a = a.slice(0, o)), a += (a.indexOf("?") === -1 ? "?" : "&") + t;
3238
3414
  }
3239
- return e;
3415
+ return a;
3240
3416
  }
3241
- class We {
3417
+ class Qe {
3242
3418
  constructor() {
3243
3419
  this.handlers = [];
3244
3420
  }
@@ -3250,9 +3426,9 @@ class We {
3250
3426
  *
3251
3427
  * @return {Number} An ID used to remove interceptor later
3252
3428
  */
3253
- use(a, i, n) {
3429
+ use(e, i, n) {
3254
3430
  return this.handlers.push({
3255
- fulfilled: a,
3431
+ fulfilled: e,
3256
3432
  rejected: i,
3257
3433
  synchronous: n ? n.synchronous : !1,
3258
3434
  runWhen: n ? n.runWhen : null
@@ -3265,8 +3441,8 @@ class We {
3265
3441
  *
3266
3442
  * @returns {void}
3267
3443
  */
3268
- eject(a) {
3269
- this.handlers[a] && (this.handlers[a] = null);
3444
+ eject(e) {
3445
+ this.handlers[e] && (this.handlers[e] = null);
3270
3446
  }
3271
3447
  /**
3272
3448
  * Clear all interceptors from the stack
@@ -3286,123 +3462,123 @@ class We {
3286
3462
  *
3287
3463
  * @returns {void}
3288
3464
  */
3289
- forEach(a) {
3465
+ forEach(e) {
3290
3466
  c.forEach(this.handlers, function(n) {
3291
- n !== null && a(n);
3467
+ n !== null && e(n);
3292
3468
  });
3293
3469
  }
3294
3470
  }
3295
- const wa = {
3471
+ const Ea = {
3296
3472
  silentJSONParsing: !0,
3297
3473
  forcedJSONParsing: !0,
3298
3474
  clarifyTimeoutError: !1
3299
- }, Ni = typeof URLSearchParams < "u" ? URLSearchParams : Re, Di = typeof FormData < "u" ? FormData : null, Li = typeof Blob < "u" ? Blob : null, Mi = {
3475
+ }, Mi = typeof URLSearchParams < "u" ? URLSearchParams : Ce, Bi = typeof FormData < "u" ? FormData : null, Ii = typeof Blob < "u" ? Blob : null, $i = {
3300
3476
  isBrowser: !0,
3301
3477
  classes: {
3302
- URLSearchParams: Ni,
3303
- FormData: Di,
3304
- Blob: Li
3478
+ URLSearchParams: Mi,
3479
+ FormData: Bi,
3480
+ Blob: Ii
3305
3481
  },
3306
3482
  protocols: ["http", "https", "file", "blob", "url", "data"]
3307
- }, Oe = typeof window < "u" && typeof document < "u", je = typeof navigator == "object" && navigator || void 0, Bi = Oe && (!je || ["ReactNative", "NativeScript", "NS"].indexOf(je.product) < 0), Ii = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
3308
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", $i = Oe && window.location.href || "http://localhost", Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3483
+ }, Fe = typeof window < "u" && typeof document < "u", Oe = typeof navigator == "object" && navigator || void 0, Hi = Fe && (!Oe || ["ReactNative", "NativeScript", "NS"].indexOf(Oe.product) < 0), Vi = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
3484
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ji = Fe && window.location.href || "http://localhost", Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3309
3485
  __proto__: null,
3310
- hasBrowserEnv: Oe,
3311
- hasStandardBrowserEnv: Bi,
3312
- hasStandardBrowserWebWorkerEnv: Ii,
3313
- navigator: je,
3314
- origin: $i
3486
+ hasBrowserEnv: Fe,
3487
+ hasStandardBrowserEnv: Hi,
3488
+ hasStandardBrowserWebWorkerEnv: Vi,
3489
+ navigator: Oe,
3490
+ origin: Ji
3315
3491
  }, Symbol.toStringTag, { value: "Module" })), S = {
3316
- ...Hi,
3317
- ...Mi
3492
+ ...Ki,
3493
+ ...$i
3318
3494
  };
3319
- function Ji(e, a) {
3320
- return re(e, new S.classes.URLSearchParams(), {
3495
+ function Wi(a, e) {
3496
+ return ue(a, new S.classes.URLSearchParams(), {
3321
3497
  visitor: function(i, n, s, t) {
3322
3498
  return S.isNode && c.isBuffer(i) ? (this.append(n, i.toString("base64")), !1) : t.defaultVisitor.apply(this, arguments);
3323
3499
  },
3324
- ...a
3500
+ ...e
3325
3501
  });
3326
3502
  }
3327
- function Vi(e) {
3328
- return c.matchAll(/\w+|\[(\w*)]/g, e).map((a) => a[0] === "[]" ? "" : a[1] || a[0]);
3503
+ function Xi(a) {
3504
+ return c.matchAll(/\w+|\[(\w*)]/g, a).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
3329
3505
  }
3330
- function Ki(e) {
3331
- const a = {}, i = Object.keys(e);
3506
+ function Yi(a) {
3507
+ const e = {}, i = Object.keys(a);
3332
3508
  let n;
3333
3509
  const s = i.length;
3334
3510
  let t;
3335
3511
  for (n = 0; n < s; n++)
3336
- t = i[n], a[t] = e[t];
3337
- return a;
3512
+ t = i[n], e[t] = a[t];
3513
+ return e;
3338
3514
  }
3339
- function ya(e) {
3340
- function a(i, n, s, t) {
3515
+ function Sa(a) {
3516
+ function e(i, n, s, t) {
3341
3517
  let o = i[t++];
3342
3518
  if (o === "__proto__") return !0;
3343
3519
  const r = Number.isFinite(+o), d = t >= i.length;
3344
- return o = !o && c.isArray(s) ? s.length : o, d ? (c.hasOwnProp(s, o) ? s[o] = [s[o], n] : s[o] = n, !r) : ((!s[o] || !c.isObject(s[o])) && (s[o] = []), a(i, n, s[o], t) && c.isArray(s[o]) && (s[o] = Ki(s[o])), !r);
3520
+ return o = !o && c.isArray(s) ? s.length : o, d ? (c.hasOwnProp(s, o) ? s[o] = [s[o], n] : s[o] = n, !r) : ((!s[o] || !c.isObject(s[o])) && (s[o] = []), e(i, n, s[o], t) && c.isArray(s[o]) && (s[o] = Yi(s[o])), !r);
3345
3521
  }
3346
- if (c.isFormData(e) && c.isFunction(e.entries)) {
3522
+ if (c.isFormData(a) && c.isFunction(a.entries)) {
3347
3523
  const i = {};
3348
- return c.forEachEntry(e, (n, s) => {
3349
- a(Vi(n), s, i, 0);
3524
+ return c.forEachEntry(a, (n, s) => {
3525
+ e(Xi(n), s, i, 0);
3350
3526
  }), i;
3351
3527
  }
3352
3528
  return null;
3353
3529
  }
3354
- function Wi(e, a, i) {
3355
- if (c.isString(e))
3530
+ function Gi(a, e, i) {
3531
+ if (c.isString(a))
3356
3532
  try {
3357
- return (a || JSON.parse)(e), c.trim(e);
3533
+ return (e || JSON.parse)(a), c.trim(a);
3358
3534
  } catch (n) {
3359
3535
  if (n.name !== "SyntaxError")
3360
3536
  throw n;
3361
3537
  }
3362
- return (i || JSON.stringify)(e);
3538
+ return (i || JSON.stringify)(a);
3363
3539
  }
3364
- const Y = {
3365
- transitional: wa,
3540
+ const Z = {
3541
+ transitional: Ea,
3366
3542
  adapter: ["xhr", "http", "fetch"],
3367
- transformRequest: [function(a, i) {
3368
- const n = i.getContentType() || "", s = n.indexOf("application/json") > -1, t = c.isObject(a);
3369
- if (t && c.isHTMLForm(a) && (a = new FormData(a)), c.isFormData(a))
3370
- return s ? JSON.stringify(ya(a)) : a;
3371
- if (c.isArrayBuffer(a) || c.isBuffer(a) || c.isStream(a) || c.isFile(a) || c.isBlob(a) || c.isReadableStream(a))
3372
- return a;
3373
- if (c.isArrayBufferView(a))
3374
- return a.buffer;
3375
- if (c.isURLSearchParams(a))
3376
- return i.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), a.toString();
3543
+ transformRequest: [function(e, i) {
3544
+ const n = i.getContentType() || "", s = n.indexOf("application/json") > -1, t = c.isObject(e);
3545
+ if (t && c.isHTMLForm(e) && (e = new FormData(e)), c.isFormData(e))
3546
+ return s ? JSON.stringify(Sa(e)) : e;
3547
+ if (c.isArrayBuffer(e) || c.isBuffer(e) || c.isStream(e) || c.isFile(e) || c.isBlob(e) || c.isReadableStream(e))
3548
+ return e;
3549
+ if (c.isArrayBufferView(e))
3550
+ return e.buffer;
3551
+ if (c.isURLSearchParams(e))
3552
+ return i.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
3377
3553
  let r;
3378
3554
  if (t) {
3379
3555
  if (n.indexOf("application/x-www-form-urlencoded") > -1)
3380
- return Ji(a, this.formSerializer).toString();
3381
- if ((r = c.isFileList(a)) || n.indexOf("multipart/form-data") > -1) {
3556
+ return Wi(e, this.formSerializer).toString();
3557
+ if ((r = c.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
3382
3558
  const d = this.env && this.env.FormData;
3383
- return re(
3384
- r ? { "files[]": a } : a,
3559
+ return ue(
3560
+ r ? { "files[]": e } : e,
3385
3561
  d && new d(),
3386
3562
  this.formSerializer
3387
3563
  );
3388
3564
  }
3389
3565
  }
3390
- return t || s ? (i.setContentType("application/json", !1), Wi(a)) : a;
3566
+ return t || s ? (i.setContentType("application/json", !1), Gi(e)) : e;
3391
3567
  }],
3392
- transformResponse: [function(a) {
3393
- const i = this.transitional || Y.transitional, n = i && i.forcedJSONParsing, s = this.responseType === "json";
3394
- if (c.isResponse(a) || c.isReadableStream(a))
3395
- return a;
3396
- if (a && c.isString(a) && (n && !this.responseType || s)) {
3568
+ transformResponse: [function(e) {
3569
+ const i = this.transitional || Z.transitional, n = i && i.forcedJSONParsing, s = this.responseType === "json";
3570
+ if (c.isResponse(e) || c.isReadableStream(e))
3571
+ return e;
3572
+ if (e && c.isString(e) && (n && !this.responseType || s)) {
3397
3573
  const o = !(i && i.silentJSONParsing) && s;
3398
3574
  try {
3399
- return JSON.parse(a, this.parseReviver);
3575
+ return JSON.parse(e, this.parseReviver);
3400
3576
  } catch (r) {
3401
3577
  if (o)
3402
3578
  throw r.name === "SyntaxError" ? v.from(r, v.ERR_BAD_RESPONSE, this, null, this.response) : r;
3403
3579
  }
3404
3580
  }
3405
- return a;
3581
+ return e;
3406
3582
  }],
3407
3583
  /**
3408
3584
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
@@ -3417,8 +3593,8 @@ const Y = {
3417
3593
  FormData: S.classes.FormData,
3418
3594
  Blob: S.classes.Blob
3419
3595
  },
3420
- validateStatus: function(a) {
3421
- return a >= 200 && a < 300;
3596
+ validateStatus: function(e) {
3597
+ return e >= 200 && e < 300;
3422
3598
  },
3423
3599
  headers: {
3424
3600
  common: {
@@ -3427,10 +3603,10 @@ const Y = {
3427
3603
  }
3428
3604
  }
3429
3605
  };
3430
- c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
3431
- Y.headers[e] = {};
3606
+ c.forEach(["delete", "get", "head", "post", "put", "patch"], (a) => {
3607
+ Z.headers[a] = {};
3432
3608
  });
3433
- const Xi = c.toObjectSet([
3609
+ const Qi = c.toObjectSet([
3434
3610
  "age",
3435
3611
  "authorization",
3436
3612
  "content-length",
@@ -3448,91 +3624,91 @@ const Xi = c.toObjectSet([
3448
3624
  "referer",
3449
3625
  "retry-after",
3450
3626
  "user-agent"
3451
- ]), Yi = (e) => {
3452
- const a = {};
3627
+ ]), Zi = (a) => {
3628
+ const e = {};
3453
3629
  let i, n, s;
3454
- return e && e.split(`
3630
+ return a && a.split(`
3455
3631
  `).forEach(function(o) {
3456
- s = o.indexOf(":"), i = o.substring(0, s).trim().toLowerCase(), n = o.substring(s + 1).trim(), !(!i || a[i] && Xi[i]) && (i === "set-cookie" ? a[i] ? a[i].push(n) : a[i] = [n] : a[i] = a[i] ? a[i] + ", " + n : n);
3457
- }), a;
3458
- }, Xe = Symbol("internals");
3459
- function V(e) {
3460
- return e && String(e).trim().toLowerCase();
3632
+ s = o.indexOf(":"), i = o.substring(0, s).trim().toLowerCase(), n = o.substring(s + 1).trim(), !(!i || e[i] && Qi[i]) && (i === "set-cookie" ? e[i] ? e[i].push(n) : e[i] = [n] : e[i] = e[i] ? e[i] + ", " + n : n);
3633
+ }), e;
3634
+ }, Ze = Symbol("internals");
3635
+ function K(a) {
3636
+ return a && String(a).trim().toLowerCase();
3461
3637
  }
3462
- function ie(e) {
3463
- return e === !1 || e == null ? e : c.isArray(e) ? e.map(ie) : String(e);
3638
+ function oe(a) {
3639
+ return a === !1 || a == null ? a : c.isArray(a) ? a.map(oe) : String(a);
3464
3640
  }
3465
- function Gi(e) {
3466
- const a = /* @__PURE__ */ Object.create(null), i = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
3641
+ function en(a) {
3642
+ const e = /* @__PURE__ */ Object.create(null), i = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
3467
3643
  let n;
3468
- for (; n = i.exec(e); )
3469
- a[n[1]] = n[2];
3470
- return a;
3644
+ for (; n = i.exec(a); )
3645
+ e[n[1]] = n[2];
3646
+ return e;
3471
3647
  }
3472
- const Qi = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
3473
- function fe(e, a, i, n, s) {
3648
+ const an = (a) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(a.trim());
3649
+ function he(a, e, i, n, s) {
3474
3650
  if (c.isFunction(n))
3475
- return n.call(this, a, i);
3476
- if (s && (a = i), !!c.isString(a)) {
3651
+ return n.call(this, e, i);
3652
+ if (s && (e = i), !!c.isString(e)) {
3477
3653
  if (c.isString(n))
3478
- return a.indexOf(n) !== -1;
3654
+ return e.indexOf(n) !== -1;
3479
3655
  if (c.isRegExp(n))
3480
- return n.test(a);
3656
+ return n.test(e);
3481
3657
  }
3482
3658
  }
3483
- function Zi(e) {
3484
- return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (a, i, n) => i.toUpperCase() + n);
3659
+ function nn(a) {
3660
+ return a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, i, n) => i.toUpperCase() + n);
3485
3661
  }
3486
- function en(e, a) {
3487
- const i = c.toCamelCase(" " + a);
3662
+ function sn(a, e) {
3663
+ const i = c.toCamelCase(" " + e);
3488
3664
  ["get", "set", "has"].forEach((n) => {
3489
- Object.defineProperty(e, n + i, {
3665
+ Object.defineProperty(a, n + i, {
3490
3666
  value: function(s, t, o) {
3491
- return this[n].call(this, a, s, t, o);
3667
+ return this[n].call(this, e, s, t, o);
3492
3668
  },
3493
3669
  configurable: !0
3494
3670
  });
3495
3671
  });
3496
3672
  }
3497
3673
  let O = class {
3498
- constructor(a) {
3499
- a && this.set(a);
3674
+ constructor(e) {
3675
+ e && this.set(e);
3500
3676
  }
3501
- set(a, i, n) {
3677
+ set(e, i, n) {
3502
3678
  const s = this;
3503
3679
  function t(r, d, l) {
3504
- const u = V(d);
3680
+ const u = K(d);
3505
3681
  if (!u)
3506
3682
  throw new Error("header name must be a non-empty string");
3507
3683
  const f = c.findKey(s, u);
3508
- (!f || s[f] === void 0 || l === !0 || l === void 0 && s[f] !== !1) && (s[f || d] = ie(r));
3684
+ (!f || s[f] === void 0 || l === !0 || l === void 0 && s[f] !== !1) && (s[f || d] = oe(r));
3509
3685
  }
3510
3686
  const o = (r, d) => c.forEach(r, (l, u) => t(l, u, d));
3511
- if (c.isPlainObject(a) || a instanceof this.constructor)
3512
- o(a, i);
3513
- else if (c.isString(a) && (a = a.trim()) && !Qi(a))
3514
- o(Yi(a), i);
3515
- else if (c.isObject(a) && c.isIterable(a)) {
3687
+ if (c.isPlainObject(e) || e instanceof this.constructor)
3688
+ o(e, i);
3689
+ else if (c.isString(e) && (e = e.trim()) && !an(e))
3690
+ o(Zi(e), i);
3691
+ else if (c.isObject(e) && c.isIterable(e)) {
3516
3692
  let r = {}, d, l;
3517
- for (const u of a) {
3693
+ for (const u of e) {
3518
3694
  if (!c.isArray(u))
3519
3695
  throw TypeError("Object iterator must return a key-value pair");
3520
3696
  r[l = u[0]] = (d = r[l]) ? c.isArray(d) ? [...d, u[1]] : [d, u[1]] : u[1];
3521
3697
  }
3522
3698
  o(r, i);
3523
3699
  } else
3524
- a != null && t(i, a, n);
3700
+ e != null && t(i, e, n);
3525
3701
  return this;
3526
3702
  }
3527
- get(a, i) {
3528
- if (a = V(a), a) {
3529
- const n = c.findKey(this, a);
3703
+ get(e, i) {
3704
+ if (e = K(e), e) {
3705
+ const n = c.findKey(this, e);
3530
3706
  if (n) {
3531
3707
  const s = this[n];
3532
3708
  if (!i)
3533
3709
  return s;
3534
3710
  if (i === !0)
3535
- return Gi(s);
3711
+ return en(s);
3536
3712
  if (c.isFunction(i))
3537
3713
  return i.call(this, s, n);
3538
3714
  if (c.isRegExp(i))
@@ -3541,59 +3717,59 @@ let O = class {
3541
3717
  }
3542
3718
  }
3543
3719
  }
3544
- has(a, i) {
3545
- if (a = V(a), a) {
3546
- const n = c.findKey(this, a);
3547
- return !!(n && this[n] !== void 0 && (!i || fe(this, this[n], n, i)));
3720
+ has(e, i) {
3721
+ if (e = K(e), e) {
3722
+ const n = c.findKey(this, e);
3723
+ return !!(n && this[n] !== void 0 && (!i || he(this, this[n], n, i)));
3548
3724
  }
3549
3725
  return !1;
3550
3726
  }
3551
- delete(a, i) {
3727
+ delete(e, i) {
3552
3728
  const n = this;
3553
3729
  let s = !1;
3554
3730
  function t(o) {
3555
- if (o = V(o), o) {
3731
+ if (o = K(o), o) {
3556
3732
  const r = c.findKey(n, o);
3557
- r && (!i || fe(n, n[r], r, i)) && (delete n[r], s = !0);
3733
+ r && (!i || he(n, n[r], r, i)) && (delete n[r], s = !0);
3558
3734
  }
3559
3735
  }
3560
- return c.isArray(a) ? a.forEach(t) : t(a), s;
3736
+ return c.isArray(e) ? e.forEach(t) : t(e), s;
3561
3737
  }
3562
- clear(a) {
3738
+ clear(e) {
3563
3739
  const i = Object.keys(this);
3564
3740
  let n = i.length, s = !1;
3565
3741
  for (; n--; ) {
3566
3742
  const t = i[n];
3567
- (!a || fe(this, this[t], t, a, !0)) && (delete this[t], s = !0);
3743
+ (!e || he(this, this[t], t, e, !0)) && (delete this[t], s = !0);
3568
3744
  }
3569
3745
  return s;
3570
3746
  }
3571
- normalize(a) {
3747
+ normalize(e) {
3572
3748
  const i = this, n = {};
3573
3749
  return c.forEach(this, (s, t) => {
3574
3750
  const o = c.findKey(n, t);
3575
3751
  if (o) {
3576
- i[o] = ie(s), delete i[t];
3752
+ i[o] = oe(s), delete i[t];
3577
3753
  return;
3578
3754
  }
3579
- const r = a ? Zi(t) : String(t).trim();
3580
- r !== t && delete i[t], i[r] = ie(s), n[r] = !0;
3755
+ const r = e ? nn(t) : String(t).trim();
3756
+ r !== t && delete i[t], i[r] = oe(s), n[r] = !0;
3581
3757
  }), this;
3582
3758
  }
3583
- concat(...a) {
3584
- return this.constructor.concat(this, ...a);
3759
+ concat(...e) {
3760
+ return this.constructor.concat(this, ...e);
3585
3761
  }
3586
- toJSON(a) {
3762
+ toJSON(e) {
3587
3763
  const i = /* @__PURE__ */ Object.create(null);
3588
3764
  return c.forEach(this, (n, s) => {
3589
- n != null && n !== !1 && (i[s] = a && c.isArray(n) ? n.join(", ") : n);
3765
+ n != null && n !== !1 && (i[s] = e && c.isArray(n) ? n.join(", ") : n);
3590
3766
  }), i;
3591
3767
  }
3592
3768
  [Symbol.iterator]() {
3593
3769
  return Object.entries(this.toJSON())[Symbol.iterator]();
3594
3770
  }
3595
3771
  toString() {
3596
- return Object.entries(this.toJSON()).map(([a, i]) => a + ": " + i).join(`
3772
+ return Object.entries(this.toJSON()).map(([e, i]) => e + ": " + i).join(`
3597
3773
  `);
3598
3774
  }
3599
3775
  getSetCookie() {
@@ -3602,54 +3778,54 @@ let O = class {
3602
3778
  get [Symbol.toStringTag]() {
3603
3779
  return "AxiosHeaders";
3604
3780
  }
3605
- static from(a) {
3606
- return a instanceof this ? a : new this(a);
3781
+ static from(e) {
3782
+ return e instanceof this ? e : new this(e);
3607
3783
  }
3608
- static concat(a, ...i) {
3609
- const n = new this(a);
3784
+ static concat(e, ...i) {
3785
+ const n = new this(e);
3610
3786
  return i.forEach((s) => n.set(s)), n;
3611
3787
  }
3612
- static accessor(a) {
3613
- const n = (this[Xe] = this[Xe] = {
3788
+ static accessor(e) {
3789
+ const n = (this[Ze] = this[Ze] = {
3614
3790
  accessors: {}
3615
3791
  }).accessors, s = this.prototype;
3616
3792
  function t(o) {
3617
- const r = V(o);
3618
- n[r] || (en(s, o), n[r] = !0);
3793
+ const r = K(o);
3794
+ n[r] || (sn(s, o), n[r] = !0);
3619
3795
  }
3620
- return c.isArray(a) ? a.forEach(t) : t(a), this;
3796
+ return c.isArray(e) ? e.forEach(t) : t(e), this;
3621
3797
  }
3622
3798
  };
3623
3799
  O.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
3624
- c.reduceDescriptors(O.prototype, ({ value: e }, a) => {
3625
- let i = a[0].toUpperCase() + a.slice(1);
3800
+ c.reduceDescriptors(O.prototype, ({ value: a }, e) => {
3801
+ let i = e[0].toUpperCase() + e.slice(1);
3626
3802
  return {
3627
- get: () => e,
3803
+ get: () => a,
3628
3804
  set(n) {
3629
3805
  this[i] = n;
3630
3806
  }
3631
3807
  };
3632
3808
  });
3633
3809
  c.freezeMethods(O);
3634
- function ve(e, a) {
3635
- const i = this || Y, n = a || i, s = O.from(n.headers);
3810
+ function ge(a, e) {
3811
+ const i = this || Z, n = e || i, s = O.from(n.headers);
3636
3812
  let t = n.data;
3637
- return c.forEach(e, function(r) {
3638
- t = r.call(i, t, s.normalize(), a ? a.status : void 0);
3813
+ return c.forEach(a, function(r) {
3814
+ t = r.call(i, t, s.normalize(), e ? e.status : void 0);
3639
3815
  }), s.normalize(), t;
3640
3816
  }
3641
- function ka(e) {
3642
- return !!(e && e.__CANCEL__);
3817
+ function Ta(a) {
3818
+ return !!(a && a.__CANCEL__);
3643
3819
  }
3644
- function H(e, a, i) {
3645
- v.call(this, e ?? "canceled", v.ERR_CANCELED, a, i), this.name = "CanceledError";
3820
+ function H(a, e, i) {
3821
+ v.call(this, a ?? "canceled", v.ERR_CANCELED, e, i), this.name = "CanceledError";
3646
3822
  }
3647
3823
  c.inherits(H, v, {
3648
3824
  __CANCEL__: !0
3649
3825
  });
3650
- function ja(e, a, i) {
3826
+ function Ra(a, e, i) {
3651
3827
  const n = i.config.validateStatus;
3652
- !i.status || !n || n(i.status) ? e(i) : a(new v(
3828
+ !i.status || !n || n(i.status) ? a(i) : e(new v(
3653
3829
  "Request failed with status code " + i.status,
3654
3830
  [v.ERR_BAD_REQUEST, v.ERR_BAD_RESPONSE][Math.floor(i.status / 100) - 4],
3655
3831
  i.config,
@@ -3657,30 +3833,30 @@ function ja(e, a, i) {
3657
3833
  i
3658
3834
  ));
3659
3835
  }
3660
- function an(e) {
3661
- const a = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
3662
- return a && a[1] || "";
3836
+ function on(a) {
3837
+ const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(a);
3838
+ return e && e[1] || "";
3663
3839
  }
3664
- function nn(e, a) {
3665
- e = e || 10;
3666
- const i = new Array(e), n = new Array(e);
3840
+ function tn(a, e) {
3841
+ a = a || 10;
3842
+ const i = new Array(a), n = new Array(a);
3667
3843
  let s = 0, t = 0, o;
3668
- return a = a !== void 0 ? a : 1e3, function(d) {
3844
+ return e = e !== void 0 ? e : 1e3, function(d) {
3669
3845
  const l = Date.now(), u = n[t];
3670
3846
  o || (o = l), i[s] = d, n[s] = l;
3671
3847
  let f = t, h = 0;
3672
3848
  for (; f !== s; )
3673
- h += i[f++], f = f % e;
3674
- if (s = (s + 1) % e, s === t && (t = (t + 1) % e), l - o < a)
3849
+ h += i[f++], f = f % a;
3850
+ if (s = (s + 1) % a, s === t && (t = (t + 1) % a), l - o < e)
3675
3851
  return;
3676
3852
  const b = u && l - u;
3677
3853
  return b ? Math.round(h * 1e3 / b) : void 0;
3678
3854
  };
3679
3855
  }
3680
- function sn(e, a) {
3681
- let i = 0, n = 1e3 / a, s, t;
3856
+ function cn(a, e) {
3857
+ let i = 0, n = 1e3 / e, s, t;
3682
3858
  const o = (l, u = Date.now()) => {
3683
- i = u, s = null, t && (clearTimeout(t), t = null), e(...l);
3859
+ i = u, s = null, t && (clearTimeout(t), t = null), a(...l);
3684
3860
  };
3685
3861
  return [(...l) => {
3686
3862
  const u = Date.now(), f = u - i;
@@ -3689,10 +3865,10 @@ function sn(e, a) {
3689
3865
  }, n - f)));
3690
3866
  }, () => s && o(s)];
3691
3867
  }
3692
- const se = (e, a, i = 3) => {
3868
+ const ce = (a, e, i = 3) => {
3693
3869
  let n = 0;
3694
- const s = nn(50, 250);
3695
- return sn((t) => {
3870
+ const s = tn(50, 250);
3871
+ return cn((t) => {
3696
3872
  const o = t.loaded, r = t.lengthComputable ? t.total : void 0, d = o - n, l = s(d), u = o <= r;
3697
3873
  n = o;
3698
3874
  const f = {
@@ -3704,35 +3880,35 @@ const se = (e, a, i = 3) => {
3704
3880
  estimated: l && r && u ? (r - o) / l : void 0,
3705
3881
  event: t,
3706
3882
  lengthComputable: r != null,
3707
- [a ? "download" : "upload"]: !0
3883
+ [e ? "download" : "upload"]: !0
3708
3884
  };
3709
- e(f);
3885
+ a(f);
3710
3886
  }, i);
3711
- }, Ye = (e, a) => {
3712
- const i = e != null;
3713
- return [(n) => a[0]({
3887
+ }, ea = (a, e) => {
3888
+ const i = a != null;
3889
+ return [(n) => e[0]({
3714
3890
  lengthComputable: i,
3715
- total: e,
3891
+ total: a,
3716
3892
  loaded: n
3717
- }), a[1]];
3718
- }, Ge = (e) => (...a) => c.asap(() => e(...a)), on = S.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, a) => (i) => (i = new URL(i, S.origin), e.protocol === i.protocol && e.host === i.host && (a || e.port === i.port)))(
3893
+ }), e[1]];
3894
+ }, aa = (a) => (...e) => c.asap(() => a(...e)), rn = S.hasStandardBrowserEnv ? /* @__PURE__ */ ((a, e) => (i) => (i = new URL(i, S.origin), a.protocol === i.protocol && a.host === i.host && (e || a.port === i.port)))(
3719
3895
  new URL(S.origin),
3720
3896
  S.navigator && /(msie|trident)/i.test(S.navigator.userAgent)
3721
- ) : () => !0, tn = S.hasStandardBrowserEnv ? (
3897
+ ) : () => !0, pn = S.hasStandardBrowserEnv ? (
3722
3898
  // Standard browser envs support document.cookie
3723
3899
  {
3724
- write(e, a, i, n, s, t, o) {
3900
+ write(a, e, i, n, s, t, o) {
3725
3901
  if (typeof document > "u") return;
3726
- const r = [`${e}=${encodeURIComponent(a)}`];
3902
+ const r = [`${a}=${encodeURIComponent(e)}`];
3727
3903
  c.isNumber(i) && r.push(`expires=${new Date(i).toUTCString()}`), c.isString(n) && r.push(`path=${n}`), c.isString(s) && r.push(`domain=${s}`), t === !0 && r.push("secure"), c.isString(o) && r.push(`SameSite=${o}`), document.cookie = r.join("; ");
3728
3904
  },
3729
- read(e) {
3905
+ read(a) {
3730
3906
  if (typeof document > "u") return null;
3731
- const a = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
3732
- return a ? decodeURIComponent(a[1]) : null;
3907
+ const e = document.cookie.match(new RegExp("(?:^|; )" + a + "=([^;]*)"));
3908
+ return e ? decodeURIComponent(e[1]) : null;
3733
3909
  },
3734
- remove(e) {
3735
- this.write(e, "", Date.now() - 864e5, "/");
3910
+ remove(a) {
3911
+ this.write(a, "", Date.now() - 864e5, "/");
3736
3912
  }
3737
3913
  }
3738
3914
  ) : (
@@ -3747,19 +3923,19 @@ const se = (e, a, i = 3) => {
3747
3923
  }
3748
3924
  }
3749
3925
  );
3750
- function cn(e) {
3751
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
3926
+ function ln(a) {
3927
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(a);
3752
3928
  }
3753
- function rn(e, a) {
3754
- return a ? e.replace(/\/?\/$/, "") + "/" + a.replace(/^\/+/, "") : e;
3929
+ function un(a, e) {
3930
+ return e ? a.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : a;
3755
3931
  }
3756
- function Ea(e, a, i) {
3757
- let n = !cn(a);
3758
- return e && (n || i == !1) ? rn(e, a) : a;
3932
+ function Oa(a, e, i) {
3933
+ let n = !ln(e);
3934
+ return a && (n || i == !1) ? un(a, e) : e;
3759
3935
  }
3760
- const Qe = (e) => e instanceof O ? { ...e } : e;
3761
- function M(e, a) {
3762
- a = a || {};
3936
+ const ia = (a) => a instanceof O ? { ...a } : a;
3937
+ function M(a, e) {
3938
+ e = e || {};
3763
3939
  const i = {};
3764
3940
  function n(l, u, f, h) {
3765
3941
  return c.isPlainObject(l) && c.isPlainObject(u) ? c.merge.call({ caseless: h }, l, u) : c.isPlainObject(u) ? c.merge({}, u) : c.isArray(u) ? u.slice() : u;
@@ -3781,9 +3957,9 @@ function M(e, a) {
3781
3957
  } else return n(void 0, u);
3782
3958
  }
3783
3959
  function r(l, u, f) {
3784
- if (f in a)
3785
- return n(l, u);
3786
3960
  if (f in e)
3961
+ return n(l, u);
3962
+ if (f in a)
3787
3963
  return n(void 0, l);
3788
3964
  }
3789
3965
  const d = {
@@ -3815,17 +3991,17 @@ function M(e, a) {
3815
3991
  socketPath: o,
3816
3992
  responseEncoding: o,
3817
3993
  validateStatus: r,
3818
- headers: (l, u, f) => s(Qe(l), Qe(u), f, !0)
3994
+ headers: (l, u, f) => s(ia(l), ia(u), f, !0)
3819
3995
  };
3820
- return c.forEach(Object.keys({ ...e, ...a }), function(u) {
3821
- const f = d[u] || s, h = f(e[u], a[u], u);
3996
+ return c.forEach(Object.keys({ ...a, ...e }), function(u) {
3997
+ const f = d[u] || s, h = f(a[u], e[u], u);
3822
3998
  c.isUndefined(h) && f !== r || (i[u] = h);
3823
3999
  }), i;
3824
4000
  }
3825
- const Sa = (e) => {
3826
- const a = M({}, e);
3827
- let { data: i, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: t, headers: o, auth: r } = a;
3828
- if (a.headers = o = O.from(o), a.url = ga(Ea(a.baseURL, a.url, a.allowAbsoluteUrls), e.params, e.paramsSerializer), r && o.set(
4001
+ const Aa = (a) => {
4002
+ const e = M({}, a);
4003
+ let { data: i, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: t, headers: o, auth: r } = e;
4004
+ if (e.headers = o = O.from(o), e.url = ja(Oa(e.baseURL, e.url, e.allowAbsoluteUrls), a.params, a.paramsSerializer), r && o.set(
3829
4005
  "Authorization",
3830
4006
  "Basic " + btoa((r.username || "") + ":" + (r.password ? unescape(encodeURIComponent(r.password)) : ""))
3831
4007
  ), c.isFormData(i)) {
@@ -3838,14 +4014,14 @@ const Sa = (e) => {
3838
4014
  });
3839
4015
  }
3840
4016
  }
3841
- if (S.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(a)), n || n !== !1 && on(a.url))) {
3842
- const d = s && t && tn.read(t);
4017
+ if (S.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(e)), n || n !== !1 && rn(e.url))) {
4018
+ const d = s && t && pn.read(t);
3843
4019
  d && o.set(s, d);
3844
4020
  }
3845
- return a;
3846
- }, pn = typeof XMLHttpRequest < "u", ln = pn && function(e) {
4021
+ return e;
4022
+ }, dn = typeof XMLHttpRequest < "u", mn = dn && function(a) {
3847
4023
  return new Promise(function(i, n) {
3848
- const s = Sa(e);
4024
+ const s = Aa(a);
3849
4025
  let t = s.data;
3850
4026
  const o = O.from(s.headers).normalize();
3851
4027
  let { responseType: r, onUploadProgress: d, onDownloadProgress: l } = s, u, f, h, b, p;
@@ -3864,46 +4040,46 @@ const Sa = (e) => {
3864
4040
  status: m.status,
3865
4041
  statusText: m.statusText,
3866
4042
  headers: k,
3867
- config: e,
4043
+ config: a,
3868
4044
  request: m
3869
4045
  };
3870
- ja(function(z) {
3871
- i(z), x();
3872
- }, function(z) {
3873
- n(z), x();
4046
+ Ra(function(A) {
4047
+ i(A), x();
4048
+ }, function(A) {
4049
+ n(A), x();
3874
4050
  }, T), m = null;
3875
4051
  }
3876
4052
  "onloadend" in m ? m.onloadend = g : m.onreadystatechange = function() {
3877
4053
  !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(g);
3878
4054
  }, m.onabort = function() {
3879
- m && (n(new v("Request aborted", v.ECONNABORTED, e, m)), m = null);
4055
+ m && (n(new v("Request aborted", v.ECONNABORTED, a, m)), m = null);
3880
4056
  }, m.onerror = function(w) {
3881
- const T = w && w.message ? w.message : "Network Error", P = new v(T, v.ERR_NETWORK, e, m);
3882
- P.event = w || null, n(P), m = null;
4057
+ const T = w && w.message ? w.message : "Network Error", _ = new v(T, v.ERR_NETWORK, a, m);
4058
+ _.event = w || null, n(_), m = null;
3883
4059
  }, m.ontimeout = function() {
3884
4060
  let w = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
3885
- const T = s.transitional || wa;
4061
+ const T = s.transitional || Ea;
3886
4062
  s.timeoutErrorMessage && (w = s.timeoutErrorMessage), n(new v(
3887
4063
  w,
3888
4064
  T.clarifyTimeoutError ? v.ETIMEDOUT : v.ECONNABORTED,
3889
- e,
4065
+ a,
3890
4066
  m
3891
4067
  )), m = null;
3892
4068
  }, t === void 0 && o.setContentType(null), "setRequestHeader" in m && c.forEach(o.toJSON(), function(w, T) {
3893
4069
  m.setRequestHeader(T, w);
3894
- }), c.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), r && r !== "json" && (m.responseType = s.responseType), l && ([h, p] = se(l, !0), m.addEventListener("progress", h)), d && m.upload && ([f, b] = se(d), m.upload.addEventListener("progress", f), m.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (u = (k) => {
3895
- m && (n(!k || k.type ? new H(null, e, m) : k), m.abort(), m = null);
4070
+ }), c.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), r && r !== "json" && (m.responseType = s.responseType), l && ([h, p] = ce(l, !0), m.addEventListener("progress", h)), d && m.upload && ([f, b] = ce(d), m.upload.addEventListener("progress", f), m.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (u = (k) => {
4071
+ m && (n(!k || k.type ? new H(null, a, m) : k), m.abort(), m = null);
3896
4072
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
3897
- const y = an(s.url);
4073
+ const y = on(s.url);
3898
4074
  if (y && S.protocols.indexOf(y) === -1) {
3899
- n(new v("Unsupported protocol " + y + ":", v.ERR_BAD_REQUEST, e));
4075
+ n(new v("Unsupported protocol " + y + ":", v.ERR_BAD_REQUEST, a));
3900
4076
  return;
3901
4077
  }
3902
4078
  m.send(t || null);
3903
4079
  });
3904
- }, un = (e, a) => {
3905
- const { length: i } = e = e ? e.filter(Boolean) : [];
3906
- if (a || i) {
4080
+ }, xn = (a, e) => {
4081
+ const { length: i } = a = a ? a.filter(Boolean) : [];
4082
+ if (e || i) {
3907
4083
  let n = new AbortController(), s;
3908
4084
  const t = function(l) {
3909
4085
  if (!s) {
@@ -3912,48 +4088,48 @@ const Sa = (e) => {
3912
4088
  n.abort(u instanceof v ? u : new H(u instanceof Error ? u.message : u));
3913
4089
  }
3914
4090
  };
3915
- let o = a && setTimeout(() => {
3916
- o = null, t(new v(`timeout ${a} of ms exceeded`, v.ETIMEDOUT));
3917
- }, a);
4091
+ let o = e && setTimeout(() => {
4092
+ o = null, t(new v(`timeout ${e} of ms exceeded`, v.ETIMEDOUT));
4093
+ }, e);
3918
4094
  const r = () => {
3919
- e && (o && clearTimeout(o), o = null, e.forEach((l) => {
4095
+ a && (o && clearTimeout(o), o = null, a.forEach((l) => {
3920
4096
  l.unsubscribe ? l.unsubscribe(t) : l.removeEventListener("abort", t);
3921
- }), e = null);
4097
+ }), a = null);
3922
4098
  };
3923
- e.forEach((l) => l.addEventListener("abort", t));
4099
+ a.forEach((l) => l.addEventListener("abort", t));
3924
4100
  const { signal: d } = n;
3925
4101
  return d.unsubscribe = () => c.asap(r), d;
3926
4102
  }
3927
- }, dn = function* (e, a) {
3928
- let i = e.byteLength;
3929
- if (i < a) {
3930
- yield e;
4103
+ }, fn = function* (a, e) {
4104
+ let i = a.byteLength;
4105
+ if (i < e) {
4106
+ yield a;
3931
4107
  return;
3932
4108
  }
3933
4109
  let n = 0, s;
3934
4110
  for (; n < i; )
3935
- s = n + a, yield e.slice(n, s), n = s;
3936
- }, mn = async function* (e, a) {
3937
- for await (const i of xn(e))
3938
- yield* dn(i, a);
3939
- }, xn = async function* (e) {
3940
- if (e[Symbol.asyncIterator]) {
3941
- yield* e;
4111
+ s = n + e, yield a.slice(n, s), n = s;
4112
+ }, vn = async function* (a, e) {
4113
+ for await (const i of bn(a))
4114
+ yield* fn(i, e);
4115
+ }, bn = async function* (a) {
4116
+ if (a[Symbol.asyncIterator]) {
4117
+ yield* a;
3942
4118
  return;
3943
4119
  }
3944
- const a = e.getReader();
4120
+ const e = a.getReader();
3945
4121
  try {
3946
4122
  for (; ; ) {
3947
- const { done: i, value: n } = await a.read();
4123
+ const { done: i, value: n } = await e.read();
3948
4124
  if (i)
3949
4125
  break;
3950
4126
  yield n;
3951
4127
  }
3952
4128
  } finally {
3953
- await a.cancel();
4129
+ await e.cancel();
3954
4130
  }
3955
- }, Ze = (e, a, i, n) => {
3956
- const s = mn(e, a);
4131
+ }, na = (a, e, i, n) => {
4132
+ const s = vn(a, e);
3957
4133
  let t = 0, o, r = (d) => {
3958
4134
  o || (o = !0, n && n(d));
3959
4135
  };
@@ -3981,36 +4157,36 @@ const Sa = (e) => {
3981
4157
  }, {
3982
4158
  highWaterMark: 2
3983
4159
  });
3984
- }, ea = 64 * 1024, { isFunction: ee } = c, fn = (({ Request: e, Response: a }) => ({
3985
- Request: e,
3986
- Response: a
4160
+ }, sa = 64 * 1024, { isFunction: ne } = c, hn = (({ Request: a, Response: e }) => ({
4161
+ Request: a,
4162
+ Response: e
3987
4163
  }))(c.global), {
3988
- ReadableStream: aa,
3989
- TextEncoder: ia
3990
- } = c.global, na = (e, ...a) => {
4164
+ ReadableStream: oa,
4165
+ TextEncoder: ta
4166
+ } = c.global, ca = (a, ...e) => {
3991
4167
  try {
3992
- return !!e(...a);
4168
+ return !!a(...e);
3993
4169
  } catch {
3994
4170
  return !1;
3995
4171
  }
3996
- }, vn = (e) => {
3997
- e = c.merge.call({
4172
+ }, gn = (a) => {
4173
+ a = c.merge.call({
3998
4174
  skipUndefined: !0
3999
- }, fn, e);
4000
- const { fetch: a, Request: i, Response: n } = e, s = a ? ee(a) : typeof fetch == "function", t = ee(i), o = ee(n);
4175
+ }, hn, a);
4176
+ const { fetch: e, Request: i, Response: n } = a, s = e ? ne(e) : typeof fetch == "function", t = ne(i), o = ne(n);
4001
4177
  if (!s)
4002
4178
  return !1;
4003
- const r = s && ee(aa), d = s && (typeof ia == "function" ? /* @__PURE__ */ ((p) => (x) => p.encode(x))(new ia()) : async (p) => new Uint8Array(await new i(p).arrayBuffer())), l = t && r && na(() => {
4179
+ const r = s && ne(oa), d = s && (typeof ta == "function" ? /* @__PURE__ */ ((p) => (x) => p.encode(x))(new ta()) : async (p) => new Uint8Array(await new i(p).arrayBuffer())), l = t && r && ca(() => {
4004
4180
  let p = !1;
4005
4181
  const x = new i(S.origin, {
4006
- body: new aa(),
4182
+ body: new oa(),
4007
4183
  method: "POST",
4008
4184
  get duplex() {
4009
4185
  return p = !0, "half";
4010
4186
  }
4011
4187
  }).headers.has("Content-Type");
4012
4188
  return p && !x;
4013
- }), u = o && r && na(() => c.isReadableStream(new n("").body)), f = {
4189
+ }), u = o && r && ca(() => c.isReadableStream(new n("").body)), f = {
4014
4190
  stream: u && ((p) => p.body)
4015
4191
  };
4016
4192
  s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
@@ -4048,124 +4224,124 @@ const Sa = (e) => {
4048
4224
  cancelToken: k,
4049
4225
  timeout: w,
4050
4226
  onDownloadProgress: T,
4051
- onUploadProgress: P,
4052
- responseType: z,
4053
- headers: le,
4054
- withCredentials: G = "same-origin",
4055
- fetchOptions: Ae
4056
- } = Sa(p), Fe = a || fetch;
4057
- z = z ? (z + "").toLowerCase() : "text";
4058
- let Q = un([y, k && k.toAbortSignal()], w), J = null;
4059
- const N = Q && Q.unsubscribe && (() => {
4060
- Q.unsubscribe();
4227
+ onUploadProgress: _,
4228
+ responseType: A,
4229
+ headers: me,
4230
+ withCredentials: ee = "same-origin",
4231
+ fetchOptions: Ue
4232
+ } = Aa(p), Pe = e || fetch;
4233
+ A = A ? (A + "").toLowerCase() : "text";
4234
+ let ae = xn([y, k && k.toAbortSignal()], w), V = null;
4235
+ const N = ae && ae.unsubscribe && (() => {
4236
+ ae.unsubscribe();
4061
4237
  });
4062
- let Ce;
4238
+ let _e;
4063
4239
  try {
4064
- if (P && l && m !== "get" && m !== "head" && (Ce = await b(le, g)) !== 0) {
4065
- let _ = new i(x, {
4240
+ if (_ && l && m !== "get" && m !== "head" && (_e = await b(me, g)) !== 0) {
4241
+ let P = new i(x, {
4066
4242
  method: "POST",
4067
4243
  body: g,
4068
4244
  duplex: "half"
4069
4245
  }), B;
4070
- if (c.isFormData(g) && (B = _.headers.get("content-type")) && le.setContentType(B), _.body) {
4071
- const [ue, Z] = Ye(
4072
- Ce,
4073
- se(Ge(P))
4246
+ if (c.isFormData(g) && (B = P.headers.get("content-type")) && me.setContentType(B), P.body) {
4247
+ const [xe, ie] = ea(
4248
+ _e,
4249
+ ce(aa(_))
4074
4250
  );
4075
- g = Ze(_.body, ea, ue, Z);
4251
+ g = na(P.body, sa, xe, ie);
4076
4252
  }
4077
4253
  }
4078
- c.isString(G) || (G = G ? "include" : "omit");
4079
- const F = t && "credentials" in i.prototype, qe = {
4080
- ...Ae,
4081
- signal: Q,
4254
+ c.isString(ee) || (ee = ee ? "include" : "omit");
4255
+ const C = t && "credentials" in i.prototype, Ne = {
4256
+ ...Ue,
4257
+ signal: ae,
4082
4258
  method: m.toUpperCase(),
4083
- headers: le.normalize().toJSON(),
4259
+ headers: me.normalize().toJSON(),
4084
4260
  body: g,
4085
4261
  duplex: "half",
4086
- credentials: F ? G : void 0
4262
+ credentials: C ? ee : void 0
4087
4263
  };
4088
- J = t && new i(x, qe);
4089
- let U = await (t ? Fe(J, Ae) : Fe(x, qe));
4090
- const Ue = u && (z === "stream" || z === "response");
4091
- if (u && (T || Ue && N)) {
4092
- const _ = {};
4093
- ["status", "statusText", "headers"].forEach((_e) => {
4094
- _[_e] = U[_e];
4264
+ V = t && new i(x, Ne);
4265
+ let U = await (t ? Pe(V, Ue) : Pe(x, Ne));
4266
+ const De = u && (A === "stream" || A === "response");
4267
+ if (u && (T || De && N)) {
4268
+ const P = {};
4269
+ ["status", "statusText", "headers"].forEach((Le) => {
4270
+ P[Le] = U[Le];
4095
4271
  });
4096
- const B = c.toFiniteNumber(U.headers.get("content-length")), [ue, Z] = T && Ye(
4272
+ const B = c.toFiniteNumber(U.headers.get("content-length")), [xe, ie] = T && ea(
4097
4273
  B,
4098
- se(Ge(T), !0)
4274
+ ce(aa(T), !0)
4099
4275
  ) || [];
4100
4276
  U = new n(
4101
- Ze(U.body, ea, ue, () => {
4102
- Z && Z(), N && N();
4277
+ na(U.body, sa, xe, () => {
4278
+ ie && ie(), N && N();
4103
4279
  }),
4104
- _
4280
+ P
4105
4281
  );
4106
4282
  }
4107
- z = z || "text";
4108
- let Fa = await f[c.findKey(f, z) || "text"](U, p);
4109
- return !Ue && N && N(), await new Promise((_, B) => {
4110
- ja(_, B, {
4111
- data: Fa,
4283
+ A = A || "text";
4284
+ let Pa = await f[c.findKey(f, A) || "text"](U, p);
4285
+ return !De && N && N(), await new Promise((P, B) => {
4286
+ Ra(P, B, {
4287
+ data: Pa,
4112
4288
  headers: O.from(U.headers),
4113
4289
  status: U.status,
4114
4290
  statusText: U.statusText,
4115
4291
  config: p,
4116
- request: J
4292
+ request: V
4117
4293
  });
4118
4294
  });
4119
- } catch (F) {
4120
- throw N && N(), F && F.name === "TypeError" && /Load failed|fetch/i.test(F.message) ? Object.assign(
4121
- new v("Network Error", v.ERR_NETWORK, p, J),
4295
+ } catch (C) {
4296
+ throw N && N(), C && C.name === "TypeError" && /Load failed|fetch/i.test(C.message) ? Object.assign(
4297
+ new v("Network Error", v.ERR_NETWORK, p, V),
4122
4298
  {
4123
- cause: F.cause || F
4299
+ cause: C.cause || C
4124
4300
  }
4125
- ) : v.from(F, F && F.code, p, J);
4301
+ ) : v.from(C, C && C.code, p, V);
4126
4302
  }
4127
4303
  };
4128
- }, bn = /* @__PURE__ */ new Map(), Ta = (e) => {
4129
- let a = e && e.env || {};
4130
- const { fetch: i, Request: n, Response: s } = a, t = [
4304
+ }, wn = /* @__PURE__ */ new Map(), za = (a) => {
4305
+ let e = a && a.env || {};
4306
+ const { fetch: i, Request: n, Response: s } = e, t = [
4131
4307
  n,
4132
4308
  s,
4133
4309
  i
4134
4310
  ];
4135
- let o = t.length, r = o, d, l, u = bn;
4311
+ let o = t.length, r = o, d, l, u = wn;
4136
4312
  for (; r--; )
4137
- d = t[r], l = u.get(d), l === void 0 && u.set(d, l = r ? /* @__PURE__ */ new Map() : vn(a)), u = l;
4313
+ d = t[r], l = u.get(d), l === void 0 && u.set(d, l = r ? /* @__PURE__ */ new Map() : gn(e)), u = l;
4138
4314
  return l;
4139
4315
  };
4140
- Ta();
4141
- const ze = {
4142
- http: qi,
4143
- xhr: ln,
4316
+ za();
4317
+ const qe = {
4318
+ http: _i,
4319
+ xhr: mn,
4144
4320
  fetch: {
4145
- get: Ta
4321
+ get: za
4146
4322
  }
4147
4323
  };
4148
- c.forEach(ze, (e, a) => {
4149
- if (e) {
4324
+ c.forEach(qe, (a, e) => {
4325
+ if (a) {
4150
4326
  try {
4151
- Object.defineProperty(e, "name", { value: a });
4327
+ Object.defineProperty(a, "name", { value: e });
4152
4328
  } catch {
4153
4329
  }
4154
- Object.defineProperty(e, "adapterName", { value: a });
4330
+ Object.defineProperty(a, "adapterName", { value: e });
4155
4331
  }
4156
4332
  });
4157
- const sa = (e) => `- ${e}`, hn = (e) => c.isFunction(e) || e === null || e === !1;
4158
- function gn(e, a) {
4159
- e = c.isArray(e) ? e : [e];
4160
- const { length: i } = e;
4333
+ const ra = (a) => `- ${a}`, yn = (a) => c.isFunction(a) || a === null || a === !1;
4334
+ function kn(a, e) {
4335
+ a = c.isArray(a) ? a : [a];
4336
+ const { length: i } = a;
4161
4337
  let n, s;
4162
4338
  const t = {};
4163
4339
  for (let o = 0; o < i; o++) {
4164
- n = e[o];
4340
+ n = a[o];
4165
4341
  let r;
4166
- if (s = n, !hn(n) && (s = ze[(r = String(n)).toLowerCase()], s === void 0))
4342
+ if (s = n, !yn(n) && (s = qe[(r = String(n)).toLowerCase()], s === void 0))
4167
4343
  throw new v(`Unknown adapter '${r}'`);
4168
- if (s && (c.isFunction(s) || (s = s.get(a))))
4344
+ if (s && (c.isFunction(s) || (s = s.get(e))))
4169
4345
  break;
4170
4346
  t[r || "#" + o] = s;
4171
4347
  }
@@ -4174,8 +4350,8 @@ function gn(e, a) {
4174
4350
  ([d, l]) => `adapter ${d} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
4175
4351
  );
4176
4352
  let r = i ? o.length > 1 ? `since :
4177
- ` + o.map(sa).join(`
4178
- `) : " " + sa(o[0]) : "as no adapter specified";
4353
+ ` + o.map(ra).join(`
4354
+ `) : " " + ra(o[0]) : "as no adapter specified";
4179
4355
  throw new v(
4180
4356
  "There is no suitable adapter to dispatch the request " + r,
4181
4357
  "ERR_NOT_SUPPORT"
@@ -4183,77 +4359,77 @@ function gn(e, a) {
4183
4359
  }
4184
4360
  return s;
4185
4361
  }
4186
- const Ra = {
4362
+ const Ca = {
4187
4363
  /**
4188
4364
  * Resolve an adapter from a list of adapter names or functions.
4189
4365
  * @type {Function}
4190
4366
  */
4191
- getAdapter: gn,
4367
+ getAdapter: kn,
4192
4368
  /**
4193
4369
  * Exposes all known adapters
4194
4370
  * @type {Object<string, Function|Object>}
4195
4371
  */
4196
- adapters: ze
4372
+ adapters: qe
4197
4373
  };
4198
- function be(e) {
4199
- if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
4200
- throw new H(null, e);
4374
+ function we(a) {
4375
+ if (a.cancelToken && a.cancelToken.throwIfRequested(), a.signal && a.signal.aborted)
4376
+ throw new H(null, a);
4201
4377
  }
4202
- function oa(e) {
4203
- return be(e), e.headers = O.from(e.headers), e.data = ve.call(
4204
- e,
4205
- e.transformRequest
4206
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ra.getAdapter(e.adapter || Y.adapter, e)(e).then(function(n) {
4207
- return be(e), n.data = ve.call(
4208
- e,
4209
- e.transformResponse,
4378
+ function pa(a) {
4379
+ return we(a), a.headers = O.from(a.headers), a.data = ge.call(
4380
+ a,
4381
+ a.transformRequest
4382
+ ), ["post", "put", "patch"].indexOf(a.method) !== -1 && a.headers.setContentType("application/x-www-form-urlencoded", !1), Ca.getAdapter(a.adapter || Z.adapter, a)(a).then(function(n) {
4383
+ return we(a), n.data = ge.call(
4384
+ a,
4385
+ a.transformResponse,
4210
4386
  n
4211
4387
  ), n.headers = O.from(n.headers), n;
4212
4388
  }, function(n) {
4213
- return ka(n) || (be(e), n && n.response && (n.response.data = ve.call(
4214
- e,
4215
- e.transformResponse,
4389
+ return Ta(n) || (we(a), n && n.response && (n.response.data = ge.call(
4390
+ a,
4391
+ a.transformResponse,
4216
4392
  n.response
4217
4393
  ), n.response.headers = O.from(n.response.headers))), Promise.reject(n);
4218
4394
  });
4219
4395
  }
4220
- const Oa = "1.13.2", pe = {};
4221
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, a) => {
4222
- pe[e] = function(n) {
4223
- return typeof n === e || "a" + (a < 1 ? "n " : " ") + e;
4396
+ const Fa = "1.13.2", de = {};
4397
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((a, e) => {
4398
+ de[a] = function(n) {
4399
+ return typeof n === a || "a" + (e < 1 ? "n " : " ") + a;
4224
4400
  };
4225
4401
  });
4226
- const ta = {};
4227
- pe.transitional = function(a, i, n) {
4402
+ const la = {};
4403
+ de.transitional = function(e, i, n) {
4228
4404
  function s(t, o) {
4229
- return "[Axios v" + Oa + "] Transitional option '" + t + "'" + o + (n ? ". " + n : "");
4405
+ return "[Axios v" + Fa + "] Transitional option '" + t + "'" + o + (n ? ". " + n : "");
4230
4406
  }
4231
4407
  return (t, o, r) => {
4232
- if (a === !1)
4408
+ if (e === !1)
4233
4409
  throw new v(
4234
4410
  s(o, " has been removed" + (i ? " in " + i : "")),
4235
4411
  v.ERR_DEPRECATED
4236
4412
  );
4237
- return i && !ta[o] && (ta[o] = !0, console.warn(
4413
+ return i && !la[o] && (la[o] = !0, console.warn(
4238
4414
  s(
4239
4415
  o,
4240
4416
  " has been deprecated since v" + i + " and will be removed in the near future"
4241
4417
  )
4242
- )), a ? a(t, o, r) : !0;
4418
+ )), e ? e(t, o, r) : !0;
4243
4419
  };
4244
4420
  };
4245
- pe.spelling = function(a) {
4246
- return (i, n) => (console.warn(`${n} is likely a misspelling of ${a}`), !0);
4421
+ de.spelling = function(e) {
4422
+ return (i, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
4247
4423
  };
4248
- function wn(e, a, i) {
4249
- if (typeof e != "object")
4424
+ function jn(a, e, i) {
4425
+ if (typeof a != "object")
4250
4426
  throw new v("options must be an object", v.ERR_BAD_OPTION_VALUE);
4251
- const n = Object.keys(e);
4427
+ const n = Object.keys(a);
4252
4428
  let s = n.length;
4253
4429
  for (; s-- > 0; ) {
4254
- const t = n[s], o = a[t];
4430
+ const t = n[s], o = e[t];
4255
4431
  if (o) {
4256
- const r = e[t], d = r === void 0 || o(r, t, e);
4432
+ const r = a[t], d = r === void 0 || o(r, t, a);
4257
4433
  if (d !== !0)
4258
4434
  throw new v("option " + t + " must be " + d, v.ERR_BAD_OPTION_VALUE);
4259
4435
  continue;
@@ -4262,15 +4438,15 @@ function wn(e, a, i) {
4262
4438
  throw new v("Unknown option " + t, v.ERR_BAD_OPTION);
4263
4439
  }
4264
4440
  }
4265
- const ne = {
4266
- assertOptions: wn,
4267
- validators: pe
4268
- }, C = ne.validators;
4441
+ const te = {
4442
+ assertOptions: jn,
4443
+ validators: de
4444
+ }, F = te.validators;
4269
4445
  let L = class {
4270
- constructor(a) {
4271
- this.defaults = a || {}, this.interceptors = {
4272
- request: new We(),
4273
- response: new We()
4446
+ constructor(e) {
4447
+ this.defaults = e || {}, this.interceptors = {
4448
+ request: new Qe(),
4449
+ response: new Qe()
4274
4450
  };
4275
4451
  }
4276
4452
  /**
@@ -4281,9 +4457,9 @@ let L = class {
4281
4457
  *
4282
4458
  * @returns {Promise} The Promise to be fulfilled
4283
4459
  */
4284
- async request(a, i) {
4460
+ async request(e, i) {
4285
4461
  try {
4286
- return await this._request(a, i);
4462
+ return await this._request(e, i);
4287
4463
  } catch (n) {
4288
4464
  if (n instanceof Error) {
4289
4465
  let s = {};
@@ -4298,21 +4474,21 @@ let L = class {
4298
4474
  throw n;
4299
4475
  }
4300
4476
  }
4301
- _request(a, i) {
4302
- typeof a == "string" ? (i = i || {}, i.url = a) : i = a || {}, i = M(this.defaults, i);
4477
+ _request(e, i) {
4478
+ typeof e == "string" ? (i = i || {}, i.url = e) : i = e || {}, i = M(this.defaults, i);
4303
4479
  const { transitional: n, paramsSerializer: s, headers: t } = i;
4304
- n !== void 0 && ne.assertOptions(n, {
4305
- silentJSONParsing: C.transitional(C.boolean),
4306
- forcedJSONParsing: C.transitional(C.boolean),
4307
- clarifyTimeoutError: C.transitional(C.boolean)
4480
+ n !== void 0 && te.assertOptions(n, {
4481
+ silentJSONParsing: F.transitional(F.boolean),
4482
+ forcedJSONParsing: F.transitional(F.boolean),
4483
+ clarifyTimeoutError: F.transitional(F.boolean)
4308
4484
  }, !1), s != null && (c.isFunction(s) ? i.paramsSerializer = {
4309
4485
  serialize: s
4310
- } : ne.assertOptions(s, {
4311
- encode: C.function,
4312
- serialize: C.function
4313
- }, !0)), i.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? i.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : i.allowAbsoluteUrls = !0), ne.assertOptions(i, {
4314
- baseUrl: C.spelling("baseURL"),
4315
- withXsrfToken: C.spelling("withXSRFToken")
4486
+ } : te.assertOptions(s, {
4487
+ encode: F.function,
4488
+ serialize: F.function
4489
+ }, !0)), i.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? i.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : i.allowAbsoluteUrls = !0), te.assertOptions(i, {
4490
+ baseUrl: F.spelling("baseURL"),
4491
+ withXsrfToken: F.spelling("withXSRFToken")
4316
4492
  }, !0), i.method = (i.method || this.defaults.method || "get").toLowerCase();
4317
4493
  let o = t && c.merge(
4318
4494
  t.common,
@@ -4335,7 +4511,7 @@ let L = class {
4335
4511
  });
4336
4512
  let u, f = 0, h;
4337
4513
  if (!d) {
4338
- const p = [oa.bind(this), void 0];
4514
+ const p = [pa.bind(this), void 0];
4339
4515
  for (p.unshift(...r), p.push(...l), h = p.length, u = Promise.resolve(i); f < h; )
4340
4516
  u = u.then(p[f++], p[f++]);
4341
4517
  return u;
@@ -4352,7 +4528,7 @@ let L = class {
4352
4528
  }
4353
4529
  }
4354
4530
  try {
4355
- u = oa.call(this, b);
4531
+ u = pa.call(this, b);
4356
4532
  } catch (p) {
4357
4533
  return Promise.reject(p);
4358
4534
  }
@@ -4360,26 +4536,26 @@ let L = class {
4360
4536
  u = u.then(l[f++], l[f++]);
4361
4537
  return u;
4362
4538
  }
4363
- getUri(a) {
4364
- a = M(this.defaults, a);
4365
- const i = Ea(a.baseURL, a.url, a.allowAbsoluteUrls);
4366
- return ga(i, a.params, a.paramsSerializer);
4539
+ getUri(e) {
4540
+ e = M(this.defaults, e);
4541
+ const i = Oa(e.baseURL, e.url, e.allowAbsoluteUrls);
4542
+ return ja(i, e.params, e.paramsSerializer);
4367
4543
  }
4368
4544
  };
4369
- c.forEach(["delete", "get", "head", "options"], function(a) {
4370
- L.prototype[a] = function(i, n) {
4545
+ c.forEach(["delete", "get", "head", "options"], function(e) {
4546
+ L.prototype[e] = function(i, n) {
4371
4547
  return this.request(M(n || {}, {
4372
- method: a,
4548
+ method: e,
4373
4549
  url: i,
4374
4550
  data: (n || {}).data
4375
4551
  }));
4376
4552
  };
4377
4553
  });
4378
- c.forEach(["post", "put", "patch"], function(a) {
4554
+ c.forEach(["post", "put", "patch"], function(e) {
4379
4555
  function i(n) {
4380
4556
  return function(t, o, r) {
4381
4557
  return this.request(M(r || {}, {
4382
- method: a,
4558
+ method: e,
4383
4559
  headers: n ? {
4384
4560
  "Content-Type": "multipart/form-data"
4385
4561
  } : {},
@@ -4388,11 +4564,11 @@ c.forEach(["post", "put", "patch"], function(a) {
4388
4564
  }));
4389
4565
  };
4390
4566
  }
4391
- L.prototype[a] = i(), L.prototype[a + "Form"] = i(!0);
4567
+ L.prototype[e] = i(), L.prototype[e + "Form"] = i(!0);
4392
4568
  });
4393
- let yn = class za {
4394
- constructor(a) {
4395
- if (typeof a != "function")
4569
+ let En = class qa {
4570
+ constructor(e) {
4571
+ if (typeof e != "function")
4396
4572
  throw new TypeError("executor must be a function.");
4397
4573
  let i;
4398
4574
  this.promise = new Promise(function(t) {
@@ -4413,7 +4589,7 @@ let yn = class za {
4413
4589
  return o.cancel = function() {
4414
4590
  n.unsubscribe(t);
4415
4591
  }, o;
4416
- }, a(function(t, o, r) {
4592
+ }, e(function(t, o, r) {
4417
4593
  n.reason || (n.reason = new H(t, o, r), i(n.reason));
4418
4594
  });
4419
4595
  }
@@ -4427,51 +4603,51 @@ let yn = class za {
4427
4603
  /**
4428
4604
  * Subscribe to the cancel signal
4429
4605
  */
4430
- subscribe(a) {
4606
+ subscribe(e) {
4431
4607
  if (this.reason) {
4432
- a(this.reason);
4608
+ e(this.reason);
4433
4609
  return;
4434
4610
  }
4435
- this._listeners ? this._listeners.push(a) : this._listeners = [a];
4611
+ this._listeners ? this._listeners.push(e) : this._listeners = [e];
4436
4612
  }
4437
4613
  /**
4438
4614
  * Unsubscribe from the cancel signal
4439
4615
  */
4440
- unsubscribe(a) {
4616
+ unsubscribe(e) {
4441
4617
  if (!this._listeners)
4442
4618
  return;
4443
- const i = this._listeners.indexOf(a);
4619
+ const i = this._listeners.indexOf(e);
4444
4620
  i !== -1 && this._listeners.splice(i, 1);
4445
4621
  }
4446
4622
  toAbortSignal() {
4447
- const a = new AbortController(), i = (n) => {
4448
- a.abort(n);
4623
+ const e = new AbortController(), i = (n) => {
4624
+ e.abort(n);
4449
4625
  };
4450
- return this.subscribe(i), a.signal.unsubscribe = () => this.unsubscribe(i), a.signal;
4626
+ return this.subscribe(i), e.signal.unsubscribe = () => this.unsubscribe(i), e.signal;
4451
4627
  }
4452
4628
  /**
4453
4629
  * Returns an object that contains a new `CancelToken` and a function that, when called,
4454
4630
  * cancels the `CancelToken`.
4455
4631
  */
4456
4632
  static source() {
4457
- let a;
4633
+ let e;
4458
4634
  return {
4459
- token: new za(function(s) {
4460
- a = s;
4635
+ token: new qa(function(s) {
4636
+ e = s;
4461
4637
  }),
4462
- cancel: a
4638
+ cancel: e
4463
4639
  };
4464
4640
  }
4465
4641
  };
4466
- function kn(e) {
4642
+ function Sn(a) {
4467
4643
  return function(i) {
4468
- return e.apply(null, i);
4644
+ return a.apply(null, i);
4469
4645
  };
4470
4646
  }
4471
- function jn(e) {
4472
- return c.isObject(e) && e.isAxiosError === !0;
4647
+ function Tn(a) {
4648
+ return c.isObject(a) && a.isAxiosError === !0;
4473
4649
  }
4474
- const Ee = {
4650
+ const Ae = {
4475
4651
  Continue: 100,
4476
4652
  SwitchingProtocols: 101,
4477
4653
  Processing: 102,
@@ -4542,72 +4718,68 @@ const Ee = {
4542
4718
  SslHandshakeFailed: 525,
4543
4719
  InvalidSslCertificate: 526
4544
4720
  };
4545
- Object.entries(Ee).forEach(([e, a]) => {
4546
- Ee[a] = e;
4721
+ Object.entries(Ae).forEach(([a, e]) => {
4722
+ Ae[e] = a;
4547
4723
  });
4548
- function Aa(e) {
4549
- const a = new L(e), i = ca(L.prototype.request, a);
4550
- return c.extend(i, L.prototype, a, { allOwnKeys: !0 }), c.extend(i, a, null, { allOwnKeys: !0 }), i.create = function(s) {
4551
- return Aa(M(e, s));
4724
+ function Ua(a) {
4725
+ const e = new L(a), i = ua(L.prototype.request, e);
4726
+ return c.extend(i, L.prototype, e, { allOwnKeys: !0 }), c.extend(i, e, null, { allOwnKeys: !0 }), i.create = function(s) {
4727
+ return Ua(M(a, s));
4552
4728
  }, i;
4553
4729
  }
4554
- const j = Aa(Y);
4555
- j.Axios = L;
4556
- j.CanceledError = H;
4557
- j.CancelToken = yn;
4558
- j.isCancel = ka;
4559
- j.VERSION = Oa;
4560
- j.toFormData = re;
4561
- j.AxiosError = v;
4562
- j.Cancel = j.CanceledError;
4563
- j.all = function(a) {
4564
- return Promise.all(a);
4730
+ const E = Ua(Z);
4731
+ E.Axios = L;
4732
+ E.CanceledError = H;
4733
+ E.CancelToken = En;
4734
+ E.isCancel = Ta;
4735
+ E.VERSION = Fa;
4736
+ E.toFormData = ue;
4737
+ E.AxiosError = v;
4738
+ E.Cancel = E.CanceledError;
4739
+ E.all = function(e) {
4740
+ return Promise.all(e);
4565
4741
  };
4566
- j.spread = kn;
4567
- j.isAxiosError = jn;
4568
- j.mergeConfig = M;
4569
- j.AxiosHeaders = O;
4570
- j.formToJSON = (e) => ya(c.isHTMLForm(e) ? new FormData(e) : e);
4571
- j.getAdapter = Ra.getAdapter;
4572
- j.HttpStatusCode = Ee;
4573
- j.default = j;
4742
+ E.spread = Sn;
4743
+ E.isAxiosError = Tn;
4744
+ E.mergeConfig = M;
4745
+ E.AxiosHeaders = O;
4746
+ E.formToJSON = (a) => Sa(c.isHTMLForm(a) ? new FormData(a) : a);
4747
+ E.getAdapter = Ca.getAdapter;
4748
+ E.HttpStatusCode = Ae;
4749
+ E.default = E;
4574
4750
  const {
4575
- Axios: In,
4576
- AxiosError: $n,
4577
- CanceledError: Hn,
4578
- isCancel: Jn,
4579
- CancelToken: Vn,
4580
- VERSION: Kn,
4581
- all: Wn,
4582
- Cancel: Xn,
4583
- isAxiosError: Yn,
4584
- spread: Gn,
4585
- toFormData: Qn,
4586
- AxiosHeaders: Zn,
4587
- HttpStatusCode: es,
4588
- formToJSON: as,
4589
- getAdapter: is,
4590
- mergeConfig: ns
4591
- } = j;
4592
- function Se(e) {
4593
- return E.isNil(e) || e instanceof FormData ? e : we.isDayjs(e) || e instanceof Date ? we(e).format("YYYY-MM-DDTHH:mm:ss") : E.isArray(e) ? e.map((a) => Se(a)) : E.isObject(e) ? E.mapValues(e, (a) => Se(a)) : e;
4594
- }
4595
- const En = {
4751
+ Axios: Vn,
4752
+ AxiosError: Jn,
4753
+ CanceledError: Kn,
4754
+ isCancel: Wn,
4755
+ CancelToken: Xn,
4756
+ VERSION: Yn,
4757
+ all: Gn,
4758
+ Cancel: Qn,
4759
+ isAxiosError: Zn,
4760
+ spread: es,
4761
+ toFormData: as,
4762
+ AxiosHeaders: is,
4763
+ HttpStatusCode: ns,
4764
+ formToJSON: ss,
4765
+ getAdapter: os,
4766
+ mergeConfig: ts
4767
+ } = E, Rn = {
4596
4768
  400: "請求格式錯誤",
4597
4769
  401: "未授權訪問",
4598
4770
  403: "操作權限不足",
4599
4771
  404: "資源未找到",
4600
4772
  500: "服務器內部錯誤",
4601
4773
  503: "服務不可用"
4602
- }, Sn = (e) => ({
4603
- path: e.path,
4604
- method: e.method,
4605
- isAuthenticated: e.isAuthenticated ?? !0,
4606
- errorMessageMap: Object.assign({}, En, e.errorMessageMap),
4607
- noSpinner: e.noSpinner || !1,
4608
- headers: e.headers || {}
4774
+ }, On = (a) => ({
4775
+ path: a.path,
4776
+ method: a.method,
4777
+ isAuthenticated: a.isAuthenticated ?? !0,
4778
+ errorMessageMap: Object.assign({}, Rn, a.errorMessageMap),
4779
+ noSpinner: a.noSpinner || !1,
4780
+ headers: a.headers || {}
4609
4781
  });
4610
- class ss {
4782
+ class cs {
4611
4783
  endpointKey = "";
4612
4784
  // API endpoint key
4613
4785
  headers;
@@ -4624,11 +4796,11 @@ class ss {
4624
4796
  // 下載檔案名稱
4625
4797
  // 上傳進度回調函式
4626
4798
  onUploadProgress;
4627
- constructor(a) {
4628
- Object.assign(this, a);
4799
+ constructor(e) {
4800
+ Object.assign(this, e);
4629
4801
  }
4630
4802
  }
4631
- class he {
4803
+ class ye {
4632
4804
  httpStatus = 0;
4633
4805
  // HTTP 狀態碼
4634
4806
  code = 0;
@@ -4645,19 +4817,19 @@ class he {
4645
4817
  // 下載的檔案資料
4646
4818
  headers;
4647
4819
  // 回應標頭
4648
- constructor(a) {
4649
- a && Object.assign(this, a);
4820
+ constructor(e) {
4821
+ e && Object.assign(this, e);
4650
4822
  }
4651
4823
  isOk() {
4652
4824
  return this.httpStatus >= 200 && this.httpStatus < 300 && this.code === 0;
4653
4825
  }
4654
4826
  }
4655
- class Tn extends Error {
4827
+ class An extends Error {
4656
4828
  response;
4657
4829
  type;
4658
4830
  // 錯誤類型,例如 'notFound'
4659
- constructor(a) {
4660
- super(a?.message || "API Error"), this.name = "ApiError", this.response = a;
4831
+ constructor(e) {
4832
+ super(e?.message || "API Error"), this.name = "ApiError", this.response = e;
4661
4833
  }
4662
4834
  notFound() {
4663
4835
  return this.type = "notFound", this;
@@ -4681,16 +4853,16 @@ class q {
4681
4853
  * - customErrorMessageMap: 全域自訂錯誤訊息對應
4682
4854
  * @param config
4683
4855
  */
4684
- static configure(a) {
4685
- Object.keys(a.endpoints).forEach((i) => {
4686
- const n = a.endpoints[i];
4687
- a.customHeaders && (n.headers = Object.assign(
4856
+ static configure(e) {
4857
+ Object.keys(e.endpoints).forEach((i) => {
4858
+ const n = e.endpoints[i];
4859
+ e.customHeaders && (n.headers = Object.assign(
4688
4860
  {},
4689
- a.customHeaders,
4861
+ e.customHeaders,
4690
4862
  n.headers || {}
4691
- )), a.customErrorMessageMap && (n.errorMessageMap = Object.assign(
4863
+ )), e.customErrorMessageMap && (n.errorMessageMap = Object.assign(
4692
4864
  {},
4693
- a.customErrorMessageMap,
4865
+ e.customErrorMessageMap,
4694
4866
  n.errorMessageMap || {}
4695
4867
  )), q.addEndpoints(i, n);
4696
4868
  });
@@ -4700,40 +4872,40 @@ class q {
4700
4872
  * @param key
4701
4873
  * @param endpoint
4702
4874
  */
4703
- static addEndpoints(a, i) {
4704
- if (q._apiEndpoints || (q._apiEndpoints = {}), q._apiEndpoints.hasOwnProperty(a)) {
4705
- console.log(`API endpoint key:${a} already exists, skip adding.`);
4875
+ static addEndpoints(e, i) {
4876
+ if (q._apiEndpoints || (q._apiEndpoints = {}), q._apiEndpoints.hasOwnProperty(e)) {
4877
+ console.log(`API endpoint key:${e} already exists, skip adding.`);
4706
4878
  return;
4707
4879
  }
4708
- q._apiEndpoints[a] = Sn(i);
4880
+ q._apiEndpoints[e] = On(i);
4709
4881
  }
4710
4882
  /**
4711
4883
  * 靜態方法,方便直接呼叫 API
4712
4884
  * @param request
4713
4885
  */
4714
- static call(a) {
4715
- return new q().callApi(a);
4886
+ static call(e) {
4887
+ return new q().callApi(e);
4716
4888
  }
4717
4889
  /**
4718
4890
  * 靜態方法,方便直接下載檔案
4719
4891
  * @param request
4720
4892
  */
4721
- static download(a) {
4722
- return new q().downloadFile(a);
4893
+ static download(e) {
4894
+ return new q().downloadFile(e);
4723
4895
  }
4724
4896
  /**
4725
4897
  * 取得指定的 API 端點資訊
4726
4898
  * @param endpointKey
4727
4899
  */
4728
- getEndpoint(a) {
4729
- return q._apiEndpoints[a];
4900
+ getEndpoint(e) {
4901
+ return q._apiEndpoints[e];
4730
4902
  }
4731
4903
  /**
4732
4904
  * 取得完整的 API URL
4733
4905
  * @param endpointKey
4734
4906
  */
4735
- getFullUrl(a) {
4736
- const i = this.getEndpoint(a);
4907
+ getFullUrl(e) {
4908
+ const i = this.getEndpoint(e);
4737
4909
  if (i)
4738
4910
  return this.makeBaseUrl(i);
4739
4911
  }
@@ -4741,7 +4913,7 @@ class q {
4741
4913
  * 組合完整的 API URL
4742
4914
  * @param endpoint
4743
4915
  */
4744
- makeBaseUrl(a) {
4916
+ makeBaseUrl(e) {
4745
4917
  {
4746
4918
  console.warn("API base URL or context is not defined.");
4747
4919
  return;
@@ -4751,33 +4923,33 @@ class q {
4751
4923
  * 呼叫 API
4752
4924
  * @param request
4753
4925
  */
4754
- async callApi(a) {
4755
- const i = this.getEndpoint(a.endpointKey);
4926
+ async callApi(e) {
4927
+ const i = this.getEndpoint(e.endpointKey);
4756
4928
  if (!i)
4757
- return Promise.reject(new Error(`API endpoint ${a.endpointKey} not found`));
4929
+ return Promise.reject(new Error(`API endpoint ${e.endpointKey} not found`));
4758
4930
  let n = this.makeBaseUrl(i);
4759
4931
  if (!n)
4760
- return Promise.reject(new Error(`Invalid URL for endpoint ${a.endpointKey}`));
4761
- a.pathParam && Object.keys(a.pathParam).forEach((o) => {
4762
- E.isNil(a.pathParam) || (n = n?.replace(`{${o}}`, encodeURIComponent(a.pathParam[o])));
4932
+ return Promise.reject(new Error(`Invalid URL for endpoint ${e.endpointKey}`));
4933
+ e.pathParam && Object.keys(e.pathParam).forEach((o) => {
4934
+ j.isNil(e.pathParam) || (n = n?.replace(`{${o}}`, encodeURIComponent(e.pathParam[o])));
4763
4935
  });
4764
4936
  let s;
4765
- a.postBody && a.postBody instanceof FormData ? s = a.postBody : s = Se(E.cloneDeep(a.postBody));
4937
+ e.postBody && e.postBody instanceof FormData ? s = e.postBody : s = Se(j.cloneDeep(e.postBody));
4766
4938
  const t = {
4767
4939
  url: n,
4768
4940
  method: i.method,
4769
- headers: Object.assign({}, i.headers || {}, a.headers || {}),
4941
+ headers: Object.assign({}, i.headers || {}, e.headers || {}),
4770
4942
  data: s,
4771
- params: a.queryParam,
4943
+ params: e.queryParam,
4772
4944
  withCredentials: !0,
4773
- onUploadProgress: a.onUploadProgress
4945
+ onUploadProgress: e.onUploadProgress
4774
4946
  };
4775
- return a.isDownloadMode && (t.responseType = "blob"), i.noSpinner, j(t).then((o) => a.isDownloadMode ? new he({
4947
+ return e.isDownloadMode && (t.responseType = "blob"), i.noSpinner, E(t).then((o) => e.isDownloadMode ? new ye({
4776
4948
  httpStatus: o.status,
4777
4949
  code: 0,
4778
4950
  blobData: o.data,
4779
4951
  headers: o.headers
4780
- }) : new he({
4952
+ }) : new ye({
4781
4953
  httpStatus: o.status,
4782
4954
  code: o.data.code,
4783
4955
  message: o.data.message,
@@ -4787,11 +4959,11 @@ class q {
4787
4959
  i.noSpinner;
4788
4960
  }).catch((o) => {
4789
4961
  console.error("API call failed:", o);
4790
- const r = o.response, d = E.get(r, "data.message") || i.errorMessageMap?.[o.response?.status] || "API 呼叫失敗";
4791
- return new he({
4962
+ const r = o.response, d = j.get(r, "data.message") || i.errorMessageMap?.[o.response?.status] || "API 呼叫失敗";
4963
+ return new ye({
4792
4964
  httpStatus: r?.status || 500,
4793
- code: E.get(r, "data.code") || -1,
4794
- message: E.get(r, "data.message") || d,
4965
+ code: j.get(r, "data.code") || -1,
4966
+ message: j.get(r, "data.message") || d,
4795
4967
  data: null,
4796
4968
  nativeError: o
4797
4969
  });
@@ -4801,12 +4973,12 @@ class q {
4801
4973
  * 下載檔案
4802
4974
  * @param request
4803
4975
  */
4804
- async downloadFile(a) {
4805
- a.isDownloadMode = !0;
4806
- const i = await this.callApi(a);
4976
+ async downloadFile(e) {
4977
+ e.isDownloadMode = !0;
4978
+ const i = await this.callApi(e);
4807
4979
  if (!i.isOk() || !i.blobData)
4808
- return Promise.reject(new Tn(i));
4809
- let n = this.resolveExportFileName(a, i);
4980
+ return Promise.reject(new An(i));
4981
+ let n = this.resolveExportFileName(e, i);
4810
4982
  const s = window.URL.createObjectURL(i.blobData), t = document.createElement("a");
4811
4983
  return t.href = s, t.setAttribute("download", n), document.body.appendChild(t), t.click(), document.body.removeChild(t), window.URL.revokeObjectURL(s), Promise.resolve();
4812
4984
  }
@@ -4815,8 +4987,8 @@ class q {
4815
4987
  * @param request
4816
4988
  * @param response
4817
4989
  */
4818
- resolveExportFileName(a, i) {
4819
- let n = a.downloadFileName;
4990
+ resolveExportFileName(e, i) {
4991
+ let n = e.downloadFileName;
4820
4992
  if (!n) {
4821
4993
  const d = i.headers?.["content-disposition"] || "";
4822
4994
  let l = d.match(/filename\*=UTF-8''([^;"']+)/i);
@@ -4827,9 +4999,9 @@ class q {
4827
4999
  }
4828
5000
  n || (n = "downloaded_file");
4829
5001
  const s = i.headers?.["content-type"] || "";
4830
- if (E.isNil(s) || E.isEmpty(s))
5002
+ if (j.isNil(s) || j.isEmpty(s))
4831
5003
  return n;
4832
- const t = s.split(";")[0], o = Ka.extension(t);
5004
+ const t = s.split(";")[0], o = Ya.extension(t);
4833
5005
  if (!o)
4834
5006
  return n;
4835
5007
  const r = n.split(".");
@@ -4845,10 +5017,10 @@ class q {
4845
5017
  * 解碼 RFC 2047 編碼的字串
4846
5018
  * @param str RFC 2047 編碼的字串
4847
5019
  */
4848
- decodeRfc2047(a) {
4849
- const i = a.match(/=\?([^?]+)\?([bqBQ])\?([^?]+)\?=/);
5020
+ decodeRfc2047(e) {
5021
+ const i = e.match(/=\?([^?]+)\?([bqBQ])\?([^?]+)\?=/);
4850
5022
  if (!i)
4851
- return a;
5023
+ return e;
4852
5024
  const n = i[1].toLowerCase(), s = i[2].toUpperCase();
4853
5025
  let t = i[3];
4854
5026
  if (s === "B") {
@@ -4859,21 +5031,22 @@ class q {
4859
5031
  /=([A-Fa-f0-9]{2})/g,
4860
5032
  (o, r) => String.fromCharCode(parseInt(r, 16))
4861
5033
  ), new TextDecoder(n).decode(new Uint8Array(Array.from(t, (o) => o.charCodeAt(0))));
4862
- return a;
5034
+ return e;
4863
5035
  }
4864
5036
  }
4865
5037
  export {
4866
- Tn as ApiRejectError,
4867
- ss as ApiRequest,
4868
- he as ApiResponse,
5038
+ An as ApiRejectError,
5039
+ cs as ApiRequest,
5040
+ ye as ApiResponse,
4869
5041
  q as ApiService,
4870
- Ne as CBSModalViewModel,
4871
- Nn as CFTurnstileDirective,
4872
- Ln as CFormFieldErrorOnYupDirective,
4873
- Dn as CFormFieldErrorStyleDirective,
4874
- Na as ICBSModalViewType,
4875
- _n as vdCBSDropdown,
4876
- Un as vdCBSModal,
4877
- Pn as vdDateFormatter,
4878
- qn as vdTooltip
5042
+ W as AuthorizationService,
5043
+ Be as CBSModalViewModel,
5044
+ Mn as CFTurnstileDirective,
5045
+ In as CFormFieldErrorOnYupDirective,
5046
+ Bn as CFormFieldErrorStyleDirective,
5047
+ Ma as ICBSModalViewType,
5048
+ Dn as vdCBSDropdown,
5049
+ Nn as vdCBSModal,
5050
+ Ln as vdDateFormatter,
5051
+ _n as vdTooltip
4879
5052
  };