@utogether/utils 2.4.2 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -2
- package/dist/pkg/lunarCalendar.d.ts +426 -0
- package/dist/pkg/updater.d.ts +16 -0
- package/dist/utils.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,17 +13,21 @@ export { showMessage, warnMessage, successMessage, errorMessage, } from "./pkg/m
|
|
|
13
13
|
export { i18nColums, formatItems, formatGridItems, formatRules, } from "./pkg/formatData";
|
|
14
14
|
export { extractPathList, buildHierarchyTree, getNodeByUniqueId, appendFieldByUniqueId, deleteTreeChildren, } from "./pkg/useTree";
|
|
15
15
|
export { cookies } from "./pkg/cookie";
|
|
16
|
-
export { storageSession
|
|
16
|
+
export { storageSession } from "./pkg/storage";
|
|
17
17
|
export { http } from "./pkg/http";
|
|
18
|
+
export { lunarCalendar } from "./pkg/lunarCalendar";
|
|
18
19
|
export { openLink, toggleClass, removeClass, addClass, hasClass, } from "./pkg/element";
|
|
19
20
|
import NProgress from "./pkg/progress";
|
|
20
21
|
import type { Plugin } from "vue";
|
|
22
|
+
import Updater from "./pkg/updater";
|
|
23
|
+
import { storageLocal } from "./pkg/storage";
|
|
21
24
|
declare const withInstall: <T>(component: any) => T & Plugin;
|
|
22
25
|
declare function sleep(timer?: number): Promise<unknown>;
|
|
23
26
|
export declare const delay: (timeout: number) => Promise<unknown>;
|
|
24
|
-
export { withInstall, sleep, NProgress };
|
|
27
|
+
export { withInstall, sleep, NProgress, Updater, storageLocal };
|
|
25
28
|
export declare const useDark: () => {
|
|
26
29
|
isDark: import("vue").Ref<boolean>;
|
|
27
30
|
};
|
|
28
31
|
export declare const useDebounce: (fn: () => Fn, timeout: number) => () => void;
|
|
29
32
|
export declare function isUrl(path: string): boolean;
|
|
33
|
+
export declare const getDictName: (code: any, dictCode: any) => any;
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
export declare const lunarCalendar: {
|
|
2
|
+
/**
|
|
3
|
+
* 农历1900-2100的润大小信息表
|
|
4
|
+
* @Array Of Property
|
|
5
|
+
* @return Hex
|
|
6
|
+
*/
|
|
7
|
+
lunarInfo: number[];
|
|
8
|
+
/**
|
|
9
|
+
* 公历每个月份的天数普通表
|
|
10
|
+
* @Array Of Property
|
|
11
|
+
* @return Number
|
|
12
|
+
*/
|
|
13
|
+
solarMonth: number[];
|
|
14
|
+
/**
|
|
15
|
+
* 天干地支之天干速查表
|
|
16
|
+
* @Array Of Property trans["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"]
|
|
17
|
+
* @return Cn string
|
|
18
|
+
*/
|
|
19
|
+
Gan: string[];
|
|
20
|
+
/**
|
|
21
|
+
* 天干地支之地支速查表
|
|
22
|
+
* @Array Of Property
|
|
23
|
+
* @trans["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"]
|
|
24
|
+
* @return Cn string
|
|
25
|
+
*/
|
|
26
|
+
Zhi: string[];
|
|
27
|
+
/**
|
|
28
|
+
* 天干地支之地支速查表<=>生肖
|
|
29
|
+
* @Array Of Property
|
|
30
|
+
* @trans["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"]
|
|
31
|
+
* @return Cn string
|
|
32
|
+
*/
|
|
33
|
+
Animals: string[];
|
|
34
|
+
/**
|
|
35
|
+
* 阳历节日
|
|
36
|
+
*/
|
|
37
|
+
festival: {
|
|
38
|
+
"1-1": {
|
|
39
|
+
title: string;
|
|
40
|
+
};
|
|
41
|
+
"2-14": {
|
|
42
|
+
title: string;
|
|
43
|
+
};
|
|
44
|
+
"5-1": {
|
|
45
|
+
title: string;
|
|
46
|
+
};
|
|
47
|
+
"5-4": {
|
|
48
|
+
title: string;
|
|
49
|
+
};
|
|
50
|
+
"6-1": {
|
|
51
|
+
title: string;
|
|
52
|
+
};
|
|
53
|
+
"9-10": {
|
|
54
|
+
title: string;
|
|
55
|
+
};
|
|
56
|
+
"10-1": {
|
|
57
|
+
title: string;
|
|
58
|
+
};
|
|
59
|
+
"12-25": {
|
|
60
|
+
title: string;
|
|
61
|
+
};
|
|
62
|
+
"3-8": {
|
|
63
|
+
title: string;
|
|
64
|
+
};
|
|
65
|
+
"3-12": {
|
|
66
|
+
title: string;
|
|
67
|
+
};
|
|
68
|
+
"4-1": {
|
|
69
|
+
title: string;
|
|
70
|
+
};
|
|
71
|
+
"5-12": {
|
|
72
|
+
title: string;
|
|
73
|
+
};
|
|
74
|
+
"7-1": {
|
|
75
|
+
title: string;
|
|
76
|
+
};
|
|
77
|
+
"8-1": {
|
|
78
|
+
title: string;
|
|
79
|
+
};
|
|
80
|
+
"12-24": {
|
|
81
|
+
title: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* 农历节日
|
|
86
|
+
*/
|
|
87
|
+
lFestival: {
|
|
88
|
+
"12-30": {
|
|
89
|
+
title: string;
|
|
90
|
+
};
|
|
91
|
+
"1-1": {
|
|
92
|
+
title: string;
|
|
93
|
+
};
|
|
94
|
+
"1-15": {
|
|
95
|
+
title: string;
|
|
96
|
+
};
|
|
97
|
+
"2-2": {
|
|
98
|
+
title: string;
|
|
99
|
+
};
|
|
100
|
+
"5-5": {
|
|
101
|
+
title: string;
|
|
102
|
+
};
|
|
103
|
+
"7-7": {
|
|
104
|
+
title: string;
|
|
105
|
+
};
|
|
106
|
+
"7-15": {
|
|
107
|
+
title: string;
|
|
108
|
+
};
|
|
109
|
+
"8-15": {
|
|
110
|
+
title: string;
|
|
111
|
+
};
|
|
112
|
+
"9-9": {
|
|
113
|
+
title: string;
|
|
114
|
+
};
|
|
115
|
+
"10-1": {
|
|
116
|
+
title: string;
|
|
117
|
+
};
|
|
118
|
+
"10-15": {
|
|
119
|
+
title: string;
|
|
120
|
+
};
|
|
121
|
+
"12-8": {
|
|
122
|
+
title: string;
|
|
123
|
+
};
|
|
124
|
+
"12-23": {
|
|
125
|
+
title: string;
|
|
126
|
+
};
|
|
127
|
+
"12-24": {
|
|
128
|
+
title: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* 返回默认定义的阳历节日
|
|
133
|
+
*/
|
|
134
|
+
getFestival(): {
|
|
135
|
+
"1-1": {
|
|
136
|
+
title: string;
|
|
137
|
+
};
|
|
138
|
+
"2-14": {
|
|
139
|
+
title: string;
|
|
140
|
+
};
|
|
141
|
+
"5-1": {
|
|
142
|
+
title: string;
|
|
143
|
+
};
|
|
144
|
+
"5-4": {
|
|
145
|
+
title: string;
|
|
146
|
+
};
|
|
147
|
+
"6-1": {
|
|
148
|
+
title: string;
|
|
149
|
+
};
|
|
150
|
+
"9-10": {
|
|
151
|
+
title: string;
|
|
152
|
+
};
|
|
153
|
+
"10-1": {
|
|
154
|
+
title: string;
|
|
155
|
+
};
|
|
156
|
+
"12-25": {
|
|
157
|
+
title: string;
|
|
158
|
+
};
|
|
159
|
+
"3-8": {
|
|
160
|
+
title: string;
|
|
161
|
+
};
|
|
162
|
+
"3-12": {
|
|
163
|
+
title: string;
|
|
164
|
+
};
|
|
165
|
+
"4-1": {
|
|
166
|
+
title: string;
|
|
167
|
+
};
|
|
168
|
+
"5-12": {
|
|
169
|
+
title: string;
|
|
170
|
+
};
|
|
171
|
+
"7-1": {
|
|
172
|
+
title: string;
|
|
173
|
+
};
|
|
174
|
+
"8-1": {
|
|
175
|
+
title: string;
|
|
176
|
+
};
|
|
177
|
+
"12-24": {
|
|
178
|
+
title: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* 返回默认定义的内容里节日
|
|
183
|
+
*/
|
|
184
|
+
getLunarFestival(): {
|
|
185
|
+
"12-30": {
|
|
186
|
+
title: string;
|
|
187
|
+
};
|
|
188
|
+
"1-1": {
|
|
189
|
+
title: string;
|
|
190
|
+
};
|
|
191
|
+
"1-15": {
|
|
192
|
+
title: string;
|
|
193
|
+
};
|
|
194
|
+
"2-2": {
|
|
195
|
+
title: string;
|
|
196
|
+
};
|
|
197
|
+
"5-5": {
|
|
198
|
+
title: string;
|
|
199
|
+
};
|
|
200
|
+
"7-7": {
|
|
201
|
+
title: string;
|
|
202
|
+
};
|
|
203
|
+
"7-15": {
|
|
204
|
+
title: string;
|
|
205
|
+
};
|
|
206
|
+
"8-15": {
|
|
207
|
+
title: string;
|
|
208
|
+
};
|
|
209
|
+
"9-9": {
|
|
210
|
+
title: string;
|
|
211
|
+
};
|
|
212
|
+
"10-1": {
|
|
213
|
+
title: string;
|
|
214
|
+
};
|
|
215
|
+
"10-15": {
|
|
216
|
+
title: string;
|
|
217
|
+
};
|
|
218
|
+
"12-8": {
|
|
219
|
+
title: string;
|
|
220
|
+
};
|
|
221
|
+
"12-23": {
|
|
222
|
+
title: string;
|
|
223
|
+
};
|
|
224
|
+
"12-24": {
|
|
225
|
+
title: string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @param param {Object} 按照festival的格式输入数据,设置阳历节日
|
|
231
|
+
*/
|
|
232
|
+
setFestival(param?: {}): void;
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
* @param param {Object} 按照lFestival的格式输入数据,设置农历节日
|
|
236
|
+
*/
|
|
237
|
+
setLunarFestival(param?: {}): void;
|
|
238
|
+
/**
|
|
239
|
+
* 24节气速查表
|
|
240
|
+
* @Array Of Property
|
|
241
|
+
* @trans["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"]
|
|
242
|
+
* @return Cn string
|
|
243
|
+
*/
|
|
244
|
+
solarTerm: string[];
|
|
245
|
+
/**
|
|
246
|
+
* 1900-2100各年的24节气日期速查表
|
|
247
|
+
* @Array Of Property
|
|
248
|
+
* @return 0x string For splice
|
|
249
|
+
*/
|
|
250
|
+
sTermInfo: string[];
|
|
251
|
+
/**
|
|
252
|
+
* 数字转中文速查表
|
|
253
|
+
* @Array Of Property
|
|
254
|
+
* @trans ['日','一','二','三','四','五','六','七','八','九','十']
|
|
255
|
+
* @return Cn string
|
|
256
|
+
*/
|
|
257
|
+
nStr1: string[];
|
|
258
|
+
/**
|
|
259
|
+
* 日期转农历称呼速查表
|
|
260
|
+
* @Array Of Property
|
|
261
|
+
* @trans ['初','十','廿','卅']
|
|
262
|
+
* @return Cn string
|
|
263
|
+
*/
|
|
264
|
+
nStr2: string[];
|
|
265
|
+
/**
|
|
266
|
+
* 月份转农历称呼速查表
|
|
267
|
+
* @Array Of Property
|
|
268
|
+
* @trans ['正','一','二','三','四','五','六','七','八','九','十','冬','腊']
|
|
269
|
+
* @return Cn string
|
|
270
|
+
*/
|
|
271
|
+
nStr3: string[];
|
|
272
|
+
/**
|
|
273
|
+
* 返回农历y年一整年的总天数
|
|
274
|
+
* @param y lunar Year
|
|
275
|
+
* @return Number
|
|
276
|
+
* @eg:var count = calendar.lYearDays(1987) ;//count=387
|
|
277
|
+
*/
|
|
278
|
+
lYearDays: (y: any) => number;
|
|
279
|
+
/**
|
|
280
|
+
* 返回农历y年闰月是哪个月;若y年没有闰月 则返回0
|
|
281
|
+
* @param y lunar Year
|
|
282
|
+
* @return Number (0-12)
|
|
283
|
+
* @eg:var leapMonth = calendar.leapMonth(1987) ;//leapMonth=6
|
|
284
|
+
*/
|
|
285
|
+
leapMonth: (y: any) => number;
|
|
286
|
+
/**
|
|
287
|
+
* 返回农历y年闰月的天数 若该年没有闰月则返回0
|
|
288
|
+
* @param y lunar Year
|
|
289
|
+
* @return Number (0、29、30)
|
|
290
|
+
* @eg:var leapMonthDay = calendar.leapDays(1987) ;//leapMonthDay=29
|
|
291
|
+
*/
|
|
292
|
+
leapDays: (y: any) => 0 | 30 | 29;
|
|
293
|
+
/**
|
|
294
|
+
* 返回农历y年m月(非闰月)的总天数,计算m为闰月时的天数请使用leapDays方法
|
|
295
|
+
* @param y lunar Year
|
|
296
|
+
* @param m lunar Month
|
|
297
|
+
* @return Number (-1、29、30)
|
|
298
|
+
* @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29
|
|
299
|
+
*/
|
|
300
|
+
monthDays: (y: any, m: any) => 30 | 29 | -1;
|
|
301
|
+
/**
|
|
302
|
+
* 返回公历(!)y年m月的天数
|
|
303
|
+
* @param y solar Year
|
|
304
|
+
* @param m solar Month
|
|
305
|
+
* @return Number (-1、28、29、30、31)
|
|
306
|
+
* @eg:var solarMonthDay = calendar.leapDays(1987) ;//solarMonthDay=30
|
|
307
|
+
*/
|
|
308
|
+
solarDays: (y: any, m: any) => number;
|
|
309
|
+
/**
|
|
310
|
+
* 农历年份转换为干支纪年
|
|
311
|
+
* @param lYear 农历年的年份数
|
|
312
|
+
* @return Cn string
|
|
313
|
+
*/
|
|
314
|
+
toGanZhiYear: (lYear: any) => string;
|
|
315
|
+
/**
|
|
316
|
+
* 公历月、日判断所属星座
|
|
317
|
+
* @param cMonth [description]
|
|
318
|
+
* @param cDay [description]
|
|
319
|
+
* @return Cn string
|
|
320
|
+
*/
|
|
321
|
+
toAstro: (cMonth: any, cDay: any) => string;
|
|
322
|
+
/**
|
|
323
|
+
* 传入offset偏移量返回干支
|
|
324
|
+
* @param offset 相对甲子的偏移量
|
|
325
|
+
* @return Cn string
|
|
326
|
+
*/
|
|
327
|
+
toGanZhi: (offset: any) => string;
|
|
328
|
+
/**
|
|
329
|
+
* 传入公历(!)y年获得该年第n个节气的公历日期
|
|
330
|
+
* @param y y公历年(1900-2100)
|
|
331
|
+
* @param n n二十四节气中的第几个节气(1~24);从n=1(小寒)算起
|
|
332
|
+
* @return day Number
|
|
333
|
+
* @eg:var _24 = calendar.getTerm(1987,3) ;//_24=4;意即1987年2月4日立春
|
|
334
|
+
*/
|
|
335
|
+
getTerm: (y: any, n: any) => number;
|
|
336
|
+
/**
|
|
337
|
+
* 传入农历数字月份返回汉语通俗表示法
|
|
338
|
+
* @param m lunar month
|
|
339
|
+
* @return Cn string
|
|
340
|
+
* @eg:var cnMonth = calendar.toChinaMonth(12) ;//cnMonth='腊月'
|
|
341
|
+
*/
|
|
342
|
+
toChinaMonth: (m: any) => string | -1;
|
|
343
|
+
/**
|
|
344
|
+
* 传入农历日期数字返回汉字表示法
|
|
345
|
+
* @param d lunar day
|
|
346
|
+
* @return Cn string
|
|
347
|
+
* @eg:var cnDay = calendar.toChinaDay(21) ;//cnMonth='廿一'
|
|
348
|
+
*/
|
|
349
|
+
toChinaDay: (d: any) => any;
|
|
350
|
+
/**
|
|
351
|
+
* 年份转生肖[!仅能大致转换] => 精确划分生肖分界线是“立春”
|
|
352
|
+
* @param y year
|
|
353
|
+
* @return Cn string
|
|
354
|
+
* @eg:var animal = calendar.getAnimal(1987) ;//animal='兔'
|
|
355
|
+
*/
|
|
356
|
+
getAnimal: (y: any) => string;
|
|
357
|
+
/**
|
|
358
|
+
* 传入阳历年月日获得详细的公历、农历object信息 <=>JSON
|
|
359
|
+
* !important! 公历参数区间1900.1.31~2100.12.31
|
|
360
|
+
* @param yPara solar year
|
|
361
|
+
* @param mPara solar month
|
|
362
|
+
* @param dPara solar day
|
|
363
|
+
* @return JSON object
|
|
364
|
+
* @eg:console.log(calendar.solar2lunar(1987,11,01));
|
|
365
|
+
*/
|
|
366
|
+
solar2lunar: (yPara: any, mPara: any, dPara: any) => -1 | {
|
|
367
|
+
date: string;
|
|
368
|
+
lunarDate: string;
|
|
369
|
+
festival: any;
|
|
370
|
+
lunarFestival: any;
|
|
371
|
+
lYear: any;
|
|
372
|
+
lMonth: any;
|
|
373
|
+
lDay: number;
|
|
374
|
+
Animal: string;
|
|
375
|
+
IMonthCn: string;
|
|
376
|
+
IDayCn: any;
|
|
377
|
+
cYear: number;
|
|
378
|
+
cMonth: number;
|
|
379
|
+
cDay: number;
|
|
380
|
+
gzYear: string;
|
|
381
|
+
gzMonth: string;
|
|
382
|
+
gzDay: string;
|
|
383
|
+
isToday: boolean;
|
|
384
|
+
isLeap: boolean;
|
|
385
|
+
nWeek: any;
|
|
386
|
+
ncWeek: string;
|
|
387
|
+
isTerm: boolean;
|
|
388
|
+
Term: any;
|
|
389
|
+
astro: string;
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* 传入农历年月日以及传入的月份是否闰月获得详细的公历、农历object信息 <=>JSON
|
|
393
|
+
* !important! 参数区间1900.1.31~2100.12.1
|
|
394
|
+
* @param y lunar year
|
|
395
|
+
* @param m lunar month
|
|
396
|
+
* @param d lunar day
|
|
397
|
+
* @param isLeapMonth lunar month is leap or not.[如果是农历闰月第四个参数赋值true即可]
|
|
398
|
+
* @return JSON object
|
|
399
|
+
* @eg:console.log(calendar.lunar2solar(1987,9,10));
|
|
400
|
+
*/
|
|
401
|
+
lunar2solar: (y: any, m: any, d: any, isLeapMonth: any) => -1 | {
|
|
402
|
+
date: string;
|
|
403
|
+
lunarDate: string;
|
|
404
|
+
festival: any;
|
|
405
|
+
lunarFestival: any;
|
|
406
|
+
lYear: any;
|
|
407
|
+
lMonth: any;
|
|
408
|
+
lDay: number;
|
|
409
|
+
Animal: string;
|
|
410
|
+
IMonthCn: string;
|
|
411
|
+
IDayCn: any;
|
|
412
|
+
cYear: number;
|
|
413
|
+
cMonth: number;
|
|
414
|
+
cDay: number;
|
|
415
|
+
gzYear: string;
|
|
416
|
+
gzMonth: string;
|
|
417
|
+
gzDay: string;
|
|
418
|
+
isToday: boolean;
|
|
419
|
+
isLeap: boolean;
|
|
420
|
+
nWeek: any;
|
|
421
|
+
ncWeek: string;
|
|
422
|
+
isTerm: boolean;
|
|
423
|
+
Term: any;
|
|
424
|
+
astro: string;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface Options {
|
|
2
|
+
timer?: number;
|
|
3
|
+
}
|
|
4
|
+
export default class Updater {
|
|
5
|
+
oldScript: string[];
|
|
6
|
+
newScript: string[];
|
|
7
|
+
dispatch: Record<string, Function[]>;
|
|
8
|
+
constructor(options: Options);
|
|
9
|
+
init(): Promise<void>;
|
|
10
|
+
getHtml(): Promise<string>;
|
|
11
|
+
parserScript(html: string): string[];
|
|
12
|
+
on(key: "no-update" | "update", fn: Function): this;
|
|
13
|
+
compare(oldArr: string[], newArr: string[]): void;
|
|
14
|
+
timing(time?: number): void;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
package/dist/utils.umd.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(A,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("xe-utils"),require("vxe-table")):typeof define=="function"&&define.amd?define(["exports","vue","xe-utils","vxe-table"],e):(A=typeof globalThis<"u"?globalThis:A||self,e(A["@utogether/utils"]={},A.vue,A.xeUtils,A.VXETable))})(this,function(exports,vue,xeUtils,VXETable){"use strict";var L=Object.defineProperty;var V=(A,e,t)=>e in A?L(A,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):A[e]=t;var N=(A,e,t)=>(V(A,typeof e!="symbol"?e+"":e,t),t);const _interopDefaultLegacy=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},VXETable__default=_interopDefaultLegacy(VXETable);function _isSlot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vue.isVNode(e)}const VxetableRender=(VXETable,{serviceApi,dict,i18n})=>{VXETable.renderer.add("#SuSelect",{renderEdit(e,t){let n;const{row:r,column:s}=t,{options:o,props:i,optionProps:f={},events:u}=e,{label:l="label",value:d="value",extLabel:g}=f,{code:E,url:b,fetchField:a,extParam:p={},loading:y=!1,multiple:w,defaultValue:R}=i;R&&Object.keys(R).forEach(C=>{r[C]=r[C]||R[C]}),w&&r[s.field]&&!xeUtils.isArray(r[s.field])&&r[s.field].split(",").forEach(h=>{!o.some(S=>S[l]===h)&&o.push({[d]:h,[l]:h})});async function x(h){const C=Object.assign({},{pageSize:20,pageNum:1},p,{[a||l]:h});let S;try{o.length=0,i.loading=!0,b?S=await serviceApi.get(b,C):S=await serviceApi(E,C),S&&(S.list?o.push(...S.list):o.push(...S))}finally{i.loading=!1}}function O(h){const{fieldMap:C={}}=i;let S;if(w&&h.length)h.forEach(_=>{S=o.find(P=>_===P[d]);const T=Object.keys(C);if(T.length){const P=Object.values(C);T.forEach((k,U)=>{const D=r[k]?r[k].toString():"";r[k]=D&&!D.includes(S[P[U]])?`${D},${S[P[U]]}`:S[P[U]]})}});else if(h.length){S=o.find(T=>h===T[d]);const _=Object.keys(C);if(_.length){const T=Object.values(C);_.forEach((P,k)=>{r[P]=S[T[k]]})}}u!=null&&u.change&&u.change(t,h,S,s.field)}function c(h){u!=null&&u.input&&u.input(t,h)}function m(){u!=null&&u.clear&&u.clear({row:r,field:s.field})}function v(){!o.length&&x(""),u!=null&&u.focus&&u.focus(t,s.field)}return[vue.createVNode(vue.resolveComponent("el-select"),vue.mergeProps({modelValue:r[s.field],"onUpdate:modelValue":h=>r[s.field]=h},i,{filterable:!0,remote:!0,clearable:!0,size:"small",placeholder:"\u8BF7\u5F55\u5165\u5173\u952E\u5B57\u641C\u7D22",style:"width: 100%","remote-method":x,loading:y,onFocus:()=>v(),onChange:h=>O(h),onClear:()=>m(),onInput:h=>c(h)}),_isSlot(n=o.map(h=>vue.createVNode(vue.resolveComponent("el-option"),{key:h[d],label:h[l],value:h[d]},{default:()=>[vue.createVNode("span",{style:"float: left"},[h[g]?`${h[d]}-${h[g]}`:h[d]]),d!==l&&!h[g]?vue.createVNode("span",{class:"su-coSelect-option"},[h[l]]):null]})))?n:{default:()=>[n]})]},renderCell(renderOpts,params){const{row,column}=params,{props}=renderOpts,{textValue,multiple}=props;let val=row[column.field];return textValue&&(val=eval(`row.${textValue}`)||row[column.field]),val&&multiple&&xeUtils.isArray(val)&&(val=val&&val.join(",")),[vue.createVNode("span",null,[val])]},renderItemContent(e,t){let n;const{data:r,property:s}=t,{options:o,props:i,optionProps:f={},events:u}=e,{label:l="label",value:d="value",extLabel:g}=f,{code:E,url:b,fetchField:a,extParam:p={},loading:y=!1}=i;async function w(m){const v=Object.assign({},{pageSize:20,pageNum:1},p,{[a]:m});let h;try{o.length=0,i.loading=!0,b?h=await serviceApi.get(b,v):h=await serviceApi(E,v),h!=null&&h.list?o.push(...h.list):h&&o.push(...h)}finally{i.loading=!1}}function R(m){const{fieldMap:v={}}=i;let h;if(multiple&&m.length)m.forEach(C=>{h=o.find(_=>C===_[d]);const S=Object.keys(v);if(S.length){const _=Object.values(v);S.forEach((T,P)=>{const k=r[T]?r[T].toString():"";r[T]=k&&!k.includes(h[_[P]])?`${k},${h[_[P]]}`:h[_[P]]})}});else if(m.length){h=o.find(S=>m===S[d]);const C=Object.keys(v);if(C.length){const S=Object.values(v);C.forEach((_,T)=>{r[_]=h[S[T]]})}}u!=null&&u.change&&u.change(m,h,r,s)}function x(m){u!=null&&u.input&&u.input(t,m)}function O(){u!=null&&u.clear&&u.clear({data:r,field:s})}function c(){!o.length&&w(""),u!=null&&u.focus&&u.focus(t)}return[vue.createVNode(vue.resolveComponent("el-select"),vue.mergeProps({modelValue:r[s],"onUpdate:modelValue":m=>r[s]=m},i,{filterable:!0,remote:!0,clearable:!0,size:"small",style:"width: 100%",placeholder:"\u8BF7\u5F55\u5165\u5173\u952E\u5B57\u641C\u7D22","remote-method":w,loading:y,onFocus:()=>c(),onChange:m=>R(m),onClear:()=>O(),onInput:()=>x()}),_isSlot(n=o.map(m=>vue.createVNode(vue.resolveComponent("el-option"),{key:m[d],label:m[l],value:m[d]},{default:()=>[vue.createVNode("span",{style:"float: left"},[m[g]?`${m[d]}-${m[g]}`:m[d]]),d!==l&&!m[g]?vue.createVNode("span",{class:"su-coSelect-option"},[m[l]]):null]})))?n:{default:()=>[n]})]}}),VXETable.renderer.add("#SuDateRange",{renderItemContent(e,t){const{data:n,property:r}=t,{props:s}=e;return[vue.createVNode(vue.resolveComponent("el-date-picker"),{modelValue:n[r],"onUpdate:modelValue":o=>n[r]=o,type:(s==null?void 0:s.type)||"daterange",size:"small",style:"width: 100%","range-separator":i18n("message.to",!0),"start-placeholder":i18n("message.startDate",!0),"end-placeholder":i18n("message.endDate",!0)},null)]}}),VXETable.renderer.add("#select",{renderEdit(e,t){let n;const{row:r,column:s}=t,{options:o,props:i,optionProps:f={},events:u}=e,{label:l="label",value:d="value",extLabel:g}=f;i.multiple&&r[s.field]&&!xeUtils.isArray(r[s.field])&&r[s.field].split(",").forEach(a=>{!o.some(y=>y[l]===a)&&o.push({[d]:a,[l]:a})});function E(a){const p=a&&o.find(y=>a===y[d]);u!=null&&u.change&&u.change(t,a,p,s.field)}function b(){u!=null&&u.clear&&u.clear({row:r,field:s.field})}return[vue.createVNode(vue.resolveComponent("el-select"),vue.mergeProps({modelValue:r[s.field],"onUpdate:modelValue":a=>r[s.field]=a,filterable:!0,clearable:!0},i,{size:"small",style:"width: 100%",onChange:a=>E(a),onClear:()=>b()}),_isSlot(n=o.map(a=>vue.createVNode(vue.resolveComponent("el-option"),{key:a[d],label:a[g]?a[d]:a[l],value:a[d]},{default:()=>[vue.createVNode("span",{style:"float: left"},[g&&a[g]?`${a[d]}-${a[g]}`:a[d]]),d!==l&&!a[g]?vue.createVNode("span",{class:"su-coSelect-option"},[a[l]]):null]})))?n:{default:()=>[n]})]},renderCell(renderOpts,params){const{row,column}=params,{props,options,optionProps}=renderOpts,{label="label",value="value",extLabel}=optionProps,{textValue}=props;let val=row[column.field];const item=options.find(e=>e[value]===val);return textValue&&(val=eval(`row.${textValue}`)||row[column.field]),item&&(val=extLabel?item[value]:item[label]),val&&(props==null?void 0:props.multiple)&&xeUtils.isArray(val)&&(val=val&&val.join(",")),[vue.createVNode("span",null,[val])]},renderItemContent(e,t){let n;const{data:r,property:s}=t,{options:o,props:i,optionProps:f={},events:u}=e,{label:l="label",value:d="value"}=f,{defaultValues:g}=i;g&&(r[s]=g);function E(a){const{fieldMap:p={}}=i,y=o.find(x=>a===x[d]),w=Object.keys(p);if(w.length){const x=Object.values(p);w.forEach((O,c)=>{r[O]=a?y[x[c]]:null})}const R={item:y,row:r,property:s};u!=null&&u.change&&u.change(R)}function b(){u!=null&&u.clear&&u.clear({data:r,field:s})}return[vue.createVNode(vue.resolveComponent("el-select"),vue.mergeProps({modelValue:r[s],"onUpdate:modelValue":a=>r[s]=a},i,{filterable:!0,clearable:!0,size:"small",style:"width: 100%",onChange:a=>E(a),onClear:()=>b()}),_isSlot(n=o.map(a=>vue.createVNode(vue.resolveComponent("el-option"),{key:a[d],label:a[l],value:a[d]},{default:()=>[vue.createVNode("span",{style:"float: left"},[a[l]]),vue.createVNode("span",{class:"su-coSelect-option"},[a[d]])]})))?n:{default:()=>[n]})]}}),VXETable.renderer.add("#lov",{renderItemContent(e,t){const{data:n,property:r}=t,{props:s,events:o}=e,{defaultValues:i,mapField:f}=s;i&&(n[r]=i);function u(d,g){const{mapField:E,field:b,displayName:a,isMulti:p}=s;if(p){if(p){const w={};n[a||b]=d.reduce((R,x)=>{for(const O in E)w[O]=R?w[O]+","+x[E[O]]:x[E[O]];return R=R?R+","+x[a||b]:x[a||b],R},""),Object.assign(n,w)}}else{const w={[a||b]:d[g||a||b]};for(const R in E)w[R]=d[E[R]];Object.assign(n,w)}const y={row:n,property:r,item:d};o!=null&&o.change&&o.change(y)}function l(){if(n[r]=null,!xeUtils.isEmpty(f))for(const d in f)n[d]=null;o!=null&&o.clear&&o.clear({data:n,field:r})}return[vue.createVNode(vue.resolveComponent("su-lov"),vue.mergeProps({record:n},s,{mode:"vxe",onChange:(d,g)=>u(d,g),onClear:()=>l()}),null)]},renderEdit(e,t){const{row:n,column:r}=t,{props:s,events:o}=e;function i(u,l){const{mapField:d,field:g,displayName:E,isMulti:b}=s;if(!b){const a={[E||g]:u[l||E||g]};for(const p in d)a[p]=u[d[p]];Object.assign(n,a)}o!=null&&o.change&&o.change(t,u,n[r.field])}function f(){const{mapField:u,field:l}=s;if(n[r.field]=null,!xeUtils.isEmpty(u))for(const d in u)n[d]=null;o!=null&&o.clear&&o.clear({row:n,field:l})}return[vue.createVNode(vue.resolveComponent("su-lov"),vue.mergeProps({record:n},s,{mode:"ele",onChange:(u,l)=>i(u,l),onClear:()=>f()}),null)]},renderDefault(e,t){const{row:n,column:r}=t,{props:s,events:o}=e;function i(u,l){const{mapField:d,field:g,displayName:E,isMulti:b}=s;if(!b){const a={[E||g]:u[l||E||g]};for(const p in d)a[p]=u[d[p]];Object.assign(n,a)}o!=null&&o.change&&o.change(t,u,n[r.field])}function f(){const{mapField:u,field:l}=s;if(n[r.field]=null,!xeUtils.isEmpty(u))for(const d in u)n[d]=null;o!=null&&o.clear&&o.clear({row:n,field:l})}return[vue.createVNode(vue.resolveComponent("su-lov"),vue.mergeProps({record:n},s,{mode:"ele",onChange:(u,l)=>i(u,l),onClear:()=>f()}),null)]},renderCell(e,t){const{row:n,column:r}=t,s=n[r.field];return[vue.createVNode("span",null,[s])]}}),VXETable.renderer.add("#upload",{renderItemContent(e,t){const{data:n,field:r}=t,{props:s,events:o}=e;function i(){n[property]="",o!=null&&o.clear&&o.clear({data:n,field:property})}return[vue.createVNode(vue.resolveComponent("form-upload"),vue.mergeProps({record:n,field:r},s,{onClear:()=>i()}),null)]}}),VXETable.renderer.add("#tag",{renderDefault(e,t){let n;const{row:r,column:s}=t,{props:{code:o,tagMap:i}}=e;function f(){return r[s.field]?i[r[s.field]]:null}return[r[s.field]?vue.createVNode(vue.resolveComponent("el-tag"),{effect:"dark",type:f()},_isSlot(n=getValue(o,r[s.field]))?n:{default:()=>[n]}):null]}}),VXETable.renderer.add("#switch",{renderDefault(e,t){const{row:n,column:r}=t,{props:{code:s,activeValue:o,inactiveValue:i},events:f}=e;function u(l){const d={row:n,column:r,value:l};f!=null&&f.change&&f.change(d)}return[n[r.field]?vue.createVNode(vue.resolveComponent("el-switch"),vue.mergeProps({modelValue:n[r.field],"onUpdate:modelValue":l=>n[r.field]=l,"inline-prompt":!0,size:"large",style:"--el-switch-on-color: #13ce66; --el-switch-off-color: #E6A23C"},e.props,{"active-text":getValue(s,o),"inactive-text":getValue(s,i),onChange:l=>u(l)}),null):null]}});function getValue(e,t){var n,r,s;return!t||!e||!dict?t:(s=(r=(n=dict[e])==null?void 0:n.children)==null?void 0:r.find(o=>o.dictCode===t))==null?void 0:s.dictName}return VXETable},hasClass=(e,t)=>{var n;return!!((n=e.className)!=null&&n.match(new RegExp("(\\s|^)"+t+"(\\s|$)")))},addClass=(e,t,n)=>{hasClass(e,t)||(e.className+=" "+t),n&&(hasClass(e,n)||(e.className+=" "+n))},removeClass=(e,t,n)=>{var r,s;if(hasClass(e,t)){const o=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=(r=e.className)==null?void 0:r.replace(o," ").trim()}if(n&&hasClass(e,n)){const o=new RegExp("(\\s|^)"+n+"(\\s|$)");e.className=(s=e.className)==null?void 0:s.replace(o," ").trim()}},toggleClass=(e,t,n)=>{const r=n||document.body;let{className:s}=r;s=s==null?void 0:s.replace(t,""),r.className=s&&e?`${s} ${t} `:s};function useRafThrottle(e){let t=!1;return function(...n){t||(t=!0,window.requestAnimationFrame(()=>{e.apply(this,n),t=!1}))}}const openLink=e=>{const t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("target","_blank"),t.setAttribute("rel","noreferrer noopener"),t.setAttribute("id","external"),document.getElementById("external")&&document.body.removeChild(document.getElementById("external")),document.body.appendChild(t),t.click(),t.remove()};var MapShim=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(s,o){return s[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),s=this.__entries__[r];return s&&s[1]},t.prototype.set=function(n,r){var s=e(this.__entries__,n);~s?this.__entries__[s][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,s=e(r,n);~s&&r.splice(s,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var s=0,o=this.__entries__;s<o.length;s++){var i=o[s];n.call(r,i[1],i[0])}},t}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle(e,t){var n=!1,r=!1,s=0;function o(){n&&(n=!1,e()),r&&f()}function i(){requestAnimationFrame$1(o)}function f(){var u=Date.now();if(n){if(u-s<trailingTimeout)return;r=!0}else n=!0,r=!1,setTimeout(i,t);s=u}return f}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,s=transitionKeys.some(function(o){return!!~r.indexOf(o)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),defineConfigurable=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var s=r[n];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e},getWindowOf=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(e){return parseFloat(e)||0}function getBordersSize(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,s){var o=e["border-"+s+"-width"];return r+toFloat(o)},0)}function getPaddings(e){for(var t=["top","right","bottom","left"],n={},r=0,s=t;r<s.length;r++){var o=s[r],i=e["padding-"+o];n[o]=toFloat(i)}return n}function getSVGContentRect(e){var t=e.getBBox();return createRectInit(0,0,t.width,t.height)}function getHTMLElementContentRect(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return emptyRect;var r=getWindowOf(e).getComputedStyle(e),s=getPaddings(r),o=s.left+s.right,i=s.top+s.bottom,f=toFloat(r.width),u=toFloat(r.height);if(r.boxSizing==="border-box"&&(Math.round(f+o)!==t&&(f-=getBordersSize(r,"left","right")+o),Math.round(u+i)!==n&&(u-=getBordersSize(r,"top","bottom")+i)),!isDocumentElement(e)){var l=Math.round(f+o)-t,d=Math.round(u+i)-n;Math.abs(l)!==1&&(f-=l),Math.abs(d)!==1&&(u-=d)}return createRectInit(s.left,s.top,f,u)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof getWindowOf(e).SVGGraphicsElement}:function(e){return e instanceof getWindowOf(e).SVGElement&&typeof e.getBBox=="function"}}();function isDocumentElement(e){return e===getWindowOf(e).document.documentElement}function getContentRect(e){return isBrowser?isSVGGraphicsElement(e)?getSVGContentRect(e):getHTMLElementContentRect(e):emptyRect}function createReadOnlyRect(e){var t=e.x,n=e.y,r=e.width,s=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype);return defineConfigurable(i,{x:t,y:n,width:r,height:s,top:n,right:t+r,bottom:s+n,left:t}),i}function createRectInit(e,t,n,r){return{x:e,y:t,width:n,height:r}}var ResizeObservation=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=getContentRect(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),ResizeObserverEntry=function(){function e(t,n){var r=createReadOnlyRect(n);defineConfigurable(this,{target:t,contentRect:r})}return e}(),ResizeObserverSPI=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new MapShim,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof getWindowOf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new ResizeObservation(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof getWindowOf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;!n.has(t)||(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(!!this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new ResizeObserverEntry(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ResizeObserverController.getInstance(),r=new ResizeObserverSPI(t,n,this);observers.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ResizeObserver.prototype[e]=function(){var t;return(t=observers.get(this))[e].apply(t,arguments)}});var index=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver}();const isServer=typeof window>"u",resizeHandler=e=>{for(const t of e){const n=t.target.__resizeListeners__||[];n.length&&n.forEach(r=>{r()})}},addResizeListener=(e,t)=>{isServer||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new index(resizeHandler),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},removeResizeListener=(e,t)=>{!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())},domSymbol=Symbol("watermark-dom");function useWatermark(e=vue.ref(document.body)){const t=useRafThrottle(function(){const l=vue.unref(e);if(!l)return;const{clientHeight:d,clientWidth:g}=l;i({height:d,width:g})}),n=domSymbol.toString(),r=vue.shallowRef(),s=()=>{const l=vue.unref(r);r.value=void 0;const d=vue.unref(e);!d||(l&&d.removeChild(l),removeResizeListener(d,t))};function o(l,d){var p,y;const g=document.createElement("canvas"),E=260,b=180;Object.assign(g,{width:E,height:b});const a=g.getContext("2d");return a&&(a.rotate(-20*Math.PI/120),a.font=(p=d==null?void 0:d.font)!=null?p:"15px Reggae One",a.fillStyle=(y=d==null?void 0:d.fillStyle)!=null?y:"rgba(180, 180, 180, 0.75)",a.textAlign="left",a.textBaseline="middle",a.fillText(l,E/20,b)),g.toDataURL("image/png")}function i(l={}){const d=vue.unref(r);!d||(xeUtils.isUndefined(l.width)||(d.style.width=`${l.width}px`),xeUtils.isUndefined(l.height)||(d.style.height=`${l.height}px`),xeUtils.isUndefined(l.str)||(d.style.background=`url(${o(l.str,l.attr)}) left top repeat`))}const f=(l,d)=>{if(vue.unref(r))return i({str:l,attr:d}),n;const g=document.createElement("div");r.value=g,g.id=n,g.style.pointerEvents="none",g.style.top="0px",g.style.left="0px",g.style.position="absolute",g.style.zIndex="100000";const E=vue.unref(e);if(!E)return n;const{clientHeight:b,clientWidth:a}=E;return i({str:l,width:a,height:b,attr:d}),E.appendChild(g),n};function u(l,d){f(l,d),addResizeListener(document.documentElement,t),vue.getCurrentInstance()&&vue.onBeforeUnmount(()=>{s()})}return{setWatermark:u,clear:s}}const DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]/;function entries(e){return Object.keys(e).map(t=>[t,e[t]])}function useAttrs(e={}){const t=vue.getCurrentInstance();if(!t)return{};const{excludeListeners:n=!1,excludeKeys:r=[]}=e,s=vue.shallowRef({}),o=r.concat(DEFAULT_EXCLUDE_KEYS);return t.attrs=vue.reactive(t.attrs),vue.watchEffect(()=>{const i=entries(t.attrs).reduce((f,[u,l])=>(!o.includes(u)&&!(n&&LISTENER_PREFIX.test(u))&&(f[u]=l),f),{});s.value=i}),s}class sessionStorageProxy{constructor(t){N(this,"storage");N(this,"prefix");N(this,"addPrefix",t=>{this.prefix=t});this.storage=t}setItem(t,n){this.storage.setItem(this.getKey(t),JSON.stringify(n))}getItem(t){return JSON.parse(this.storage.getItem(this.getKey(t)))}removeItem(t){this.storage.removeItem(this.getKey(t))}getKey(t){return this.prefix?this.prefix+"_"+t:t}clear(){this.storage.clear()}}class localStorageProxy extends sessionStorageProxy{constructor(t){super(t)}}const storageSession=new sessionStorageProxy(sessionStorage),storageLocal=new localStorageProxy(localStorage),useRender=()=>{const e={value:"dictCode",label:"dictName"},t=(c,m)=>{var P;const v=x(m);let h={clearable:!0,disabled:!1},C,S;xeUtils.isObject(c)?(h=Object.assign(h,c),C=c.defaultValue,S=c==null?void 0:c.code):S=c;const _=(P=storageLocal.getItem("kLov")[S])==null?void 0:P.children,T=_?_.filter(k=>k.enabled==="1"):[];return{name:"#select",optionProps:e,options:T,props:h,defaultValue:C,events:v}},n=(c,m)=>{const v=x(m);return{name:"#SuSelect",optionProps:c.optionProps,props:c.props,options:c.options||[],events:v}},r=(c,m)=>{const v={optionProps:{extLabel:"userName",value:"employeeName"},props:{attrs:{disabled:c==null?void 0:c.disabled},disabled:c==null?void 0:c.disabled,defaultValue:c==null?void 0:c.defaultValue,fieldMap:c==null?void 0:c.fieldMap,code:"SYS037",url:"/uums/employee/listEmployeeIsUser",fetchField:"employeeName"}};return n(v,m)},s=c=>{const m={optionProps:{extLabel:"userName",value:"name"},props:{code:"sys/listUsers",url:"/uums/user",fetchField:"name",fieldMap:c==null?void 0:c.fieldMap}};return n(m)},o=(c,m)=>{const v={label:"organizationName",value:(c==null?void 0:c.field)||"organizationName"},h={fieldMap:{},extParam:c==null?void 0:c.extParam,url:"/uums/cusOrganization",fetchField:"organizationName"},C={organizationId:"id",organizationCode:"organizationCode"};return Object.assign(h.fieldMap,C,(c==null?void 0:c.fieldMap)||{}),{name:"#SuSelect",props:h,optionProps:v,options:[],methods:m}},i=(c,m)=>{const v={label:"orgName",value:(c==null?void 0:c.field)||"orgName"},h={fieldMap:{},extParam:c==null?void 0:c.extParam,url:"/uums/org",fetchField:"orgName"},C={orgId:"id",orgCode:"orgCode"};return Object.assign(h.fieldMap,C,(c==null?void 0:c.fieldMap)||{}),{name:"#SuSelect",props:h,optionProps:v,options:[],methods:m}},f=(c,m)=>{const v=Object.assign({disabled:!1},c),h=v==null?void 0:v.defaultValue;return{name:"$input",props:v,defaultValue:h,events:x(m)}},u=(c,m)=>{const v=Object.assign({disabled:!1,rows:3},c),h=v==null?void 0:v.defaultValue;return{name:"$textarea",props:v,defaultValue:h,events:x(m)}},l=(c,m)=>{const v="$checkbox",{defaultValue:h,options:C,props:S}=g(c);return{name:v,defaultValue:h,options:C,props:S,events:x(m)}},d=(c,m)=>{const v="$radio",{defaultValue:h,options:C,props:S}=g(c);return{name:v,defaultValue:h,options:C,props:S,events:x(m)}},g=c=>{var _;let m={disabled:!1},v;const h=storageLocal.getItem("kLov");let C="";xeUtils.isObject(c)?(v=c.defaultValue,C=c.code,m=Object.assign(m,c||{})):xeUtils.isString(c)&&(C=c);const S=C?(_=h[C])==null?void 0:_.children.map(T=>({label:T.dictName,value:T.dictCode})):[];return{props:m,defaultValue:v,options:S}},E=(c,m)=>{const v=x(m),h=Object.assign({type:"number",clearable:!0,min:0,controls:!1},c||{});return{name:"$input",props:h,events:v}},b=(c,m)=>{const v=x(m),h="yyyy-MM-dd HH:mm:ss",C=c==null?void 0:c.defaultValue,_=Object.assign({type:"date",valueFormat:h,clearable:!0},c||{});return{name:"$input",props:_,defaultValue:C,events:v}},a=(c,m)=>{const v=x(m),h=Object.assign({},c||{});return{name:"#lov",props:h,events:v}},p=(c,m)=>{const v=x(m),h=(c==null?void 0:c.optionProps)||{},C=Object.assign({clearable:!0,disabled:!1},c||{});return{name:"#select",optionProps:h,options:(c==null?void 0:c.options)||[],props:C,events:v}},y=(c,m)=>{let v={openLabel:"\u662F",closeLabel:"\u5426",openValue:"Y",closeValue:"N"},h="Y";xeUtils.isObject(c)&&!xeUtils.isFunction(c)?(v=Object.assign(v,c||{}),h=c.defaultValue||h):!xeUtils.isEmpty(c)&&xeUtils.isString(c)&&(h=c,v=Object.assign(v,{defaultValue:h}));const C=xeUtils.isFunction(c)?x(c):x(m);return{name:"$switch",props:v,defaultValue:h,events:C}},w=(c,m)=>({name:"#tag",props:{code:c,tagMap:m}}),R=c=>y({openLabel:"\u542F\u7528",closeLabel:"\u7981\u7528",openValue:"1",closeValue:"0",defaultValue:"1"},c),x=c=>{let m={};return xeUtils.isObject(c)&&!xeUtils.isFunction(c)?m={change:(c==null?void 0:c.onChange)||O,blur:(c==null?void 0:c.onBlur)||O,focus:(c==null?void 0:c.onFocus)||O,input:(c==null?void 0:c.onInput)||O}:c&&(m={change:c}),m};function O(){}return{renderDict:t,renderSelect:n,renderInput:f,renderTextarea:u,renderCheckBox:l,renderRadio:d,renderUser:r,renderSysUser:s,renderInvOrg:o,renderBU:i,renderNumber:E,renderLov:a,renderSelectLocal:p,renderDate:b,renderSwitch:y,renderCellTag:w,renderEnabled:R}},useGlobal=()=>{const e=vue.getCurrentInstance();if(!e)return{$global:{},$storage:{},$config:{}};const t=e.appContext.app.config.globalProperties,n=t.$storage,r=t.$config,s=t.$serviceApi,o=t.$hasAuthority,i=t.$printPlugin;return{$global:t,$storage:n,$config:r,$serviceApi:s,$hasAuthority:o,$printPlugin:i}},hexList=[];for(let e=0;e<=15;e++)hexList[e]=e.toString(16);function buildUUID(){let e="";for(let t=1;t<=36;t++)t===9||t===14||t===19||t===24?e+="-":t===15?e+=4:t===20?e+=hexList[Math.random()*4|8]:e+=hexList[Math.random()*16|0];return e.replace(/-/g,"")}let unique=0;function buildShortUUID(e=""){const t=Date.now(),n=Math.floor(Math.random()*1e9);return unique++,e+"_"+n+unique+String(t)}const deviceDetection=()=>{const e=navigator.userAgent.toLowerCase(),t=e.match(/iphone os/i)==="iphone os",n=e.match(/midp/i)==="midp",r=e.match(/rv:1.2.3.4/i)==="rv:1.2.3.4",s=e.match(/ucweb/i)==="ucweb",o=e.match(/android/i)==="android",i=e.match(/windows ce/i)==="windows ce",f=e.match(/windows mobile/i)==="windows mobile";return t||n||r||s||o||i||f},getBrowserInfo=()=>{const e=navigator.userAgent.toLowerCase(),t=/(msie|firefox|chrome|opera|version).*?([\d.]+)/,n=e.match(t);return{browser:n[1].replace(/version/,"'safari"),version:n[2]}},showMessage=(e,t,n)=>VXETable__default.default.modal.message({content:e,status:t,iconStatus:n}),successMessage=e=>{var t;return e||(e="\u64CD\u4F5C\u6210\u529F"),(t=VXETable__default.default.modal)==null?void 0:t.message({content:e,status:"success"})},warnMessage=(e,t)=>{var n,r;return t?(n=VXETable__default.default.modal)==null?void 0:n.alert({content:e,status:"warning"}):(r=VXETable__default.default.modal)==null?void 0:r.message({content:e,status:"warning"})},errorMessage=(e,t)=>{var n,r;return e||(e="\u64CD\u4F5C\u5931\u8D25"),t?(n=VXETable__default.default.modal)==null?void 0:n.alert({content:e,status:"error"}):(r=VXETable__default.default.modal)==null?void 0:r.message({content:e,status:"error"})},renderHook=useRender(),i18nColums=e=>e.filter(t=>!t.isHidden).map(t=>(t.type||(t.title=t.title||`message.${t.field}`),t)),formatItems=(e,t,n=24)=>e.length?e.filter(r=>!r.isHidden).map(r=>{var i,f;r.title=r.title||`message.${r.field}`,r.span=r.span||n;const s=r.disabled||((f=(i=r.itemRender)==null?void 0:i.props)==null?void 0:f.disabled)||t==="detail";let o={name:"$input",props:{disabled:s}};return r.code&&!r.itemRender&&(o=renderHook.renderDict(r.code)),r.itemRender=r.itemRender||o,Object.assign(r.itemRender.props||{},{disabled:s}),r}):e,searchBtn={span:6,align:"right",collapseNode:!1,itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"message.SEARCH",status:"primary",icon:"ri-search-line"}},{props:{type:"reset",content:"message.RESET",status:"info",icon:"ri-refresh-line"}}]}},formatGridItems=e=>{const t=e.filter(i=>!i.isHidden),n=t.length,r=n>2&&t.some((i,f)=>f<3&&(i.span>6||getDateRange(i))),s=r||n>3,o=t.map((i,f)=>(i.folding=r?s&&f>1:s&&f>2,i.span=getDateRange(i)?12:i.span||6,i.code&&!i.itemRender&&(i.itemRender=renderHook.renderDict(i.code)),i.itemRender=i.itemRender||{name:"$input"},i.resetValue=i.itemRender.defaultValue,i.title=i.title||`message.${i.field}`,i));if(searchBtn.collapseNode=s,s){const i=r?2:3;o.splice(i,0,searchBtn)}else o.push(searchBtn);return o},getDateRange=e=>{var t,n,r,s,o;return((t=e.itemRender)==null?void 0:t.name)==="#SuDateRange"?((r=(n=e.itemRender)==null?void 0:n.props)==null?void 0:r.type)==="daterange"||!((o=(s=e.itemRender)==null?void 0:s.props)!=null&&o.type):!1},formatRules=(e,t)=>{const n={};return e.forEach(r=>{if(r.required){const{field:s,title:o}=r;n[s]=[{required:!0,message:`${t("message.required")}${t(o||`message.${s}`)}`}]}}),n},expandedPaths=[];function extractPathList(e){if(!Array.isArray(e)){console.warn("menuTree must be an array");return}if(!(!e||e.length===0)){for(const t of e)t.children&&t.children.length>0&&extractPathList(t.children),expandedPaths.push(t.uniqueId);return expandedPaths}}function deleteTreeChildren(e,t=[]){if(!Array.isArray(e)){console.warn("menuTree must be an array");return}if(!(!e||e.length===0)){for(const[n,r]of e.entries())r.children&&r.children.length===1&&delete r.children,r.id=n,r.parentId=t.length?t[t.length-1]:null,r.pathList=[...t,r.id],r.uniqueId=r.pathList.length>1?r.pathList.join("-"):r.pathList[0],r.children&&r.children.length>0&&deleteTreeChildren(r.children,r.pathList);return e}}function buildHierarchyTree(e,t=[]){if(!Array.isArray(e)){console.warn("menuTree must be an array");return}if(!(!e||e.length===0)){for(const[n,r]of e.entries())r.id=n,r.parentId=t.length?t[t.length-1]:null,r.pathList=[...t,r.id],r.children&&r.children.length>0&&buildHierarchyTree(r.children,r.pathList);return e}}function getNodeByUniqueId(e,t){if(!Array.isArray(e)){console.warn("menuTree must be an array");return}if(!e||e.length===0)return;const n=e.find(s=>s.uniqueId===t);if(n)return n;const r=e.filter(s=>s.children).map(s=>s.children).flat(1);return getNodeByUniqueId(r,t)}function appendFieldByUniqueId(e,t,n){if(!Array.isArray(e)){console.warn("menuTree must be an array");return}if(!e||e.length===0)return{};for(const r of e){const s=r.children&&r.children.length>0;r.uniqueId===t&&Object.prototype.toString.call(n)==="[object Object]"&&Object.assign(r,n),s&&appendFieldByUniqueId(r.children,t,n)}return e}/*! typescript-cookie v1.0.4 | MIT */const encodeName=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),encodeValue=e=>encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent),decodeName=decodeURIComponent,decodeValue=e=>(e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent));function stringifyAttributes(e){return e=Object.assign({},e),typeof e.expires=="number"&&(e.expires=new Date(Date.now()+e.expires*864e5)),e.expires!=null&&(e.expires=e.expires.toUTCString()),Object.entries(e).filter(([t,n])=>n!=null&&n!==!1).map(([t,n])=>n===!0?`; ${t}`:`; ${t}=${n.split(";")[0]}`).join("")}function get(e,t,n){const r=/(?:^|; )([^=]*)=([^;]*)/g,s={};let o;for(;(o=r.exec(document.cookie))!=null;)try{const i=n(o[1]);if(s[i]=t(o[2],i),e===i)break}catch{}return e!=null?s[e]:s}const DEFAULT_CODEC=Object.freeze({decodeName,decodeValue,encodeName,encodeValue}),DEFAULT_ATTRIBUTES=Object.freeze({path:"/"});function setCookie(e,t,n=DEFAULT_ATTRIBUTES,{encodeValue:r=encodeValue,encodeName:s=encodeName}={}){return document.cookie=`${s(e)}=${r(t,e)}${stringifyAttributes(n)}`}function getCookie(e,{decodeValue:t=decodeValue,decodeName:n=decodeName}={}){return get(e,t,n)}function getCookies({decodeValue:e=decodeValue,decodeName:t=decodeName}={}){return get(void 0,e,t)}function removeCookie(e,t=DEFAULT_ATTRIBUTES){setCookie(e,"",Object.assign({},t,{expires:-1}))}function init(e,t){const n={set:function(s,o,i){return setCookie(s,o,Object.assign({},this.attributes,i),{encodeValue:this.converter.write})},get:function(s){if(arguments.length===0)return getCookies(this.converter.read);if(s!=null)return getCookie(s,this.converter.read)},remove:function(s,o){removeCookie(s,Object.assign({},this.attributes,o))},withAttributes:function(s){return init(this.converter,Object.assign({},this.attributes,s))},withConverter:function(s){return init(Object.assign({},this.converter,s),this.attributes)}},r={attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}};return Object.create(n,r)}init({read:DEFAULT_CODEC.decodeValue,write:DEFAULT_CODEC.encodeValue},DEFAULT_ATTRIBUTES);class Cookies{constructor(){N(this,"prefix",null);N(this,"addPrefix",t=>{this.prefix=t})}set(t="default",n=""){setCookie(`${this.getKey(t)}`,n)}get(t="default"){return getCookie(`${this.getKey(t)}`)}getAll(){return getCookie("")}remove(t="default"){removeCookie(`${this.getKey(t)}`)}getKey(t){return this.prefix?this.prefix+"_"+t:t}}const cookies$1=new Cookies;function bind(e,t){return function(){return e.apply(t,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(e=>t=>{const n=toString.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&isFunction(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=e=>e!==null&&typeof e=="object",isBoolean=e=>e===!0||e===!1,isPlainObject=e=>{if(kindOf(e)!=="object")return!1;const t=getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject(e)&&isFunction(e.pipe),isFormData=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||toString.call(e)===t||isFunction(e.toString)&&e.toString()===t)},isURLSearchParams=kindOfTest("URLSearchParams"),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),isArray(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let f;for(r=0;r<i;r++)f=o[r],t.call(null,e[f],f,e)}}function merge(){const e={},t=(n,r)=>{isPlainObject(e[r])&&isPlainObject(n)?e[r]=merge(e[r],n):isPlainObject(n)?e[r]=merge({},n):isArray(n)?e[r]=n.slice():e[r]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&forEach(arguments[n],t);return e}const extend=(e,t,n,{allOwnKeys:r}={})=>(forEach(t,(s,o)=>{n&&isFunction(s)?e[o]=bind(s,n):e[o]=s},{allOwnKeys:r}),e),stripBOM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),inherits=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject=(e,t,n,r)=>{let s,o,i;const f={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!f[i]&&(t[i]=e[i],f[i]=!0);e=n!==!1&&getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},toArray=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},isTypedArray=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},matchAll=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),hasOwnProperty=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};forEach(n,(s,o)=>{t(s,o,e)!==!1&&(r[o]=s)}),Object.defineProperties(e,r)},freezeMethods=e=>{reduceDescriptors(e,(t,n)=>{const r=e[n];if(!!isFunction(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")})}})},toObjectSet=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return isArray(e)?r(e):r(String(e).split(t)),n},noop=()=>{},toFiniteNumber=(e,t)=>(e=+e,Number.isFinite(e)?e:t),utils={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber};function AxiosError(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}utils.inherits(AxiosError,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{descriptors[e]={value:e}}),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(e,t,n,r,s,o)=>{const i=Object.create(prototype$1);return utils.toFlatObject(e,i,function(u){return u!==Error.prototype},f=>f!=="isAxiosError"),AxiosError.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},browser=typeof self=="object"?self.FormData:window.FormData;function isVisitable(e){return utils.isPlainObject(e)||utils.isArray(e)}function removeBrackets(e){return utils.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,n){return e?e.concat(t).map(function(s,o){return s=removeBrackets(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function isFlatArray(e){return utils.isArray(e)&&!e.some(isVisitable)}const predicates=utils.toFlatObject(utils,{},null,function e(t){return/^is[A-Z]/.test(t)});function isSpecCompliant(e){return e&&utils.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function toFormData(e,t,n){if(!utils.isObject(e))throw new TypeError("target must be an object");t=t||new(browser||FormData),n=utils.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!utils.isUndefined(y[p])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&isSpecCompliant(t);if(!utils.isFunction(s))throw new TypeError("visitor must be a function");function l(a){if(a===null)return"";if(utils.isDate(a))return a.toISOString();if(!u&&utils.isBlob(a))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils.isArrayBuffer(a)||utils.isTypedArray(a)?u&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function d(a,p,y){let w=a;if(a&&!y&&typeof a=="object"){if(utils.endsWith(p,"{}"))p=r?p:p.slice(0,-2),a=JSON.stringify(a);else if(utils.isArray(a)&&isFlatArray(a)||utils.isFileList(a)||utils.endsWith(p,"[]")&&(w=utils.toArray(a)))return p=removeBrackets(p),w.forEach(function(x,O){!(utils.isUndefined(x)||x===null)&&t.append(i===!0?renderKey([p],O,o):i===null?p:p+"[]",l(x))}),!1}return isVisitable(a)?!0:(t.append(renderKey(y,p,o),l(a)),!1)}const g=[],E=Object.assign(predicates,{defaultVisitor:d,convertValue:l,isVisitable});function b(a,p){if(!utils.isUndefined(a)){if(g.indexOf(a)!==-1)throw Error("Circular reference detected in "+p.join("."));g.push(a),utils.forEach(a,function(w,R){(!(utils.isUndefined(w)||w===null)&&s.call(t,w,utils.isString(R)?R.trim():R,p,E))===!0&&b(w,p?p.concat(R):[R])}),g.pop()}}if(!utils.isObject(e))throw new TypeError("data must be an object");return b(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function e(t,n){this._pairs.push([t,n])},prototype.toString=function e(t){const n=t?function(r){return t.call(this,r,encode$1)}:encode$1;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,n){if(!t)return e;const r=n&&n.encode||encode,s=n&&n.serialize;let o;if(s?o=s(t,n):o=utils.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class InterceptorManager{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){utils.forEach(this.handlers,function(r){r!==null&&t(r)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=FormData,isStandardBrowserEnv=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),platform={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob},isStandardBrowserEnv,protocols:["http","https","file","blob","url","data"]};function toURLEncodedForm(e,t){return toFormData(e,new platform.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return platform.isNode&&utils.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function parsePropPath(e){return utils.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function arrayToObject(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function formDataToJSON(e){function t(n,r,s,o){let i=n[o++];const f=Number.isFinite(+i),u=o>=n.length;return i=!i&&utils.isArray(s)?s.length:i,u?(utils.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!f):((!s[i]||!utils.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&utils.isArray(s[i])&&(s[i]=arrayToObject(s[i])),!f)}if(utils.isFormData(e)&&utils.isFunction(e.entries)){const n={};return utils.forEachEntry(e,(r,s)=>{t(parsePropPath(r),s,n,0)}),n}return null}function settle(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new AxiosError("Request failed with status code "+n.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const cookies=platform.isStandardBrowserEnv?function e(){return{write:function(n,r,s,o,i,f){const u=[];u.push(n+"="+encodeURIComponent(r)),utils.isNumber(s)&&u.push("expires="+new Date(s).toGMTString()),utils.isString(o)&&u.push("path="+o),utils.isString(i)&&u.push("domain="+i),f===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function e(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t){return e&&!isAbsoluteURL(t)?combineURLs(e,t):t}const isURLSameOrigin=platform.isStandardBrowserEnv?function e(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const f=utils.isString(i)?s(i):i;return f.protocol===r.protocol&&f.host===r.host}}():function e(){return function(){return!0}}();function CanceledError(e,t,n){AxiosError.call(this,e==null?"canceled":e,AxiosError.ERR_CANCELED,t,n),this.name="CanceledError"}utils.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const ignoreDuplicateOf=utils.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
-
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&ignoreDuplicateOf[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},$internals=Symbol("internals"),$defaults=Symbol("defaults");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return e===!1||e==null?e:utils.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function matchHeaderValue(e,t,n,r){if(utils.isFunction(r))return r.call(this,t,n);if(!!utils.isString(t)){if(utils.isString(r))return t.indexOf(r)!==-1;if(utils.isRegExp(r))return r.test(t)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function buildAccessors(e,t){const n=utils.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}function findKey(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}function AxiosHeaders(e,t){e&&this.set(e),this[$defaults]=t||null}Object.assign(AxiosHeaders.prototype,{set:function(e,t,n){const r=this;function s(o,i,f){const u=normalizeHeader(i);if(!u)throw new Error("header name must be a non-empty string");const l=findKey(r,u);l&&f!==!0&&(r[l]===!1||f===!1)||(r[l||i]=normalizeValue(o))}return utils.isPlainObject(e)?utils.forEach(e,(o,i)=>{s(o,i,t)}):s(t,e,n),this},get:function(e,t){if(e=normalizeHeader(e),!e)return;const n=findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return parseTokens(r);if(utils.isFunction(t))return t.call(this,r,n);if(utils.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=normalizeHeader(e),e){const n=findKey(this,e);return!!(n&&(!t||matchHeaderValue(this,this[n],n,t)))}return!1},delete:function(e,t){const n=this;let r=!1;function s(o){if(o=normalizeHeader(o),o){const i=findKey(n,o);i&&(!t||matchHeaderValue(n,n[i],i,t))&&(delete n[i],r=!0)}}return utils.isArray(e)?e.forEach(s):s(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return utils.forEach(this,(r,s)=>{const o=findKey(n,s);if(o){t[o]=normalizeValue(r),delete t[s];return}const i=e?formatHeader(s):String(s).trim();i!==s&&delete t[s],t[i]=normalizeValue(r),n[i]=!0}),this},toJSON:function(e){const t=Object.create(null);return utils.forEach(Object.assign({},this[$defaults]||null,this),(n,r)=>{n==null||n===!1||(t[r]=e&&utils.isArray(n)?n.join(", "):n)}),t}}),Object.assign(AxiosHeaders,{from:function(e){return utils.isString(e)?new this(parseHeaders(e)):e instanceof this?e:new this(e)},accessor:function(e){const n=(this[$internals]=this[$internals]={accessors:{}}).accessors,r=this.prototype;function s(o){const i=normalizeHeader(o);n[i]||(buildAccessors(r,o),n[i]=!0)}return utils.isArray(e)?e.forEach(s):s(e),this}}),AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),utils.freezeMethods(AxiosHeaders.prototype),utils.freezeMethods(AxiosHeaders);function speedometer(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),d=r[o];i||(i=l),n[s]=u,r[s]=l;let g=o,E=0;for(;g!==s;)E+=n[g++],g=g%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),l-i<t)return;const b=d&&l-d;return b?Math.round(E*1e3/b):void 0}}function progressEventReducer(e,t){let n=0;const r=speedometer(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,f=o-n,u=r(f),l=o<=i;n=o;const d={loaded:o,total:i,progress:i?o/i:void 0,bytes:f,rate:u||void 0,estimated:u&&i&&l?(i-o)/u:void 0};d[t?"download":"upload"]=!0,e(d)}}function xhrAdapter(e){return new Promise(function(n,r){let s=e.data;const o=AxiosHeaders.from(e.headers).normalize(),i=e.responseType;let f;function u(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}utils.isFormData(s)&&platform.isStandardBrowserEnv&&o.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const b=e.auth.username||"",a=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(b+":"+a))}const d=buildFullPath(e.baseURL,e.url);l.open(e.method.toUpperCase(),buildURL(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function g(){if(!l)return;const b=AxiosHeaders.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),p={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:b,config:e,request:l};settle(function(w){n(w),u()},function(w){r(w),u()},p),l=null}if("onloadend"in l?l.onloadend=g:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(g)},l.onabort=function(){!l||(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let a=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||transitionalDefaults;e.timeoutErrorMessage&&(a=e.timeoutErrorMessage),r(new AxiosError(a,p.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,l)),l=null},platform.isStandardBrowserEnv){const b=(e.withCredentials||isURLSameOrigin(d))&&e.xsrfCookieName&&cookies.read(e.xsrfCookieName);b&&o.set(e.xsrfHeaderName,b)}s===void 0&&o.setContentType(null),"setRequestHeader"in l&&utils.forEach(o.toJSON(),function(a,p){l.setRequestHeader(p,a)}),utils.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",progressEventReducer(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",progressEventReducer(e.onUploadProgress)),(e.cancelToken||e.signal)&&(f=b=>{!l||(r(!b||b.type?new CanceledError(null,e,l):b),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f)));const E=parseProtocol(d);if(E&&platform.protocols.indexOf(E)===-1){r(new AxiosError("Unsupported protocol "+E+":",AxiosError.ERR_BAD_REQUEST,e));return}l.send(s||null)})}const adapters={http:xhrAdapter,xhr:xhrAdapter},adapters$1={getAdapter:e=>{if(utils.isString(e)){const t=adapters[e];if(!e)throw Error(utils.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!utils.isFunction(e))throw new TypeError("adapter is not a function");return e},adapters},DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function getDefaultAdapter(){let e;return typeof XMLHttpRequest<"u"?e=adapters$1.getAdapter("xhr"):typeof process<"u"&&utils.kindOf(process)==="process"&&(e=adapters$1.getAdapter("http")),e}function stringifySafely(e,t,n){if(utils.isString(e))try{return(t||JSON.parse)(e),utils.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const defaults={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function e(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=utils.isObject(t);if(o&&utils.isHTMLForm(t)&&(t=new FormData(t)),utils.isFormData(t))return s&&s?JSON.stringify(formDataToJSON(t)):t;if(utils.isArrayBuffer(t)||utils.isBuffer(t)||utils.isStream(t)||utils.isFile(t)||utils.isBlob(t))return t;if(utils.isArrayBufferView(t))return t.buffer;if(utils.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(t,this.formSerializer).toString();if((f=utils.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return toFormData(f?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),stringifySafely(t)):t}],transformResponse:[function e(t){const n=this.transitional||defaults.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&utils.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(f){if(i)throw f.name==="SyntaxError"?AxiosError.from(f,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils.forEach(["delete","get","head"],function e(t){defaults.headers[t]={}}),utils.forEach(["post","put","patch"],function e(t){defaults.headers[t]=utils.merge(DEFAULT_CONTENT_TYPE)});function transformData(e,t){const n=this||defaults,r=t||n,s=AxiosHeaders.from(r.headers);let o=r.data;return utils.forEach(e,function(f){o=f.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function isCancel(e){return!!(e&&e.__CANCEL__)}function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),(e.adapter||defaults.adapter)(e).then(function(r){return throwIfCancellationRequested(e),r.data=transformData.call(e,e.transformResponse,r),r.headers=AxiosHeaders.from(r.headers),r},function(r){return isCancel(r)||(throwIfCancellationRequested(e),r&&r.response&&(r.response.data=transformData.call(e,e.transformResponse,r.response),r.response.headers=AxiosHeaders.from(r.response.headers))),Promise.reject(r)})}function mergeConfig(e,t){t=t||{};const n={};function r(l,d){return utils.isPlainObject(l)&&utils.isPlainObject(d)?utils.merge(l,d):utils.isPlainObject(d)?utils.merge({},d):utils.isArray(d)?d.slice():d}function s(l){if(utils.isUndefined(t[l])){if(!utils.isUndefined(e[l]))return r(void 0,e[l])}else return r(e[l],t[l])}function o(l){if(!utils.isUndefined(t[l]))return r(void 0,t[l])}function i(l){if(utils.isUndefined(t[l])){if(!utils.isUndefined(e[l]))return r(void 0,e[l])}else return r(void 0,t[l])}function f(l){if(l in t)return r(e[l],t[l]);if(l in e)return r(void 0,e[l])}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:f};return utils.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const g=u[d]||s,E=g(d);utils.isUndefined(E)&&g!==f||(n[d]=E)}),n}const VERSION="1.1.3",validators$1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators$1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const deprecatedWarnings={};validators$1.transitional=function e(t,n,r){function s(o,i){return"[Axios v"+VERSION+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,f)=>{if(t===!1)throw new AxiosError(s(i," has been removed"+(n?" in "+n:"")),AxiosError.ERR_DEPRECATED);return n&&!deprecatedWarnings[i]&&(deprecatedWarnings[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,f):!0}};function assertOptions(e,t,n){if(typeof e!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const f=e[o],u=f===void 0||i(f,o,e);if(u!==!0)throw new AxiosError("option "+o+" must be "+u,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new AxiosError("Unknown option "+o,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(t){this.defaults=t,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=mergeConfig(this.defaults,n);const{transitional:r,paramsSerializer:s}=n;r!==void 0&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),s!==void 0&&validator.assertOptions(s,{encode:validators.function,serialize:validators.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();const o=n.headers&&utils.merge(n.headers.common,n.headers[n.method]);o&&utils.forEach(["delete","get","head","post","put","patch","common"],function(a){delete n.headers[a]}),n.headers=new AxiosHeaders(n.headers,o);const i=[];let f=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(n)===!1||(f=f&&a.synchronous,i.unshift(a.fulfilled,a.rejected))});const u=[];this.interceptors.response.forEach(function(a){u.push(a.fulfilled,a.rejected)});let l,d=0,g;if(!f){const b=[dispatchRequest.bind(this),void 0];for(b.unshift.apply(b,i),b.push.apply(b,u),g=b.length,l=Promise.resolve(n);d<g;)l=l.then(b[d++],b[d++]);return l}g=i.length;let E=n;for(d=0;d<g;){const b=i[d++],a=i[d++];try{E=b(E)}catch(p){a.call(this,p);break}}try{l=dispatchRequest.call(this,E)}catch(b){return Promise.reject(b)}for(d=0,g=u.length;d<g;)l=l.then(u[d++],u[d++]);return l}getUri(t){t=mergeConfig(this.defaults,t);const n=buildFullPath(t.baseURL,t.url);return buildURL(n,t.params,t.paramsSerializer)}}utils.forEach(["delete","get","head","options"],function e(t){Axios.prototype[t]=function(n,r){return this.request(mergeConfig(r||{},{method:t,url:n,data:(r||{}).data}))}}),utils.forEach(["post","put","patch"],function e(t){function n(r){return function(o,i,f){return this.request(mergeConfig(f||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Axios.prototype[t]=n(),Axios.prototype[t+"Form"]=n(!0)});class CancelToken{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(f=>{r.subscribe(f),o=f}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,f){r.reason||(r.reason=new CanceledError(o,i,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new CancelToken(function(s){t=s}),cancel:t}}}function spread(e){return function(n){return e.apply(null,n)}}function isAxiosError(e){return utils.isObject(e)&&e.isAxiosError===!0}function createInstance(e){const t=new Axios(e),n=bind(Axios.prototype.request,t);return utils.extend(n,Axios.prototype,t,{allOwnKeys:!0}),utils.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return createInstance(mergeConfig(e,s))},n}const axios=createInstance(defaults);axios.Axios=Axios,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function e(t){return Promise.all(t)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.formToJSON=e=>formDataToJSON(utils.isHTMLForm(e)?new FormData(e):e);var nprogress={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
3
|
-
* @license MIT */(function(e,t){(function(n,r){e.exports=r()})(commonjsGlobal,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(a){var p,y;for(p in a)y=a[p],y!==void 0&&a.hasOwnProperty(p)&&(r[p]=y);return this},n.status=null,n.set=function(a){var p=n.isStarted();a=s(a,r.minimum,1),n.status=a===1?null:a;var y=n.render(!p),w=y.querySelector(r.barSelector),R=r.speed,x=r.easing;return y.offsetWidth,f(function(O){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),u(w,i(a,R,x)),a===1?(u(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){u(y,{transition:"all "+R+"ms linear",opacity:0}),setTimeout(function(){n.remove(),O()},R)},R)):setTimeout(O,R)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var a=function(){setTimeout(function(){!n.status||(n.trickle(),a())},r.trickleSpeed)};return r.trickle&&a(),this},n.done=function(a){return!a&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(a){var p=n.status;return p?(typeof a!="number"&&(a=(1-p)*s(Math.random()*p,.1,.95)),p=s(p+a,0,.994),n.set(p)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var a=0,p=0;n.promise=function(y){return!y||y.state()==="resolved"?this:(p===0&&n.start(),a++,p++,y.always(function(){p--,p===0?(a=0,n.done()):n.set((a-p)/a)}),this)}}(),n.render=function(a){if(n.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var p=document.createElement("div");p.id="nprogress",p.innerHTML=r.template;var y=p.querySelector(r.barSelector),w=a?"-100":o(n.status||0),R=document.querySelector(r.parent),x;return u(y,{transition:"all 0 linear",transform:"translate3d("+w+"%,0,0)"}),r.showSpinner||(x=p.querySelector(r.spinnerSelector),x&&b(x)),R!=document.body&&d(R,"nprogress-custom-parent"),R.appendChild(p),p},n.remove=function(){g(document.documentElement,"nprogress-busy"),g(document.querySelector(r.parent),"nprogress-custom-parent");var a=document.getElementById("nprogress");a&&b(a)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var a=document.body.style,p="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return p+"Perspective"in a?"translate3d":p+"Transform"in a?"translate":"margin"};function s(a,p,y){return a<p?p:a>y?y:a}function o(a){return(-1+a)*100}function i(a,p,y){var w;return r.positionUsing==="translate3d"?w={transform:"translate3d("+o(a)+"%,0,0)"}:r.positionUsing==="translate"?w={transform:"translate("+o(a)+"%,0)"}:w={"margin-left":o(a)+"%"},w.transition="all "+p+"ms "+y,w}var f=function(){var a=[];function p(){var y=a.shift();y&&y(p)}return function(y){a.push(y),a.length==1&&p()}}(),u=function(){var a=["Webkit","O","Moz","ms"],p={};function y(O){return O.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(c,m){return m.toUpperCase()})}function w(O){var c=document.body.style;if(O in c)return O;for(var m=a.length,v=O.charAt(0).toUpperCase()+O.slice(1),h;m--;)if(h=a[m]+v,h in c)return h;return O}function R(O){return O=y(O),p[O]||(p[O]=w(O))}function x(O,c,m){c=R(c),O.style[c]=m}return function(O,c){var m=arguments,v,h;if(m.length==2)for(v in c)h=c[v],h!==void 0&&c.hasOwnProperty(v)&&x(O,v,h);else x(O,m[1],m[2])}}();function l(a,p){var y=typeof a=="string"?a:E(a);return y.indexOf(" "+p+" ")>=0}function d(a,p){var y=E(a),w=y+p;l(y,p)||(a.className=w.substring(1))}function g(a,p){var y=E(a),w;!l(a,p)||(w=y.replace(" "+p+" "," "),a.className=w.substring(1,w.length-1))}function E(a){return(" "+(a.className||"")+" ").replace(/\s+/gi," ")}function b(a){a&&a.parentNode&&a.parentNode.removeChild(a)}return n})})(nprogress);const NProgress=nprogress.exports;NProgress.configure({easing:"ease",speed:500,showSpinner:!1,trickleSpeed:200,minimum:.3});const kTOKENKEY="authorized-token",defaultConfig={timeout:18e4,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}},A=class{constructor(){N(this,"router");N(this,"baseUrl",null);this.httpInterceptorsRequest(),this.httpInterceptorsResponse()}setRouter(t){this.router=t}setBaseUrl(t){this.baseUrl=t}static retryOriginalRequest(t){return new Promise(n=>{A.requests.push(r=>{t.headers.Authorization="Bearer "+r,n(t)})})}httpInterceptorsRequest(){A.axiosInstance.interceptors.request.use(t=>(NProgress.start(),typeof t.beforeRequestCallback=="function"?(t.beforeRequestCallback(t),t):A.initConfig.beforeRequestCallback?(A.initConfig.beforeRequestCallback(t),t):["/refreshToken","/login"].some(r=>t.url.indexOf(r)>-1)?t:new Promise(r=>{const s=cookies$1.get(kTOKENKEY);if(s){const o=JSON.parse(s),i=new Date().getTime();if(o.expires-i<=0){debugger;A.isRefreshing||(A.isRefreshing=!0,this.get(this.baseUrl+"/uath/refreshToken",{refreshToken:o.refreshToken}).then(u=>{this.setToken(u),t.headers.Authorization="Bearer "+u.access_token,A.requests.forEach(l=>l(u.access_token)),A.requests=[]}).finally(()=>{A.isRefreshing=!1})),r(A.retryOriginalRequest(t))}else t.headers.Authorization="Bearer "+o.accessToken,r(t)}else{const o=cookies$1.get("kCookies_token");o&&(t.headers["X-Token"]=o),r(t)}})),t=>Promise.reject(t))}setToken(t){const{access_token:n,expires_in:r,refresh_token:s}=t,o={accessToken:n,refreshToken:s,expires:Date.now()+r*1e3};cookies$1.set(kTOKENKEY,JSON.stringify(o))}httpInterceptorsResponse(){A.axiosInstance.interceptors.response.use(n=>{const r=n.config;return NProgress.done(),typeof r.beforeResponseCallback=="function"?(r.beforeResponseCallback(n),n.data):(A.initConfig.beforeResponseCallback&&A.initConfig.beforeResponseCallback(n),n.data)},n=>{const r=n;return r.isCancelRequest=axios.isCancel(r),NProgress.done(),Promise.reject(r)})}transformConfigByMethod(t,n){const{method:r}=n,s=["get"],o=r.toLocaleLowerCase(),i=s.includes(o)?"params":"data";return{...n,[i]:t}}request(t,n,r,s){const o=this.transformConfigByMethod(r,{method:t,url:n,...s});return new Promise((i,f)=>{A.axiosInstance.request(o).then(u=>{var l;if(u&&(u==null?void 0:u.code)==="0")i(u.data);else if(u.code==="500")errorMessage(u.msg),f(u.msg);else if(u)i(u);else{const d=(u==null?void 0:u.msg)||"\u670D\u52A1\u5F02\u5E38";errorMessage(d);const g=u.code;(g==="000001"||g==="-1"&&d.includes("\u8BF7\u91CD\u65B0\u767B\u9646"))&&(cookies$1.remove("kCookies_token"),(l=this.router)==null||l.push({path:"/login",query:{tokenExpire:"Y"}})),f(d)}}).catch(u=>{u!=null&&u.code&&errorMessage(u==null?void 0:u.message),f(u)})})}post(t,n,r){return this.request("post",t,n,r)}delete(t,n,r){return this.request("delete",t,n,r)}put(t,n,r){return this.request("put",t,n,r)}get(t,n,r){for(const s in n)n[s]||delete n[s];return this.request("get",t,n,r)}postRouter(t){return this.request("post","route/service",t)}};let SuHttp=A;N(SuHttp,"requests",[]),N(SuHttp,"isRefreshing",!1),N(SuHttp,"initConfig",{}),N(SuHttp,"axiosInstance",axios.create(defaultConfig));const http=new SuHttp,withInstall=e=>{const t=e;return t.install=n=>{n.component(t.name,e)},e};function sleep(e=64){return new Promise(t=>{const n=setTimeout(()=>{window.clearTimeout(n),t(e)},e)})}const delay=e=>new Promise(t=>setTimeout(t,e)),useDark=()=>({isDark:vue.ref(document.documentElement.classList.contains("dark"))}),useDebounce=(e,t)=>{let n;return()=>{n&&clearTimeout(n),n=setTimeout(e,t)}};function isUrl(e){return/(((^http(s)?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/.test(e)}exports.NProgress=NProgress,exports.VxetableRender=VxetableRender,exports.addClass=addClass,exports.addResizeListener=addResizeListener,exports.appendFieldByUniqueId=appendFieldByUniqueId,exports.buildHierarchyTree=buildHierarchyTree,exports.buildShortUUID=buildShortUUID,exports.buildUUID=buildUUID,exports.cookies=cookies$1,exports.delay=delay,exports.deleteTreeChildren=deleteTreeChildren,exports.deviceDetection=deviceDetection,exports.errorMessage=errorMessage,exports.extractPathList=extractPathList,exports.formatGridItems=formatGridItems,exports.formatItems=formatItems,exports.formatRules=formatRules,exports.getBrowserInfo=getBrowserInfo,exports.getNodeByUniqueId=getNodeByUniqueId,exports.hasClass=hasClass,exports.http=http,exports.i18nColums=i18nColums,exports.isUrl=isUrl,exports.openLink=openLink,exports.removeClass=removeClass,exports.removeResizeListener=removeResizeListener,exports.showMessage=showMessage,exports.sleep=sleep,exports.storageLocal=storageLocal,exports.storageSession=storageSession,exports.successMessage=successMessage,exports.toggleClass=toggleClass,exports.useAttrs=useAttrs,exports.useDark=useDark,exports.useDebounce=useDebounce,exports.useGlobal=useGlobal,exports.useRender=useRender,exports.useWatermark=useWatermark,exports.warnMessage=warnMessage,exports.withInstall=withInstall,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(S,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("xe-utils"),require("vxe-table")):typeof define=="function"&&define.amd?define(["exports","vue","xe-utils","vxe-table"],e):(S=typeof globalThis<"u"?globalThis:S||self,e(S["@utogether/utils"]={},S.vue,S.xeUtils,S.VXETable))})(this,function(exports,vue,xeUtils,VXETable){"use strict";var I=Object.defineProperty;var L=(S,e,t)=>e in S?I(S,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):S[e]=t;var F=(S,e,t)=>(L(S,typeof e!="symbol"?e+"":e,t),t);const _interopDefaultLegacy=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},VXETable__default=_interopDefaultLegacy(VXETable);function _isSlot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vue.isVNode(e)}const VxetableRender=(VXETable,{serviceApi,dict,i18n})=>{VXETable.renderer.add("#SuSelect",{renderEdit(e,t){let n;const{row:r,column:s}=t,{options:o,props:i,optionProps:l={},events:c}=e,{label:u="label",value:f="value",extLabel:h}=l,{code:v,url:g,fetchField:a,extParam:b={},loading:y=!1,multiple:w,defaultValue:C}=i;C&&Object.keys(C).forEach(x=>{r[x]=r[x]||C[x]}),w&&r[s.field]&&!xeUtils.isArray(r[s.field])&&r[s.field].split(",").forEach(p=>{!o.some(R=>R[u]===p)&&o.push({[f]:p,[u]:p})});async function O(p){const x=Object.assign({},{pageSize:20,pageNum:1},b,{[a||u]:p});let R;try{o.length=0,i.loading=!0,g?R=await serviceApi.get(g,x):R=await serviceApi(v,x),R&&(R.list?o.push(...R.list):o.push(...R))}finally{i.loading=!1}}function A(p){const{fieldMap:x={}}=i;let R;if(w&&p.length)p.forEach(_=>{R=o.find(D=>_===D[f]);const T=Object.keys(x);if(T.length){const D=Object.values(x);T.forEach((N,P)=>{const k=r[N]?r[N].toString():"";r[N]=k&&!k.includes(R[D[P]])?`${k},${R[D[P]]}`:R[D[P]]})}});else if(p.length){R=o.find(T=>p===T[f]);const _=Object.keys(x);if(_.length){const T=Object.values(x);_.forEach((D,N)=>{r[D]=R[T[N]]})}}c!=null&&c.change&&c.change(t,p,R,s.field)}function d(p){c!=null&&c.input&&c.input(t,p)}function m(){c!=null&&c.clear&&c.clear({row:r,field:s.field})}function E(){!o.length&&O(""),c!=null&&c.focus&&c.focus(t,s.field)}return[vue.createVNode(vue.resolveComponent("el-select"),vue.mergeProps({modelValue:r[s.field],"onUpdate:modelValue":p=>r[s.field]=p},i,{filterable:!0,remote:!0,clearable:!0,size:"small",placeholder:"\u8BF7\u5F55\u5165\u5173\u952E\u5B57\u641C\u7D22",style:"width: 100%","remote-method":O,loading:y,onFocus:()=>E(),onChange:p=>A(p),onClear:()=>m(),onInput:p=>d(p)}),_isSlot(n=o.map(p=>vue.createVNode(vue.resolveComponent("el-option"),{key:p[f],label:p[u],value:p[f]},{default:()=>[vue.createVNode("span",{style:"float: left"},[p[h]?`${p[f]}-${p[h]}`:p[f]]),f!==u&&!p[h]?vue.createVNode("span",{class:"su-coSelect-option"},[p[u]]):null]})))?n:{default:()=>[n]})]},renderCell(renderOpts,params){const{row,column}=params,{props}=renderOpts,{textValue,multiple}=props;let val=row[column.field];return textValue&&(val=eval(`row.${textValue}`)||row[column.field]),val&&multiple&&xeUtils.isArray(val)&&(val=val&&val.join(",")),[vue.createVNode("span",null,[val])]},renderItemContent(e,t){let n;const{data:r,property:s}=t,{options:o,props:i,optionProps:l={},events:c}=e,{label:u="label",value:f="value",extLabel:h}=l,{code:v,url:g,fetchField:a,extParam:b={},loading:y=!1}=i;async function w(m){const E=Object.assign({},{pageSize:20,pageNum:1},b,{[a]:m});let p;try{o.length=0,i.loading=!0,g?p=await serviceApi.get(g,E):p=await serviceApi(v,E),p!=null&&p.list?o.push(...p.list):p&&o.push(...p)}finally{i.loading=!1}}function C(m){const{fieldMap:E={}}=i;let p;if(multiple&&m.length)m.forEach(x=>{p=o.find(_=>x===_[f]);const R=Object.keys(E);if(R.length){const _=Object.values(E);R.forEach((T,D)=>{const N=r[T]?r[T].toString():"";r[T]=N&&!N.includes(p[_[D]])?`${N},${p[_[D]]}`:p[_[D]]})}});else if(m.length){p=o.find(R=>m===R[f]);const x=Object.keys(E);if(x.length){const R=Object.values(E);x.forEach((_,T)=>{r[_]=p[R[T]]})}}c!=null&&c.change&&c.change(m,p,r,s)}function O(m){c!=null&&c.input&&c.input(t,m)}function A(){c!=null&&c.clear&&c.clear({data:r,field:s})}function d(){!o.length&&w(""),c!=null&&c.focus&&c.focus(t)}return[vue.createVNode(vue.resolveComponent("el-select"),vue.mergeProps({modelValue:r[s],"onUpdate:modelValue":m=>r[s]=m},i,{filterable:!0,remote:!0,clearable:!0,size:"small",style:"width: 100%",placeholder:"\u8BF7\u5F55\u5165\u5173\u952E\u5B57\u641C\u7D22","remote-method":w,loading:y,onFocus:()=>d(),onChange:m=>C(m),onClear:()=>A(),onInput:()=>O()}),_isSlot(n=o.map(m=>vue.createVNode(vue.resolveComponent("el-option"),{key:m[f],label:m[u],value:m[f]},{default:()=>[vue.createVNode("span",{style:"float: left"},[m[h]?`${m[f]}-${m[h]}`:m[f]]),f!==u&&!m[h]?vue.createVNode("span",{class:"su-coSelect-option"},[m[u]]):null]})))?n:{default:()=>[n]})]}}),VXETable.renderer.add("#SuDateRange",{renderItemContent(e,t){const{data:n,property:r}=t,{props:s}=e;return[vue.createVNode(vue.resolveComponent("el-date-picker"),{modelValue:n[r],"onUpdate:modelValue":o=>n[r]=o,type:(s==null?void 0:s.type)||"daterange",size:"small",style:"width: 100%","range-separator":i18n("message.to",!0),"start-placeholder":i18n("message.startDate",!0),"end-placeholder":i18n("message.endDate",!0)},null)]}}),VXETable.renderer.add("#select",{renderEdit(e,t){let n;const{row:r,column:s}=t,{options:o,props:i,optionProps:l={},events:c}=e,{label:u="label",value:f="value",extLabel:h}=l;i.multiple&&r[s.field]&&!xeUtils.isArray(r[s.field])&&r[s.field].split(",").forEach(a=>{!o.some(y=>y[u]===a)&&o.push({[f]:a,[u]:a})});function v(a){const b=a&&o.find(y=>a===y[f]);c!=null&&c.change&&c.change(t,a,b,s.field)}function g(){c!=null&&c.clear&&c.clear({row:r,field:s.field})}return[vue.createVNode(vue.resolveComponent("el-select"),vue.mergeProps({modelValue:r[s.field],"onUpdate:modelValue":a=>r[s.field]=a,filterable:!0,clearable:!0},i,{size:"small",style:"width: 100%",onChange:a=>v(a),onClear:()=>g()}),_isSlot(n=o.map(a=>vue.createVNode(vue.resolveComponent("el-option"),{key:a[f],label:a[h]?a[f]:a[u],value:a[f]},{default:()=>[vue.createVNode("span",{style:"float: left"},[h&&a[h]?`${a[f]}-${a[h]}`:a[f]]),f!==u&&!a[h]?vue.createVNode("span",{class:"su-coSelect-option"},[a[u]]):null]})))?n:{default:()=>[n]})]},renderCell(renderOpts,params){const{row,column}=params,{props,options,optionProps}=renderOpts,{label="label",value="value",extLabel}=optionProps,{textValue}=props;let val=row[column.field];const item=options.find(e=>e[value]===val);return textValue&&(val=eval(`row.${textValue}`)||row[column.field]),item&&(val=extLabel?item[value]:item[label]),val&&(props==null?void 0:props.multiple)&&xeUtils.isArray(val)&&(val=val&&val.join(",")),[vue.createVNode("span",null,[val])]},renderItemContent(e,t){let n;const{data:r,property:s}=t,{options:o,props:i,optionProps:l={},events:c}=e,{label:u="label",value:f="value"}=l,{defaultValues:h}=i;h&&(r[s]=h);function v(a){const{fieldMap:b={}}=i,y=o.find(O=>a===O[f]),w=Object.keys(b);if(w.length){const O=Object.values(b);w.forEach((A,d)=>{r[A]=a?y[O[d]]:null})}const C={item:y,row:r,property:s};c!=null&&c.change&&c.change(C)}function g(){c!=null&&c.clear&&c.clear({data:r,field:s})}return[vue.createVNode(vue.resolveComponent("el-select"),vue.mergeProps({modelValue:r[s],"onUpdate:modelValue":a=>r[s]=a},i,{filterable:!0,clearable:!0,size:"small",style:"width: 100%",onChange:a=>v(a),onClear:()=>g()}),_isSlot(n=o.map(a=>vue.createVNode(vue.resolveComponent("el-option"),{key:a[f],label:a[u],value:a[f]},{default:()=>[vue.createVNode("span",{style:"float: left"},[a[u]]),vue.createVNode("span",{class:"su-coSelect-option"},[a[f]])]})))?n:{default:()=>[n]})]}}),VXETable.renderer.add("#lov",{renderItemContent(e,t){const{data:n,property:r}=t,{props:s,events:o}=e,{defaultValues:i,mapField:l}=s;i&&(n[r]=i);function c(f,h){const{mapField:v,field:g,displayName:a,isMulti:b}=s;if(b){if(b){const w={};n[a||g]=f.reduce((C,O)=>{for(const A in v)w[A]=C?w[A]+","+O[v[A]]:O[v[A]];return C=C?C+","+O[a||g]:O[a||g],C},""),Object.assign(n,w)}}else{const w={[a||g]:f[h||a||g]};for(const C in v)w[C]=f[v[C]];Object.assign(n,w)}const y={row:n,property:r,item:f};o!=null&&o.change&&o.change(y)}function u(){if(n[r]=null,!xeUtils.isEmpty(l))for(const f in l)n[f]=null;o!=null&&o.clear&&o.clear({data:n,field:r})}return[vue.createVNode(vue.resolveComponent("su-lov"),vue.mergeProps({record:n},s,{mode:"vxe",onChange:(f,h)=>c(f,h),onClear:()=>u()}),null)]},renderEdit(e,t){const{row:n,column:r}=t,{props:s,events:o}=e;function i(c,u){const{mapField:f,field:h,displayName:v,isMulti:g}=s;if(!g){const a={[v||h]:c[u||v||h]};for(const b in f)a[b]=c[f[b]];Object.assign(n,a)}o!=null&&o.change&&o.change(t,c,n[r.field])}function l(){const{mapField:c,field:u}=s;if(n[r.field]=null,!xeUtils.isEmpty(c))for(const f in c)n[f]=null;o!=null&&o.clear&&o.clear({row:n,field:u})}return[vue.createVNode(vue.resolveComponent("su-lov"),vue.mergeProps({record:n},s,{mode:"ele",onChange:(c,u)=>i(c,u),onClear:()=>l()}),null)]},renderDefault(e,t){const{row:n,column:r}=t,{props:s,events:o}=e;function i(c,u){const{mapField:f,field:h,displayName:v,isMulti:g}=s;if(!g){const a={[v||h]:c[u||v||h]};for(const b in f)a[b]=c[f[b]];Object.assign(n,a)}o!=null&&o.change&&o.change(t,c,n[r.field])}function l(){const{mapField:c,field:u}=s;if(n[r.field]=null,!xeUtils.isEmpty(c))for(const f in c)n[f]=null;o!=null&&o.clear&&o.clear({row:n,field:u})}return[vue.createVNode(vue.resolveComponent("su-lov"),vue.mergeProps({record:n},s,{mode:"ele",onChange:(c,u)=>i(c,u),onClear:()=>l()}),null)]},renderCell(e,t){const{row:n,column:r}=t,s=n[r.field];return[vue.createVNode("span",null,[s])]}}),VXETable.renderer.add("#upload",{renderItemContent(e,t){const{data:n,field:r}=t,{props:s,events:o}=e;function i(){n[property]="",o!=null&&o.clear&&o.clear({data:n,field:property})}return[vue.createVNode(vue.resolveComponent("form-upload"),vue.mergeProps({record:n,field:r},s,{onClear:()=>i()}),null)]}}),VXETable.renderer.add("#tag",{renderDefault(e,t){let n;const{row:r,column:s}=t,{props:{code:o,tagMap:i}}=e;function l(){return r[s.field]?i[r[s.field]]:null}return[r[s.field]?vue.createVNode(vue.resolveComponent("el-tag"),{effect:"dark",type:l()},_isSlot(n=getValue(o,r[s.field]))?n:{default:()=>[n]}):null]}}),VXETable.renderer.add("#switch",{renderDefault(e,t){const{row:n,column:r}=t,{props:{code:s,activeValue:o,inactiveValue:i},events:l}=e;function c(u){const f={row:n,column:r,value:u};l!=null&&l.change&&l.change(f)}return[n[r.field]?vue.createVNode(vue.resolveComponent("el-switch"),vue.mergeProps({modelValue:n[r.field],"onUpdate:modelValue":u=>n[r.field]=u,"inline-prompt":!0,size:"large",style:"--el-switch-on-color: #13ce66; --el-switch-off-color: #E6A23C"},e.props,{"active-text":getValue(s,o),"inactive-text":getValue(s,i),onChange:u=>c(u)}),null):null]}});function getValue(e,t){var n,r,s;return!t||!e||!dict?t:(s=(r=(n=dict[e])==null?void 0:n.children)==null?void 0:r.find(o=>o.dictCode===t))==null?void 0:s.dictName}return VXETable},hasClass=(e,t)=>{var n;return!!((n=e.className)!=null&&n.match(new RegExp("(\\s|^)"+t+"(\\s|$)")))},addClass=(e,t,n)=>{hasClass(e,t)||(e.className+=" "+t),n&&(hasClass(e,n)||(e.className+=" "+n))},removeClass=(e,t,n)=>{var r,s;if(hasClass(e,t)){const o=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=(r=e.className)==null?void 0:r.replace(o," ").trim()}if(n&&hasClass(e,n)){const o=new RegExp("(\\s|^)"+n+"(\\s|$)");e.className=(s=e.className)==null?void 0:s.replace(o," ").trim()}},toggleClass=(e,t,n)=>{const r=n||document.body;let{className:s}=r;s=s==null?void 0:s.replace(t,""),r.className=s&&e?`${s} ${t} `:s};function useRafThrottle(e){let t=!1;return function(...n){t||(t=!0,window.requestAnimationFrame(()=>{e.apply(this,n),t=!1}))}}const openLink=e=>{const t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("target","_blank"),t.setAttribute("rel","noreferrer noopener"),t.setAttribute("id","external"),document.getElementById("external")&&document.body.removeChild(document.getElementById("external")),document.body.appendChild(t),t.click(),t.remove()};var MapShim=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(s,o){return s[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),s=this.__entries__[r];return s&&s[1]},t.prototype.set=function(n,r){var s=e(this.__entries__,n);~s?this.__entries__[s][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,s=e(r,n);~s&&r.splice(s,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var s=0,o=this.__entries__;s<o.length;s++){var i=o[s];n.call(r,i[1],i[0])}},t}()}(),isBrowser=typeof window<"u"&&typeof document<"u"&&window.document===document,global$1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),requestAnimationFrame$1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(global$1):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),trailingTimeout=2;function throttle(e,t){var n=!1,r=!1,s=0;function o(){n&&(n=!1,e()),r&&l()}function i(){requestAnimationFrame$1(o)}function l(){var c=Date.now();if(n){if(c-s<trailingTimeout)return;r=!0}else n=!0,r=!1,setTimeout(i,t);s=c}return l}var REFRESH_DELAY=20,transitionKeys=["top","right","bottom","left","width","height","size","weight"],mutationObserverSupported=typeof MutationObserver<"u",ResizeObserverController=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=throttle(this.refresh.bind(this),REFRESH_DELAY)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!isBrowser||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mutationObserverSupported?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!isBrowser||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,s=transitionKeys.some(function(o){return!!~r.indexOf(o)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),defineConfigurable=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var s=r[n];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e},getWindowOf=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||global$1},emptyRect=createRectInit(0,0,0,0);function toFloat(e){return parseFloat(e)||0}function getBordersSize(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,s){var o=e["border-"+s+"-width"];return r+toFloat(o)},0)}function getPaddings(e){for(var t=["top","right","bottom","left"],n={},r=0,s=t;r<s.length;r++){var o=s[r],i=e["padding-"+o];n[o]=toFloat(i)}return n}function getSVGContentRect(e){var t=e.getBBox();return createRectInit(0,0,t.width,t.height)}function getHTMLElementContentRect(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return emptyRect;var r=getWindowOf(e).getComputedStyle(e),s=getPaddings(r),o=s.left+s.right,i=s.top+s.bottom,l=toFloat(r.width),c=toFloat(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+o)!==t&&(l-=getBordersSize(r,"left","right")+o),Math.round(c+i)!==n&&(c-=getBordersSize(r,"top","bottom")+i)),!isDocumentElement(e)){var u=Math.round(l+o)-t,f=Math.round(c+i)-n;Math.abs(u)!==1&&(l-=u),Math.abs(f)!==1&&(c-=f)}return createRectInit(s.left,s.top,l,c)}var isSVGGraphicsElement=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof getWindowOf(e).SVGGraphicsElement}:function(e){return e instanceof getWindowOf(e).SVGElement&&typeof e.getBBox=="function"}}();function isDocumentElement(e){return e===getWindowOf(e).document.documentElement}function getContentRect(e){return isBrowser?isSVGGraphicsElement(e)?getSVGContentRect(e):getHTMLElementContentRect(e):emptyRect}function createReadOnlyRect(e){var t=e.x,n=e.y,r=e.width,s=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype);return defineConfigurable(i,{x:t,y:n,width:r,height:s,top:n,right:t+r,bottom:s+n,left:t}),i}function createRectInit(e,t,n,r){return{x:e,y:t,width:n,height:r}}var ResizeObservation=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=createRectInit(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=getContentRect(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),ResizeObserverEntry=function(){function e(t,n){var r=createReadOnlyRect(n);defineConfigurable(this,{target:t,contentRect:r})}return e}(),ResizeObserverSPI=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new MapShim,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof getWindowOf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new ResizeObservation(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof getWindowOf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;!n.has(t)||(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(!!this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new ResizeObserverEntry(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),observers=typeof WeakMap<"u"?new WeakMap:new MapShim,ResizeObserver=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ResizeObserverController.getInstance(),r=new ResizeObserverSPI(t,n,this);observers.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ResizeObserver.prototype[e]=function(){var t;return(t=observers.get(this))[e].apply(t,arguments)}});var index=function(){return typeof global$1.ResizeObserver<"u"?global$1.ResizeObserver:ResizeObserver}();const isServer=typeof window>"u",resizeHandler=e=>{for(const t of e){const n=t.target.__resizeListeners__||[];n.length&&n.forEach(r=>{r()})}},addResizeListener=(e,t)=>{isServer||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new index(resizeHandler),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},removeResizeListener=(e,t)=>{!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())},domSymbol=Symbol("watermark-dom");function useWatermark(e=vue.ref(document.body)){const t=useRafThrottle(function(){const u=vue.unref(e);if(!u)return;const{clientHeight:f,clientWidth:h}=u;i({height:f,width:h})}),n=domSymbol.toString(),r=vue.shallowRef(),s=()=>{const u=vue.unref(r);r.value=void 0;const f=vue.unref(e);!f||(u&&f.removeChild(u),removeResizeListener(f,t))};function o(u,f){var b,y;const h=document.createElement("canvas"),v=260,g=180;Object.assign(h,{width:v,height:g});const a=h.getContext("2d");return a&&(a.rotate(-20*Math.PI/120),a.font=(b=f==null?void 0:f.font)!=null?b:"15px Reggae One",a.fillStyle=(y=f==null?void 0:f.fillStyle)!=null?y:"rgba(180, 180, 180, 0.75)",a.textAlign="left",a.textBaseline="middle",a.fillText(u,v/20,g)),h.toDataURL("image/png")}function i(u={}){const f=vue.unref(r);!f||(xeUtils.isUndefined(u.width)||(f.style.width=`${u.width}px`),xeUtils.isUndefined(u.height)||(f.style.height=`${u.height}px`),xeUtils.isUndefined(u.str)||(f.style.background=`url(${o(u.str,u.attr)}) left top repeat`))}const l=(u,f)=>{if(vue.unref(r))return i({str:u,attr:f}),n;const h=document.createElement("div");r.value=h,h.id=n,h.style.pointerEvents="none",h.style.top="0px",h.style.left="0px",h.style.position="absolute",h.style.zIndex="100000";const v=vue.unref(e);if(!v)return n;const{clientHeight:g,clientWidth:a}=v;return i({str:u,width:a,height:g,attr:f}),v.appendChild(h),n};function c(u,f){l(u,f),addResizeListener(document.documentElement,t),vue.getCurrentInstance()&&vue.onBeforeUnmount(()=>{s()})}return{setWatermark:c,clear:s}}const DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]/;function entries(e){return Object.keys(e).map(t=>[t,e[t]])}function useAttrs(e={}){const t=vue.getCurrentInstance();if(!t)return{};const{excludeListeners:n=!1,excludeKeys:r=[]}=e,s=vue.shallowRef({}),o=r.concat(DEFAULT_EXCLUDE_KEYS);return t.attrs=vue.reactive(t.attrs),vue.watchEffect(()=>{const i=entries(t.attrs).reduce((l,[c,u])=>(!o.includes(c)&&!(n&&LISTENER_PREFIX.test(c))&&(l[c]=u),l),{});s.value=i}),s}class sessionStorageProxy{constructor(t){F(this,"storage");F(this,"prefix");F(this,"addPrefix",t=>{this.prefix=t});this.storage=t}setItem(t,n){this.storage.setItem(this.getKey(t),JSON.stringify(n))}getItem(t){return JSON.parse(this.storage.getItem(this.getKey(t)))}removeItem(t){this.storage.removeItem(this.getKey(t))}getKey(t){return this.prefix?this.prefix+"_"+t:t}clear(){this.storage.clear()}}class localStorageProxy extends sessionStorageProxy{constructor(t){super(t)}}const storageSession=new sessionStorageProxy(sessionStorage),storageLocal=new localStorageProxy(localStorage),useRender=()=>{const e={value:"dictCode",label:"dictName"},t=(d,m)=>{var D;const E=O(m);let p={clearable:!0,disabled:!1},x,R;xeUtils.isObject(d)?(p=Object.assign(p,d),x=d.defaultValue,R=d==null?void 0:d.code):R=d;const _=(D=storageLocal.getItem("kLov")[R])==null?void 0:D.children,T=_?_.filter(N=>N.enabled==="1"):[];return{name:"#select",optionProps:e,options:T,props:p,defaultValue:x,events:E}},n=(d,m)=>{const E=O(m);return{name:"#SuSelect",optionProps:d.optionProps,props:d.props,options:d.options||[],events:E}},r=(d,m)=>{const E={optionProps:{extLabel:"userName",value:"employeeName"},props:{attrs:{disabled:d==null?void 0:d.disabled},disabled:d==null?void 0:d.disabled,defaultValue:d==null?void 0:d.defaultValue,fieldMap:d==null?void 0:d.fieldMap,code:"SYS037",url:"/uums/employee/listEmployeeIsUser",fetchField:"employeeName"}};return n(E,m)},s=d=>{const m={optionProps:{extLabel:"userName",value:"name"},props:{code:"sys/listUsers",url:"/uums/user",fetchField:"name",fieldMap:d==null?void 0:d.fieldMap}};return n(m)},o=(d,m)=>{const E={label:"organizationName",value:(d==null?void 0:d.field)||"organizationName"},p={fieldMap:{},extParam:d==null?void 0:d.extParam,url:"/uums/cusOrganization",fetchField:"organizationName"},x={organizationId:"id",organizationCode:"organizationCode"};return Object.assign(p.fieldMap,x,(d==null?void 0:d.fieldMap)||{}),{name:"#SuSelect",props:p,optionProps:E,options:[],methods:m}},i=(d,m)=>{const E={label:"orgName",value:(d==null?void 0:d.field)||"orgName"},p={fieldMap:{},extParam:d==null?void 0:d.extParam,url:"/uums/org",fetchField:"orgName"},x={orgId:"id",orgCode:"orgCode"};return Object.assign(p.fieldMap,x,(d==null?void 0:d.fieldMap)||{}),{name:"#SuSelect",props:p,optionProps:E,options:[],methods:m}},l=(d,m)=>{const E=Object.assign({disabled:!1},d),p=E==null?void 0:E.defaultValue;return{name:"$input",props:E,defaultValue:p,events:O(m)}},c=(d,m)=>{const E=Object.assign({disabled:!1,rows:3},d),p=E==null?void 0:E.defaultValue;return{name:"$textarea",props:E,defaultValue:p,events:O(m)}},u=(d,m)=>{const E="$checkbox",{defaultValue:p,options:x,props:R}=h(d);return{name:E,defaultValue:p,options:x,props:R,events:O(m)}},f=(d,m)=>{const E="$radio",{defaultValue:p,options:x,props:R}=h(d);return{name:E,defaultValue:p,options:x,props:R,events:O(m)}},h=d=>{var _;let m={disabled:!1},E;const p=storageLocal.getItem("kLov");let x="";xeUtils.isObject(d)?(E=d.defaultValue,x=d.code,m=Object.assign(m,d||{})):xeUtils.isString(d)&&(x=d);const R=x?(_=p[x])==null?void 0:_.children.map(T=>({label:T.dictName,value:T.dictCode})):[];return{props:m,defaultValue:E,options:R}},v=(d,m)=>{const E=O(m),p=Object.assign({type:"number",clearable:!0,min:0,controls:!1},d||{});return{name:"$input",props:p,events:E}},g=(d,m)=>{const E=O(m),p="yyyy-MM-dd HH:mm:ss",x=d==null?void 0:d.defaultValue,_=Object.assign({type:"date",valueFormat:p,clearable:!0},d||{});return{name:"$input",props:_,defaultValue:x,events:E}},a=(d,m)=>{const E=O(m),p=Object.assign({},d||{});return{name:"#lov",props:p,events:E}},b=(d,m)=>{const E=O(m),p=(d==null?void 0:d.optionProps)||{},x=Object.assign({clearable:!0,disabled:!1},d||{});return{name:"#select",optionProps:p,options:(d==null?void 0:d.options)||[],props:x,events:E}},y=(d,m)=>{let E={openLabel:"\u662F",closeLabel:"\u5426",openValue:"Y",closeValue:"N"},p="Y";xeUtils.isObject(d)&&!xeUtils.isFunction(d)?(E=Object.assign(E,d||{}),p=d.defaultValue||p):!xeUtils.isEmpty(d)&&xeUtils.isString(d)&&(p=d,E=Object.assign(E,{defaultValue:p}));const x=xeUtils.isFunction(d)?O(d):O(m);return{name:"$switch",props:E,defaultValue:p,events:x}},w=(d,m)=>({name:"#tag",props:{code:d,tagMap:m}}),C=d=>y({openLabel:"\u542F\u7528",closeLabel:"\u7981\u7528",openValue:"1",closeValue:"0",defaultValue:"1"},d),O=d=>{let m={};return xeUtils.isObject(d)&&!xeUtils.isFunction(d)?m={change:(d==null?void 0:d.onChange)||A,blur:(d==null?void 0:d.onBlur)||A,focus:(d==null?void 0:d.onFocus)||A,input:(d==null?void 0:d.onInput)||A}:d&&(m={change:d}),m};function A(){}return{renderDict:t,renderSelect:n,renderInput:l,renderTextarea:c,renderCheckBox:u,renderRadio:f,renderUser:r,renderSysUser:s,renderInvOrg:o,renderBU:i,renderNumber:v,renderLov:a,renderSelectLocal:b,renderDate:g,renderSwitch:y,renderCellTag:w,renderEnabled:C}},useGlobal=()=>{const e=vue.getCurrentInstance();if(!e)return{$global:{},$storage:{},$config:{}};const t=e.appContext.app.config.globalProperties,n=t.$storage,r=t.$config,s=t.$serviceApi,o=t.$hasAuthority,i=t.$printPlugin;return{$global:t,$storage:n,$config:r,$serviceApi:s,$hasAuthority:o,$printPlugin:i}},hexList=[];for(let e=0;e<=15;e++)hexList[e]=e.toString(16);function buildUUID(){let e="";for(let t=1;t<=36;t++)t===9||t===14||t===19||t===24?e+="-":t===15?e+=4:t===20?e+=hexList[Math.random()*4|8]:e+=hexList[Math.random()*16|0];return e.replace(/-/g,"")}let unique=0;function buildShortUUID(e=""){const t=Date.now(),n=Math.floor(Math.random()*1e9);return unique++,e+"_"+n+unique+String(t)}const deviceDetection=()=>{const e=navigator.userAgent.toLowerCase(),t=e.match(/iphone os/i)==="iphone os",n=e.match(/midp/i)==="midp",r=e.match(/rv:1.2.3.4/i)==="rv:1.2.3.4",s=e.match(/ucweb/i)==="ucweb",o=e.match(/android/i)==="android",i=e.match(/windows ce/i)==="windows ce",l=e.match(/windows mobile/i)==="windows mobile";return t||n||r||s||o||i||l},getBrowserInfo=()=>{const e=navigator.userAgent.toLowerCase(),t=/(msie|firefox|chrome|opera|version).*?([\d.]+)/,n=e.match(t);return{browser:n[1].replace(/version/,"'safari"),version:n[2]}},showMessage=(e,t,n)=>VXETable__default.default.modal.message({content:e,status:t,iconStatus:n}),successMessage=e=>{var t;return e||(e="\u64CD\u4F5C\u6210\u529F"),(t=VXETable__default.default.modal)==null?void 0:t.message({content:e,status:"success"})},warnMessage=(e,t)=>{var n,r;return t?(n=VXETable__default.default.modal)==null?void 0:n.alert({content:e,status:"warning"}):(r=VXETable__default.default.modal)==null?void 0:r.message({content:e,status:"warning"})},errorMessage=(e,t)=>{var n,r;return e||(e="\u64CD\u4F5C\u5931\u8D25"),t?(n=VXETable__default.default.modal)==null?void 0:n.alert({content:e,status:"error"}):(r=VXETable__default.default.modal)==null?void 0:r.message({content:e,status:"error"})},renderHook=useRender(),i18nColums=e=>e.filter(t=>!t.isHidden).map(t=>(t.type||(t.title=t.title||`message.${t.field}`),t)),formatItems=(e,t,n=24)=>e.length?e.filter(r=>!r.isHidden).map(r=>{var i,l;r.title=r.title||`message.${r.field}`,r.span=r.span||n;const s=r.disabled||((l=(i=r.itemRender)==null?void 0:i.props)==null?void 0:l.disabled)||t==="detail";let o={name:"$input",props:{disabled:s}};return r.code&&!r.itemRender&&(o=renderHook.renderDict(r.code)),r.itemRender=r.itemRender||o,Object.assign(r.itemRender.props||{},{disabled:s}),r}):e,searchBtn={span:6,align:"right",collapseNode:!1,itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"message.SEARCH",status:"primary",icon:"ri-search-line"}},{props:{type:"reset",content:"message.RESET",status:"info",icon:"ri-refresh-line"}}]}},formatGridItems=e=>{const t=e.filter(i=>!i.isHidden),n=t.length,r=n>2&&t.some((i,l)=>l<3&&(i.span>6||getDateRange(i))),s=r||n>3,o=t.map((i,l)=>(i.folding=r?s&&l>1:s&&l>2,i.span=getDateRange(i)?12:i.span||6,i.code&&!i.itemRender&&(i.itemRender=renderHook.renderDict(i.code)),i.itemRender=i.itemRender||{name:"$input"},i.resetValue=i.itemRender.defaultValue,i.title=i.title||`message.${i.field}`,i));if(searchBtn.collapseNode=s,s){const i=r?2:3;o.splice(i,0,searchBtn)}else o.push(searchBtn);return o},getDateRange=e=>{var t,n,r,s,o;return((t=e.itemRender)==null?void 0:t.name)==="#SuDateRange"?((r=(n=e.itemRender)==null?void 0:n.props)==null?void 0:r.type)==="daterange"||!((o=(s=e.itemRender)==null?void 0:s.props)!=null&&o.type):!1},formatRules=(e,t)=>{const n={};return e.forEach(r=>{if(r.required){const{field:s,title:o}=r;n[s]=[{required:!0,message:`${t("message.required")}${t(o||`message.${s}`)}`}]}}),n},expandedPaths=[];function extractPathList(e){if(!Array.isArray(e)){console.warn("menuTree must be an array");return}if(!(!e||e.length===0)){for(const t of e)t.children&&t.children.length>0&&extractPathList(t.children),expandedPaths.push(t.uniqueId);return expandedPaths}}function deleteTreeChildren(e,t=[]){if(!Array.isArray(e)){console.warn("menuTree must be an array");return}if(!(!e||e.length===0)){for(const[n,r]of e.entries())r.children&&r.children.length===1&&delete r.children,r.id=n,r.parentId=t.length?t[t.length-1]:null,r.pathList=[...t,r.id],r.uniqueId=r.pathList.length>1?r.pathList.join("-"):r.pathList[0],r.children&&r.children.length>0&&deleteTreeChildren(r.children,r.pathList);return e}}function buildHierarchyTree(e,t=[]){if(!Array.isArray(e)){console.warn("menuTree must be an array");return}if(!(!e||e.length===0)){for(const[n,r]of e.entries())r.id=n,r.parentId=t.length?t[t.length-1]:null,r.pathList=[...t,r.id],r.children&&r.children.length>0&&buildHierarchyTree(r.children,r.pathList);return e}}function getNodeByUniqueId(e,t){if(!Array.isArray(e)){console.warn("menuTree must be an array");return}if(!e||e.length===0)return;const n=e.find(s=>s.uniqueId===t);if(n)return n;const r=e.filter(s=>s.children).map(s=>s.children).flat(1);return getNodeByUniqueId(r,t)}function appendFieldByUniqueId(e,t,n){if(!Array.isArray(e)){console.warn("menuTree must be an array");return}if(!e||e.length===0)return{};for(const r of e){const s=r.children&&r.children.length>0;r.uniqueId===t&&Object.prototype.toString.call(n)==="[object Object]"&&Object.assign(r,n),s&&appendFieldByUniqueId(r.children,t,n)}return e}/*! typescript-cookie v1.0.4 | MIT */const encodeName=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),encodeValue=e=>encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent),decodeName=decodeURIComponent,decodeValue=e=>(e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent));function stringifyAttributes(e){return e=Object.assign({},e),typeof e.expires=="number"&&(e.expires=new Date(Date.now()+e.expires*864e5)),e.expires!=null&&(e.expires=e.expires.toUTCString()),Object.entries(e).filter(([t,n])=>n!=null&&n!==!1).map(([t,n])=>n===!0?`; ${t}`:`; ${t}=${n.split(";")[0]}`).join("")}function get(e,t,n){const r=/(?:^|; )([^=]*)=([^;]*)/g,s={};let o;for(;(o=r.exec(document.cookie))!=null;)try{const i=n(o[1]);if(s[i]=t(o[2],i),e===i)break}catch{}return e!=null?s[e]:s}const DEFAULT_CODEC=Object.freeze({decodeName,decodeValue,encodeName,encodeValue}),DEFAULT_ATTRIBUTES=Object.freeze({path:"/"});function setCookie(e,t,n=DEFAULT_ATTRIBUTES,{encodeValue:r=encodeValue,encodeName:s=encodeName}={}){return document.cookie=`${s(e)}=${r(t,e)}${stringifyAttributes(n)}`}function getCookie(e,{decodeValue:t=decodeValue,decodeName:n=decodeName}={}){return get(e,t,n)}function getCookies({decodeValue:e=decodeValue,decodeName:t=decodeName}={}){return get(void 0,e,t)}function removeCookie(e,t=DEFAULT_ATTRIBUTES){setCookie(e,"",Object.assign({},t,{expires:-1}))}function init(e,t){const n={set:function(s,o,i){return setCookie(s,o,Object.assign({},this.attributes,i),{encodeValue:this.converter.write})},get:function(s){if(arguments.length===0)return getCookies(this.converter.read);if(s!=null)return getCookie(s,this.converter.read)},remove:function(s,o){removeCookie(s,Object.assign({},this.attributes,o))},withAttributes:function(s){return init(this.converter,Object.assign({},this.attributes,s))},withConverter:function(s){return init(Object.assign({},this.converter,s),this.attributes)}},r={attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}};return Object.create(n,r)}init({read:DEFAULT_CODEC.decodeValue,write:DEFAULT_CODEC.encodeValue},DEFAULT_ATTRIBUTES);class Cookies{constructor(){F(this,"prefix",null);F(this,"addPrefix",t=>{this.prefix=t})}set(t="default",n=""){setCookie(`${this.getKey(t)}`,n)}get(t="default"){return getCookie(`${this.getKey(t)}`)}getAll(){return getCookie("")}remove(t="default"){removeCookie(`${this.getKey(t)}`)}getKey(t){return this.prefix?this.prefix+"_"+t:t}}const cookies$1=new Cookies;function bind(e,t){return function(){return e.apply(t,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(e=>t=>{const n=toString.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&isFunction(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=e=>e!==null&&typeof e=="object",isBoolean=e=>e===!0||e===!1,isPlainObject=e=>{if(kindOf(e)!=="object")return!1;const t=getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject(e)&&isFunction(e.pipe),isFormData=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||toString.call(e)===t||isFunction(e.toString)&&e.toString()===t)},isURLSearchParams=kindOfTest("URLSearchParams"),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),isArray(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(r=0;r<i;r++)l=o[r],t.call(null,e[l],l,e)}}function merge(){const e={},t=(n,r)=>{isPlainObject(e[r])&&isPlainObject(n)?e[r]=merge(e[r],n):isPlainObject(n)?e[r]=merge({},n):isArray(n)?e[r]=n.slice():e[r]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&forEach(arguments[n],t);return e}const extend=(e,t,n,{allOwnKeys:r}={})=>(forEach(t,(s,o)=>{n&&isFunction(s)?e[o]=bind(s,n):e[o]=s},{allOwnKeys:r}),e),stripBOM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),inherits=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},toArray=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},isTypedArray=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},matchAll=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),hasOwnProperty=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};forEach(n,(s,o)=>{t(s,o,e)!==!1&&(r[o]=s)}),Object.defineProperties(e,r)},freezeMethods=e=>{reduceDescriptors(e,(t,n)=>{const r=e[n];if(!!isFunction(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")})}})},toObjectSet=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return isArray(e)?r(e):r(String(e).split(t)),n},noop=()=>{},toFiniteNumber=(e,t)=>(e=+e,Number.isFinite(e)?e:t),utils={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber};function AxiosError(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}utils.inherits(AxiosError,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{descriptors[e]={value:e}}),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(e,t,n,r,s,o)=>{const i=Object.create(prototype$1);return utils.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),AxiosError.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},browser=typeof self=="object"?self.FormData:window.FormData;function isVisitable(e){return utils.isPlainObject(e)||utils.isArray(e)}function removeBrackets(e){return utils.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,n){return e?e.concat(t).map(function(s,o){return s=removeBrackets(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function isFlatArray(e){return utils.isArray(e)&&!e.some(isVisitable)}const predicates=utils.toFlatObject(utils,{},null,function e(t){return/^is[A-Z]/.test(t)});function isSpecCompliant(e){return e&&utils.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function toFormData(e,t,n){if(!utils.isObject(e))throw new TypeError("target must be an object");t=t||new(browser||FormData),n=utils.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,y){return!utils.isUndefined(y[b])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&isSpecCompliant(t);if(!utils.isFunction(s))throw new TypeError("visitor must be a function");function u(a){if(a===null)return"";if(utils.isDate(a))return a.toISOString();if(!c&&utils.isBlob(a))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils.isArrayBuffer(a)||utils.isTypedArray(a)?c&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function f(a,b,y){let w=a;if(a&&!y&&typeof a=="object"){if(utils.endsWith(b,"{}"))b=r?b:b.slice(0,-2),a=JSON.stringify(a);else if(utils.isArray(a)&&isFlatArray(a)||utils.isFileList(a)||utils.endsWith(b,"[]")&&(w=utils.toArray(a)))return b=removeBrackets(b),w.forEach(function(O,A){!(utils.isUndefined(O)||O===null)&&t.append(i===!0?renderKey([b],A,o):i===null?b:b+"[]",u(O))}),!1}return isVisitable(a)?!0:(t.append(renderKey(y,b,o),u(a)),!1)}const h=[],v=Object.assign(predicates,{defaultVisitor:f,convertValue:u,isVisitable});function g(a,b){if(!utils.isUndefined(a)){if(h.indexOf(a)!==-1)throw Error("Circular reference detected in "+b.join("."));h.push(a),utils.forEach(a,function(w,C){(!(utils.isUndefined(w)||w===null)&&s.call(t,w,utils.isString(C)?C.trim():C,b,v))===!0&&g(w,b?b.concat(C):[C])}),h.pop()}}if(!utils.isObject(e))throw new TypeError("data must be an object");return g(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function e(t,n){this._pairs.push([t,n])},prototype.toString=function e(t){const n=t?function(r){return t.call(this,r,encode$1)}:encode$1;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,t,n){if(!t)return e;const r=n&&n.encode||encode,s=n&&n.serialize;let o;if(s?o=s(t,n):o=utils.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class InterceptorManager{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){utils.forEach(this.handlers,function(r){r!==null&&t(r)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=FormData,isStandardBrowserEnv=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),platform={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob},isStandardBrowserEnv,protocols:["http","https","file","blob","url","data"]};function toURLEncodedForm(e,t){return toFormData(e,new platform.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return platform.isNode&&utils.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function parsePropPath(e){return utils.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function arrayToObject(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function formDataToJSON(e){function t(n,r,s,o){let i=n[o++];const l=Number.isFinite(+i),c=o>=n.length;return i=!i&&utils.isArray(s)?s.length:i,c?(utils.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!utils.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&utils.isArray(s[i])&&(s[i]=arrayToObject(s[i])),!l)}if(utils.isFormData(e)&&utils.isFunction(e.entries)){const n={};return utils.forEachEntry(e,(r,s)=>{t(parsePropPath(r),s,n,0)}),n}return null}function settle(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new AxiosError("Request failed with status code "+n.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const cookies=platform.isStandardBrowserEnv?function e(){return{write:function(n,r,s,o,i,l){const c=[];c.push(n+"="+encodeURIComponent(r)),utils.isNumber(s)&&c.push("expires="+new Date(s).toGMTString()),utils.isString(o)&&c.push("path="+o),utils.isString(i)&&c.push("domain="+i),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function e(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t){return e&&!isAbsoluteURL(t)?combineURLs(e,t):t}const isURLSameOrigin=platform.isStandardBrowserEnv?function e(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const l=utils.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function e(){return function(){return!0}}();function CanceledError(e,t,n){AxiosError.call(this,e==null?"canceled":e,AxiosError.ERR_CANCELED,t,n),this.name="CanceledError"}utils.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const ignoreDuplicateOf=utils.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
+
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&ignoreDuplicateOf[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},$internals=Symbol("internals"),$defaults=Symbol("defaults");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return e===!1||e==null?e:utils.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function matchHeaderValue(e,t,n,r){if(utils.isFunction(r))return r.call(this,t,n);if(!!utils.isString(t)){if(utils.isString(r))return t.indexOf(r)!==-1;if(utils.isRegExp(r))return r.test(t)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function buildAccessors(e,t){const n=utils.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}function findKey(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}function AxiosHeaders(e,t){e&&this.set(e),this[$defaults]=t||null}Object.assign(AxiosHeaders.prototype,{set:function(e,t,n){const r=this;function s(o,i,l){const c=normalizeHeader(i);if(!c)throw new Error("header name must be a non-empty string");const u=findKey(r,c);u&&l!==!0&&(r[u]===!1||l===!1)||(r[u||i]=normalizeValue(o))}return utils.isPlainObject(e)?utils.forEach(e,(o,i)=>{s(o,i,t)}):s(t,e,n),this},get:function(e,t){if(e=normalizeHeader(e),!e)return;const n=findKey(this,e);if(n){const r=this[n];if(!t)return r;if(t===!0)return parseTokens(r);if(utils.isFunction(t))return t.call(this,r,n);if(utils.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=normalizeHeader(e),e){const n=findKey(this,e);return!!(n&&(!t||matchHeaderValue(this,this[n],n,t)))}return!1},delete:function(e,t){const n=this;let r=!1;function s(o){if(o=normalizeHeader(o),o){const i=findKey(n,o);i&&(!t||matchHeaderValue(n,n[i],i,t))&&(delete n[i],r=!0)}}return utils.isArray(e)?e.forEach(s):s(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return utils.forEach(this,(r,s)=>{const o=findKey(n,s);if(o){t[o]=normalizeValue(r),delete t[s];return}const i=e?formatHeader(s):String(s).trim();i!==s&&delete t[s],t[i]=normalizeValue(r),n[i]=!0}),this},toJSON:function(e){const t=Object.create(null);return utils.forEach(Object.assign({},this[$defaults]||null,this),(n,r)=>{n==null||n===!1||(t[r]=e&&utils.isArray(n)?n.join(", "):n)}),t}}),Object.assign(AxiosHeaders,{from:function(e){return utils.isString(e)?new this(parseHeaders(e)):e instanceof this?e:new this(e)},accessor:function(e){const n=(this[$internals]=this[$internals]={accessors:{}}).accessors,r=this.prototype;function s(o){const i=normalizeHeader(o);n[i]||(buildAccessors(r,o),n[i]=!0)}return utils.isArray(e)?e.forEach(s):s(e),this}}),AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),utils.freezeMethods(AxiosHeaders.prototype),utils.freezeMethods(AxiosHeaders);function speedometer(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),f=r[o];i||(i=u),n[s]=c,r[s]=u;let h=o,v=0;for(;h!==s;)v+=n[h++],h=h%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const g=f&&u-f;return g?Math.round(v*1e3/g):void 0}}function progressEventReducer(e,t){let n=0;const r=speedometer(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,l=o-n,c=r(l),u=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&u?(i-o)/c:void 0};f[t?"download":"upload"]=!0,e(f)}}function xhrAdapter(e){return new Promise(function(n,r){let s=e.data;const o=AxiosHeaders.from(e.headers).normalize(),i=e.responseType;let l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}utils.isFormData(s)&&platform.isStandardBrowserEnv&&o.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",a=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+a))}const f=buildFullPath(e.baseURL,e.url);u.open(e.method.toUpperCase(),buildURL(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function h(){if(!u)return;const g=AxiosHeaders.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),b={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:e,request:u};settle(function(w){n(w),c()},function(w){r(w),c()},b),u=null}if("onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(h)},u.onabort=function(){!u||(r(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let a=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||transitionalDefaults;e.timeoutErrorMessage&&(a=e.timeoutErrorMessage),r(new AxiosError(a,b.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,u)),u=null},platform.isStandardBrowserEnv){const g=(e.withCredentials||isURLSameOrigin(f))&&e.xsrfCookieName&&cookies.read(e.xsrfCookieName);g&&o.set(e.xsrfHeaderName,g)}s===void 0&&o.setContentType(null),"setRequestHeader"in u&&utils.forEach(o.toJSON(),function(a,b){u.setRequestHeader(b,a)}),utils.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",progressEventReducer(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",progressEventReducer(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=g=>{!u||(r(!g||g.type?new CanceledError(null,e,u):g),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const v=parseProtocol(f);if(v&&platform.protocols.indexOf(v)===-1){r(new AxiosError("Unsupported protocol "+v+":",AxiosError.ERR_BAD_REQUEST,e));return}u.send(s||null)})}const adapters={http:xhrAdapter,xhr:xhrAdapter},adapters$1={getAdapter:e=>{if(utils.isString(e)){const t=adapters[e];if(!e)throw Error(utils.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!utils.isFunction(e))throw new TypeError("adapter is not a function");return e},adapters},DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function getDefaultAdapter(){let e;return typeof XMLHttpRequest<"u"?e=adapters$1.getAdapter("xhr"):typeof process<"u"&&utils.kindOf(process)==="process"&&(e=adapters$1.getAdapter("http")),e}function stringifySafely(e,t,n){if(utils.isString(e))try{return(t||JSON.parse)(e),utils.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const defaults={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function e(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=utils.isObject(t);if(o&&utils.isHTMLForm(t)&&(t=new FormData(t)),utils.isFormData(t))return s&&s?JSON.stringify(formDataToJSON(t)):t;if(utils.isArrayBuffer(t)||utils.isBuffer(t)||utils.isStream(t)||utils.isFile(t)||utils.isBlob(t))return t;if(utils.isArrayBufferView(t))return t.buffer;if(utils.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(t,this.formSerializer).toString();if((l=utils.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return toFormData(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),stringifySafely(t)):t}],transformResponse:[function e(t){const n=this.transitional||defaults.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&utils.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?AxiosError.from(l,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils.forEach(["delete","get","head"],function e(t){defaults.headers[t]={}}),utils.forEach(["post","put","patch"],function e(t){defaults.headers[t]=utils.merge(DEFAULT_CONTENT_TYPE)});function transformData(e,t){const n=this||defaults,r=t||n,s=AxiosHeaders.from(r.headers);let o=r.data;return utils.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function isCancel(e){return!!(e&&e.__CANCEL__)}function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),(e.adapter||defaults.adapter)(e).then(function(r){return throwIfCancellationRequested(e),r.data=transformData.call(e,e.transformResponse,r),r.headers=AxiosHeaders.from(r.headers),r},function(r){return isCancel(r)||(throwIfCancellationRequested(e),r&&r.response&&(r.response.data=transformData.call(e,e.transformResponse,r.response),r.response.headers=AxiosHeaders.from(r.response.headers))),Promise.reject(r)})}function mergeConfig(e,t){t=t||{};const n={};function r(u,f){return utils.isPlainObject(u)&&utils.isPlainObject(f)?utils.merge(u,f):utils.isPlainObject(f)?utils.merge({},f):utils.isArray(f)?f.slice():f}function s(u){if(utils.isUndefined(t[u])){if(!utils.isUndefined(e[u]))return r(void 0,e[u])}else return r(e[u],t[u])}function o(u){if(!utils.isUndefined(t[u]))return r(void 0,t[u])}function i(u){if(utils.isUndefined(t[u])){if(!utils.isUndefined(e[u]))return r(void 0,e[u])}else return r(void 0,t[u])}function l(u){if(u in t)return r(e[u],t[u]);if(u in e)return r(void 0,e[u])}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l};return utils.forEach(Object.keys(e).concat(Object.keys(t)),function(f){const h=c[f]||s,v=h(f);utils.isUndefined(v)&&h!==l||(n[f]=v)}),n}const VERSION="1.1.3",validators$1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators$1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const deprecatedWarnings={};validators$1.transitional=function e(t,n,r){function s(o,i){return"[Axios v"+VERSION+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new AxiosError(s(i," has been removed"+(n?" in "+n:"")),AxiosError.ERR_DEPRECATED);return n&&!deprecatedWarnings[i]&&(deprecatedWarnings[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function assertOptions(e,t,n){if(typeof e!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const l=e[o],c=l===void 0||i(l,o,e);if(c!==!0)throw new AxiosError("option "+o+" must be "+c,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new AxiosError("Unknown option "+o,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(t){this.defaults=t,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=mergeConfig(this.defaults,n);const{transitional:r,paramsSerializer:s}=n;r!==void 0&&validator.assertOptions(r,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),s!==void 0&&validator.assertOptions(s,{encode:validators.function,serialize:validators.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();const o=n.headers&&utils.merge(n.headers.common,n.headers[n.method]);o&&utils.forEach(["delete","get","head","post","put","patch","common"],function(a){delete n.headers[a]}),n.headers=new AxiosHeaders(n.headers,o);const i=[];let l=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(n)===!1||(l=l&&a.synchronous,i.unshift(a.fulfilled,a.rejected))});const c=[];this.interceptors.response.forEach(function(a){c.push(a.fulfilled,a.rejected)});let u,f=0,h;if(!l){const g=[dispatchRequest.bind(this),void 0];for(g.unshift.apply(g,i),g.push.apply(g,c),h=g.length,u=Promise.resolve(n);f<h;)u=u.then(g[f++],g[f++]);return u}h=i.length;let v=n;for(f=0;f<h;){const g=i[f++],a=i[f++];try{v=g(v)}catch(b){a.call(this,b);break}}try{u=dispatchRequest.call(this,v)}catch(g){return Promise.reject(g)}for(f=0,h=c.length;f<h;)u=u.then(c[f++],c[f++]);return u}getUri(t){t=mergeConfig(this.defaults,t);const n=buildFullPath(t.baseURL,t.url);return buildURL(n,t.params,t.paramsSerializer)}}utils.forEach(["delete","get","head","options"],function e(t){Axios.prototype[t]=function(n,r){return this.request(mergeConfig(r||{},{method:t,url:n,data:(r||{}).data}))}}),utils.forEach(["post","put","patch"],function e(t){function n(r){return function(o,i,l){return this.request(mergeConfig(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Axios.prototype[t]=n(),Axios.prototype[t+"Form"]=n(!0)});class CancelToken{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new CanceledError(o,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new CancelToken(function(s){t=s}),cancel:t}}}function spread(e){return function(n){return e.apply(null,n)}}function isAxiosError(e){return utils.isObject(e)&&e.isAxiosError===!0}function createInstance(e){const t=new Axios(e),n=bind(Axios.prototype.request,t);return utils.extend(n,Axios.prototype,t,{allOwnKeys:!0}),utils.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return createInstance(mergeConfig(e,s))},n}const axios=createInstance(defaults);axios.Axios=Axios,axios.CanceledError=CanceledError,axios.CancelToken=CancelToken,axios.isCancel=isCancel,axios.VERSION=VERSION,axios.toFormData=toFormData,axios.AxiosError=AxiosError,axios.Cancel=axios.CanceledError,axios.all=function e(t){return Promise.all(t)},axios.spread=spread,axios.isAxiosError=isAxiosError,axios.formToJSON=e=>formDataToJSON(utils.isHTMLForm(e)?new FormData(e):e);var nprogress={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
3
|
+
* @license MIT */(function(e,t){(function(n,r){e.exports=r()})(commonjsGlobal,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(a){var b,y;for(b in a)y=a[b],y!==void 0&&a.hasOwnProperty(b)&&(r[b]=y);return this},n.status=null,n.set=function(a){var b=n.isStarted();a=s(a,r.minimum,1),n.status=a===1?null:a;var y=n.render(!b),w=y.querySelector(r.barSelector),C=r.speed,O=r.easing;return y.offsetWidth,l(function(A){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),c(w,i(a,C,O)),a===1?(c(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){c(y,{transition:"all "+C+"ms linear",opacity:0}),setTimeout(function(){n.remove(),A()},C)},C)):setTimeout(A,C)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var a=function(){setTimeout(function(){!n.status||(n.trickle(),a())},r.trickleSpeed)};return r.trickle&&a(),this},n.done=function(a){return!a&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(a){var b=n.status;return b?(typeof a!="number"&&(a=(1-b)*s(Math.random()*b,.1,.95)),b=s(b+a,0,.994),n.set(b)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var a=0,b=0;n.promise=function(y){return!y||y.state()==="resolved"?this:(b===0&&n.start(),a++,b++,y.always(function(){b--,b===0?(a=0,n.done()):n.set((a-b)/a)}),this)}}(),n.render=function(a){if(n.isRendered())return document.getElementById("nprogress");f(document.documentElement,"nprogress-busy");var b=document.createElement("div");b.id="nprogress",b.innerHTML=r.template;var y=b.querySelector(r.barSelector),w=a?"-100":o(n.status||0),C=document.querySelector(r.parent),O;return c(y,{transition:"all 0 linear",transform:"translate3d("+w+"%,0,0)"}),r.showSpinner||(O=b.querySelector(r.spinnerSelector),O&&g(O)),C!=document.body&&f(C,"nprogress-custom-parent"),C.appendChild(b),b},n.remove=function(){h(document.documentElement,"nprogress-busy"),h(document.querySelector(r.parent),"nprogress-custom-parent");var a=document.getElementById("nprogress");a&&g(a)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var a=document.body.style,b="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return b+"Perspective"in a?"translate3d":b+"Transform"in a?"translate":"margin"};function s(a,b,y){return a<b?b:a>y?y:a}function o(a){return(-1+a)*100}function i(a,b,y){var w;return r.positionUsing==="translate3d"?w={transform:"translate3d("+o(a)+"%,0,0)"}:r.positionUsing==="translate"?w={transform:"translate("+o(a)+"%,0)"}:w={"margin-left":o(a)+"%"},w.transition="all "+b+"ms "+y,w}var l=function(){var a=[];function b(){var y=a.shift();y&&y(b)}return function(y){a.push(y),a.length==1&&b()}}(),c=function(){var a=["Webkit","O","Moz","ms"],b={};function y(A){return A.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(d,m){return m.toUpperCase()})}function w(A){var d=document.body.style;if(A in d)return A;for(var m=a.length,E=A.charAt(0).toUpperCase()+A.slice(1),p;m--;)if(p=a[m]+E,p in d)return p;return A}function C(A){return A=y(A),b[A]||(b[A]=w(A))}function O(A,d,m){d=C(d),A.style[d]=m}return function(A,d){var m=arguments,E,p;if(m.length==2)for(E in d)p=d[E],p!==void 0&&d.hasOwnProperty(E)&&O(A,E,p);else O(A,m[1],m[2])}}();function u(a,b){var y=typeof a=="string"?a:v(a);return y.indexOf(" "+b+" ")>=0}function f(a,b){var y=v(a),w=y+b;u(y,b)||(a.className=w.substring(1))}function h(a,b){var y=v(a),w;!u(a,b)||(w=y.replace(" "+b+" "," "),a.className=w.substring(1,w.length-1))}function v(a){return(" "+(a.className||"")+" ").replace(/\s+/gi," ")}function g(a){a&&a.parentNode&&a.parentNode.removeChild(a)}return n})})(nprogress);const NProgress=nprogress.exports;NProgress.configure({easing:"ease",speed:500,showSpinner:!1,trickleSpeed:200,minimum:.3});const kTOKENKEY="authorized-token",defaultConfig={timeout:18e4,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}},S=class{constructor(){F(this,"router");F(this,"baseUrl",null);this.httpInterceptorsRequest(),this.httpInterceptorsResponse()}setRouter(t){this.router=t}setBaseUrl(t){this.baseUrl=t}static retryOriginalRequest(t){return new Promise(n=>{S.requests.push(r=>{t.headers.Authorization="Bearer "+r,n(t)})})}httpInterceptorsRequest(){S.axiosInstance.interceptors.request.use(t=>(NProgress.start(),typeof t.beforeRequestCallback=="function"?(t.beforeRequestCallback(t),t):S.initConfig.beforeRequestCallback?(S.initConfig.beforeRequestCallback(t),t):["/refreshToken","/login"].some(r=>t.url.indexOf(r)>-1)?t:new Promise(r=>{const s=cookies$1.get(kTOKENKEY);if(s){const o=JSON.parse(s),i=new Date().getTime();if(o.expires-i<=0){debugger;S.isRefreshing||(S.isRefreshing=!0,this.get(this.baseUrl+"/uath/refreshToken",{refreshToken:o.refreshToken}).then(c=>{this.setToken(c),t.headers.Authorization="Bearer "+c.access_token,S.requests.forEach(u=>u(c.access_token)),S.requests=[]}).finally(()=>{S.isRefreshing=!1})),r(S.retryOriginalRequest(t))}else t.headers.Authorization="Bearer "+o.accessToken,r(t)}else{const o=cookies$1.get("kCookies_token");o&&(t.headers["X-Token"]=o),r(t)}})),t=>Promise.reject(t))}setToken(t){const{access_token:n,expires_in:r,refresh_token:s}=t,o={accessToken:n,refreshToken:s,expires:Date.now()+r*1e3};cookies$1.set(kTOKENKEY,JSON.stringify(o))}httpInterceptorsResponse(){S.axiosInstance.interceptors.response.use(n=>{const r=n.config;return NProgress.done(),typeof r.beforeResponseCallback=="function"?(r.beforeResponseCallback(n),n.data):(S.initConfig.beforeResponseCallback&&S.initConfig.beforeResponseCallback(n),n.data)},n=>{const r=n;return r.isCancelRequest=axios.isCancel(r),NProgress.done(),Promise.reject(r)})}transformConfigByMethod(t,n){const{method:r}=n,s=["get"],o=r.toLocaleLowerCase(),i=s.includes(o)?"params":"data";return{...n,[i]:t}}request(t,n,r,s){const o=this.transformConfigByMethod(r,{method:t,url:n,...s});return new Promise((i,l)=>{S.axiosInstance.request(o).then(c=>{var u;if(c&&(c==null?void 0:c.code)==="0")i(c.data);else if(c.code==="500")errorMessage(c.msg),l(c.msg);else if((c==null?void 0:c.code)!=="-1")i(c);else{const f=(c==null?void 0:c.msg)||"\u670D\u52A1\u5F02\u5E38";errorMessage(f);const h=c.code;(h==="000001"||h==="-1"&&f.includes("\u8BF7\u91CD\u65B0\u767B\u9646"))&&(cookies$1.remove("kCookies_token"),(u=this.router)==null||u.push({path:"/login",query:{tokenExpire:"Y"}})),l(f)}}).catch(c=>{c!=null&&c.code&&errorMessage(c==null?void 0:c.message),l(c)})})}post(t,n,r){return this.request("post",t,n,r)}delete(t,n,r){return this.request("delete",t,n,r)}put(t,n,r){return this.request("put",t,n,r)}get(t,n,r){for(const s in n)n[s]||delete n[s];return this.request("get",t,n,r)}postRouter(t){return this.request("post","route/service",t)}};let SuHttp=S;F(SuHttp,"requests",[]),F(SuHttp,"isRefreshing",!1),F(SuHttp,"initConfig",{}),F(SuHttp,"axiosInstance",axios.create(defaultConfig));const http=new SuHttp,lunarCalendar={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,92821,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,37600,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["\u7532","\u4E59","\u4E19","\u4E01","\u620A","\u5DF1","\u5E9A","\u8F9B","\u58EC","\u7678"],Zhi:["\u5B50","\u4E11","\u5BC5","\u536F","\u8FB0","\u5DF3","\u5348","\u672A","\u7533","\u9149","\u620C","\u4EA5"],Animals:["\u9F20","\u725B","\u864E","\u5154","\u9F99","\u86C7","\u9A6C","\u7F8A","\u7334","\u9E21","\u72D7","\u732A"],festival:{"1-1":{title:"\u5143\u65E6\u8282"},"2-14":{title:"\u60C5\u4EBA\u8282"},"5-1":{title:"\u52B3\u52A8\u8282"},"5-4":{title:"\u9752\u5E74\u8282"},"6-1":{title:"\u513F\u7AE5\u8282"},"9-10":{title:"\u6559\u5E08\u8282"},"10-1":{title:"\u56FD\u5E86\u8282"},"12-25":{title:"\u5723\u8BDE\u8282"},"3-8":{title:"\u5987\u5973\u8282"},"3-12":{title:"\u690D\u6811\u8282"},"4-1":{title:"\u611A\u4EBA\u8282"},"5-12":{title:"\u62A4\u58EB\u8282"},"7-1":{title:"\u5EFA\u515A\u8282"},"8-1":{title:"\u5EFA\u519B\u8282"},"12-24":{title:"\u5E73\u5B89\u591C"}},lFestival:{"12-30":{title:"\u9664\u5915"},"1-1":{title:"\u6625\u8282"},"1-15":{title:"\u5143\u5BB5\u8282"},"2-2":{title:"\u9F99\u62AC\u5934"},"5-5":{title:"\u7AEF\u5348\u8282"},"7-7":{title:"\u4E03\u5915\u8282"},"7-15":{title:"\u4E2D\u5143\u8282"},"8-15":{title:"\u4E2D\u79CB\u8282"},"9-9":{title:"\u91CD\u9633\u8282"},"10-1":{title:"\u5BD2\u8863\u8282"},"10-15":{title:"\u4E0B\u5143\u8282"},"12-8":{title:"\u814A\u516B\u8282"},"12-23":{title:"\u5317\u65B9\u5C0F\u5E74"},"12-24":{title:"\u5357\u65B9\u5C0F\u5E74"}},getFestival(){return this.festival},getLunarFestival(){return this.lFestival},setFestival(e={}){this.festival=e},setLunarFestival(e={}){this.lFestival=e},solarTerm:["\u5C0F\u5BD2","\u5927\u5BD2","\u7ACB\u6625","\u96E8\u6C34","\u60CA\u86F0","\u6625\u5206","\u6E05\u660E","\u8C37\u96E8","\u7ACB\u590F","\u5C0F\u6EE1","\u8292\u79CD","\u590F\u81F3","\u5C0F\u6691","\u5927\u6691","\u7ACB\u79CB","\u5904\u6691","\u767D\u9732","\u79CB\u5206","\u5BD2\u9732","\u971C\u964D","\u7ACB\u51AC","\u5C0F\u96EA","\u5927\u96EA","\u51AC\u81F3"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341"],nStr2:["\u521D","\u5341","\u5EFF","\u5345"],nStr3:["\u6B63","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u51AC","\u814A"],lYearDays:function(e){let t,n=348;for(t=32768;t>8;t>>=1)n+=this.lunarInfo[e-1900]&t?1:0;return n+this.leapDays(e)},leapMonth:function(e){return this.lunarInfo[e-1900]&15},leapDays:function(e){return this.leapMonth(e)?this.lunarInfo[e-1900]&65536?30:29:0},monthDays:function(e,t){return t>12||t<1?-1:this.lunarInfo[e-1900]&65536>>t?30:29},solarDays:function(e,t){if(t>12||t<1)return-1;const n=t-1;return n===1?e%4===0&&e%100!==0||e%400===0?29:28:this.solarMonth[n]},toGanZhiYear:function(e){let t=(e-3)%10,n=(e-3)%12;return t===0&&(t=10),n===0&&(n=12),this.Gan[t-1]+this.Zhi[n-1]},toAstro:function(e,t){const n="\u6469\u7FAF\u6C34\u74F6\u53CC\u9C7C\u767D\u7F8A\u91D1\u725B\u53CC\u5B50\u5DE8\u87F9\u72EE\u5B50\u5904\u5973\u5929\u79E4\u5929\u874E\u5C04\u624B\u6469\u7FAF",r=[20,19,21,21,21,22,23,23,23,23,22,22];return n.substr(e*2-(t<r[e-1]?2:0),2)+"\u5EA7"},toGanZhi:function(e){return this.Gan[e%10]+this.Zhi[e%12]},getTerm:function(e,t){if(e<1900||e>2100||t<1||t>24)return-1;const n=this.sTermInfo[e-1900],r=[];for(let s=0;s<n.length;s+=5){const o=parseInt("0x"+n.substr(s,5)).toString();r.push(o[0],o.substr(1,2),o[3],o.substr(4,2))}return parseInt(r[t-1])},toChinaMonth:function(e){if(e>12||e<1)return-1;let t=this.nStr3[e-1];return t+="\u6708",t},toChinaDay:function(e){let t;switch(e){case 10:t="\u521D\u5341";break;case 20:t="\u4E8C\u5341";break;case 30:t="\u4E09\u5341";break;default:t=this.nStr2[Math.floor(e/10)],t+=this.nStr1[e%10]}return t},getAnimal:function(e){return this.Animals[(e-4)%12]},solar2lunar:function(e,t,n){let r=parseInt(e),s=parseInt(t),o=parseInt(n);if(r<1900||r>2100||r===1900&&s===1&&o<31)return-1;let i;r?i=new Date(r,parseInt(s.toString())-1,o):i=new Date;let l,c=0,u=0;r=i.getFullYear(),s=i.getMonth()+1,o=i.getDate();let f=(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate())-Date.UTC(1900,0,31))/864e5;for(l=1900;l<2101&&f>0;l++)u=this.lYearDays(l),f-=u;f<0&&(f+=u,l--);const h=new Date;let v=!1;h.getFullYear()===r&&h.getMonth()+1===s&&h.getDate()===o&&(v=!0);let g=i.getDay();const a=this.nStr1[g];g===0&&(g=7);const b=l;c=this.leapMonth(l);let y=!1;for(l=1;l<13&&f>0;l++)c>0&&l===c+1&&y===!1?(--l,y=!0,u=this.leapDays(b)):u=this.monthDays(b,l),y===!0&&l===c+1&&(y=!1),f-=u;f===0&&c>0&&l===c+1&&(y?y=!1:(y=!0,--l)),f<0&&(f+=u,--l);const w=l,C=f+1,O=s-1,A=this.toGanZhiYear(b),d=this.getTerm(r,s*2-1),m=this.getTerm(r,s*2);let E=this.toGanZhi((r-1900)*12+s+11);o>=d&&(E=this.toGanZhi((r-1900)*12+s+12));let p=!1,x;d===o&&(p=!0,x=this.solarTerm[s*2-2]),m===o&&(p=!0,x=this.solarTerm[s*2-1]);const R=Date.UTC(r,O,1,0,0,0,0)/864e5+25567+10,_=this.toGanZhi(R+o-1),T=this.toAstro(s,o),D=r+"-"+s+"-"+o,N=b+"-"+w+"-"+C,P=this.festival,k=this.lFestival,B=s+"-"+o;let U=w+"-"+C;return w===12&&C===29&&this.monthDays(b,w)===29&&(U="12-30"),{date:D,lunarDate:N,festival:P[B]?P[B].title:null,lunarFestival:k[U]?k[U].title:null,lYear:b,lMonth:w,lDay:C,Animal:this.getAnimal(b),IMonthCn:(y?"\u95F0":"")+this.toChinaMonth(w),IDayCn:this.toChinaDay(C),cYear:r,cMonth:s,cDay:o,gzYear:A,gzMonth:E,gzDay:_,isToday:v,isLeap:y,nWeek:g,ncWeek:"\u661F\u671F"+a,isTerm:p,Term:x,astro:T}},lunar2solar:function(e,t,n,r){e=parseInt(e),t=parseInt(t),n=parseInt(n),r=!!r;const s=this.leapMonth(e);if(r&&s!==t||e===2100&&t===12&&n>1||e===1900&&t===1&&n<31)return-1;const o=this.monthDays(e,t);let i=o;if(r&&(i=this.leapDays(e)),e<1900||e>2100||n>i)return-1;let l=0,c;for(c=1900;c<e;c++)l+=this.lYearDays(c);let u=0,f=!1;for(c=1;c<t;c++)u=this.leapMonth(e),f||u<=c&&u>0&&(l+=this.leapDays(e),f=!0),l+=this.monthDays(e,c);r&&(l+=o);const h=Date.UTC(1900,1,30,0,0,0),v=new Date((l+n-31)*864e5+h),g=v.getUTCFullYear(),a=v.getUTCMonth()+1,b=v.getUTCDate();return this.solar2lunar(g,a,b)}};class Updater{constructor(t){F(this,"oldScript");F(this,"newScript");F(this,"dispatch");this.oldScript=[],this.newScript=[],this.dispatch={},this.init(),this.timing(t==null?void 0:t.timer)}async init(){const t=await this.getHtml();this.oldScript=this.parserScript(t)}async getHtml(){return await fetch("/").then(n=>n.text())}parserScript(t){const n=new RegExp(/<script(?:\s+[^>]*)?>(.*?)<\/script\s*>/gi);return t.match(n)}on(t,n){return(this.dispatch[t]||(this.dispatch[t]=[])).push(n),this}compare(t,n){var o;const r=t.length;Array.from(new Set(t.concat(n))).length===r?(o=this.dispatch["no-update"])==null||o.forEach(i=>{i()}):this.dispatch.update.forEach(i=>{i()})}timing(t=1e4){const n=setInterval(async()=>{window.clearInterval(n);const r=await this.getHtml();this.newScript=this.parserScript(r),this.compare(this.oldScript,this.newScript)},t)}}const withInstall=e=>{const t=e;return t.install=n=>{n.component(t.name,e)},e};function sleep(e=64){return new Promise(t=>{const n=setTimeout(()=>{window.clearTimeout(n),t(e)},e)})}const delay=e=>new Promise(t=>setTimeout(t,e)),useDark=()=>({isDark:vue.ref(document.documentElement.classList.contains("dark"))}),useDebounce=(e,t)=>{let n;return()=>{n&&clearTimeout(n),n=setTimeout(e,t)}};function isUrl(e){return/(((^http(s)?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/.test(e)}const getDictName=(e,t)=>{var r;return!e||!t?null:(r=storageLocal.getItem("kLov")[e])==null?void 0:r.children.find(s=>t===s.dictCode).dictName};exports.NProgress=NProgress,exports.Updater=Updater,exports.VxetableRender=VxetableRender,exports.addClass=addClass,exports.addResizeListener=addResizeListener,exports.appendFieldByUniqueId=appendFieldByUniqueId,exports.buildHierarchyTree=buildHierarchyTree,exports.buildShortUUID=buildShortUUID,exports.buildUUID=buildUUID,exports.cookies=cookies$1,exports.delay=delay,exports.deleteTreeChildren=deleteTreeChildren,exports.deviceDetection=deviceDetection,exports.errorMessage=errorMessage,exports.extractPathList=extractPathList,exports.formatGridItems=formatGridItems,exports.formatItems=formatItems,exports.formatRules=formatRules,exports.getBrowserInfo=getBrowserInfo,exports.getDictName=getDictName,exports.getNodeByUniqueId=getNodeByUniqueId,exports.hasClass=hasClass,exports.http=http,exports.i18nColums=i18nColums,exports.isUrl=isUrl,exports.lunarCalendar=lunarCalendar,exports.openLink=openLink,exports.removeClass=removeClass,exports.removeResizeListener=removeResizeListener,exports.showMessage=showMessage,exports.sleep=sleep,exports.storageLocal=storageLocal,exports.storageSession=storageSession,exports.successMessage=successMessage,exports.toggleClass=toggleClass,exports.useAttrs=useAttrs,exports.useDark=useDark,exports.useDebounce=useDebounce,exports.useGlobal=useGlobal,exports.useRender=useRender,exports.useWatermark=useWatermark,exports.warnMessage=warnMessage,exports.withInstall=withInstall,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|