ss-component-new 1.1.65 → 1.1.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3227 +0,0 @@
1
- import { ref as B, onMounted as _n, watch as be, createElementBlock as ye, openBlock as fe, createBlock as Dn, createVNode as ee, createSlots as Fn, withCtx as pe, Fragment as Nn, renderList as Pn, createElementVNode as H, normalizeStyle as Un, toDisplayString as te, createCommentVNode as Bn, resolveComponent as Kt, createTextVNode as Ne } from "vue";
2
- import { s as Re, a as jn, b as Ie, f as $n, E as _e } from "./index-CCr_UQBn.js";
3
- import { g as Ln, c as qn, d as It, s as He, u as Jn } from "./menu-oGClEGzK.js";
4
- import { c as S, _ as Ge } from "./_plugin-vue_export-helper-B7R8Jogt.js";
5
- import { _ as Mn } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
6
- import { u as zn } from "./modelComp-CqA1NVfH.js";
7
- const Nt = (e, t) => {
8
- const n = e.storage || sessionStorage, r = e.key || t.$id;
9
- if (e.paths) {
10
- const o = e.paths.reduce((s, a) => (s[a] = t.$state[a], s), {});
11
- n.setItem(r, JSON.stringify(o));
12
- } else
13
- n.setItem(r, JSON.stringify(t.$state));
14
- };
15
- var Hn = ({ options: e, store: t }) => {
16
- var n, r, o, s;
17
- if ((n = e.persist) != null && n.enabled) {
18
- const a = [{
19
- key: t.$id,
20
- storage: sessionStorage
21
- }], i = (o = (r = e.persist) == null ? void 0 : r.strategies) != null && o.length ? (s = e.persist) == null ? void 0 : s.strategies : a;
22
- i.forEach((b) => {
23
- const f = b.storage || sessionStorage, m = b.key || t.$id, u = f.getItem(m);
24
- u && (t.$patch(JSON.parse(u)), Nt(b, t));
25
- }), t.$subscribe(() => {
26
- i.forEach((b) => {
27
- Nt(b, t);
28
- });
29
- });
30
- }
31
- };
32
- const Oe = Ln() || qn();
33
- Oe.use(Hn);
34
- const Gt = It("formToTableComp", {
35
- state: () => ({
36
- selectArray: [],
37
- selectString: ""
38
- }),
39
- actions: {
40
- setSelectArray(e) {
41
- this.selectArray = e;
42
- },
43
- setSelectString(e) {
44
- this.selectString = e;
45
- }
46
- }
47
- }), Vn = It("unit", {
48
- state: () => ({
49
- selectIndex: "",
50
- selectMenu: "",
51
- selectTitle: []
52
- }),
53
- actions: {
54
- setSelectIndex(e) {
55
- this.selectIndex = e;
56
- },
57
- setSelectMenu(e) {
58
- this.selectMenu = e;
59
- },
60
- setSelectTitle(e) {
61
- this.selectTitle = e;
62
- }
63
- }
64
- }), Wn = (e, t) => {
65
- const n = t == null ? void 0 : t.split("-");
66
- return Xt(e, n);
67
- }, Xt = (e, t) => {
68
- var o;
69
- let n = e, r = t;
70
- return Array.isArray(n) ? n = n == null ? void 0 : n[parseInt(S(r == null ? void 0 : r[0]))] : Array.isArray(n == null ? void 0 : n.children) && (n = (o = n == null ? void 0 : n.children) == null ? void 0 : o[parseInt(S(r == null ? void 0 : r[0]))]), r == null || r.shift(), (r == null ? void 0 : r.length) > 0 && (n = Xt(n, r)), n;
71
- }, Zt = (e, t) => {
72
- let n = e, r = t == null ? void 0 : t.filter((o) => (o == null ? void 0 : o.prop) !== "index");
73
- return Array.isArray(n) && (n = n == null ? void 0 : n.map((o, s) => {
74
- if (Array.isArray(o)) {
75
- let a = {};
76
- return o = o == null ? void 0 : o.forEach((i, b) => {
77
- var f;
78
- (f = r == null ? void 0 : r[b]) != null && f.prop ? a[r[b].prop] = i : Array.isArray(i) && (a.children = Zt(i, r));
79
- }), Object.assign(a, { id: s });
80
- } else
81
- return o;
82
- })), n;
83
- }, Kn = (e, t, n) => {
84
- if (t === "")
85
- return e == null ? void 0 : e.filter((r) => (r == null ? void 0 : r.id) === n);
86
- {
87
- const r = t.split("-");
88
- return In(e, r, n);
89
- }
90
- }, In = (e, t, n) => {
91
- let r = e, o = t;
92
- return (o == null ? void 0 : o.length) === 0 ? r = r == null ? void 0 : r.filter((s) => s.id !== n) : r = r == null ? void 0 : r.map((s) => (s.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), s = Qt(s, o, n)), s)), r;
93
- }, Qt = (e, t, n) => {
94
- var s, a;
95
- let r = e, o = t;
96
- return (o == null ? void 0 : o.length) === 0 ? r.children = (s = r.children) == null ? void 0 : s.filter((i) => i.id !== n) : r.children = (a = r.children) == null ? void 0 : a.map((i) => (i.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), i = Qt(i, o, n)), i)), r;
97
- }, Gn = (e, t, n) => {
98
- if (t === "")
99
- return n;
100
- {
101
- const r = t.split("-");
102
- return Xn(e, r, n);
103
- }
104
- }, Xn = (e, t, n) => {
105
- let r = e, o = t;
106
- return (o == null ? void 0 : o.length) === 0 ? r = n : r = r == null ? void 0 : r.map((s) => (s.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), s = Yt(s, o, n)), s)), r;
107
- }, Yt = (e, t, n) => {
108
- var s;
109
- let r = e, o = t;
110
- return (o == null ? void 0 : o.length) === 0 ? r.children = n : r.children = (s = r.children) == null ? void 0 : s.map((a) => (a.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), a = Yt(a, o, n)), a)), r;
111
- }, Zn = { class: "table-content" }, Qn = ["onClick"], Yn = {
112
- key: 0,
113
- class: "dialog-footer"
114
- }, er = {
115
- __name: "index",
116
- props: {
117
- itemData: {
118
- type: Array,
119
- default: () => []
120
- },
121
- childItemData: {
122
- type: Array,
123
- default: () => []
124
- },
125
- index: Number
126
- },
127
- emits: ["change", "contentChange"],
128
- setup(e, { emit: t }) {
129
- const n = e, r = t, o = B([]), s = B([]), a = B(""), i = B(), b = B(!0), f = B(0), m = B(!1), u = B(""), C = B(!1), O = B([]), g = B(!1), x = B([]), p = B([]), d = B(), l = B(), R = Gt(Oe), y = B(), h = Vn(Oe), { selectIndex: E, selectMenu: v, selectTitle: D } = He(h), { selectString: N } = He(R), w = B(720), I = () => {
130
- C.value = !1;
131
- }, F = (T) => {
132
- var j, $, _, L, K;
133
- if (J(T), T != null && T.children && Array.isArray(T == null ? void 0 : T.children)) {
134
- const q = D.value;
135
- q.push({ key: v.value === "" ? (j = T == null ? void 0 : T.id) == null ? void 0 : j.toString() : v.value + "-" + (($ = T == null ? void 0 : T.id) == null ? void 0 : $.toString()), value: T[(_ = Object.keys(T)) == null ? void 0 : _.filter((W) => W !== "index" && W !== "id")[0]] }), h.setSelectMenu(v.value === "" ? (L = T == null ? void 0 : T.id) == null ? void 0 : L.toString() : v.value + "-" + ((K = T == null ? void 0 : T.id) == null ? void 0 : K.toString())), h.setSelectTitle(q), h.setSelectIndex(n != null && n.index ? n == null ? void 0 : n.index.toString() : "");
136
- }
137
- }, J = (T) => {
138
- var j, $, _;
139
- if (T != null && T.children && Array.isArray(T == null ? void 0 : T.children)) {
140
- let L = [];
141
- const K = (j = S(d.value)) == null ? void 0 : j.filter((q) => (q == null ? void 0 : q.prop) !== "index");
142
- ($ = T == null ? void 0 : T.children) == null || $.forEach((q, W) => {
143
- if (!Array.isArray(q))
144
- L.push(q);
145
- else {
146
- let oe = {};
147
- q == null || q.forEach((se, Ae) => {
148
- var Ce;
149
- (Ce = K == null ? void 0 : K[Ae]) != null && Ce.prop ? oe[K[Ae].prop] = se : Array.isArray(se) && (oe.children = se);
150
- }), L.push(Object.assign(oe, { id: W }));
151
- }
152
- }), o.value = (_ = S(o.value)) == null ? void 0 : _.filter((q) => (q == null ? void 0 : q.prop) !== "index"), s.value = L;
153
- }
154
- }, M = (T, j) => {
155
- var $;
156
- if (a.value = "", g.value = !0, b.value = !0, T === "删除") {
157
- s.value = ($ = S(s.value)) == null ? void 0 : $.filter((L) => (L == null ? void 0 : L.id) !== (j == null ? void 0 : j.id));
158
- const _ = Kn(y.value, v.value, j == null ? void 0 : j.id);
159
- k(_), r("change", {
160
- content: _,
161
- index: n == null ? void 0 : n.index,
162
- buttonName: T
163
- });
164
- } else T === "新增" ? (u.value = "新增", z(""), C.value = !0) : T === "编辑" ? (u.value = "编辑", z(j), C.value = !0) : T === "详情" && (u.value = "详情", z(j), g.value = !1, b.value = !1, C.value = !0);
165
- }, z = (T) => {
166
- var $;
167
- const j = [];
168
- ($ = S(o.value)) == null || $.forEach((_, L) => {
169
- _.label !== "" && (_ == null ? void 0 : _.label) !== "操作" && j.push({
170
- label: (_ == null ? void 0 : _.label) ?? "",
171
- name: (_ == null ? void 0 : _.prop) ?? "t" + L,
172
- type: !(_ != null && _.type) || (_ == null ? void 0 : _.type) === "" ? "Input" : _ == null ? void 0 : _.type,
173
- value: (T == null ? void 0 : T[_ == null ? void 0 : _.prop]) ?? "",
174
- id: (_ == null ? void 0 : _.id) ?? L,
175
- contents: (_ == null ? void 0 : _.options) ?? [],
176
- width: 1
177
- });
178
- }), T === "" || !T || (a.value = T == null ? void 0 : T.id), p.value = j;
179
- };
180
- _n(() => {
181
- });
182
- const V = () => {
183
- let T = S(s.value);
184
- a.value === "" ? (f.value++, T.push(Object.assign(l.value, { id: f.value }))) : T = T == null ? void 0 : T.map(($) => (($ == null ? void 0 : $.id) === a.value && ($ = Object.assign($, l.value)), $)), s.value = T;
185
- const j = Gn(y.value, v.value, T);
186
- k(j), C.value = !1, r("change", {
187
- content: j,
188
- index: n == null ? void 0 : n.index,
189
- buttonName: u.value
190
- });
191
- }, k = (T) => {
192
- var $;
193
- const j = ($ = S(n.itemData)) == null ? void 0 : $.map((_) => ((_ == null ? void 0 : _.key) === "tableContents" && (_.contents = T), _));
194
- r("contentChange", {
195
- contents: j,
196
- index: n.index
197
- });
198
- }, X = (T) => {
199
- l.value = T;
200
- };
201
- return be(
202
- () => [n.itemData, N.value, E.value, v.value],
203
- () => {
204
- var oe, se, Ae, Ce, kt, Et, vt, St, Rt, Ot, wt, Tt, At, Ct, xt, _t, Dt, Ft;
205
- const T = (oe = S(n.itemData)) == null ? void 0 : oe.filter((P) => (P == null ? void 0 : P.key) === "header"), j = (se = S(n.itemData)) == null ? void 0 : se.find((P) => (P == null ? void 0 : P.key) === "page"), $ = (Ae = S(n.itemData)) == null ? void 0 : Ae.find((P) => (P == null ? void 0 : P.key) === "rowButton"), _ = (Ce = S(n.itemData)) == null ? void 0 : Ce.find((P) => (P == null ? void 0 : P.key) === "extraButton"), L = (kt = S(n.itemData)) == null ? void 0 : kt.filter((P) => (P == null ? void 0 : P.key) === "tableContents"), K = (Et = S(n.itemData)) == null ? void 0 : Et.filter((P) => (P == null ? void 0 : P.key) === "tableIndex");
206
- m.value = (j == null ? void 0 : j.contents) ?? !0;
207
- let q = [];
208
- N.value === "" ? q = T == null ? void 0 : T[0] : q = (T == null ? void 0 : T.find((P) => (P == null ? void 0 : P.selectLabel) === "(" + N.value + ")")) ?? (T == null ? void 0 : T.find((P) => !(P != null && P.selectLabel)));
209
- let W = [];
210
- if (N.value === "" ? W = K == null ? void 0 : K[0] : W = (K == null ? void 0 : K.find((P) => (P == null ? void 0 : P.selectLabel) === "(" + N.value + ")")) ?? (K == null ? void 0 : K.find((P) => !(P != null && P.selectLabel))), ((vt = q == null ? void 0 : q.contents) == null ? void 0 : vt.length) > 0) {
211
- const P = [];
212
- W != null && W.contents && ((St = W == null ? void 0 : W.contents) == null ? void 0 : St.length) !== 0 && P.push({
213
- label: "",
214
- prop: "index",
215
- sortable: !1
216
- }), (Rt = q == null ? void 0 : q.contents) == null || Rt.forEach((A, le) => {
217
- (A == null ? void 0 : A.label) !== "" && P.push({
218
- label: (A == null ? void 0 : A.label) ?? "",
219
- prop: (A == null ? void 0 : A.label) === "操作" ? "operate" : (A == null ? void 0 : A.prop) ?? "a" + le,
220
- width: A != null && A.width ? parseInt(A.width) : "",
221
- fixed: (A == null ? void 0 : A.fixed) ?? void 0,
222
- sortable: (A == null ? void 0 : A.sortable) ?? !1,
223
- align: (A == null ? void 0 : A.align) ?? "center",
224
- showOverflowTooltip: (A == null ? void 0 : A.showOverflowTooltip) ?? !0,
225
- isNotDrag: (A == null ? void 0 : A.isNotDrag) ?? !1,
226
- isEditCol: (A == null ? void 0 : A.isEditCol) ?? !1,
227
- isOperate: (A == null ? void 0 : A.isOperate) ?? !1,
228
- id: (A == null ? void 0 : A.id) ?? le,
229
- type: (A == null ? void 0 : A.label) === "操作" ? "operate" : void 0
230
- });
231
- }), o.value = P;
232
- let de = (wt = (Ot = S(o.value)) == null ? void 0 : Ot.filter((A) => (A == null ? void 0 : A.type) !== "operate")) == null ? void 0 : wt.map((A, le) => ({
233
- prop: (A == null ? void 0 : A.prop) ?? "a" + le
234
- }));
235
- d.value = de;
236
- let ue = [];
237
- if (N.value === "" ? ue = L == null ? void 0 : L[0] : ue = (L == null ? void 0 : L.find((A) => (A == null ? void 0 : A.selectLabel) === "(" + N.value + ")")) ?? (L == null ? void 0 : L.find((A) => !(A != null && A.selectLabel))), ((Tt = ue == null ? void 0 : ue.contents) == null ? void 0 : Tt.length) !== 0) {
238
- let A = S(ue == null ? void 0 : ue.contents);
239
- W != null && W.contents && ((At = W == null ? void 0 : W.contents) == null ? void 0 : At.length) !== 0 && (A = (Ct = S(A)) == null ? void 0 : Ct.map((ae, rt) => {
240
- var ve, Se;
241
- if (!Array.isArray(ae)) {
242
- let xe = {};
243
- for (let he in ae)
244
- he !== "id" && he !== "index" && (xe[he] = ae[he]);
245
- ae = Object.values(xe);
246
- }
247
- return ae.unshift(((Se = (ve = W == null ? void 0 : W.contents) == null ? void 0 : ve[rt]) == null ? void 0 : Se.label) ?? ""), ae;
248
- }));
249
- const le = [];
250
- A == null || A.forEach((ae, rt) => {
251
- let ve = {};
252
- ae == null || ae.forEach((Se, xe) => {
253
- var he;
254
- (he = de == null ? void 0 : de[xe]) != null && he.prop ? ve[de[xe].prop] = Se : Array.isArray(Se) && (ve.children = Zt(Se, de));
255
- }), le.push(Object.assign(ve, { id: rt }));
256
- }), s.value = le;
257
- } else {
258
- let A = (xt = S(de)) == null ? void 0 : xt.reduce((le, ae) => (le[ae.prop] = "测试数据", le), {});
259
- i.value = A, s.value = [Object.assign({}, i.value, { id: f.value })];
260
- }
261
- } else
262
- o.value = [], s.value = [];
263
- if (((_t = $ == null ? void 0 : $.contents) == null ? void 0 : _t.length) > 0 ? O.value = $ == null ? void 0 : $.contents : O.value = [], ((Dt = _ == null ? void 0 : _.contents) == null ? void 0 : Dt.length) > 0 ? x.value = _ == null ? void 0 : _.contents : x.value = [], f.value = ((Ft = s == null ? void 0 : s.value) == null ? void 0 : Ft.length) ?? 0, E.value !== "") {
264
- const P = Wn(S(s.value), v.value);
265
- y.value = s.value, J(P);
266
- }
267
- },
268
- { deep: !0, immediate: !0 }
269
- ), (T, j) => {
270
- var $;
271
- return fe(), ye("div", Zn, [
272
- (fe(), Dn(Re, {
273
- columns: o.value,
274
- key: o.value,
275
- tableData: s.value,
276
- isShowPagination: m.value,
277
- isShowEdit: !1,
278
- isShowDelete: !1,
279
- onDbClickRow: F,
280
- extraButton: x.value,
281
- onButtonClick: j[0] || (j[0] = (_) => M(_, ""))
282
- }, Fn({ _: 2 }, [
283
- (($ = O.value) == null ? void 0 : $.length) > 0 ? {
284
- name: "actions",
285
- fn: pe(({ item: _ }) => [
286
- (fe(!0), ye(Nn, null, Pn(O.value, (L, K) => (fe(), ye("div", { key: K }, [
287
- H("div", {
288
- style: Un({ color: L == null ? void 0 : L.textColor }),
289
- class: "extra-button-label",
290
- onClick: (q) => M(L == null ? void 0 : L.label, _)
291
- }, te(L == null ? void 0 : L.label), 13, Qn)
292
- ]))), 128))
293
- ]),
294
- key: "0"
295
- } : void 0
296
- ]), 1032, ["columns", "tableData", "isShowPagination", "extraButton"])),
297
- ee(jn, {
298
- title: u.value,
299
- visible: C.value,
300
- width: w.value,
301
- onBeforeDestroy: I
302
- }, {
303
- default: pe(() => [
304
- ee(Ie, {
305
- rowContents: p.value,
306
- isEnableWrap: !1,
307
- onChange: X,
308
- isEdit: b.value
309
- }, null, 8, ["rowContents", "isEdit"])
310
- ]),
311
- footer: pe(() => [
312
- g.value ? (fe(), ye("div", Yn, [
313
- H("div", {
314
- onClick: j[1] || (j[1] = (_) => C.value = !1),
315
- class: "cancel-button"
316
- }, te("取消")),
317
- H("div", {
318
- class: "ok-button",
319
- onClick: V
320
- }, te("确认"))
321
- ])) : Bn("", !0)
322
- ]),
323
- _: 1
324
- }, 8, ["title", "visible", "width"])
325
- ]);
326
- };
327
- }
328
- }, tr = /* @__PURE__ */ Ge(er, [["__scopeId", "data-v-781eace3"]]), je = [
329
- {
330
- key: "单选",
331
- value: "Select"
332
- },
333
- {
334
- key: "日期",
335
- value: "Date"
336
- },
337
- {
338
- key: "长文本",
339
- value: "TextArea"
340
- },
341
- {
342
- key: "上传",
343
- value: "Upload"
344
- }
345
- ], nr = { class: "form-content" }, rr = {
346
- __name: "index",
347
- props: {
348
- itemData: {
349
- type: Array,
350
- default: () => []
351
- },
352
- childItemData: {
353
- type: Array,
354
- default: () => []
355
- },
356
- index: Number
357
- },
358
- emits: ["change", "contentChange"],
359
- setup(e, { emit: t }) {
360
- const n = e, r = t, o = B([]), s = B(!1), a = B([]), i = Gt(Oe), b = B(), f = (u) => {
361
- var p, d, l, R;
362
- const C = (d = (p = S(n.itemData)) == null ? void 0 : p.find((y) => (y == null ? void 0 : y.key) === "formContent")) == null ? void 0 : d.contents, O = S(u.content);
363
- let g = {};
364
- O && ((l = Object.values(O)) == null ? void 0 : l.length) > 0 && ((R = Object.values(O)) == null || R.forEach((y, h) => {
365
- g[C[h].key] = y;
366
- }));
367
- const x = {
368
- content: g,
369
- index: n == null ? void 0 : n.index,
370
- buttonName: u == null ? void 0 : u.buttonName
371
- };
372
- r("change", x);
373
- }, m = (u) => {
374
- var g, x;
375
- if (!u) return;
376
- if (((g = Object.values(S(u))) == null ? void 0 : g.length) > 0) {
377
- const p = (x = Object.values(S(u))) == null ? void 0 : x.map((l) => l);
378
- let d = "";
379
- p == null || p.forEach((l) => {
380
- l !== "" && l !== void 0 && (d = d === "" ? l : d + "/" + l);
381
- }), i.setSelectArray(p), i.setSelectString(d);
382
- }
383
- const C = S(n.itemData), O = C == null ? void 0 : C.map((p) => {
384
- var d;
385
- return (p == null ? void 0 : p.key) === "formContent" && ((d = p.contents) == null || d.map((l, R) => {
386
- var y, h, E, v, D, N, w, I, F, J, M, z, V, k;
387
- return l.type = l != null && l.type ? l.type : (E = (h = (y = l == null ? void 0 : l.key.split("$")) == null ? void 0 : y[1]) == null ? void 0 : h.split("(")) != null && E[0] ? (v = je == null ? void 0 : je.find((X) => {
388
- var T, j, $;
389
- return (X == null ? void 0 : X.key) === (($ = (j = (T = l == null ? void 0 : l.key.split("$")) == null ? void 0 : T[1]) == null ? void 0 : j.split("(")) == null ? void 0 : $[0]);
390
- })) == null ? void 0 : v.value : "Input", l.options = l != null && l.options ? l.options : ((N = (D = l == null ? void 0 : l.key.split("$")) == null ? void 0 : D[1]) == null ? void 0 : N.length) > 0 ? (F = (I = $n((w = l == null ? void 0 : l.key.split("$")) == null ? void 0 : w[1])) == null ? void 0 : I.split(",")) == null ? void 0 : F.map((X) => ({
391
- label: X,
392
- value: X
393
- })) : [], l != null && l.key.includes("$") && (l.key = (J = l == null ? void 0 : l.key.split("$")) == null ? void 0 : J[0]), l.value = l != null && l.value ? l.value : Array.isArray((M = Object.values(u)) == null ? void 0 : M[R]) ? (V = (z = Object.values(u)) == null ? void 0 : z[R]) == null ? void 0 : V[0] : (k = Object.values(u)) == null ? void 0 : k[R], l;
394
- })), p;
395
- });
396
- r("contentChange", {
397
- contents: O,
398
- index: n.index
399
- });
400
- };
401
- return be(
402
- () => n.itemData,
403
- () => {
404
- var x, p, d, l, R, y, h, E, v, D;
405
- const u = (x = S(n.itemData)) == null ? void 0 : x.find((N) => (N == null ? void 0 : N.key) === "formContent"), C = (p = S(n.itemData)) == null ? void 0 : p.find((N) => (N == null ? void 0 : N.key) === "formButton"), O = (d = S(n.itemData)) == null ? void 0 : d.find((N) => (N == null ? void 0 : N.key) === "formFlex"), g = (l = S(n.itemData)) == null ? void 0 : l.find((N) => (N == null ? void 0 : N.key) === "formWrap");
406
- if ((g == null ? void 0 : g.contents) === "纵向" ? s.value = !1 : s.value = !0, b.value = typeof (O == null ? void 0 : O.contents) != "boolean" ? !(!(O != null && O.contents) === "" || ((R = O == null ? void 0 : O.contents) == null ? void 0 : R.toUpperCase()) === "VERTICAL") : O == null ? void 0 : O.contents, ((y = u == null ? void 0 : u.contents) == null ? void 0 : y.length) > 0 && Array.isArray(u == null ? void 0 : u.contents)) {
407
- const N = [];
408
- (h = u == null ? void 0 : u.contents) == null || h.forEach((F, J) => {
409
- var M, z, V, k, X, T, j, $, _;
410
- if ((F == null ? void 0 : F.label) !== "") {
411
- let L = (F == null ? void 0 : F.key) ?? "", K = (F == null ? void 0 : F.type) ?? "", q = (F == null ? void 0 : F.options) ?? [];
412
- if (F != null && F.key.includes("$") && (L = (M = S(F == null ? void 0 : F.key).split("$")) == null ? void 0 : M[0], ((V = (z = S(F == null ? void 0 : F.key).split("$")) == null ? void 0 : z[1]) == null ? void 0 : V.length) > 0)) {
413
- const [W, oe] = (X = (k = S(F == null ? void 0 : F.key).split("$")) == null ? void 0 : k[1]) == null ? void 0 : X.split(/[()]/);
414
- K = ((T = je.find((se) => (se == null ? void 0 : se.key) === W)) == null ? void 0 : T.value) ?? "", ((j = oe == null ? void 0 : oe.split(",")) == null ? void 0 : j.length) > 0 && (q = ($ = oe == null ? void 0 : oe.split(",")) == null ? void 0 : $.map((se) => ({
415
- label: se,
416
- value: se
417
- })));
418
- }
419
- N.push({
420
- label: L ?? "",
421
- name: "t" + J,
422
- type: K === "" ? "Input" : K,
423
- value: F != null && F.value ? F.value : (q == null ? void 0 : q.length) > 0 ? (_ = q == null ? void 0 : q[0]) == null ? void 0 : _.value : (F == null ? void 0 : F.value) ?? "",
424
- id: (F == null ? void 0 : F.id) ?? J,
425
- contents: q ?? [],
426
- width: (F == null ? void 0 : F.width) ?? 1
427
- });
428
- }
429
- });
430
- const w = (E = S(N)) == null ? void 0 : E.map((F) => F.value);
431
- let I = "";
432
- w == null || w.forEach((F) => {
433
- F !== "" && F !== void 0 && (I = I === "" ? F : I + "/" + F);
434
- }), i.setSelectArray(w), i.setSelectString(I), o.value = N;
435
- } else
436
- o.value = [];
437
- if (((v = C == null ? void 0 : C.contents) == null ? void 0 : v.length) > 0) {
438
- const N = [];
439
- (D = C == null ? void 0 : C.contents) == null || D.forEach((w, I) => {
440
- (w == null ? void 0 : w.label) !== "" && N.push({
441
- label: (w == null ? void 0 : w.label) ?? "",
442
- id: (w == null ? void 0 : w.id) ?? I,
443
- type: (w == null ? void 0 : w.type) ?? "",
444
- background: w == null ? void 0 : w.background
445
- });
446
- }), a.value = N;
447
- } else
448
- a.value = [];
449
- },
450
- { deep: !0, immediate: !0 }
451
- ), (u, C) => (fe(), ye("div", nr, [
452
- ee(Ie, {
453
- rowContents: o.value,
454
- buttonValue: a.value,
455
- isRowFlex: b.value,
456
- isEnableWrap: !1,
457
- onOnButtonClick: f,
458
- onChange: m,
459
- isButtonRow: s.value
460
- }, null, 8, ["rowContents", "buttonValue", "isRowFlex", "isButtonRow"])
461
- ]));
462
- }
463
- }, or = /* @__PURE__ */ Ge(rr, [["__scopeId", "data-v-156885e4"]]), sr = { class: "table-operate-content" }, ar = { class: "table-operate-item" }, ir = { class: "operate-title" }, lr = { class: "operate-content" }, cr = { class: "operate-title" }, ur = { class: "operate-content" }, fr = { class: "operate-title" }, pr = { class: "operate-content" }, dr = { class: "operate-content" }, hr = {
464
- __name: "operate",
465
- props: {
466
- itemContents: {
467
- type: Array,
468
- default: () => []
469
- },
470
- originalItemContents: {
471
- type: Array,
472
- default: () => []
473
- }
474
- },
475
- emits: ["change"],
476
- setup(e, { emit: t }) {
477
- const n = e, r = t, o = B([]), s = B([]), a = B([]), i = B([{
478
- label: "按钮名称",
479
- prop: "label",
480
- type: "edit"
481
- }, {
482
- label: "按钮类型",
483
- prop: "type",
484
- type: "edit"
485
- }, {
486
- label: "按钮背景颜色",
487
- prop: "background",
488
- type: "edit",
489
- columnType: "Color"
490
- }, {
491
- label: "操作",
492
- prop: "operate",
493
- type: "operate",
494
- sortable: !1
495
- }]), b = B([{
496
- label: "标签名称",
497
- prop: "label",
498
- type: "edit"
499
- }, {
500
- label: "标签类型",
501
- prop: "type",
502
- type: "edit"
503
- }, {
504
- label: "按钮文字颜色",
505
- prop: "textColor",
506
- type: "edit",
507
- columnType: "Color"
508
- }, {
509
- label: "操作",
510
- prop: "operate",
511
- type: "operate",
512
- sortable: !1
513
- }]), f = B([]), m = B(0), u = B([{
514
- name: "isPagination",
515
- label: "是否显示分页",
516
- type: "Switch",
517
- value: !0
518
- }]), C = [{
519
- label: "标签名",
520
- prop: "label",
521
- type: "edit"
522
- }, {
523
- label: "属性名",
524
- prop: "prop",
525
- type: "edit"
526
- }, {
527
- label: "宽度",
528
- prop: "width",
529
- type: "edit",
530
- columnType: "Number"
531
- }, {
532
- label: "是否固定列",
533
- prop: "fixed",
534
- type: "edit",
535
- columnType: "Radio",
536
- contents: [{
537
- label: "left",
538
- value: "左"
539
- }, {
540
- label: "right",
541
- value: "右"
542
- }]
543
- }, {
544
- label: "是否支持排序",
545
- prop: "sortable",
546
- type: "edit",
547
- columnType: "Switch"
548
- }, {
549
- label: "文本所在位置",
550
- prop: "align",
551
- type: "edit",
552
- columnType: "Radio",
553
- contents: [{
554
- label: "left",
555
- value: "左"
556
- }, {
557
- label: "center",
558
- value: "中"
559
- }, {
560
- label: "right",
561
- value: "右"
562
- }]
563
- }, {
564
- label: "溢出悬浮文字",
565
- prop: "showOverflowTooltip",
566
- type: "edit",
567
- columnType: "Switch"
568
- }, {
569
- label: "是否不可拖动",
570
- prop: "isNotDrag",
571
- type: "edit",
572
- columnType: "Switch"
573
- }, {
574
- label: "是否可编辑列名",
575
- //暂不支持
576
- prop: "isEditCol",
577
- type: "edit",
578
- columnType: "Switch"
579
- }, {
580
- label: "是否出现在附属界面",
581
- //暂不支持
582
- prop: "isOperate",
583
- type: "edit",
584
- columnType: "Switch"
585
- }, {
586
- label: "操作",
587
- prop: "operate",
588
- type: "operate",
589
- sortable: !1
590
- }], O = (y) => {
591
- let h = S(o.value);
592
- const E = h == null ? void 0 : h.find((v) => v.key === "page");
593
- (E == null ? void 0 : E.contents) !== void 0 ? h = h == null ? void 0 : h.map((v) => ((v == null ? void 0 : v.key) === "page" && (v.contents = y == null ? void 0 : y.isPagination), v)) : h.push({
594
- key: "page",
595
- contents: y == null ? void 0 : y.isPagination
596
- }), o.value = h;
597
- };
598
- be(
599
- () => n.originalItemContents,
600
- () => {
601
- var y, h, E, v, D, N, w, I, F, J, M, z, V;
602
- !n.originalItemContents || n.originalItemContents.length === 0 || (o.value = S(n.originalItemContents), s.value = (h = (y = o.value) == null ? void 0 : y.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : h.contents, a.value = (v = (E = o.value) == null ? void 0 : E.find((k) => (k == null ? void 0 : k.key) === "rowButton")) == null ? void 0 : v.contents, i.value = (N = (D = o.value) == null ? void 0 : D.find((k) => (k == null ? void 0 : k.key) === "extraButton")) == null ? void 0 : N.contents, u.value = (I = (w = o.value) == null ? void 0 : w.find((k) => (k == null ? void 0 : k.key) === "page")) != null && I.contents ? [{
603
- name: "isPagination",
604
- label: "是否显示分页",
605
- type: "Switch",
606
- value: (J = (F = o.value) == null ? void 0 : F.find((k) => (k == null ? void 0 : k.key) === "page")) == null ? void 0 : J.contents
607
- }] : [{
608
- name: "isPagination",
609
- label: "是否显示分页",
610
- type: "Switch",
611
- value: !0
612
- }], s.value = (M = s.value) == null ? void 0 : M.map((k, X) => k = {
613
- label: (k == null ? void 0 : k.label) ?? "",
614
- prop: (k == null ? void 0 : k.label) === "操作" ? "operate" : k == null ? void 0 : k.prop,
615
- width: k != null && k.width ? parseInt(k.width) : "",
616
- fixed: (k == null ? void 0 : k.fixed) ?? void 0,
617
- sortable: (k == null ? void 0 : k.sortable) ?? !1,
618
- align: (k == null ? void 0 : k.align) ?? "center",
619
- showOverflowTooltip: (k == null ? void 0 : k.showOverflowTooltip) ?? !0,
620
- isNotDrag: (k == null ? void 0 : k.isNotDrag) ?? !1,
621
- isEditCol: (k == null ? void 0 : k.isEditCol) ?? !1,
622
- isOperate: (k == null ? void 0 : k.isOperate) ?? !1,
623
- id: (k == null ? void 0 : k.id) ?? X
624
- }), a.value = (z = a.value) == null ? void 0 : z.map((k, X) => k = {
625
- label: (k == null ? void 0 : k.label) ?? "",
626
- type: (k == null ? void 0 : k.type) ?? "",
627
- textColor: (k == null ? void 0 : k.textColor) ?? "#000000",
628
- id: (k == null ? void 0 : k.id) ?? X
629
- }), i.value = (V = i.value) == null ? void 0 : V.map((k, X) => k = {
630
- label: (k == null ? void 0 : k.label) ?? "",
631
- type: (k == null ? void 0 : k.type) ?? "",
632
- background: (k == null ? void 0 : k.textColor) ?? "#FFFFFF",
633
- id: (k == null ? void 0 : k.id) ?? X
634
- }));
635
- },
636
- { deep: !0, immediate: !0 }
637
- ), be(
638
- () => u.value,
639
- () => {
640
- var E;
641
- let y = S(o.value);
642
- const h = y == null ? void 0 : y.find((v) => v.key === "page");
643
- h != null && h.contents ? y = y == null ? void 0 : y.map((v) => {
644
- var D;
645
- return (v == null ? void 0 : v.key) === "page" && (v.contents = (D = u.value) == null ? void 0 : D[0].value), v;
646
- }) : y.push({
647
- key: "page",
648
- contents: (E = u.value) == null ? void 0 : E[0].value
649
- }), o.value = y;
650
- },
651
- { immediate: !0, deep: !0 }
652
- );
653
- const g = () => {
654
- const y = S(s.value);
655
- let h = S(o.value);
656
- y.push({
657
- label: "",
658
- prop: "",
659
- width: "",
660
- fixed: void 0,
661
- sortable: !1,
662
- align: "center",
663
- showOverflowTooltip: !0,
664
- isNotDrag: !1,
665
- isEditCol: !1,
666
- isOperate: !1,
667
- id: m.value
668
- }), s.value = y, m.value++;
669
- const E = h == null ? void 0 : h.find((v) => (v == null ? void 0 : v.key) === "header");
670
- E != null && E.contents ? (E.contents = y, h = h == null ? void 0 : h.map((v) => ((v == null ? void 0 : v.key) === "header" && (v.contents = y), v))) : h.push({
671
- key: "header",
672
- contents: y
673
- }), o.value = h;
674
- }, x = () => {
675
- const y = S(a.value);
676
- let h = S(o.value);
677
- y.push({
678
- label: "",
679
- type: "",
680
- textColor: "#000000",
681
- id: m.value
682
- }), a.value = y, m.value++;
683
- const E = h == null ? void 0 : h.find((v) => (v == null ? void 0 : v.key) === "rowButton");
684
- E != null && E.contents ? (E.contents = y, h = h == null ? void 0 : h.map((v) => ((v == null ? void 0 : v.key) === "rowButton" && (v.contents = y), v))) : h.push({
685
- key: "rowButton",
686
- contents: y
687
- }), o.value = h;
688
- }, p = () => {
689
- const y = S(f.value);
690
- let h = S(o.value);
691
- y.push({
692
- label: "",
693
- type: "",
694
- background: "#FFFFFF",
695
- id: m.value
696
- }), f.value = y, m.value++;
697
- const E = h == null ? void 0 : h.find((v) => (v == null ? void 0 : v.key) === "extraButton");
698
- E != null && E.contents ? (E.contents = y, h = h == null ? void 0 : h.map((v) => ((v == null ? void 0 : v.key) === "extraButton" && (v.contents = y), v))) : h.push({
699
- key: "extraButton",
700
- contents: y
701
- }), o.value = h;
702
- }, d = (y) => {
703
- const h = S(a.value);
704
- let E = S(o.value);
705
- a.value = h.filter((D) => D.id !== y.id);
706
- const v = E == null ? void 0 : E.find((D) => D.key === "rowButton");
707
- v != null && v.contents && (E = E == null ? void 0 : E.map((D) => ((D == null ? void 0 : D.key) === "rowButton" && (D.contents = h.filter((N) => N.id !== y.id)), D))), o.value = E;
708
- }, l = (y) => {
709
- const h = S(f.value);
710
- let E = S(o.value);
711
- f.value = h.filter((D) => D.id !== y.id);
712
- const v = E == null ? void 0 : E.find((D) => D.key === "extraButton");
713
- v != null && v.contents && (E = E == null ? void 0 : E.map((D) => ((D == null ? void 0 : D.key) === "extraButton" && (D.contents = h.filter((N) => N.id !== y.id)), D))), o.value = E;
714
- }, R = (y) => {
715
- const h = S(s.value);
716
- let E = S(o.value);
717
- s.value = h.filter((D) => D.id !== y.id);
718
- const v = E == null ? void 0 : E.find((D) => D.key === "header");
719
- v != null && v.contents && (E = E == null ? void 0 : E.map((D) => ((D == null ? void 0 : D.key) === "header" && (D.contents = h.filter((N) => N.id !== y.id)), D))), o.value = E;
720
- };
721
- return be(
722
- () => [o.value, s.value],
723
- () => {
724
- let y = S(o.value);
725
- const h = y == null ? void 0 : y.find((E) => (E == null ? void 0 : E.key) === "header");
726
- h != null && h.contents ? (h.contents = s.value, y = y == null ? void 0 : y.map((E) => ((E == null ? void 0 : E.key) === "header" && (E.contents = s.value), E))) : y.push({
727
- key: "header",
728
- contents: s.value
729
- }), r("change", y);
730
- },
731
- { deep: !0, immediate: !0 }
732
- ), (y, h) => {
733
- const E = Kt("el-button");
734
- return fe(), ye("div", sr, [
735
- H("div", ar, [
736
- H("div", ir, [
737
- h[1] || (h[1] = H("div", null, te("表头"), -1)),
738
- ee(E, {
739
- class: "blue-operate-button",
740
- icon: "ele-Plus",
741
- onClick: g
742
- }, {
743
- default: pe(() => h[0] || (h[0] = [
744
- Ne(te("新建"))
745
- ])),
746
- _: 1,
747
- __: [0]
748
- })
749
- ]),
750
- H("div", lr, [
751
- ee(Re, {
752
- columns: C,
753
- isShowPagination: !1,
754
- isShowEdit: !1,
755
- isMoveColumn: !1,
756
- tableData: s.value,
757
- onDeleteRow: R
758
- }, null, 8, ["tableData"])
759
- ]),
760
- H("div", cr, [
761
- h[3] || (h[3] = H("div", null, te("行内按钮"), -1)),
762
- ee(E, {
763
- class: "blue-operate-button",
764
- icon: "ele-Plus",
765
- onClick: x
766
- }, {
767
- default: pe(() => h[2] || (h[2] = [
768
- Ne(te("新建"))
769
- ])),
770
- _: 1,
771
- __: [2]
772
- })
773
- ]),
774
- H("div", ur, [
775
- ee(Re, {
776
- columns: b.value,
777
- isShowPagination: !1,
778
- isShowEdit: !1,
779
- isMoveColumn: !1,
780
- tableData: a.value,
781
- onDeleteRow: d
782
- }, null, 8, ["columns", "tableData"])
783
- ]),
784
- H("div", fr, [
785
- h[5] || (h[5] = H("div", null, te("表格外部按钮"), -1)),
786
- ee(E, {
787
- class: "blue-operate-button",
788
- icon: "ele-Plus",
789
- onClick: p
790
- }, {
791
- default: pe(() => h[4] || (h[4] = [
792
- Ne(te("新建"))
793
- ])),
794
- _: 1,
795
- __: [4]
796
- })
797
- ]),
798
- H("div", pr, [
799
- ee(Re, {
800
- columns: i.value,
801
- isShowPagination: !1,
802
- isShowEdit: !1,
803
- isMoveColumn: !1,
804
- tableData: f.value,
805
- onDeleteRow: l
806
- }, null, 8, ["columns", "tableData"])
807
- ]),
808
- h[6] || (h[6] = H("div", { class: "operate-title" }, [
809
- H("div", null, te("分页"))
810
- ], -1)),
811
- H("div", dr, [
812
- ee(Ie, {
813
- rowContents: u.value,
814
- onChange: O
815
- }, null, 8, ["rowContents"])
816
- ])
817
- ])
818
- ]);
819
- };
820
- }
821
- }, yr = /* @__PURE__ */ Ge(hr, [["__scopeId", "data-v-877911eb"]]), mr = { class: "form-operate-content" }, br = { class: "form-operate-item" }, gr = { class: "operate-title" }, kr = { class: "operate-content" }, Er = { class: "operate-title" }, vr = { class: "operate-content" }, Sr = { class: "operate-content" }, Rr = {
822
- __name: "operate",
823
- props: {
824
- itemContents: {
825
- type: Array,
826
- default: () => []
827
- },
828
- originalItemContents: {
829
- type: Array,
830
- default: () => []
831
- }
832
- },
833
- emits: ["change"],
834
- setup(e, { emit: t }) {
835
- const n = e, r = t, o = B([{
836
- name: "isRowFlex",
837
- label: "是否横向布局",
838
- type: "Switch",
839
- value: !0
840
- }]), s = B([{
841
- label: "字段名称",
842
- prop: "label",
843
- type: "edit"
844
- }, {
845
- label: "字段类型",
846
- prop: "type",
847
- type: "edit"
848
- }, {
849
- label: "字段值",
850
- prop: "key",
851
- type: "edit"
852
- }, {
853
- label: "字段选项值",
854
- prop: "options",
855
- type: "edit"
856
- }, {
857
- label: "操作",
858
- prop: "operate",
859
- type: "operate",
860
- sortable: !1
861
- }]), a = B([{
862
- label: "字段名称",
863
- prop: "label",
864
- type: "edit"
865
- }, {
866
- label: "字段类型",
867
- prop: "type",
868
- type: "edit"
869
- }, {
870
- label: "按钮背景颜色",
871
- prop: "background",
872
- type: "edit",
873
- columnType: "Color"
874
- }, {
875
- label: "操作",
876
- prop: "operate",
877
- type: "operate",
878
- sortable: !1
879
- }]), i = B([]), b = B([]), f = B([]), m = B(0);
880
- be(
881
- () => n.originalItemContents,
882
- () => {
883
- var p, d, l, R, y, h, E, v, D, N;
884
- !n.originalItemContents || n.originalItemContents.length === 0 || (b.value = S(n.originalItemContents), f.value = (d = (p = b.value) == null ? void 0 : p.find((w) => (w == null ? void 0 : w.key) === "formContent")) == null ? void 0 : d.contents, i.value = (R = (l = b.value) == null ? void 0 : l.find((w) => (w == null ? void 0 : w.key) === "formButton")) == null ? void 0 : R.contents, f.value = (y = f.value) == null ? void 0 : y.map((w, I) => w = {
885
- label: (w == null ? void 0 : w.label) ?? "",
886
- type: (w == null ? void 0 : w.type) ?? "",
887
- key: (w == null ? void 0 : w.key) ?? "",
888
- options: (w == null ? void 0 : w.options) ?? "",
889
- id: (w == null ? void 0 : w.id) ?? I
890
- }), i.value = (h = i.value) == null ? void 0 : h.map((w, I) => w = {
891
- label: (w == null ? void 0 : w.label) ?? "",
892
- type: (w == null ? void 0 : w.type) ?? "",
893
- background: (w == null ? void 0 : w.background) ?? "#000000",
894
- id: (w == null ? void 0 : w.id) ?? I
895
- }), o.value = (v = (E = b.value) == null ? void 0 : E.find((w) => (w == null ? void 0 : w.key) === "formFlex")) != null && v.contents ? [{
896
- name: "isRowFlex",
897
- label: "是否横向布局",
898
- type: "Switch",
899
- value: (N = (D = b.value) == null ? void 0 : D.find((w) => (w == null ? void 0 : w.key) === "formFlex")) == null ? void 0 : N.contents
900
- }] : [{
901
- name: "isRowFlex",
902
- label: "是否横向布局",
903
- type: "Switch",
904
- value: !0
905
- }]);
906
- },
907
- { deep: !0, immediate: !0 }
908
- );
909
- const u = () => {
910
- const p = S(i.value);
911
- let d = S(b.value);
912
- p.push({
913
- label: "",
914
- type: "",
915
- background: "#000000",
916
- id: m.value
917
- }), i.value = p, m.value++;
918
- const l = d == null ? void 0 : d.find((R) => (R == null ? void 0 : R.key) === "formButton");
919
- l != null && l.contents ? (l.contents = p, d = d == null ? void 0 : d.map((R) => ((R == null ? void 0 : R.key) === "formButton" && (R.contents = p), R))) : d.push({
920
- key: "formButton",
921
- contents: p
922
- }), b.value = d;
923
- }, C = () => {
924
- const p = S(f.value);
925
- let d = S(b.value);
926
- p.push({
927
- label: "",
928
- type: "",
929
- key: "",
930
- options: "",
931
- id: m.value
932
- }), f.value = p, m.value++;
933
- const l = d == null ? void 0 : d.find((R) => (R == null ? void 0 : R.key) === "formContent");
934
- l != null && l.contents ? (l.contents = p, d = d == null ? void 0 : d.map((R) => ((R == null ? void 0 : R.key) === "formContent" && (R.contents = p), R))) : d.push({
935
- key: "formContent",
936
- contents: p
937
- }), b.value = d;
938
- }, O = (p) => {
939
- const d = S(i.value);
940
- let l = S(b.value);
941
- i.value = d.filter((y) => y.id !== p.id);
942
- const R = l == null ? void 0 : l.find((y) => y.key === "formButton");
943
- R != null && R.contents && (l = l == null ? void 0 : l.map((y) => ((y == null ? void 0 : y.key) === "formButton" && (y.contents = d.filter((h) => h.id !== p.id)), y))), b.value = l;
944
- }, g = (p) => {
945
- const d = S(f.value);
946
- let l = S(b.value);
947
- f.value = d.filter((y) => y.id !== p.id);
948
- const R = l == null ? void 0 : l.find((y) => y.key === "formContent");
949
- R != null && R.contents && (l = l == null ? void 0 : l.map((y) => ((y == null ? void 0 : y.key) === "formContent" && (y.contents = d.filter((h) => h.id !== p.id)), y))), b.value = l;
950
- }, x = (p) => {
951
- let d = S(b.value);
952
- const l = d == null ? void 0 : d.find((R) => R.key === "formFlex");
953
- (l == null ? void 0 : l.contents) !== void 0 ? d = d == null ? void 0 : d.map((R) => ((R == null ? void 0 : R.key) === "formFlex" && (R.contents = p == null ? void 0 : p.isRowFlex), R)) : d.push({
954
- key: "formFlex",
955
- contents: p == null ? void 0 : p.isRowFlex
956
- }), b.value = d;
957
- };
958
- return be(
959
- () => [b.value, f.value],
960
- () => {
961
- let p = S(b.value);
962
- const d = p == null ? void 0 : p.find((l) => (l == null ? void 0 : l.key) === "formContent");
963
- d != null && d.contents ? (d.contents = f.value, p = p == null ? void 0 : p.map((l) => ((l == null ? void 0 : l.key) === "formContent" && (l.contents = f.value), l))) : p.push({
964
- key: "formContent",
965
- contents: f.value
966
- }), r("change", p);
967
- },
968
- { deep: !0, immediate: !0 }
969
- ), (p, d) => {
970
- const l = Kt("el-button");
971
- return fe(), ye("div", mr, [
972
- H("div", br, [
973
- H("div", gr, [
974
- d[1] || (d[1] = H("div", null, te("表单信息"), -1)),
975
- ee(l, {
976
- class: "blue-operate-button",
977
- icon: "ele-Plus",
978
- onClick: C
979
- }, {
980
- default: pe(() => d[0] || (d[0] = [
981
- Ne(te("新建"))
982
- ])),
983
- _: 1,
984
- __: [0]
985
- })
986
- ]),
987
- H("div", kr, [
988
- ee(Re, {
989
- columns: s.value,
990
- isShowPagination: !1,
991
- isShowEdit: !1,
992
- isMoveColumn: !1,
993
- tableData: f.value,
994
- onDeleteRow: g
995
- }, null, 8, ["columns", "tableData"])
996
- ]),
997
- H("div", Er, [
998
- d[3] || (d[3] = H("div", null, te("表单按钮"), -1)),
999
- ee(l, {
1000
- class: "blue-operate-button",
1001
- icon: "ele-Plus",
1002
- onClick: u
1003
- }, {
1004
- default: pe(() => d[2] || (d[2] = [
1005
- Ne(te("新建"))
1006
- ])),
1007
- _: 1,
1008
- __: [2]
1009
- })
1010
- ]),
1011
- H("div", vr, [
1012
- ee(Re, {
1013
- columns: a.value,
1014
- isShowPagination: !1,
1015
- isShowEdit: !1,
1016
- isMoveColumn: !1,
1017
- tableData: i.value,
1018
- onDeleteRow: O
1019
- }, null, 8, ["columns", "tableData"])
1020
- ]),
1021
- d[4] || (d[4] = H("div", { class: "operate-title" }, [
1022
- H("div", null, te("表单布局"))
1023
- ], -1)),
1024
- H("div", Sr, [
1025
- ee(Ie, {
1026
- rowContents: o.value,
1027
- onChange: x
1028
- }, null, 8, ["rowContents"])
1029
- ])
1030
- ])
1031
- ]);
1032
- };
1033
- }
1034
- }, Or = /* @__PURE__ */ Ge(Rr, [["__scopeId", "data-v-a36b8468"]]), Ss = B([
1035
- {
1036
- name: "表格",
1037
- type: "table",
1038
- comp: "Table",
1039
- icon: "Grid"
1040
- },
1041
- {
1042
- name: "表单",
1043
- type: "form",
1044
- comp: "Form",
1045
- icon: "Film"
1046
- },
1047
- {
1048
- name: "折叠",
1049
- type: "fold",
1050
- comp: "Fold",
1051
- icon: "Fold"
1052
- }
1053
- ]), wr = {
1054
- Table: tr,
1055
- Form: or,
1056
- TableOperate: yr,
1057
- FormOperate: Or,
1058
- Fold: Mn
1059
- // 添加其他组件...
1060
- };
1061
- function Rs(e) {
1062
- return wr[e] || null;
1063
- }
1064
- const Y = [
1065
- {
1066
- key: "FormName",
1067
- value: "Form"
1068
- },
1069
- {
1070
- key: "TableName",
1071
- value: "Table"
1072
- },
1073
- {
1074
- key: "MenuName",
1075
- value: "Menu"
1076
- },
1077
- {
1078
- key: "GroupName",
1079
- value: "Group"
1080
- },
1081
- {
1082
- key: "SystemKey",
1083
- value: "System"
1084
- }
1085
- ], Q = [
1086
- {
1087
- key: "FormDirect",
1088
- value: "formFlex"
1089
- },
1090
- {
1091
- key: "Form",
1092
- value: "formContent"
1093
- },
1094
- {
1095
- key: "FormButton",
1096
- value: "formButton"
1097
- },
1098
- {
1099
- key: "FormFlex",
1100
- value: "formWrap"
1101
- },
1102
- {
1103
- key: "TableColumns",
1104
- value: "header"
1105
- },
1106
- {
1107
- key: "TableButton",
1108
- value: "extraButton"
1109
- },
1110
- {
1111
- key: "TableLineButton",
1112
- value: "rowButton"
1113
- },
1114
- {
1115
- key: "Table",
1116
- value: "tableContents"
1117
- },
1118
- {
1119
- key: "TableIndex",
1120
- value: "tableIndex"
1121
- },
1122
- {
1123
- key: "Menus",
1124
- value: "menuContents"
1125
- },
1126
- {
1127
- key: "GroupContents",
1128
- value: "groupContents"
1129
- }
1130
- ], $e = B(0), ot = B(0), Tr = (e) => {
1131
- let t;
1132
- e.includes(`\r
1133
- `) ? t = e.split(`\r
1134
- `).filter((o) => o.trim() !== "") : t = e.split(`
1135
- `).filter((o) => o.trim() !== "");
1136
- const n = [];
1137
- let r = "";
1138
- for (const o of t)
1139
- o.includes("{") || r.includes("{") || o.includes("[") || r.includes("[") || o.includes("【") || r.includes("【") || o.includes("(") || r.includes("(") || o.includes("(") || r.includes("(") ? (r += o.trim(), S(r).split("{").length - 1 === S(r).split("}").length - 1 && S(r).split("【").length - 1 === S(r).split("】").length - 1 && S(r).split("[").length - 1 === S(r).split("]").length - 1 && S(r).split("(").length - 1 === S(r).split(")").length - 1 && S(r).split("(").length - 1 === S(r).split(")").length - 1 && (n.push(r), r = "")) : n.push(o.trim());
1140
- return n;
1141
- }, Ar = (e) => {
1142
- const t = e.trim().replace(/^'|'$/g, ""), n = /((?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*?)(?=\s*(?:(?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=|$)/g, r = {};
1143
- let o;
1144
- for (; (o = n.exec(t)) !== null; ) {
1145
- const s = o[1];
1146
- let a = o[2].trim();
1147
- (a.match(/\[/g) || []).length !== (a.match(/\]/g) || []).length && (a = a == null ? void 0 : a.replace(/]$/, "")), r[s] ? (r[s + ot.value] && ot.value++, r[s + ot.value] = s + "=" + a) : r[s] = s + "=" + a;
1148
- }
1149
- return r;
1150
- }, en = (e) => {
1151
- const [t, n] = e.split("=").map((s) => s.trim()), r = t.replace(/['"]/g, ""), o = n.replace(/^['"]|['"]$/g, "");
1152
- return { key: r, value: o };
1153
- }, Cr = (e) => {
1154
- var a;
1155
- let t = [];
1156
- const [n, r] = e.split(/=(.+)/), o = n.replace(/['"]/g, "").trim(), s = r.replace(/^['"]|['"]$/g, "");
1157
- return (a = Object.values(Ar(s))) == null || a.forEach((i) => {
1158
- t.push(en(i));
1159
- }), { key: o, value: t };
1160
- }, qe = (e) => {
1161
- try {
1162
- return JSON.parse(e), !0;
1163
- } catch {
1164
- return !1;
1165
- }
1166
- }, tn = (e) => {
1167
- try {
1168
- const t = e.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
1169
- if (S(t).split("{").length - 1 > 1) {
1170
- let n = S(t).replace(/^\{(.*)\}$/, "[$1]");
1171
- if (qe(n) && !n.includes("$") || (n = n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), qe(n)) {
1172
- const r = JSON.parse(n);
1173
- let o = [];
1174
- return r == null || r.forEach((s) => {
1175
- var a;
1176
- (a = Object.entries(S(s))) == null || a.forEach((i) => {
1177
- $e.value++, o.push({
1178
- id: $e.value,
1179
- key: (i == null ? void 0 : i[0]) ?? "",
1180
- value: (i == null ? void 0 : i[1]) === "" ? "" : i == null ? void 0 : i[1],
1181
- // 如果值为空,则key设为空字符串,否则保留原值
1182
- width: Object.keys(S(s)).length
1183
- });
1184
- });
1185
- }), o;
1186
- } else
1187
- return console.error("转换类型不正确:"), [];
1188
- } else if (qe(t)) {
1189
- const n = JSON.parse(t);
1190
- return Object.entries(n).map(([r, o]) => ($e.value++, {
1191
- id: $e.value,
1192
- key: r,
1193
- value: o === "" ? "" : o,
1194
- // 如果值为空,则key设为空字符串,否则保留原值
1195
- width: 1
1196
- }));
1197
- } else
1198
- return t;
1199
- } catch (t) {
1200
- return console.error("转换失败:", t), [];
1201
- }
1202
- }, xr = (e, t) => {
1203
- try {
1204
- if (Y != null && Y.find((n) => (n == null ? void 0 : n.key) === t))
1205
- return JSON.parse(e.replace(/[’]|[‘]|[']/g, '"'));
1206
- if (S(e).split("[").length - 1 > 1) {
1207
- const n = S(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
1208
- return JSON.parse(n);
1209
- } else {
1210
- const n = S(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
1211
- if (qe(n)) {
1212
- const r = JSON.parse(n);
1213
- return Array.isArray(r) ? r.map((o) => ({ label: o })) : r;
1214
- } else
1215
- return tn(S(e));
1216
- }
1217
- } catch (n) {
1218
- return console.error("解析失败:", n), e;
1219
- }
1220
- }, _r = (e) => ({ [e == null ? void 0 : e.key]: xr(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), Dr = (e) => {
1221
- try {
1222
- if (S(e).split("[").length - 1 > 1) {
1223
- const t = S(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
1224
- return JSON.parse(t);
1225
- } else
1226
- return JSON.parse(S(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((n) => ({ label: n }));
1227
- } catch (t) {
1228
- return console.error("解析失败:", t), e;
1229
- }
1230
- }, Fr = (e) => {
1231
- var t, n, r, o, s, a;
1232
- try {
1233
- const i = Tr((n = (t = S(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), b = (r = S(i)) == null ? void 0 : r.map((u) => {
1234
- var O, g;
1235
- let C = (g = (O = S(u)) == null ? void 0 : O.split("=")) == null ? void 0 : g[0];
1236
- return C != null && C.includes("GroupContents") ? Cr(u) : en(u);
1237
- }), f = [];
1238
- (o = S(b)) == null || o.forEach((u) => {
1239
- var C, O, g, x, p;
1240
- Y != null && Y.find((d) => {
1241
- var l, R;
1242
- return ((l = d == null ? void 0 : d.key) == null ? void 0 : l.toUpperCase()) === ((R = u == null ? void 0 : u.key) == null ? void 0 : R.toUpperCase());
1243
- }) ? f.push({
1244
- comp: ((C = Y == null ? void 0 : Y.find((d) => {
1245
- var l, R;
1246
- return ((l = d == null ? void 0 : d.key) == null ? void 0 : l.toUpperCase()) === ((R = u == null ? void 0 : u.key) == null ? void 0 : R.toUpperCase());
1247
- })) == null ? void 0 : C.value) ?? "",
1248
- name: (O = u == null ? void 0 : u.value) == null ? void 0 : O.replace(/[’]|[‘]|[']/g, ""),
1249
- compData: []
1250
- }) : Q != null && Q.find((d) => {
1251
- var l, R;
1252
- return ((l = d == null ? void 0 : d.key) == null ? void 0 : l.toUpperCase()) === ((R = u == null ? void 0 : u.key) == null ? void 0 : R.toUpperCase());
1253
- }) && ((f == null ? void 0 : f.length) === 0 && (g = u.key) != null && g.includes("Menus") && f.push({
1254
- comp: "Menu",
1255
- name: "",
1256
- compData: []
1257
- }), (x = f == null ? void 0 : f[(f == null ? void 0 : f.length) - 1]) != null && x.compData && f[(f == null ? void 0 : f.length) - 1].compData.push({
1258
- key: (p = Q == null ? void 0 : Q.find((d) => {
1259
- var l, R;
1260
- return ((l = d == null ? void 0 : d.key) == null ? void 0 : l.toUpperCase()) === ((R = u == null ? void 0 : u.key) == null ? void 0 : R.toUpperCase());
1261
- })) == null ? void 0 : p.value,
1262
- contents: u == null ? void 0 : u.value
1263
- }));
1264
- }), console.log("newContents", f);
1265
- let m = (s = S(f)) == null ? void 0 : s.map((u) => {
1266
- var C;
1267
- return u != null && u.compData && (u.compData = (C = u == null ? void 0 : u.compData) == null ? void 0 : C.map((O) => {
1268
- var g, x, p, d, l, R, y, h, E, v, D;
1269
- if ((O == null ? void 0 : O.key) === "formFlex")
1270
- O.contents = ((x = (g = O.contents) == null ? void 0 : g.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : x.toUpperCase()) !== "Vertical".toUpperCase();
1271
- else if ((O == null ? void 0 : O.key) === "groupContents")
1272
- O.contents = (p = S(O.contents)) == null ? void 0 : p.map((N) => _r(S(N)));
1273
- else if (((l = (d = O.contents) == null ? void 0 : d.trim()) != null && l.startsWith("[") || (y = (R = O.contents) == null ? void 0 : R.trim()) != null && y.startsWith("【")) && ((E = (h = O.contents) == null ? void 0 : h.trim()) != null && E.endsWith("]") || (D = (v = O.contents) == null ? void 0 : v.trim()) != null && D.endsWith("】")))
1274
- O.contents = Dr(S(O.contents));
1275
- else {
1276
- if (!O.contents) return;
1277
- O.contents = tn(S(O.contents));
1278
- }
1279
- return O;
1280
- })), u;
1281
- });
1282
- return m = (a = S(m)) == null ? void 0 : a.map((u) => {
1283
- var C;
1284
- return (u == null ? void 0 : u.comp) === "Group" && (u.compData = (C = u.compData) == null ? void 0 : C.map((O) => {
1285
- var x;
1286
- let g = [];
1287
- return (x = O.contents) == null || x.forEach((p) => {
1288
- var d, l, R, y, h, E, v, D, N, w, I, F;
1289
- if (Y != null && Y.find((J) => {
1290
- var M, z, V;
1291
- return ((M = J == null ? void 0 : J.key) == null ? void 0 : M.toUpperCase()) === ((V = (z = Object.keys(p)) == null ? void 0 : z[0]) == null ? void 0 : V.toUpperCase());
1292
- }))
1293
- g.push({
1294
- comp: (d = Y == null ? void 0 : Y.find((J) => {
1295
- var M, z, V;
1296
- return ((M = J == null ? void 0 : J.key) == null ? void 0 : M.toUpperCase()) === ((V = (z = Object.keys(p)) == null ? void 0 : z[0]) == null ? void 0 : V.toUpperCase());
1297
- })) == null ? void 0 : d.value,
1298
- name: (R = (l = Object.values(p)) == null ? void 0 : l[0]) == null ? void 0 : R.replace(/[’]|[‘]|[']/g, ""),
1299
- compData: []
1300
- });
1301
- else if (Q != null && Q.find((J) => {
1302
- var M, z, V;
1303
- return ((M = J == null ? void 0 : J.key) == null ? void 0 : M.toUpperCase()) === ((V = (z = Object.keys(p)) == null ? void 0 : z[0]) == null ? void 0 : V.toUpperCase());
1304
- })) {
1305
- if ((g == null ? void 0 : g.length) === 0) return;
1306
- (y = g == null ? void 0 : g[(g == null ? void 0 : g.length) - 1]) != null && y.compData && g[(g == null ? void 0 : g.length) - 1].compData.push({
1307
- key: (h = Q == null ? void 0 : Q.find((J) => {
1308
- var M, z, V;
1309
- return ((M = J == null ? void 0 : J.key) == null ? void 0 : M.toUpperCase()) === ((V = (z = Object.keys(p)) == null ? void 0 : z[0]) == null ? void 0 : V.toUpperCase());
1310
- })) == null ? void 0 : h.value,
1311
- contents: (E = Object.values(p)) == null ? void 0 : E[0]
1312
- });
1313
- } else if ((D = (v = Object.keys(p)) == null ? void 0 : v[0]) != null && D.includes("$")) {
1314
- const J = (w = (N = Object.keys(S(p))) == null ? void 0 : N[0]) == null ? void 0 : w.split("$");
1315
- g[(g == null ? void 0 : g.length) - 1].compData.push({
1316
- key: (I = Q == null ? void 0 : Q.find((M) => {
1317
- var z, V;
1318
- return ((z = M == null ? void 0 : M.key) == null ? void 0 : z.toUpperCase()) === ((V = J == null ? void 0 : J[0]) == null ? void 0 : V.toUpperCase());
1319
- })) == null ? void 0 : I.value,
1320
- contents: (F = Object.values(p)) == null ? void 0 : F[0],
1321
- selectLabel: J == null ? void 0 : J[1]
1322
- });
1323
- }
1324
- return p;
1325
- }), O.contents = g, O;
1326
- })), u;
1327
- }), m;
1328
- } catch {
1329
- return !1;
1330
- }
1331
- }, Os = (e) => Fr(e);
1332
- function nn(e, t) {
1333
- return function() {
1334
- return e.apply(t, arguments);
1335
- };
1336
- }
1337
- const { toString: Nr } = Object.prototype, { getPrototypeOf: mt } = Object, { iterator: Xe, toStringTag: rn } = Symbol, Ze = /* @__PURE__ */ ((e) => (t) => {
1338
- const n = Nr.call(t);
1339
- return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
1340
- })(/* @__PURE__ */ Object.create(null)), ie = (e) => (e = e.toLowerCase(), (t) => Ze(t) === e), Qe = (e) => (t) => typeof t === e, { isArray: we } = Array, Pe = Qe("undefined");
1341
- function Pr(e) {
1342
- return e !== null && !Pe(e) && e.constructor !== null && !Pe(e.constructor) && ne(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1343
- }
1344
- const on = ie("ArrayBuffer");
1345
- function Ur(e) {
1346
- let t;
1347
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && on(e.buffer), t;
1348
- }
1349
- const Br = Qe("string"), ne = Qe("function"), sn = Qe("number"), Ye = (e) => e !== null && typeof e == "object", jr = (e) => e === !0 || e === !1, Je = (e) => {
1350
- if (Ze(e) !== "object")
1351
- return !1;
1352
- const t = mt(e);
1353
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(rn in e) && !(Xe in e);
1354
- }, $r = ie("Date"), Lr = ie("File"), qr = ie("Blob"), Jr = ie("FileList"), Mr = (e) => Ye(e) && ne(e.pipe), zr = (e) => {
1355
- let t;
1356
- return e && (typeof FormData == "function" && e instanceof FormData || ne(e.append) && ((t = Ze(e)) === "formdata" || // detect form-data instance
1357
- t === "object" && ne(e.toString) && e.toString() === "[object FormData]"));
1358
- }, Hr = ie("URLSearchParams"), [Vr, Wr, Kr, Ir] = ["ReadableStream", "Request", "Response", "Headers"].map(ie), Gr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1359
- function Ue(e, t, { allOwnKeys: n = !1 } = {}) {
1360
- if (e === null || typeof e > "u")
1361
- return;
1362
- let r, o;
1363
- if (typeof e != "object" && (e = [e]), we(e))
1364
- for (r = 0, o = e.length; r < o; r++)
1365
- t.call(null, e[r], r, e);
1366
- else {
1367
- const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = s.length;
1368
- let i;
1369
- for (r = 0; r < a; r++)
1370
- i = s[r], t.call(null, e[i], i, e);
1371
- }
1372
- }
1373
- function an(e, t) {
1374
- t = t.toLowerCase();
1375
- const n = Object.keys(e);
1376
- let r = n.length, o;
1377
- for (; r-- > 0; )
1378
- if (o = n[r], t === o.toLowerCase())
1379
- return o;
1380
- return null;
1381
- }
1382
- const me = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ln = (e) => !Pe(e) && e !== me;
1383
- function lt() {
1384
- const { caseless: e } = ln(this) && this || {}, t = {}, n = (r, o) => {
1385
- const s = e && an(t, o) || o;
1386
- Je(t[s]) && Je(r) ? t[s] = lt(t[s], r) : Je(r) ? t[s] = lt({}, r) : we(r) ? t[s] = r.slice() : t[s] = r;
1387
- };
1388
- for (let r = 0, o = arguments.length; r < o; r++)
1389
- arguments[r] && Ue(arguments[r], n);
1390
- return t;
1391
- }
1392
- const Xr = (e, t, n, { allOwnKeys: r } = {}) => (Ue(t, (o, s) => {
1393
- n && ne(o) ? e[s] = nn(o, n) : e[s] = o;
1394
- }, { allOwnKeys: r }), e), Zr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Qr = (e, t, n, r) => {
1395
- e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
1396
- value: t.prototype
1397
- }), n && Object.assign(e.prototype, n);
1398
- }, Yr = (e, t, n, r) => {
1399
- let o, s, a;
1400
- const i = {};
1401
- if (t = t || {}, e == null) return t;
1402
- do {
1403
- for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
1404
- a = o[s], (!r || r(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
1405
- e = n !== !1 && mt(e);
1406
- } while (e && (!n || n(e, t)) && e !== Object.prototype);
1407
- return t;
1408
- }, eo = (e, t, n) => {
1409
- e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
1410
- const r = e.indexOf(t, n);
1411
- return r !== -1 && r === n;
1412
- }, to = (e) => {
1413
- if (!e) return null;
1414
- if (we(e)) return e;
1415
- let t = e.length;
1416
- if (!sn(t)) return null;
1417
- const n = new Array(t);
1418
- for (; t-- > 0; )
1419
- n[t] = e[t];
1420
- return n;
1421
- }, no = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && mt(Uint8Array)), ro = (e, t) => {
1422
- const r = (e && e[Xe]).call(e);
1423
- let o;
1424
- for (; (o = r.next()) && !o.done; ) {
1425
- const s = o.value;
1426
- t.call(e, s[0], s[1]);
1427
- }
1428
- }, oo = (e, t) => {
1429
- let n;
1430
- const r = [];
1431
- for (; (n = e.exec(t)) !== null; )
1432
- r.push(n);
1433
- return r;
1434
- }, so = ie("HTMLFormElement"), ao = (e) => e.toLowerCase().replace(
1435
- /[-_\s]([a-z\d])(\w*)/g,
1436
- function(n, r, o) {
1437
- return r.toUpperCase() + o;
1438
- }
1439
- ), Pt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), io = ie("RegExp"), cn = (e, t) => {
1440
- const n = Object.getOwnPropertyDescriptors(e), r = {};
1441
- Ue(n, (o, s) => {
1442
- let a;
1443
- (a = t(o, s, e)) !== !1 && (r[s] = a || o);
1444
- }), Object.defineProperties(e, r);
1445
- }, lo = (e) => {
1446
- cn(e, (t, n) => {
1447
- if (ne(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
1448
- return !1;
1449
- const r = e[n];
1450
- if (ne(r)) {
1451
- if (t.enumerable = !1, "writable" in t) {
1452
- t.writable = !1;
1453
- return;
1454
- }
1455
- t.set || (t.set = () => {
1456
- throw Error("Can not rewrite read-only method '" + n + "'");
1457
- });
1458
- }
1459
- });
1460
- }, co = (e, t) => {
1461
- const n = {}, r = (o) => {
1462
- o.forEach((s) => {
1463
- n[s] = !0;
1464
- });
1465
- };
1466
- return we(e) ? r(e) : r(String(e).split(t)), n;
1467
- }, uo = () => {
1468
- }, fo = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1469
- function po(e) {
1470
- return !!(e && ne(e.append) && e[rn] === "FormData" && e[Xe]);
1471
- }
1472
- const ho = (e) => {
1473
- const t = new Array(10), n = (r, o) => {
1474
- if (Ye(r)) {
1475
- if (t.indexOf(r) >= 0)
1476
- return;
1477
- if (!("toJSON" in r)) {
1478
- t[o] = r;
1479
- const s = we(r) ? [] : {};
1480
- return Ue(r, (a, i) => {
1481
- const b = n(a, o + 1);
1482
- !Pe(b) && (s[i] = b);
1483
- }), t[o] = void 0, s;
1484
- }
1485
- }
1486
- return r;
1487
- };
1488
- return n(e, 0);
1489
- }, yo = ie("AsyncFunction"), mo = (e) => e && (Ye(e) || ne(e)) && ne(e.then) && ne(e.catch), un = ((e, t) => e ? setImmediate : t ? ((n, r) => (me.addEventListener("message", ({ source: o, data: s }) => {
1490
- o === me && s === n && r.length && r.shift()();
1491
- }, !1), (o) => {
1492
- r.push(o), me.postMessage(n, "*");
1493
- }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
1494
- typeof setImmediate == "function",
1495
- ne(me.postMessage)
1496
- ), bo = typeof queueMicrotask < "u" ? queueMicrotask.bind(me) : typeof process < "u" && process.nextTick || un, go = (e) => e != null && ne(e[Xe]), c = {
1497
- isArray: we,
1498
- isArrayBuffer: on,
1499
- isBuffer: Pr,
1500
- isFormData: zr,
1501
- isArrayBufferView: Ur,
1502
- isString: Br,
1503
- isNumber: sn,
1504
- isBoolean: jr,
1505
- isObject: Ye,
1506
- isPlainObject: Je,
1507
- isReadableStream: Vr,
1508
- isRequest: Wr,
1509
- isResponse: Kr,
1510
- isHeaders: Ir,
1511
- isUndefined: Pe,
1512
- isDate: $r,
1513
- isFile: Lr,
1514
- isBlob: qr,
1515
- isRegExp: io,
1516
- isFunction: ne,
1517
- isStream: Mr,
1518
- isURLSearchParams: Hr,
1519
- isTypedArray: no,
1520
- isFileList: Jr,
1521
- forEach: Ue,
1522
- merge: lt,
1523
- extend: Xr,
1524
- trim: Gr,
1525
- stripBOM: Zr,
1526
- inherits: Qr,
1527
- toFlatObject: Yr,
1528
- kindOf: Ze,
1529
- kindOfTest: ie,
1530
- endsWith: eo,
1531
- toArray: to,
1532
- forEachEntry: ro,
1533
- matchAll: oo,
1534
- isHTMLForm: so,
1535
- hasOwnProperty: Pt,
1536
- hasOwnProp: Pt,
1537
- // an alias to avoid ESLint no-prototype-builtins detection
1538
- reduceDescriptors: cn,
1539
- freezeMethods: lo,
1540
- toObjectSet: co,
1541
- toCamelCase: ao,
1542
- noop: uo,
1543
- toFiniteNumber: fo,
1544
- findKey: an,
1545
- global: me,
1546
- isContextDefined: ln,
1547
- isSpecCompliantForm: po,
1548
- toJSONObject: ho,
1549
- isAsyncFn: yo,
1550
- isThenable: mo,
1551
- setImmediate: un,
1552
- asap: bo,
1553
- isIterable: go
1554
- };
1555
- function U(e, t, n, r, o) {
1556
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
1557
- }
1558
- c.inherits(U, Error, {
1559
- toJSON: function() {
1560
- return {
1561
- // Standard
1562
- message: this.message,
1563
- name: this.name,
1564
- // Microsoft
1565
- description: this.description,
1566
- number: this.number,
1567
- // Mozilla
1568
- fileName: this.fileName,
1569
- lineNumber: this.lineNumber,
1570
- columnNumber: this.columnNumber,
1571
- stack: this.stack,
1572
- // Axios
1573
- config: c.toJSONObject(this.config),
1574
- code: this.code,
1575
- status: this.status
1576
- };
1577
- }
1578
- });
1579
- const fn = U.prototype, pn = {};
1580
- [
1581
- "ERR_BAD_OPTION_VALUE",
1582
- "ERR_BAD_OPTION",
1583
- "ECONNABORTED",
1584
- "ETIMEDOUT",
1585
- "ERR_NETWORK",
1586
- "ERR_FR_TOO_MANY_REDIRECTS",
1587
- "ERR_DEPRECATED",
1588
- "ERR_BAD_RESPONSE",
1589
- "ERR_BAD_REQUEST",
1590
- "ERR_CANCELED",
1591
- "ERR_NOT_SUPPORT",
1592
- "ERR_INVALID_URL"
1593
- // eslint-disable-next-line func-names
1594
- ].forEach((e) => {
1595
- pn[e] = { value: e };
1596
- });
1597
- Object.defineProperties(U, pn);
1598
- Object.defineProperty(fn, "isAxiosError", { value: !0 });
1599
- U.from = (e, t, n, r, o, s) => {
1600
- const a = Object.create(fn);
1601
- return c.toFlatObject(e, a, function(b) {
1602
- return b !== Error.prototype;
1603
- }, (i) => i !== "isAxiosError"), U.call(a, e.message, t, n, r, o), a.cause = e, a.name = e.name, s && Object.assign(a, s), a;
1604
- };
1605
- const ko = null;
1606
- function ct(e) {
1607
- return c.isPlainObject(e) || c.isArray(e);
1608
- }
1609
- function dn(e) {
1610
- return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
1611
- }
1612
- function Ut(e, t, n) {
1613
- return e ? e.concat(t).map(function(o, s) {
1614
- return o = dn(o), !n && s ? "[" + o + "]" : o;
1615
- }).join(n ? "." : "") : t;
1616
- }
1617
- function Eo(e) {
1618
- return c.isArray(e) && !e.some(ct);
1619
- }
1620
- const vo = c.toFlatObject(c, {}, null, function(t) {
1621
- return /^is[A-Z]/.test(t);
1622
- });
1623
- function et(e, t, n) {
1624
- if (!c.isObject(e))
1625
- throw new TypeError("target must be an object");
1626
- t = t || new FormData(), n = c.toFlatObject(n, {
1627
- metaTokens: !0,
1628
- dots: !1,
1629
- indexes: !1
1630
- }, !1, function(x, p) {
1631
- return !c.isUndefined(p[x]);
1632
- });
1633
- const r = n.metaTokens, o = n.visitor || m, s = n.dots, a = n.indexes, b = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
1634
- if (!c.isFunction(o))
1635
- throw new TypeError("visitor must be a function");
1636
- function f(g) {
1637
- if (g === null) return "";
1638
- if (c.isDate(g))
1639
- return g.toISOString();
1640
- if (!b && c.isBlob(g))
1641
- throw new U("Blob is not supported. Use a Buffer instead.");
1642
- return c.isArrayBuffer(g) || c.isTypedArray(g) ? b && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
1643
- }
1644
- function m(g, x, p) {
1645
- let d = g;
1646
- if (g && !p && typeof g == "object") {
1647
- if (c.endsWith(x, "{}"))
1648
- x = r ? x : x.slice(0, -2), g = JSON.stringify(g);
1649
- else if (c.isArray(g) && Eo(g) || (c.isFileList(g) || c.endsWith(x, "[]")) && (d = c.toArray(g)))
1650
- return x = dn(x), d.forEach(function(R, y) {
1651
- !(c.isUndefined(R) || R === null) && t.append(
1652
- // eslint-disable-next-line no-nested-ternary
1653
- a === !0 ? Ut([x], y, s) : a === null ? x : x + "[]",
1654
- f(R)
1655
- );
1656
- }), !1;
1657
- }
1658
- return ct(g) ? !0 : (t.append(Ut(p, x, s), f(g)), !1);
1659
- }
1660
- const u = [], C = Object.assign(vo, {
1661
- defaultVisitor: m,
1662
- convertValue: f,
1663
- isVisitable: ct
1664
- });
1665
- function O(g, x) {
1666
- if (!c.isUndefined(g)) {
1667
- if (u.indexOf(g) !== -1)
1668
- throw Error("Circular reference detected in " + x.join("."));
1669
- u.push(g), c.forEach(g, function(d, l) {
1670
- (!(c.isUndefined(d) || d === null) && o.call(
1671
- t,
1672
- d,
1673
- c.isString(l) ? l.trim() : l,
1674
- x,
1675
- C
1676
- )) === !0 && O(d, x ? x.concat(l) : [l]);
1677
- }), u.pop();
1678
- }
1679
- }
1680
- if (!c.isObject(e))
1681
- throw new TypeError("data must be an object");
1682
- return O(e), t;
1683
- }
1684
- function Bt(e) {
1685
- const t = {
1686
- "!": "%21",
1687
- "'": "%27",
1688
- "(": "%28",
1689
- ")": "%29",
1690
- "~": "%7E",
1691
- "%20": "+",
1692
- "%00": "\0"
1693
- };
1694
- return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
1695
- return t[r];
1696
- });
1697
- }
1698
- function bt(e, t) {
1699
- this._pairs = [], e && et(e, this, t);
1700
- }
1701
- const hn = bt.prototype;
1702
- hn.append = function(t, n) {
1703
- this._pairs.push([t, n]);
1704
- };
1705
- hn.toString = function(t) {
1706
- const n = t ? function(r) {
1707
- return t.call(this, r, Bt);
1708
- } : Bt;
1709
- return this._pairs.map(function(o) {
1710
- return n(o[0]) + "=" + n(o[1]);
1711
- }, "").join("&");
1712
- };
1713
- function So(e) {
1714
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1715
- }
1716
- function yn(e, t, n) {
1717
- if (!t)
1718
- return e;
1719
- const r = n && n.encode || So;
1720
- c.isFunction(n) && (n = {
1721
- serialize: n
1722
- });
1723
- const o = n && n.serialize;
1724
- let s;
1725
- if (o ? s = o(t, n) : s = c.isURLSearchParams(t) ? t.toString() : new bt(t, n).toString(r), s) {
1726
- const a = e.indexOf("#");
1727
- a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
1728
- }
1729
- return e;
1730
- }
1731
- class jt {
1732
- constructor() {
1733
- this.handlers = [];
1734
- }
1735
- /**
1736
- * Add a new interceptor to the stack
1737
- *
1738
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
1739
- * @param {Function} rejected The function to handle `reject` for a `Promise`
1740
- *
1741
- * @return {Number} An ID used to remove interceptor later
1742
- */
1743
- use(t, n, r) {
1744
- return this.handlers.push({
1745
- fulfilled: t,
1746
- rejected: n,
1747
- synchronous: r ? r.synchronous : !1,
1748
- runWhen: r ? r.runWhen : null
1749
- }), this.handlers.length - 1;
1750
- }
1751
- /**
1752
- * Remove an interceptor from the stack
1753
- *
1754
- * @param {Number} id The ID that was returned by `use`
1755
- *
1756
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1757
- */
1758
- eject(t) {
1759
- this.handlers[t] && (this.handlers[t] = null);
1760
- }
1761
- /**
1762
- * Clear all interceptors from the stack
1763
- *
1764
- * @returns {void}
1765
- */
1766
- clear() {
1767
- this.handlers && (this.handlers = []);
1768
- }
1769
- /**
1770
- * Iterate over all the registered interceptors
1771
- *
1772
- * This method is particularly useful for skipping over any
1773
- * interceptors that may have become `null` calling `eject`.
1774
- *
1775
- * @param {Function} fn The function to call for each interceptor
1776
- *
1777
- * @returns {void}
1778
- */
1779
- forEach(t) {
1780
- c.forEach(this.handlers, function(r) {
1781
- r !== null && t(r);
1782
- });
1783
- }
1784
- }
1785
- const mn = {
1786
- silentJSONParsing: !0,
1787
- forcedJSONParsing: !0,
1788
- clarifyTimeoutError: !1
1789
- }, Ro = typeof URLSearchParams < "u" ? URLSearchParams : bt, Oo = typeof FormData < "u" ? FormData : null, wo = typeof Blob < "u" ? Blob : null, To = {
1790
- isBrowser: !0,
1791
- classes: {
1792
- URLSearchParams: Ro,
1793
- FormData: Oo,
1794
- Blob: wo
1795
- },
1796
- protocols: ["http", "https", "file", "blob", "url", "data"]
1797
- }, gt = typeof window < "u" && typeof document < "u", ut = typeof navigator == "object" && navigator || void 0, Ao = gt && (!ut || ["ReactNative", "NativeScript", "NS"].indexOf(ut.product) < 0), Co = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1798
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", xo = gt && window.location.href || "http://localhost", _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1799
- __proto__: null,
1800
- hasBrowserEnv: gt,
1801
- hasStandardBrowserEnv: Ao,
1802
- hasStandardBrowserWebWorkerEnv: Co,
1803
- navigator: ut,
1804
- origin: xo
1805
- }, Symbol.toStringTag, { value: "Module" })), Z = {
1806
- ..._o,
1807
- ...To
1808
- };
1809
- function Do(e, t) {
1810
- return et(e, new Z.classes.URLSearchParams(), Object.assign({
1811
- visitor: function(n, r, o, s) {
1812
- return Z.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
1813
- }
1814
- }, t));
1815
- }
1816
- function Fo(e) {
1817
- return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
1818
- }
1819
- function No(e) {
1820
- const t = {}, n = Object.keys(e);
1821
- let r;
1822
- const o = n.length;
1823
- let s;
1824
- for (r = 0; r < o; r++)
1825
- s = n[r], t[s] = e[s];
1826
- return t;
1827
- }
1828
- function bn(e) {
1829
- function t(n, r, o, s) {
1830
- let a = n[s++];
1831
- if (a === "__proto__") return !0;
1832
- const i = Number.isFinite(+a), b = s >= n.length;
1833
- return a = !a && c.isArray(o) ? o.length : a, b ? (c.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !i) : ((!o[a] || !c.isObject(o[a])) && (o[a] = []), t(n, r, o[a], s) && c.isArray(o[a]) && (o[a] = No(o[a])), !i);
1834
- }
1835
- if (c.isFormData(e) && c.isFunction(e.entries)) {
1836
- const n = {};
1837
- return c.forEachEntry(e, (r, o) => {
1838
- t(Fo(r), o, n, 0);
1839
- }), n;
1840
- }
1841
- return null;
1842
- }
1843
- function Po(e, t, n) {
1844
- if (c.isString(e))
1845
- try {
1846
- return (t || JSON.parse)(e), c.trim(e);
1847
- } catch (r) {
1848
- if (r.name !== "SyntaxError")
1849
- throw r;
1850
- }
1851
- return (n || JSON.stringify)(e);
1852
- }
1853
- const Be = {
1854
- transitional: mn,
1855
- adapter: ["xhr", "http", "fetch"],
1856
- transformRequest: [function(t, n) {
1857
- const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = c.isObject(t);
1858
- if (s && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
1859
- return o ? JSON.stringify(bn(t)) : t;
1860
- if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
1861
- return t;
1862
- if (c.isArrayBufferView(t))
1863
- return t.buffer;
1864
- if (c.isURLSearchParams(t))
1865
- return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
1866
- let i;
1867
- if (s) {
1868
- if (r.indexOf("application/x-www-form-urlencoded") > -1)
1869
- return Do(t, this.formSerializer).toString();
1870
- if ((i = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
1871
- const b = this.env && this.env.FormData;
1872
- return et(
1873
- i ? { "files[]": t } : t,
1874
- b && new b(),
1875
- this.formSerializer
1876
- );
1877
- }
1878
- }
1879
- return s || o ? (n.setContentType("application/json", !1), Po(t)) : t;
1880
- }],
1881
- transformResponse: [function(t) {
1882
- const n = this.transitional || Be.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
1883
- if (c.isResponse(t) || c.isReadableStream(t))
1884
- return t;
1885
- if (t && c.isString(t) && (r && !this.responseType || o)) {
1886
- const a = !(n && n.silentJSONParsing) && o;
1887
- try {
1888
- return JSON.parse(t);
1889
- } catch (i) {
1890
- if (a)
1891
- throw i.name === "SyntaxError" ? U.from(i, U.ERR_BAD_RESPONSE, this, null, this.response) : i;
1892
- }
1893
- }
1894
- return t;
1895
- }],
1896
- /**
1897
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
1898
- * timeout is not created.
1899
- */
1900
- timeout: 0,
1901
- xsrfCookieName: "XSRF-TOKEN",
1902
- xsrfHeaderName: "X-XSRF-TOKEN",
1903
- maxContentLength: -1,
1904
- maxBodyLength: -1,
1905
- env: {
1906
- FormData: Z.classes.FormData,
1907
- Blob: Z.classes.Blob
1908
- },
1909
- validateStatus: function(t) {
1910
- return t >= 200 && t < 300;
1911
- },
1912
- headers: {
1913
- common: {
1914
- Accept: "application/json, text/plain, */*",
1915
- "Content-Type": void 0
1916
- }
1917
- }
1918
- };
1919
- c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
1920
- Be.headers[e] = {};
1921
- });
1922
- const Uo = c.toObjectSet([
1923
- "age",
1924
- "authorization",
1925
- "content-length",
1926
- "content-type",
1927
- "etag",
1928
- "expires",
1929
- "from",
1930
- "host",
1931
- "if-modified-since",
1932
- "if-unmodified-since",
1933
- "last-modified",
1934
- "location",
1935
- "max-forwards",
1936
- "proxy-authorization",
1937
- "referer",
1938
- "retry-after",
1939
- "user-agent"
1940
- ]), Bo = (e) => {
1941
- const t = {};
1942
- let n, r, o;
1943
- return e && e.split(`
1944
- `).forEach(function(a) {
1945
- o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && Uo[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
1946
- }), t;
1947
- }, $t = Symbol("internals");
1948
- function De(e) {
1949
- return e && String(e).trim().toLowerCase();
1950
- }
1951
- function Me(e) {
1952
- return e === !1 || e == null ? e : c.isArray(e) ? e.map(Me) : String(e);
1953
- }
1954
- function jo(e) {
1955
- const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1956
- let r;
1957
- for (; r = n.exec(e); )
1958
- t[r[1]] = r[2];
1959
- return t;
1960
- }
1961
- const $o = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1962
- function st(e, t, n, r, o) {
1963
- if (c.isFunction(r))
1964
- return r.call(this, t, n);
1965
- if (o && (t = n), !!c.isString(t)) {
1966
- if (c.isString(r))
1967
- return t.indexOf(r) !== -1;
1968
- if (c.isRegExp(r))
1969
- return r.test(t);
1970
- }
1971
- }
1972
- function Lo(e) {
1973
- return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
1974
- }
1975
- function qo(e, t) {
1976
- const n = c.toCamelCase(" " + t);
1977
- ["get", "set", "has"].forEach((r) => {
1978
- Object.defineProperty(e, r + n, {
1979
- value: function(o, s, a) {
1980
- return this[r].call(this, t, o, s, a);
1981
- },
1982
- configurable: !0
1983
- });
1984
- });
1985
- }
1986
- let re = class {
1987
- constructor(t) {
1988
- t && this.set(t);
1989
- }
1990
- set(t, n, r) {
1991
- const o = this;
1992
- function s(i, b, f) {
1993
- const m = De(b);
1994
- if (!m)
1995
- throw new Error("header name must be a non-empty string");
1996
- const u = c.findKey(o, m);
1997
- (!u || o[u] === void 0 || f === !0 || f === void 0 && o[u] !== !1) && (o[u || b] = Me(i));
1998
- }
1999
- const a = (i, b) => c.forEach(i, (f, m) => s(f, m, b));
2000
- if (c.isPlainObject(t) || t instanceof this.constructor)
2001
- a(t, n);
2002
- else if (c.isString(t) && (t = t.trim()) && !$o(t))
2003
- a(Bo(t), n);
2004
- else if (c.isObject(t) && c.isIterable(t)) {
2005
- let i = {}, b, f;
2006
- for (const m of t) {
2007
- if (!c.isArray(m))
2008
- throw TypeError("Object iterator must return a key-value pair");
2009
- i[f = m[0]] = (b = i[f]) ? c.isArray(b) ? [...b, m[1]] : [b, m[1]] : m[1];
2010
- }
2011
- a(i, n);
2012
- } else
2013
- t != null && s(n, t, r);
2014
- return this;
2015
- }
2016
- get(t, n) {
2017
- if (t = De(t), t) {
2018
- const r = c.findKey(this, t);
2019
- if (r) {
2020
- const o = this[r];
2021
- if (!n)
2022
- return o;
2023
- if (n === !0)
2024
- return jo(o);
2025
- if (c.isFunction(n))
2026
- return n.call(this, o, r);
2027
- if (c.isRegExp(n))
2028
- return n.exec(o);
2029
- throw new TypeError("parser must be boolean|regexp|function");
2030
- }
2031
- }
2032
- }
2033
- has(t, n) {
2034
- if (t = De(t), t) {
2035
- const r = c.findKey(this, t);
2036
- return !!(r && this[r] !== void 0 && (!n || st(this, this[r], r, n)));
2037
- }
2038
- return !1;
2039
- }
2040
- delete(t, n) {
2041
- const r = this;
2042
- let o = !1;
2043
- function s(a) {
2044
- if (a = De(a), a) {
2045
- const i = c.findKey(r, a);
2046
- i && (!n || st(r, r[i], i, n)) && (delete r[i], o = !0);
2047
- }
2048
- }
2049
- return c.isArray(t) ? t.forEach(s) : s(t), o;
2050
- }
2051
- clear(t) {
2052
- const n = Object.keys(this);
2053
- let r = n.length, o = !1;
2054
- for (; r--; ) {
2055
- const s = n[r];
2056
- (!t || st(this, this[s], s, t, !0)) && (delete this[s], o = !0);
2057
- }
2058
- return o;
2059
- }
2060
- normalize(t) {
2061
- const n = this, r = {};
2062
- return c.forEach(this, (o, s) => {
2063
- const a = c.findKey(r, s);
2064
- if (a) {
2065
- n[a] = Me(o), delete n[s];
2066
- return;
2067
- }
2068
- const i = t ? Lo(s) : String(s).trim();
2069
- i !== s && delete n[s], n[i] = Me(o), r[i] = !0;
2070
- }), this;
2071
- }
2072
- concat(...t) {
2073
- return this.constructor.concat(this, ...t);
2074
- }
2075
- toJSON(t) {
2076
- const n = /* @__PURE__ */ Object.create(null);
2077
- return c.forEach(this, (r, o) => {
2078
- r != null && r !== !1 && (n[o] = t && c.isArray(r) ? r.join(", ") : r);
2079
- }), n;
2080
- }
2081
- [Symbol.iterator]() {
2082
- return Object.entries(this.toJSON())[Symbol.iterator]();
2083
- }
2084
- toString() {
2085
- return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
2086
- `);
2087
- }
2088
- getSetCookie() {
2089
- return this.get("set-cookie") || [];
2090
- }
2091
- get [Symbol.toStringTag]() {
2092
- return "AxiosHeaders";
2093
- }
2094
- static from(t) {
2095
- return t instanceof this ? t : new this(t);
2096
- }
2097
- static concat(t, ...n) {
2098
- const r = new this(t);
2099
- return n.forEach((o) => r.set(o)), r;
2100
- }
2101
- static accessor(t) {
2102
- const r = (this[$t] = this[$t] = {
2103
- accessors: {}
2104
- }).accessors, o = this.prototype;
2105
- function s(a) {
2106
- const i = De(a);
2107
- r[i] || (qo(o, a), r[i] = !0);
2108
- }
2109
- return c.isArray(t) ? t.forEach(s) : s(t), this;
2110
- }
2111
- };
2112
- re.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
2113
- c.reduceDescriptors(re.prototype, ({ value: e }, t) => {
2114
- let n = t[0].toUpperCase() + t.slice(1);
2115
- return {
2116
- get: () => e,
2117
- set(r) {
2118
- this[n] = r;
2119
- }
2120
- };
2121
- });
2122
- c.freezeMethods(re);
2123
- function at(e, t) {
2124
- const n = this || Be, r = t || n, o = re.from(r.headers);
2125
- let s = r.data;
2126
- return c.forEach(e, function(i) {
2127
- s = i.call(n, s, o.normalize(), t ? t.status : void 0);
2128
- }), o.normalize(), s;
2129
- }
2130
- function gn(e) {
2131
- return !!(e && e.__CANCEL__);
2132
- }
2133
- function Te(e, t, n) {
2134
- U.call(this, e ?? "canceled", U.ERR_CANCELED, t, n), this.name = "CanceledError";
2135
- }
2136
- c.inherits(Te, U, {
2137
- __CANCEL__: !0
2138
- });
2139
- function kn(e, t, n) {
2140
- const r = n.config.validateStatus;
2141
- !n.status || !r || r(n.status) ? e(n) : t(new U(
2142
- "Request failed with status code " + n.status,
2143
- [U.ERR_BAD_REQUEST, U.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
2144
- n.config,
2145
- n.request,
2146
- n
2147
- ));
2148
- }
2149
- function Jo(e) {
2150
- const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
2151
- return t && t[1] || "";
2152
- }
2153
- function Mo(e, t) {
2154
- e = e || 10;
2155
- const n = new Array(e), r = new Array(e);
2156
- let o = 0, s = 0, a;
2157
- return t = t !== void 0 ? t : 1e3, function(b) {
2158
- const f = Date.now(), m = r[s];
2159
- a || (a = f), n[o] = b, r[o] = f;
2160
- let u = s, C = 0;
2161
- for (; u !== o; )
2162
- C += n[u++], u = u % e;
2163
- if (o = (o + 1) % e, o === s && (s = (s + 1) % e), f - a < t)
2164
- return;
2165
- const O = m && f - m;
2166
- return O ? Math.round(C * 1e3 / O) : void 0;
2167
- };
2168
- }
2169
- function zo(e, t) {
2170
- let n = 0, r = 1e3 / t, o, s;
2171
- const a = (f, m = Date.now()) => {
2172
- n = m, o = null, s && (clearTimeout(s), s = null), e.apply(null, f);
2173
- };
2174
- return [(...f) => {
2175
- const m = Date.now(), u = m - n;
2176
- u >= r ? a(f, m) : (o = f, s || (s = setTimeout(() => {
2177
- s = null, a(o);
2178
- }, r - u)));
2179
- }, () => o && a(o)];
2180
- }
2181
- const Ve = (e, t, n = 3) => {
2182
- let r = 0;
2183
- const o = Mo(50, 250);
2184
- return zo((s) => {
2185
- const a = s.loaded, i = s.lengthComputable ? s.total : void 0, b = a - r, f = o(b), m = a <= i;
2186
- r = a;
2187
- const u = {
2188
- loaded: a,
2189
- total: i,
2190
- progress: i ? a / i : void 0,
2191
- bytes: b,
2192
- rate: f || void 0,
2193
- estimated: f && i && m ? (i - a) / f : void 0,
2194
- event: s,
2195
- lengthComputable: i != null,
2196
- [t ? "download" : "upload"]: !0
2197
- };
2198
- e(u);
2199
- }, n);
2200
- }, Lt = (e, t) => {
2201
- const n = e != null;
2202
- return [(r) => t[0]({
2203
- lengthComputable: n,
2204
- total: e,
2205
- loaded: r
2206
- }), t[1]];
2207
- }, qt = (e) => (...t) => c.asap(() => e(...t)), Ho = Z.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, Z.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
2208
- new URL(Z.origin),
2209
- Z.navigator && /(msie|trident)/i.test(Z.navigator.userAgent)
2210
- ) : () => !0, Vo = Z.hasStandardBrowserEnv ? (
2211
- // Standard browser envs support document.cookie
2212
- {
2213
- write(e, t, n, r, o, s) {
2214
- const a = [e + "=" + encodeURIComponent(t)];
2215
- c.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), c.isString(r) && a.push("path=" + r), c.isString(o) && a.push("domain=" + o), s === !0 && a.push("secure"), document.cookie = a.join("; ");
2216
- },
2217
- read(e) {
2218
- const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
2219
- return t ? decodeURIComponent(t[3]) : null;
2220
- },
2221
- remove(e) {
2222
- this.write(e, "", Date.now() - 864e5);
2223
- }
2224
- }
2225
- ) : (
2226
- // Non-standard browser env (web workers, react-native) lack needed support.
2227
- {
2228
- write() {
2229
- },
2230
- read() {
2231
- return null;
2232
- },
2233
- remove() {
2234
- }
2235
- }
2236
- );
2237
- function Wo(e) {
2238
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
2239
- }
2240
- function Ko(e, t) {
2241
- return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
2242
- }
2243
- function En(e, t, n) {
2244
- let r = !Wo(t);
2245
- return e && (r || n == !1) ? Ko(e, t) : t;
2246
- }
2247
- const Jt = (e) => e instanceof re ? { ...e } : e;
2248
- function Ee(e, t) {
2249
- t = t || {};
2250
- const n = {};
2251
- function r(f, m, u, C) {
2252
- return c.isPlainObject(f) && c.isPlainObject(m) ? c.merge.call({ caseless: C }, f, m) : c.isPlainObject(m) ? c.merge({}, m) : c.isArray(m) ? m.slice() : m;
2253
- }
2254
- function o(f, m, u, C) {
2255
- if (c.isUndefined(m)) {
2256
- if (!c.isUndefined(f))
2257
- return r(void 0, f, u, C);
2258
- } else return r(f, m, u, C);
2259
- }
2260
- function s(f, m) {
2261
- if (!c.isUndefined(m))
2262
- return r(void 0, m);
2263
- }
2264
- function a(f, m) {
2265
- if (c.isUndefined(m)) {
2266
- if (!c.isUndefined(f))
2267
- return r(void 0, f);
2268
- } else return r(void 0, m);
2269
- }
2270
- function i(f, m, u) {
2271
- if (u in t)
2272
- return r(f, m);
2273
- if (u in e)
2274
- return r(void 0, f);
2275
- }
2276
- const b = {
2277
- url: s,
2278
- method: s,
2279
- data: s,
2280
- baseURL: a,
2281
- transformRequest: a,
2282
- transformResponse: a,
2283
- paramsSerializer: a,
2284
- timeout: a,
2285
- timeoutMessage: a,
2286
- withCredentials: a,
2287
- withXSRFToken: a,
2288
- adapter: a,
2289
- responseType: a,
2290
- xsrfCookieName: a,
2291
- xsrfHeaderName: a,
2292
- onUploadProgress: a,
2293
- onDownloadProgress: a,
2294
- decompress: a,
2295
- maxContentLength: a,
2296
- maxBodyLength: a,
2297
- beforeRedirect: a,
2298
- transport: a,
2299
- httpAgent: a,
2300
- httpsAgent: a,
2301
- cancelToken: a,
2302
- socketPath: a,
2303
- responseEncoding: a,
2304
- validateStatus: i,
2305
- headers: (f, m, u) => o(Jt(f), Jt(m), u, !0)
2306
- };
2307
- return c.forEach(Object.keys(Object.assign({}, e, t)), function(m) {
2308
- const u = b[m] || o, C = u(e[m], t[m], m);
2309
- c.isUndefined(C) && u !== i || (n[m] = C);
2310
- }), n;
2311
- }
2312
- const vn = (e) => {
2313
- const t = Ee({}, e);
2314
- let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: a, auth: i } = t;
2315
- t.headers = a = re.from(a), t.url = yn(En(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
2316
- "Authorization",
2317
- "Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
2318
- );
2319
- let b;
2320
- if (c.isFormData(n)) {
2321
- if (Z.hasStandardBrowserEnv || Z.hasStandardBrowserWebWorkerEnv)
2322
- a.setContentType(void 0);
2323
- else if ((b = a.getContentType()) !== !1) {
2324
- const [f, ...m] = b ? b.split(";").map((u) => u.trim()).filter(Boolean) : [];
2325
- a.setContentType([f || "multipart/form-data", ...m].join("; "));
2326
- }
2327
- }
2328
- if (Z.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && Ho(t.url))) {
2329
- const f = o && s && Vo.read(s);
2330
- f && a.set(o, f);
2331
- }
2332
- return t;
2333
- }, Io = typeof XMLHttpRequest < "u", Go = Io && function(e) {
2334
- return new Promise(function(n, r) {
2335
- const o = vn(e);
2336
- let s = o.data;
2337
- const a = re.from(o.headers).normalize();
2338
- let { responseType: i, onUploadProgress: b, onDownloadProgress: f } = o, m, u, C, O, g;
2339
- function x() {
2340
- O && O(), g && g(), o.cancelToken && o.cancelToken.unsubscribe(m), o.signal && o.signal.removeEventListener("abort", m);
2341
- }
2342
- let p = new XMLHttpRequest();
2343
- p.open(o.method.toUpperCase(), o.url, !0), p.timeout = o.timeout;
2344
- function d() {
2345
- if (!p)
2346
- return;
2347
- const R = re.from(
2348
- "getAllResponseHeaders" in p && p.getAllResponseHeaders()
2349
- ), h = {
2350
- data: !i || i === "text" || i === "json" ? p.responseText : p.response,
2351
- status: p.status,
2352
- statusText: p.statusText,
2353
- headers: R,
2354
- config: e,
2355
- request: p
2356
- };
2357
- kn(function(v) {
2358
- n(v), x();
2359
- }, function(v) {
2360
- r(v), x();
2361
- }, h), p = null;
2362
- }
2363
- "onloadend" in p ? p.onloadend = d : p.onreadystatechange = function() {
2364
- !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(d);
2365
- }, p.onabort = function() {
2366
- p && (r(new U("Request aborted", U.ECONNABORTED, e, p)), p = null);
2367
- }, p.onerror = function() {
2368
- r(new U("Network Error", U.ERR_NETWORK, e, p)), p = null;
2369
- }, p.ontimeout = function() {
2370
- let y = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
2371
- const h = o.transitional || mn;
2372
- o.timeoutErrorMessage && (y = o.timeoutErrorMessage), r(new U(
2373
- y,
2374
- h.clarifyTimeoutError ? U.ETIMEDOUT : U.ECONNABORTED,
2375
- e,
2376
- p
2377
- )), p = null;
2378
- }, s === void 0 && a.setContentType(null), "setRequestHeader" in p && c.forEach(a.toJSON(), function(y, h) {
2379
- p.setRequestHeader(h, y);
2380
- }), c.isUndefined(o.withCredentials) || (p.withCredentials = !!o.withCredentials), i && i !== "json" && (p.responseType = o.responseType), f && ([C, g] = Ve(f, !0), p.addEventListener("progress", C)), b && p.upload && ([u, O] = Ve(b), p.upload.addEventListener("progress", u), p.upload.addEventListener("loadend", O)), (o.cancelToken || o.signal) && (m = (R) => {
2381
- p && (r(!R || R.type ? new Te(null, e, p) : R), p.abort(), p = null);
2382
- }, o.cancelToken && o.cancelToken.subscribe(m), o.signal && (o.signal.aborted ? m() : o.signal.addEventListener("abort", m)));
2383
- const l = Jo(o.url);
2384
- if (l && Z.protocols.indexOf(l) === -1) {
2385
- r(new U("Unsupported protocol " + l + ":", U.ERR_BAD_REQUEST, e));
2386
- return;
2387
- }
2388
- p.send(s || null);
2389
- });
2390
- }, Xo = (e, t) => {
2391
- const { length: n } = e = e ? e.filter(Boolean) : [];
2392
- if (t || n) {
2393
- let r = new AbortController(), o;
2394
- const s = function(f) {
2395
- if (!o) {
2396
- o = !0, i();
2397
- const m = f instanceof Error ? f : this.reason;
2398
- r.abort(m instanceof U ? m : new Te(m instanceof Error ? m.message : m));
2399
- }
2400
- };
2401
- let a = t && setTimeout(() => {
2402
- a = null, s(new U(`timeout ${t} of ms exceeded`, U.ETIMEDOUT));
2403
- }, t);
2404
- const i = () => {
2405
- e && (a && clearTimeout(a), a = null, e.forEach((f) => {
2406
- f.unsubscribe ? f.unsubscribe(s) : f.removeEventListener("abort", s);
2407
- }), e = null);
2408
- };
2409
- e.forEach((f) => f.addEventListener("abort", s));
2410
- const { signal: b } = r;
2411
- return b.unsubscribe = () => c.asap(i), b;
2412
- }
2413
- }, Zo = function* (e, t) {
2414
- let n = e.byteLength;
2415
- if (n < t) {
2416
- yield e;
2417
- return;
2418
- }
2419
- let r = 0, o;
2420
- for (; r < n; )
2421
- o = r + t, yield e.slice(r, o), r = o;
2422
- }, Qo = async function* (e, t) {
2423
- for await (const n of Yo(e))
2424
- yield* Zo(n, t);
2425
- }, Yo = async function* (e) {
2426
- if (e[Symbol.asyncIterator]) {
2427
- yield* e;
2428
- return;
2429
- }
2430
- const t = e.getReader();
2431
- try {
2432
- for (; ; ) {
2433
- const { done: n, value: r } = await t.read();
2434
- if (n)
2435
- break;
2436
- yield r;
2437
- }
2438
- } finally {
2439
- await t.cancel();
2440
- }
2441
- }, Mt = (e, t, n, r) => {
2442
- const o = Qo(e, t);
2443
- let s = 0, a, i = (b) => {
2444
- a || (a = !0, r && r(b));
2445
- };
2446
- return new ReadableStream({
2447
- async pull(b) {
2448
- try {
2449
- const { done: f, value: m } = await o.next();
2450
- if (f) {
2451
- i(), b.close();
2452
- return;
2453
- }
2454
- let u = m.byteLength;
2455
- if (n) {
2456
- let C = s += u;
2457
- n(C);
2458
- }
2459
- b.enqueue(new Uint8Array(m));
2460
- } catch (f) {
2461
- throw i(f), f;
2462
- }
2463
- },
2464
- cancel(b) {
2465
- return i(b), o.return();
2466
- }
2467
- }, {
2468
- highWaterMark: 2
2469
- });
2470
- }, tt = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Sn = tt && typeof ReadableStream == "function", es = tt && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Rn = (e, ...t) => {
2471
- try {
2472
- return !!e(...t);
2473
- } catch {
2474
- return !1;
2475
- }
2476
- }, ts = Sn && Rn(() => {
2477
- let e = !1;
2478
- const t = new Request(Z.origin, {
2479
- body: new ReadableStream(),
2480
- method: "POST",
2481
- get duplex() {
2482
- return e = !0, "half";
2483
- }
2484
- }).headers.has("Content-Type");
2485
- return e && !t;
2486
- }), zt = 64 * 1024, ft = Sn && Rn(() => c.isReadableStream(new Response("").body)), We = {
2487
- stream: ft && ((e) => e.body)
2488
- };
2489
- tt && ((e) => {
2490
- ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
2491
- !We[t] && (We[t] = c.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
2492
- throw new U(`Response type '${t}' is not supported`, U.ERR_NOT_SUPPORT, r);
2493
- });
2494
- });
2495
- })(new Response());
2496
- const ns = async (e) => {
2497
- if (e == null)
2498
- return 0;
2499
- if (c.isBlob(e))
2500
- return e.size;
2501
- if (c.isSpecCompliantForm(e))
2502
- return (await new Request(Z.origin, {
2503
- method: "POST",
2504
- body: e
2505
- }).arrayBuffer()).byteLength;
2506
- if (c.isArrayBufferView(e) || c.isArrayBuffer(e))
2507
- return e.byteLength;
2508
- if (c.isURLSearchParams(e) && (e = e + ""), c.isString(e))
2509
- return (await es(e)).byteLength;
2510
- }, rs = async (e, t) => {
2511
- const n = c.toFiniteNumber(e.getContentLength());
2512
- return n ?? ns(t);
2513
- }, os = tt && (async (e) => {
2514
- let {
2515
- url: t,
2516
- method: n,
2517
- data: r,
2518
- signal: o,
2519
- cancelToken: s,
2520
- timeout: a,
2521
- onDownloadProgress: i,
2522
- onUploadProgress: b,
2523
- responseType: f,
2524
- headers: m,
2525
- withCredentials: u = "same-origin",
2526
- fetchOptions: C
2527
- } = vn(e);
2528
- f = f ? (f + "").toLowerCase() : "text";
2529
- let O = Xo([o, s && s.toAbortSignal()], a), g;
2530
- const x = O && O.unsubscribe && (() => {
2531
- O.unsubscribe();
2532
- });
2533
- let p;
2534
- try {
2535
- if (b && ts && n !== "get" && n !== "head" && (p = await rs(m, r)) !== 0) {
2536
- let h = new Request(t, {
2537
- method: "POST",
2538
- body: r,
2539
- duplex: "half"
2540
- }), E;
2541
- if (c.isFormData(r) && (E = h.headers.get("content-type")) && m.setContentType(E), h.body) {
2542
- const [v, D] = Lt(
2543
- p,
2544
- Ve(qt(b))
2545
- );
2546
- r = Mt(h.body, zt, v, D);
2547
- }
2548
- }
2549
- c.isString(u) || (u = u ? "include" : "omit");
2550
- const d = "credentials" in Request.prototype;
2551
- g = new Request(t, {
2552
- ...C,
2553
- signal: O,
2554
- method: n.toUpperCase(),
2555
- headers: m.normalize().toJSON(),
2556
- body: r,
2557
- duplex: "half",
2558
- credentials: d ? u : void 0
2559
- });
2560
- let l = await fetch(g);
2561
- const R = ft && (f === "stream" || f === "response");
2562
- if (ft && (i || R && x)) {
2563
- const h = {};
2564
- ["status", "statusText", "headers"].forEach((N) => {
2565
- h[N] = l[N];
2566
- });
2567
- const E = c.toFiniteNumber(l.headers.get("content-length")), [v, D] = i && Lt(
2568
- E,
2569
- Ve(qt(i), !0)
2570
- ) || [];
2571
- l = new Response(
2572
- Mt(l.body, zt, v, () => {
2573
- D && D(), x && x();
2574
- }),
2575
- h
2576
- );
2577
- }
2578
- f = f || "text";
2579
- let y = await We[c.findKey(We, f) || "text"](l, e);
2580
- return !R && x && x(), await new Promise((h, E) => {
2581
- kn(h, E, {
2582
- data: y,
2583
- headers: re.from(l.headers),
2584
- status: l.status,
2585
- statusText: l.statusText,
2586
- config: e,
2587
- request: g
2588
- });
2589
- });
2590
- } catch (d) {
2591
- throw x && x(), d && d.name === "TypeError" && /Load failed|fetch/i.test(d.message) ? Object.assign(
2592
- new U("Network Error", U.ERR_NETWORK, e, g),
2593
- {
2594
- cause: d.cause || d
2595
- }
2596
- ) : U.from(d, d && d.code, e, g);
2597
- }
2598
- }), pt = {
2599
- http: ko,
2600
- xhr: Go,
2601
- fetch: os
2602
- };
2603
- c.forEach(pt, (e, t) => {
2604
- if (e) {
2605
- try {
2606
- Object.defineProperty(e, "name", { value: t });
2607
- } catch {
2608
- }
2609
- Object.defineProperty(e, "adapterName", { value: t });
2610
- }
2611
- });
2612
- const Ht = (e) => `- ${e}`, ss = (e) => c.isFunction(e) || e === null || e === !1, On = {
2613
- getAdapter: (e) => {
2614
- e = c.isArray(e) ? e : [e];
2615
- const { length: t } = e;
2616
- let n, r;
2617
- const o = {};
2618
- for (let s = 0; s < t; s++) {
2619
- n = e[s];
2620
- let a;
2621
- if (r = n, !ss(n) && (r = pt[(a = String(n)).toLowerCase()], r === void 0))
2622
- throw new U(`Unknown adapter '${a}'`);
2623
- if (r)
2624
- break;
2625
- o[a || "#" + s] = r;
2626
- }
2627
- if (!r) {
2628
- const s = Object.entries(o).map(
2629
- ([i, b]) => `adapter ${i} ` + (b === !1 ? "is not supported by the environment" : "is not available in the build")
2630
- );
2631
- let a = t ? s.length > 1 ? `since :
2632
- ` + s.map(Ht).join(`
2633
- `) : " " + Ht(s[0]) : "as no adapter specified";
2634
- throw new U(
2635
- "There is no suitable adapter to dispatch the request " + a,
2636
- "ERR_NOT_SUPPORT"
2637
- );
2638
- }
2639
- return r;
2640
- },
2641
- adapters: pt
2642
- };
2643
- function it(e) {
2644
- if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
2645
- throw new Te(null, e);
2646
- }
2647
- function Vt(e) {
2648
- return it(e), e.headers = re.from(e.headers), e.data = at.call(
2649
- e,
2650
- e.transformRequest
2651
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), On.getAdapter(e.adapter || Be.adapter)(e).then(function(r) {
2652
- return it(e), r.data = at.call(
2653
- e,
2654
- e.transformResponse,
2655
- r
2656
- ), r.headers = re.from(r.headers), r;
2657
- }, function(r) {
2658
- return gn(r) || (it(e), r && r.response && (r.response.data = at.call(
2659
- e,
2660
- e.transformResponse,
2661
- r.response
2662
- ), r.response.headers = re.from(r.response.headers))), Promise.reject(r);
2663
- });
2664
- }
2665
- const wn = "1.9.0", nt = {};
2666
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
2667
- nt[e] = function(r) {
2668
- return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
2669
- };
2670
- });
2671
- const Wt = {};
2672
- nt.transitional = function(t, n, r) {
2673
- function o(s, a) {
2674
- return "[Axios v" + wn + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
2675
- }
2676
- return (s, a, i) => {
2677
- if (t === !1)
2678
- throw new U(
2679
- o(a, " has been removed" + (n ? " in " + n : "")),
2680
- U.ERR_DEPRECATED
2681
- );
2682
- return n && !Wt[a] && (Wt[a] = !0, console.warn(
2683
- o(
2684
- a,
2685
- " has been deprecated since v" + n + " and will be removed in the near future"
2686
- )
2687
- )), t ? t(s, a, i) : !0;
2688
- };
2689
- };
2690
- nt.spelling = function(t) {
2691
- return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
2692
- };
2693
- function as(e, t, n) {
2694
- if (typeof e != "object")
2695
- throw new U("options must be an object", U.ERR_BAD_OPTION_VALUE);
2696
- const r = Object.keys(e);
2697
- let o = r.length;
2698
- for (; o-- > 0; ) {
2699
- const s = r[o], a = t[s];
2700
- if (a) {
2701
- const i = e[s], b = i === void 0 || a(i, s, e);
2702
- if (b !== !0)
2703
- throw new U("option " + s + " must be " + b, U.ERR_BAD_OPTION_VALUE);
2704
- continue;
2705
- }
2706
- if (n !== !0)
2707
- throw new U("Unknown option " + s, U.ERR_BAD_OPTION);
2708
- }
2709
- }
2710
- const ze = {
2711
- assertOptions: as,
2712
- validators: nt
2713
- }, ce = ze.validators;
2714
- let ge = class {
2715
- constructor(t) {
2716
- this.defaults = t || {}, this.interceptors = {
2717
- request: new jt(),
2718
- response: new jt()
2719
- };
2720
- }
2721
- /**
2722
- * Dispatch a request
2723
- *
2724
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
2725
- * @param {?Object} config
2726
- *
2727
- * @returns {Promise} The Promise to be fulfilled
2728
- */
2729
- async request(t, n) {
2730
- try {
2731
- return await this._request(t, n);
2732
- } catch (r) {
2733
- if (r instanceof Error) {
2734
- let o = {};
2735
- Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
2736
- const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
2737
- try {
2738
- r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
2739
- ` + s) : r.stack = s;
2740
- } catch {
2741
- }
2742
- }
2743
- throw r;
2744
- }
2745
- }
2746
- _request(t, n) {
2747
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Ee(this.defaults, n);
2748
- const { transitional: r, paramsSerializer: o, headers: s } = n;
2749
- r !== void 0 && ze.assertOptions(r, {
2750
- silentJSONParsing: ce.transitional(ce.boolean),
2751
- forcedJSONParsing: ce.transitional(ce.boolean),
2752
- clarifyTimeoutError: ce.transitional(ce.boolean)
2753
- }, !1), o != null && (c.isFunction(o) ? n.paramsSerializer = {
2754
- serialize: o
2755
- } : ze.assertOptions(o, {
2756
- encode: ce.function,
2757
- serialize: ce.function
2758
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ze.assertOptions(n, {
2759
- baseUrl: ce.spelling("baseURL"),
2760
- withXsrfToken: ce.spelling("withXSRFToken")
2761
- }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
2762
- let a = s && c.merge(
2763
- s.common,
2764
- s[n.method]
2765
- );
2766
- s && c.forEach(
2767
- ["delete", "get", "head", "post", "put", "patch", "common"],
2768
- (g) => {
2769
- delete s[g];
2770
- }
2771
- ), n.headers = re.concat(a, s);
2772
- const i = [];
2773
- let b = !0;
2774
- this.interceptors.request.forEach(function(x) {
2775
- typeof x.runWhen == "function" && x.runWhen(n) === !1 || (b = b && x.synchronous, i.unshift(x.fulfilled, x.rejected));
2776
- });
2777
- const f = [];
2778
- this.interceptors.response.forEach(function(x) {
2779
- f.push(x.fulfilled, x.rejected);
2780
- });
2781
- let m, u = 0, C;
2782
- if (!b) {
2783
- const g = [Vt.bind(this), void 0];
2784
- for (g.unshift.apply(g, i), g.push.apply(g, f), C = g.length, m = Promise.resolve(n); u < C; )
2785
- m = m.then(g[u++], g[u++]);
2786
- return m;
2787
- }
2788
- C = i.length;
2789
- let O = n;
2790
- for (u = 0; u < C; ) {
2791
- const g = i[u++], x = i[u++];
2792
- try {
2793
- O = g(O);
2794
- } catch (p) {
2795
- x.call(this, p);
2796
- break;
2797
- }
2798
- }
2799
- try {
2800
- m = Vt.call(this, O);
2801
- } catch (g) {
2802
- return Promise.reject(g);
2803
- }
2804
- for (u = 0, C = f.length; u < C; )
2805
- m = m.then(f[u++], f[u++]);
2806
- return m;
2807
- }
2808
- getUri(t) {
2809
- t = Ee(this.defaults, t);
2810
- const n = En(t.baseURL, t.url, t.allowAbsoluteUrls);
2811
- return yn(n, t.params, t.paramsSerializer);
2812
- }
2813
- };
2814
- c.forEach(["delete", "get", "head", "options"], function(t) {
2815
- ge.prototype[t] = function(n, r) {
2816
- return this.request(Ee(r || {}, {
2817
- method: t,
2818
- url: n,
2819
- data: (r || {}).data
2820
- }));
2821
- };
2822
- });
2823
- c.forEach(["post", "put", "patch"], function(t) {
2824
- function n(r) {
2825
- return function(s, a, i) {
2826
- return this.request(Ee(i || {}, {
2827
- method: t,
2828
- headers: r ? {
2829
- "Content-Type": "multipart/form-data"
2830
- } : {},
2831
- url: s,
2832
- data: a
2833
- }));
2834
- };
2835
- }
2836
- ge.prototype[t] = n(), ge.prototype[t + "Form"] = n(!0);
2837
- });
2838
- let is = class Tn {
2839
- constructor(t) {
2840
- if (typeof t != "function")
2841
- throw new TypeError("executor must be a function.");
2842
- let n;
2843
- this.promise = new Promise(function(s) {
2844
- n = s;
2845
- });
2846
- const r = this;
2847
- this.promise.then((o) => {
2848
- if (!r._listeners) return;
2849
- let s = r._listeners.length;
2850
- for (; s-- > 0; )
2851
- r._listeners[s](o);
2852
- r._listeners = null;
2853
- }), this.promise.then = (o) => {
2854
- let s;
2855
- const a = new Promise((i) => {
2856
- r.subscribe(i), s = i;
2857
- }).then(o);
2858
- return a.cancel = function() {
2859
- r.unsubscribe(s);
2860
- }, a;
2861
- }, t(function(s, a, i) {
2862
- r.reason || (r.reason = new Te(s, a, i), n(r.reason));
2863
- });
2864
- }
2865
- /**
2866
- * Throws a `CanceledError` if cancellation has been requested.
2867
- */
2868
- throwIfRequested() {
2869
- if (this.reason)
2870
- throw this.reason;
2871
- }
2872
- /**
2873
- * Subscribe to the cancel signal
2874
- */
2875
- subscribe(t) {
2876
- if (this.reason) {
2877
- t(this.reason);
2878
- return;
2879
- }
2880
- this._listeners ? this._listeners.push(t) : this._listeners = [t];
2881
- }
2882
- /**
2883
- * Unsubscribe from the cancel signal
2884
- */
2885
- unsubscribe(t) {
2886
- if (!this._listeners)
2887
- return;
2888
- const n = this._listeners.indexOf(t);
2889
- n !== -1 && this._listeners.splice(n, 1);
2890
- }
2891
- toAbortSignal() {
2892
- const t = new AbortController(), n = (r) => {
2893
- t.abort(r);
2894
- };
2895
- return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
2896
- }
2897
- /**
2898
- * Returns an object that contains a new `CancelToken` and a function that, when called,
2899
- * cancels the `CancelToken`.
2900
- */
2901
- static source() {
2902
- let t;
2903
- return {
2904
- token: new Tn(function(o) {
2905
- t = o;
2906
- }),
2907
- cancel: t
2908
- };
2909
- }
2910
- };
2911
- function ls(e) {
2912
- return function(n) {
2913
- return e.apply(null, n);
2914
- };
2915
- }
2916
- function cs(e) {
2917
- return c.isObject(e) && e.isAxiosError === !0;
2918
- }
2919
- const dt = {
2920
- Continue: 100,
2921
- SwitchingProtocols: 101,
2922
- Processing: 102,
2923
- EarlyHints: 103,
2924
- Ok: 200,
2925
- Created: 201,
2926
- Accepted: 202,
2927
- NonAuthoritativeInformation: 203,
2928
- NoContent: 204,
2929
- ResetContent: 205,
2930
- PartialContent: 206,
2931
- MultiStatus: 207,
2932
- AlreadyReported: 208,
2933
- ImUsed: 226,
2934
- MultipleChoices: 300,
2935
- MovedPermanently: 301,
2936
- Found: 302,
2937
- SeeOther: 303,
2938
- NotModified: 304,
2939
- UseProxy: 305,
2940
- Unused: 306,
2941
- TemporaryRedirect: 307,
2942
- PermanentRedirect: 308,
2943
- BadRequest: 400,
2944
- Unauthorized: 401,
2945
- PaymentRequired: 402,
2946
- Forbidden: 403,
2947
- NotFound: 404,
2948
- MethodNotAllowed: 405,
2949
- NotAcceptable: 406,
2950
- ProxyAuthenticationRequired: 407,
2951
- RequestTimeout: 408,
2952
- Conflict: 409,
2953
- Gone: 410,
2954
- LengthRequired: 411,
2955
- PreconditionFailed: 412,
2956
- PayloadTooLarge: 413,
2957
- UriTooLong: 414,
2958
- UnsupportedMediaType: 415,
2959
- RangeNotSatisfiable: 416,
2960
- ExpectationFailed: 417,
2961
- ImATeapot: 418,
2962
- MisdirectedRequest: 421,
2963
- UnprocessableEntity: 422,
2964
- Locked: 423,
2965
- FailedDependency: 424,
2966
- TooEarly: 425,
2967
- UpgradeRequired: 426,
2968
- PreconditionRequired: 428,
2969
- TooManyRequests: 429,
2970
- RequestHeaderFieldsTooLarge: 431,
2971
- UnavailableForLegalReasons: 451,
2972
- InternalServerError: 500,
2973
- NotImplemented: 501,
2974
- BadGateway: 502,
2975
- ServiceUnavailable: 503,
2976
- GatewayTimeout: 504,
2977
- HttpVersionNotSupported: 505,
2978
- VariantAlsoNegotiates: 506,
2979
- InsufficientStorage: 507,
2980
- LoopDetected: 508,
2981
- NotExtended: 510,
2982
- NetworkAuthenticationRequired: 511
2983
- };
2984
- Object.entries(dt).forEach(([e, t]) => {
2985
- dt[t] = e;
2986
- });
2987
- function An(e) {
2988
- const t = new ge(e), n = nn(ge.prototype.request, t);
2989
- return c.extend(n, ge.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
2990
- return An(Ee(e, o));
2991
- }, n;
2992
- }
2993
- const G = An(Be);
2994
- G.Axios = ge;
2995
- G.CanceledError = Te;
2996
- G.CancelToken = is;
2997
- G.isCancel = gn;
2998
- G.VERSION = wn;
2999
- G.toFormData = et;
3000
- G.AxiosError = U;
3001
- G.Cancel = G.CanceledError;
3002
- G.all = function(t) {
3003
- return Promise.all(t);
3004
- };
3005
- G.spread = ls;
3006
- G.isAxiosError = cs;
3007
- G.mergeConfig = Ee;
3008
- G.AxiosHeaders = re;
3009
- G.formToJSON = (e) => bn(c.isHTMLForm(e) ? new FormData(e) : e);
3010
- G.getAdapter = On.getAdapter;
3011
- G.HttpStatusCode = dt;
3012
- G.default = G;
3013
- const {
3014
- Axios: As,
3015
- AxiosError: Cs,
3016
- CanceledError: xs,
3017
- isCancel: _s,
3018
- CancelToken: Ds,
3019
- VERSION: Fs,
3020
- all: Ns,
3021
- Cancel: Ps,
3022
- isAxiosError: Us,
3023
- spread: Bs,
3024
- toFormData: js,
3025
- AxiosHeaders: $s,
3026
- HttpStatusCode: Ls,
3027
- formToJSON: qs,
3028
- getAdapter: Js,
3029
- mergeConfig: Ms
3030
- } = G;
3031
- /*! js-cookie v3.0.5 | MIT */
3032
- function Le(e) {
3033
- for (var t = 1; t < arguments.length; t++) {
3034
- var n = arguments[t];
3035
- for (var r in n)
3036
- e[r] = n[r];
3037
- }
3038
- return e;
3039
- }
3040
- var us = {
3041
- read: function(e) {
3042
- return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
3043
- },
3044
- write: function(e) {
3045
- return encodeURIComponent(e).replace(
3046
- /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
3047
- decodeURIComponent
3048
- );
3049
- }
3050
- };
3051
- function ht(e, t) {
3052
- function n(o, s, a) {
3053
- if (!(typeof document > "u")) {
3054
- a = Le({}, t, a), typeof a.expires == "number" && (a.expires = new Date(Date.now() + a.expires * 864e5)), a.expires && (a.expires = a.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
3055
- var i = "";
3056
- for (var b in a)
3057
- a[b] && (i += "; " + b, a[b] !== !0 && (i += "=" + a[b].split(";")[0]));
3058
- return document.cookie = o + "=" + e.write(s, o) + i;
3059
- }
3060
- }
3061
- function r(o) {
3062
- if (!(typeof document > "u" || arguments.length && !o)) {
3063
- for (var s = document.cookie ? document.cookie.split("; ") : [], a = {}, i = 0; i < s.length; i++) {
3064
- var b = s[i].split("="), f = b.slice(1).join("=");
3065
- try {
3066
- var m = decodeURIComponent(b[0]);
3067
- if (a[m] = e.read(f, m), o === m)
3068
- break;
3069
- } catch {
3070
- }
3071
- }
3072
- return o ? a[o] : a;
3073
- }
3074
- }
3075
- return Object.create(
3076
- {
3077
- set: n,
3078
- get: r,
3079
- remove: function(o, s) {
3080
- n(
3081
- o,
3082
- "",
3083
- Le({}, s, {
3084
- expires: -1
3085
- })
3086
- );
3087
- },
3088
- withAttributes: function(o) {
3089
- return ht(this.converter, Le({}, this.attributes, o));
3090
- },
3091
- withConverter: function(o) {
3092
- return ht(Le({}, this.converter, o), this.attributes);
3093
- }
3094
- },
3095
- {
3096
- attributes: { value: Object.freeze(t) },
3097
- converter: { value: Object.freeze(e) }
3098
- }
3099
- );
3100
- }
3101
- ht(us, { path: "/" });
3102
- const ke = {
3103
- // 查看 v2.4.3版本更新日志
3104
- setKey(e) {
3105
- return `ss-component-new:${e}`;
3106
- },
3107
- // 设置永久缓存
3108
- set(e, t) {
3109
- window.localStorage.setItem(ke.setKey(e), JSON.stringify(t));
3110
- },
3111
- // 获取永久缓存
3112
- get(e) {
3113
- let t = window.localStorage.getItem(ke.setKey(e));
3114
- return JSON.parse(t);
3115
- },
3116
- // 移除永久缓存
3117
- remove(e) {
3118
- window.localStorage.removeItem(ke.setKey(e));
3119
- },
3120
- // 移除全部永久缓存
3121
- clear() {
3122
- window.localStorage.clear();
3123
- }
3124
- }, Cn = /* @__PURE__ */ new Map();
3125
- console.log("import.meta.env.VITE_API_URL", "http://139.196.154.85:20013");
3126
- const xn = G.create({
3127
- baseURL: "http://139.196.154.85:20013",
3128
- timeout: 5e4
3129
- //headers: { 'Content-Type': 'application/json' }, 这个会导致生成代码的上传文件 file为空
3130
- }), Ke = "access-token", yt = `x-${Ke}`;
3131
- xn.interceptors.request.use(
3132
- (e) => {
3133
- var o;
3134
- const t = new AbortController();
3135
- e.signal = t.signal;
3136
- const n = e.url || "";
3137
- Cn.set(n, t);
3138
- const r = ke.get(Ke);
3139
- if (r) {
3140
- e.headers.Authorization = `Bearer ${r}`;
3141
- const s = ps(r), a = ds(s.exp);
3142
- if (/* @__PURE__ */ new Date() >= a) {
3143
- const i = ke.get(yt);
3144
- i && (e.headers["X-Authorization"] = `Bearer ${i}`);
3145
- }
3146
- if (((o = e.method) == null ? void 0 : o.toLowerCase()) === "get" && e.data) {
3147
- let i = e.url + "?" + fs(e.data);
3148
- i = i.slice(0, -1), e.data = {}, e.url = i;
3149
- }
3150
- }
3151
- return e;
3152
- },
3153
- (e) => Promise.reject(e)
3154
- );
3155
- xn.interceptors.response.use(
3156
- (e) => {
3157
- const t = e.config.url || "";
3158
- Cn.delete(t);
3159
- var n = e.status, r = e.data;
3160
- if (n === 401)
3161
- throw new Error(e.statusText || "Request Error.");
3162
- if (n >= 400)
3163
- throw new Error(e.statusText || "Request Error.");
3164
- if (r && r.hasOwnProperty("errors") && r.errors)
3165
- throw new Error(JSON.stringify(r.errors || "Request Error."));
3166
- var o = e.headers[Ke], s = e.headers[yt];
3167
- if (o === "invalid_token")
3168
- throw new Error(e.statusText || "Request Error.");
3169
- if (s && o && (ke.set(Ke, o), ke.set(yt, s)), r.code === 401)
3170
- throw new Error(e.statusText || "Request Error.");
3171
- if (r.code === void 0)
3172
- return Promise.resolve(e);
3173
- if (r.code !== 200) {
3174
- var a;
3175
- throw r.message && typeof r.message == "object" ? a = JSON.stringify(r.message) : a = r.message, _e({
3176
- dangerouslyUseHTMLString: !0,
3177
- message: a,
3178
- type: "error"
3179
- }), new Error(a);
3180
- }
3181
- return e;
3182
- },
3183
- (e) => {
3184
- var t, n;
3185
- if (e.response && e.response.status === 401)
3186
- throw new Error(res.statusText || "Request Error.");
3187
- return e.message.indexOf("timeout") != -1 ? _e.error("网络超时") : e.message == "Network Error" ? _e.error("网络连接错误") : (t = e.response) != null && t.data ? _e.error((n = e.response) == null ? void 0 : n.statusText) : _e.error("接口路径找不到"), Promise.reject(e);
3188
- }
3189
- );
3190
- function fs(e) {
3191
- let t = "";
3192
- for (const o of Object.keys(e)) {
3193
- const s = e[o];
3194
- var n = encodeURIComponent(o) + "=";
3195
- if (s !== null && s !== "" && typeof s < "u")
3196
- if (typeof s == "object") {
3197
- for (const a of Object.keys(s))
3198
- if (s[a] !== null && s[a] !== "" && typeof s[a] < "u") {
3199
- let i = o + "[" + a + "]";
3200
- var r = encodeURIComponent(i) + "=";
3201
- t += r + encodeURIComponent(s[a]) + "&";
3202
- }
3203
- } else
3204
- t += n + encodeURIComponent(s) + "&";
3205
- }
3206
- return t;
3207
- }
3208
- function ps(e) {
3209
- e = e.replace(/_/g, "/").replace(/-/g, "+");
3210
- var t = decodeURIComponent(escape(window.atob(e.split(".")[1])));
3211
- return JSON.parse(t);
3212
- }
3213
- function ds(e) {
3214
- return new Date(e * 1e3);
3215
- }
3216
- const hs = zn(Oe), { itemData: zs } = He(hs), ys = Jn(Oe), { systemKey: Hs, activeMenuPath: Vs } = He(ys), Fe = B(0), Ws = (e) => e.reduce((n, r) => {
3217
- var s, a;
3218
- const o = Object.values(n);
3219
- return (((s = Object.keys(n)) == null ? void 0 : s.length) === 0 || o[o.length - 1].length >= (r == null ? void 0 : r.width)) && (n[Fe.value] = [], Fe.value++), n[Fe.value - 1].push(r), ((a = Object.keys(n)) == null ? void 0 : a.length) === (r == null ? void 0 : r.width) && (n[Fe.value] = [], Fe.value++), n;
3220
- }, {});
3221
- export {
3222
- Ws as a,
3223
- Os as e,
3224
- Rs as g,
3225
- Oe as p,
3226
- Ss as s
3227
- };