@utogether/udp-core 1.0.1-beta.10 → 1.0.1-beta.11

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.
Files changed (83) hide show
  1. package/dist/{403-Ctxjn4q8.js → 403-Dsgsr2M-.js} +1 -1
  2. package/dist/{404-W5yzyiZ9.js → 404-DmPHEfqM.js} +1 -1
  3. package/dist/{500-DXuGEOm4.js → 500-OYEgHR2a.js} +1 -1
  4. package/dist/{AuthorityInfo-C2tflCt8.js → AuthorityInfo-B1H1txG-.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-SVgy3HX7.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BUlmQtjQ.js} +1 -1
  6. package/dist/{Company-PLez5GoH.js → Company-C8ojgx93.js} +3 -3
  7. package/dist/{CompanyPanel-CIGaQooL.js → CompanyPanel-Dageer1t.js} +1 -1
  8. package/dist/{Department-B9wLsXFm.js → Department-Dr94_85I.js} +3 -3
  9. package/dist/{DepartmentPanel-DSM4lTaz.js → DepartmentPanel-Bc5r1HpT.js} +1 -1
  10. package/dist/{DesignPanel-B6a9wW_A.js → DesignPanel-CcWt1Myp.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DtHfoDQk.js → DesignPanel.vue_vue_type_style_index_0_lang-CKA6nx1l.js} +2 -2
  12. package/dist/{DictView-DhFbQxdJ.js → DictView-BHj6wexC.js} +1 -1
  13. package/dist/InvOrganization-DP3Le9g-.js +72 -0
  14. package/dist/{Org-DxBkYabD.js → Org-BRGHTwsw.js} +1 -1
  15. package/dist/{Preview-BFtRpBxw.js → Preview-CqMaUD_3.js} +1 -1
  16. package/dist/{ReportDefine-BIa2QryC.js → ReportDefine-PEQdTCOY.js} +1 -1
  17. package/dist/{ReportDesign-CnyjI-WD.js → ReportDesign-CB4bv8ba.js} +2 -2
  18. package/dist/{ReportQuery-BiK7yEhV.js → ReportQuery-B7t4lMK0.js} +1 -1
  19. package/dist/{ReportQueryFrom-C2rqdFTm.js → ReportQueryFrom-VBxUIMRJ.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Ba9HLnXQ.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-HeLA4Qs5.js} +1 -1
  21. package/dist/{ReportTemplate-DdkLscP3.js → ReportTemplate-DNkv7F5p.js} +1 -1
  22. package/dist/{Role-BrsxgK8D.js → Role-BGfTpZK4.js} +3 -3
  23. package/dist/{RoleAssign-DiqwJqDa.js → RoleAssign-DrKFWZzA.js} +3 -3
  24. package/dist/{RolePanel-Dqx5dI3f.js → RolePanel-3lvRh7aS.js} +1 -1
  25. package/dist/{RolePanel-BDusGyo7.js → RolePanel-BRI5QYe4.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-2Z1q_5uW.js → RolePanel.vue_vue_type_script_setup_true_lang-BXKZb7yt.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B5lUnaMI.js → RolePanel.vue_vue_type_script_setup_true_lang-Cci_Ysty.js} +3 -3
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vSP23fEq.js → ScrollPanel.vue_vue_type_style_index_0_lang-BmId6zzA.js} +1 -1
  29. package/dist/{Staff-Cwi9LQiZ.js → Staff-Dr0dq3fW.js} +3 -3
  30. package/dist/{StaffInfo-XjVtyaMv.js → StaffInfo-_N9g2hPa.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-wSrAuyet.js → StaffInfo.vue_vue_type_script_setup_true_lang-DiTJY2ug.js} +1 -1
  32. package/dist/{StaffPanel-C-wYcFdv.js → StaffPanel-mxJQiW3G.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DZNArmnC.js → StaffPanel.vue_vue_type_script_setup_true_lang-GRGn-5t6.js} +2 -2
  34. package/dist/{SysUser-O4tvr-Ur.js → SysUser-DgA19hZE.js} +2 -2
  35. package/dist/{SysUserPanel-B853docZ.js → SysUserPanel-Bc85z5_K.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-DhiYYC97.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BHDrP1Pk.js} +1 -1
  37. package/dist/{SystemMenu-CXR6mrXr.js → SystemMenu-Be-gFIie.js} +2 -2
  38. package/dist/{UserInfo-BkP8pE2a.js → UserInfo-BCYuwFmr.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D4r_umjV.js → UserInfo.vue_vue_type_style_index_0_lang-B1lgokO6.js} +1 -1
  40. package/dist/{childView-D0HwbgDT.js → childView-DhcBr1UA.js} +1 -1
  41. package/dist/{childView-TRqUkSDC.js → childView-Dk4zZoXd.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js → childView.vue_vue_type_style_index_0_lang-CVnLnl03.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-DQRgNsJY.js → childView.vue_vue_type_style_index_0_lang-D4GYVhOc.js} +1 -1
  44. package/dist/{code-rule-BV7PQWhK.js → code-rule-BSwPwuAL.js} +1 -1
  45. package/dist/core.es.js +1 -1
  46. package/dist/{cron-task-9ZS9bi7K.js → cron-task-T1ztyra7.js} +1 -1
  47. package/dist/{frameView-DE83AN50.js → frameView-BDgngiBq.js} +1 -1
  48. package/dist/index-BSj2AtVL.js +4468 -0
  49. package/dist/{layoutView-D1U-c4By.js → layoutView-i7dLLBzJ.js} +1187 -1183
  50. package/dist/{login-sPCEiTGT.js → login-K5Ludp8x.js} +4 -5
  51. package/dist/{lov-view-76NcYTYl.js → lov-view-lAexiucu.js} +2 -2
  52. package/dist/{menuInfo-CxjfjFpm.js → menuInfo-BaN5YZPp.js} +1 -1
  53. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-C2qahH3r.js → menuInfo.vue_vue_type_style_index_0_lang-yI4QOYxG.js} +1 -1
  54. package/dist/{pda-app-BUH16bLj.js → pda-app-DEtDXFvM.js} +1 -1
  55. package/dist/{resource-CCuHzoA6.js → resource-Bztmz7pn.js} +1 -1
  56. package/dist/{su-welcome-mRArONsd.js → su-welcome-Bx8nBPi9.js} +1 -1
  57. package/dist/sys-config-nvrtYGgi.js +290 -0
  58. package/dist/udp-core.css +2 -2
  59. package/dist/{utogether-Dm_VBQHR.js → utogether-yPnwDAIH.js} +1 -1
  60. package/package.json +18 -18
  61. package/src/api/index.ts +31 -31
  62. package/src/components/udp/form.vue +2 -2
  63. package/src/components/udp/modal-form.vue +2 -1
  64. package/src/components/udp/modal-grid.vue +11 -1
  65. package/src/layout/components/lay-navbar/index.vue +239 -237
  66. package/src/layout/components/lay-search/index.vue +1 -1
  67. package/src/layout/components/lay-select-org/index.vue +64 -69
  68. package/src/layout/components/lay-sidebar/horizontal.vue +190 -191
  69. package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
  70. package/src/layout/components/lay-sidebar/sidebar-logo.vue +92 -98
  71. package/src/layout/hooks/useNav.ts +173 -173
  72. package/src/main.ts +119 -119
  73. package/src/plugins/i18n/zh.ts +1 -0
  74. package/src/router/index.ts +3 -13
  75. package/src/store/modules/permission.ts +1 -4
  76. package/src/utils/udp/http/index.ts +283 -281
  77. package/src/views/login/login-view.vue +300 -314
  78. package/src/views/organization/inv-org/InvOrganization.vue +68 -53
  79. package/src/views/system/sys/sys-config.vue +287 -291
  80. package/src/views/ulogin/login.vue +1 -2
  81. package/dist/InvOrganization-D90AbR3b.js +0 -66
  82. package/dist/index-DVARtten.js +0 -2623
  83. package/dist/sys-config-Cvt05yF6.js +0 -277
