ui-process-h5 0.1.23 → 0.1.25

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/lib/design.js ADDED
@@ -0,0 +1,2184 @@
1
+ import { defineComponent as re, ref as A, watch as ge, onMounted as Ve, openBlock as _, createElementBlock as E, createElementVNode as m, Fragment as x, renderList as G, normalizeClass as bt, toDisplayString as v, createCommentVNode as w, withDirectives as gt, renderSlot as L, vShow as _t, pushScopeId as Je, popScopeId as We, normalizeStyle as ne, computed as de, resolveComponent as fe, createVNode as Be, withCtx as pe, createBlock as Et, createTextVNode as Pe } from "vue";
2
+ const St = re({
3
+ name: "TopTab",
4
+ props: {
5
+ /**
6
+ * 根据参数插入自定义tab
7
+ * label:选项卡title
8
+ * key:选项卡ID 请勿重复defaultTabList内已拥有的默认key
9
+ * type:插槽类型 "slot" "default"
10
+ * sort:排序参数,无参数默认插入末尾
11
+ * slot:插槽name
12
+ */
13
+ tapList: {
14
+ type: Array,
15
+ default: () => []
16
+ },
17
+ // 自定义tab (传入后 默认tab,tapList,失效)
18
+ selfTapList: {
19
+ type: Array,
20
+ default: () => []
21
+ }
22
+ },
23
+ setup(e) {
24
+ const t = A(
25
+ "http://59.53.91.231:8088/portal/r/w?sid=6f714ec1-7570-4525-ac51-b092402d8295&cmd=CLIENT_BPM_FORM_TRACK_OPEN&processInstId=1f6e7196-e1ea-428e-b295-aa23a54a2402&supportCanvas=true&formInfo="
26
+ ), n = A([
27
+ {
28
+ actionName: "提交",
29
+ activityName: "部门负责人",
30
+ createDate: "2023-04-20 14:47:35",
31
+ createUser: "18ccbf63229f0c79f39940ae284c111e",
32
+ createUserName: "朱鸿飞",
33
+ customUniqueId: "",
34
+ departmentName: "测试部",
35
+ id: "88df38c8-9756-4b4a-a9b0-dcb0ec1b57d5",
36
+ metaAnnexList: null,
37
+ msg: "同意",
38
+ positionName: "测试部119147",
39
+ processInstId: "1f6e7196-e1ea-428e-b295-aa23a54a2402",
40
+ taskInstId: "38bbef1c-efbb-456d-bd79-08ed9d96b4b3"
41
+ }
42
+ ]), s = A(""), r = A([
43
+ {
44
+ label: "基本信息",
45
+ key: "a",
46
+ type: "default",
47
+ slot: "default"
48
+ },
49
+ {
50
+ label: "流程图",
51
+ key: "b",
52
+ type: "default",
53
+ slot: "tab2"
54
+ },
55
+ {
56
+ label: "审批记录",
57
+ key: "c",
58
+ type: "default",
59
+ slot: "tab3"
60
+ }
61
+ ]), i = A([
62
+ {
63
+ label: "基本信息",
64
+ key: "a",
65
+ type: "default",
66
+ slot: "default"
67
+ },
68
+ {
69
+ label: "流程图",
70
+ key: "b",
71
+ type: "default",
72
+ slot: "tab2"
73
+ },
74
+ {
75
+ label: "审批记录",
76
+ key: "c",
77
+ type: "default",
78
+ slot: "tab3"
79
+ }
80
+ ]), o = A(), u = (l, c) => {
81
+ l !== s.value && (s.value = l, d(c));
82
+ }, d = (l) => {
83
+ if (o.value.length) {
84
+ let c = document.getElementsByClassName("bottom-line")[0], f;
85
+ if (c.offsetWidth < o.value[l].offsetWidth - 10) {
86
+ let b = (o.value[l].offsetWidth - c.offsetWidth - 10) / 2;
87
+ f = `${o.value[l].offsetLeft + b}px`;
88
+ } else if (c.offsetWidth > o.value[l].offsetWidth - 10) {
89
+ let b = (c.offsetWidth - o.value[l].offsetWidth + 10) / 2;
90
+ f = `${o.value[l].offsetLeft - b}px`;
91
+ } else
92
+ f = `${o.value[l].offsetLeft}px`;
93
+ c.style.transition = ".3s", c.style.transform = `translateX(${f})`;
94
+ }
95
+ };
96
+ return ge(
97
+ () => e.selfTapList,
98
+ (l, c) => {
99
+ l.length && (i.value = [].concat(l), s.value = i.value[0].key);
100
+ },
101
+ {
102
+ //如果加了这个参数,值为true的话,就消除了惰性,watch会在创建后立即执行一次
103
+ //那么首次执行,val为默认值,preVal为undefined
104
+ immediate: !0,
105
+ //这个参数代表监听对象时,可以监听深度嵌套的对象属性
106
+ deep: !0
107
+ }
108
+ ), ge(
109
+ () => e.tapList,
110
+ (l, c) => {
111
+ e.selfTapList.length || (i.value = [].concat(r.value), l.length > 0 && l.forEach((f, b) => {
112
+ f.sort && f.sort > 1 ? i.value.splice(f.sort - 1, 0, f) : f.sort == 1 ? i.value.unshift(f) : i.value.push(f);
113
+ }), s.value = i.value[0].key);
114
+ },
115
+ {
116
+ //如果加了这个参数,值为true的话,就消除了惰性,watch会在创建后立即执行一次
117
+ //那么首次执行,val为默认值,preVal为undefined
118
+ immediate: !0,
119
+ //这个参数代表监听对象时,可以监听深度嵌套的对象属性
120
+ deep: !0
121
+ }
122
+ ), Ve(() => {
123
+ d(0);
124
+ }), {
125
+ isTapList: i,
126
+ active: s,
127
+ handleActive: u,
128
+ label: o,
129
+ taskCommentList: n,
130
+ trackUrl: t
131
+ };
132
+ }
133
+ });
134
+ const oe = (e, t) => {
135
+ const n = e.__vccOpts || e;
136
+ for (const [s, r] of t)
137
+ n[s] = r;
138
+ return n;
139
+ }, D = (e) => (Je("data-v-baad7ff1"), e = e(), We(), e), wt = { class: "tops-tab" }, Tt = { class: "tops-tab-header" }, At = ["onClick"], vt = {
140
+ key: 0,
141
+ class: "bottom-line"
142
+ }, Ct = { class: "tops-tab-body" }, Ot = ["src"], Rt = {
143
+ key: 1,
144
+ class: "textnone"
145
+ }, kt = { class: "seal-list__item--option" }, Nt = /* @__PURE__ */ D(() => /* @__PURE__ */ m("span", null, "节点名称", -1)), Bt = { class: "seal-list__item--option" }, Pt = /* @__PURE__ */ D(() => /* @__PURE__ */ m("span", null, "审批人", -1)), Lt = { class: "seal-list__item--option" }, xt = /* @__PURE__ */ D(() => /* @__PURE__ */ m("span", null, "审批操作", -1)), Ft = { class: "seal-list__item--option" }, Ut = /* @__PURE__ */ D(() => /* @__PURE__ */ m("span", null, "审批意见", -1)), Dt = ["innerHTML"], It = { class: "seal-list__item--option" }, $t = /* @__PURE__ */ D(() => /* @__PURE__ */ m("span", null, "审批时间", -1)), jt = {
146
+ key: 0,
147
+ class: "seal-list__item--attch"
148
+ }, Mt = /* @__PURE__ */ D(() => /* @__PURE__ */ m("span", null, "查看附件", -1)), qt = [
149
+ Mt
150
+ ], Ht = {
151
+ key: 1,
152
+ class: "textnone"
153
+ };
154
+ function zt(e, t, n, s, r, i) {
155
+ return _(), E("div", wt, [
156
+ m("div", Tt, [
157
+ (_(!0), E(x, null, G(e.isTapList, (o, u) => (_(), E("div", {
158
+ class: bt(["tops-tab-header-items", [o.key === e.active ? "active" : ""]]),
159
+ onClick: (d) => e.handleActive(o.key, u),
160
+ ref_for: !0,
161
+ ref: "label"
162
+ }, v(o.label), 11, At))), 256)),
163
+ e.isTapList.length ? (_(), E("div", vt)) : w("", !0)
164
+ ]),
165
+ m("div", Ct, [
166
+ (_(!0), E(x, null, G(e.isTapList, (o) => gt((_(), E("div", {
167
+ key: o.key,
168
+ style: { height: "calc(100% - 45px)" }
169
+ }, [
170
+ o.key === "a" && o.type === "default" ? L(e.$slots, "default", { key: 0 }, void 0, !0) : w("", !0),
171
+ o.key === "b" && o.type === "default" ? L(e.$slots, o.slot, { key: 1 }, () => [
172
+ e.trackUrl ? (_(), E("iframe", {
173
+ key: 0,
174
+ src: e.trackUrl,
175
+ style: { width: "100%", "min-height": "500px", border: "none" },
176
+ scrolling: "no",
177
+ frameborder: "0"
178
+ }, null, 8, Ot)) : (_(), E("div", Rt, " 暂无流程图 "))
179
+ ], !0) : w("", !0),
180
+ o.key === "c" && o.type === "default" ? L(e.$slots, o.slot, { key: 2 }, () => {
181
+ var u;
182
+ return [
183
+ ((u = e.taskCommentList) == null ? void 0 : u.length) > 0 ? (_(!0), E(x, { key: 0 }, G(e.taskCommentList, (d, l) => (_(), E("div", {
184
+ key: d.id,
185
+ class: "seal-list__item"
186
+ }, [
187
+ m("div", null, [
188
+ m("div", kt, [
189
+ Nt,
190
+ m("span", null, v(d.activityName), 1)
191
+ ]),
192
+ m("div", Bt, [
193
+ Pt,
194
+ m("span", null, v(d.createUserName), 1)
195
+ ]),
196
+ m("div", Lt, [
197
+ xt,
198
+ m("span", null, v(d.actionName), 1)
199
+ ]),
200
+ m("div", Ft, [
201
+ Ut,
202
+ m("span", {
203
+ innerHTML: d.msg
204
+ }, null, 8, Dt)
205
+ ]),
206
+ m("div", It, [
207
+ $t,
208
+ m("span", null, v(d.createDate), 1)
209
+ ]),
210
+ d.metaAnnexList && d.metaAnnexList.length ? (_(), E("div", jt, qt)) : w("", !0)
211
+ ])
212
+ ]))), 128)) : (_(), E("div", Ht, "暂无数据"))
213
+ ];
214
+ }, !0) : w("", !0),
215
+ o.type == "slot" ? L(e.$slots, o.slot, { key: 3 }, void 0, !0) : w("", !0)
216
+ ])), [
217
+ [_t, e.active === o.key]
218
+ ])), 128))
219
+ ])
220
+ ]);
221
+ }
222
+ const H = /* @__PURE__ */ oe(St, [["render", zt], ["__scopeId", "data-v-baad7ff1"]]);
223
+ H.install = function(e) {
224
+ return e.component(H.name, H), e;
225
+ };
226
+ const Vt = re({
227
+ name: "TopPopup",
228
+ props: {
229
+ titleText: { default: "top-popup", type: String },
230
+ cancelText: { default: "取消", type: String },
231
+ comfigText: { default: "确定", type: String },
232
+ comfig: { default: null, type: Function },
233
+ cancel: { default: null, type: Function },
234
+ isMask: { require: !1, default: !0, type: Boolean },
235
+ isMaskClose: { require: !1, default: !0, type: Boolean }
236
+ },
237
+ setup(e) {
238
+ const t = A(!1), n = () => {
239
+ t.value = !0;
240
+ }, s = () => {
241
+ typeof e.cancel == "function" && e.cancel(), i();
242
+ }, r = () => {
243
+ typeof e.comfig == "function" && e.comfig();
244
+ }, i = () => {
245
+ t.value = !1;
246
+ };
247
+ return Ve(() => {
248
+ document.querySelector("body");
249
+ }), {
250
+ handleOpen: n,
251
+ handleCancel: s,
252
+ handleComfig: r,
253
+ handleClose: i,
254
+ show: t
255
+ };
256
+ }
257
+ });
258
+ const Jt = { class: "top-popup-header" }, Wt = { class: "header-title" }, Kt = { class: "top-popup-body" };
259
+ function Gt(e, t, n, s, r, i) {
260
+ return _(), E(x, null, [
261
+ m("div", {
262
+ class: "top-popup",
263
+ style: ne(
264
+ e.show ? "transform: translateY(0)" : "transform: translateY(100%)"
265
+ )
266
+ }, [
267
+ m("div", Jt, [
268
+ m("div", {
269
+ class: "header-cancel",
270
+ onClick: t[0] || (t[0] = (...o) => e.handleCancel && e.handleCancel(...o))
271
+ }, v(e.cancelText), 1),
272
+ m("div", Wt, v(e.titleText), 1),
273
+ m("div", {
274
+ class: "header-comfig",
275
+ onClick: t[1] || (t[1] = (...o) => e.handleComfig && e.handleComfig(...o))
276
+ }, v(e.comfigText), 1)
277
+ ]),
278
+ m("div", Kt, [
279
+ L(e.$slots, "default", {}, void 0, !0)
280
+ ])
281
+ ], 4),
282
+ e.show && e.isMask ? (_(), E("div", {
283
+ key: 0,
284
+ class: "top-popup-mask",
285
+ onClick: t[2] || (t[2] = (o) => e.isMaskClose && e.handleClose())
286
+ })) : w("", !0)
287
+ ], 64);
288
+ }
289
+ const q = /* @__PURE__ */ oe(Vt, [["render", Gt], ["__scopeId", "data-v-474e328a"]]);
290
+ q.install = function(e) {
291
+ return console.log("TopPopup.install", e), e.mount(q), e.component(q.name, q), e;
292
+ };
293
+ const Xt = re({
294
+ name: "TopButton",
295
+ props: {
296
+ type: { default: "default", type: String }
297
+ },
298
+ setup(e) {
299
+ const t = A({
300
+ textColor: "#fff",
301
+ bckColor: "3c9cff"
302
+ });
303
+ switch (e.type) {
304
+ case "primary":
305
+ t.value.textColor = "#fff", t.value.bckColor = "#3c9cff";
306
+ break;
307
+ case "danger":
308
+ t.value.textColor = "rgb(255, 96, 96)", t.value.bckColor = "rgb(255, 230, 230)";
309
+ break;
310
+ case "default":
311
+ t.value.textColor = "rgb(51, 51, 51)", t.value.bckColor = "rgb(241, 241, 241)";
312
+ break;
313
+ }
314
+ return {
315
+ style: t
316
+ };
317
+ }
318
+ });
319
+ function Yt(e, t, n, s, r, i) {
320
+ return _(), E("div", {
321
+ class: "top-button",
322
+ style: ne(`background-color:${e.style.bckColor};color:${e.style.textColor}`)
323
+ }, [
324
+ L(e.$slots, "default", {}, void 0, !0)
325
+ ], 4);
326
+ }
327
+ const X = /* @__PURE__ */ oe(Xt, [["render", Yt], ["__scopeId", "data-v-156a54e6"]]);
328
+ X.install = function(e) {
329
+ return e.component(X.name, X), e;
330
+ };
331
+ function Ke(e, t) {
332
+ return function() {
333
+ return e.apply(t, arguments);
334
+ };
335
+ }
336
+ const { toString: Qt } = Object.prototype, { getPrototypeOf: Ae } = Object, ie = ((e) => (t) => {
337
+ const n = Qt.call(t);
338
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
339
+ })(/* @__PURE__ */ Object.create(null)), N = (e) => (e = e.toLowerCase(), (t) => ie(t) === e), ae = (e) => (t) => typeof t === e, { isArray: I } = Array, z = ae("undefined");
340
+ function Zt(e) {
341
+ return e !== null && !z(e) && e.constructor !== null && !z(e.constructor) && k(e.constructor.isBuffer) && e.constructor.isBuffer(e);
342
+ }
343
+ const Ge = N("ArrayBuffer");
344
+ function en(e) {
345
+ let t;
346
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ge(e.buffer), t;
347
+ }
348
+ const tn = ae("string"), k = ae("function"), Xe = ae("number"), ve = (e) => e !== null && typeof e == "object", nn = (e) => e === !0 || e === !1, Y = (e) => {
349
+ if (ie(e) !== "object")
350
+ return !1;
351
+ const t = Ae(e);
352
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
353
+ }, sn = N("Date"), rn = N("File"), on = N("Blob"), an = N("FileList"), ln = (e) => ve(e) && k(e.pipe), un = (e) => {
354
+ let t;
355
+ return e && (typeof FormData == "function" && e instanceof FormData || k(e.append) && ((t = ie(e)) === "formdata" || // detect form-data instance
356
+ t === "object" && k(e.toString) && e.toString() === "[object FormData]"));
357
+ }, cn = N("URLSearchParams"), dn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
358
+ function V(e, t, { allOwnKeys: n = !1 } = {}) {
359
+ if (e === null || typeof e > "u")
360
+ return;
361
+ let s, r;
362
+ if (typeof e != "object" && (e = [e]), I(e))
363
+ for (s = 0, r = e.length; s < r; s++)
364
+ t.call(null, e[s], s, e);
365
+ else {
366
+ const i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
367
+ let u;
368
+ for (s = 0; s < o; s++)
369
+ u = i[s], t.call(null, e[u], u, e);
370
+ }
371
+ }
372
+ function Ye(e, t) {
373
+ t = t.toLowerCase();
374
+ const n = Object.keys(e);
375
+ let s = n.length, r;
376
+ for (; s-- > 0; )
377
+ if (r = n[s], t === r.toLowerCase())
378
+ return r;
379
+ return null;
380
+ }
381
+ const Qe = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Ze = (e) => !z(e) && e !== Qe;
382
+ function _e() {
383
+ const { caseless: e } = Ze(this) && this || {}, t = {}, n = (s, r) => {
384
+ const i = e && Ye(t, r) || r;
385
+ Y(t[i]) && Y(s) ? t[i] = _e(t[i], s) : Y(s) ? t[i] = _e({}, s) : I(s) ? t[i] = s.slice() : t[i] = s;
386
+ };
387
+ for (let s = 0, r = arguments.length; s < r; s++)
388
+ arguments[s] && V(arguments[s], n);
389
+ return t;
390
+ }
391
+ const fn = (e, t, n, { allOwnKeys: s } = {}) => (V(t, (r, i) => {
392
+ n && k(r) ? e[i] = Ke(r, n) : e[i] = r;
393
+ }, { allOwnKeys: s }), e), pn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), hn = (e, t, n, s) => {
394
+ e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
395
+ value: t.prototype
396
+ }), n && Object.assign(e.prototype, n);
397
+ }, mn = (e, t, n, s) => {
398
+ let r, i, o;
399
+ const u = {};
400
+ if (t = t || {}, e == null)
401
+ return t;
402
+ do {
403
+ for (r = Object.getOwnPropertyNames(e), i = r.length; i-- > 0; )
404
+ o = r[i], (!s || s(o, e, t)) && !u[o] && (t[o] = e[o], u[o] = !0);
405
+ e = n !== !1 && Ae(e);
406
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
407
+ return t;
408
+ }, yn = (e, t, n) => {
409
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
410
+ const s = e.indexOf(t, n);
411
+ return s !== -1 && s === n;
412
+ }, bn = (e) => {
413
+ if (!e)
414
+ return null;
415
+ if (I(e))
416
+ return e;
417
+ let t = e.length;
418
+ if (!Xe(t))
419
+ return null;
420
+ const n = new Array(t);
421
+ for (; t-- > 0; )
422
+ n[t] = e[t];
423
+ return n;
424
+ }, gn = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ae(Uint8Array)), _n = (e, t) => {
425
+ const s = (e && e[Symbol.iterator]).call(e);
426
+ let r;
427
+ for (; (r = s.next()) && !r.done; ) {
428
+ const i = r.value;
429
+ t.call(e, i[0], i[1]);
430
+ }
431
+ }, En = (e, t) => {
432
+ let n;
433
+ const s = [];
434
+ for (; (n = e.exec(t)) !== null; )
435
+ s.push(n);
436
+ return s;
437
+ }, Sn = N("HTMLFormElement"), wn = (e) => e.toLowerCase().replace(
438
+ /[-_\s]([a-z\d])(\w*)/g,
439
+ function(n, s, r) {
440
+ return s.toUpperCase() + r;
441
+ }
442
+ ), Le = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Tn = N("RegExp"), et = (e, t) => {
443
+ const n = Object.getOwnPropertyDescriptors(e), s = {};
444
+ V(n, (r, i) => {
445
+ t(r, i, e) !== !1 && (s[i] = r);
446
+ }), Object.defineProperties(e, s);
447
+ }, An = (e) => {
448
+ et(e, (t, n) => {
449
+ if (k(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
450
+ return !1;
451
+ const s = e[n];
452
+ if (k(s)) {
453
+ if (t.enumerable = !1, "writable" in t) {
454
+ t.writable = !1;
455
+ return;
456
+ }
457
+ t.set || (t.set = () => {
458
+ throw Error("Can not rewrite read-only method '" + n + "'");
459
+ });
460
+ }
461
+ });
462
+ }, vn = (e, t) => {
463
+ const n = {}, s = (r) => {
464
+ r.forEach((i) => {
465
+ n[i] = !0;
466
+ });
467
+ };
468
+ return I(e) ? s(e) : s(String(e).split(t)), n;
469
+ }, Cn = () => {
470
+ }, On = (e, t) => (e = +e, Number.isFinite(e) ? e : t), he = "abcdefghijklmnopqrstuvwxyz", xe = "0123456789", tt = {
471
+ DIGIT: xe,
472
+ ALPHA: he,
473
+ ALPHA_DIGIT: he + he.toUpperCase() + xe
474
+ }, Rn = (e = 16, t = tt.ALPHA_DIGIT) => {
475
+ let n = "";
476
+ const { length: s } = t;
477
+ for (; e--; )
478
+ n += t[Math.random() * s | 0];
479
+ return n;
480
+ };
481
+ function kn(e) {
482
+ return !!(e && k(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
483
+ }
484
+ const Nn = (e) => {
485
+ const t = new Array(10), n = (s, r) => {
486
+ if (ve(s)) {
487
+ if (t.indexOf(s) >= 0)
488
+ return;
489
+ if (!("toJSON" in s)) {
490
+ t[r] = s;
491
+ const i = I(s) ? [] : {};
492
+ return V(s, (o, u) => {
493
+ const d = n(o, r + 1);
494
+ !z(d) && (i[u] = d);
495
+ }), t[r] = void 0, i;
496
+ }
497
+ }
498
+ return s;
499
+ };
500
+ return n(e, 0);
501
+ }, a = {
502
+ isArray: I,
503
+ isArrayBuffer: Ge,
504
+ isBuffer: Zt,
505
+ isFormData: un,
506
+ isArrayBufferView: en,
507
+ isString: tn,
508
+ isNumber: Xe,
509
+ isBoolean: nn,
510
+ isObject: ve,
511
+ isPlainObject: Y,
512
+ isUndefined: z,
513
+ isDate: sn,
514
+ isFile: rn,
515
+ isBlob: on,
516
+ isRegExp: Tn,
517
+ isFunction: k,
518
+ isStream: ln,
519
+ isURLSearchParams: cn,
520
+ isTypedArray: gn,
521
+ isFileList: an,
522
+ forEach: V,
523
+ merge: _e,
524
+ extend: fn,
525
+ trim: dn,
526
+ stripBOM: pn,
527
+ inherits: hn,
528
+ toFlatObject: mn,
529
+ kindOf: ie,
530
+ kindOfTest: N,
531
+ endsWith: yn,
532
+ toArray: bn,
533
+ forEachEntry: _n,
534
+ matchAll: En,
535
+ isHTMLForm: Sn,
536
+ hasOwnProperty: Le,
537
+ hasOwnProp: Le,
538
+ // an alias to avoid ESLint no-prototype-builtins detection
539
+ reduceDescriptors: et,
540
+ freezeMethods: An,
541
+ toObjectSet: vn,
542
+ toCamelCase: wn,
543
+ noop: Cn,
544
+ toFiniteNumber: On,
545
+ findKey: Ye,
546
+ global: Qe,
547
+ isContextDefined: Ze,
548
+ ALPHABET: tt,
549
+ generateString: Rn,
550
+ isSpecCompliantForm: kn,
551
+ toJSONObject: Nn
552
+ };
553
+ function y(e, t, n, s, r) {
554
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), s && (this.request = s), r && (this.response = r);
555
+ }
556
+ a.inherits(y, Error, {
557
+ toJSON: function() {
558
+ return {
559
+ // Standard
560
+ message: this.message,
561
+ name: this.name,
562
+ // Microsoft
563
+ description: this.description,
564
+ number: this.number,
565
+ // Mozilla
566
+ fileName: this.fileName,
567
+ lineNumber: this.lineNumber,
568
+ columnNumber: this.columnNumber,
569
+ stack: this.stack,
570
+ // Axios
571
+ config: a.toJSONObject(this.config),
572
+ code: this.code,
573
+ status: this.response && this.response.status ? this.response.status : null
574
+ };
575
+ }
576
+ });
577
+ const nt = y.prototype, st = {};
578
+ [
579
+ "ERR_BAD_OPTION_VALUE",
580
+ "ERR_BAD_OPTION",
581
+ "ECONNABORTED",
582
+ "ETIMEDOUT",
583
+ "ERR_NETWORK",
584
+ "ERR_FR_TOO_MANY_REDIRECTS",
585
+ "ERR_DEPRECATED",
586
+ "ERR_BAD_RESPONSE",
587
+ "ERR_BAD_REQUEST",
588
+ "ERR_CANCELED",
589
+ "ERR_NOT_SUPPORT",
590
+ "ERR_INVALID_URL"
591
+ // eslint-disable-next-line func-names
592
+ ].forEach((e) => {
593
+ st[e] = { value: e };
594
+ });
595
+ Object.defineProperties(y, st);
596
+ Object.defineProperty(nt, "isAxiosError", { value: !0 });
597
+ y.from = (e, t, n, s, r, i) => {
598
+ const o = Object.create(nt);
599
+ return a.toFlatObject(e, o, function(d) {
600
+ return d !== Error.prototype;
601
+ }, (u) => u !== "isAxiosError"), y.call(o, e.message, t, n, s, r), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
602
+ };
603
+ const Bn = null;
604
+ function Ee(e) {
605
+ return a.isPlainObject(e) || a.isArray(e);
606
+ }
607
+ function rt(e) {
608
+ return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
609
+ }
610
+ function Fe(e, t, n) {
611
+ return e ? e.concat(t).map(function(r, i) {
612
+ return r = rt(r), !n && i ? "[" + r + "]" : r;
613
+ }).join(n ? "." : "") : t;
614
+ }
615
+ function Pn(e) {
616
+ return a.isArray(e) && !e.some(Ee);
617
+ }
618
+ const Ln = a.toFlatObject(a, {}, null, function(t) {
619
+ return /^is[A-Z]/.test(t);
620
+ });
621
+ function le(e, t, n) {
622
+ if (!a.isObject(e))
623
+ throw new TypeError("target must be an object");
624
+ t = t || new FormData(), n = a.toFlatObject(n, {
625
+ metaTokens: !0,
626
+ dots: !1,
627
+ indexes: !1
628
+ }, !1, function(p, T) {
629
+ return !a.isUndefined(T[p]);
630
+ });
631
+ const s = n.metaTokens, r = n.visitor || c, i = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
632
+ if (!a.isFunction(r))
633
+ throw new TypeError("visitor must be a function");
634
+ function l(h) {
635
+ if (h === null)
636
+ return "";
637
+ if (a.isDate(h))
638
+ return h.toISOString();
639
+ if (!d && a.isBlob(h))
640
+ throw new y("Blob is not supported. Use a Buffer instead.");
641
+ return a.isArrayBuffer(h) || a.isTypedArray(h) ? d && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
642
+ }
643
+ function c(h, p, T) {
644
+ let C = h;
645
+ if (h && !T && typeof h == "object") {
646
+ if (a.endsWith(p, "{}"))
647
+ p = s ? p : p.slice(0, -2), h = JSON.stringify(h);
648
+ else if (a.isArray(h) && Pn(h) || (a.isFileList(h) || a.endsWith(p, "[]")) && (C = a.toArray(h)))
649
+ return p = rt(p), C.forEach(function(W, yt) {
650
+ !(a.isUndefined(W) || W === null) && t.append(
651
+ // eslint-disable-next-line no-nested-ternary
652
+ o === !0 ? Fe([p], yt, i) : o === null ? p : p + "[]",
653
+ l(W)
654
+ );
655
+ }), !1;
656
+ }
657
+ return Ee(h) ? !0 : (t.append(Fe(T, p, i), l(h)), !1);
658
+ }
659
+ const f = [], b = Object.assign(Ln, {
660
+ defaultVisitor: c,
661
+ convertValue: l,
662
+ isVisitable: Ee
663
+ });
664
+ function g(h, p) {
665
+ if (!a.isUndefined(h)) {
666
+ if (f.indexOf(h) !== -1)
667
+ throw Error("Circular reference detected in " + p.join("."));
668
+ f.push(h), a.forEach(h, function(C, F) {
669
+ (!(a.isUndefined(C) || C === null) && r.call(
670
+ t,
671
+ C,
672
+ a.isString(F) ? F.trim() : F,
673
+ p,
674
+ b
675
+ )) === !0 && g(C, p ? p.concat(F) : [F]);
676
+ }), f.pop();
677
+ }
678
+ }
679
+ if (!a.isObject(e))
680
+ throw new TypeError("data must be an object");
681
+ return g(e), t;
682
+ }
683
+ function Ue(e) {
684
+ const t = {
685
+ "!": "%21",
686
+ "'": "%27",
687
+ "(": "%28",
688
+ ")": "%29",
689
+ "~": "%7E",
690
+ "%20": "+",
691
+ "%00": "\0"
692
+ };
693
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(s) {
694
+ return t[s];
695
+ });
696
+ }
697
+ function Ce(e, t) {
698
+ this._pairs = [], e && le(e, this, t);
699
+ }
700
+ const ot = Ce.prototype;
701
+ ot.append = function(t, n) {
702
+ this._pairs.push([t, n]);
703
+ };
704
+ ot.toString = function(t) {
705
+ const n = t ? function(s) {
706
+ return t.call(this, s, Ue);
707
+ } : Ue;
708
+ return this._pairs.map(function(r) {
709
+ return n(r[0]) + "=" + n(r[1]);
710
+ }, "").join("&");
711
+ };
712
+ function xn(e) {
713
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
714
+ }
715
+ function it(e, t, n) {
716
+ if (!t)
717
+ return e;
718
+ const s = n && n.encode || xn, r = n && n.serialize;
719
+ let i;
720
+ if (r ? i = r(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new Ce(t, n).toString(s), i) {
721
+ const o = e.indexOf("#");
722
+ o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
723
+ }
724
+ return e;
725
+ }
726
+ class Fn {
727
+ constructor() {
728
+ this.handlers = [];
729
+ }
730
+ /**
731
+ * Add a new interceptor to the stack
732
+ *
733
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
734
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
735
+ *
736
+ * @return {Number} An ID used to remove interceptor later
737
+ */
738
+ use(t, n, s) {
739
+ return this.handlers.push({
740
+ fulfilled: t,
741
+ rejected: n,
742
+ synchronous: s ? s.synchronous : !1,
743
+ runWhen: s ? s.runWhen : null
744
+ }), this.handlers.length - 1;
745
+ }
746
+ /**
747
+ * Remove an interceptor from the stack
748
+ *
749
+ * @param {Number} id The ID that was returned by `use`
750
+ *
751
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
752
+ */
753
+ eject(t) {
754
+ this.handlers[t] && (this.handlers[t] = null);
755
+ }
756
+ /**
757
+ * Clear all interceptors from the stack
758
+ *
759
+ * @returns {void}
760
+ */
761
+ clear() {
762
+ this.handlers && (this.handlers = []);
763
+ }
764
+ /**
765
+ * Iterate over all the registered interceptors
766
+ *
767
+ * This method is particularly useful for skipping over any
768
+ * interceptors that may have become `null` calling `eject`.
769
+ *
770
+ * @param {Function} fn The function to call for each interceptor
771
+ *
772
+ * @returns {void}
773
+ */
774
+ forEach(t) {
775
+ a.forEach(this.handlers, function(s) {
776
+ s !== null && t(s);
777
+ });
778
+ }
779
+ }
780
+ const De = Fn, at = {
781
+ silentJSONParsing: !0,
782
+ forcedJSONParsing: !0,
783
+ clarifyTimeoutError: !1
784
+ }, Un = typeof URLSearchParams < "u" ? URLSearchParams : Ce, Dn = typeof FormData < "u" ? FormData : null, In = typeof Blob < "u" ? Blob : null, $n = (() => {
785
+ let e;
786
+ return typeof navigator < "u" && ((e = navigator.product) === "ReactNative" || e === "NativeScript" || e === "NS") ? !1 : typeof window < "u" && typeof document < "u";
787
+ })(), jn = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
788
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), O = {
789
+ isBrowser: !0,
790
+ classes: {
791
+ URLSearchParams: Un,
792
+ FormData: Dn,
793
+ Blob: In
794
+ },
795
+ isStandardBrowserEnv: $n,
796
+ isStandardBrowserWebWorkerEnv: jn,
797
+ protocols: ["http", "https", "file", "blob", "url", "data"]
798
+ };
799
+ function Mn(e, t) {
800
+ return le(e, new O.classes.URLSearchParams(), Object.assign({
801
+ visitor: function(n, s, r, i) {
802
+ return O.isNode && a.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
803
+ }
804
+ }, t));
805
+ }
806
+ function qn(e) {
807
+ return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
808
+ }
809
+ function Hn(e) {
810
+ const t = {}, n = Object.keys(e);
811
+ let s;
812
+ const r = n.length;
813
+ let i;
814
+ for (s = 0; s < r; s++)
815
+ i = n[s], t[i] = e[i];
816
+ return t;
817
+ }
818
+ function lt(e) {
819
+ function t(n, s, r, i) {
820
+ let o = n[i++];
821
+ const u = Number.isFinite(+o), d = i >= n.length;
822
+ return o = !o && a.isArray(r) ? r.length : o, d ? (a.hasOwnProp(r, o) ? r[o] = [r[o], s] : r[o] = s, !u) : ((!r[o] || !a.isObject(r[o])) && (r[o] = []), t(n, s, r[o], i) && a.isArray(r[o]) && (r[o] = Hn(r[o])), !u);
823
+ }
824
+ if (a.isFormData(e) && a.isFunction(e.entries)) {
825
+ const n = {};
826
+ return a.forEachEntry(e, (s, r) => {
827
+ t(qn(s), r, n, 0);
828
+ }), n;
829
+ }
830
+ return null;
831
+ }
832
+ const zn = {
833
+ "Content-Type": void 0
834
+ };
835
+ function Vn(e, t, n) {
836
+ if (a.isString(e))
837
+ try {
838
+ return (t || JSON.parse)(e), a.trim(e);
839
+ } catch (s) {
840
+ if (s.name !== "SyntaxError")
841
+ throw s;
842
+ }
843
+ return (n || JSON.stringify)(e);
844
+ }
845
+ const ue = {
846
+ transitional: at,
847
+ adapter: ["xhr", "http"],
848
+ transformRequest: [function(t, n) {
849
+ const s = n.getContentType() || "", r = s.indexOf("application/json") > -1, i = a.isObject(t);
850
+ if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
851
+ return r && r ? JSON.stringify(lt(t)) : t;
852
+ if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t))
853
+ return t;
854
+ if (a.isArrayBufferView(t))
855
+ return t.buffer;
856
+ if (a.isURLSearchParams(t))
857
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
858
+ let u;
859
+ if (i) {
860
+ if (s.indexOf("application/x-www-form-urlencoded") > -1)
861
+ return Mn(t, this.formSerializer).toString();
862
+ if ((u = a.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
863
+ const d = this.env && this.env.FormData;
864
+ return le(
865
+ u ? { "files[]": t } : t,
866
+ d && new d(),
867
+ this.formSerializer
868
+ );
869
+ }
870
+ }
871
+ return i || r ? (n.setContentType("application/json", !1), Vn(t)) : t;
872
+ }],
873
+ transformResponse: [function(t) {
874
+ const n = this.transitional || ue.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
875
+ if (t && a.isString(t) && (s && !this.responseType || r)) {
876
+ const o = !(n && n.silentJSONParsing) && r;
877
+ try {
878
+ return JSON.parse(t);
879
+ } catch (u) {
880
+ if (o)
881
+ throw u.name === "SyntaxError" ? y.from(u, y.ERR_BAD_RESPONSE, this, null, this.response) : u;
882
+ }
883
+ }
884
+ return t;
885
+ }],
886
+ /**
887
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
888
+ * timeout is not created.
889
+ */
890
+ timeout: 0,
891
+ xsrfCookieName: "XSRF-TOKEN",
892
+ xsrfHeaderName: "X-XSRF-TOKEN",
893
+ maxContentLength: -1,
894
+ maxBodyLength: -1,
895
+ env: {
896
+ FormData: O.classes.FormData,
897
+ Blob: O.classes.Blob
898
+ },
899
+ validateStatus: function(t) {
900
+ return t >= 200 && t < 300;
901
+ },
902
+ headers: {
903
+ common: {
904
+ Accept: "application/json, text/plain, */*"
905
+ }
906
+ }
907
+ };
908
+ a.forEach(["delete", "get", "head"], function(t) {
909
+ ue.headers[t] = {};
910
+ });
911
+ a.forEach(["post", "put", "patch"], function(t) {
912
+ ue.headers[t] = a.merge(zn);
913
+ });
914
+ const Oe = ue, Jn = a.toObjectSet([
915
+ "age",
916
+ "authorization",
917
+ "content-length",
918
+ "content-type",
919
+ "etag",
920
+ "expires",
921
+ "from",
922
+ "host",
923
+ "if-modified-since",
924
+ "if-unmodified-since",
925
+ "last-modified",
926
+ "location",
927
+ "max-forwards",
928
+ "proxy-authorization",
929
+ "referer",
930
+ "retry-after",
931
+ "user-agent"
932
+ ]), Wn = (e) => {
933
+ const t = {};
934
+ let n, s, r;
935
+ return e && e.split(`
936
+ `).forEach(function(o) {
937
+ r = o.indexOf(":"), n = o.substring(0, r).trim().toLowerCase(), s = o.substring(r + 1).trim(), !(!n || t[n] && Jn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
938
+ }), t;
939
+ }, Ie = Symbol("internals");
940
+ function j(e) {
941
+ return e && String(e).trim().toLowerCase();
942
+ }
943
+ function Q(e) {
944
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(Q) : String(e);
945
+ }
946
+ function Kn(e) {
947
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
948
+ let s;
949
+ for (; s = n.exec(e); )
950
+ t[s[1]] = s[2];
951
+ return t;
952
+ }
953
+ const Gn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
954
+ function me(e, t, n, s, r) {
955
+ if (a.isFunction(s))
956
+ return s.call(this, t, n);
957
+ if (r && (t = n), !!a.isString(t)) {
958
+ if (a.isString(s))
959
+ return t.indexOf(s) !== -1;
960
+ if (a.isRegExp(s))
961
+ return s.test(t);
962
+ }
963
+ }
964
+ function Xn(e) {
965
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, s) => n.toUpperCase() + s);
966
+ }
967
+ function Yn(e, t) {
968
+ const n = a.toCamelCase(" " + t);
969
+ ["get", "set", "has"].forEach((s) => {
970
+ Object.defineProperty(e, s + n, {
971
+ value: function(r, i, o) {
972
+ return this[s].call(this, t, r, i, o);
973
+ },
974
+ configurable: !0
975
+ });
976
+ });
977
+ }
978
+ class ce {
979
+ constructor(t) {
980
+ t && this.set(t);
981
+ }
982
+ set(t, n, s) {
983
+ const r = this;
984
+ function i(u, d, l) {
985
+ const c = j(d);
986
+ if (!c)
987
+ throw new Error("header name must be a non-empty string");
988
+ const f = a.findKey(r, c);
989
+ (!f || r[f] === void 0 || l === !0 || l === void 0 && r[f] !== !1) && (r[f || d] = Q(u));
990
+ }
991
+ const o = (u, d) => a.forEach(u, (l, c) => i(l, c, d));
992
+ return a.isPlainObject(t) || t instanceof this.constructor ? o(t, n) : a.isString(t) && (t = t.trim()) && !Gn(t) ? o(Wn(t), n) : t != null && i(n, t, s), this;
993
+ }
994
+ get(t, n) {
995
+ if (t = j(t), t) {
996
+ const s = a.findKey(this, t);
997
+ if (s) {
998
+ const r = this[s];
999
+ if (!n)
1000
+ return r;
1001
+ if (n === !0)
1002
+ return Kn(r);
1003
+ if (a.isFunction(n))
1004
+ return n.call(this, r, s);
1005
+ if (a.isRegExp(n))
1006
+ return n.exec(r);
1007
+ throw new TypeError("parser must be boolean|regexp|function");
1008
+ }
1009
+ }
1010
+ }
1011
+ has(t, n) {
1012
+ if (t = j(t), t) {
1013
+ const s = a.findKey(this, t);
1014
+ return !!(s && this[s] !== void 0 && (!n || me(this, this[s], s, n)));
1015
+ }
1016
+ return !1;
1017
+ }
1018
+ delete(t, n) {
1019
+ const s = this;
1020
+ let r = !1;
1021
+ function i(o) {
1022
+ if (o = j(o), o) {
1023
+ const u = a.findKey(s, o);
1024
+ u && (!n || me(s, s[u], u, n)) && (delete s[u], r = !0);
1025
+ }
1026
+ }
1027
+ return a.isArray(t) ? t.forEach(i) : i(t), r;
1028
+ }
1029
+ clear(t) {
1030
+ const n = Object.keys(this);
1031
+ let s = n.length, r = !1;
1032
+ for (; s--; ) {
1033
+ const i = n[s];
1034
+ (!t || me(this, this[i], i, t, !0)) && (delete this[i], r = !0);
1035
+ }
1036
+ return r;
1037
+ }
1038
+ normalize(t) {
1039
+ const n = this, s = {};
1040
+ return a.forEach(this, (r, i) => {
1041
+ const o = a.findKey(s, i);
1042
+ if (o) {
1043
+ n[o] = Q(r), delete n[i];
1044
+ return;
1045
+ }
1046
+ const u = t ? Xn(i) : String(i).trim();
1047
+ u !== i && delete n[i], n[u] = Q(r), s[u] = !0;
1048
+ }), this;
1049
+ }
1050
+ concat(...t) {
1051
+ return this.constructor.concat(this, ...t);
1052
+ }
1053
+ toJSON(t) {
1054
+ const n = /* @__PURE__ */ Object.create(null);
1055
+ return a.forEach(this, (s, r) => {
1056
+ s != null && s !== !1 && (n[r] = t && a.isArray(s) ? s.join(", ") : s);
1057
+ }), n;
1058
+ }
1059
+ [Symbol.iterator]() {
1060
+ return Object.entries(this.toJSON())[Symbol.iterator]();
1061
+ }
1062
+ toString() {
1063
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
1064
+ `);
1065
+ }
1066
+ get [Symbol.toStringTag]() {
1067
+ return "AxiosHeaders";
1068
+ }
1069
+ static from(t) {
1070
+ return t instanceof this ? t : new this(t);
1071
+ }
1072
+ static concat(t, ...n) {
1073
+ const s = new this(t);
1074
+ return n.forEach((r) => s.set(r)), s;
1075
+ }
1076
+ static accessor(t) {
1077
+ const s = (this[Ie] = this[Ie] = {
1078
+ accessors: {}
1079
+ }).accessors, r = this.prototype;
1080
+ function i(o) {
1081
+ const u = j(o);
1082
+ s[u] || (Yn(r, o), s[u] = !0);
1083
+ }
1084
+ return a.isArray(t) ? t.forEach(i) : i(t), this;
1085
+ }
1086
+ }
1087
+ ce.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1088
+ a.freezeMethods(ce.prototype);
1089
+ a.freezeMethods(ce);
1090
+ const R = ce;
1091
+ function ye(e, t) {
1092
+ const n = this || Oe, s = t || n, r = R.from(s.headers);
1093
+ let i = s.data;
1094
+ return a.forEach(e, function(u) {
1095
+ i = u.call(n, i, r.normalize(), t ? t.status : void 0);
1096
+ }), r.normalize(), i;
1097
+ }
1098
+ function ut(e) {
1099
+ return !!(e && e.__CANCEL__);
1100
+ }
1101
+ function J(e, t, n) {
1102
+ y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
1103
+ }
1104
+ a.inherits(J, y, {
1105
+ __CANCEL__: !0
1106
+ });
1107
+ function Qn(e, t, n) {
1108
+ const s = n.config.validateStatus;
1109
+ !n.status || !s || s(n.status) ? e(n) : t(new y(
1110
+ "Request failed with status code " + n.status,
1111
+ [y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1112
+ n.config,
1113
+ n.request,
1114
+ n
1115
+ ));
1116
+ }
1117
+ const Zn = O.isStandardBrowserEnv ? (
1118
+ // Standard browser envs support document.cookie
1119
+ function() {
1120
+ return {
1121
+ write: function(n, s, r, i, o, u) {
1122
+ const d = [];
1123
+ d.push(n + "=" + encodeURIComponent(s)), a.isNumber(r) && d.push("expires=" + new Date(r).toGMTString()), a.isString(i) && d.push("path=" + i), a.isString(o) && d.push("domain=" + o), u === !0 && d.push("secure"), document.cookie = d.join("; ");
1124
+ },
1125
+ read: function(n) {
1126
+ const s = document.cookie.match(new RegExp("(^|;\\s*)(" + n + ")=([^;]*)"));
1127
+ return s ? decodeURIComponent(s[3]) : null;
1128
+ },
1129
+ remove: function(n) {
1130
+ this.write(n, "", Date.now() - 864e5);
1131
+ }
1132
+ };
1133
+ }()
1134
+ ) : (
1135
+ // Non standard browser env (web workers, react-native) lack needed support.
1136
+ function() {
1137
+ return {
1138
+ write: function() {
1139
+ },
1140
+ read: function() {
1141
+ return null;
1142
+ },
1143
+ remove: function() {
1144
+ }
1145
+ };
1146
+ }()
1147
+ );
1148
+ function es(e) {
1149
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1150
+ }
1151
+ function ts(e, t) {
1152
+ return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e;
1153
+ }
1154
+ function ct(e, t) {
1155
+ return e && !es(t) ? ts(e, t) : t;
1156
+ }
1157
+ const ns = O.isStandardBrowserEnv ? (
1158
+ // Standard browser envs have full support of the APIs needed to test
1159
+ // whether the request URL is of the same origin as current location.
1160
+ function() {
1161
+ const t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
1162
+ let s;
1163
+ function r(i) {
1164
+ let o = i;
1165
+ return t && (n.setAttribute("href", o), o = n.href), n.setAttribute("href", o), {
1166
+ href: n.href,
1167
+ protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
1168
+ host: n.host,
1169
+ search: n.search ? n.search.replace(/^\?/, "") : "",
1170
+ hash: n.hash ? n.hash.replace(/^#/, "") : "",
1171
+ hostname: n.hostname,
1172
+ port: n.port,
1173
+ pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
1174
+ };
1175
+ }
1176
+ return s = r(window.location.href), function(o) {
1177
+ const u = a.isString(o) ? r(o) : o;
1178
+ return u.protocol === s.protocol && u.host === s.host;
1179
+ };
1180
+ }()
1181
+ ) : (
1182
+ // Non standard browser envs (web workers, react-native) lack needed support.
1183
+ function() {
1184
+ return function() {
1185
+ return !0;
1186
+ };
1187
+ }()
1188
+ );
1189
+ function ss(e) {
1190
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1191
+ return t && t[1] || "";
1192
+ }
1193
+ function rs(e, t) {
1194
+ e = e || 10;
1195
+ const n = new Array(e), s = new Array(e);
1196
+ let r = 0, i = 0, o;
1197
+ return t = t !== void 0 ? t : 1e3, function(d) {
1198
+ const l = Date.now(), c = s[i];
1199
+ o || (o = l), n[r] = d, s[r] = l;
1200
+ let f = i, b = 0;
1201
+ for (; f !== r; )
1202
+ b += n[f++], f = f % e;
1203
+ if (r = (r + 1) % e, r === i && (i = (i + 1) % e), l - o < t)
1204
+ return;
1205
+ const g = c && l - c;
1206
+ return g ? Math.round(b * 1e3 / g) : void 0;
1207
+ };
1208
+ }
1209
+ function $e(e, t) {
1210
+ let n = 0;
1211
+ const s = rs(50, 250);
1212
+ return (r) => {
1213
+ const i = r.loaded, o = r.lengthComputable ? r.total : void 0, u = i - n, d = s(u), l = i <= o;
1214
+ n = i;
1215
+ const c = {
1216
+ loaded: i,
1217
+ total: o,
1218
+ progress: o ? i / o : void 0,
1219
+ bytes: u,
1220
+ rate: d || void 0,
1221
+ estimated: d && o && l ? (o - i) / d : void 0,
1222
+ event: r
1223
+ };
1224
+ c[t ? "download" : "upload"] = !0, e(c);
1225
+ };
1226
+ }
1227
+ const os = typeof XMLHttpRequest < "u", is = os && function(e) {
1228
+ return new Promise(function(n, s) {
1229
+ let r = e.data;
1230
+ const i = R.from(e.headers).normalize(), o = e.responseType;
1231
+ let u;
1232
+ function d() {
1233
+ e.cancelToken && e.cancelToken.unsubscribe(u), e.signal && e.signal.removeEventListener("abort", u);
1234
+ }
1235
+ a.isFormData(r) && (O.isStandardBrowserEnv || O.isStandardBrowserWebWorkerEnv) && i.setContentType(!1);
1236
+ let l = new XMLHttpRequest();
1237
+ if (e.auth) {
1238
+ const g = e.auth.username || "", h = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
1239
+ i.set("Authorization", "Basic " + btoa(g + ":" + h));
1240
+ }
1241
+ const c = ct(e.baseURL, e.url);
1242
+ l.open(e.method.toUpperCase(), it(c, e.params, e.paramsSerializer), !0), l.timeout = e.timeout;
1243
+ function f() {
1244
+ if (!l)
1245
+ return;
1246
+ const g = R.from(
1247
+ "getAllResponseHeaders" in l && l.getAllResponseHeaders()
1248
+ ), p = {
1249
+ data: !o || o === "text" || o === "json" ? l.responseText : l.response,
1250
+ status: l.status,
1251
+ statusText: l.statusText,
1252
+ headers: g,
1253
+ config: e,
1254
+ request: l
1255
+ };
1256
+ Qn(function(C) {
1257
+ n(C), d();
1258
+ }, function(C) {
1259
+ s(C), d();
1260
+ }, p), l = null;
1261
+ }
1262
+ if ("onloadend" in l ? l.onloadend = f : l.onreadystatechange = function() {
1263
+ !l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(f);
1264
+ }, l.onabort = function() {
1265
+ l && (s(new y("Request aborted", y.ECONNABORTED, e, l)), l = null);
1266
+ }, l.onerror = function() {
1267
+ s(new y("Network Error", y.ERR_NETWORK, e, l)), l = null;
1268
+ }, l.ontimeout = function() {
1269
+ let h = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
1270
+ const p = e.transitional || at;
1271
+ e.timeoutErrorMessage && (h = e.timeoutErrorMessage), s(new y(
1272
+ h,
1273
+ p.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1274
+ e,
1275
+ l
1276
+ )), l = null;
1277
+ }, O.isStandardBrowserEnv) {
1278
+ const g = (e.withCredentials || ns(c)) && e.xsrfCookieName && Zn.read(e.xsrfCookieName);
1279
+ g && i.set(e.xsrfHeaderName, g);
1280
+ }
1281
+ r === void 0 && i.setContentType(null), "setRequestHeader" in l && a.forEach(i.toJSON(), function(h, p) {
1282
+ l.setRequestHeader(p, h);
1283
+ }), a.isUndefined(e.withCredentials) || (l.withCredentials = !!e.withCredentials), o && o !== "json" && (l.responseType = e.responseType), typeof e.onDownloadProgress == "function" && l.addEventListener("progress", $e(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", $e(e.onUploadProgress)), (e.cancelToken || e.signal) && (u = (g) => {
1284
+ l && (s(!g || g.type ? new J(null, e, l) : g), l.abort(), l = null);
1285
+ }, e.cancelToken && e.cancelToken.subscribe(u), e.signal && (e.signal.aborted ? u() : e.signal.addEventListener("abort", u)));
1286
+ const b = ss(c);
1287
+ if (b && O.protocols.indexOf(b) === -1) {
1288
+ s(new y("Unsupported protocol " + b + ":", y.ERR_BAD_REQUEST, e));
1289
+ return;
1290
+ }
1291
+ l.send(r || null);
1292
+ });
1293
+ }, Z = {
1294
+ http: Bn,
1295
+ xhr: is
1296
+ };
1297
+ a.forEach(Z, (e, t) => {
1298
+ if (e) {
1299
+ try {
1300
+ Object.defineProperty(e, "name", { value: t });
1301
+ } catch {
1302
+ }
1303
+ Object.defineProperty(e, "adapterName", { value: t });
1304
+ }
1305
+ });
1306
+ const as = {
1307
+ getAdapter: (e) => {
1308
+ e = a.isArray(e) ? e : [e];
1309
+ const { length: t } = e;
1310
+ let n, s;
1311
+ for (let r = 0; r < t && (n = e[r], !(s = a.isString(n) ? Z[n.toLowerCase()] : n)); r++)
1312
+ ;
1313
+ if (!s)
1314
+ throw s === !1 ? new y(
1315
+ `Adapter ${n} is not supported by the environment`,
1316
+ "ERR_NOT_SUPPORT"
1317
+ ) : new Error(
1318
+ a.hasOwnProp(Z, n) ? `Adapter '${n}' is not available in the build` : `Unknown adapter '${n}'`
1319
+ );
1320
+ if (!a.isFunction(s))
1321
+ throw new TypeError("adapter is not a function");
1322
+ return s;
1323
+ },
1324
+ adapters: Z
1325
+ };
1326
+ function be(e) {
1327
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1328
+ throw new J(null, e);
1329
+ }
1330
+ function je(e) {
1331
+ return be(e), e.headers = R.from(e.headers), e.data = ye.call(
1332
+ e,
1333
+ e.transformRequest
1334
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), as.getAdapter(e.adapter || Oe.adapter)(e).then(function(s) {
1335
+ return be(e), s.data = ye.call(
1336
+ e,
1337
+ e.transformResponse,
1338
+ s
1339
+ ), s.headers = R.from(s.headers), s;
1340
+ }, function(s) {
1341
+ return ut(s) || (be(e), s && s.response && (s.response.data = ye.call(
1342
+ e,
1343
+ e.transformResponse,
1344
+ s.response
1345
+ ), s.response.headers = R.from(s.response.headers))), Promise.reject(s);
1346
+ });
1347
+ }
1348
+ const Me = (e) => e instanceof R ? e.toJSON() : e;
1349
+ function U(e, t) {
1350
+ t = t || {};
1351
+ const n = {};
1352
+ function s(l, c, f) {
1353
+ return a.isPlainObject(l) && a.isPlainObject(c) ? a.merge.call({ caseless: f }, l, c) : a.isPlainObject(c) ? a.merge({}, c) : a.isArray(c) ? c.slice() : c;
1354
+ }
1355
+ function r(l, c, f) {
1356
+ if (a.isUndefined(c)) {
1357
+ if (!a.isUndefined(l))
1358
+ return s(void 0, l, f);
1359
+ } else
1360
+ return s(l, c, f);
1361
+ }
1362
+ function i(l, c) {
1363
+ if (!a.isUndefined(c))
1364
+ return s(void 0, c);
1365
+ }
1366
+ function o(l, c) {
1367
+ if (a.isUndefined(c)) {
1368
+ if (!a.isUndefined(l))
1369
+ return s(void 0, l);
1370
+ } else
1371
+ return s(void 0, c);
1372
+ }
1373
+ function u(l, c, f) {
1374
+ if (f in t)
1375
+ return s(l, c);
1376
+ if (f in e)
1377
+ return s(void 0, l);
1378
+ }
1379
+ const d = {
1380
+ url: i,
1381
+ method: i,
1382
+ data: i,
1383
+ baseURL: o,
1384
+ transformRequest: o,
1385
+ transformResponse: o,
1386
+ paramsSerializer: o,
1387
+ timeout: o,
1388
+ timeoutMessage: o,
1389
+ withCredentials: o,
1390
+ adapter: o,
1391
+ responseType: o,
1392
+ xsrfCookieName: o,
1393
+ xsrfHeaderName: o,
1394
+ onUploadProgress: o,
1395
+ onDownloadProgress: o,
1396
+ decompress: o,
1397
+ maxContentLength: o,
1398
+ maxBodyLength: o,
1399
+ beforeRedirect: o,
1400
+ transport: o,
1401
+ httpAgent: o,
1402
+ httpsAgent: o,
1403
+ cancelToken: o,
1404
+ socketPath: o,
1405
+ responseEncoding: o,
1406
+ validateStatus: u,
1407
+ headers: (l, c) => r(Me(l), Me(c), !0)
1408
+ };
1409
+ return a.forEach(Object.keys(e).concat(Object.keys(t)), function(c) {
1410
+ const f = d[c] || r, b = f(e[c], t[c], c);
1411
+ a.isUndefined(b) && f !== u || (n[c] = b);
1412
+ }), n;
1413
+ }
1414
+ const dt = "1.3.6", Re = {};
1415
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1416
+ Re[e] = function(s) {
1417
+ return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
1418
+ };
1419
+ });
1420
+ const qe = {};
1421
+ Re.transitional = function(t, n, s) {
1422
+ function r(i, o) {
1423
+ return "[Axios v" + dt + "] Transitional option '" + i + "'" + o + (s ? ". " + s : "");
1424
+ }
1425
+ return (i, o, u) => {
1426
+ if (t === !1)
1427
+ throw new y(
1428
+ r(o, " has been removed" + (n ? " in " + n : "")),
1429
+ y.ERR_DEPRECATED
1430
+ );
1431
+ return n && !qe[o] && (qe[o] = !0, console.warn(
1432
+ r(
1433
+ o,
1434
+ " has been deprecated since v" + n + " and will be removed in the near future"
1435
+ )
1436
+ )), t ? t(i, o, u) : !0;
1437
+ };
1438
+ };
1439
+ function ls(e, t, n) {
1440
+ if (typeof e != "object")
1441
+ throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1442
+ const s = Object.keys(e);
1443
+ let r = s.length;
1444
+ for (; r-- > 0; ) {
1445
+ const i = s[r], o = t[i];
1446
+ if (o) {
1447
+ const u = e[i], d = u === void 0 || o(u, i, e);
1448
+ if (d !== !0)
1449
+ throw new y("option " + i + " must be " + d, y.ERR_BAD_OPTION_VALUE);
1450
+ continue;
1451
+ }
1452
+ if (n !== !0)
1453
+ throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
1454
+ }
1455
+ }
1456
+ const Se = {
1457
+ assertOptions: ls,
1458
+ validators: Re
1459
+ }, B = Se.validators;
1460
+ class se {
1461
+ constructor(t) {
1462
+ this.defaults = t, this.interceptors = {
1463
+ request: new De(),
1464
+ response: new De()
1465
+ };
1466
+ }
1467
+ /**
1468
+ * Dispatch a request
1469
+ *
1470
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1471
+ * @param {?Object} config
1472
+ *
1473
+ * @returns {Promise} The Promise to be fulfilled
1474
+ */
1475
+ request(t, n) {
1476
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = U(this.defaults, n);
1477
+ const { transitional: s, paramsSerializer: r, headers: i } = n;
1478
+ s !== void 0 && Se.assertOptions(s, {
1479
+ silentJSONParsing: B.transitional(B.boolean),
1480
+ forcedJSONParsing: B.transitional(B.boolean),
1481
+ clarifyTimeoutError: B.transitional(B.boolean)
1482
+ }, !1), r != null && (a.isFunction(r) ? n.paramsSerializer = {
1483
+ serialize: r
1484
+ } : Se.assertOptions(r, {
1485
+ encode: B.function,
1486
+ serialize: B.function
1487
+ }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1488
+ let o;
1489
+ o = i && a.merge(
1490
+ i.common,
1491
+ i[n.method]
1492
+ ), o && a.forEach(
1493
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1494
+ (h) => {
1495
+ delete i[h];
1496
+ }
1497
+ ), n.headers = R.concat(o, i);
1498
+ const u = [];
1499
+ let d = !0;
1500
+ this.interceptors.request.forEach(function(p) {
1501
+ typeof p.runWhen == "function" && p.runWhen(n) === !1 || (d = d && p.synchronous, u.unshift(p.fulfilled, p.rejected));
1502
+ });
1503
+ const l = [];
1504
+ this.interceptors.response.forEach(function(p) {
1505
+ l.push(p.fulfilled, p.rejected);
1506
+ });
1507
+ let c, f = 0, b;
1508
+ if (!d) {
1509
+ const h = [je.bind(this), void 0];
1510
+ for (h.unshift.apply(h, u), h.push.apply(h, l), b = h.length, c = Promise.resolve(n); f < b; )
1511
+ c = c.then(h[f++], h[f++]);
1512
+ return c;
1513
+ }
1514
+ b = u.length;
1515
+ let g = n;
1516
+ for (f = 0; f < b; ) {
1517
+ const h = u[f++], p = u[f++];
1518
+ try {
1519
+ g = h(g);
1520
+ } catch (T) {
1521
+ p.call(this, T);
1522
+ break;
1523
+ }
1524
+ }
1525
+ try {
1526
+ c = je.call(this, g);
1527
+ } catch (h) {
1528
+ return Promise.reject(h);
1529
+ }
1530
+ for (f = 0, b = l.length; f < b; )
1531
+ c = c.then(l[f++], l[f++]);
1532
+ return c;
1533
+ }
1534
+ getUri(t) {
1535
+ t = U(this.defaults, t);
1536
+ const n = ct(t.baseURL, t.url);
1537
+ return it(n, t.params, t.paramsSerializer);
1538
+ }
1539
+ }
1540
+ a.forEach(["delete", "get", "head", "options"], function(t) {
1541
+ se.prototype[t] = function(n, s) {
1542
+ return this.request(U(s || {}, {
1543
+ method: t,
1544
+ url: n,
1545
+ data: (s || {}).data
1546
+ }));
1547
+ };
1548
+ });
1549
+ a.forEach(["post", "put", "patch"], function(t) {
1550
+ function n(s) {
1551
+ return function(i, o, u) {
1552
+ return this.request(U(u || {}, {
1553
+ method: t,
1554
+ headers: s ? {
1555
+ "Content-Type": "multipart/form-data"
1556
+ } : {},
1557
+ url: i,
1558
+ data: o
1559
+ }));
1560
+ };
1561
+ }
1562
+ se.prototype[t] = n(), se.prototype[t + "Form"] = n(!0);
1563
+ });
1564
+ const ee = se;
1565
+ class ke {
1566
+ constructor(t) {
1567
+ if (typeof t != "function")
1568
+ throw new TypeError("executor must be a function.");
1569
+ let n;
1570
+ this.promise = new Promise(function(i) {
1571
+ n = i;
1572
+ });
1573
+ const s = this;
1574
+ this.promise.then((r) => {
1575
+ if (!s._listeners)
1576
+ return;
1577
+ let i = s._listeners.length;
1578
+ for (; i-- > 0; )
1579
+ s._listeners[i](r);
1580
+ s._listeners = null;
1581
+ }), this.promise.then = (r) => {
1582
+ let i;
1583
+ const o = new Promise((u) => {
1584
+ s.subscribe(u), i = u;
1585
+ }).then(r);
1586
+ return o.cancel = function() {
1587
+ s.unsubscribe(i);
1588
+ }, o;
1589
+ }, t(function(i, o, u) {
1590
+ s.reason || (s.reason = new J(i, o, u), n(s.reason));
1591
+ });
1592
+ }
1593
+ /**
1594
+ * Throws a `CanceledError` if cancellation has been requested.
1595
+ */
1596
+ throwIfRequested() {
1597
+ if (this.reason)
1598
+ throw this.reason;
1599
+ }
1600
+ /**
1601
+ * Subscribe to the cancel signal
1602
+ */
1603
+ subscribe(t) {
1604
+ if (this.reason) {
1605
+ t(this.reason);
1606
+ return;
1607
+ }
1608
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1609
+ }
1610
+ /**
1611
+ * Unsubscribe from the cancel signal
1612
+ */
1613
+ unsubscribe(t) {
1614
+ if (!this._listeners)
1615
+ return;
1616
+ const n = this._listeners.indexOf(t);
1617
+ n !== -1 && this._listeners.splice(n, 1);
1618
+ }
1619
+ /**
1620
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1621
+ * cancels the `CancelToken`.
1622
+ */
1623
+ static source() {
1624
+ let t;
1625
+ return {
1626
+ token: new ke(function(r) {
1627
+ t = r;
1628
+ }),
1629
+ cancel: t
1630
+ };
1631
+ }
1632
+ }
1633
+ const us = ke;
1634
+ function cs(e) {
1635
+ return function(n) {
1636
+ return e.apply(null, n);
1637
+ };
1638
+ }
1639
+ function ds(e) {
1640
+ return a.isObject(e) && e.isAxiosError === !0;
1641
+ }
1642
+ const we = {
1643
+ Continue: 100,
1644
+ SwitchingProtocols: 101,
1645
+ Processing: 102,
1646
+ EarlyHints: 103,
1647
+ Ok: 200,
1648
+ Created: 201,
1649
+ Accepted: 202,
1650
+ NonAuthoritativeInformation: 203,
1651
+ NoContent: 204,
1652
+ ResetContent: 205,
1653
+ PartialContent: 206,
1654
+ MultiStatus: 207,
1655
+ AlreadyReported: 208,
1656
+ ImUsed: 226,
1657
+ MultipleChoices: 300,
1658
+ MovedPermanently: 301,
1659
+ Found: 302,
1660
+ SeeOther: 303,
1661
+ NotModified: 304,
1662
+ UseProxy: 305,
1663
+ Unused: 306,
1664
+ TemporaryRedirect: 307,
1665
+ PermanentRedirect: 308,
1666
+ BadRequest: 400,
1667
+ Unauthorized: 401,
1668
+ PaymentRequired: 402,
1669
+ Forbidden: 403,
1670
+ NotFound: 404,
1671
+ MethodNotAllowed: 405,
1672
+ NotAcceptable: 406,
1673
+ ProxyAuthenticationRequired: 407,
1674
+ RequestTimeout: 408,
1675
+ Conflict: 409,
1676
+ Gone: 410,
1677
+ LengthRequired: 411,
1678
+ PreconditionFailed: 412,
1679
+ PayloadTooLarge: 413,
1680
+ UriTooLong: 414,
1681
+ UnsupportedMediaType: 415,
1682
+ RangeNotSatisfiable: 416,
1683
+ ExpectationFailed: 417,
1684
+ ImATeapot: 418,
1685
+ MisdirectedRequest: 421,
1686
+ UnprocessableEntity: 422,
1687
+ Locked: 423,
1688
+ FailedDependency: 424,
1689
+ TooEarly: 425,
1690
+ UpgradeRequired: 426,
1691
+ PreconditionRequired: 428,
1692
+ TooManyRequests: 429,
1693
+ RequestHeaderFieldsTooLarge: 431,
1694
+ UnavailableForLegalReasons: 451,
1695
+ InternalServerError: 500,
1696
+ NotImplemented: 501,
1697
+ BadGateway: 502,
1698
+ ServiceUnavailable: 503,
1699
+ GatewayTimeout: 504,
1700
+ HttpVersionNotSupported: 505,
1701
+ VariantAlsoNegotiates: 506,
1702
+ InsufficientStorage: 507,
1703
+ LoopDetected: 508,
1704
+ NotExtended: 510,
1705
+ NetworkAuthenticationRequired: 511
1706
+ };
1707
+ Object.entries(we).forEach(([e, t]) => {
1708
+ we[t] = e;
1709
+ });
1710
+ const fs = we;
1711
+ function ft(e) {
1712
+ const t = new ee(e), n = Ke(ee.prototype.request, t);
1713
+ return a.extend(n, ee.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
1714
+ return ft(U(e, r));
1715
+ }, n;
1716
+ }
1717
+ const S = ft(Oe);
1718
+ S.Axios = ee;
1719
+ S.CanceledError = J;
1720
+ S.CancelToken = us;
1721
+ S.isCancel = ut;
1722
+ S.VERSION = dt;
1723
+ S.toFormData = le;
1724
+ S.AxiosError = y;
1725
+ S.Cancel = S.CanceledError;
1726
+ S.all = function(t) {
1727
+ return Promise.all(t);
1728
+ };
1729
+ S.spread = cs;
1730
+ S.isAxiosError = ds;
1731
+ S.mergeConfig = U;
1732
+ S.AxiosHeaders = R;
1733
+ S.formToJSON = (e) => lt(a.isHTMLForm(e) ? new FormData(e) : e);
1734
+ S.HttpStatusCode = fs;
1735
+ S.default = S;
1736
+ const pt = S;
1737
+ /*! js-cookie v3.0.1 | MIT */
1738
+ function K(e) {
1739
+ for (var t = 1; t < arguments.length; t++) {
1740
+ var n = arguments[t];
1741
+ for (var s in n)
1742
+ e[s] = n[s];
1743
+ }
1744
+ return e;
1745
+ }
1746
+ var ps = {
1747
+ read: function(e) {
1748
+ return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1749
+ },
1750
+ write: function(e) {
1751
+ return encodeURIComponent(e).replace(
1752
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
1753
+ decodeURIComponent
1754
+ );
1755
+ }
1756
+ };
1757
+ function Te(e, t) {
1758
+ function n(r, i, o) {
1759
+ if (!(typeof document > "u")) {
1760
+ o = K({}, t, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
1761
+ var u = "";
1762
+ for (var d in o)
1763
+ o[d] && (u += "; " + d, o[d] !== !0 && (u += "=" + o[d].split(";")[0]));
1764
+ return document.cookie = r + "=" + e.write(i, r) + u;
1765
+ }
1766
+ }
1767
+ function s(r) {
1768
+ if (!(typeof document > "u" || arguments.length && !r)) {
1769
+ for (var i = document.cookie ? document.cookie.split("; ") : [], o = {}, u = 0; u < i.length; u++) {
1770
+ var d = i[u].split("="), l = d.slice(1).join("=");
1771
+ try {
1772
+ var c = decodeURIComponent(d[0]);
1773
+ if (o[c] = e.read(l, c), r === c)
1774
+ break;
1775
+ } catch {
1776
+ }
1777
+ }
1778
+ return r ? o[r] : o;
1779
+ }
1780
+ }
1781
+ return Object.create(
1782
+ {
1783
+ set: n,
1784
+ get: s,
1785
+ remove: function(r, i) {
1786
+ n(
1787
+ r,
1788
+ "",
1789
+ K({}, i, {
1790
+ expires: -1
1791
+ })
1792
+ );
1793
+ },
1794
+ withAttributes: function(r) {
1795
+ return Te(this.converter, K({}, this.attributes, r));
1796
+ },
1797
+ withConverter: function(r) {
1798
+ return Te(K({}, this.converter, r), this.attributes);
1799
+ }
1800
+ },
1801
+ {
1802
+ attributes: { value: Object.freeze(t) },
1803
+ converter: { value: Object.freeze(e) }
1804
+ }
1805
+ );
1806
+ }
1807
+ Te(ps, { path: "/" });
1808
+ var ht = Object.assign || function(e) {
1809
+ for (var t = 1; t < arguments.length; t++) {
1810
+ var n = arguments[t];
1811
+ for (var s in n)
1812
+ Object.prototype.hasOwnProperty.call(n, s) && (e[s] = n[s]);
1813
+ }
1814
+ return e;
1815
+ }, He = typeof window > "u", P = {
1816
+ /* eslint-disable no-undef */
1817
+ version: "1.1.1",
1818
+ storage: He ? null : window.localStorage,
1819
+ session: {
1820
+ storage: He ? null : window.sessionStorage
1821
+ }
1822
+ }, mt = {
1823
+ set: function(t, n) {
1824
+ if (!this.disabled)
1825
+ return n === void 0 ? this.remove(t) : (this.storage.setItem(t, hs(n)), n);
1826
+ },
1827
+ get: function(t, n) {
1828
+ if (this.disabled)
1829
+ return n;
1830
+ var s = ms(this.storage.getItem(t));
1831
+ return s === void 0 ? n : s;
1832
+ },
1833
+ has: function(t) {
1834
+ return this.get(t) !== void 0;
1835
+ },
1836
+ remove: function(t) {
1837
+ this.disabled || this.storage.removeItem(t);
1838
+ },
1839
+ clear: function() {
1840
+ this.disabled || this.storage.clear();
1841
+ },
1842
+ getAll: function() {
1843
+ if (this.disabled)
1844
+ return null;
1845
+ var t = {};
1846
+ return this.forEach(function(n, s) {
1847
+ t[n] = s;
1848
+ }), t;
1849
+ },
1850
+ forEach: function(t) {
1851
+ if (!this.disabled)
1852
+ for (var n = 0; n < this.storage.length; n++) {
1853
+ var s = this.storage.key(n);
1854
+ t(s, this.get(s));
1855
+ }
1856
+ }
1857
+ };
1858
+ ht(P, mt);
1859
+ ht(P.session, mt);
1860
+ function hs(e) {
1861
+ return JSON.stringify(e);
1862
+ }
1863
+ function ms(e) {
1864
+ if (typeof e == "string")
1865
+ try {
1866
+ return JSON.parse(e);
1867
+ } catch {
1868
+ return e || void 0;
1869
+ }
1870
+ }
1871
+ try {
1872
+ var M = "__storejs__";
1873
+ P.set(M, M), P.get(M) !== M && (P.disabled = !0), P.remove(M);
1874
+ } catch {
1875
+ P.disabled = !0;
1876
+ }
1877
+ function ze(e, t) {
1878
+ return P.get(e, t);
1879
+ }
1880
+ const ys = { APP_NAME: "ui-process-h5", APP_VERSION: "0.1.24", APP_BUILD_TIME: "2023-04-23 11:33:30" }.VUE_APP_BASE_URL;
1881
+ pt.defaults.headers["Content-Type"] = "application/json;charset=utf-8";
1882
+ const bs = {
1883
+ baseURL: ys,
1884
+ timeout: 999999999,
1885
+ errorTip: !0,
1886
+ transformResponse: [
1887
+ function(e, t) {
1888
+ if (typeof e == "string")
1889
+ try {
1890
+ e = JSON.parse(e);
1891
+ } catch {
1892
+ }
1893
+ return e;
1894
+ }
1895
+ ]
1896
+ }, Ne = pt.create(bs);
1897
+ Ne.interceptors.request.use((e) => {
1898
+ const t = (e.headers || {}).isToken === !1;
1899
+ return ze("token", "") && !t && (e.headers.Authorization = "Bearer " + ze("token", "")), e;
1900
+ });
1901
+ Ne.interceptors.response.use((e) => {
1902
+ if (Object.prototype.toString.call(e.data) === "[object Blob]")
1903
+ return e;
1904
+ const { data: t, config: n } = e, { code: s, success: r } = t;
1905
+ return e.data.msg, t.fail = s !== 200 && r !== !0, s === 401 ? (console.log("登录状态已过期"), t) : (s !== 200 && console.log("错误"), t);
1906
+ });
1907
+ const gs = "/prod-api/aws";
1908
+ function _s(e) {
1909
+ return Ne({
1910
+ url: gs + "/pis/getProcessStatus",
1911
+ method: "get",
1912
+ params: e
1913
+ });
1914
+ }
1915
+ const Es = re({
1916
+ name: "TopProcess",
1917
+ components: {
1918
+ TopTab: H,
1919
+ TopPopup: q,
1920
+ TopButton: X
1921
+ },
1922
+ props: {
1923
+ tapList: { require: !1, default: () => [], type: Array },
1924
+ processId: { require: !0, default: "", type: String },
1925
+ processDefId: { require: !0, default: "", type: String },
1926
+ taskId: { require: !0, default: "", type: String },
1927
+ isAdditional: { require: !1, default: !1, type: Boolean },
1928
+ isView: { default: !1, type: Boolean }
1929
+ },
1930
+ setup(e) {
1931
+ const t = A({}), n = A(), s = A([
1932
+ {
1933
+ taskId: "ecd82a93-4a62-42a7-b7bd-df38d2f1609a",
1934
+ taskState: 1,
1935
+ nodeId: "obj_026aac284c1a4303854f978b674be4b9",
1936
+ customUniqueId: "",
1937
+ nodeName: "部门负责人"
1938
+ }
1939
+ ]), r = A({
1940
+ id: "obj_026aac284c1a4303854f978b674be4b9",
1941
+ name: "部门负责人",
1942
+ no: "1",
1943
+ buttons: [],
1944
+ ccTaskButtonLabel: "",
1945
+ ccTaskButtonAnnex: null,
1946
+ completeButtonLabel: "同意",
1947
+ completeButtonAnnex: null,
1948
+ delegateTaskButtonLabel: "转办",
1949
+ delegateTaskButtonAnnex: null,
1950
+ printFormButtonLabel: "",
1951
+ supplyUnusualTransferButtonLabel: "",
1952
+ readingOfficeLabel: "",
1953
+ readingOfficeButtonAnnex: null,
1954
+ jointlySignLabel: "",
1955
+ jointlySignButtonAnnex: null,
1956
+ counterSignLabel: "加签",
1957
+ counterSignButtonAnnex: null,
1958
+ coordinationLabel: "",
1959
+ coordinationButtonAnnex: null,
1960
+ otherButtonAnnexList: null,
1961
+ humanPerformer: {
1962
+ id: "obj_2bd3494ae5c54309b7f2ea452921790b",
1963
+ name: "任意指定",
1964
+ resourceAssignmentExpressionModel: {
1965
+ formalExpression: ""
1966
+ }
1967
+ },
1968
+ commentModels: [
1969
+ {
1970
+ actionName: "提交",
1971
+ isDefault: !0
1972
+ },
1973
+ {
1974
+ actionName: "作废",
1975
+ isDefault: !1
1976
+ }
1977
+ ],
1978
+ routeTxt: {
1979
+ departmentIds: null,
1980
+ companyIds: null,
1981
+ teamList: null,
1982
+ routeType: "DynamicUsers"
1983
+ },
1984
+ loopCardinality: 1,
1985
+ isHistoryRoute: !1,
1986
+ participantList: null,
1987
+ historyRoute: !1
1988
+ });
1989
+ ge(
1990
+ () => e.processId,
1991
+ (f, b) => {
1992
+ f && (t.value = {
1993
+ status: "审批中",
1994
+ createUid: "18ccbf63229f0c79f39940ae284c111e",
1995
+ createTopUserId: "128ec9c9b7f26135272596fe01c57690",
1996
+ createTime: "2023-04-20 15:01:48",
1997
+ currUserName: "朱鸿飞",
1998
+ allUserNames: ["朱鸿飞"],
1999
+ userNodeGroup: {
2000
+ 分管领导: ["朱鸿飞"]
2001
+ },
2002
+ appId: "com.awspaas.user.apps.top.study.project",
2003
+ statusCode: "1",
2004
+ statusName: "审批中",
2005
+ bizStatusName: "审批中",
2006
+ taskState: 1
2007
+ });
2008
+ },
2009
+ {
2010
+ //如果加了这个参数,值为true的话,就消除了惰性,watch会在创建后立即执行一次
2011
+ //那么首次执行,val为默认值,preVal为undefined
2012
+ immediate: !0,
2013
+ //这个参数代表监听对象时,可以监听深度嵌套的对象属性
2014
+ deep: !0
2015
+ }
2016
+ ), _s({
2017
+ processInstId: "4ac28800-7056-483b-8d38-a4932daf055b"
2018
+ }).then((f) => {
2019
+ console.log("res", f);
2020
+ }), console.log("asd", s.value[0].taskState);
2021
+ const i = de(() => {
2022
+ var g, h;
2023
+ let f = [], b = s.value && s.value[0] && s.value[0].taskState != 4;
2024
+ if (b && !e.isView && r.value.completeButtonLabel) {
2025
+ let p = {};
2026
+ p.name = r.value.completeButtonLabel, p.btnProps = { type: "primary" }, f.push(p);
2027
+ }
2028
+ if (b && !e.isView && t.value.currUserName) {
2029
+ let p = {};
2030
+ p.name = "拒绝", p.btnProps = { type: "danger" }, f.push(p);
2031
+ }
2032
+ if (b && !e.isView && r.value.buttons && r.value.buttons.length && r.value.buttons.forEach((p) => {
2033
+ if (p.label === "退回") {
2034
+ let T = {};
2035
+ T.name = p.label, T.btnProps = { type: "danger" }, f.push(T);
2036
+ }
2037
+ }), b && !e.isView && r.value.delegateTaskButtonLabel) {
2038
+ let p = {};
2039
+ p.name = r.value.delegateTaskButtonLabel, p.btnProps = { type: "default" }, f.push(p);
2040
+ }
2041
+ if (e.processId && t.value.createTopUserId == e.userId && ((g = s.value[0]) == null ? void 0 : g.taskState) != 2 && t.value.status !== "已驳回" && t.value.status !== "已撤销") {
2042
+ let p = {};
2043
+ p.name = "催办", p.btnProps = { type: "default" }, f.push(p);
2044
+ }
2045
+ if (e.processId && t.value.createTopUserId == e.userId && ((h = s.value[0]) == null ? void 0 : h.taskState) != 2 && t.value.status !== "已驳回" && t.value.status !== "已撤销") {
2046
+ let p = {};
2047
+ p.name = "撤销", p.btnProps = { type: "default" }, f.push(p);
2048
+ }
2049
+ if (b && !e.isView && r.value.counterSignLabel) {
2050
+ let p = {};
2051
+ p.name = r.value.counterSignLabel, p.btnProps = { type: "primary" }, f.push(p);
2052
+ }
2053
+ return f;
2054
+ }), o = de(() => i.value.length > 3 ? i.value.slice(3) : []), u = () => {
2055
+ console.log("handleCancel");
2056
+ }, d = () => {
2057
+ console.log("handleComfig", "确定按钮"), n.value.handleClose();
2058
+ }, l = de(() => "calc(100vh - 205px)");
2059
+ return {
2060
+ processStatus: t,
2061
+ processCardHeight: l,
2062
+ handleTest: () => {
2063
+ n.value.handleOpen();
2064
+ },
2065
+ TopPopup1: n,
2066
+ handleCancel: u,
2067
+ handleComfig: d,
2068
+ operBtn: i,
2069
+ actionBtn: o
2070
+ };
2071
+ },
2072
+ methods: {
2073
+ getColor(e) {
2074
+ return e == "审核中" ? "#FFA52D" : e == "已驳回" ? "#F14B4C" : e == "已撤销" ? "#CECECE" : e == "已完成" ? "#6DC743" : "#1389FF";
2075
+ }
2076
+ }
2077
+ });
2078
+ const $ = (e) => (Je("data-v-c2ed7f04"), e = e(), We(), e), Ss = { class: "process-warp" }, ws = {
2079
+ key: 0,
2080
+ class: "process-main"
2081
+ }, Ts = { class: "process-ml-item border" }, As = /* @__PURE__ */ $(() => /* @__PURE__ */ m("div", { class: "process-mli-name" }, "流程状态", -1)), vs = { class: "process-mli-value" }, Cs = { class: "process-ml-item border" }, Os = /* @__PURE__ */ $(() => /* @__PURE__ */ m("div", { class: "process-mli-name" }, "流程发起时间", -1)), Rs = { class: "process-mli-value" }, ks = {
2082
+ key: 0,
2083
+ class: "process-ml-item"
2084
+ }, Ns = /* @__PURE__ */ $(() => /* @__PURE__ */ m("div", { class: "process-mli-name" }, "审批节点", -1)), Bs = { class: "process-mli-value" }, Ps = { class: "process-mliv-jd" }, Ls = {
2085
+ key: 1,
2086
+ class: "process-foot"
2087
+ }, xs = { class: "footBtnRow" }, Fs = { class: "process-btn" }, Us = {
2088
+ key: 1,
2089
+ class: "elips"
2090
+ }, Ds = /* @__PURE__ */ $(() => /* @__PURE__ */ m("div", { class: "circle" }, null, -1)), Is = /* @__PURE__ */ $(() => /* @__PURE__ */ m("div", { class: "circle" }, null, -1)), $s = /* @__PURE__ */ $(() => /* @__PURE__ */ m("div", { class: "circle" }, null, -1)), js = [
2091
+ Ds,
2092
+ Is,
2093
+ $s
2094
+ ];
2095
+ function Ms(e, t, n, s, r, i) {
2096
+ const o = fe("TopTab"), u = fe("TopButton"), d = fe("TopPopup");
2097
+ return _(), E(x, null, [
2098
+ m("div", Ss, [
2099
+ e.processStatus.status ? (_(), E("div", ws, [
2100
+ m("div", Ts, [
2101
+ As,
2102
+ m("div", vs, [
2103
+ e.processStatus.status || e.processStatus.bizStatusName ? (_(), E("div", {
2104
+ key: 0,
2105
+ class: "process-mliv-dd",
2106
+ style: ne({ background: e.getColor(e.processStatus.status) })
2107
+ }, v(e.processStatus.bizStatusName ? e.processStatus.bizStatusName : e.processStatus.status), 5)) : w("", !0)
2108
+ ])
2109
+ ]),
2110
+ m("div", Cs, [
2111
+ Os,
2112
+ m("div", Rs, [
2113
+ m("span", null, v(e.processStatus.createTime), 1)
2114
+ ])
2115
+ ]),
2116
+ e.processStatus.allUserNames && e.processStatus.allUserNames.length ? (_(), E("div", ks, [
2117
+ Ns,
2118
+ m("div", Bs, [
2119
+ m("span", Ps, v(`${e.processStatus.taskState == 4 ? e.processStatus.currUserName : e.processStatus.allUserNames.toString()}审批中`), 1)
2120
+ ])
2121
+ ])) : w("", !0)
2122
+ ])) : w("", !0),
2123
+ m("div", {
2124
+ class: "process-card",
2125
+ style: ne({ height: e.processCardHeight })
2126
+ }, [
2127
+ Be(o, { tapList: e.tapList }, {
2128
+ default: pe(() => [
2129
+ L(e.$slots, "default", {}, void 0, !0)
2130
+ ]),
2131
+ _: 3
2132
+ }, 8, ["tapList"])
2133
+ ], 4),
2134
+ e.isAdditional ? (_(), E("div", Ls, [
2135
+ m("div", xs, [
2136
+ L(e.$slots, "btn", {}, void 0, !0)
2137
+ ])
2138
+ ])) : w("", !0),
2139
+ m("div", Fs, [
2140
+ e.processStatus.status != "已完成" ? (_(!0), E(x, { key: 0 }, G(e.operBtn, (l, c) => (_(), E(x, {
2141
+ key: l.name
2142
+ }, [
2143
+ c < 3 ? (_(), Et(u, {
2144
+ key: 0,
2145
+ onClick: e.handleTest,
2146
+ type: l.btnProps.type.toString()
2147
+ }, {
2148
+ default: pe(() => [
2149
+ Pe(v(l.name), 1)
2150
+ ]),
2151
+ _: 2
2152
+ }, 1032, ["onClick", "type"])) : w("", !0)
2153
+ ], 64))), 128)) : w("", !0),
2154
+ e.operBtn.length > 3 ? (_(), E("div", Us, js)) : w("", !0)
2155
+ ])
2156
+ ]),
2157
+ Be(d, {
2158
+ ref: "TopPopup1",
2159
+ cancel: e.handleCancel,
2160
+ comfig: e.handleComfig
2161
+ }, {
2162
+ default: pe(() => [
2163
+ Pe(" csaasd1 ")
2164
+ ]),
2165
+ _: 1
2166
+ }, 8, ["cancel", "comfig"])
2167
+ ], 64);
2168
+ }
2169
+ const te = /* @__PURE__ */ oe(Es, [["render", Ms], ["__scopeId", "data-v-c2ed7f04"]]);
2170
+ te.install = function(e) {
2171
+ return e.component(te.name, te), e;
2172
+ };
2173
+ const qs = [H, te], Hs = function(e) {
2174
+ qs.forEach((t) => {
2175
+ e.use(t);
2176
+ });
2177
+ }, Vs = {
2178
+ install: Hs
2179
+ };
2180
+ export {
2181
+ te as TopProcess,
2182
+ H as TopTab,
2183
+ Vs as default
2184
+ };