@@ -0,0 +1,4468 @@
1
+ var In = Object.defineProperty;
2
+ var Ln = (e, t, n) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var U = (e, t, n) => Ln(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import * as Kt from "vue";
5
+ import { isRef as De, defineComponent as W, resolveComponent as Me, createBlock as Bn, openBlock as Un, withCtx as Mn, createVNode as Wt, toRaw as dt, isProxy as ft, defineAsyncComponent as jn, h as _, createApp as _n } from "vue";
6
+ import { ElConfigProvider as pt } from "element-plus";
7
+ import { checkVersion as qn } from "version-rocket";
8
+ import { useI18n as zn, createI18n as $n } from "vue-i18n";
9
+ import { NProgress as ae, cookies as Z, errorMessage as Ne, storageLocal as D, http as be, buildHierarchyTree as Ye, dbstorage as ve, isUrl as Gt, openLink as Hn, VxetableRender as Vn } from "@utogether/utils";
10
+ import { has as Pe, merge as Xe, clone as ee, debounce as Jn, findLastIndexOf as Kn, isBoolean as Wn, isEqual as mt, findIndexOf as Gn, isEmpty as Yn, isArray as Xn } from "xe-utils";
11
+ import { createPinia as Qn, defineStore as Qe } from "pinia";
12
+ import { useTimeoutFn as Zn } from "@vueuse/core";
13
+ import Yt, { VxeUI as Ze } from "vxe-table";
14
+ import er from "v-viewer";
15
+ import { Icon as ht } from "@iconify/vue";
16
+ import tr from "vue-tippy";
17
+ import nr from "element-resize-detector";
18
+ var rr = {
19
+ name: "en",
20
+ el: {
21
+ breadcrumb: {
22
+ label: "Breadcrumb"
23
+ },
24
+ colorpicker: {
25
+ confirm: "OK",
26
+ clear: "Clear",
27
+ defaultLabel: "color picker",
28
+ description: "current color is {color}. press enter to select a new color.",
29
+ alphaLabel: "pick alpha value"
30
+ },
31
+ datepicker: {
32
+ now: "Now",
33
+ today: "Today",
34
+ cancel: "Cancel",
35
+ clear: "Clear",
36
+ confirm: "OK",
37
+ dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
38
+ monthTablePrompt: "Use the arrow keys and enter to select the month",
39
+ yearTablePrompt: "Use the arrow keys and enter to select the year",
40
+ selectedDate: "Selected date",
41
+ selectDate: "Select date",
42
+ selectTime: "Select time",
43
+ startDate: "Start Date",
44
+ startTime: "Start Time",
45
+ endDate: "End Date",
46
+ endTime: "End Time",
47
+ prevYear: "Previous Year",
48
+ nextYear: "Next Year",
49
+ prevMonth: "Previous Month",
50
+ nextMonth: "Next Month",
51
+ year: "",
52
+ month1: "January",
53
+ month2: "February",
54
+ month3: "March",
55
+ month4: "April",
56
+ month5: "May",
57
+ month6: "June",
58
+ month7: "July",
59
+ month8: "August",
60
+ month9: "September",
61
+ month10: "October",
62
+ month11: "November",
63
+ month12: "December",
64
+ week: "week",
65
+ weeks: {
66
+ sun: "Sun",
67
+ mon: "Mon",
68
+ tue: "Tue",
69
+ wed: "Wed",
70
+ thu: "Thu",
71
+ fri: "Fri",
72
+ sat: "Sat"
73
+ },
74
+ weeksFull: {
75
+ sun: "Sunday",
76
+ mon: "Monday",
77
+ tue: "Tuesday",
78
+ wed: "Wednesday",
79
+ thu: "Thursday",
80
+ fri: "Friday",
81
+ sat: "Saturday"
82
+ },
83
+ months: {
84
+ jan: "Jan",
85
+ feb: "Feb",
86
+ mar: "Mar",
87
+ apr: "Apr",
88
+ may: "May",
89
+ jun: "Jun",
90
+ jul: "Jul",
91
+ aug: "Aug",
92
+ sep: "Sep",
93
+ oct: "Oct",
94
+ nov: "Nov",
95
+ dec: "Dec"
96
+ }
97
+ },
98
+ inputNumber: {
99
+ decrease: "decrease number",
100
+ increase: "increase number"
101
+ },
102
+ select: {
103
+ loading: "Loading",
104
+ noMatch: "No matching data",
105
+ noData: "No data",
106
+ placeholder: "Select"
107
+ },
108
+ mention: {
109
+ loading: "Loading"
110
+ },
111
+ dropdown: {
112
+ toggleDropdown: "Toggle Dropdown"
113
+ },
114
+ cascader: {
115
+ noMatch: "No matching data",
116
+ loading: "Loading",
117
+ placeholder: "Select",
118
+ noData: "No data"
119
+ },
120
+ pagination: {
121
+ goto: "Go to",
122
+ pagesize: "/page",
123
+ total: "Total {total}",
124
+ pageClassifier: "",
125
+ page: "Page",
126
+ prev: "Go to previous page",
127
+ next: "Go to next page",
128
+ currentPage: "page {pager}",
129
+ prevPages: "Previous {pager} pages",
130
+ nextPages: "Next {pager} pages",
131
+ deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
132
+ },
133
+ dialog: {
134
+ close: "Close this dialog"
135
+ },
136
+ drawer: {
137
+ close: "Close this dialog"
138
+ },
139
+ messagebox: {
140
+ title: "Message",
141
+ confirm: "OK",
142
+ cancel: "Cancel",
143
+ error: "Illegal input",
144
+ close: "Close this dialog"
145
+ },
146
+ upload: {
147
+ deleteTip: "press delete to remove",
148
+ delete: "Delete",
149
+ preview: "Preview",
150
+ continue: "Continue"
151
+ },
152
+ slider: {
153
+ defaultLabel: "slider between {min} and {max}",
154
+ defaultRangeStartLabel: "pick start value",
155
+ defaultRangeEndLabel: "pick end value"
156
+ },
157
+ table: {
158
+ emptyText: "No Data",
159
+ confirmFilter: "Confirm",
160
+ resetFilter: "Reset",
161
+ clearFilter: "All",
162
+ sumText: "Sum"
163
+ },
164
+ tour: {
165
+ next: "Next",
166
+ previous: "Previous",
167
+ finish: "Finish"
168
+ },
169
+ tree: {
170
+ emptyText: "No Data"
171
+ },
172
+ transfer: {
173
+ noMatch: "No matching data",
174
+ noData: "No data",
175
+ titles: ["List 1", "List 2"],
176
+ filterPlaceholder: "Enter keyword",
177
+ noCheckedFormat: "{total} items",
178
+ hasCheckedFormat: "{checked}/{total} checked"
179
+ },
180
+ image: {
181
+ error: "FAILED"
182
+ },
183
+ pageHeader: {
184
+ title: "Back"
185
+ },
186
+ popconfirm: {
187
+ confirmButtonText: "Yes",
188
+ cancelButtonText: "No"
189
+ },
190
+ carousel: {
191
+ leftArrow: "Carousel arrow left",
192
+ rightArrow: "Carousel arrow right",
193
+ indicator: "Carousel switch to index {index}"
194
+ }
195
+ }
196
+ }, or = {
197
+ name: "zh-cn",
198
+ el: {
199
+ breadcrumb: {
200
+ label: "面包屑"
201
+ },
202
+ colorpicker: {
203
+ confirm: "确定",
204
+ clear: "清空",
205
+ defaultLabel: "颜色选择器",
206
+ description: "当前颜色 {color},按 Enter 键选择新颜色",
207
+ alphaLabel: "选择透明度的值"
208
+ },
209
+ datepicker: {
210
+ now: "此刻",
211
+ today: "今天",
212
+ cancel: "取消",
213
+ clear: "清空",
214
+ confirm: "确定",
215
+ dateTablePrompt: "使用方向键与 Enter 键可选择日期",
216
+ monthTablePrompt: "使用方向键与 Enter 键可选择月份",
217
+ yearTablePrompt: "使用方向键与 Enter 键可选择年份",
218
+ selectedDate: "已选日期",
219
+ selectDate: "选择日期",
220
+ selectTime: "选择时间",
221
+ startDate: "开始日期",
222
+ startTime: "开始时间",
223
+ endDate: "结束日期",
224
+ endTime: "结束时间",
225
+ prevYear: "前一年",
226
+ nextYear: "后一年",
227
+ prevMonth: "上个月",
228
+ nextMonth: "下个月",
229
+ year: "年",
230
+ month1: "1 月",
231
+ month2: "2 月",
232
+ month3: "3 月",
233
+ month4: "4 月",
234
+ month5: "5 月",
235
+ month6: "6 月",
236
+ month7: "7 月",
237
+ month8: "8 月",
238
+ month9: "9 月",
239
+ month10: "10 月",
240
+ month11: "11 月",
241
+ month12: "12 月",
242
+ weeks: {
243
+ sun: "日",
244
+ mon: "一",
245
+ tue: "二",
246
+ wed: "三",
247
+ thu: "四",
248
+ fri: "五",
249
+ sat: "六"
250
+ },
251
+ weeksFull: {
252
+ sun: "星期日",
253
+ mon: "星期一",
254
+ tue: "星期二",
255
+ wed: "星期三",
256
+ thu: "星期四",
257
+ fri: "星期五",
258
+ sat: "星期六"
259
+ },
260
+ months: {
261
+ jan: "一月",
262
+ feb: "二月",
263
+ mar: "三月",
264
+ apr: "四月",
265
+ may: "五月",
266
+ jun: "六月",
267
+ jul: "七月",
268
+ aug: "八月",
269
+ sep: "九月",
270
+ oct: "十月",
271
+ nov: "十一月",
272
+ dec: "十二月"
273
+ }
274
+ },
275
+ inputNumber: {
276
+ decrease: "减少数值",
277
+ increase: "增加数值"
278
+ },
279
+ select: {
280
+ loading: "加载中",
281
+ noMatch: "无匹配数据",
282
+ noData: "无数据",
283
+ placeholder: "请选择"
284
+ },
285
+ dropdown: {
286
+ toggleDropdown: "切换下拉选项"
287
+ },
288
+ mention: {
289
+ loading: "加载中"
290
+ },
291
+ cascader: {
292
+ noMatch: "无匹配数据",
293
+ loading: "加载中",
294
+ placeholder: "请选择",
295
+ noData: "暂无数据"
296
+ },
297
+ pagination: {
298
+ goto: "前往",
299
+ pagesize: "条/页",
300
+ total: "共 {total} 条",
301
+ pageClassifier: "页",
302
+ page: "页",
303
+ prev: "上一页",
304
+ next: "下一页",
305
+ currentPage: "第 {pager} 页",
306
+ prevPages: "向前 {pager} 页",
307
+ nextPages: "向后 {pager} 页",
308
+ deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
309
+ },
310
+ dialog: {
311
+ close: "关闭此对话框"
312
+ },
313
+ drawer: {
314
+ close: "关闭此对话框"
315
+ },
316
+ messagebox: {
317
+ title: "提示",
318
+ confirm: "确定",
319
+ cancel: "取消",
320
+ error: "输入的数据不合法!",
321
+ close: "关闭此对话框"
322
+ },
323
+ upload: {
324
+ deleteTip: "按 Delete 键可删除",
325
+ delete: "删除",
326
+ preview: "查看图片",
327
+ continue: "继续上传"
328
+ },
329
+ slider: {
330
+ defaultLabel: "滑块介于 {min} 至 {max}",
331
+ defaultRangeStartLabel: "选择起始值",
332
+ defaultRangeEndLabel: "选择结束值"
333
+ },
334
+ table: {
335
+ emptyText: "暂无数据",
336
+ confirmFilter: "筛选",
337
+ resetFilter: "重置",
338
+ clearFilter: "全部",
339
+ sumText: "合计"
340
+ },
341
+ tour: {
342
+ next: "下一步",
343
+ previous: "上一步",
344
+ finish: "结束导览"
345
+ },
346
+ tree: {
347
+ emptyText: "暂无数据"
348
+ },
349
+ transfer: {
350
+ noMatch: "无匹配数据",
351
+ noData: "无数据",
352
+ titles: ["列表 1", "列表 2"],
353
+ filterPlaceholder: "请输入搜索内容",
354
+ noCheckedFormat: "共 {total} 项",
355
+ hasCheckedFormat: "已选 {checked}/{total} 项"
356
+ },
357
+ image: {
358
+ error: "加载失败"
359
+ },
360
+ pageHeader: {
361
+ title: "返回"
362
+ },
363
+ popconfirm: {
364
+ confirmButtonText: "确定",
365
+ cancelButtonText: "取消"
366
+ },
367
+ carousel: {
368
+ leftArrow: "上一张幻灯片",
369
+ rightArrow: "下一张幻灯片",
370
+ indicator: "幻灯片切换至索引 {index}"
371
+ }
372
+ }
373
+ };
374
+ const sr = "menu_zh", ir = "menu_en", $i = "authorized-token", Hi = "kCookies_token", ar = "kSysConfig", ur = "loginer";
375
+ function Xt(e, t) {
376
+ return function() {
377
+ return e.apply(t, arguments);
378
+ };
379
+ }
380
+ const { toString: lr } = Object.prototype, { getPrototypeOf: et } = Object, { iterator: Ee, toStringTag: Qt } = Symbol, Se = /* @__PURE__ */ ((e) => (t) => {
381
+ const n = lr.call(t);
382
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
383
+ })(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => Se(t) === e), Te = (e) => (t) => typeof t === e, { isArray: G } = Array, te = Te("undefined");
384
+ function cr(e) {
385
+ return e !== null && !te(e) && e.constructor !== null && !te(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
386
+ }
387
+ const Zt = P("ArrayBuffer");
388
+ function dr(e) {
389
+ let t;
390
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Zt(e.buffer), t;
391
+ }
392
+ const fr = Te("string"), A = Te("function"), en = Te("number"), Ce = (e) => e !== null && typeof e == "object", pr = (e) => e === !0 || e === !1, ue = (e) => {
393
+ if (Se(e) !== "object")
394
+ return !1;
395
+ const t = et(e);
396
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Qt in e) && !(Ee in e);
397
+ }, mr = P("Date"), hr = P("File"), gr = P("Blob"), yr = P("FileList"), wr = (e) => Ce(e) && A(e.pipe), br = (e) => {
398
+ let t;
399
+ return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = Se(e)) === "formdata" || // detect form-data instance
400
+ t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
401
+ }, Er = P("URLSearchParams"), [Sr, Tr, Cr, Rr] = ["ReadableStream", "Request", "Response", "Headers"].map(P), xr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
402
+ function re(e, t, { allOwnKeys: n = !1 } = {}) {
403
+ if (e === null || typeof e > "u")
404
+ return;
405
+ let r, o;
406
+ if (typeof e != "object" && (e = [e]), G(e))
407
+ for (r = 0, o = e.length; r < o; r++)
408
+ t.call(null, e[r], r, e);
409
+ else {
410
+ const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
411
+ let a;
412
+ for (r = 0; r < i; r++)
413
+ a = s[r], t.call(null, e[a], a, e);
414
+ }
415
+ }
416
+ function tn(e, t) {
417
+ t = t.toLowerCase();
418
+ const n = Object.keys(e);
419
+ let r = n.length, o;
420
+ for (; r-- > 0; )
421
+ if (o = n[r], t === o.toLowerCase())
422
+ return o;
423
+ return null;
424
+ }
425
+ const $ = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, nn = (e) => !te(e) && e !== $;
426
+ function je() {
427
+ const { caseless: e } = nn(this) && this || {}, t = {}, n = (r, o) => {
428
+ const s = e && tn(t, o) || o;
429
+ ue(t[s]) && ue(r) ? t[s] = je(t[s], r) : ue(r) ? t[s] = je({}, r) : G(r) ? t[s] = r.slice() : t[s] = r;
430
+ };
431
+ for (let r = 0, o = arguments.length; r < o; r++)
432
+ arguments[r] && re(arguments[r], n);
433
+ return t;
434
+ }
435
+ const kr = (e, t, n, { allOwnKeys: r } = {}) => (re(t, (o, s) => {
436
+ n && A(o) ? e[s] = Xt(o, n) : e[s] = o;
437
+ }, { allOwnKeys: r }), e), Fr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ar = (e, t, n, r) => {
438
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
439
+ value: t.prototype
440
+ }), n && Object.assign(e.prototype, n);
441
+ }, Or = (e, t, n, r) => {
442
+ let o, s, i;
443
+ const a = {};
444
+ if (t = t || {}, e == null) return t;
445
+ do {
446
+ for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
447
+ i = o[s], (!r || r(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
448
+ e = n !== !1 && et(e);
449
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
450
+ return t;
451
+ }, Dr = (e, t, n) => {
452
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
453
+ const r = e.indexOf(t, n);
454
+ return r !== -1 && r === n;
455
+ }, Nr = (e) => {
456
+ if (!e) return null;
457
+ if (G(e)) return e;
458
+ let t = e.length;
459
+ if (!en(t)) return null;
460
+ const n = new Array(t);
461
+ for (; t-- > 0; )
462
+ n[t] = e[t];
463
+ return n;
464
+ }, vr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && et(Uint8Array)), Pr = (e, t) => {
465
+ const r = (e && e[Ee]).call(e);
466
+ let o;
467
+ for (; (o = r.next()) && !o.done; ) {
468
+ const s = o.value;
469
+ t.call(e, s[0], s[1]);
470
+ }
471
+ }, Ir = (e, t) => {
472
+ let n;
473
+ const r = [];
474
+ for (; (n = e.exec(t)) !== null; )
475
+ r.push(n);
476
+ return r;
477
+ }, Lr = P("HTMLFormElement"), Br = (e) => e.toLowerCase().replace(
478
+ /[-_\s]([a-z\d])(\w*)/g,
479
+ function(n, r, o) {
480
+ return r.toUpperCase() + o;
481
+ }
482
+ ), gt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ur = P("RegExp"), rn = (e, t) => {
483
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
484
+ re(n, (o, s) => {
485
+ let i;
486
+ (i = t(o, s, e)) !== !1 && (r[s] = i || o);
487
+ }), Object.defineProperties(e, r);
488
+ }, Mr = (e) => {
489
+ rn(e, (t, n) => {
490
+ if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
491
+ return !1;
492
+ const r = e[n];
493
+ if (A(r)) {
494
+ if (t.enumerable = !1, "writable" in t) {
495
+ t.writable = !1;
496
+ return;
497
+ }
498
+ t.set || (t.set = () => {
499
+ throw Error("Can not rewrite read-only method '" + n + "'");
500
+ });
501
+ }
502
+ });
503
+ }, jr = (e, t) => {
504
+ const n = {}, r = (o) => {
505
+ o.forEach((s) => {
506
+ n[s] = !0;
507
+ });
508
+ };
509
+ return G(e) ? r(e) : r(String(e).split(t)), n;
510
+ }, _r = () => {
511
+ }, qr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
512
+ function zr(e) {
513
+ return !!(e && A(e.append) && e[Qt] === "FormData" && e[Ee]);
514
+ }
515
+ const $r = (e) => {
516
+ const t = new Array(10), n = (r, o) => {
517
+ if (Ce(r)) {
518
+ if (t.indexOf(r) >= 0)
519
+ return;
520
+ if (!("toJSON" in r)) {
521
+ t[o] = r;
522
+ const s = G(r) ? [] : {};
523
+ return re(r, (i, a) => {
524
+ const c = n(i, o + 1);
525
+ !te(c) && (s[a] = c);
526
+ }), t[o] = void 0, s;
527
+ }
528
+ }
529
+ return r;
530
+ };
531
+ return n(e, 0);
532
+ }, Hr = P("AsyncFunction"), Vr = (e) => e && (Ce(e) || A(e)) && A(e.then) && A(e.catch), on = ((e, t) => e ? setImmediate : t ? ((n, r) => ($.addEventListener("message", ({ source: o, data: s }) => {
533
+ o === $ && s === n && r.length && r.shift()();
534
+ }, !1), (o) => {
535
+ r.push(o), $.postMessage(n, "*");
536
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
537
+ typeof setImmediate == "function",
538
+ A($.postMessage)
539
+ ), Jr = typeof queueMicrotask < "u" ? queueMicrotask.bind($) : typeof process < "u" && process.nextTick || on, Kr = (e) => e != null && A(e[Ee]), l = {
540
+ isArray: G,
541
+ isArrayBuffer: Zt,
542
+ isBuffer: cr,
543
+ isFormData: br,
544
+ isArrayBufferView: dr,
545
+ isString: fr,
546
+ isNumber: en,
547
+ isBoolean: pr,
548
+ isObject: Ce,
549
+ isPlainObject: ue,
550
+ isReadableStream: Sr,
551
+ isRequest: Tr,
552
+ isResponse: Cr,
553
+ isHeaders: Rr,
554
+ isUndefined: te,
555
+ isDate: mr,
556
+ isFile: hr,
557
+ isBlob: gr,
558
+ isRegExp: Ur,
559
+ isFunction: A,
560
+ isStream: wr,
561
+ isURLSearchParams: Er,
562
+ isTypedArray: vr,
563
+ isFileList: yr,
564
+ forEach: re,
565
+ merge: je,
566
+ extend: kr,
567
+ trim: xr,
568
+ stripBOM: Fr,
569
+ inherits: Ar,
570
+ toFlatObject: Or,
571
+ kindOf: Se,
572
+ kindOfTest: P,
573
+ endsWith: Dr,
574
+ toArray: Nr,
575
+ forEachEntry: Pr,
576
+ matchAll: Ir,
577
+ isHTMLForm: Lr,
578
+ hasOwnProperty: gt,
579
+ hasOwnProp: gt,
580
+ // an alias to avoid ESLint no-prototype-builtins detection
581
+ reduceDescriptors: rn,
582
+ freezeMethods: Mr,
583
+ toObjectSet: jr,
584
+ toCamelCase: Br,
585
+ noop: _r,
586
+ toFiniteNumber: qr,
587
+ findKey: tn,
588
+ global: $,
589
+ isContextDefined: nn,
590
+ isSpecCompliantForm: zr,
591
+ toJSONObject: $r,
592
+ isAsyncFn: Hr,
593
+ isThenable: Vr,
594
+ setImmediate: on,
595
+ asap: Jr,
596
+ isIterable: Kr
597
+ };
598
+ function g(e, t, n, r, o) {
599
+ 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);
600
+ }
601
+ l.inherits(g, Error, {
602
+ toJSON: function() {
603
+ return {
604
+ // Standard
605
+ message: this.message,
606
+ name: this.name,
607
+ // Microsoft
608
+ description: this.description,
609
+ number: this.number,
610
+ // Mozilla
611
+ fileName: this.fileName,
612
+ lineNumber: this.lineNumber,
613
+ columnNumber: this.columnNumber,
614
+ stack: this.stack,
615
+ // Axios
616
+ config: l.toJSONObject(this.config),
617
+ code: this.code,
618
+ status: this.status
619
+ };
620
+ }
621
+ });
622
+ const sn = g.prototype, an = {};
623
+ [
624
+ "ERR_BAD_OPTION_VALUE",
625
+ "ERR_BAD_OPTION",
626
+ "ECONNABORTED",
627
+ "ETIMEDOUT",
628
+ "ERR_NETWORK",
629
+ "ERR_FR_TOO_MANY_REDIRECTS",
630
+ "ERR_DEPRECATED",
631
+ "ERR_BAD_RESPONSE",
632
+ "ERR_BAD_REQUEST",
633
+ "ERR_CANCELED",
634
+ "ERR_NOT_SUPPORT",
635
+ "ERR_INVALID_URL"
636
+ // eslint-disable-next-line func-names
637
+ ].forEach((e) => {
638
+ an[e] = { value: e };
639
+ });
640
+ Object.defineProperties(g, an);
641
+ Object.defineProperty(sn, "isAxiosError", { value: !0 });
642
+ g.from = (e, t, n, r, o, s) => {
643
+ const i = Object.create(sn);
644
+ return l.toFlatObject(e, i, function(c) {
645
+ return c !== Error.prototype;
646
+ }, (a) => a !== "isAxiosError"), g.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
647
+ };
648
+ const Wr = null;
649
+ function _e(e) {
650
+ return l.isPlainObject(e) || l.isArray(e);
651
+ }
652
+ function un(e) {
653
+ return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
654
+ }
655
+ function yt(e, t, n) {
656
+ return e ? e.concat(t).map(function(o, s) {
657
+ return o = un(o), !n && s ? "[" + o + "]" : o;
658
+ }).join(n ? "." : "") : t;
659
+ }
660
+ function Gr(e) {
661
+ return l.isArray(e) && !e.some(_e);
662
+ }
663
+ const Yr = l.toFlatObject(l, {}, null, function(t) {
664
+ return /^is[A-Z]/.test(t);
665
+ });
666
+ function Re(e, t, n) {
667
+ if (!l.isObject(e))
668
+ throw new TypeError("target must be an object");
669
+ t = t || new FormData(), n = l.toFlatObject(n, {
670
+ metaTokens: !0,
671
+ dots: !1,
672
+ indexes: !1
673
+ }, !1, function(p, f) {
674
+ return !l.isUndefined(f[p]);
675
+ });
676
+ const r = n.metaTokens, o = n.visitor || d, s = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(t);
677
+ if (!l.isFunction(o))
678
+ throw new TypeError("visitor must be a function");
679
+ function u(h) {
680
+ if (h === null) return "";
681
+ if (l.isDate(h))
682
+ return h.toISOString();
683
+ if (!c && l.isBlob(h))
684
+ throw new g("Blob is not supported. Use a Buffer instead.");
685
+ return l.isArrayBuffer(h) || l.isTypedArray(h) ? c && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
686
+ }
687
+ function d(h, p, f) {
688
+ let b = h;
689
+ if (h && !f && typeof h == "object") {
690
+ if (l.endsWith(p, "{}"))
691
+ p = r ? p : p.slice(0, -2), h = JSON.stringify(h);
692
+ else if (l.isArray(h) && Gr(h) || (l.isFileList(h) || l.endsWith(p, "[]")) && (b = l.toArray(h)))
693
+ return p = un(p), b.forEach(function(E, C) {
694
+ !(l.isUndefined(E) || E === null) && t.append(
695
+ // eslint-disable-next-line no-nested-ternary
696
+ i === !0 ? yt([p], C, s) : i === null ? p : p + "[]",
697
+ u(E)
698
+ );
699
+ }), !1;
700
+ }
701
+ return _e(h) ? !0 : (t.append(yt(f, p, s), u(h)), !1);
702
+ }
703
+ const m = [], y = Object.assign(Yr, {
704
+ defaultVisitor: d,
705
+ convertValue: u,
706
+ isVisitable: _e
707
+ });
708
+ function w(h, p) {
709
+ if (!l.isUndefined(h)) {
710
+ if (m.indexOf(h) !== -1)
711
+ throw Error("Circular reference detected in " + p.join("."));
712
+ m.push(h), l.forEach(h, function(b, S) {
713
+ (!(l.isUndefined(b) || b === null) && o.call(
714
+ t,
715
+ b,
716
+ l.isString(S) ? S.trim() : S,
717
+ p,
718
+ y
719
+ )) === !0 && w(b, p ? p.concat(S) : [S]);
720
+ }), m.pop();
721
+ }
722
+ }
723
+ if (!l.isObject(e))
724
+ throw new TypeError("data must be an object");
725
+ return w(e), t;
726
+ }
727
+ function wt(e) {
728
+ const t = {
729
+ "!": "%21",
730
+ "'": "%27",
731
+ "(": "%28",
732
+ ")": "%29",
733
+ "~": "%7E",
734
+ "%20": "+",
735
+ "%00": "\0"
736
+ };
737
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
738
+ return t[r];
739
+ });
740
+ }
741
+ function tt(e, t) {
742
+ this._pairs = [], e && Re(e, this, t);
743
+ }
744
+ const ln = tt.prototype;
745
+ ln.append = function(t, n) {
746
+ this._pairs.push([t, n]);
747
+ };
748
+ ln.toString = function(t) {
749
+ const n = t ? function(r) {
750
+ return t.call(this, r, wt);
751
+ } : wt;
752
+ return this._pairs.map(function(o) {
753
+ return n(o[0]) + "=" + n(o[1]);
754
+ }, "").join("&");
755
+ };
756
+ function Xr(e) {
757
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
758
+ }
759
+ function cn(e, t, n) {
760
+ if (!t)
761
+ return e;
762
+ const r = n && n.encode || Xr;
763
+ l.isFunction(n) && (n = {
764
+ serialize: n
765
+ });
766
+ const o = n && n.serialize;
767
+ let s;
768
+ if (o ? s = o(t, n) : s = l.isURLSearchParams(t) ? t.toString() : new tt(t, n).toString(r), s) {
769
+ const i = e.indexOf("#");
770
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
771
+ }
772
+ return e;
773
+ }
774
+ class bt {
775
+ constructor() {
776
+ this.handlers = [];
777
+ }
778
+ /**
779
+ * Add a new interceptor to the stack
780
+ *
781
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
782
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
783
+ *
784
+ * @return {Number} An ID used to remove interceptor later
785
+ */
786
+ use(t, n, r) {
787
+ return this.handlers.push({
788
+ fulfilled: t,
789
+ rejected: n,
790
+ synchronous: r ? r.synchronous : !1,
791
+ runWhen: r ? r.runWhen : null
792
+ }), this.handlers.length - 1;
793
+ }
794
+ /**
795
+ * Remove an interceptor from the stack
796
+ *
797
+ * @param {Number} id The ID that was returned by `use`
798
+ *
799
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
800
+ */
801
+ eject(t) {
802
+ this.handlers[t] && (this.handlers[t] = null);
803
+ }
804
+ /**
805
+ * Clear all interceptors from the stack
806
+ *
807
+ * @returns {void}
808
+ */
809
+ clear() {
810
+ this.handlers && (this.handlers = []);
811
+ }
812
+ /**
813
+ * Iterate over all the registered interceptors
814
+ *
815
+ * This method is particularly useful for skipping over any
816
+ * interceptors that may have become `null` calling `eject`.
817
+ *
818
+ * @param {Function} fn The function to call for each interceptor
819
+ *
820
+ * @returns {void}
821
+ */
822
+ forEach(t) {
823
+ l.forEach(this.handlers, function(r) {
824
+ r !== null && t(r);
825
+ });
826
+ }
827
+ }
828
+ const dn = {
829
+ silentJSONParsing: !0,
830
+ forcedJSONParsing: !0,
831
+ clarifyTimeoutError: !1
832
+ }, Qr = typeof URLSearchParams < "u" ? URLSearchParams : tt, Zr = typeof FormData < "u" ? FormData : null, eo = typeof Blob < "u" ? Blob : null, to = {
833
+ isBrowser: !0,
834
+ classes: {
835
+ URLSearchParams: Qr,
836
+ FormData: Zr,
837
+ Blob: eo
838
+ },
839
+ protocols: ["http", "https", "file", "blob", "url", "data"]
840
+ }, nt = typeof window < "u" && typeof document < "u", qe = typeof navigator == "object" && navigator || void 0, no = nt && (!qe || ["ReactNative", "NativeScript", "NS"].indexOf(qe.product) < 0), ro = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
841
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", oo = nt && window.location.href || "http://localhost", so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
842
+ __proto__: null,
843
+ hasBrowserEnv: nt,
844
+ hasStandardBrowserEnv: no,
845
+ hasStandardBrowserWebWorkerEnv: ro,
846
+ navigator: qe,
847
+ origin: oo
848
+ }, Symbol.toStringTag, { value: "Module" })), k = {
849
+ ...so,
850
+ ...to
851
+ };
852
+ function io(e, t) {
853
+ return Re(e, new k.classes.URLSearchParams(), Object.assign({
854
+ visitor: function(n, r, o, s) {
855
+ return k.isNode && l.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
856
+ }
857
+ }, t));
858
+ }
859
+ function ao(e) {
860
+ return l.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
861
+ }
862
+ function uo(e) {
863
+ const t = {}, n = Object.keys(e);
864
+ let r;
865
+ const o = n.length;
866
+ let s;
867
+ for (r = 0; r < o; r++)
868
+ s = n[r], t[s] = e[s];
869
+ return t;
870
+ }
871
+ function fn(e) {
872
+ function t(n, r, o, s) {
873
+ let i = n[s++];
874
+ if (i === "__proto__") return !0;
875
+ const a = Number.isFinite(+i), c = s >= n.length;
876
+ return i = !i && l.isArray(o) ? o.length : i, c ? (l.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !a) : ((!o[i] || !l.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && l.isArray(o[i]) && (o[i] = uo(o[i])), !a);
877
+ }
878
+ if (l.isFormData(e) && l.isFunction(e.entries)) {
879
+ const n = {};
880
+ return l.forEachEntry(e, (r, o) => {
881
+ t(ao(r), o, n, 0);
882
+ }), n;
883
+ }
884
+ return null;
885
+ }
886
+ function lo(e, t, n) {
887
+ if (l.isString(e))
888
+ try {
889
+ return (t || JSON.parse)(e), l.trim(e);
890
+ } catch (r) {
891
+ if (r.name !== "SyntaxError")
892
+ throw r;
893
+ }
894
+ return (n || JSON.stringify)(e);
895
+ }
896
+ const oe = {
897
+ transitional: dn,
898
+ adapter: ["xhr", "http", "fetch"],
899
+ transformRequest: [function(t, n) {
900
+ const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = l.isObject(t);
901
+ if (s && l.isHTMLForm(t) && (t = new FormData(t)), l.isFormData(t))
902
+ return o ? JSON.stringify(fn(t)) : t;
903
+ if (l.isArrayBuffer(t) || l.isBuffer(t) || l.isStream(t) || l.isFile(t) || l.isBlob(t) || l.isReadableStream(t))
904
+ return t;
905
+ if (l.isArrayBufferView(t))
906
+ return t.buffer;
907
+ if (l.isURLSearchParams(t))
908
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
909
+ let a;
910
+ if (s) {
911
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
912
+ return io(t, this.formSerializer).toString();
913
+ if ((a = l.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
914
+ const c = this.env && this.env.FormData;
915
+ return Re(
916
+ a ? { "files[]": t } : t,
917
+ c && new c(),
918
+ this.formSerializer
919
+ );
920
+ }
921
+ }
922
+ return s || o ? (n.setContentType("application/json", !1), lo(t)) : t;
923
+ }],
924
+ transformResponse: [function(t) {
925
+ const n = this.transitional || oe.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
926
+ if (l.isResponse(t) || l.isReadableStream(t))
927
+ return t;
928
+ if (t && l.isString(t) && (r && !this.responseType || o)) {
929
+ const i = !(n && n.silentJSONParsing) && o;
930
+ try {
931
+ return JSON.parse(t);
932
+ } catch (a) {
933
+ if (i)
934
+ throw a.name === "SyntaxError" ? g.from(a, g.ERR_BAD_RESPONSE, this, null, this.response) : a;
935
+ }
936
+ }
937
+ return t;
938
+ }],
939
+ /**
940
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
941
+ * timeout is not created.
942
+ */
943
+ timeout: 0,
944
+ xsrfCookieName: "XSRF-TOKEN",
945
+ xsrfHeaderName: "X-XSRF-TOKEN",
946
+ maxContentLength: -1,
947
+ maxBodyLength: -1,
948
+ env: {
949
+ FormData: k.classes.FormData,
950
+ Blob: k.classes.Blob
951
+ },
952
+ validateStatus: function(t) {
953
+ return t >= 200 && t < 300;
954
+ },
955
+ headers: {
956
+ common: {
957
+ Accept: "application/json, text/plain, */*",
958
+ "Content-Type": void 0
959
+ }
960
+ }
961
+ };
962
+ l.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
963
+ oe.headers[e] = {};
964
+ });
965
+ const co = l.toObjectSet([
966
+ "age",
967
+ "authorization",
968
+ "content-length",
969
+ "content-type",
970
+ "etag",
971
+ "expires",
972
+ "from",
973
+ "host",
974
+ "if-modified-since",
975
+ "if-unmodified-since",
976
+ "last-modified",
977
+ "location",
978
+ "max-forwards",
979
+ "proxy-authorization",
980
+ "referer",
981
+ "retry-after",
982
+ "user-agent"
983
+ ]), fo = (e) => {
984
+ const t = {};
985
+ let n, r, o;
986
+ return e && e.split(`
987
+ `).forEach(function(i) {
988
+ o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && co[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
989
+ }), t;
990
+ }, Et = Symbol("internals");
991
+ function X(e) {
992
+ return e && String(e).trim().toLowerCase();
993
+ }
994
+ function le(e) {
995
+ return e === !1 || e == null ? e : l.isArray(e) ? e.map(le) : String(e);
996
+ }
997
+ function po(e) {
998
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
999
+ let r;
1000
+ for (; r = n.exec(e); )
1001
+ t[r[1]] = r[2];
1002
+ return t;
1003
+ }
1004
+ const mo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1005
+ function Ie(e, t, n, r, o) {
1006
+ if (l.isFunction(r))
1007
+ return r.call(this, t, n);
1008
+ if (o && (t = n), !!l.isString(t)) {
1009
+ if (l.isString(r))
1010
+ return t.indexOf(r) !== -1;
1011
+ if (l.isRegExp(r))
1012
+ return r.test(t);
1013
+ }
1014
+ }
1015
+ function ho(e) {
1016
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
1017
+ }
1018
+ function go(e, t) {
1019
+ const n = l.toCamelCase(" " + t);
1020
+ ["get", "set", "has"].forEach((r) => {
1021
+ Object.defineProperty(e, r + n, {
1022
+ value: function(o, s, i) {
1023
+ return this[r].call(this, t, o, s, i);
1024
+ },
1025
+ configurable: !0
1026
+ });
1027
+ });
1028
+ }
1029
+ let O = class {
1030
+ constructor(t) {
1031
+ t && this.set(t);
1032
+ }
1033
+ set(t, n, r) {
1034
+ const o = this;
1035
+ function s(a, c, u) {
1036
+ const d = X(c);
1037
+ if (!d)
1038
+ throw new Error("header name must be a non-empty string");
1039
+ const m = l.findKey(o, d);
1040
+ (!m || o[m] === void 0 || u === !0 || u === void 0 && o[m] !== !1) && (o[m || c] = le(a));
1041
+ }
1042
+ const i = (a, c) => l.forEach(a, (u, d) => s(u, d, c));
1043
+ if (l.isPlainObject(t) || t instanceof this.constructor)
1044
+ i(t, n);
1045
+ else if (l.isString(t) && (t = t.trim()) && !mo(t))
1046
+ i(fo(t), n);
1047
+ else if (l.isObject(t) && l.isIterable(t)) {
1048
+ let a = {}, c, u;
1049
+ for (const d of t) {
1050
+ if (!l.isArray(d))
1051
+ throw TypeError("Object iterator must return a key-value pair");
1052
+ a[u = d[0]] = (c = a[u]) ? l.isArray(c) ? [...c, d[1]] : [c, d[1]] : d[1];
1053
+ }
1054
+ i(a, n);
1055
+ } else
1056
+ t != null && s(n, t, r);
1057
+ return this;
1058
+ }
1059
+ get(t, n) {
1060
+ if (t = X(t), t) {
1061
+ const r = l.findKey(this, t);
1062
+ if (r) {
1063
+ const o = this[r];
1064
+ if (!n)
1065
+ return o;
1066
+ if (n === !0)
1067
+ return po(o);
1068
+ if (l.isFunction(n))
1069
+ return n.call(this, o, r);
1070
+ if (l.isRegExp(n))
1071
+ return n.exec(o);
1072
+ throw new TypeError("parser must be boolean|regexp|function");
1073
+ }
1074
+ }
1075
+ }
1076
+ has(t, n) {
1077
+ if (t = X(t), t) {
1078
+ const r = l.findKey(this, t);
1079
+ return !!(r && this[r] !== void 0 && (!n || Ie(this, this[r], r, n)));
1080
+ }
1081
+ return !1;
1082
+ }
1083
+ delete(t, n) {
1084
+ const r = this;
1085
+ let o = !1;
1086
+ function s(i) {
1087
+ if (i = X(i), i) {
1088
+ const a = l.findKey(r, i);
1089
+ a && (!n || Ie(r, r[a], a, n)) && (delete r[a], o = !0);
1090
+ }
1091
+ }
1092
+ return l.isArray(t) ? t.forEach(s) : s(t), o;
1093
+ }
1094
+ clear(t) {
1095
+ const n = Object.keys(this);
1096
+ let r = n.length, o = !1;
1097
+ for (; r--; ) {
1098
+ const s = n[r];
1099
+ (!t || Ie(this, this[s], s, t, !0)) && (delete this[s], o = !0);
1100
+ }
1101
+ return o;
1102
+ }
1103
+ normalize(t) {
1104
+ const n = this, r = {};
1105
+ return l.forEach(this, (o, s) => {
1106
+ const i = l.findKey(r, s);
1107
+ if (i) {
1108
+ n[i] = le(o), delete n[s];
1109
+ return;
1110
+ }
1111
+ const a = t ? ho(s) : String(s).trim();
1112
+ a !== s && delete n[s], n[a] = le(o), r[a] = !0;
1113
+ }), this;
1114
+ }
1115
+ concat(...t) {
1116
+ return this.constructor.concat(this, ...t);
1117
+ }
1118
+ toJSON(t) {
1119
+ const n = /* @__PURE__ */ Object.create(null);
1120
+ return l.forEach(this, (r, o) => {
1121
+ r != null && r !== !1 && (n[o] = t && l.isArray(r) ? r.join(", ") : r);
1122
+ }), n;
1123
+ }
1124
+ [Symbol.iterator]() {
1125
+ return Object.entries(this.toJSON())[Symbol.iterator]();
1126
+ }
1127
+ toString() {
1128
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
1129
+ `);
1130
+ }
1131
+ getSetCookie() {
1132
+ return this.get("set-cookie") || [];
1133
+ }
1134
+ get [Symbol.toStringTag]() {
1135
+ return "AxiosHeaders";
1136
+ }
1137
+ static from(t) {
1138
+ return t instanceof this ? t : new this(t);
1139
+ }
1140
+ static concat(t, ...n) {
1141
+ const r = new this(t);
1142
+ return n.forEach((o) => r.set(o)), r;
1143
+ }
1144
+ static accessor(t) {
1145
+ const r = (this[Et] = this[Et] = {
1146
+ accessors: {}
1147
+ }).accessors, o = this.prototype;
1148
+ function s(i) {
1149
+ const a = X(i);
1150
+ r[a] || (go(o, i), r[a] = !0);
1151
+ }
1152
+ return l.isArray(t) ? t.forEach(s) : s(t), this;
1153
+ }
1154
+ };
1155
+ O.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1156
+ l.reduceDescriptors(O.prototype, ({ value: e }, t) => {
1157
+ let n = t[0].toUpperCase() + t.slice(1);
1158
+ return {
1159
+ get: () => e,
1160
+ set(r) {
1161
+ this[n] = r;
1162
+ }
1163
+ };
1164
+ });
1165
+ l.freezeMethods(O);
1166
+ function Le(e, t) {
1167
+ const n = this || oe, r = t || n, o = O.from(r.headers);
1168
+ let s = r.data;
1169
+ return l.forEach(e, function(a) {
1170
+ s = a.call(n, s, o.normalize(), t ? t.status : void 0);
1171
+ }), o.normalize(), s;
1172
+ }
1173
+ function pn(e) {
1174
+ return !!(e && e.__CANCEL__);
1175
+ }
1176
+ function Y(e, t, n) {
1177
+ g.call(this, e ?? "canceled", g.ERR_CANCELED, t, n), this.name = "CanceledError";
1178
+ }
1179
+ l.inherits(Y, g, {
1180
+ __CANCEL__: !0
1181
+ });
1182
+ function mn(e, t, n) {
1183
+ const r = n.config.validateStatus;
1184
+ !n.status || !r || r(n.status) ? e(n) : t(new g(
1185
+ "Request failed with status code " + n.status,
1186
+ [g.ERR_BAD_REQUEST, g.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1187
+ n.config,
1188
+ n.request,
1189
+ n
1190
+ ));
1191
+ }
1192
+ function yo(e) {
1193
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1194
+ return t && t[1] || "";
1195
+ }
1196
+ function wo(e, t) {
1197
+ e = e || 10;
1198
+ const n = new Array(e), r = new Array(e);
1199
+ let o = 0, s = 0, i;
1200
+ return t = t !== void 0 ? t : 1e3, function(c) {
1201
+ const u = Date.now(), d = r[s];
1202
+ i || (i = u), n[o] = c, r[o] = u;
1203
+ let m = s, y = 0;
1204
+ for (; m !== o; )
1205
+ y += n[m++], m = m % e;
1206
+ if (o = (o + 1) % e, o === s && (s = (s + 1) % e), u - i < t)
1207
+ return;
1208
+ const w = d && u - d;
1209
+ return w ? Math.round(y * 1e3 / w) : void 0;
1210
+ };
1211
+ }
1212
+ function bo(e, t) {
1213
+ let n = 0, r = 1e3 / t, o, s;
1214
+ const i = (u, d = Date.now()) => {
1215
+ n = d, o = null, s && (clearTimeout(s), s = null), e.apply(null, u);
1216
+ };
1217
+ return [(...u) => {
1218
+ const d = Date.now(), m = d - n;
1219
+ m >= r ? i(u, d) : (o = u, s || (s = setTimeout(() => {
1220
+ s = null, i(o);
1221
+ }, r - m)));
1222
+ }, () => o && i(o)];
1223
+ }
1224
+ const he = (e, t, n = 3) => {
1225
+ let r = 0;
1226
+ const o = wo(50, 250);
1227
+ return bo((s) => {
1228
+ const i = s.loaded, a = s.lengthComputable ? s.total : void 0, c = i - r, u = o(c), d = i <= a;
1229
+ r = i;
1230
+ const m = {
1231
+ loaded: i,
1232
+ total: a,
1233
+ progress: a ? i / a : void 0,
1234
+ bytes: c,
1235
+ rate: u || void 0,
1236
+ estimated: u && a && d ? (a - i) / u : void 0,
1237
+ event: s,
1238
+ lengthComputable: a != null,
1239
+ [t ? "download" : "upload"]: !0
1240
+ };
1241
+ e(m);
1242
+ }, n);
1243
+ }, St = (e, t) => {
1244
+ const n = e != null;
1245
+ return [(r) => t[0]({
1246
+ lengthComputable: n,
1247
+ total: e,
1248
+ loaded: r
1249
+ }), t[1]];
1250
+ }, Tt = (e) => (...t) => l.asap(() => e(...t)), Eo = k.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, k.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1251
+ new URL(k.origin),
1252
+ k.navigator && /(msie|trident)/i.test(k.navigator.userAgent)
1253
+ ) : () => !0, So = k.hasStandardBrowserEnv ? (
1254
+ // Standard browser envs support document.cookie
1255
+ {
1256
+ write(e, t, n, r, o, s) {
1257
+ const i = [e + "=" + encodeURIComponent(t)];
1258
+ l.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), l.isString(r) && i.push("path=" + r), l.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
1259
+ },
1260
+ read(e) {
1261
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
1262
+ return t ? decodeURIComponent(t[3]) : null;
1263
+ },
1264
+ remove(e) {
1265
+ this.write(e, "", Date.now() - 864e5);
1266
+ }
1267
+ }
1268
+ ) : (
1269
+ // Non-standard browser env (web workers, react-native) lack needed support.
1270
+ {
1271
+ write() {
1272
+ },
1273
+ read() {
1274
+ return null;
1275
+ },
1276
+ remove() {
1277
+ }
1278
+ }
1279
+ );
1280
+ function To(e) {
1281
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1282
+ }
1283
+ function Co(e, t) {
1284
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
1285
+ }
1286
+ function hn(e, t, n) {
1287
+ let r = !To(t);
1288
+ return e && (r || n == !1) ? Co(e, t) : t;
1289
+ }
1290
+ const Ct = (e) => e instanceof O ? { ...e } : e;
1291
+ function V(e, t) {
1292
+ t = t || {};
1293
+ const n = {};
1294
+ function r(u, d, m, y) {
1295
+ return l.isPlainObject(u) && l.isPlainObject(d) ? l.merge.call({ caseless: y }, u, d) : l.isPlainObject(d) ? l.merge({}, d) : l.isArray(d) ? d.slice() : d;
1296
+ }
1297
+ function o(u, d, m, y) {
1298
+ if (l.isUndefined(d)) {
1299
+ if (!l.isUndefined(u))
1300
+ return r(void 0, u, m, y);
1301
+ } else return r(u, d, m, y);
1302
+ }
1303
+ function s(u, d) {
1304
+ if (!l.isUndefined(d))
1305
+ return r(void 0, d);
1306
+ }
1307
+ function i(u, d) {
1308
+ if (l.isUndefined(d)) {
1309
+ if (!l.isUndefined(u))
1310
+ return r(void 0, u);
1311
+ } else return r(void 0, d);
1312
+ }
1313
+ function a(u, d, m) {
1314
+ if (m in t)
1315
+ return r(u, d);
1316
+ if (m in e)
1317
+ return r(void 0, u);
1318
+ }
1319
+ const c = {
1320
+ url: s,
1321
+ method: s,
1322
+ data: s,
1323
+ baseURL: i,
1324
+ transformRequest: i,
1325
+ transformResponse: i,
1326
+ paramsSerializer: i,
1327
+ timeout: i,
1328
+ timeoutMessage: i,
1329
+ withCredentials: i,
1330
+ withXSRFToken: i,
1331
+ adapter: i,
1332
+ responseType: i,
1333
+ xsrfCookieName: i,
1334
+ xsrfHeaderName: i,
1335
+ onUploadProgress: i,
1336
+ onDownloadProgress: i,
1337
+ decompress: i,
1338
+ maxContentLength: i,
1339
+ maxBodyLength: i,
1340
+ beforeRedirect: i,
1341
+ transport: i,
1342
+ httpAgent: i,
1343
+ httpsAgent: i,
1344
+ cancelToken: i,
1345
+ socketPath: i,
1346
+ responseEncoding: i,
1347
+ validateStatus: a,
1348
+ headers: (u, d, m) => o(Ct(u), Ct(d), m, !0)
1349
+ };
1350
+ return l.forEach(Object.keys(Object.assign({}, e, t)), function(d) {
1351
+ const m = c[d] || o, y = m(e[d], t[d], d);
1352
+ l.isUndefined(y) && m !== a || (n[d] = y);
1353
+ }), n;
1354
+ }
1355
+ const gn = (e) => {
1356
+ const t = V({}, e);
1357
+ let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: a } = t;
1358
+ t.headers = i = O.from(i), t.url = cn(hn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
1359
+ "Authorization",
1360
+ "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1361
+ );
1362
+ let c;
1363
+ if (l.isFormData(n)) {
1364
+ if (k.hasStandardBrowserEnv || k.hasStandardBrowserWebWorkerEnv)
1365
+ i.setContentType(void 0);
1366
+ else if ((c = i.getContentType()) !== !1) {
1367
+ const [u, ...d] = c ? c.split(";").map((m) => m.trim()).filter(Boolean) : [];
1368
+ i.setContentType([u || "multipart/form-data", ...d].join("; "));
1369
+ }
1370
+ }
1371
+ if (k.hasStandardBrowserEnv && (r && l.isFunction(r) && (r = r(t)), r || r !== !1 && Eo(t.url))) {
1372
+ const u = o && s && So.read(s);
1373
+ u && i.set(o, u);
1374
+ }
1375
+ return t;
1376
+ }, Ro = typeof XMLHttpRequest < "u", xo = Ro && function(e) {
1377
+ return new Promise(function(n, r) {
1378
+ const o = gn(e);
1379
+ let s = o.data;
1380
+ const i = O.from(o.headers).normalize();
1381
+ let { responseType: a, onUploadProgress: c, onDownloadProgress: u } = o, d, m, y, w, h;
1382
+ function p() {
1383
+ w && w(), h && h(), o.cancelToken && o.cancelToken.unsubscribe(d), o.signal && o.signal.removeEventListener("abort", d);
1384
+ }
1385
+ let f = new XMLHttpRequest();
1386
+ f.open(o.method.toUpperCase(), o.url, !0), f.timeout = o.timeout;
1387
+ function b() {
1388
+ if (!f)
1389
+ return;
1390
+ const E = O.from(
1391
+ "getAllResponseHeaders" in f && f.getAllResponseHeaders()
1392
+ ), F = {
1393
+ data: !a || a === "text" || a === "json" ? f.responseText : f.response,
1394
+ status: f.status,
1395
+ statusText: f.statusText,
1396
+ headers: E,
1397
+ config: e,
1398
+ request: f
1399
+ };
1400
+ mn(function(z) {
1401
+ n(z), p();
1402
+ }, function(z) {
1403
+ r(z), p();
1404
+ }, F), f = null;
1405
+ }
1406
+ "onloadend" in f ? f.onloadend = b : f.onreadystatechange = function() {
1407
+ !f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(b);
1408
+ }, f.onabort = function() {
1409
+ f && (r(new g("Request aborted", g.ECONNABORTED, e, f)), f = null);
1410
+ }, f.onerror = function() {
1411
+ r(new g("Network Error", g.ERR_NETWORK, e, f)), f = null;
1412
+ }, f.ontimeout = function() {
1413
+ let C = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1414
+ const F = o.transitional || dn;
1415
+ o.timeoutErrorMessage && (C = o.timeoutErrorMessage), r(new g(
1416
+ C,
1417
+ F.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
1418
+ e,
1419
+ f
1420
+ )), f = null;
1421
+ }, s === void 0 && i.setContentType(null), "setRequestHeader" in f && l.forEach(i.toJSON(), function(C, F) {
1422
+ f.setRequestHeader(F, C);
1423
+ }), l.isUndefined(o.withCredentials) || (f.withCredentials = !!o.withCredentials), a && a !== "json" && (f.responseType = o.responseType), u && ([y, h] = he(u, !0), f.addEventListener("progress", y)), c && f.upload && ([m, w] = he(c), f.upload.addEventListener("progress", m), f.upload.addEventListener("loadend", w)), (o.cancelToken || o.signal) && (d = (E) => {
1424
+ f && (r(!E || E.type ? new Y(null, e, f) : E), f.abort(), f = null);
1425
+ }, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
1426
+ const S = yo(o.url);
1427
+ if (S && k.protocols.indexOf(S) === -1) {
1428
+ r(new g("Unsupported protocol " + S + ":", g.ERR_BAD_REQUEST, e));
1429
+ return;
1430
+ }
1431
+ f.send(s || null);
1432
+ });
1433
+ }, ko = (e, t) => {
1434
+ const { length: n } = e = e ? e.filter(Boolean) : [];
1435
+ if (t || n) {
1436
+ let r = new AbortController(), o;
1437
+ const s = function(u) {
1438
+ if (!o) {
1439
+ o = !0, a();
1440
+ const d = u instanceof Error ? u : this.reason;
1441
+ r.abort(d instanceof g ? d : new Y(d instanceof Error ? d.message : d));
1442
+ }
1443
+ };
1444
+ let i = t && setTimeout(() => {
1445
+ i = null, s(new g(`timeout ${t} of ms exceeded`, g.ETIMEDOUT));
1446
+ }, t);
1447
+ const a = () => {
1448
+ e && (i && clearTimeout(i), i = null, e.forEach((u) => {
1449
+ u.unsubscribe ? u.unsubscribe(s) : u.removeEventListener("abort", s);
1450
+ }), e = null);
1451
+ };
1452
+ e.forEach((u) => u.addEventListener("abort", s));
1453
+ const { signal: c } = r;
1454
+ return c.unsubscribe = () => l.asap(a), c;
1455
+ }
1456
+ }, Fo = function* (e, t) {
1457
+ let n = e.byteLength;
1458
+ if (n < t) {
1459
+ yield e;
1460
+ return;
1461
+ }
1462
+ let r = 0, o;
1463
+ for (; r < n; )
1464
+ o = r + t, yield e.slice(r, o), r = o;
1465
+ }, Ao = async function* (e, t) {
1466
+ for await (const n of Oo(e))
1467
+ yield* Fo(n, t);
1468
+ }, Oo = async function* (e) {
1469
+ if (e[Symbol.asyncIterator]) {
1470
+ yield* e;
1471
+ return;
1472
+ }
1473
+ const t = e.getReader();
1474
+ try {
1475
+ for (; ; ) {
1476
+ const { done: n, value: r } = await t.read();
1477
+ if (n)
1478
+ break;
1479
+ yield r;
1480
+ }
1481
+ } finally {
1482
+ await t.cancel();
1483
+ }
1484
+ }, Rt = (e, t, n, r) => {
1485
+ const o = Ao(e, t);
1486
+ let s = 0, i, a = (c) => {
1487
+ i || (i = !0, r && r(c));
1488
+ };
1489
+ return new ReadableStream({
1490
+ async pull(c) {
1491
+ try {
1492
+ const { done: u, value: d } = await o.next();
1493
+ if (u) {
1494
+ a(), c.close();
1495
+ return;
1496
+ }
1497
+ let m = d.byteLength;
1498
+ if (n) {
1499
+ let y = s += m;
1500
+ n(y);
1501
+ }
1502
+ c.enqueue(new Uint8Array(d));
1503
+ } catch (u) {
1504
+ throw a(u), u;
1505
+ }
1506
+ },
1507
+ cancel(c) {
1508
+ return a(c), o.return();
1509
+ }
1510
+ }, {
1511
+ highWaterMark: 2
1512
+ });
1513
+ }, xe = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", yn = xe && typeof ReadableStream == "function", Do = xe && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), wn = (e, ...t) => {
1514
+ try {
1515
+ return !!e(...t);
1516
+ } catch {
1517
+ return !1;
1518
+ }
1519
+ }, No = yn && wn(() => {
1520
+ let e = !1;
1521
+ const t = new Request(k.origin, {
1522
+ body: new ReadableStream(),
1523
+ method: "POST",
1524
+ get duplex() {
1525
+ return e = !0, "half";
1526
+ }
1527
+ }).headers.has("Content-Type");
1528
+ return e && !t;
1529
+ }), xt = 64 * 1024, ze = yn && wn(() => l.isReadableStream(new Response("").body)), ge = {
1530
+ stream: ze && ((e) => e.body)
1531
+ };
1532
+ xe && ((e) => {
1533
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1534
+ !ge[t] && (ge[t] = l.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1535
+ throw new g(`Response type '${t}' is not supported`, g.ERR_NOT_SUPPORT, r);
1536
+ });
1537
+ });
1538
+ })(new Response());
1539
+ const vo = async (e) => {
1540
+ if (e == null)
1541
+ return 0;
1542
+ if (l.isBlob(e))
1543
+ return e.size;
1544
+ if (l.isSpecCompliantForm(e))
1545
+ return (await new Request(k.origin, {
1546
+ method: "POST",
1547
+ body: e
1548
+ }).arrayBuffer()).byteLength;
1549
+ if (l.isArrayBufferView(e) || l.isArrayBuffer(e))
1550
+ return e.byteLength;
1551
+ if (l.isURLSearchParams(e) && (e = e + ""), l.isString(e))
1552
+ return (await Do(e)).byteLength;
1553
+ }, Po = async (e, t) => {
1554
+ const n = l.toFiniteNumber(e.getContentLength());
1555
+ return n ?? vo(t);
1556
+ }, Io = xe && (async (e) => {
1557
+ let {
1558
+ url: t,
1559
+ method: n,
1560
+ data: r,
1561
+ signal: o,
1562
+ cancelToken: s,
1563
+ timeout: i,
1564
+ onDownloadProgress: a,
1565
+ onUploadProgress: c,
1566
+ responseType: u,
1567
+ headers: d,
1568
+ withCredentials: m = "same-origin",
1569
+ fetchOptions: y
1570
+ } = gn(e);
1571
+ u = u ? (u + "").toLowerCase() : "text";
1572
+ let w = ko([o, s && s.toAbortSignal()], i), h;
1573
+ const p = w && w.unsubscribe && (() => {
1574
+ w.unsubscribe();
1575
+ });
1576
+ let f;
1577
+ try {
1578
+ if (c && No && n !== "get" && n !== "head" && (f = await Po(d, r)) !== 0) {
1579
+ let F = new Request(t, {
1580
+ method: "POST",
1581
+ body: r,
1582
+ duplex: "half"
1583
+ }), B;
1584
+ if (l.isFormData(r) && (B = F.headers.get("content-type")) && d.setContentType(B), F.body) {
1585
+ const [z, ie] = St(
1586
+ f,
1587
+ he(Tt(c))
1588
+ );
1589
+ r = Rt(F.body, xt, z, ie);
1590
+ }
1591
+ }
1592
+ l.isString(m) || (m = m ? "include" : "omit");
1593
+ const b = "credentials" in Request.prototype;
1594
+ h = new Request(t, {
1595
+ ...y,
1596
+ signal: w,
1597
+ method: n.toUpperCase(),
1598
+ headers: d.normalize().toJSON(),
1599
+ body: r,
1600
+ duplex: "half",
1601
+ credentials: b ? m : void 0
1602
+ });
1603
+ let S = await fetch(h);
1604
+ const E = ze && (u === "stream" || u === "response");
1605
+ if (ze && (a || E && p)) {
1606
+ const F = {};
1607
+ ["status", "statusText", "headers"].forEach((ct) => {
1608
+ F[ct] = S[ct];
1609
+ });
1610
+ const B = l.toFiniteNumber(S.headers.get("content-length")), [z, ie] = a && St(
1611
+ B,
1612
+ he(Tt(a), !0)
1613
+ ) || [];
1614
+ S = new Response(
1615
+ Rt(S.body, xt, z, () => {
1616
+ ie && ie(), p && p();
1617
+ }),
1618
+ F
1619
+ );
1620
+ }
1621
+ u = u || "text";
1622
+ let C = await ge[l.findKey(ge, u) || "text"](S, e);
1623
+ return !E && p && p(), await new Promise((F, B) => {
1624
+ mn(F, B, {
1625
+ data: C,
1626
+ headers: O.from(S.headers),
1627
+ status: S.status,
1628
+ statusText: S.statusText,
1629
+ config: e,
1630
+ request: h
1631
+ });
1632
+ });
1633
+ } catch (b) {
1634
+ throw p && p(), b && b.name === "TypeError" && /Load failed|fetch/i.test(b.message) ? Object.assign(
1635
+ new g("Network Error", g.ERR_NETWORK, e, h),
1636
+ {
1637
+ cause: b.cause || b
1638
+ }
1639
+ ) : g.from(b, b && b.code, e, h);
1640
+ }
1641
+ }), $e = {
1642
+ http: Wr,
1643
+ xhr: xo,
1644
+ fetch: Io
1645
+ };
1646
+ l.forEach($e, (e, t) => {
1647
+ if (e) {
1648
+ try {
1649
+ Object.defineProperty(e, "name", { value: t });
1650
+ } catch {
1651
+ }
1652
+ Object.defineProperty(e, "adapterName", { value: t });
1653
+ }
1654
+ });
1655
+ const kt = (e) => `- ${e}`, Lo = (e) => l.isFunction(e) || e === null || e === !1, bn = {
1656
+ getAdapter: (e) => {
1657
+ e = l.isArray(e) ? e : [e];
1658
+ const { length: t } = e;
1659
+ let n, r;
1660
+ const o = {};
1661
+ for (let s = 0; s < t; s++) {
1662
+ n = e[s];
1663
+ let i;
1664
+ if (r = n, !Lo(n) && (r = $e[(i = String(n)).toLowerCase()], r === void 0))
1665
+ throw new g(`Unknown adapter '${i}'`);
1666
+ if (r)
1667
+ break;
1668
+ o[i || "#" + s] = r;
1669
+ }
1670
+ if (!r) {
1671
+ const s = Object.entries(o).map(
1672
+ ([a, c]) => `adapter ${a} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
1673
+ );
1674
+ let i = t ? s.length > 1 ? `since :
1675
+ ` + s.map(kt).join(`
1676
+ `) : " " + kt(s[0]) : "as no adapter specified";
1677
+ throw new g(
1678
+ "There is no suitable adapter to dispatch the request " + i,
1679
+ "ERR_NOT_SUPPORT"
1680
+ );
1681
+ }
1682
+ return r;
1683
+ },
1684
+ adapters: $e
1685
+ };
1686
+ function Be(e) {
1687
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1688
+ throw new Y(null, e);
1689
+ }
1690
+ function Ft(e) {
1691
+ return Be(e), e.headers = O.from(e.headers), e.data = Le.call(
1692
+ e,
1693
+ e.transformRequest
1694
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), bn.getAdapter(e.adapter || oe.adapter)(e).then(function(r) {
1695
+ return Be(e), r.data = Le.call(
1696
+ e,
1697
+ e.transformResponse,
1698
+ r
1699
+ ), r.headers = O.from(r.headers), r;
1700
+ }, function(r) {
1701
+ return pn(r) || (Be(e), r && r.response && (r.response.data = Le.call(
1702
+ e,
1703
+ e.transformResponse,
1704
+ r.response
1705
+ ), r.response.headers = O.from(r.response.headers))), Promise.reject(r);
1706
+ });
1707
+ }
1708
+ const En = "1.9.0", ke = {};
1709
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1710
+ ke[e] = function(r) {
1711
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1712
+ };
1713
+ });
1714
+ const At = {};
1715
+ ke.transitional = function(t, n, r) {
1716
+ function o(s, i) {
1717
+ return "[Axios v" + En + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
1718
+ }
1719
+ return (s, i, a) => {
1720
+ if (t === !1)
1721
+ throw new g(
1722
+ o(i, " has been removed" + (n ? " in " + n : "")),
1723
+ g.ERR_DEPRECATED
1724
+ );
1725
+ return n && !At[i] && (At[i] = !0, console.warn(
1726
+ o(
1727
+ i,
1728
+ " has been deprecated since v" + n + " and will be removed in the near future"
1729
+ )
1730
+ )), t ? t(s, i, a) : !0;
1731
+ };
1732
+ };
1733
+ ke.spelling = function(t) {
1734
+ return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1735
+ };
1736
+ function Bo(e, t, n) {
1737
+ if (typeof e != "object")
1738
+ throw new g("options must be an object", g.ERR_BAD_OPTION_VALUE);
1739
+ const r = Object.keys(e);
1740
+ let o = r.length;
1741
+ for (; o-- > 0; ) {
1742
+ const s = r[o], i = t[s];
1743
+ if (i) {
1744
+ const a = e[s], c = a === void 0 || i(a, s, e);
1745
+ if (c !== !0)
1746
+ throw new g("option " + s + " must be " + c, g.ERR_BAD_OPTION_VALUE);
1747
+ continue;
1748
+ }
1749
+ if (n !== !0)
1750
+ throw new g("Unknown option " + s, g.ERR_BAD_OPTION);
1751
+ }
1752
+ }
1753
+ const ce = {
1754
+ assertOptions: Bo,
1755
+ validators: ke
1756
+ }, I = ce.validators;
1757
+ let H = class {
1758
+ constructor(t) {
1759
+ this.defaults = t || {}, this.interceptors = {
1760
+ request: new bt(),
1761
+ response: new bt()
1762
+ };
1763
+ }
1764
+ /**
1765
+ * Dispatch a request
1766
+ *
1767
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1768
+ * @param {?Object} config
1769
+ *
1770
+ * @returns {Promise} The Promise to be fulfilled
1771
+ */
1772
+ async request(t, n) {
1773
+ try {
1774
+ return await this._request(t, n);
1775
+ } catch (r) {
1776
+ if (r instanceof Error) {
1777
+ let o = {};
1778
+ Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
1779
+ const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1780
+ try {
1781
+ r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
1782
+ ` + s) : r.stack = s;
1783
+ } catch {
1784
+ }
1785
+ }
1786
+ throw r;
1787
+ }
1788
+ }
1789
+ _request(t, n) {
1790
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = V(this.defaults, n);
1791
+ const { transitional: r, paramsSerializer: o, headers: s } = n;
1792
+ r !== void 0 && ce.assertOptions(r, {
1793
+ silentJSONParsing: I.transitional(I.boolean),
1794
+ forcedJSONParsing: I.transitional(I.boolean),
1795
+ clarifyTimeoutError: I.transitional(I.boolean)
1796
+ }, !1), o != null && (l.isFunction(o) ? n.paramsSerializer = {
1797
+ serialize: o
1798
+ } : ce.assertOptions(o, {
1799
+ encode: I.function,
1800
+ serialize: I.function
1801
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ce.assertOptions(n, {
1802
+ baseUrl: I.spelling("baseURL"),
1803
+ withXsrfToken: I.spelling("withXSRFToken")
1804
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1805
+ let i = s && l.merge(
1806
+ s.common,
1807
+ s[n.method]
1808
+ );
1809
+ s && l.forEach(
1810
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1811
+ (h) => {
1812
+ delete s[h];
1813
+ }
1814
+ ), n.headers = O.concat(i, s);
1815
+ const a = [];
1816
+ let c = !0;
1817
+ this.interceptors.request.forEach(function(p) {
1818
+ typeof p.runWhen == "function" && p.runWhen(n) === !1 || (c = c && p.synchronous, a.unshift(p.fulfilled, p.rejected));
1819
+ });
1820
+ const u = [];
1821
+ this.interceptors.response.forEach(function(p) {
1822
+ u.push(p.fulfilled, p.rejected);
1823
+ });
1824
+ let d, m = 0, y;
1825
+ if (!c) {
1826
+ const h = [Ft.bind(this), void 0];
1827
+ for (h.unshift.apply(h, a), h.push.apply(h, u), y = h.length, d = Promise.resolve(n); m < y; )
1828
+ d = d.then(h[m++], h[m++]);
1829
+ return d;
1830
+ }
1831
+ y = a.length;
1832
+ let w = n;
1833
+ for (m = 0; m < y; ) {
1834
+ const h = a[m++], p = a[m++];
1835
+ try {
1836
+ w = h(w);
1837
+ } catch (f) {
1838
+ p.call(this, f);
1839
+ break;
1840
+ }
1841
+ }
1842
+ try {
1843
+ d = Ft.call(this, w);
1844
+ } catch (h) {
1845
+ return Promise.reject(h);
1846
+ }
1847
+ for (m = 0, y = u.length; m < y; )
1848
+ d = d.then(u[m++], u[m++]);
1849
+ return d;
1850
+ }
1851
+ getUri(t) {
1852
+ t = V(this.defaults, t);
1853
+ const n = hn(t.baseURL, t.url, t.allowAbsoluteUrls);
1854
+ return cn(n, t.params, t.paramsSerializer);
1855
+ }
1856
+ };
1857
+ l.forEach(["delete", "get", "head", "options"], function(t) {
1858
+ H.prototype[t] = function(n, r) {
1859
+ return this.request(V(r || {}, {
1860
+ method: t,
1861
+ url: n,
1862
+ data: (r || {}).data
1863
+ }));
1864
+ };
1865
+ });
1866
+ l.forEach(["post", "put", "patch"], function(t) {
1867
+ function n(r) {
1868
+ return function(s, i, a) {
1869
+ return this.request(V(a || {}, {
1870
+ method: t,
1871
+ headers: r ? {
1872
+ "Content-Type": "multipart/form-data"
1873
+ } : {},
1874
+ url: s,
1875
+ data: i
1876
+ }));
1877
+ };
1878
+ }
1879
+ H.prototype[t] = n(), H.prototype[t + "Form"] = n(!0);
1880
+ });
1881
+ let Uo = class Sn {
1882
+ constructor(t) {
1883
+ if (typeof t != "function")
1884
+ throw new TypeError("executor must be a function.");
1885
+ let n;
1886
+ this.promise = new Promise(function(s) {
1887
+ n = s;
1888
+ });
1889
+ const r = this;
1890
+ this.promise.then((o) => {
1891
+ if (!r._listeners) return;
1892
+ let s = r._listeners.length;
1893
+ for (; s-- > 0; )
1894
+ r._listeners[s](o);
1895
+ r._listeners = null;
1896
+ }), this.promise.then = (o) => {
1897
+ let s;
1898
+ const i = new Promise((a) => {
1899
+ r.subscribe(a), s = a;
1900
+ }).then(o);
1901
+ return i.cancel = function() {
1902
+ r.unsubscribe(s);
1903
+ }, i;
1904
+ }, t(function(s, i, a) {
1905
+ r.reason || (r.reason = new Y(s, i, a), n(r.reason));
1906
+ });
1907
+ }
1908
+ /**
1909
+ * Throws a `CanceledError` if cancellation has been requested.
1910
+ */
1911
+ throwIfRequested() {
1912
+ if (this.reason)
1913
+ throw this.reason;
1914
+ }
1915
+ /**
1916
+ * Subscribe to the cancel signal
1917
+ */
1918
+ subscribe(t) {
1919
+ if (this.reason) {
1920
+ t(this.reason);
1921
+ return;
1922
+ }
1923
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1924
+ }
1925
+ /**
1926
+ * Unsubscribe from the cancel signal
1927
+ */
1928
+ unsubscribe(t) {
1929
+ if (!this._listeners)
1930
+ return;
1931
+ const n = this._listeners.indexOf(t);
1932
+ n !== -1 && this._listeners.splice(n, 1);
1933
+ }
1934
+ toAbortSignal() {
1935
+ const t = new AbortController(), n = (r) => {
1936
+ t.abort(r);
1937
+ };
1938
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1939
+ }
1940
+ /**
1941
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1942
+ * cancels the `CancelToken`.
1943
+ */
1944
+ static source() {
1945
+ let t;
1946
+ return {
1947
+ token: new Sn(function(o) {
1948
+ t = o;
1949
+ }),
1950
+ cancel: t
1951
+ };
1952
+ }
1953
+ };
1954
+ function Mo(e) {
1955
+ return function(n) {
1956
+ return e.apply(null, n);
1957
+ };
1958
+ }
1959
+ function jo(e) {
1960
+ return l.isObject(e) && e.isAxiosError === !0;
1961
+ }
1962
+ const He = {
1963
+ Continue: 100,
1964
+ SwitchingProtocols: 101,
1965
+ Processing: 102,
1966
+ EarlyHints: 103,
1967
+ Ok: 200,
1968
+ Created: 201,
1969
+ Accepted: 202,
1970
+ NonAuthoritativeInformation: 203,
1971
+ NoContent: 204,
1972
+ ResetContent: 205,
1973
+ PartialContent: 206,
1974
+ MultiStatus: 207,
1975
+ AlreadyReported: 208,
1976
+ ImUsed: 226,
1977
+ MultipleChoices: 300,
1978
+ MovedPermanently: 301,
1979
+ Found: 302,
1980
+ SeeOther: 303,
1981
+ NotModified: 304,
1982
+ UseProxy: 305,
1983
+ Unused: 306,
1984
+ TemporaryRedirect: 307,
1985
+ PermanentRedirect: 308,
1986
+ BadRequest: 400,
1987
+ Unauthorized: 401,
1988
+ PaymentRequired: 402,
1989
+ Forbidden: 403,
1990
+ NotFound: 404,
1991
+ MethodNotAllowed: 405,
1992
+ NotAcceptable: 406,
1993
+ ProxyAuthenticationRequired: 407,
1994
+ RequestTimeout: 408,
1995
+ Conflict: 409,
1996
+ Gone: 410,
1997
+ LengthRequired: 411,
1998
+ PreconditionFailed: 412,
1999
+ PayloadTooLarge: 413,
2000
+ UriTooLong: 414,
2001
+ UnsupportedMediaType: 415,
2002
+ RangeNotSatisfiable: 416,
2003
+ ExpectationFailed: 417,
2004
+ ImATeapot: 418,
2005
+ MisdirectedRequest: 421,
2006
+ UnprocessableEntity: 422,
2007
+ Locked: 423,
2008
+ FailedDependency: 424,
2009
+ TooEarly: 425,
2010
+ UpgradeRequired: 426,
2011
+ PreconditionRequired: 428,
2012
+ TooManyRequests: 429,
2013
+ RequestHeaderFieldsTooLarge: 431,
2014
+ UnavailableForLegalReasons: 451,
2015
+ InternalServerError: 500,
2016
+ NotImplemented: 501,
2017
+ BadGateway: 502,
2018
+ ServiceUnavailable: 503,
2019
+ GatewayTimeout: 504,
2020
+ HttpVersionNotSupported: 505,
2021
+ VariantAlsoNegotiates: 506,
2022
+ InsufficientStorage: 507,
2023
+ LoopDetected: 508,
2024
+ NotExtended: 510,
2025
+ NetworkAuthenticationRequired: 511
2026
+ };
2027
+ Object.entries(He).forEach(([e, t]) => {
2028
+ He[t] = e;
2029
+ });
2030
+ function Tn(e) {
2031
+ const t = new H(e), n = Xt(H.prototype.request, t);
2032
+ return l.extend(n, H.prototype, t, { allOwnKeys: !0 }), l.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
2033
+ return Tn(V(e, o));
2034
+ }, n;
2035
+ }
2036
+ const T = Tn(oe);
2037
+ T.Axios = H;
2038
+ T.CanceledError = Y;
2039
+ T.CancelToken = Uo;
2040
+ T.isCancel = pn;
2041
+ T.VERSION = En;
2042
+ T.toFormData = Re;
2043
+ T.AxiosError = g;
2044
+ T.Cancel = T.CanceledError;
2045
+ T.all = function(t) {
2046
+ return Promise.all(t);
2047
+ };
2048
+ T.spread = Mo;
2049
+ T.isAxiosError = jo;
2050
+ T.mergeConfig = V;
2051
+ T.AxiosHeaders = O;
2052
+ T.formToJSON = (e) => fn(l.isHTMLForm(e) ? new FormData(e) : e);
2053
+ T.getAdapter = bn.getAdapter;
2054
+ T.HttpStatusCode = He;
2055
+ T.default = T;
2056
+ const {
2057
+ Axios: Ki,
2058
+ AxiosError: Wi,
2059
+ CanceledError: Gi,
2060
+ isCancel: Yi,
2061
+ CancelToken: Xi,
2062
+ VERSION: Qi,
2063
+ all: Zi,
2064
+ Cancel: ea,
2065
+ isAxiosError: ta,
2066
+ spread: na,
2067
+ toFormData: ra,
2068
+ AxiosHeaders: oa,
2069
+ HttpStatusCode: sa,
2070
+ formToJSON: ia,
2071
+ getAdapter: aa,
2072
+ mergeConfig: ua
2073
+ } = T, Ot = "authorized-token", _o = {
2074
+ timeout: 18e4,
2075
+ headers: {
2076
+ Accept: "application/json, text/plain, */*",
2077
+ "Content-Type": "application/json",
2078
+ "X-Requested-With": "XMLHttpRequest"
2079
+ }
2080
+ }, R = class R {
2081
+ constructor() {
2082
+ U(this, "router");
2083
+ U(this, "baseUrl", null);
2084
+ U(this, "getNetworkError", (t) => t ? {
2085
+ 400: "错误的请求",
2086
+ 401: "服务未授权,请重新登录",
2087
+ 403: "拒绝访问",
2088
+ 404: "请求错误,未找到该资源",
2089
+ 408: "请求超时",
2090
+ 500: "服务器端出差",
2091
+ 502: "网络超时",
2092
+ 503: "服务不可用",
2093
+ 504: "网络超时"
2094
+ }[t] : null);
2095
+ this.httpInterceptorsRequest(), this.httpInterceptorsResponse();
2096
+ }
2097
+ /** 设置router调整 */
2098
+ setRouter(t) {
2099
+ this.router = t;
2100
+ }
2101
+ setBaseUrl(t) {
2102
+ this.baseUrl = t;
2103
+ }
2104
+ /** 重连原始请求 */
2105
+ static retryOriginalRequest(t) {
2106
+ return new Promise((n) => {
2107
+ R.requests.push((r) => {
2108
+ t.headers.Authorization = "Bearer " + r, n(t);
2109
+ });
2110
+ });
2111
+ }
2112
+ // 请求拦截
2113
+ httpInterceptorsRequest() {
2114
+ R.axiosInstance.interceptors.request.use(
2115
+ (t) => (Pe(t, "loading") && De(t.loading) && (t.loading.value = !0), ae.start(), typeof t.beforeRequestCallback == "function" ? (t.beforeRequestCallback(t), t) : R.initConfig.beforeRequestCallback ? (R.initConfig.beforeRequestCallback(t), t) : ["/refreshToken", "/login"].some((r) => t.url.indexOf(r) > -1) ? t : new Promise((r) => {
2116
+ const o = Z.get(Ot);
2117
+ debugger;
2118
+ if (o) {
2119
+ const s = JSON.parse(o), i = (/* @__PURE__ */ new Date()).getTime();
2120
+ s.expires - i <= 0 ? (R.isRefreshing || (R.isRefreshing = !0, this.get((this.baseUrl || "") + "/uath/refreshToken", {
2121
+ refreshToken: s.refreshToken
2122
+ }).then((c) => {
2123
+ this.setToken(c), t.headers.Authorization = "Bearer " + c.access_token, R.requests.forEach((u) => u(c.access_token)), R.requests = [];
2124
+ }).finally(() => {
2125
+ R.isRefreshing = !1, this.router.push({ name: "login" });
2126
+ })), r(R.retryOriginalRequest(t))) : (t.headers.Authorization = "Bearer " + s.accessToken, r(t));
2127
+ } else {
2128
+ const s = Z.get("kCookies_token");
2129
+ s && (t.headers["X-Token"] = s), r(t);
2130
+ }
2131
+ })),
2132
+ (t) => Promise.reject(t)
2133
+ );
2134
+ }
2135
+ setToken(t) {
2136
+ const { access_token: n, expires_in: r, refresh_token: o } = t, s = {
2137
+ accessToken: n,
2138
+ refreshToken: o,
2139
+ expires: Date.now() + r * 1e3
2140
+ };
2141
+ Z.set(Ot, JSON.stringify(s));
2142
+ }
2143
+ // 响应拦截
2144
+ httpInterceptorsResponse() {
2145
+ R.axiosInstance.interceptors.response.use(
2146
+ (n) => {
2147
+ const r = n.config;
2148
+ return Pe(r, "loading") && De(r.loading) && (r.loading.value = !1), ae.done(), typeof r.beforeResponseCallback == "function" ? (r.beforeResponseCallback(n), n.data) : (R.initConfig.beforeResponseCallback && R.initConfig.beforeResponseCallback(n), n.data);
2149
+ },
2150
+ (n) => {
2151
+ var o;
2152
+ const r = n;
2153
+ return Pe(n.config, "loading") && De((o = n == null ? void 0 : n.config) == null ? void 0 : o.loading) && (n.config.loading.value = !1), r.isCancelRequest = T.isCancel(r), ae.done(), Promise.reject(r);
2154
+ }
2155
+ );
2156
+ }
2157
+ transformConfigByMethod(t, n) {
2158
+ const { method: r } = n, o = ["get"], s = r.toLocaleLowerCase(), i = o.includes(s) ? "params" : "data";
2159
+ return {
2160
+ ...n,
2161
+ [i]: t
2162
+ };
2163
+ }
2164
+ // 通用请求工具函数
2165
+ request(t, n, r, o) {
2166
+ const s = this.transformConfigByMethod(r, {
2167
+ method: t,
2168
+ url: n,
2169
+ ...o
2170
+ });
2171
+ return new Promise((i, a) => {
2172
+ R.axiosInstance.request(s).then((c) => {
2173
+ if (c && (c == null ? void 0 : c.code) === "0")
2174
+ i(c.data);
2175
+ else if (c.code === "500")
2176
+ Ne(c.msg, { duration: 8e3 }), s.method === "get" ? i(c) : a(c.msg);
2177
+ else if ((c == null ? void 0 : c.code) !== "-1")
2178
+ i(c);
2179
+ else {
2180
+ const u = (c == null ? void 0 : c.msg) || "服务异常";
2181
+ Ne(u, { duration: 8e3 }), a(u);
2182
+ }
2183
+ }).catch((c) => {
2184
+ var u, d, m;
2185
+ if (c != null && c.code) {
2186
+ if (((u = c == null ? void 0 : c.response) == null ? void 0 : u.status) === 401)
2187
+ return (d = this.router) == null ? void 0 : d.push({ path: "/login" });
2188
+ Ne(this.getNetworkError((m = c == null ? void 0 : c.response) == null ? void 0 : m.status) || (c == null ? void 0 : c.message), { duration: 8e3 });
2189
+ }
2190
+ c.config.method === "get" ? i(c) : a(c);
2191
+ });
2192
+ });
2193
+ }
2194
+ // 单独抽离的post工具函数
2195
+ post(t, n, r) {
2196
+ return this.request("post", t, n, r);
2197
+ }
2198
+ // 单独抽离的delete工具函数
2199
+ delete(t, n, r) {
2200
+ return this.request("delete", t, n, r);
2201
+ }
2202
+ // 单独抽离的put工具函数
2203
+ put(t, n, r) {
2204
+ return this.request("put", t, n, r);
2205
+ }
2206
+ // 单独抽离的get工具函数
2207
+ get(t, n, r) {
2208
+ for (const o in n)
2209
+ n[o] || delete n[o];
2210
+ return this.request("get", t, n, r);
2211
+ }
2212
+ postRouter(t) {
2213
+ return this.request("post", "route/service", t);
2214
+ }
2215
+ };
2216
+ /** token过期后,暂存待执行的请求 */
2217
+ U(R, "requests", []), /** 防止重复刷新token */
2218
+ U(R, "isRefreshing", !1), // 初始化配置对象
2219
+ U(R, "initConfig", {}), // 保存当前Axios实例对象
2220
+ U(R, "axiosInstance", T.create(_o));
2221
+ let Ve = R;
2222
+ const Q = new Ve();
2223
+ let Je = {}, Cn = {};
2224
+ const qo = (e, t) => {
2225
+ Je = Object.assign(Je, t), e.config.globalProperties.$config = rt();
2226
+ }, rt = () => Je, zo = (e = {}) => {
2227
+ Cn = e;
2228
+ }, Dt = () => Cn, M = () => rt().ResponsiveStorageNameSpace, Fe = () => ({
2229
+ post: (e, t, n) => Q.post(`${L()}${e}`, t, n),
2230
+ get: (e, t, n) => Q.get(`${L()}${e}`, t, n),
2231
+ put: (e, t) => Q.put(`${L()}${e}`, t),
2232
+ delete: (e, t) => Q.delete(`${L()}${e}`, t)
2233
+ }), $o = (e) => {
2234
+ Q.setRouter(e);
2235
+ }, Ho = window.location.origin + "/gateway", L = () => Dt().VITE_BASE_URL === "origin" ? Ho : Dt().VITE_BASE_URL, Vo = W({
2236
+ name: "app",
2237
+ components: {
2238
+ [pt.name]: pt
2239
+ },
2240
+ beforeRouteEnter(e, t, n) {
2241
+ Fe().get("/upfm/v1/sysConfig", {}).then((r) => {
2242
+ n();
2243
+ });
2244
+ },
2245
+ computed: {
2246
+ currentLocale() {
2247
+ var e, t;
2248
+ return ((t = (e = this.$storage) == null ? void 0 : e.locale) == null ? void 0 : t.locale) === "zh" ? or : rr;
2249
+ }
2250
+ },
2251
+ beforeCreate() {
2252
+ const { t: e } = zn(), r = (D.getItem(ar) || { title: "U-DP" }).title;
2253
+ qn(
2254
+ {
2255
+ pollingTime: 3e5,
2256
+ checkOriginSpecifiedFilesUrl: [`${location.origin}/index.html`],
2257
+ enable: process.env.NODE_ENV !== "development"
2258
+ },
2259
+ {
2260
+ title: r,
2261
+ description: e("message.udp.newVersion"),
2262
+ buttonText: e("message.udp.updatenow"),
2263
+ cancelButtonText: e("message.udp.updateLater")
2264
+ }
2265
+ );
2266
+ }
2267
+ }), Jo = (e, t) => {
2268
+ const n = e.__vccOpts || e;
2269
+ for (const [r, o] of t)
2270
+ n[r] = o;
2271
+ return n;
2272
+ };
2273
+ function Ko(e, t, n, r, o, s) {
2274
+ const i = Me("router-view"), a = Me("el-config-provider");
2275
+ return Un(), Bn(a, {
2276
+ size: "small",
2277
+ "z-index": 5555,
2278
+ locale: e.currentLocale
2279
+ }, {
2280
+ default: Mn(() => [
2281
+ Wt(i)
2282
+ ]),
2283
+ _: 1
2284
+ }, 8, ["locale"]);
2285
+ }
2286
+ const Wo = /* @__PURE__ */ Jo(Vo, [["render", Ko]]), Ae = Qn();
2287
+ function Go(e) {
2288
+ e.use(Ae);
2289
+ }
2290
+ const ot = [
2291
+ {
2292
+ path: "/welcome",
2293
+ meta: {
2294
+ title: "message.udp.home",
2295
+ icon: "home-filled"
2296
+ }
2297
+ }
2298
+ ], Yo = (e, t) => {
2299
+ const n = [];
2300
+ for (const r of e)
2301
+ r[t] && n.push(r[t]);
2302
+ return Array.from(new Set(n));
2303
+ }, Rn = (e) => {
2304
+ const t = e.replace("#", "").match(/../g);
2305
+ for (let n = 0; n < 3; n++) t[n] = parseInt(t[n], 16);
2306
+ return t;
2307
+ }, xn = (e, t, n) => {
2308
+ const r = [e.toString(16), t.toString(16), n.toString(16)];
2309
+ for (let o = 0; o < 3; o++)
2310
+ r[o].length == 1 && (r[o] = `0${r[o]}`);
2311
+ return `#${r.join("")}`;
2312
+ }, la = (e, t) => {
2313
+ const n = Rn(e);
2314
+ for (let r = 0; r < 3; r++) n[r] = Math.floor(n[r] * (1 - t));
2315
+ return xn(n[0], n[1], n[2]);
2316
+ }, ca = (e, t) => {
2317
+ const n = Rn(e);
2318
+ for (let r = 0; r < 3; r++) n[r] = Math.floor((255 - n[r]) * t + n[r]);
2319
+ return xn(n[0], n[1], n[2]);
2320
+ }, Nt = {
2321
+ zh: {
2322
+ message: {
2323
+ reportCode: "报表编号",
2324
+ tempPath: "模版路径",
2325
+ tempFile: "模版文件",
2326
+ exportFileType: "文件类型",
2327
+ parameterType: "参数类型",
2328
+ valueType: "值类型",
2329
+ parameterField: "参数字段名",
2330
+ parameterName: "参数名称",
2331
+ showField: "显示字段",
2332
+ valueField: "值字段",
2333
+ exportNo: "导出编号",
2334
+ moduleName: "模块名称",
2335
+ exportResult: "导出结果",
2336
+ exportStatus: "导出状态",
2337
+ exportMsg: "提示信息",
2338
+ fileType: "文件类型",
2339
+ exportDate: "完成时间"
2340
+ }
2341
+ },
2342
+ en: {
2343
+ message: {
2344
+ tempPath: "tempPath",
2345
+ tempFile: "tempFile",
2346
+ exportFileType: "exportFileType",
2347
+ parameterType: "parameterType",
2348
+ valueType: "valueType",
2349
+ serviceCode: "serviceCode",
2350
+ parameterField: "parameterField",
2351
+ parameterName: "parameterName",
2352
+ showField: "showField",
2353
+ valueField: "valueField",
2354
+ exportNo: "exportNo",
2355
+ moduleName: "moduleName",
2356
+ printPosition: "Print Position",
2357
+ exportResult: "exportResult",
2358
+ exportStatus: "exportStatus",
2359
+ exportMsg: "exportMsg",
2360
+ fileType: "fileType",
2361
+ exportDate: "Export Date",
2362
+ dataSetCode: "Dataset Code",
2363
+ dataSetName: "Dataset Name",
2364
+ dataSetType: "Dataset Type",
2365
+ dataSetUrl: "Dataset Url",
2366
+ defaultValue: "Default Value",
2367
+ isRequired: "Required"
2368
+ }
2369
+ }
2370
+ }, Xo = {
2371
+ zh: { ...Nt.zh.message },
2372
+ en: { ...Nt.en.message }
2373
+ }, Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2374
+ __proto__: null,
2375
+ default: Xo
2376
+ }, Symbol.toStringTag, { value: "Module" })), Zo = {
2377
+ zh: {
2378
+ message: {
2379
+ taskName: "任务名称",
2380
+ processInstId: "任务编码",
2381
+ taskTitle: "任务标题",
2382
+ taskPhase: "流程阶段",
2383
+ agreement: "审批意见",
2384
+ description: "备注",
2385
+ actuatorCode: "执行器编码",
2386
+ actuatorName: "执行器名称",
2387
+ actuatorType: "注册方式",
2388
+ actuatorAddress: "机器地址"
2389
+ }
2390
+ },
2391
+ en: {
2392
+ message: {
2393
+ taskName: "taskName",
2394
+ processInstId: "processInstId",
2395
+ taskTitle: "taskTitle",
2396
+ taskPhase: "taskPhase",
2397
+ agreement: "agreement",
2398
+ description: "description",
2399
+ actuatorCode: "Actuator Code",
2400
+ actuatorName: "Actuator Name",
2401
+ actuatorType: "Actuator Type",
2402
+ actuatorAddress: "Actuator Adress"
2403
+ }
2404
+ }
2405
+ }, es = {
2406
+ zh: {
2407
+ message: {
2408
+ flowId: "流程标识",
2409
+ flowName: "流程名称",
2410
+ flowCode: "流程编码",
2411
+ description: "流程描述",
2412
+ flowDesign: "流程设计",
2413
+ version: "版本",
2414
+ effectDate: "生效日期"
2415
+ }
2416
+ },
2417
+ en: {
2418
+ message: {
2419
+ flowId: "flowId",
2420
+ flowName: "flowName",
2421
+ flowCode: "flowCode",
2422
+ description: "description",
2423
+ flowDesign: "Flow Design"
2424
+ }
2425
+ }
2426
+ }, vt = [Zo, es], ts = {
2427
+ zh: {
2428
+ ...Object.assign({}, ...vt.map((e) => e.zh.message))
2429
+ },
2430
+ en: {
2431
+ ...Object.assign({}, ...vt.map((e) => e.en.message))
2432
+ }
2433
+ }, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2434
+ __proto__: null,
2435
+ default: ts
2436
+ }, Symbol.toStringTag, { value: "Module" })), rs = {
2437
+ zh: {
2438
+ message: {
2439
+ msgtemplateCode: "模板代码",
2440
+ msgtemplateName: "模板名称",
2441
+ msgTitle: "消息标题",
2442
+ msgType: "消息类型",
2443
+ language: "语言",
2444
+ templateContent: "模板内容",
2445
+ msgCode: "消息代码",
2446
+ msgName: "消息名称",
2447
+ msgService: "消息服务",
2448
+ msgServiceName: "消息服务名称"
2449
+ }
2450
+ },
2451
+ en: {
2452
+ message: {
2453
+ xx: "xxx"
2454
+ }
2455
+ }
2456
+ }, os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2457
+ __proto__: null,
2458
+ default: rs
2459
+ }, Symbol.toStringTag, { value: "Module" })), ss = {
2460
+ udp: {
2461
+ dark: "深色",
2462
+ light: "浅色",
2463
+ smart: "灵动",
2464
+ card: "卡片",
2465
+ theme: "主题色",
2466
+ pageStyle: "整体风格",
2467
+ navigationMode: "导航模式",
2468
+ tagStyle: "页签风格",
2469
+ collapse: "折叠",
2470
+ expand: "展开",
2471
+ login: "登 陆",
2472
+ home: "首页",
2473
+ logout: "退出系统",
2474
+ password: "密码",
2475
+ passwordReset: "密码重置",
2476
+ oldPwd: "旧密码",
2477
+ newPwd: "新密码",
2478
+ confirmPwd: "确认密码",
2479
+ reload: "重新加载",
2480
+ closeCurrentTab: "关闭当前标签页",
2481
+ closeLeftTabs: "关闭左侧标签页",
2482
+ closeRightTabs: "关闭右侧标签页",
2483
+ closeOtherTabs: "关闭其他标签页",
2484
+ closeAllTabs: "关闭全部标签页",
2485
+ wholeFullScreen: "整体页面全屏",
2486
+ wholeExitFullScreen: "整体页面退出全屏",
2487
+ contentFullScreen: "内容区全屏",
2488
+ contentExitFullScreen: "内容区退出全屏",
2489
+ fourZeroFour: "404",
2490
+ fourZeroThree: "403",
2491
+ five: "500",
2492
+ backtop: "回到顶部",
2493
+ error: "Error Page",
2494
+ continueAdd: "连续添加",
2495
+ menuQuery: "菜单搜索",
2496
+ systemTitle: "系统标题",
2497
+ systemLogo: "LOGO",
2498
+ systemFavicon: "favicon",
2499
+ homeBackimg: "首页背景",
2500
+ baseUrl: "服务路径",
2501
+ copyright: "版权信息",
2502
+ i18nEnabled: "国际化",
2503
+ orgTaggle: "启用组织切换",
2504
+ defaultLanguage: "默认语言",
2505
+ roleName: "角色名称",
2506
+ roleCode: "角色编码",
2507
+ roleDesc: "角色说明",
2508
+ loginTime: "登录时间",
2509
+ operatingSystem: "操作系统",
2510
+ ip: "ip地址",
2511
+ browserVersion: "浏览器版本",
2512
+ browser: "浏览器",
2513
+ dictCode: "字典编码",
2514
+ dictName: "字典名称",
2515
+ dictType: "字典类型",
2516
+ ruleCode: "规则代码",
2517
+ ruleName: "规则名称",
2518
+ fieldType: "段类型",
2519
+ fieldValue: "段值",
2520
+ dateMask: "日期掩码",
2521
+ resetFrequency: "重置频率",
2522
+ seqLength: "位数",
2523
+ startValue: "开始值",
2524
+ currentValue: "当前值",
2525
+ haveBeenUsed: "使用中",
2526
+ unitName: "单位名称",
2527
+ unitCode: "单位编码",
2528
+ unitNote: "单位介绍",
2529
+ deleteCompany: "部门存在子级,请先删除子级",
2530
+ tip: "温馨提示",
2531
+ today: "今天",
2532
+ yesterday: "昨天",
2533
+ lastWeek: "一周内",
2534
+ lastMonth: "1月内",
2535
+ threeMonth: "3月内",
2536
+ halfYear: "半年内",
2537
+ anniversary: "1年内",
2538
+ newVersion: "检测到新版本",
2539
+ updatenow: "立即更新",
2540
+ updateLater: "稍后更新",
2541
+ appVersion: "版本号",
2542
+ buildNo: "构建号",
2543
+ versionInfo: "版本信息",
2544
+ isForceUpdate: "安装方式",
2545
+ downloadUrl: "APK文件",
2546
+ forceUpdate: "强制更新",
2547
+ freeUpdate: "自主更新",
2548
+ userName: "用户姓名",
2549
+ userCode: "用户编码",
2550
+ userType: "用户类型",
2551
+ roleList: "角色列表",
2552
+ userList: "用户列表",
2553
+ orgCode: "业务实体编码",
2554
+ orgName: "业务实体名称",
2555
+ orgAlias: "业务实体简称",
2556
+ orgDesc: "业务实体描述",
2557
+ organizationName: "组织名称",
2558
+ organizationCode: "组织编码"
2559
+ },
2560
+ btn: {
2561
+ passwordReset: "密码重置",
2562
+ add: "新增",
2563
+ agree: "同意",
2564
+ approve: "审批",
2565
+ appupper: "上架",
2566
+ applower: "下架",
2567
+ auth: "权限",
2568
+ back: "返回",
2569
+ cancel: "取消",
2570
+ completed: "完工",
2571
+ close: "关闭",
2572
+ toggle: "切换",
2573
+ confirm: "确认",
2574
+ config: "配置",
2575
+ copy: "复制",
2576
+ customSize: "自定义纸张",
2577
+ detail: "详情",
2578
+ directPrint: "直接打印",
2579
+ design: "设 计",
2580
+ delete: "删除",
2581
+ del: "删除",
2582
+ download: "下载",
2583
+ dispatchUser: "分配用户",
2584
+ dispatchAuth: "分配权限",
2585
+ FAQ: "常见问题",
2586
+ finish: "完成",
2587
+ fetch: "查询",
2588
+ edit: "编辑",
2589
+ export: "导出",
2590
+ import: "导入",
2591
+ encode: "编码",
2592
+ importJSON: "导入模板数据",
2593
+ downloadTemp: "模板下载",
2594
+ inv: "库存组织",
2595
+ look: "查看",
2596
+ lov: "值集",
2597
+ inbound: "入库",
2598
+ more: "更多",
2599
+ outbound: "出库",
2600
+ preview: "预览",
2601
+ print: "打印",
2602
+ paramSet: "参数集",
2603
+ reset: "重置",
2604
+ resumeTask: "继续",
2605
+ role: "角色",
2606
+ repaint: "重绘",
2607
+ save: "保存",
2608
+ scan: "扫码下载",
2609
+ stopTask: "停止",
2610
+ suspendTask: "暂停",
2611
+ search: "搜索",
2612
+ sync: "同步",
2613
+ submit: "提交",
2614
+ taskLog: "任务日志",
2615
+ revoke: "撤销",
2616
+ reject: "拒绝",
2617
+ upload: "上传",
2618
+ goback: "返回",
2619
+ disabled: "禁用",
2620
+ enable: "启用"
2621
+ },
2622
+ urpt: {
2623
+ templateName: "模版名称",
2624
+ templateCode: "模版编码",
2625
+ paperType: "纸张类型",
2626
+ printPosition: "打印视图",
2627
+ buttonCode: "按钮编码",
2628
+ resourceCode: "资源编码",
2629
+ resourceName: "资源名称",
2630
+ resourceUrl: "资源路径",
2631
+ fileName: "文件名称",
2632
+ fileSize: "文件大小",
2633
+ filePath: "文件路径",
2634
+ fileExtend: "文件类型",
2635
+ textAlign: "对齐方式",
2636
+ color: "色彩",
2637
+ fillOpacity: "透明度",
2638
+ fontSize: "字体大小",
2639
+ rotation: "倾斜角度",
2640
+ watermarkCode: "水印编码",
2641
+ watermarkContent: "水印内容",
2642
+ watermarkTrigger: "触发时机",
2643
+ watermarkType: "水印类型",
2644
+ xAxis: "横坐标",
2645
+ yAxis: "纵坐标"
2646
+ },
2647
+ add: "新增",
2648
+ operate: "操作",
2649
+ emptyData: "暂无数据",
2650
+ creationDate: "创建时间",
2651
+ createdByName: "创建人",
2652
+ creationName: "创建人",
2653
+ lastUpdateDate: "更新日期",
2654
+ lastUpdatedByName: "更新人",
2655
+ sort: "序号",
2656
+ seqNo: "序号",
2657
+ remark: "备注",
2658
+ loading: "加载中...",
2659
+ keyword: "关键字",
2660
+ required: "请录入",
2661
+ isRequired: "必填否",
2662
+ dataSetCode: "数据集编码",
2663
+ dataSetName: "数据集名称",
2664
+ dataSetType: "数据集类型",
2665
+ dataSetUrl: "URL/服务编码",
2666
+ paramCode: "参数编码",
2667
+ paramName: "参数名称",
2668
+ defaultValue: "默认值",
2669
+ enabled: "启用",
2670
+ disabled: "禁用",
2671
+ to: "至",
2672
+ startDate: "开始日期",
2673
+ endDate: "截至日期",
2674
+ operateSuccess: "操作成功!",
2675
+ operateFailed: "操作失败!",
2676
+ selectedRecord: "请至少选择一条记录",
2677
+ delRecord: "您确定要删除选择的数据吗?",
2678
+ importSuccess: "导入成功!",
2679
+ importFailed: "数据导入失败,请往下滚动以便查看错误信息",
2680
+ importRecord: "您确定要导入数据吗?",
2681
+ importEmpty: "数据列表为空,请先导入数据列表",
2682
+ importTip: `1、表格模板的【列标题】不可修改;
2683
+ 2、单次导入数据数量应小于2000条;
2684
+ 3、数据字典直接录入字典值表示,能极大的提高表格渲染速度哦。例如: 数据字典【是否】Y/N
2685
+ 4、导入成功,系统提示【导入成功数量xxx条】其中的数量包括表头行`,
2686
+ errorInfo: "异常信息",
2687
+ publish: "发布",
2688
+ menuName: "菜单名称(中文)",
2689
+ menuNameEn: "菜单名称(英文)",
2690
+ menuType: "菜单类型",
2691
+ menuCode: "菜单编码",
2692
+ permissionCode: "权限编码",
2693
+ permissionName: "权限名称",
2694
+ menuPath: "路由",
2695
+ frameSrc: "内链URI",
2696
+ externalURI: "外链URI",
2697
+ redirect: "重定向路径",
2698
+ i18nField: "标题字段",
2699
+ extraIcon: "额外图标",
2700
+ icon: "图标",
2701
+ jobResult: "执行结果",
2702
+ endTime: "结束时间",
2703
+ startTime: "开始时间",
2704
+ errorMessage: "异常信息",
2705
+ jobStatus: "任务状态",
2706
+ jobParam: "执行器任务参数",
2707
+ jobHandler: "任务处理类",
2708
+ jobClassName: "实现类",
2709
+ jobCron: "任务执行corn",
2710
+ jobName: "任务名称",
2711
+ jobDescription: "任务描述",
2712
+ interfaceName: "接口名称",
2713
+ interfaceUrl: "接口地址",
2714
+ requestDate: "请求日期",
2715
+ requestStatus: "请求状态",
2716
+ requestParameter: "body参数",
2717
+ responseTimeConsume: "响应时间(ms)",
2718
+ responseContent: "响应内容",
2719
+ stacktrace: "错误堆栈",
2720
+ status: "状态",
2721
+ email: "邮箱",
2722
+ userPassword: "登录密码",
2723
+ remarks: "备注",
2724
+ userPwd: "用户密码",
2725
+ unitName: "用户单位",
2726
+ employeeCode: "编号",
2727
+ employeeName: "姓名",
2728
+ department: "部门",
2729
+ gender: "性别",
2730
+ releateUser: "关联用户",
2731
+ identity: "身份证号码",
2732
+ employeeDate: "入职日期",
2733
+ solarDay: "出生日期",
2734
+ phone: "座机号",
2735
+ mobile: "手机号",
2736
+ deptName: "部门名称",
2737
+ deptCode: "部门编码",
2738
+ deptType: "部门类型",
2739
+ deletePartment: "部门存在子级,请先删除子级",
2740
+ lovCode: "视图编码",
2741
+ lovName: "视图名称",
2742
+ valueField: "值字段名",
2743
+ displayField: "显示字段名",
2744
+ lovTitle: "视图标题",
2745
+ lovType: "视图类型",
2746
+ lovUrl: "视图URI",
2747
+ colField: "表格字段名",
2748
+ colTitle: "表格列标题",
2749
+ colWidth: "列宽度",
2750
+ fieldType: "字段类型",
2751
+ dictName: "数据字典",
2752
+ isSearch: "查询字段",
2753
+ isCol: "表格列",
2754
+ sqlStatement: "SQL语句",
2755
+ fileName: "附件名称",
2756
+ fileSize: "附件大小",
2757
+ tip: {
2758
+ projectConfig: "项目配置",
2759
+ closeConfig: "关闭配置",
2760
+ clearCache: "清空缓存",
2761
+ toLogin: "清空缓存并返回登录页",
2762
+ del: "确定要删除{msg}吗?",
2763
+ uploadFormat: "上传格式{type}",
2764
+ imageSize: "图片尺寸{size}",
2765
+ imageCapacity: "图片大小{capacity}",
2766
+ singleImg: "仅支持设置单张图",
2767
+ emptyAuth: "无系统权限, 请先给用户分配角色重试",
2768
+ initPassword: "初始密码为:【123456】,请及时修改密码",
2769
+ loginFailure: "用户名或密码不能为空",
2770
+ updatenow: "立即更新",
2771
+ newVersion: "检测到新版本",
2772
+ updateLater: "稍后更新"
2773
+ },
2774
+ title: {
2775
+ employeeInfo: "员工信息",
2776
+ cronLog: "执行日志",
2777
+ memuInfo: "菜单配置",
2778
+ authority: "【{role}】权限明细",
2779
+ authUser: "【{role}】分配用户",
2780
+ authEdit: "角色编辑",
2781
+ roleInfo: "角色列表",
2782
+ appAdd: "App版本新增",
2783
+ dictList: "【{name}】字典值列表",
2784
+ dictInfo: "【{name}】字典值",
2785
+ lovView: "值集视图",
2786
+ lovColConfig: "值集列配置",
2787
+ sequenceInfo: "{name}单据序列配置"
2788
+ }
2789
+ }, is = {
2790
+ udp: {
2791
+ dark: "深色",
2792
+ light: "浅色",
2793
+ smart: "灵动",
2794
+ card: "卡片",
2795
+ theme: "主题色",
2796
+ pageStyle: "Page Style",
2797
+ navigationMode: "Navigation Node",
2798
+ tagStyle: "Tag Style",
2799
+ collapse: "Collapse",
2800
+ expand: "Expand",
2801
+ login: "Login",
2802
+ home: "Home",
2803
+ logout: "Logout",
2804
+ password: "Password",
2805
+ passwordReset: "Password Reset",
2806
+ oldPwd: "Old Password",
2807
+ newPwd: "New Password",
2808
+ confirmPwd: "Confirm Password",
2809
+ reload: "Reload",
2810
+ closeCurrentTab: "Close Current Tab",
2811
+ closeLeftTabs: "Close Left Tabs",
2812
+ closeRightTabs: "Close Right Tabs",
2813
+ closeOtherTabs: "Close Other Tabs",
2814
+ closeAllTabs: "Close All Tabs",
2815
+ wholeFullScreen: "Whole Full Screen",
2816
+ wholeExitFullScreen: "Whole Exit Full Screen",
2817
+ contentFullScreen: "Content Fulll Screen",
2818
+ contentExitFullScreen: "Content Exit Full Screen",
2819
+ fourZeroFour: "404",
2820
+ fourZeroThree: "403",
2821
+ five: "500",
2822
+ backtop: "Back Top",
2823
+ error: "Error Page",
2824
+ continueAdd: "Continue Add",
2825
+ menuQuery: "Menu Search",
2826
+ systemTitle: "System Title",
2827
+ systemLogo: "LOGO",
2828
+ systemFavicon: "favicon",
2829
+ homeBackimg: "Home Background Image",
2830
+ baseUrl: "Base Url",
2831
+ copyright: "Copy Right",
2832
+ i18nEnabled: "Internationalize",
2833
+ defaultLanguage: "Language",
2834
+ roleName: "Role Name",
2835
+ roleCode: "Role Code",
2836
+ roleDesc: "Role Desc",
2837
+ loginTime: "Login Time",
2838
+ operatingSystem: "Operate System",
2839
+ ip: "ip",
2840
+ browserVersion: "Browser Version",
2841
+ browser: "Browser",
2842
+ dictCode: "Dict Code",
2843
+ dictName: "Dict Name",
2844
+ dictType: "Dict Type",
2845
+ ruleCode: "Rule Code",
2846
+ ruleName: "Rule Name",
2847
+ fieldType: "Field Type",
2848
+ fieldValue: "Field Value",
2849
+ dateMask: "Data Mask",
2850
+ resetFrequency: "Reset Frequency",
2851
+ seqLength: "Seq Length",
2852
+ startValue: "Start Value",
2853
+ currentValue: "Current Value",
2854
+ haveBeenUsed: "Have Been Used",
2855
+ unitName: "Unit Name",
2856
+ unitCode: "Unit Code",
2857
+ unitNote: "Unit Note",
2858
+ deleteCompany: "There are child levels in the Company, please delete the child level first",
2859
+ tip: "tip",
2860
+ today: "Today",
2861
+ yesterday: "Yesterday",
2862
+ lastWeek: "Last Week",
2863
+ lastMonth: "Last Month",
2864
+ threeMonth: "Three Month",
2865
+ halfYear: "Half Year",
2866
+ anniversary: "Anniversary",
2867
+ newVersion: "检测到新版本",
2868
+ updatenow: "立即更新",
2869
+ updateLater: "稍后更新",
2870
+ appVersion: "版本号",
2871
+ buildNo: "构建号",
2872
+ versionInfo: "版本信息",
2873
+ isForceUpdate: "安装方式",
2874
+ downloadUrl: "APK文件",
2875
+ forceUpdate: "强制更新",
2876
+ freeUpdate: "自主更新",
2877
+ userName: "User Name",
2878
+ userCode: "user Code",
2879
+ sysType: "User Type",
2880
+ orgCode: "Business Unit Code",
2881
+ orgName: "Business Unit Name",
2882
+ orgAlias: "Business Unit Alias",
2883
+ orgDesc: "Business Unit Descript",
2884
+ organizationName: "Organization Name",
2885
+ organizationCode: "Organization Code"
2886
+ },
2887
+ btn: {
2888
+ add: "Add",
2889
+ agree: "Agree",
2890
+ approve: "Approval",
2891
+ appupper: "App Add",
2892
+ applower: "App Remove",
2893
+ auth: "Authority",
2894
+ back: "Back",
2895
+ cancel: "Cancel",
2896
+ completed: "Completed",
2897
+ close: "Close",
2898
+ toggle: "Toggle",
2899
+ confirm: "Confirm",
2900
+ config: "Config",
2901
+ copy: "Copy",
2902
+ customSize: "Custom Size",
2903
+ detail: "Detail",
2904
+ directPrint: "Direct Print",
2905
+ design: "Design",
2906
+ delete: "Delete",
2907
+ del: "Delete",
2908
+ download: "Download",
2909
+ dispatchUser: "Dispatch User",
2910
+ dispatchAuth: "Dispatch Authority",
2911
+ finish: "Finish",
2912
+ fetch: "Fetch",
2913
+ edit: "Edit",
2914
+ export: "Export",
2915
+ import: "Import",
2916
+ encode: "Encode",
2917
+ importJSON: "Import Data",
2918
+ look: "Look",
2919
+ lov: "Lov",
2920
+ inbound: "Inbound",
2921
+ more: "More",
2922
+ outbound: "Outbound",
2923
+ preview: "Preview",
2924
+ print: "Print",
2925
+ paramSet: "Param Set",
2926
+ reset: "Reset",
2927
+ resumeTask: "Resume",
2928
+ role: "Role",
2929
+ repaint: "Repaint",
2930
+ save: "Save",
2931
+ scan: "Scan Download",
2932
+ stopTask: "Stop",
2933
+ suspendTask: "Suspend",
2934
+ search: "Search",
2935
+ sync: "Sync",
2936
+ submit: "Submit",
2937
+ taskLog: "Log",
2938
+ revoke: "Revoke",
2939
+ reject: "Reject",
2940
+ upload: "Upload"
2941
+ },
2942
+ file: {
2943
+ templateName: "Template Name",
2944
+ templateCode: "Template Code",
2945
+ paperType: "Paper Type",
2946
+ printPosition: "Print Position",
2947
+ buttonCode: "Button Code",
2948
+ resourceCode: "Resource Code",
2949
+ resourceName: "Resource Name",
2950
+ resourceUrl: "Resource Url",
2951
+ fileName: "File Name",
2952
+ fileSize: "File Size",
2953
+ filePath: "File Path",
2954
+ fileExtend: "File Extend",
2955
+ textAlign: "Text Align",
2956
+ color: "Color",
2957
+ fillOpacity: "Fill Opacity",
2958
+ fontSize: "Font Size",
2959
+ rotation: "Rotation",
2960
+ watermarkCode: "Watermark Code",
2961
+ watermarkContent: "Watermark Content",
2962
+ watermarkTrigger: "Watermark Trigger",
2963
+ watermarkType: "Watermark Type",
2964
+ xAxis: "xAxis",
2965
+ yAxis: "yAxis"
2966
+ },
2967
+ add: "Add",
2968
+ operate: "Operate",
2969
+ emptyData: "Empty Data",
2970
+ creationDate: "Creation Date",
2971
+ createdByName: "CreatedBy Name",
2972
+ creationName: "Creation Name",
2973
+ lastUpdateDate: "LastUpdate Date",
2974
+ lastUpdatedByName: "LastUpdatedBy Name",
2975
+ sort: "Sort",
2976
+ seqNo: "Seq No",
2977
+ remark: "Remark",
2978
+ loading: "Loading...",
2979
+ keyword: "Keyword",
2980
+ required: "Required",
2981
+ isRequired: "Is Required",
2982
+ dataSetCode: "Dataset Code",
2983
+ dataSetName: "Dataset Name",
2984
+ dataSetType: "Dataset Type",
2985
+ dataSetUrl: "Dataset Url",
2986
+ paramCode: "Param Code",
2987
+ paramName: "Param Name",
2988
+ defaultValue: "Default Value",
2989
+ enabled: "Enabled",
2990
+ disabled: "Disabled",
2991
+ to: "To",
2992
+ startDate: "Start Date",
2993
+ endDate: "End Date",
2994
+ operateSuccess: "Operate Success!",
2995
+ operateFailed: "Operate Failed!",
2996
+ selectedRecord: "Please select at least one record",
2997
+ delRecord: "Are you sure you want to delete this record?",
2998
+ importSuccess: "Import Success!",
2999
+ importFailed: "Data import failed, please scroll down to view the error message",
3000
+ importRecord: "Are you sure you want to import the data?",
3001
+ importEmpty: "The data list is empty, please import the data list first",
3002
+ importTip: `1. The column headings in the table template cannot be modified;
3003
+ 2. The number of data imported at a time should be less than 2000;
3004
+ 3. Directly entering dictionary values into the data dictionary can greatly improve the speed of table rendering. For example: Data Dictionary [Yes/No] Y/N
3005
+ 4. Import successful, system prompts' xxx successful imports', including header rows`,
3006
+ errorInfo: "Error Info",
3007
+ publish: "Publish",
3008
+ menuName: "Menu Name",
3009
+ menuNameEn: "Menu Name",
3010
+ menuType: "Menu Type",
3011
+ menuCode: "Menu Code",
3012
+ permissionCode: "Permission Code",
3013
+ permissionName: "Permission Name",
3014
+ menuPath: "Menu Path",
3015
+ frameSrc: "Internal Link URI",
3016
+ externalURI: "External Link URI",
3017
+ redirect: "Redirect",
3018
+ i18nField: "Language Field",
3019
+ extraIcon: "Extra Icon",
3020
+ icon: "Icon",
3021
+ jobResult: "Job Result",
3022
+ endTime: "End Time",
3023
+ startTime: "Start Time",
3024
+ errorMessage: "Error Message",
3025
+ jobStatus: "Job Status",
3026
+ jobParam: "Job Param",
3027
+ jobHandler: "Job Handler",
3028
+ jobClassName: "Job ClassName",
3029
+ jobCron: "Job Cron",
3030
+ jobName: "Job Name",
3031
+ jobDescription: "Job Description",
3032
+ interfaceName: "Interface Name",
3033
+ interfaceUrl: "Interface Url",
3034
+ requestDate: "Request Date",
3035
+ requestStatus: "Request Status",
3036
+ requestParameter: "Request Parameter",
3037
+ responseTimeConsume: "Response TimeConsume(ms)",
3038
+ responseContent: "Response Content",
3039
+ stacktrace: "Stacktrace",
3040
+ status: "Status",
3041
+ email: "Email",
3042
+ userPassword: "Password",
3043
+ remarks: "Remarks",
3044
+ userPwd: "Password",
3045
+ unitName: "Department",
3046
+ employeeCode: "Employee Code",
3047
+ employeeName: "Employee Name",
3048
+ department: "Department",
3049
+ gender: "Sex",
3050
+ releateUser: "Releate User",
3051
+ identity: "Identity",
3052
+ employeeDate: "Employee Date",
3053
+ solarDay: "Solar Day",
3054
+ phone: "Phone",
3055
+ mobile: "Mobile",
3056
+ deptName: "Department Name",
3057
+ deptCode: "Department Code",
3058
+ deptType: "Department Type",
3059
+ deletePartment: "There are child levels in the department, please delete the child level first",
3060
+ lovCode: "LovCode",
3061
+ lovName: "lovName",
3062
+ valueField: "valueField",
3063
+ displayField: "displayField",
3064
+ lovTitle: "lovTitle",
3065
+ colField: "colField",
3066
+ colTitle: "colTitle",
3067
+ width: "width",
3068
+ dictDispose: "dictDispose",
3069
+ isSearch: "isSearch",
3070
+ isCol: "isCol"
3071
+ }, Pt = /* @__PURE__ */ Object.assign({ "./module/u-report.ts": Qo, "./module/u-workflow.ts": ns, "./module/umsg.ts": os }), de = {};
3072
+ for (const e in Pt)
3073
+ de[e.replace(/(\.\/module\/|\.ts)/g, "")] = Pt[e].default;
3074
+ const It = Object.keys(de).filter((e) => de[e]).map((e) => de[e]), as = {
3075
+ zh: {
3076
+ ...D.getItem(sr),
3077
+ message: Xe(ss, ...It.map((e) => e.zh.message))
3078
+ },
3079
+ en: {
3080
+ ...D.getItem(ir),
3081
+ message: Object.assign(is, ...It.map((e) => e.en.message))
3082
+ }
3083
+ };
3084
+ let K = null;
3085
+ function us(e, t = { messages: {} }) {
3086
+ var n;
3087
+ K = $n({
3088
+ legacy: !1,
3089
+ locale: ((n = D.getItem(`${M()}locale`)) == null ? void 0 : n.locale) ?? "zh",
3090
+ fallbackLocale: "en",
3091
+ globalInjection: !0,
3092
+ messages: Xe(as, t.messages)
3093
+ }), Ze.setLanguage("zh-CN"), e.use(K);
3094
+ }
3095
+ const fe = () => K;
3096
+ function ls(e = "", t = !0) {
3097
+ if (!e)
3098
+ return "";
3099
+ if (typeof e == "object") {
3100
+ const n = K.global.locale;
3101
+ return e[n.value];
3102
+ }
3103
+ return t ? K.global.t.call(K.global, e) : e;
3104
+ }
3105
+ const cs = Qe("udp-system", {
3106
+ state: () => ({
3107
+ baseURL: "",
3108
+ userInfo: {},
3109
+ systemInfo: {},
3110
+ dataDict: {},
3111
+ sysConfig: {},
3112
+ menui18n: {},
3113
+ i18n: {},
3114
+ dicts: [],
3115
+ orgList: [],
3116
+ invOrgList: [],
3117
+ homeMenus: [],
3118
+ sessionKey: "",
3119
+ orgId: "",
3120
+ userName: "",
3121
+ organizationId: "",
3122
+ isAdminRole: !1
3123
+ }),
3124
+ getters: {
3125
+ getBaseURL() {
3126
+ return this.baseURL;
3127
+ },
3128
+ getUserInfo() {
3129
+ return this.userInfo;
3130
+ },
3131
+ getSysConfig() {
3132
+ return this.sysConfig;
3133
+ },
3134
+ getEmployee() {
3135
+ return this.employee;
3136
+ },
3137
+ getSessionKey() {
3138
+ return this.sessionKey;
3139
+ },
3140
+ getMenuI18n() {
3141
+ return this.menui18n;
3142
+ },
3143
+ getI18n() {
3144
+ return this.i18n;
3145
+ },
3146
+ getOrglist() {
3147
+ return this.orgList;
3148
+ },
3149
+ getOrgId() {
3150
+ return this.orgId;
3151
+ },
3152
+ getOrganizationId() {
3153
+ return this.organizationId;
3154
+ },
3155
+ getDataDict() {
3156
+ return this.dataDict;
3157
+ },
3158
+ getUserName() {
3159
+ return this.userName;
3160
+ },
3161
+ getAdminRole(e) {
3162
+ return e.isAdminRole;
3163
+ },
3164
+ getHomeMenus(e) {
3165
+ return e.homeMenus;
3166
+ },
3167
+ getOrganizationCode(e) {
3168
+ var t, n;
3169
+ return (n = (t = e.invOrgList) == null ? void 0 : t.find((r) => r.id === e.organizationId)) == null ? void 0 : n.organizationCode;
3170
+ },
3171
+ getOrg(e) {
3172
+ return e.orgList.find((t) => t.id === e.orgId);
3173
+ }
3174
+ },
3175
+ actions: {
3176
+ // baseURL
3177
+ setBaseURL(e) {
3178
+ this.sessionKey = e;
3179
+ },
3180
+ setSessionKey(e) {
3181
+ this.sessionKey = e.access_token || e;
3182
+ },
3183
+ // sysConfig
3184
+ setSysConfig(e) {
3185
+ this.sysConfig = e;
3186
+ },
3187
+ // orgId
3188
+ setOrgId(e) {
3189
+ this.orgId = e;
3190
+ },
3191
+ setOrganizationId(e) {
3192
+ this.organizationId = e;
3193
+ },
3194
+ setMenuI18n(e) {
3195
+ this.menui18n = e;
3196
+ },
3197
+ setI18n(e) {
3198
+ this.i18n = e;
3199
+ },
3200
+ setUserName(e) {
3201
+ this.userName = e;
3202
+ },
3203
+ // 首页子菜单列表
3204
+ setHomeMenus(e) {
3205
+ this.homeMenus = e;
3206
+ },
3207
+ // 库存组织列表
3208
+ setInvOrgList(e) {
3209
+ this.invOrgList = e;
3210
+ },
3211
+ setOrgList(e) {
3212
+ this.orgList = e;
3213
+ },
3214
+ setDict(e) {
3215
+ this.dicts = e, e == null || e.forEach((t) => {
3216
+ this.dataDict[t.dictCode] = t;
3217
+ }), D.setItem("kLov", this.dataDict);
3218
+ },
3219
+ // 系统信息
3220
+ setSystemInfo(e) {
3221
+ var r;
3222
+ this.systemInfo = e;
3223
+ const t = (r = e.employeeList) != null && r.length ? e.employeeList[0] : "";
3224
+ this.userInfo = e.user || {}, this.employee = Object.assign({}, t, e.user), this.orgId = e.orgId, this.organizationId = e.organizationId, this.orgList = e.orgList;
3225
+ const n = {
3226
+ orgId: e.orgId,
3227
+ organizationId: e.organizationId
3228
+ };
3229
+ Z.set("kCookies_param", JSON.stringify(n)), this.isAdminRole = this.employee.sysRoles.some(
3230
+ (o) => o.roleCode === "admin" || ["管理员"].includes(o.roleName)
3231
+ ), N().setAuthButton(e.dataMenus);
3232
+ }
3233
+ }
3234
+ });
3235
+ function pe() {
3236
+ return cs(Ae);
3237
+ }
3238
+ function ds(e, t) {
3239
+ return /* @__PURE__ */ W({
3240
+ name: e,
3241
+ components: {
3242
+ asyncComponent: t
3243
+ },
3244
+ setup() {
3245
+ return () => Wt(Me("async-component"), null, null);
3246
+ }
3247
+ });
3248
+ }
3249
+ be.setBaseUrl(L());
3250
+ const fs = () => be.get(`${L()}/uums/roleMenu`), ps = () => be.get(`${L()}/upfm/v1/lov/selectAll`), Lt = (e) => be.get(`${L()}/uums/roleMenu/userMenu`, e), ms = () => import("./layoutView-i7dLLBzJ.js"), hs = () => import("./frameView-BDgngiBq.js");
3251
+ function se(e) {
3252
+ return e.forEach((t) => {
3253
+ var n, r;
3254
+ ((n = t == null ? void 0 : t.meta) == null ? void 0 : n.rank) === null && (t.meta.rank = void 0), ((r = t == null ? void 0 : t.meta) == null ? void 0 : r.rank) === 0 && t.name !== "home" && t.path !== "/" && console.warn("rank only the home page can be 0");
3255
+ }), e.sort((t, n) => {
3256
+ var r, o;
3257
+ return ((r = t == null ? void 0 : t.meta) == null ? void 0 : r.rank) - ((o = n == null ? void 0 : n.meta) == null ? void 0 : o.rank);
3258
+ });
3259
+ }
3260
+ function kn(e) {
3261
+ const t = ee(e, !0).filter(
3262
+ (n) => {
3263
+ var r;
3264
+ return n && ((r = n.meta) == null ? void 0 : r.showLink) !== !1;
3265
+ }
3266
+ );
3267
+ return t.forEach((n) => n.children && (n.children = kn(n.children))), t;
3268
+ }
3269
+ function da(e, t, n = "path") {
3270
+ function r(o, s, i) {
3271
+ for (let a = 0; a < o.length; a++) {
3272
+ const c = o[a];
3273
+ if (c[n] === s) return i;
3274
+ if (!(!c.children || !c.children.length)) {
3275
+ if (i.push(c.path), r(c.children, s, i).length) return i;
3276
+ i.pop();
3277
+ }
3278
+ }
3279
+ return [];
3280
+ }
3281
+ return r(t, e, []);
3282
+ }
3283
+ function Fn(e, t) {
3284
+ let n = t.find((r) => r.path == e);
3285
+ if (n)
3286
+ return ft(n) ? dt(n) : n;
3287
+ for (let r = 0; r < t.length; r++)
3288
+ if (t[r].children instanceof Array && t[r].children.length > 0 && (n = Fn(e, t[r].children), n))
3289
+ return ft(n) ? dt(n) : n;
3290
+ return null;
3291
+ }
3292
+ function gs() {
3293
+ x.hasRoute("pathMatch") || x.addRoute({
3294
+ path: "/:pathMatch(.*)",
3295
+ name: "pathMatch",
3296
+ redirect: "/error/404"
3297
+ });
3298
+ }
3299
+ function ys() {
3300
+ var t, n;
3301
+ const e = fe();
3302
+ (t = e.global) == null || t.mergeLocaleMessage("zh", J.zh), (n = e.global) == null || n.mergeLocaleMessage("en", J.en), D.setItem("menu_zh", J.zh), D.setItem("menu_en", J.en);
3303
+ }
3304
+ function Bt(e) {
3305
+ if (e != null && e.length) {
3306
+ const t = e.findIndex((r) => r.menuCode === "SysHome");
3307
+ if (t !== -1) {
3308
+ const r = [], o = [];
3309
+ e[t].children.forEach((s) => {
3310
+ s.menuCategory !== "1" ? r.push(s) : o.push(s);
3311
+ }), e[t].children = o, pe().setHomeMenus(r);
3312
+ }
3313
+ const n = ee(On(e), !0);
3314
+ ys(), Oe(n).map((r) => {
3315
+ const { options: o } = x;
3316
+ o.routes[0].children.findIndex((s) => s.path === r.path) === -1 && (x.options.routes[0].children.push(r), se(x.options.routes[0].children), x.hasRoute(r == null ? void 0 : r.name) || x.addRoute(r));
3317
+ });
3318
+ }
3319
+ N().changeSetting(e), q().getMultiTagsCache || q().handleTags("equal", [
3320
+ ...ot,
3321
+ ...N().flatteningRoutes.filter((t) => {
3322
+ var n;
3323
+ return (n = t == null ? void 0 : t.meta) == null ? void 0 : n.fixedTag;
3324
+ })
3325
+ ]), gs();
3326
+ }
3327
+ async function ws(e) {
3328
+ let t = [];
3329
+ const n = `U-${e}-ROUTES`;
3330
+ return rt().CachingAsyncRoutes && await ve.getItem(n).then((r) => t = r), ps().then((r) => pe().setDict(r)), await fs().then(async (r) => {
3331
+ pe().setSystemInfo(r), await Fe().get("/uums/cusOrganization", { pageSize: 100, pageNum: 1, orgId: r.orgId }).then((o) => pe().setInvOrgList((o == null ? void 0 : o.list) || []));
3332
+ }), t != null && t.length ? new Promise((r) => {
3333
+ Bt(t), Lt({ userName: e }).then((o) => {
3334
+ ve.setItem(n, o);
3335
+ }), r(x);
3336
+ }) : new Promise((r) => {
3337
+ Lt({ userName: e }).then((o) => {
3338
+ Bt(ee(o, !0)), ve.setItem(n, o), r(x);
3339
+ });
3340
+ });
3341
+ }
3342
+ function Oe(e) {
3343
+ if (e.length === 0) return e;
3344
+ let t = Ye(e);
3345
+ for (let n = 0; n < t.length; n++)
3346
+ t[n].children && (t = t.slice(0, n + 1).concat(t[n].children, t.slice(n + 1)));
3347
+ return t;
3348
+ }
3349
+ function An(e) {
3350
+ if (e.length === 0) return e;
3351
+ const t = [];
3352
+ return e.forEach((n) => {
3353
+ n.path === "/" ? t.push({
3354
+ component: n.component,
3355
+ name: n.name,
3356
+ path: n.path,
3357
+ redirect: n.redirect,
3358
+ meta: n.meta,
3359
+ children: []
3360
+ }) : t[0].children.push({ ...n });
3361
+ }), t;
3362
+ }
3363
+ function bs({ name: e }, t) {
3364
+ switch (t) {
3365
+ case "add":
3366
+ N().cacheOperate({ mode: "add", name: e });
3367
+ break;
3368
+ case "delete":
3369
+ N().cacheOperate({ mode: "delete", name: e });
3370
+ break;
3371
+ case "refresh":
3372
+ N().cacheOperate({ mode: "refresh", name: e });
3373
+ break;
3374
+ default:
3375
+ N().cacheOperate({ mode: "delete", name: e }), Zn(() => {
3376
+ N().cacheOperate({ mode: "add", name: e });
3377
+ }, 100);
3378
+ }
3379
+ }
3380
+ const J = {
3381
+ zh: {},
3382
+ en: {}
3383
+ }, On = (e) => {
3384
+ var r;
3385
+ const t = Ds();
3386
+ if (!e || !e.length) return;
3387
+ const n = Object.keys(t);
3388
+ for (let o = 0; o < e.length; o++) {
3389
+ const s = e[o];
3390
+ s != null && s.children && s.children.length && !s.redirect && (s.redirect = s.children[0].path);
3391
+ const { icon: i, permissionCode: a, extraIcon: c, frameSrc: u } = s;
3392
+ if (s.meta = { keepAlive: !0, rank: s.sort, title: `${s.i18nField}` }, Object.assign(s.meta, { icon: i, permissionCode: a, extraIcon: c, frameSrc: u }), J.zh[s.i18nField] = s.menuName || s.menuNameEn, J.en[s.i18nField] = s.menuNameEn || s.menuName, s.name = s.menuCode || s.name, s.path = s.menuPath || s.path, !s.parentId)
3393
+ s.component = ms;
3394
+ else if ((r = s.meta) != null && r.frameSrc)
3395
+ s.component = hs;
3396
+ else if (s.menuCategory === "10") {
3397
+ const d = n.findIndex((m) => m.includes("lowcode-contain"));
3398
+ s.component = ds(
3399
+ s.name,
3400
+ jn(() => import(
3401
+ /* @vite-ignore */
3402
+ n[d]
3403
+ ))
3404
+ ), Object.assign(s.meta, { moduleType: s.moduleType });
3405
+ } else if (s.menuCategory !== "5") {
3406
+ const d = n.findIndex((m) => m.includes(s.path));
3407
+ s.component = t[n[d]];
3408
+ }
3409
+ s != null && s.children && s.children.length ? On(s.children) : delete s.children;
3410
+ }
3411
+ return e;
3412
+ };
3413
+ function fa(e, t = !0) {
3414
+ const n = q().multiTags.findIndex((r) => {
3415
+ if (e.query) {
3416
+ if (e.path === r.path)
3417
+ return e.query === r.query;
3418
+ } else
3419
+ return e.path === r.path;
3420
+ });
3421
+ if (q().handleTags("splice", "", { startIndex: n, length: 1 }), bs(e.matched, "delete"), t) {
3422
+ const r = q().handleTags("slice");
3423
+ x.push({
3424
+ path: r[0].path,
3425
+ query: r[0].query
3426
+ });
3427
+ }
3428
+ }
3429
+ const Es = Qe("udp-permission", {
3430
+ state: () => ({
3431
+ // 静态路由生成的菜单
3432
+ constantMenus: As,
3433
+ // 整体路由生成的菜单(静态、动态)
3434
+ wholeMenus: [],
3435
+ // 深拷贝一个菜单树,与导航菜单不冲突
3436
+ menusTree: [],
3437
+ // 整体路由(一维数组格式)
3438
+ flatteningRoutes: [],
3439
+ buttonAuth: [],
3440
+ // 缓存页面keepAlive
3441
+ cachePageList: []
3442
+ }),
3443
+ getters: {
3444
+ getButtonAuth() {
3445
+ return this.buttonAuth;
3446
+ }
3447
+ },
3448
+ actions: {
3449
+ asyncActionRoutes(e = []) {
3450
+ if (this.wholeMenus.length > 0) return;
3451
+ const t = Kn(e, (r) => r.menuCode === "SysHome"), n = ee(this.constantMenus, !0);
3452
+ if (t !== -1) {
3453
+ const r = this.constantMenus.find((o) => o.name === "home");
3454
+ e[t].children && r.children.push(...e[t].children), e.splice(t, 1);
3455
+ }
3456
+ this.wholeMenus = kn(se(this.constantMenus.concat(e))), this.flatteningRoutes = Oe(this.constantMenus.concat(e)), this.menusTree = ee(this.wholeMenus, !0), this.constantMenus = n;
3457
+ },
3458
+ async changeSetting(e) {
3459
+ await this.asyncActionRoutes(e);
3460
+ },
3461
+ setAuthButton(e) {
3462
+ this.buttonAuth = e;
3463
+ },
3464
+ setWholeMenus(e) {
3465
+ this.wholeMenus = e;
3466
+ },
3467
+ cacheOperate({ mode: e, name: t }) {
3468
+ const n = this.cachePageList.findIndex((r) => r === t);
3469
+ switch (e) {
3470
+ case "refresh":
3471
+ this.cachePageList = this.cachePageList.filter((r) => r !== t);
3472
+ break;
3473
+ case "add":
3474
+ this.cachePageList.push(t);
3475
+ break;
3476
+ case "delete":
3477
+ n !== -1 && this.cachePageList.splice(n, 1);
3478
+ break;
3479
+ case "reset":
3480
+ this.cachePageList = [];
3481
+ break;
3482
+ }
3483
+ Jn(() => {
3484
+ let r = this.cachePageList.length;
3485
+ const o = Yo(q().multiTags, "name");
3486
+ for (; r > 0; )
3487
+ o.findIndex((s) => s === this.cachePageList[r - 1]) === -1 && this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[r - 1]), 1), r--;
3488
+ }, 500)();
3489
+ },
3490
+ /** 清空缓存页面 */
3491
+ clearAllCachePage() {
3492
+ this.wholeMenus = [], this.menusTree = [], this.buttonAuth = [], this.cachePageList = [];
3493
+ }
3494
+ }
3495
+ });
3496
+ function N() {
3497
+ return Es(Ae);
3498
+ }
3499
+ const Ss = Qe("udp-multiTags", {
3500
+ state: () => {
3501
+ var e, t;
3502
+ return {
3503
+ // 存储标签页信息(路由信息)
3504
+ multiTags: (e = D.getItem(`${M()}configure`)) != null && e.multiTagsCache ? D.getItem(`${M()}tags`) : [...ot, ...N().flatteningRoutes.filter((n) => {
3505
+ var r;
3506
+ return (r = n == null ? void 0 : n.meta) == null ? void 0 : r.fixedTag;
3507
+ })],
3508
+ multiTagsCache: (t = D.getItem(`${M()}configure`)) == null ? void 0 : t.multiTagsCache
3509
+ };
3510
+ },
3511
+ getters: {
3512
+ getMultiTagsCache(e) {
3513
+ return e.multiTagsCache;
3514
+ }
3515
+ },
3516
+ actions: {
3517
+ multiTagsCacheChange(e) {
3518
+ this.multiTagsCache = e, e ? D.setItem(`${M()}tags`, this.multiTags) : D.removeItem(`${M()}tags`);
3519
+ },
3520
+ tagsCache(e) {
3521
+ this.getMultiTagsCache && D.setItem(`${M()}tags`, e);
3522
+ },
3523
+ handleTags(e, t, n) {
3524
+ var r, o, s, i, a, c;
3525
+ switch (e) {
3526
+ case "equal":
3527
+ this.multiTags = t, this.tagsCache(this.multiTags);
3528
+ break;
3529
+ case "push":
3530
+ {
3531
+ const u = t;
3532
+ if ((r = u == null ? void 0 : u.meta) != null && r.hiddenTag || Gt(u == null ? void 0 : u.name) || ((s = (o = u == null ? void 0 : u.meta) == null ? void 0 : o.title) == null ? void 0 : s.length) === 0 || Wn((i = u == null ? void 0 : u.meta) == null ? void 0 : i.showLink) && !((a = u == null ? void 0 : u.meta) != null && a.showLink)) return;
3533
+ const d = u.path, m = this.multiTags.some((p) => p.path === d), y = this.multiTags.some((p) => mt(p == null ? void 0 : p.query, u == null ? void 0 : u.query)), w = this.multiTags.some((p) => mt(p == null ? void 0 : p.params, u == null ? void 0 : u.params));
3534
+ if (m && y && w) return;
3535
+ const h = ((c = u == null ? void 0 : u.meta) == null ? void 0 : c.dynamicLevel) ?? -1;
3536
+ if (h > 0 && this.multiTags.filter((p) => (p == null ? void 0 : p.path) === d).length >= h) {
3537
+ const p = this.multiTags.findIndex((f) => (f == null ? void 0 : f.path) === d);
3538
+ p !== -1 && this.multiTags.splice(p, 1);
3539
+ }
3540
+ this.multiTags.push(t), this.tagsCache(this.multiTags);
3541
+ }
3542
+ break;
3543
+ case "splice":
3544
+ if (n)
3545
+ this.multiTags.splice(n == null ? void 0 : n.startIndex, n == null ? void 0 : n.length);
3546
+ else {
3547
+ const u = this.multiTags.findIndex((d) => d.path === t);
3548
+ if (u === -1) return;
3549
+ this.multiTags.splice(u, 1);
3550
+ }
3551
+ return this.tagsCache(this.multiTags), this.multiTags;
3552
+ case "slice":
3553
+ return this.multiTags.slice(-1);
3554
+ }
3555
+ }
3556
+ }
3557
+ });
3558
+ function q() {
3559
+ return Ss(Ae);
3560
+ }
3561
+ const Ts = () => import("./layoutView-i7dLLBzJ.js"), Cs = {
3562
+ path: "/",
3563
+ name: "home",
3564
+ component: Ts,
3565
+ redirect: "/welcome",
3566
+ meta: {
3567
+ icon: "home-filled",
3568
+ title: "message.udp.home",
3569
+ rank: 0
3570
+ },
3571
+ children: [
3572
+ {
3573
+ path: "/welcome",
3574
+ name: "SuHome",
3575
+ component: () => import("./su-welcome-Bx8nBPi9.js"),
3576
+ meta: {
3577
+ title: "message.udp.home",
3578
+ keepAlive: !0
3579
+ }
3580
+ }
3581
+ ]
3582
+ }, Rs = () => import("./layoutView-i7dLLBzJ.js"), xs = {
3583
+ path: "/error",
3584
+ name: "error",
3585
+ component: Rs,
3586
+ redirect: "/error/403",
3587
+ meta: {
3588
+ showLink: !1,
3589
+ icon: "information-line",
3590
+ title: "message.udp.error",
3591
+ rank: 999
3592
+ },
3593
+ children: [
3594
+ {
3595
+ path: "/error/403",
3596
+ name: "403",
3597
+ component: () => import("./403-Dsgsr2M-.js"),
3598
+ meta: {
3599
+ title: "message.udp.fourZeroThree"
3600
+ }
3601
+ }
3602
+ ]
3603
+ }, ks = () => import("./layoutView-i7dLLBzJ.js"), ne = [
3604
+ {
3605
+ path: "/login",
3606
+ name: "login",
3607
+ component: () => import("./login-K5Ludp8x.js"),
3608
+ meta: {
3609
+ title: "message.udp.login",
3610
+ showLink: !1
3611
+ }
3612
+ },
3613
+ {
3614
+ path: "/error/404",
3615
+ name: "404",
3616
+ component: () => import("./404-DmPHEfqM.js"),
3617
+ meta: {
3618
+ title: "message.udp.fourZeroFour",
3619
+ showLink: !1
3620
+ }
3621
+ },
3622
+ {
3623
+ path: "/error/500",
3624
+ name: "500",
3625
+ component: () => import("./500-OYEgHR2a.js"),
3626
+ meta: {
3627
+ title: "message.udp.five",
3628
+ showLink: !1
3629
+ }
3630
+ },
3631
+ {
3632
+ path: "/redirect",
3633
+ name: "redirect",
3634
+ component: ks,
3635
+ meta: {
3636
+ icon: "home-filled",
3637
+ title: "message.udp.home",
3638
+ showLink: !1,
3639
+ rank: 104
3640
+ },
3641
+ children: [
3642
+ {
3643
+ path: "/redirect/:path(.*)",
3644
+ // 2024-12-17
3645
+ name: "redirectView",
3646
+ component: () => import("./redirect-BqegffKC.js")
3647
+ }
3648
+ ]
3649
+ }
3650
+ ], Fs = /* @__PURE__ */ Object.assign({
3651
+ "../views/organization/company/Company.vue": () => import("./Company-C8ojgx93.js"),
3652
+ "../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-Dageer1t.js"),
3653
+ "../views/organization/department/Department.vue": () => import("./Department-Dr94_85I.js"),
3654
+ "../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-Bc5r1HpT.js"),
3655
+ "../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-DP3Le9g-.js"),
3656
+ "../views/organization/org/Org.vue": () => import("./Org-BRGHTwsw.js"),
3657
+ "../views/organization/staff/Staff.vue": () => import("./Staff-Dr0dq3fW.js"),
3658
+ "../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-_N9g2hPa.js"),
3659
+ "../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-mxJQiW3G.js"),
3660
+ "../views/system/cron/cron-task.vue": () => import("./cron-task-T1ztyra7.js"),
3661
+ "../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-BeBNiwqc.js"),
3662
+ "../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-Be-gFIie.js"),
3663
+ "../views/system/menu/menuInfo.vue": () => import("./menuInfo-BaN5YZPp.js"),
3664
+ "../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-DrKFWZzA.js"),
3665
+ "../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-BRI5QYe4.js"),
3666
+ "../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-B1H1txG-.js"),
3667
+ "../views/system/role/Role.vue": () => import("./Role-BGfTpZK4.js"),
3668
+ "../views/system/role/RolePanel.vue": () => import("./RolePanel-3lvRh7aS.js"),
3669
+ "../views/system/role/UserInfo.vue": () => import("./UserInfo-BCYuwFmr.js"),
3670
+ "../views/system/sys/sys-config.vue": () => import("./sys-config-nvrtYGgi.js"),
3671
+ "../views/system/sysUser/SysUser.vue": () => import("./SysUser-DgA19hZE.js"),
3672
+ "../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-Bc85z5_K.js"),
3673
+ "../views/uapp/pda/pda-app.vue": () => import("./pda-app-DEtDXFvM.js"),
3674
+ "../views/udev/coderule/code-rule.vue": () => import("./code-rule-BSwPwuAL.js"),
3675
+ "../views/udev/dict/DictView.vue": () => import("./DictView-BHj6wexC.js"),
3676
+ "../views/udev/dict/childView.vue": () => import("./childView-Dk4zZoXd.js"),
3677
+ "../views/udev/lov/childView.vue": () => import("./childView-DhcBr1UA.js"),
3678
+ "../views/udev/lov/lov-view.vue": () => import("./lov-view-lAexiucu.js"),
3679
+ "../views/upms/interface/log-in.vue": () => import("./log-in-e7D5Ss1P.js"),
3680
+ "../views/upms/interface/log-out.vue": () => import("./log-out--RRncZhN.js"),
3681
+ "../views/upms/user/login-log.vue": () => import("./login-log-kqKzKTto.js"),
3682
+ "../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-DT-rGICv.js"),
3683
+ "../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-CcWt1Myp.js"),
3684
+ "../views/urpt/design/Preview.vue": () => import("./Preview-CqMaUD_3.js"),
3685
+ "../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-CB4bv8ba.js"),
3686
+ "../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-B7t4lMK0.js"),
3687
+ "../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-VBxUIMRJ.js"),
3688
+ "../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-PEQdTCOY.js"),
3689
+ "../views/urpt/static-resource/resource.vue": () => import("./resource-Bztmz7pn.js"),
3690
+ "../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-DNkv7F5p.js")
3691
+ }), pa = ne, st = [Cs, xs], ma = An(
3692
+ Oe(Ye(se(st)))
3693
+ ), As = se(st).concat(...ne), ha = Object.keys(ne).map((e) => ne[e].path);
3694
+ function ga() {
3695
+ x.getRoutes().forEach((e) => {
3696
+ const { name: t, meta: n } = e;
3697
+ t && x.hasRoute(t) && (n != null && n.backstage) && (x.removeRoute(t), x.options.routes = An(Oe(Ye(se(st)))));
3698
+ }), N().clearAllCachePage();
3699
+ }
3700
+ let Ke = null, x = null;
3701
+ function Os(e, t) {
3702
+ Ke = e, x = t, Object.assign(Ke, Fs);
3703
+ }
3704
+ function Ds() {
3705
+ return Ke;
3706
+ }
3707
+ const Ns = ["/login"], ya = (e, t, n) => {
3708
+ var i, a, c;
3709
+ const r = Z.get(ur), o = Gt(e == null ? void 0 : e.name);
3710
+ function s() {
3711
+ Ns.includes(e.fullPath) ? n(t.fullPath) : n();
3712
+ }
3713
+ if (t != null && t.name && (t == null ? void 0 : t.name) !== "login") {
3714
+ const u = (i = e.matched.find((d) => d.path === e.path || d.name === e.name && e.params)) == null ? void 0 : i.components;
3715
+ o ? (Hn(e == null ? void 0 : e.name), (a = ae) == null || a.done()) : u != null && u.default || e.name === "redirect" ? s() : n({ path: "/error/404" });
3716
+ } else
3717
+ N().wholeMenus.length === 0 && ws(r).then((u) => {
3718
+ var d;
3719
+ if (!q().getMultiTagsCache) {
3720
+ const { path: m } = e, w = Gn(ne, (p) => p.path === m) === -1 ? u.options.routes[0].children : u.options.routes, h = Fn(m, w);
3721
+ if (h && ((d = h.meta) != null && d.title)) {
3722
+ const { path: p, name: f, meta: b } = h;
3723
+ q().handleTags("push", { path: p, name: f, meta: b });
3724
+ }
3725
+ }
3726
+ Yn(e.name) && u.push(e.fullPath);
3727
+ }), t.fullPath === "/" && e.fullPath === "/login" && !((c = e.query) != null && c.tokenExpire) ? (e.path = "/welcome", e.fullPath = "/welcome", e.name = "SuHome") : t.fullPath === "/" && e.path === "/workflow/approve/index" && (e.path = "/welcome", e.fullPath = "/welcome", e.name = "SuHome", e.query = {}), s();
3728
+ };
3729
+ Vn(Yt, { serviceApi: Fe(), i18n: ls });
3730
+ const vs = {
3731
+ // 对组件内置的提示语进行国际化翻译
3732
+ // @ts-ignore
3733
+ i18n: (e, t) => fe().global.t(e, t),
3734
+ // 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
3735
+ translate(e) {
3736
+ return e && ["message.", "el."].findIndex((n) => e.includes(n)) !== -1 ? fe().global.t.call(fe().global.locale, e) : e;
3737
+ }
3738
+ };
3739
+ function Ps(e = {}) {
3740
+ Yt.setConfig(Xe(vs, e)), Ze.interceptor.add("event.clearEdit", {
3741
+ tableInterceptorMethod(t) {
3742
+ const { $event: n } = t;
3743
+ if (n.target.className.indexOf("vxe-table--ignore-clear") > -1) return !1;
3744
+ }
3745
+ });
3746
+ }
3747
+ function wa(e) {
3748
+ Ze.setTheme(e);
3749
+ }
3750
+ var it = Object.defineProperty, Is = Object.getOwnPropertyDescriptor, Ls = Object.getOwnPropertyNames, Bs = Object.prototype.hasOwnProperty, Us = (e, t, n) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ms = (e, t) => {
3751
+ for (var n in t) it(e, n, { get: t[n], enumerable: !0 });
3752
+ }, js = (e, t, n, r) => {
3753
+ if (t && typeof t == "object" || typeof t == "function") for (let o of Ls(t)) !Bs.call(e, o) && o !== n && it(e, o, { get: () => t[o], enumerable: !(r = Is(t, o)) || r.enumerable });
3754
+ return e;
3755
+ }, _s = (e, t, n) => (js(e, t, "default"), n), Ut = (e, t, n) => (Us(e, typeof t != "symbol" ? t + "" : t, n), n), at = {};
3756
+ Ms(at, { Vue: () => Kt });
3757
+ _s(at, Kt);
3758
+ var ye = class {
3759
+ static install(e, t) {
3760
+ let { nameSpace: n = this._nameSpace, memory: r } = t;
3761
+ return r && this.clearAll(n, r), new ye(e, t);
3762
+ }
3763
+ static clearAll(e, t) {
3764
+ Object.keys(t).forEach((n) => {
3765
+ let r = e + n;
3766
+ Object.prototype.hasOwnProperty.call(window.localStorage, r) && window.localStorage.removeItem(r);
3767
+ });
3768
+ }
3769
+ static get(e) {
3770
+ return JSON.parse(window.localStorage.getItem(e));
3771
+ }
3772
+ static set(e, t) {
3773
+ t = typeof t == "object" ? JSON.stringify(t) : t, window.localStorage.setItem(e, t);
3774
+ }
3775
+ static getData(e, t) {
3776
+ if (Object.prototype.hasOwnProperty.call(window.localStorage, this._getStaticKey(t, e))) return JSON.parse(window.localStorage.getItem(this._getStaticKey(t, e)));
3777
+ }
3778
+ constructor(e, t) {
3779
+ let n = ye, { version: r = 3, nameSpace: o = n._nameSpace, memory: s } = t, i = (u) => o + u, a = r === 3 ? (0, at.reactive)(s) : s;
3780
+ Object.keys(a).length === 0 && console.warn("key cannot be empty"), Object.keys(a).forEach((u) => {
3781
+ let d = a[u];
3782
+ n.set(i(u), d), Reflect.defineProperty(a, u, { get: () => n.get(i(u)), set: (m) => n.set(i(u), m), configurable: !0 }), r === 2 && e.util.defineReactive(a, u, a[u]);
3783
+ });
3784
+ let c = r === 3 ? e.config.globalProperties : e.prototype;
3785
+ Reflect.defineProperty(c, "$storage", { get: () => a });
3786
+ }
3787
+ }, j = ye;
3788
+ Ut(j, "_nameSpace", "rs-"), Ut(j, "_getStaticKey", (e, t) => `${e ?? ye._nameSpace}${t}`);
3789
+ const qs = (e, t) => {
3790
+ const n = M(), r = Object.assign(
3791
+ {
3792
+ // 国际化 默认中文zh
3793
+ locale: j.getData("locale", n) ?? {
3794
+ locale: t.Locale ?? "zh"
3795
+ },
3796
+ // layout模式以及主题
3797
+ layout: j.getData("layout", n) ?? {
3798
+ layout: t.Layout ?? "vertical",
3799
+ theme: t.Theme ?? "default",
3800
+ darkMode: t.DarkMode ?? !1,
3801
+ sidebarStatus: t.SidebarStatus ?? !0,
3802
+ epThemeColor: t.EpThemeColor ?? "#409EFF",
3803
+ themeColor: t.Theme ?? "light",
3804
+ // 主题色(对应项目配置中的主题色,与theme不同的是它不会受到浅色、深色整体风格切换的影响,只会在手动点击主题色时改变)
3805
+ overallStyle: t.OverallStyle ?? "light"
3806
+ // 整体风格(浅色:light、深色:dark、自动:system)
3807
+ },
3808
+ configure: j.getData("configure", n) ?? {
3809
+ grey: t.Grey ?? !1,
3810
+ weak: t.Weak ?? !1,
3811
+ hideTabs: t.HideTabs ?? !1,
3812
+ showLogo: t.ShowLogo ?? !0,
3813
+ showModel: t.ShowModel ?? "smart",
3814
+ multiTagsCache: t.MultiTagsCache ?? !1
3815
+ },
3816
+ cnd: j.getData("cnd", n) ?? {}
3817
+ },
3818
+ t.MultiTagsCache ? {
3819
+ // 默认显示首页tag
3820
+ tags: j.getData("tags", n) ?? ot
3821
+ } : {}
3822
+ );
3823
+ e.use(j, { nameSpace: n, memory: r });
3824
+ }, zs = (e) => {
3825
+ var o;
3826
+ if (!e) return !0;
3827
+ const t = (o = x.currentRoute.value.meta) == null ? void 0 : o.permissionCode;
3828
+ if (!t) return !0;
3829
+ Xn(e) || (e = [e]);
3830
+ const n = N().getButtonAuth;
3831
+ if (!n) return !0;
3832
+ let r = !1;
3833
+ return e.forEach((s) => {
3834
+ if (!r) {
3835
+ const i = `${t}.${s}`;
3836
+ r = n.includes(i);
3837
+ }
3838
+ }), r;
3839
+ }, Dn = Object.freeze(
3840
+ {
3841
+ left: 0,
3842
+ top: 0,
3843
+ width: 16,
3844
+ height: 16
3845
+ }
3846
+ ), we = Object.freeze({
3847
+ rotate: 0,
3848
+ vFlip: !1,
3849
+ hFlip: !1
3850
+ }), ut = Object.freeze({
3851
+ ...Dn,
3852
+ ...we
3853
+ }), We = Object.freeze({
3854
+ ...ut,
3855
+ body: "",
3856
+ hidden: !1
3857
+ });
3858
+ function $s(e, t) {
3859
+ const n = {};
3860
+ !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
3861
+ const r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
3862
+ return r && (n.rotate = r), n;
3863
+ }
3864
+ function Mt(e, t) {
3865
+ const n = $s(e, t);
3866
+ for (const r in We)
3867
+ r in we ? r in e && !(r in n) && (n[r] = we[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
3868
+ return n;
3869
+ }
3870
+ function Hs(e, t) {
3871
+ const n = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
3872
+ function s(i) {
3873
+ if (n[i])
3874
+ return o[i] = [];
3875
+ if (!(i in o)) {
3876
+ o[i] = null;
3877
+ const a = r[i] && r[i].parent, c = a && s(a);
3878
+ c && (o[i] = [a].concat(c));
3879
+ }
3880
+ return o[i];
3881
+ }
3882
+ return Object.keys(n).concat(Object.keys(r)).forEach(s), o;
3883
+ }
3884
+ function Vs(e, t, n) {
3885
+ const r = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
3886
+ let s = {};
3887
+ function i(a) {
3888
+ s = Mt(
3889
+ r[a] || o[a],
3890
+ s
3891
+ );
3892
+ }
3893
+ return i(t), n.forEach(i), Mt(e, s);
3894
+ }
3895
+ function Js(e, t) {
3896
+ const n = [];
3897
+ if (typeof e != "object" || typeof e.icons != "object")
3898
+ return n;
3899
+ e.not_found instanceof Array && e.not_found.forEach((o) => {
3900
+ t(o, null), n.push(o);
3901
+ });
3902
+ const r = Hs(e);
3903
+ for (const o in r) {
3904
+ const s = r[o];
3905
+ s && (t(o, Vs(e, o, s)), n.push(o));
3906
+ }
3907
+ return n;
3908
+ }
3909
+ const Ks = {
3910
+ provider: "",
3911
+ aliases: {},
3912
+ not_found: {},
3913
+ ...Dn
3914
+ };
3915
+ function Ue(e, t) {
3916
+ for (const n in t)
3917
+ if (n in e && typeof e[n] != typeof t[n])
3918
+ return !1;
3919
+ return !0;
3920
+ }
3921
+ function Ws(e) {
3922
+ if (typeof e != "object" || e === null)
3923
+ return null;
3924
+ const t = e;
3925
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !Ue(e, Ks))
3926
+ return null;
3927
+ const n = t.icons;
3928
+ for (const o in n) {
3929
+ const s = n[o];
3930
+ if (
3931
+ // Name cannot be empty
3932
+ !o || // Must have body
3933
+ typeof s.body != "string" || // Check other props
3934
+ !Ue(
3935
+ s,
3936
+ We
3937
+ )
3938
+ )
3939
+ return null;
3940
+ }
3941
+ const r = t.aliases || /* @__PURE__ */ Object.create(null);
3942
+ for (const o in r) {
3943
+ const s = r[o], i = s.parent;
3944
+ if (
3945
+ // Name cannot be empty
3946
+ !o || // Parent must be set and point to existing icon
3947
+ typeof i != "string" || !n[i] && !r[i] || // Check other props
3948
+ !Ue(
3949
+ s,
3950
+ We
3951
+ )
3952
+ )
3953
+ return null;
3954
+ }
3955
+ return t;
3956
+ }
3957
+ const Nn = Object.freeze({
3958
+ width: null,
3959
+ height: null
3960
+ }), vn = Object.freeze({
3961
+ // Dimensions
3962
+ ...Nn,
3963
+ // Transformations
3964
+ ...we
3965
+ });
3966
+ function Gs(e, t) {
3967
+ const n = {
3968
+ ...e
3969
+ };
3970
+ for (const r in t) {
3971
+ const o = t[r], s = typeof o;
3972
+ r in Nn ? (o === null || o && (s === "string" || s === "number")) && (n[r] = o) : s === typeof n[r] && (n[r] = r === "rotate" ? o % 4 : o);
3973
+ }
3974
+ return n;
3975
+ }
3976
+ const Ys = /[\s,]+/;
3977
+ function Xs(e, t) {
3978
+ t.split(Ys).forEach((n) => {
3979
+ switch (n.trim()) {
3980
+ case "horizontal":
3981
+ e.hFlip = !0;
3982
+ break;
3983
+ case "vertical":
3984
+ e.vFlip = !0;
3985
+ break;
3986
+ }
3987
+ });
3988
+ }
3989
+ function Qs(e, t = 0) {
3990
+ const n = e.replace(/^-?[0-9.]*/, "");
3991
+ function r(o) {
3992
+ for (; o < 0; )
3993
+ o += 4;
3994
+ return o % 4;
3995
+ }
3996
+ if (n === "") {
3997
+ const o = parseInt(e);
3998
+ return isNaN(o) ? 0 : r(o);
3999
+ } else if (n !== e) {
4000
+ let o = 0;
4001
+ switch (n) {
4002
+ case "%":
4003
+ o = 25;
4004
+ break;
4005
+ case "deg":
4006
+ o = 90;
4007
+ }
4008
+ if (o) {
4009
+ let s = parseFloat(e.slice(0, e.length - n.length));
4010
+ return isNaN(s) ? 0 : (s = s / o, s % 1 === 0 ? r(s) : 0);
4011
+ }
4012
+ }
4013
+ return t;
4014
+ }
4015
+ const Zs = /(-?[0-9.]*[0-9]+[0-9.]*)/g, ei = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
4016
+ function jt(e, t, n) {
4017
+ if (t === 1)
4018
+ return e;
4019
+ if (n = n || 100, typeof e == "number")
4020
+ return Math.ceil(e * t * n) / n;
4021
+ if (typeof e != "string")
4022
+ return e;
4023
+ const r = e.split(Zs);
4024
+ if (r === null || !r.length)
4025
+ return e;
4026
+ const o = [];
4027
+ let s = r.shift(), i = ei.test(s);
4028
+ for (; ; ) {
4029
+ if (i) {
4030
+ const a = parseFloat(s);
4031
+ isNaN(a) ? o.push(s) : o.push(Math.ceil(a * t * n) / n);
4032
+ } else
4033
+ o.push(s);
4034
+ if (s = r.shift(), s === void 0)
4035
+ return o.join("");
4036
+ i = !i;
4037
+ }
4038
+ }
4039
+ function ti(e, t = "defs") {
4040
+ let n = "";
4041
+ const r = e.indexOf("<" + t);
4042
+ for (; r >= 0; ) {
4043
+ const o = e.indexOf(">", r), s = e.indexOf("</" + t);
4044
+ if (o === -1 || s === -1)
4045
+ break;
4046
+ const i = e.indexOf(">", s);
4047
+ if (i === -1)
4048
+ break;
4049
+ n += e.slice(o + 1, s).trim(), e = e.slice(0, r).trim() + e.slice(i + 1);
4050
+ }
4051
+ return {
4052
+ defs: n,
4053
+ content: e
4054
+ };
4055
+ }
4056
+ function ni(e, t) {
4057
+ return e ? "<defs>" + e + "</defs>" + t : t;
4058
+ }
4059
+ function ri(e, t, n) {
4060
+ const r = ti(e);
4061
+ return ni(r.defs, t + r.content + n);
4062
+ }
4063
+ const oi = (e) => e === "unset" || e === "undefined" || e === "none";
4064
+ function si(e, t) {
4065
+ const n = {
4066
+ ...ut,
4067
+ ...e
4068
+ }, r = {
4069
+ ...vn,
4070
+ ...t
4071
+ }, o = {
4072
+ left: n.left,
4073
+ top: n.top,
4074
+ width: n.width,
4075
+ height: n.height
4076
+ };
4077
+ let s = n.body;
4078
+ [n, r].forEach((p) => {
4079
+ const f = [], b = p.hFlip, S = p.vFlip;
4080
+ let E = p.rotate;
4081
+ b ? S ? E += 2 : (f.push(
4082
+ "translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
4083
+ ), f.push("scale(-1 1)"), o.top = o.left = 0) : S && (f.push(
4084
+ "translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
4085
+ ), f.push("scale(1 -1)"), o.top = o.left = 0);
4086
+ let C;
4087
+ switch (E < 0 && (E -= Math.floor(E / 4) * 4), E = E % 4, E) {
4088
+ case 1:
4089
+ C = o.height / 2 + o.top, f.unshift(
4090
+ "rotate(90 " + C.toString() + " " + C.toString() + ")"
4091
+ );
4092
+ break;
4093
+ case 2:
4094
+ f.unshift(
4095
+ "rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
4096
+ );
4097
+ break;
4098
+ case 3:
4099
+ C = o.width / 2 + o.left, f.unshift(
4100
+ "rotate(-90 " + C.toString() + " " + C.toString() + ")"
4101
+ );
4102
+ break;
4103
+ }
4104
+ E % 2 === 1 && (o.left !== o.top && (C = o.left, o.left = o.top, o.top = C), o.width !== o.height && (C = o.width, o.width = o.height, o.height = C)), f.length && (s = ri(
4105
+ s,
4106
+ '<g transform="' + f.join(" ") + '">',
4107
+ "</g>"
4108
+ ));
4109
+ });
4110
+ const i = r.width, a = r.height, c = o.width, u = o.height;
4111
+ let d, m;
4112
+ i === null ? (m = a === null ? "1em" : a === "auto" ? u : a, d = jt(m, c / u)) : (d = i === "auto" ? c : i, m = a === null ? jt(d, u / c) : a === "auto" ? u : a);
4113
+ const y = {}, w = (p, f) => {
4114
+ oi(f) || (y[p] = f.toString());
4115
+ };
4116
+ w("width", d), w("height", m);
4117
+ const h = [o.left, o.top, c, u];
4118
+ return y.viewBox = h.join(" "), {
4119
+ attributes: y,
4120
+ viewBox: h,
4121
+ body: s
4122
+ };
4123
+ }
4124
+ const ii = /\sid="(\S+)"/g, ai = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
4125
+ let ui = 0;
4126
+ function li(e, t = ai) {
4127
+ const n = [];
4128
+ let r;
4129
+ for (; r = ii.exec(e); )
4130
+ n.push(r[1]);
4131
+ if (!n.length)
4132
+ return e;
4133
+ const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
4134
+ return n.forEach((s) => {
4135
+ const i = typeof t == "function" ? t(s) : t + (ui++).toString(), a = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
4136
+ e = e.replace(
4137
+ // Allowed characters before id: [#;"]
4138
+ // Allowed characters after id: [)"], .[a-z]
4139
+ new RegExp('([#;"])(' + a + ')([")]|\\.[a-z])', "g"),
4140
+ "$1" + i + o + "$3"
4141
+ );
4142
+ }), e = e.replace(new RegExp(o, "g"), ""), e;
4143
+ }
4144
+ function ci(e, t) {
4145
+ let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
4146
+ for (const r in t)
4147
+ n += " " + r + '="' + t[r] + '"';
4148
+ return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
4149
+ }
4150
+ function di(e) {
4151
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
4152
+ }
4153
+ function fi(e) {
4154
+ return "data:image/svg+xml," + di(e);
4155
+ }
4156
+ function pi(e) {
4157
+ return 'url("' + fi(e) + '")';
4158
+ }
4159
+ const _t = {
4160
+ ...vn,
4161
+ inline: !1
4162
+ }, mi = {
4163
+ xmlns: "http://www.w3.org/2000/svg",
4164
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
4165
+ "aria-hidden": !0,
4166
+ role: "img"
4167
+ }, hi = {
4168
+ display: "inline-block"
4169
+ }, Ge = {
4170
+ backgroundColor: "currentColor"
4171
+ }, Pn = {
4172
+ backgroundColor: "transparent"
4173
+ }, qt = {
4174
+ Image: "var(--svg)",
4175
+ Repeat: "no-repeat",
4176
+ Size: "100% 100%"
4177
+ }, zt = {
4178
+ webkitMask: Ge,
4179
+ mask: Ge,
4180
+ background: Pn
4181
+ };
4182
+ for (const e in zt) {
4183
+ const t = zt[e];
4184
+ for (const n in qt)
4185
+ t[e + n] = qt[n];
4186
+ }
4187
+ const me = {};
4188
+ ["horizontal", "vertical"].forEach((e) => {
4189
+ const t = e.slice(0, 1) + "Flip";
4190
+ me[e + "-flip"] = t, me[e.slice(0, 1) + "-flip"] = t, me[e + "Flip"] = t;
4191
+ });
4192
+ function $t(e) {
4193
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
4194
+ }
4195
+ const gi = (e, t) => {
4196
+ const n = Gs(_t, t), r = { ...mi }, o = t.mode || "svg", s = {}, i = t.style, a = typeof i == "object" && !(i instanceof Array) ? i : {};
4197
+ for (let p in t) {
4198
+ const f = t[p];
4199
+ if (f !== void 0)
4200
+ switch (p) {
4201
+ // Properties to ignore
4202
+ case "icon":
4203
+ case "style":
4204
+ case "onLoad":
4205
+ case "mode":
4206
+ case "ssr":
4207
+ break;
4208
+ // Boolean attributes
4209
+ case "inline":
4210
+ case "hFlip":
4211
+ case "vFlip":
4212
+ n[p] = f === !0 || f === "true" || f === 1;
4213
+ break;
4214
+ // Flip as string: 'horizontal,vertical'
4215
+ case "flip":
4216
+ typeof f == "string" && Xs(n, f);
4217
+ break;
4218
+ // Color: override style
4219
+ case "color":
4220
+ s.color = f;
4221
+ break;
4222
+ // Rotation as string
4223
+ case "rotate":
4224
+ typeof f == "string" ? n[p] = Qs(f) : typeof f == "number" && (n[p] = f);
4225
+ break;
4226
+ // Remove aria-hidden
4227
+ case "ariaHidden":
4228
+ case "aria-hidden":
4229
+ f !== !0 && f !== "true" && delete r["aria-hidden"];
4230
+ break;
4231
+ default: {
4232
+ const b = me[p];
4233
+ b ? (f === !0 || f === "true" || f === 1) && (n[b] = !0) : _t[p] === void 0 && (r[p] = f);
4234
+ }
4235
+ }
4236
+ }
4237
+ const c = si(e, n), u = c.attributes;
4238
+ if (n.inline && (s.verticalAlign = "-0.125em"), o === "svg") {
4239
+ r.style = {
4240
+ ...s,
4241
+ ...a
4242
+ }, Object.assign(r, u);
4243
+ let p = 0, f = t.id;
4244
+ return typeof f == "string" && (f = f.replace(/-/g, "_")), r.innerHTML = li(c.body, f ? () => f + "ID" + p++ : "iconifyVue"), _("svg", r);
4245
+ }
4246
+ const { body: d, width: m, height: y } = e, w = o === "mask" || (o === "bg" ? !1 : d.indexOf("currentColor") !== -1), h = ci(d, {
4247
+ ...u,
4248
+ width: m + "",
4249
+ height: y + ""
4250
+ });
4251
+ return r.style = {
4252
+ ...s,
4253
+ "--svg": pi(h),
4254
+ width: $t(u.width),
4255
+ height: $t(u.height),
4256
+ ...hi,
4257
+ ...w ? Ge : Pn,
4258
+ ...a
4259
+ }, _("span", r);
4260
+ }, lt = /* @__PURE__ */ Object.create(null);
4261
+ function yi(e, t) {
4262
+ lt[e] = t;
4263
+ }
4264
+ function ba(e, t) {
4265
+ const n = typeof e.prefix == "string" ? e.prefix + ":" : "";
4266
+ Ws(e) && Js(e, (r, o) => {
4267
+ o && (lt[n + r] = o);
4268
+ });
4269
+ }
4270
+ const Ht = W({
4271
+ // Do not inherit other attributes: it is handled by render()
4272
+ inheritAttrs: !1,
4273
+ // Render icon
4274
+ render() {
4275
+ const e = this.$attrs, t = e.icon, n = typeof t == "string" ? lt[t] : typeof t == "object" ? t : null;
4276
+ return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null : gi({
4277
+ ...ut,
4278
+ ...n
4279
+ }, e);
4280
+ }
4281
+ }), wi = W({
4282
+ name: "IconOffline",
4283
+ components: { IconifyIcon: Ht },
4284
+ props: {
4285
+ icon: {
4286
+ default: null
4287
+ }
4288
+ },
4289
+ render() {
4290
+ typeof this.icon == "object" && yi(this.icon, this.icon);
4291
+ const e = this.$attrs;
4292
+ return _(
4293
+ Ht,
4294
+ {
4295
+ icon: this.icon,
4296
+ style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
4297
+ ...e
4298
+ },
4299
+ {
4300
+ default: () => []
4301
+ }
4302
+ );
4303
+ }
4304
+ });
4305
+ W({
4306
+ name: "IconifyIconOnline",
4307
+ components: { IconifyIcon: ht },
4308
+ props: {
4309
+ icon: {
4310
+ type: String,
4311
+ default: ""
4312
+ }
4313
+ },
4314
+ render() {
4315
+ const e = this.$attrs;
4316
+ return _(
4317
+ ht,
4318
+ {
4319
+ icon: `${this.icon}`,
4320
+ style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
4321
+ ...e
4322
+ },
4323
+ {
4324
+ default: () => []
4325
+ }
4326
+ );
4327
+ }
4328
+ });
4329
+ const bi = W({
4330
+ name: "FontIcon",
4331
+ props: {
4332
+ icon: {
4333
+ type: String,
4334
+ default: ""
4335
+ }
4336
+ },
4337
+ render() {
4338
+ const e = this.$attrs;
4339
+ return Object.keys(e).includes("uni") || (e == null ? void 0 : e.iconType) === "uni" ? _(
4340
+ "i",
4341
+ {
4342
+ class: "iconfont",
4343
+ ...e
4344
+ },
4345
+ this.icon
4346
+ ) : Object.keys(e).includes("svg") || (e == null ? void 0 : e.iconType) === "svg" ? _(
4347
+ "svg",
4348
+ {
4349
+ class: "icon-svg",
4350
+ "aria-hidden": !0
4351
+ },
4352
+ {
4353
+ default: () => [
4354
+ _("use", {
4355
+ "xlink:href": `#${this.icon}`
4356
+ })
4357
+ ]
4358
+ }
4359
+ ) : _("i", {
4360
+ class: `iconfont ${this.icon}`,
4361
+ ...e
4362
+ });
4363
+ }
4364
+ }), Ei = wi, Si = bi, Ti = {
4365
+ mounted(e, t) {
4366
+ var r;
4367
+ const { value: n } = t;
4368
+ if (n) {
4369
+ const s = `${(r = x.currentRoute.value.meta) == null ? void 0 : r.prefixAuth}.${n}`;
4370
+ N().getButtonAuth.includes(s) || e.parentNode.removeChild(e);
4371
+ } else
4372
+ throw new Error(`need roles! Like v-auth="['admin','test']"`);
4373
+ }
4374
+ };
4375
+ function Ci(e) {
4376
+ return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, n) {
4377
+ var r = e.get(t);
4378
+ r ? r.push(n) : e.set(t, [n]);
4379
+ }, off: function(t, n) {
4380
+ var r = e.get(t);
4381
+ r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
4382
+ }, emit: function(t, n) {
4383
+ var r = e.get(t);
4384
+ r && r.slice().map(function(o) {
4385
+ o(n);
4386
+ }), (r = e.get("*")) && r.slice().map(function(o) {
4387
+ o(t, n);
4388
+ });
4389
+ } };
4390
+ }
4391
+ const Ri = Ci(), Vt = nr({
4392
+ strategy: "scroll"
4393
+ }), xi = {
4394
+ mounted(e, t, n) {
4395
+ Vt.listenTo(e, (r) => {
4396
+ const o = r.offsetWidth, s = r.offsetHeight;
4397
+ t != null && t.instance ? Ri.emit("resize", { detail: { width: o, height: s } }) : n.el.dispatchEvent(new CustomEvent("resize", { detail: { width: o, height: s } }));
4398
+ });
4399
+ },
4400
+ unmounted(e) {
4401
+ Vt.uninstall(e);
4402
+ }
4403
+ }, Jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4404
+ __proto__: null,
4405
+ auth: Ti,
4406
+ resize: xi
4407
+ }, Symbol.toStringTag, { value: "Module" })), v = _n(Wo);
4408
+ v.use(tr, {
4409
+ defaultProps: { animation: "perspective" }
4410
+ });
4411
+ const ki = (e) => {
4412
+ e.config.globalProperties.$hasAuthority = zs, e.config.globalProperties.$serviceApi = Fe(), e.config.globalProperties.$url = L();
4413
+ }, Fi = (e) => {
4414
+ Object.keys(Jt).forEach((t) => {
4415
+ e.directive(t, Jt[t]);
4416
+ });
4417
+ }, Ea = ({ router: e, config: t, lang: n, views: r, env: o, tableConfig: s }) => (Os(r, e), v.use(e), $o(e), qo(v, t), zo(o), Ps(s), new Promise((i) => {
4418
+ us(v, n), v.component("IconifyIconOffline", Ei), v.component("FontIcon", Si), v.use(er, { defaultOptions: { zIndex: 9999 } }), ki(v), Fi(v), Go(v), qs(v, t), i({ app: v, router: e });
4419
+ })), Ai = {
4420
+ onLogined: () => {
4421
+ },
4422
+ onBeforeLogout: () => {
4423
+ }
4424
+ }, Sa = () => {
4425
+ Ai.onLogined();
4426
+ };
4427
+ export {
4428
+ la as A,
4429
+ ca as B,
4430
+ fa as C,
4431
+ ps as D,
4432
+ Sa as E,
4433
+ Si as F,
4434
+ Ea as G,
4435
+ zs as H,
4436
+ Ei as I,
4437
+ Ai as J,
4438
+ ya as K,
4439
+ ma as L,
4440
+ pa as M,
4441
+ Jo as _,
4442
+ ba as a,
4443
+ yi as b,
4444
+ da as c,
4445
+ N as d,
4446
+ pe as e,
4447
+ Fn as f,
4448
+ rt as g,
4449
+ Ri as h,
4450
+ Dt as i,
4451
+ ot as j,
4452
+ ar as k,
4453
+ Hi as l,
4454
+ $i as m,
4455
+ ur as n,
4456
+ ga as o,
4457
+ ha as p,
4458
+ Fe as q,
4459
+ x as r,
4460
+ Ae as s,
4461
+ ls as t,
4462
+ q as u,
4463
+ M as v,
4464
+ bs as w,
4465
+ L as x,
4466
+ Ss as y,
4467
+ wa as z
4468
+ };