@ecan-bi/indicator-library 1.1.26 → 1.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2698 +0,0 @@
1
- /*! @ecan-bi/indicator-library@1.1.26 */
2
- import { defineAsyncComponent as An, defineComponent as Po, ref as lt, computed as yt, unref as $, provide as nt, nextTick as wn, resolveComponent as Ie, openBlock as De, createElementBlock as Ee, createVNode as Fe, createCommentVNode as qe, createElementVNode as Ro, normalizeClass as Cn, inject as ue, watch as Qe, onMounted as _n, onBeforeUnmount as Tn, withCtx as On } from "vue";
3
- import { cloneDeep as Et } from "lodash-es";
4
- import * as Ln from "echarts";
5
- import { Spin as Nn } from "ant-design-vue";
6
- const zo = (t) => (t.install = (e) => {
7
- e.component(t.name, t);
8
- }, t), Vo = "$request";
9
- var $o;
10
- const jn = (($o = window == null ? void 0 : window.config) == null ? void 0 : $o.indicatorURL) || "", Go = "INDICATOR_TOKEN", In = "DATA_LIST", Dn = "SELECTED_COMPONENT", Uo = "GRAPHIC_CONFIG", En = "UPDATE_GRAPHIC_CONFIG", Fn = "SHOW_STYLE_CONFIG", Nr = "REFRESH_DATA", Bo = "CHARTS_OPTIONS", kn = "TABLE_OPTIONS", Mn = 18, $n = "UPDATE_CHARTS_OPTIONS", Pn = "UPDATE_TABLE_OPTIONS", Rn = "SOURCE_TYPE", jr = "CHANGE_CONDITION", Ir = "DATA_VIEW_COLUMNS", zn = "RENDER_USED_COMPONENTS", Vn = "UPDATE_USED_COMPONENT", Gn = "UPDATE_COMPONENTS_CONFIG", Un = "MAP_ATTRIBUTE_PROPS", Bn = "PAGE_CONFIG", Wn = "IS_PIVOT_TABLE", Hn = "IS_IFRAME_MODE", Yn = {
11
- name: "柱状图",
12
- type: "bar",
13
- width: "400px",
14
- height: "400px",
15
- xAxisLabelFormatter: "{value}",
16
- yAxisLabelFormatter: "{value}",
17
- yAxisLineAlwaysDisplay: !1,
18
- titleText: "",
19
- titleSubtext: "",
20
- titleFontSize: "12px",
21
- titleColor: "#333",
22
- fontWeight: 400,
23
- textAlign: "left",
24
- colors: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"],
25
- legendShow: !0,
26
- legendTextStyleColor: "#333",
27
- legendOrient: "horizontal",
28
- legendTop: "top",
29
- legendLeft: "center",
30
- tooltipShow: !0,
31
- tooltipTextStyleColor: "",
32
- tooltipFormatter: "{marker} {a} {c}",
33
- xAxisSplitLineShow: !0,
34
- xAxisSplitLineInterval: 0,
35
- xAxisSplitAreaShow: !1,
36
- xAxisSplitLineStyleColor: "#333",
37
- xAxisLabelInterval: 0,
38
- xAxisLabelColor: "#333",
39
- xAxisLabelWidth: void 0,
40
- xAxisLabelRotate: 0,
41
- xAxisLabelOverflow: "none",
42
- xAxisLineShow: !0,
43
- xAxisLineStyleColor: "#333",
44
- xAxisTickShow: !0,
45
- xAxisMinInterval: 0,
46
- yAxisMinInterval: 0,
47
- yAxisLabelWidth: void 0,
48
- yAxisLabelRotate: 0,
49
- yAxisLabelOverflow: "none",
50
- yAxisSplitLineShow: !0,
51
- yAxisSplitAreaShow: !1,
52
- yAxisSplitLineStyleColor: "#333",
53
- yAxisLabelColor: "#333",
54
- yAxisLineStyleColor: "#333",
55
- valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
56
- keyTypeDataFieldNames: { name: "name", types: [] },
57
- dataFieldConfigType: "value",
58
- barWidth: "40%",
59
- gridContainLabel: !0,
60
- gridTop: "10%",
61
- gridBottom: "10%",
62
- gridLeft: "5%",
63
- gridRight: "5%",
64
- graphicConfig: {},
65
- toolboxShow: !1,
66
- toolboxOrient: "horizontal",
67
- toolboxItemSize: 16,
68
- toolboxItemGap: 8,
69
- toolboxLeft: "right",
70
- toolboxTop: "top",
71
- toolboxIconStyleBorderColor: "#666",
72
- toolboxDownloadUrl: "",
73
- toolboxInfoText: "当前无说明信息",
74
- isUseHorizontalAxis: !1,
75
- axisInverse: !1,
76
- xAxisInverse: !1,
77
- yAxisInverse: !1,
78
- isStack: !1,
79
- stackColumns: [],
80
- labelShow: !1,
81
- labelFontSize: "12px",
82
- labelPosition: "inside",
83
- labelColor: "",
84
- labelWidth: 100,
85
- labelOverflow: "none",
86
- labelFormatter: "{c}",
87
- toolboxLocation: !1,
88
- toolboxDownloadShow: !0,
89
- toolboxDataZoomShow: !0,
90
- toolboxInfoShow: !0,
91
- gradientShow: !1,
92
- gradientColors: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"],
93
- gradientOffset: 1,
94
- barBorderRadius: "",
95
- yAxisLabelShow: !0,
96
- yAxisSplitLineType: "solid",
97
- xAxisSplitLineType: "solid",
98
- legendItemGap: 10,
99
- legendItemWidth: 25,
100
- legendItemHeight: 14,
101
- showBarBackground: !1,
102
- legendType: "",
103
- legendFontSize: "12px",
104
- xAxisLabelFontSize: "12px",
105
- yAxisLabelFontSize: "12px",
106
- graphicType: "ecanBar",
107
- tooltipPosition: "",
108
- isShowMarkLine: !1,
109
- markLineType: "average",
110
- legendFormatter: "{name}",
111
- legendWidth: null,
112
- legendHeight: null,
113
- legendTextWidth: null,
114
- legendScroll: !1,
115
- yAxisName: "",
116
- xAxisName: "",
117
- defaultRangeValue: !1,
118
- startValue: "",
119
- endValue: "",
120
- xAxisMaxValue: null,
121
- yAxisMaxValue: null,
122
- colorsType: "默认"
123
- }, Kn = {
124
- name: "折线图",
125
- type: "line",
126
- width: "400px",
127
- height: "400px",
128
- colors: ["#FFBF53", "#04B1C2", "#F07474", "#C55784", "#9A5FB3", "#CF62D7", "#5E78EA", "#51B3F0", "#69D4DC", "#49B788", "#9CCC66", "#C18C00"],
129
- colorsType: "默认",
130
- legendShow: !0,
131
- legendOrient: "horizontal",
132
- legendTop: "top",
133
- legendLeft: "center",
134
- legendCustomPosition: !1,
135
- legendTextStyleColor: "#333",
136
- legendTextStyleFontSize: "12px",
137
- legendTextItemGap: 10,
138
- legendTopPadding: 10,
139
- legendBottomPadding: 10,
140
- legendLeftPadding: 10,
141
- legendRightPadding: 10,
142
- titleText: "",
143
- titleSubtext: "",
144
- symbolSize: 4,
145
- lineStyleWidth: 2,
146
- smooth: !1,
147
- xAxisName: "",
148
- xAxisType: "category",
149
- xAxisShow: !0,
150
- xAxisLabelWidth: void 0,
151
- xAxisLabelRotate: 0,
152
- xAxisLabelOverflow: "none",
153
- xAxisLabelInterval: 0,
154
- xAxisSplitLineShow: !0,
155
- xAxisSplitLineStyleColor: "#333",
156
- xAxisLabelColor: "#333",
157
- xAxisLineStyleColor: "#333",
158
- xAxisTickShow: !0,
159
- xAxisLabelFormatter: "{value}",
160
- // 格式化
161
- xAxisMinInterval: 0,
162
- yAxisName: "",
163
- yAxisMinInterval: 0,
164
- yAxisSplitLineShow: !0,
165
- yAxisSplitLineStyleColor: "#333",
166
- yAxisLabelColor: "#333",
167
- yAxisLineStyleColor: "#333",
168
- yAxisLineAlwaysDisplay: !1,
169
- yAxisLabelShow: !0,
170
- yAxisLabelFormatter: "{value}",
171
- yAxisSplitLineType: "solid",
172
- xAxisSplitLineType: "solid",
173
- gridContainLabel: !0,
174
- gridTop: "10%",
175
- gridBottom: "10%",
176
- gridLeft: "5%",
177
- gridRight: "5%",
178
- tooltipShow: !0,
179
- tooltipTextStyleColor: "",
180
- tooltipFormatter: "{marker} {a} {c}",
181
- tooltipBorderColor: "#333",
182
- tooltipBackgroundColor: "#fff",
183
- toolboxShow: !1,
184
- toolboxDownloadShow: !0,
185
- toolboxDataZoomShow: !0,
186
- toolboxInfoShow: !0,
187
- toolboxOrient: "horizontal",
188
- toolboxItemSize: 16,
189
- toolboxItemGap: 8,
190
- toolboxLeft: "right",
191
- toolboxTop: "top",
192
- toolboxIconStyleBorderColor: "#666",
193
- toolboxDownloadUrl: "",
194
- toolboxInfoText: "当前无说明信息",
195
- areaStyleOpacity: 0,
196
- // 新加属性
197
- titleFontSize: "12px",
198
- titleColor: "#333",
199
- fontWeight: 400,
200
- textAlign: "left",
201
- titleLeft: "",
202
- xAxisSplitAreaShow: !1,
203
- xAxisSplitLineInterval: 0,
204
- xAxisLineShow: !0,
205
- yAxisSplitAreaShow: !1,
206
- valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
207
- keyTypeDataFieldNames: { name: "name", types: [] },
208
- dataFieldConfigType: "value",
209
- graphicConfig: {},
210
- areaGradientShow: !1,
211
- areaGradientColor: "",
212
- isBoundaryGap: !0,
213
- legendItemGap: 10,
214
- legendItemWidth: 25,
215
- legendItemHeight: 14,
216
- legendType: "",
217
- shadowColor: "",
218
- shadowBlur: 0,
219
- shadowOffsetY: 0,
220
- shadowOffsetX: 0,
221
- legendFontSize: "12px",
222
- xAxisLabelFontSize: "12px",
223
- yAxisLabelFontSize: "12px",
224
- graphicType: "ecanLine",
225
- tooltipPosition: "",
226
- isShowMarkLine: !1,
227
- markLineType: "average",
228
- legendFormatter: "{name}",
229
- legendWidth: null,
230
- legendHeight: null,
231
- legendTextWidth: null,
232
- legendScroll: !1,
233
- xAxisMaxValue: null,
234
- yAxisMaxValue: null
235
- }, qn = {
236
- name: "饼图",
237
- type: "pie",
238
- width: "400px",
239
- height: "400px",
240
- titleText: "",
241
- titleSubtext: "",
242
- colors: ["#FFBF53", "#04B1C2", "#F07474", "#C55784", "#9A5FB3", "#CF62D7", "#5E78EA", "#51B3F0", "#69D4DC", "#49B788", "#9CCC66", "#C18C00"],
243
- colorsType: "默认",
244
- backgroundColor: "",
245
- toolboxDownloadShow: !0,
246
- toolboxDataZoomShow: !0,
247
- toolboxInfoShow: !0,
248
- tooltipShow: !0,
249
- tooltipTextStyleColor: "",
250
- tooltipTrigger: "item",
251
- tooltipFormatter: "{marker} {b} {c} ({d}%)",
252
- tooltipBorderColor: "#333",
253
- tooltipBackgroundColor: "#fff",
254
- legendShow: !0,
255
- legendTextStyleColor: "#333",
256
- legendOrient: "vertical",
257
- legendTop: "top",
258
- legendLeft: "left",
259
- innerRadius: "0%",
260
- outerRadius: "60%",
261
- centerLeft: "50%",
262
- centerTop: "50%",
263
- minAngle: 0,
264
- labelShow: !0,
265
- labelColor: "#333",
266
- isUseLabelColors: !1,
267
- labelFontSize: 12,
268
- labelPosition: "outside",
269
- labelFormatter: "{b}\\n{d}%",
270
- labelLineShow: !0,
271
- labelLineLength: 10,
272
- labelLineLength2: 15,
273
- roseType: "",
274
- gridContainLabel: !0,
275
- gridTop: "10%",
276
- gridBottom: "10%",
277
- gridLeft: "5%",
278
- gridRight: "5%",
279
- toolboxShow: !1,
280
- toolboxOrient: "horizontal",
281
- toolboxItemSize: 16,
282
- toolboxItemGap: 8,
283
- toolboxLeft: "right",
284
- toolboxTop: "top",
285
- toolboxIconStyleBorderColor: "#666",
286
- toolboxDownloadUrl: "",
287
- toolboxInfoText: "当前无说明信息",
288
- titleFontSize: "12px",
289
- titleColor: "#333",
290
- fontWeight: 400,
291
- textAlign: "left",
292
- titleLeft: "",
293
- labelWidth: 100,
294
- labelOverflow: "none",
295
- valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
296
- dataFieldConfigType: "value",
297
- graphicConfig: {},
298
- legendItemGap: 10,
299
- legendItemWidth: 25,
300
- legendItemHeight: 14,
301
- legendFormatter: "{name}",
302
- legendFontSize: "12px",
303
- graphicType: "ecanPie",
304
- legendWidth: null,
305
- legendHeight: null,
306
- legendTextWidth: null,
307
- legendScroll: !1
308
- }, Qn = {
309
- name: "自定义图表",
310
- type: "customGraph",
311
- width: "400px",
312
- height: "400px",
313
- option: {},
314
- optionCode: ""
315
- }, Zn = {
316
- name: "组合图表",
317
- type: "comboGraph",
318
- width: "400px",
319
- height: "400px",
320
- titleText: "",
321
- titleSubtext: "",
322
- colors: ["#FFBF53", "#04B1C2", "#F07474", "#C55784", "#9A5FB3", "#CF62D7", "#5E78EA", "#51B3F0", "#69D4DC", "#49B788", "#9CCC66", "#C18C00"],
323
- colorsType: "默认",
324
- legendShow: !0,
325
- legendTextStyleColor: "#333",
326
- legendOrient: "horizontal",
327
- legendTop: "top",
328
- legendLeft: "center",
329
- tooltipShow: !0,
330
- tooltipTextStyleColor: "",
331
- tooltipTrigger: "item",
332
- tooltipFormatter: "{marker} {a} {c}",
333
- tooltipBorderColor: "#333",
334
- tooltipBackgroundColor: "#fff",
335
- xAxisLabelInterval: 0,
336
- xAxisSplitLineShow: !0,
337
- xAxisLabelRotate: 0,
338
- xAxisLabelOverflow: "none",
339
- xAxisLabelWidth: void 0,
340
- xAxisSplitLineStyleColor: "#333",
341
- xAxisLabelColor: "#333",
342
- xAxisLineStyleColor: "#333",
343
- xAxisTickShow: !0,
344
- xAxisMinInterval: 0,
345
- yAxisMinInterval: 0,
346
- yAxisSplitLineShow: !0,
347
- yAxisSplitLineStyleColor: "#333",
348
- yAxisLabelColor: "#333",
349
- yAxisLineStyleColor: "#333",
350
- yAxisLineAlwaysDisplay: !1,
351
- yAxisLabelShow: !0,
352
- seriesTypes: [
353
- {
354
- type: "bar",
355
- axisIndex: 0
356
- },
357
- {
358
- type: "line",
359
- axisIndex: 0
360
- }
361
- ],
362
- yAxis: [
363
- {
364
- axisLabelFormatter: "{value}"
365
- },
366
- {
367
- axisLabelFormatter: "{value}"
368
- }
369
- ],
370
- gridContainLabel: !0,
371
- gridTop: "10%",
372
- gridBottom: "10%",
373
- gridLeft: "5%",
374
- gridRight: "5%",
375
- toolboxShow: !1,
376
- toolboxLocation: !1,
377
- toolboxDownloadShow: !0,
378
- toolboxDataZoomShow: !0,
379
- toolboxInfoShow: !0,
380
- toolboxOrient: "horizontal",
381
- toolboxItemSize: 16,
382
- toolboxItemGap: 8,
383
- toolboxLeft: "right",
384
- toolboxTop: "top",
385
- toolboxIconStyleBorderColor: "#666",
386
- toolboxDownloadUrl: "",
387
- toolboxInfoText: "当前无说明信息",
388
- areaStyleOpacity: 0,
389
- symbolSize: 4,
390
- lineStyleWidth: 2,
391
- smooth: !1,
392
- barWidth: "40%"
393
- }, Ze = {
394
- bar: Yn,
395
- line: Kn,
396
- pie: qn,
397
- customGraph: Qn,
398
- comboGraph: Zn
399
- }, Xn = {
400
- name: "表格",
401
- type: "table",
402
- size: "medium",
403
- allOverflow: "title",
404
- hoverRow: !0,
405
- hoverColor: "#f5f7fa",
406
- headerCellStyleMethod: "",
407
- rowStyleMethod: "",
408
- boderList: [],
409
- columnDropEnable: !0,
410
- showTotalBool: !1,
411
- totalName: "",
412
- expandAll: !1
413
- }, Xe = (t) => An({
414
- loader: t,
415
- delay: 200
416
- }), Jn = Po({
417
- name: "IndicatorLibrary",
418
- components: {
419
- DataList: Xe(() => import("./index-be6cd30e.mjs")),
420
- DataConfig: Xe(() => import("./index-0e0d665b.mjs"))
421
- },
422
- props: {
423
- isShowStyleConfig: {
424
- // 是否显示样式配置
425
- type: Boolean,
426
- default: !1
427
- },
428
- sourceType: {
429
- // 数据源类型
430
- type: String,
431
- default: ""
432
- },
433
- indicatorToken: {
434
- // 指标库token
435
- type: String,
436
- default: ""
437
- },
438
- selectedComponent: {
439
- // 当前组件
440
- type: Object,
441
- default: () => {
442
- }
443
- },
444
- request: {
445
- // 外部请求方法
446
- default: null
447
- },
448
- renderUsedComponentList: {
449
- // 当前画布上渲染的组件
450
- type: Array,
451
- default: () => []
452
- },
453
- mapAttributeProps: {
454
- type: Object,
455
- default: () => ({
456
- startTime: {
457
- label: "开始时间值",
458
- component: "time-pick"
459
- },
460
- endTime: {
461
- label: "结束时间值",
462
- component: "time-pick"
463
- }
464
- })
465
- },
466
- pageConfig: {
467
- type: Object,
468
- default: () => {
469
- }
470
- },
471
- isIframeMode: {
472
- type: Boolean,
473
- default: !1
474
- }
475
- },
476
- setup(t, { expose: e, emit: o }) {
477
- const n = lt(), r = lt(!1), i = yt(() => t.sourceType), a = yt(() => t.indicatorToken || ""), l = yt(() => t.selectedComponent), d = yt(() => t.renderUsedComponentList), c = yt(
478
- () => {
479
- var I;
480
- return ((I = $(l)) == null ? void 0 : I.tableColumns) || [];
481
- }
482
- ), p = yt(() => t.isShowStyleConfig), s = yt(() => {
483
- var I, et;
484
- return (et = (I = $(l)) == null ? void 0 : I.type) == null ? void 0 : et.includes("PivotTable");
485
- });
486
- let u = $(l).graphicConfig ? Et($(l).graphicConfig) : lt({});
487
- u = lt(u);
488
- let h = $(l).chartsOptions ? Et($(l).chartsOptions) : lt(Et(Ze.line));
489
- h = lt(h);
490
- let b = $(l).tableOptions ? Et($(l).tableOptions) : lt(Et(Xn));
491
- b = lt(b);
492
- const m = lt([]), f = (I) => {
493
- m.value = I;
494
- }, v = (I) => {
495
- u.value = {
496
- ...$(u),
497
- ...$(I)
498
- };
499
- }, C = (I, et = !0) => {
500
- et ? h.value = {
501
- ...$(h),
502
- ...$(I)
503
- } : h.value = {
504
- ...$(I)
505
- };
506
- }, g = (I) => {
507
- b.value = {
508
- ...$(b),
509
- ...$(I)
510
- };
511
- }, A = () => m, j = () => {
512
- r.value = !0, $(l).graphicConfig && (u.value = Et($(l).graphicConfig)), $(l).chartsOptions && (h.value = Et($(l).chartsOptions || Ze.line)), wn(() => {
513
- r.value = !1;
514
- });
515
- }, E = () => ({
516
- graphicConfig: $(u),
517
- chartsOptions: $(h),
518
- tableOptions: $(b),
519
- tableColumns: $(c),
520
- columnsConfigMap: $(l).columnsConfigMap
521
- }), P = () => ({
522
- ...$(n).getSaveData(),
523
- graphicConfig: $(u)
524
- });
525
- window.getIndicatorData = E, window.getPivotGraphicData = P, t.request && nt(Vo, t.request), nt(In, {
526
- setDataList: f,
527
- getDataList: A
528
- });
529
- const F = (I) => {
530
- o("updateUsedComponent", I);
531
- }, _ = (I, et) => {
532
- o("updateComponentsConfig", I, { controlList: et });
533
- };
534
- return nt(Wn, s), nt(Hn, t.isIframeMode), nt(Dn, l), nt(Uo, u), nt(Bo, h), nt(kn, b), nt(Rn, i), nt(Fn, p), nt(Go, a), nt(En, v), nt($n, C), nt(Pn, g), nt(zn, d), nt(Vn, F), nt(Gn, _), nt(Un, t.mapAttributeProps), nt(Bn, t.pageConfig), e({
535
- graphicConfig: u,
536
- chartsOptions: h,
537
- updateIndicatorData: j
538
- }), {
539
- isUpdate: r,
540
- isPivotTable: s,
541
- dataConfigRef: n
542
- };
543
- }
544
- });
545
- const Wo = (t, e) => {
546
- const o = t.__vccOpts || t;
547
- for (const [n, r] of e)
548
- o[n] = r;
549
- return o;
550
- }, ti = {
551
- key: 0,
552
- class: "config-modal"
553
- }, ei = {
554
- key: 0,
555
- class: "config-modal-left"
556
- };
557
- function oi(t, e, o, n, r, i) {
558
- const a = Ie("data-list"), l = Ie("data-config");
559
- return t.isUpdate ? qe("", !0) : (De(), Ee("div", ti, [
560
- t.isPivotTable ? qe("", !0) : (De(), Ee("div", ei, [
561
- Fe(a)
562
- ])),
563
- Ro("div", {
564
- class: Cn(["config-modal-right", t.isPivotTable ? "full" : ""])
565
- }, [
566
- Fe(l, { ref: "dataConfigRef" }, null, 512)
567
- ], 2)
568
- ]));
569
- }
570
- const ni = /* @__PURE__ */ Wo(Jn, [["render", oi], ["__scopeId", "data-v-7cad2039"]]), ii = zo(ni);
571
- function Je(t, e) {
572
- var o = {};
573
- for (var n in t)
574
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (o[n] = t[n]);
575
- if (t != null && typeof Object.getOwnPropertySymbols == "function") {
576
- var r = 0;
577
- for (n = Object.getOwnPropertySymbols(t); r < n.length; r++)
578
- e.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[r]) && (o[n[r]] = t[n[r]]);
579
- }
580
- return o;
581
- }
582
- const Ho = () => {
583
- }, Ve = Object.assign, Yo = Array.isArray, ve = (t) => typeof t == "function", ri = (t) => typeof t == "symbol";
584
- let to;
585
- const ke = () => to || (to = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}), eo = (t) => {
586
- const e = new Set(t);
587
- return e.w = 0, e.n = 0, e;
588
- }, Ko = (t) => (t.w & jt) > 0, qo = (t) => (t.n & jt) > 0;
589
- let oe = 0, jt = 1, ct;
590
- class ai {
591
- constructor(e, o = null, n) {
592
- this.fn = e, this.scheduler = o, this.active = !0, this.deps = [], this.parent = void 0, function(r, i) {
593
- i && i.active && i.effects.push(r);
594
- }(this, n);
595
- }
596
- run() {
597
- if (!this.active)
598
- return this.fn();
599
- let e = ct, o = $t;
600
- for (; e; ) {
601
- if (e === this)
602
- return;
603
- e = e.parent;
604
- }
605
- try {
606
- return this.parent = ct, ct = this, $t = !0, jt = 1 << ++oe, oe <= 30 ? (({ deps: n }) => {
607
- if (n.length)
608
- for (let r = 0; r < n.length; r++)
609
- n[r].w |= jt;
610
- })(this) : oo(this), this.fn();
611
- } finally {
612
- oe <= 30 && ((n) => {
613
- const { deps: r } = n;
614
- if (r.length) {
615
- let i = 0;
616
- for (let a = 0; a < r.length; a++) {
617
- const l = r[a];
618
- Ko(l) && !qo(l) ? l.delete(n) : r[i++] = l, l.w &= ~jt, l.n &= ~jt;
619
- }
620
- r.length = i;
621
- }
622
- })(this), jt = 1 << --oe, ct = this.parent, $t = o, this.parent = void 0, this.deferStop && this.stop();
623
- }
624
- }
625
- stop() {
626
- ct === this ? this.deferStop = !0 : this.active && (oo(this), this.onStop && this.onStop(), this.active = !1);
627
- }
628
- }
629
- function oo(t) {
630
- const { deps: e } = t;
631
- if (e.length) {
632
- for (let o = 0; o < e.length; o++)
633
- e[o].delete(t);
634
- e.length = 0;
635
- }
636
- }
637
- let $t = !0;
638
- const no = [];
639
- function io(t, e) {
640
- let o = !1;
641
- oe <= 30 ? qo(t) || (t.n |= jt, o = !Ko(t)) : o = !t.has(ct), o && (t.add(ct), ct.deps.push(t), process.env.NODE_ENV !== "production" && ct.onTrack && ct.onTrack(Ve({ effect: ct }, e)));
642
- }
643
- function ro(t, e) {
644
- const o = Yo(t) ? t : [...t];
645
- for (const n of o)
646
- n.computed && ao(n, e);
647
- for (const n of o)
648
- n.computed || ao(n, e);
649
- }
650
- function ao(t, e) {
651
- (t !== ct || t.allowRecurse) && (process.env.NODE_ENV !== "production" && t.onTrigger && t.onTrigger(Ve({ effect: t }, e)), t.scheduler ? t.scheduler() : t.run());
652
- }
653
- function Wt(t) {
654
- const e = t && t.__v_raw;
655
- return e ? Wt(e) : t;
656
- }
657
- function Qo(t) {
658
- return !(!t || t.__v_isRef !== !0);
659
- }
660
- function q(t) {
661
- return Qo(t) ? t.value : t;
662
- }
663
- new Set(Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(ri));
664
- class li {
665
- constructor(e, o, n, r) {
666
- this._setter = o, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this._dirty = !0, this.effect = new ai(e, () => {
667
- this._dirty || (this._dirty = !0, function(i, a) {
668
- const l = (i = Wt(i)).dep;
669
- l && (process.env.NODE_ENV !== "production" ? ro(l, { target: i, type: "set", key: "value", newValue: a }) : ro(l));
670
- }(this));
671
- }), this.effect.computed = this, this.effect.active = this._cacheable = !r, this.__v_isReadonly = n;
672
- }
673
- get value() {
674
- const e = Wt(this);
675
- var o;
676
- return o = e, $t && ct && (o = Wt(o), process.env.NODE_ENV !== "production" ? io(o.dep || (o.dep = eo()), { target: o, type: "get", key: "value" }) : io(o.dep || (o.dep = eo()))), !e._dirty && e._cacheable || (e._dirty = !1, e._value = e.effect.run()), e._value;
677
- }
678
- set value(e) {
679
- this._setter(e);
680
- }
681
- }
682
- const Ft = [];
683
- function Ge(t, ...e) {
684
- if (process.env.NODE_ENV === "production")
685
- return;
686
- no.push($t), $t = !1;
687
- const o = Ft.length ? Ft[Ft.length - 1].component : null, n = o && o.appContext.config.warnHandler, r = function() {
688
- let i = Ft[Ft.length - 1];
689
- if (!i)
690
- return [];
691
- const a = [];
692
- for (; i; ) {
693
- const l = a[0];
694
- l && l.vnode === i ? l.recurseCount++ : a.push({ vnode: i, recurseCount: 0 });
695
- const d = i.component && i.component.parent;
696
- i = d && d.vnode;
697
- }
698
- return a;
699
- }();
700
- if (n)
701
- Ue(n, o, 11, [t + e.join(""), o && o.proxy, r.map(({ vnode: i }) => `at <${po(o, i.type)}>`).join(`
702
- `), r]);
703
- else {
704
- const i = [`[Vue warn]: ${t}`, ...e];
705
- r.length && i.push(`
706
- `, ...function(a) {
707
- const l = [];
708
- return a.forEach((d, c) => {
709
- l.push(...c === 0 ? [] : [`
710
- `], ...function({ vnode: p, recurseCount: s }) {
711
- const u = s > 0 ? `... (${s} recursive calls)` : "", h = !!p.component && p.component.parent == null, b = ` at <${po(p.component, p.type, h)}`, m = ">" + u;
712
- return p.props ? [b, ...si(p.props), m] : [b + m];
713
- }(d));
714
- }), l;
715
- }(r)), console.warn(...i);
716
- }
717
- (function() {
718
- const i = no.pop();
719
- $t = i === void 0 || i;
720
- })();
721
- }
722
- function si(t) {
723
- const e = [], o = Object.keys(t);
724
- return o.slice(0, 3).forEach((n) => {
725
- e.push(...Zo(n, t[n]));
726
- }), o.length > 3 && e.push(" ..."), e;
727
- }
728
- function Zo(t, e, o) {
729
- return typeof e == "string" ? (e = JSON.stringify(e), o ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? o ? e : [`${t}=${e}`] : Qo(e) ? (e = Zo(t, Wt(e.value), !0), o ? e : [`${t}=Ref<`, e, ">"]) : ve(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = Wt(e), o ? e : [`${t}=`, e]);
730
- }
731
- const lo = { sp: "serverPrefetch hook", bc: "beforeCreate hook", c: "created hook", bm: "beforeMount hook", m: "mounted hook", bu: "beforeUpdate hook", u: "updated", bum: "beforeUnmount hook", um: "unmounted hook", a: "activated hook", da: "deactivated hook", ec: "errorCaptured hook", rtc: "renderTracked hook", rtg: "renderTriggered hook", 0: "setup function", 1: "render function", 2: "watcher getter", 3: "watcher callback", 4: "watcher cleanup function", 5: "native event handler", 6: "component event handler", 7: "vnode hook", 8: "directive hook", 9: "transition hook", 10: "app errorHandler", 11: "app warnHandler", 12: "ref function", 13: "async component loader", 14: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core" };
732
- function Ue(t, e, o, n) {
733
- let r;
734
- try {
735
- r = n ? t(...n) : t();
736
- } catch (i) {
737
- (function(a, l, d, c = !0) {
738
- const p = l ? l.vnode : null;
739
- if (l) {
740
- let s = l.parent;
741
- const u = l.proxy, h = process.env.NODE_ENV !== "production" ? lo[d] : d;
742
- for (; s; ) {
743
- const m = s.ec;
744
- if (m) {
745
- for (let f = 0; f < m.length; f++)
746
- if (m[f](a, u, h) === !1)
747
- return;
748
- }
749
- s = s.parent;
750
- }
751
- const b = l.appContext.config.errorHandler;
752
- if (b)
753
- return void Ue(b, null, 10, [a, u, h]);
754
- }
755
- (function(s, u, h, b = !0) {
756
- if (process.env.NODE_ENV !== "production") {
757
- const f = lo[u];
758
- if (h && (m = h, Ft.push(m)), Ge("Unhandled error" + (f ? ` during execution of ${f}` : "")), h && Ft.pop(), b)
759
- throw s;
760
- console.error(s);
761
- } else
762
- console.error(s);
763
- var m;
764
- })(a, d, p, c);
765
- })(i, e, o);
766
- }
767
- return r;
768
- }
769
- let ge = !1, Me = !1;
770
- const mt = [];
771
- let It = 0;
772
- const Bt = [];
773
- let bt = null, Nt = 0;
774
- const ci = Promise.resolve();
775
- function ui(t) {
776
- mt.length && mt.includes(t, ge && t.allowRecurse ? It + 1 : It) || (t.id == null ? mt.push(t) : mt.splice(function(e) {
777
- let o = It + 1, n = mt.length;
778
- for (; o < n; ) {
779
- const r = o + n >>> 1, i = mt[r], a = ie(i);
780
- a < e || a === e && i.pre ? o = r + 1 : n = r;
781
- }
782
- return o;
783
- }(t.id), 0, t), Xo());
784
- }
785
- function Xo() {
786
- ge || Me || (Me = !0, ci.then(Jo));
787
- }
788
- const ie = (t) => t.id == null ? 1 / 0 : t.id, di = (t, e) => {
789
- const o = ie(t) - ie(e);
790
- if (o === 0) {
791
- if (t.pre && !e.pre)
792
- return -1;
793
- if (e.pre && !t.pre)
794
- return 1;
795
- }
796
- return o;
797
- };
798
- function Jo(t) {
799
- Me = !1, ge = !0, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), mt.sort(di);
800
- const e = process.env.NODE_ENV !== "production" ? (o) => so(t, o) : Ho;
801
- try {
802
- for (It = 0; It < mt.length; It++) {
803
- const o = mt[It];
804
- if (o && o.active !== !1) {
805
- if (process.env.NODE_ENV !== "production" && e(o))
806
- continue;
807
- Ue(o, null, 14);
808
- }
809
- }
810
- } finally {
811
- It = 0, mt.length = 0, function(o) {
812
- if (Bt.length) {
813
- const n = [...new Set(Bt)];
814
- if (Bt.length = 0, bt)
815
- return void bt.push(...n);
816
- for (bt = n, process.env.NODE_ENV !== "production" && (o = o || /* @__PURE__ */ new Map()), bt.sort((r, i) => ie(r) - ie(i)), Nt = 0; Nt < bt.length; Nt++)
817
- process.env.NODE_ENV !== "production" && so(o, bt[Nt]) || bt[Nt]();
818
- bt = null, Nt = 0;
819
- }
820
- }(t), ge = !1, (mt.length || Bt.length) && Jo(t);
821
- }
822
- }
823
- function so(t, e) {
824
- if (t.has(e)) {
825
- const o = t.get(e);
826
- if (o > 100) {
827
- const n = e.ownerInstance, r = n && tn(n.type);
828
- return Ge(`Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`), !0;
829
- }
830
- t.set(e, o + 1);
831
- } else
832
- t.set(e, 1);
833
- }
834
- const Xt = /* @__PURE__ */ new Set();
835
- process.env.NODE_ENV !== "production" && (ke().__VUE_HMR_RUNTIME__ = { createRecord: Te(function(t, e) {
836
- return de.has(t) ? !1 : (de.set(t, { initialDef: Jt(e), instances: /* @__PURE__ */ new Set() }), !0);
837
- }), rerender: Te(function(t, e) {
838
- const o = de.get(t);
839
- o && (o.initialDef.render = e, [...o.instances].forEach((n) => {
840
- e && (n.render = e, Jt(n.type).render = e), n.renderCache = [], n.update();
841
- }));
842
- }), reload: Te(function(t, e) {
843
- const o = de.get(t);
844
- if (!o)
845
- return;
846
- e = Jt(e), co(o.initialDef, e);
847
- const n = [...o.instances];
848
- for (const i of n) {
849
- const a = Jt(i.type);
850
- Xt.has(a) || (a !== o.initialDef && co(a, e), Xt.add(a)), i.appContext.propsCache.delete(i.type), i.appContext.emitsCache.delete(i.type), i.appContext.optionsCache.delete(i.type), i.ceReload ? (Xt.add(a), i.ceReload(e.styles), Xt.delete(a)) : i.parent ? ui(i.parent.update) : i.appContext.reload ? i.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
851
- }
852
- r = () => {
853
- for (const i of n)
854
- Xt.delete(Jt(i.type));
855
- }, Yo(r) ? Bt.push(...r) : bt && bt.includes(r, r.allowRecurse ? Nt + 1 : Nt) || Bt.push(r), Xo();
856
- var r;
857
- }) });
858
- const de = /* @__PURE__ */ new Map();
859
- function Jt(t) {
860
- return ve(e = t) && "__vccOpts" in e ? t.__vccOpts : t;
861
- var e;
862
- }
863
- function co(t, e) {
864
- Ve(t, e);
865
- for (const o in t)
866
- o === "__file" || o in e || delete t[o];
867
- }
868
- function Te(t) {
869
- return (e, o) => {
870
- try {
871
- return t(e, o);
872
- } catch (n) {
873
- console.error(n), console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.");
874
- }
875
- };
876
- }
877
- let Oe;
878
- process.env.NODE_ENV;
879
- let uo = "__VUE_INSTANCE_SETTERS__";
880
- (Oe = ke()[uo]) || (Oe = ke()[uo] = []), Oe.push((t) => t);
881
- const pi = /(?:^|[-_])(\w)/g, fi = (t) => t.replace(pi, (e) => e.toUpperCase()).replace(/[-_]/g, "");
882
- function tn(t, e = !0) {
883
- return ve(t) ? t.displayName || t.name : t.name || e && t.__name;
884
- }
885
- function po(t, e, o = !1) {
886
- let n = tn(e);
887
- if (!n && e.__file) {
888
- const r = e.__file.match(/([^/\\]+)\.\w+$/);
889
- r && (n = r[1]);
890
- }
891
- if (!n && t && t.parent) {
892
- const r = (i) => {
893
- for (const a in i)
894
- if (i[a] === e)
895
- return a;
896
- };
897
- n = r(t.components || t.parent.type.components) || r(t.appContext.components);
898
- }
899
- return n ? fi(n) : o ? "App" : "Anonymous";
900
- }
901
- const Pt = (t, e) => function(o, n, r = !1) {
902
- let i, a;
903
- const l = ve(o);
904
- return l ? (i = o, a = process.env.NODE_ENV !== "production" ? () => {
905
- console.warn("Write operation failed: computed value is readonly");
906
- } : Ho) : (i = o.get, a = o.set), new li(i, a, l || !a, r);
907
- }(t, 0, !1);
908
- function hi(t) {
909
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
910
- }
911
- var fo, ho = { exports: {} };
912
- function yi() {
913
- return fo || (fo = 1, ho.exports = function() {
914
- var t = 1e3, e = 6e4, o = 36e5, n = "millisecond", r = "second", i = "minute", a = "hour", l = "day", d = "week", c = "month", p = "quarter", s = "year", u = "date", h = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, m = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, f = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
915
- var S = ["th", "st", "nd", "rd"], y = T % 100;
916
- return "[" + T + (S[(y - 20) % 10] || S[y] || S[0]) + "]";
917
- } }, v = function(T, S, y) {
918
- var w = String(T);
919
- return !w || w.length >= S ? T : "" + Array(S + 1 - w.length).join(y) + T;
920
- }, C = { s: v, z: function(T) {
921
- var S = -T.utcOffset(), y = Math.abs(S), w = Math.floor(y / 60), x = y % 60;
922
- return (S <= 0 ? "+" : "-") + v(w, 2, "0") + ":" + v(x, 2, "0");
923
- }, m: function T(S, y) {
924
- if (S.date() < y.date())
925
- return -T(y, S);
926
- var w = 12 * (y.year() - S.year()) + (y.month() - S.month()), x = S.clone().add(w, c), O = y - x < 0, N = S.clone().add(w + (O ? -1 : 1), c);
927
- return +(-(w + (y - x) / (O ? x - N : N - x)) || 0);
928
- }, a: function(T) {
929
- return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
930
- }, p: function(T) {
931
- return { M: c, y: s, w: d, d: l, D: u, h: a, m: i, s: r, ms: n, Q: p }[T] || String(T || "").toLowerCase().replace(/s$/, "");
932
- }, u: function(T) {
933
- return T === void 0;
934
- } }, g = "en", A = {};
935
- A[g] = f;
936
- var j = "$isDayjsObject", E = function(T) {
937
- return T instanceof I || !(!T || !T[j]);
938
- }, P = function T(S, y, w) {
939
- var x;
940
- if (!S)
941
- return g;
942
- if (typeof S == "string") {
943
- var O = S.toLowerCase();
944
- A[O] && (x = O), y && (A[O] = y, x = O);
945
- var N = S.split("-");
946
- if (!x && N.length > 1)
947
- return T(N[0]);
948
- } else {
949
- var k = S.name;
950
- A[k] = S, x = k;
951
- }
952
- return !w && x && (g = x), x || !w && g;
953
- }, F = function(T, S) {
954
- if (E(T))
955
- return T.clone();
956
- var y = typeof S == "object" ? S : {};
957
- return y.date = T, y.args = arguments, new I(y);
958
- }, _ = C;
959
- _.l = P, _.i = E, _.w = function(T, S) {
960
- return F(T, { locale: S.$L, utc: S.$u, x: S.$x, $offset: S.$offset });
961
- };
962
- var I = function() {
963
- function T(y) {
964
- this.$L = P(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[j] = !0;
965
- }
966
- var S = T.prototype;
967
- return S.parse = function(y) {
968
- this.$d = function(w) {
969
- var x = w.date, O = w.utc;
970
- if (x === null)
971
- return /* @__PURE__ */ new Date(NaN);
972
- if (_.u(x))
973
- return /* @__PURE__ */ new Date();
974
- if (x instanceof Date)
975
- return new Date(x);
976
- if (typeof x == "string" && !/Z$/i.test(x)) {
977
- var N = x.match(b);
978
- if (N) {
979
- var k = N[2] - 1 || 0, R = (N[7] || "0").substring(0, 3);
980
- return O ? new Date(Date.UTC(N[1], k, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, R)) : new Date(N[1], k, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, R);
981
- }
982
- }
983
- return new Date(x);
984
- }(y), this.init();
985
- }, S.init = function() {
986
- var y = this.$d;
987
- this.$y = y.getFullYear(), this.$M = y.getMonth(), this.$D = y.getDate(), this.$W = y.getDay(), this.$H = y.getHours(), this.$m = y.getMinutes(), this.$s = y.getSeconds(), this.$ms = y.getMilliseconds();
988
- }, S.$utils = function() {
989
- return _;
990
- }, S.isValid = function() {
991
- return this.$d.toString() !== h;
992
- }, S.isSame = function(y, w) {
993
- var x = F(y);
994
- return this.startOf(w) <= x && x <= this.endOf(w);
995
- }, S.isAfter = function(y, w) {
996
- return F(y) < this.startOf(w);
997
- }, S.isBefore = function(y, w) {
998
- return this.endOf(w) < F(y);
999
- }, S.$g = function(y, w, x) {
1000
- return _.u(y) ? this[w] : this.set(x, y);
1001
- }, S.unix = function() {
1002
- return Math.floor(this.valueOf() / 1e3);
1003
- }, S.valueOf = function() {
1004
- return this.$d.getTime();
1005
- }, S.startOf = function(y, w) {
1006
- var x = this, O = !!_.u(w) || w, N = _.p(y), k = function(ut, it) {
1007
- var X = _.w(x.$u ? Date.UTC(x.$y, it, ut) : new Date(x.$y, it, ut), x);
1008
- return O ? X : X.endOf(l);
1009
- }, R = function(ut, it) {
1010
- return _.w(x.toDate()[ut].apply(x.toDate("s"), (O ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(it)), x);
1011
- }, B = this.$W, Q = this.$M, ot = this.$D, Tt = "set" + (this.$u ? "UTC" : "");
1012
- switch (N) {
1013
- case s:
1014
- return O ? k(1, 0) : k(31, 11);
1015
- case c:
1016
- return O ? k(1, Q) : k(0, Q + 1);
1017
- case d:
1018
- var Y = this.$locale().weekStart || 0, Ot = (B < Y ? B + 7 : B) - Y;
1019
- return k(O ? ot - Ot : ot + (6 - Ot), Q);
1020
- case l:
1021
- case u:
1022
- return R(Tt + "Hours", 0);
1023
- case a:
1024
- return R(Tt + "Minutes", 1);
1025
- case i:
1026
- return R(Tt + "Seconds", 2);
1027
- case r:
1028
- return R(Tt + "Milliseconds", 3);
1029
- default:
1030
- return this.clone();
1031
- }
1032
- }, S.endOf = function(y) {
1033
- return this.startOf(y, !1);
1034
- }, S.$set = function(y, w) {
1035
- var x, O = _.p(y), N = "set" + (this.$u ? "UTC" : ""), k = (x = {}, x[l] = N + "Date", x[u] = N + "Date", x[c] = N + "Month", x[s] = N + "FullYear", x[a] = N + "Hours", x[i] = N + "Minutes", x[r] = N + "Seconds", x[n] = N + "Milliseconds", x)[O], R = O === l ? this.$D + (w - this.$W) : w;
1036
- if (O === c || O === s) {
1037
- var B = this.clone().set(u, 1);
1038
- B.$d[k](R), B.init(), this.$d = B.set(u, Math.min(this.$D, B.daysInMonth())).$d;
1039
- } else
1040
- k && this.$d[k](R);
1041
- return this.init(), this;
1042
- }, S.set = function(y, w) {
1043
- return this.clone().$set(y, w);
1044
- }, S.get = function(y) {
1045
- return this[_.p(y)]();
1046
- }, S.add = function(y, w) {
1047
- var x, O = this;
1048
- y = Number(y);
1049
- var N = _.p(w), k = function(Q) {
1050
- var ot = F(O);
1051
- return _.w(ot.date(ot.date() + Math.round(Q * y)), O);
1052
- };
1053
- if (N === c)
1054
- return this.set(c, this.$M + y);
1055
- if (N === s)
1056
- return this.set(s, this.$y + y);
1057
- if (N === l)
1058
- return k(1);
1059
- if (N === d)
1060
- return k(7);
1061
- var R = (x = {}, x[i] = e, x[a] = o, x[r] = t, x)[N] || 1, B = this.$d.getTime() + y * R;
1062
- return _.w(B, this);
1063
- }, S.subtract = function(y, w) {
1064
- return this.add(-1 * y, w);
1065
- }, S.format = function(y) {
1066
- var w = this, x = this.$locale();
1067
- if (!this.isValid())
1068
- return x.invalidDate || h;
1069
- var O = y || "YYYY-MM-DDTHH:mm:ssZ", N = _.z(this), k = this.$H, R = this.$m, B = this.$M, Q = x.weekdays, ot = x.months, Tt = x.meridiem, Y = function(it, X, xt, vt) {
1070
- return it && (it[X] || it(w, O)) || xt[X].slice(0, vt);
1071
- }, Ot = function(it) {
1072
- return _.s(k % 12 || 12, it, "0");
1073
- }, ut = Tt || function(it, X, xt) {
1074
- var vt = it < 12 ? "AM" : "PM";
1075
- return xt ? vt.toLowerCase() : vt;
1076
- };
1077
- return O.replace(m, function(it, X) {
1078
- return X || function(xt) {
1079
- switch (xt) {
1080
- case "YY":
1081
- return String(w.$y).slice(-2);
1082
- case "YYYY":
1083
- return _.s(w.$y, 4, "0");
1084
- case "M":
1085
- return B + 1;
1086
- case "MM":
1087
- return _.s(B + 1, 2, "0");
1088
- case "MMM":
1089
- return Y(x.monthsShort, B, ot, 3);
1090
- case "MMMM":
1091
- return Y(ot, B);
1092
- case "D":
1093
- return w.$D;
1094
- case "DD":
1095
- return _.s(w.$D, 2, "0");
1096
- case "d":
1097
- return String(w.$W);
1098
- case "dd":
1099
- return Y(x.weekdaysMin, w.$W, Q, 2);
1100
- case "ddd":
1101
- return Y(x.weekdaysShort, w.$W, Q, 3);
1102
- case "dddd":
1103
- return Q[w.$W];
1104
- case "H":
1105
- return String(k);
1106
- case "HH":
1107
- return _.s(k, 2, "0");
1108
- case "h":
1109
- return Ot(1);
1110
- case "hh":
1111
- return Ot(2);
1112
- case "a":
1113
- return ut(k, R, !0);
1114
- case "A":
1115
- return ut(k, R, !1);
1116
- case "m":
1117
- return String(R);
1118
- case "mm":
1119
- return _.s(R, 2, "0");
1120
- case "s":
1121
- return String(w.$s);
1122
- case "ss":
1123
- return _.s(w.$s, 2, "0");
1124
- case "SSS":
1125
- return _.s(w.$ms, 3, "0");
1126
- case "Z":
1127
- return N;
1128
- }
1129
- return null;
1130
- }(it) || N.replace(":", "");
1131
- });
1132
- }, S.utcOffset = function() {
1133
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1134
- }, S.diff = function(y, w, x) {
1135
- var O, N = this, k = _.p(w), R = F(y), B = (R.utcOffset() - this.utcOffset()) * e, Q = this - R, ot = function() {
1136
- return _.m(N, R);
1137
- };
1138
- switch (k) {
1139
- case s:
1140
- O = ot() / 12;
1141
- break;
1142
- case c:
1143
- O = ot();
1144
- break;
1145
- case p:
1146
- O = ot() / 3;
1147
- break;
1148
- case d:
1149
- O = (Q - B) / 6048e5;
1150
- break;
1151
- case l:
1152
- O = (Q - B) / 864e5;
1153
- break;
1154
- case a:
1155
- O = Q / o;
1156
- break;
1157
- case i:
1158
- O = Q / e;
1159
- break;
1160
- case r:
1161
- O = Q / t;
1162
- break;
1163
- default:
1164
- O = Q;
1165
- }
1166
- return x ? O : _.a(O);
1167
- }, S.daysInMonth = function() {
1168
- return this.endOf(c).$D;
1169
- }, S.$locale = function() {
1170
- return A[this.$L];
1171
- }, S.locale = function(y, w) {
1172
- if (!y)
1173
- return this.$L;
1174
- var x = this.clone(), O = P(y, w, !0);
1175
- return O && (x.$L = O), x;
1176
- }, S.clone = function() {
1177
- return _.w(this.$d, this);
1178
- }, S.toDate = function() {
1179
- return new Date(this.valueOf());
1180
- }, S.toJSON = function() {
1181
- return this.isValid() ? this.toISOString() : null;
1182
- }, S.toISOString = function() {
1183
- return this.$d.toISOString();
1184
- }, S.toString = function() {
1185
- return this.$d.toUTCString();
1186
- }, T;
1187
- }(), et = I.prototype;
1188
- return F.prototype = et, [["$ms", n], ["$s", r], ["$m", i], ["$H", a], ["$W", l], ["$M", c], ["$y", s], ["$D", u]].forEach(function(T) {
1189
- et[T[1]] = function(S) {
1190
- return this.$g(S, T[0], T[1]);
1191
- };
1192
- }), F.extend = function(T, S) {
1193
- return T.$i || (T(S, I, F), T.$i = !0), F;
1194
- }, F.locale = P, F.isDayjs = E, F.unix = function(T) {
1195
- return F(1e3 * T);
1196
- }, F.en = A[g], F.Ls = A, F.p = {}, F;
1197
- }()), ho.exports;
1198
- }
1199
- var pt = hi(yi()), en = typeof global == "object" && global && global.Object === Object && global, mi = typeof self == "object" && self && self.Object === Object && self, _t = en || mi || Function("return this")(), Kt = _t.Symbol, on = Object.prototype, gi = on.hasOwnProperty, bi = on.toString, te = Kt ? Kt.toStringTag : void 0, xi = Object.prototype.toString, yo = Kt ? Kt.toStringTag : void 0;
1200
- function ae(t) {
1201
- return t == null ? t === void 0 ? "[object Undefined]" : "[object Null]" : yo && yo in Object(t) ? function(e) {
1202
- var o = gi.call(e, te), n = e[te];
1203
- try {
1204
- e[te] = void 0;
1205
- var r = !0;
1206
- } catch {
1207
- }
1208
- var i = bi.call(e);
1209
- return r && (o ? e[te] = n : delete e[te]), i;
1210
- }(t) : function(e) {
1211
- return xi.call(e);
1212
- }(t);
1213
- }
1214
- function le(t) {
1215
- return t != null && typeof t == "object";
1216
- }
1217
- var Be = Array.isArray;
1218
- function Se(t) {
1219
- var e = typeof t;
1220
- return t != null && (e == "object" || e == "function");
1221
- }
1222
- function nn(t) {
1223
- if (!Se(t))
1224
- return !1;
1225
- var e = ae(t);
1226
- return e == "[object Function]" || e == "[object GeneratorFunction]" || e == "[object AsyncFunction]" || e == "[object Proxy]";
1227
- }
1228
- var mo, Le = _t["__core-js_shared__"], go = (mo = /[^.]+$/.exec(Le && Le.keys && Le.keys.IE_PROTO || "")) ? "Symbol(src)_1." + mo : "", vi = Function.prototype.toString;
1229
- function Rt(t) {
1230
- if (t != null) {
1231
- try {
1232
- return vi.call(t);
1233
- } catch {
1234
- }
1235
- try {
1236
- return t + "";
1237
- } catch {
1238
- }
1239
- }
1240
- return "";
1241
- }
1242
- var Si = /^\[object .+?Constructor\]$/, Ai = Function.prototype, wi = Object.prototype, Ci = Ai.toString, _i = wi.hasOwnProperty, Ti = RegExp("^" + Ci.call(_i).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
1243
- function Oi(t) {
1244
- return !(!Se(t) || (e = t, go && go in e)) && (nn(t) ? Ti : Si).test(Rt(t));
1245
- var e;
1246
- }
1247
- function zt(t, e) {
1248
- var o = function(n, r) {
1249
- return n == null ? void 0 : n[r];
1250
- }(t, e);
1251
- return Oi(o) ? o : void 0;
1252
- }
1253
- var $e = zt(_t, "WeakMap"), bo = Object.create, Li = function() {
1254
- function t() {
1255
- }
1256
- return function(e) {
1257
- if (!Se(e))
1258
- return {};
1259
- if (bo)
1260
- return bo(e);
1261
- t.prototype = e;
1262
- var o = new t();
1263
- return t.prototype = void 0, o;
1264
- };
1265
- }(), xo = function() {
1266
- try {
1267
- var t = zt(Object, "defineProperty");
1268
- return t({}, "", {}), t;
1269
- } catch {
1270
- }
1271
- }(), Ni = /^(?:0|[1-9]\d*)$/;
1272
- function ji(t, e) {
1273
- var o = typeof t;
1274
- return !!(e = e ?? 9007199254740991) && (o == "number" || o != "symbol" && Ni.test(t)) && t > -1 && t % 1 == 0 && t < e;
1275
- }
1276
- function rn(t, e) {
1277
- return t === e || t != t && e != e;
1278
- }
1279
- var Ii = Object.prototype.hasOwnProperty;
1280
- function Di(t, e, o) {
1281
- var n = t[e];
1282
- Ii.call(t, e) && rn(n, o) && (o !== void 0 || e in t) || function(r, i, a) {
1283
- i == "__proto__" && xo ? xo(r, i, { configurable: !0, enumerable: !0, value: a, writable: !0 }) : r[i] = a;
1284
- }(t, e, o);
1285
- }
1286
- function an(t) {
1287
- return typeof t == "number" && t > -1 && t % 1 == 0 && t <= 9007199254740991;
1288
- }
1289
- var Ei = Object.prototype;
1290
- function ln(t) {
1291
- var e = t && t.constructor;
1292
- return t === (typeof e == "function" && e.prototype || Ei);
1293
- }
1294
- function vo(t) {
1295
- return le(t) && ae(t) == "[object Arguments]";
1296
- }
1297
- var sn = Object.prototype, Fi = sn.hasOwnProperty, ki = sn.propertyIsEnumerable, Mi = vo(function() {
1298
- return arguments;
1299
- }()) ? vo : function(t) {
1300
- return le(t) && Fi.call(t, "callee") && !ki.call(t, "callee");
1301
- }, cn = typeof exports == "object" && exports && !exports.nodeType && exports, So = cn && typeof module == "object" && module && !module.nodeType && module, Ao = So && So.exports === cn ? _t.Buffer : void 0, un = (Ao ? Ao.isBuffer : void 0) || function() {
1302
- return !1;
1303
- }, K = {};
1304
- function We(t) {
1305
- return function(e) {
1306
- return t(e);
1307
- };
1308
- }
1309
- K["[object Float32Array]"] = K["[object Float64Array]"] = K["[object Int8Array]"] = K["[object Int16Array]"] = K["[object Int32Array]"] = K["[object Uint8Array]"] = K["[object Uint8ClampedArray]"] = K["[object Uint16Array]"] = K["[object Uint32Array]"] = !0, K["[object Arguments]"] = K["[object Array]"] = K["[object ArrayBuffer]"] = K["[object Boolean]"] = K["[object DataView]"] = K["[object Date]"] = K["[object Error]"] = K["[object Function]"] = K["[object Map]"] = K["[object Number]"] = K["[object Object]"] = K["[object RegExp]"] = K["[object Set]"] = K["[object String]"] = K["[object WeakMap]"] = !1;
1310
- var dn = typeof exports == "object" && exports && !exports.nodeType && exports, ne = dn && typeof module == "object" && module && !module.nodeType && module, Ne = ne && ne.exports === dn && en.process, qt = function() {
1311
- try {
1312
- var t = ne && ne.require && ne.require("util").types;
1313
- return t || Ne && Ne.binding && Ne.binding("util");
1314
- } catch {
1315
- }
1316
- }(), wo = qt && qt.isTypedArray, $i = wo ? We(wo) : function(t) {
1317
- return le(t) && an(t.length) && !!K[ae(t)];
1318
- }, Pi = Object.prototype.hasOwnProperty;
1319
- function Ri(t, e) {
1320
- var o = Be(t), n = !o && Mi(t), r = !o && !n && un(t), i = !o && !n && !r && $i(t), a = o || n || r || i, l = a ? function(p, s) {
1321
- for (var u = -1, h = Array(p); ++u < p; )
1322
- h[u] = s(u);
1323
- return h;
1324
- }(t.length, String) : [], d = l.length;
1325
- for (var c in t)
1326
- !Pi.call(t, c) || a && (c == "length" || r && (c == "offset" || c == "parent") || i && (c == "buffer" || c == "byteLength" || c == "byteOffset") || ji(c, d)) || l.push(c);
1327
- return l;
1328
- }
1329
- function pn(t, e) {
1330
- return function(o) {
1331
- return t(e(o));
1332
- };
1333
- }
1334
- var zi = pn(Object.keys, Object), Vi = Object.prototype.hasOwnProperty;
1335
- function Gi(t) {
1336
- return (e = t) != null && an(e.length) && !nn(e) ? Ri(t) : function(o) {
1337
- if (!ln(o))
1338
- return zi(o);
1339
- var n = [];
1340
- for (var r in Object(o))
1341
- Vi.call(o, r) && r != "constructor" && n.push(r);
1342
- return n;
1343
- }(t);
1344
- var e;
1345
- }
1346
- var ee = zt(Object, "create"), Ui = Object.prototype.hasOwnProperty, Bi = Object.prototype.hasOwnProperty;
1347
- function kt(t) {
1348
- var e = -1, o = t == null ? 0 : t.length;
1349
- for (this.clear(); ++e < o; ) {
1350
- var n = t[e];
1351
- this.set(n[0], n[1]);
1352
- }
1353
- }
1354
- function pe(t, e) {
1355
- for (var o = t.length; o--; )
1356
- if (rn(t[o][0], e))
1357
- return o;
1358
- return -1;
1359
- }
1360
- kt.prototype.clear = function() {
1361
- this.__data__ = ee ? ee(null) : {}, this.size = 0;
1362
- }, kt.prototype.delete = function(t) {
1363
- var e = this.has(t) && delete this.__data__[t];
1364
- return this.size -= e ? 1 : 0, e;
1365
- }, kt.prototype.get = function(t) {
1366
- var e = this.__data__;
1367
- if (ee) {
1368
- var o = e[t];
1369
- return o === "__lodash_hash_undefined__" ? void 0 : o;
1370
- }
1371
- return Ui.call(e, t) ? e[t] : void 0;
1372
- }, kt.prototype.has = function(t) {
1373
- var e = this.__data__;
1374
- return ee ? e[t] !== void 0 : Bi.call(e, t);
1375
- }, kt.prototype.set = function(t, e) {
1376
- var o = this.__data__;
1377
- return this.size += this.has(t) ? 0 : 1, o[t] = ee && e === void 0 ? "__lodash_hash_undefined__" : e, this;
1378
- };
1379
- var Wi = Array.prototype.splice;
1380
- function Ct(t) {
1381
- var e = -1, o = t == null ? 0 : t.length;
1382
- for (this.clear(); ++e < o; ) {
1383
- var n = t[e];
1384
- this.set(n[0], n[1]);
1385
- }
1386
- }
1387
- Ct.prototype.clear = function() {
1388
- this.__data__ = [], this.size = 0;
1389
- }, Ct.prototype.delete = function(t) {
1390
- var e = this.__data__, o = pe(e, t);
1391
- return !(o < 0) && (o == e.length - 1 ? e.pop() : Wi.call(e, o, 1), --this.size, !0);
1392
- }, Ct.prototype.get = function(t) {
1393
- var e = this.__data__, o = pe(e, t);
1394
- return o < 0 ? void 0 : e[o][1];
1395
- }, Ct.prototype.has = function(t) {
1396
- return pe(this.__data__, t) > -1;
1397
- }, Ct.prototype.set = function(t, e) {
1398
- var o = this.__data__, n = pe(o, t);
1399
- return n < 0 ? (++this.size, o.push([t, e])) : o[n][1] = e, this;
1400
- };
1401
- var re = zt(_t, "Map");
1402
- function fe(t, e) {
1403
- var o, n, r = t.__data__;
1404
- return ((n = typeof (o = e)) == "string" || n == "number" || n == "symbol" || n == "boolean" ? o !== "__proto__" : o === null) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
1405
- }
1406
- function Gt(t) {
1407
- var e = -1, o = t == null ? 0 : t.length;
1408
- for (this.clear(); ++e < o; ) {
1409
- var n = t[e];
1410
- this.set(n[0], n[1]);
1411
- }
1412
- }
1413
- Gt.prototype.clear = function() {
1414
- this.size = 0, this.__data__ = { hash: new kt(), map: new (re || Ct)(), string: new kt() };
1415
- }, Gt.prototype.delete = function(t) {
1416
- var e = fe(this, t).delete(t);
1417
- return this.size -= e ? 1 : 0, e;
1418
- }, Gt.prototype.get = function(t) {
1419
- return fe(this, t).get(t);
1420
- }, Gt.prototype.has = function(t) {
1421
- return fe(this, t).has(t);
1422
- }, Gt.prototype.set = function(t, e) {
1423
- var o = fe(this, t), n = o.size;
1424
- return o.set(t, e), this.size += o.size == n ? 0 : 1, this;
1425
- };
1426
- var Hi = pn(Object.getPrototypeOf, Object);
1427
- function Ut(t) {
1428
- var e = this.__data__ = new Ct(t);
1429
- this.size = e.size;
1430
- }
1431
- Ut.prototype.clear = function() {
1432
- this.__data__ = new Ct(), this.size = 0;
1433
- }, Ut.prototype.delete = function(t) {
1434
- var e = this.__data__, o = e.delete(t);
1435
- return this.size = e.size, o;
1436
- }, Ut.prototype.get = function(t) {
1437
- return this.__data__.get(t);
1438
- }, Ut.prototype.has = function(t) {
1439
- return this.__data__.has(t);
1440
- }, Ut.prototype.set = function(t, e) {
1441
- var o = this.__data__;
1442
- if (o instanceof Ct) {
1443
- var n = o.__data__;
1444
- if (!re || n.length < 199)
1445
- return n.push([t, e]), this.size = ++o.size, this;
1446
- o = this.__data__ = new Gt(n);
1447
- }
1448
- return o.set(t, e), this.size = o.size, this;
1449
- };
1450
- var Yi = Object.prototype.propertyIsEnumerable, Co = Object.getOwnPropertySymbols, Ki = Co ? function(t) {
1451
- return t == null ? [] : (t = Object(t), function(e, o) {
1452
- for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r; ) {
1453
- var l = e[n];
1454
- o(l, n, e) && (a[i++] = l);
1455
- }
1456
- return a;
1457
- }(Co(t), function(e) {
1458
- return Yi.call(t, e);
1459
- }));
1460
- } : function() {
1461
- return [];
1462
- };
1463
- function qi(t) {
1464
- return function(e, o, n) {
1465
- var r = o(e);
1466
- return Be(e) ? r : function(i, a) {
1467
- for (var l = -1, d = a.length, c = i.length; ++l < d; )
1468
- i[c + l] = a[l];
1469
- return i;
1470
- }(r, n(e));
1471
- }(t, Gi, Ki);
1472
- }
1473
- var Pe = zt(_t, "DataView"), Re = zt(_t, "Promise"), ze = zt(_t, "Set"), _o = "[object Map]", To = "[object Promise]", Oo = "[object Set]", Lo = "[object WeakMap]", No = "[object DataView]", Qi = Rt(Pe), Zi = Rt(re), Xi = Rt(Re), Ji = Rt(ze), tr = Rt($e), wt = ae;
1474
- (Pe && wt(new Pe(new ArrayBuffer(1))) != No || re && wt(new re()) != _o || Re && wt(Re.resolve()) != To || ze && wt(new ze()) != Oo || $e && wt(new $e()) != Lo) && (wt = function(t) {
1475
- var e = ae(t), o = e == "[object Object]" ? t.constructor : void 0, n = o ? Rt(o) : "";
1476
- if (n)
1477
- switch (n) {
1478
- case Qi:
1479
- return No;
1480
- case Zi:
1481
- return _o;
1482
- case Xi:
1483
- return To;
1484
- case Ji:
1485
- return Oo;
1486
- case tr:
1487
- return Lo;
1488
- }
1489
- return e;
1490
- });
1491
- var er = Object.prototype.hasOwnProperty, jo = _t.Uint8Array;
1492
- function je(t) {
1493
- var e = new t.constructor(t.byteLength);
1494
- return new jo(e).set(new jo(t)), e;
1495
- }
1496
- var or = /\w*$/, Io = Kt ? Kt.prototype : void 0, Do = Io ? Io.valueOf : void 0;
1497
- function nr(t, e, o) {
1498
- var n, r, i, a, l, d = t.constructor;
1499
- switch (e) {
1500
- case "[object ArrayBuffer]":
1501
- return je(t);
1502
- case "[object Boolean]":
1503
- case "[object Date]":
1504
- return new d(+t);
1505
- case "[object DataView]":
1506
- return l = je((a = t).buffer), new a.constructor(l, a.byteOffset, a.byteLength);
1507
- case "[object Float32Array]":
1508
- case "[object Float64Array]":
1509
- case "[object Int8Array]":
1510
- case "[object Int16Array]":
1511
- case "[object Int32Array]":
1512
- case "[object Uint8Array]":
1513
- case "[object Uint8ClampedArray]":
1514
- case "[object Uint16Array]":
1515
- case "[object Uint32Array]":
1516
- return function(c) {
1517
- var p = je(c.buffer);
1518
- return new c.constructor(p, c.byteOffset, c.length);
1519
- }(t);
1520
- case "[object Map]":
1521
- case "[object Set]":
1522
- return new d();
1523
- case "[object Number]":
1524
- case "[object String]":
1525
- return new d(t);
1526
- case "[object RegExp]":
1527
- return (i = new (r = t).constructor(r.source, or.exec(r))).lastIndex = r.lastIndex, i;
1528
- case "[object Symbol]":
1529
- return n = t, Do ? Object(Do.call(n)) : {};
1530
- }
1531
- }
1532
- var Eo = qt && qt.isMap, ir = Eo ? We(Eo) : function(t) {
1533
- return le(t) && wt(t) == "[object Map]";
1534
- }, Fo = qt && qt.isSet, rr = Fo ? We(Fo) : function(t) {
1535
- return le(t) && wt(t) == "[object Set]";
1536
- }, fn = "[object Arguments]", hn = "[object Function]", yn = "[object Object]", H = {};
1537
- function me(t, e, o, n, r, i) {
1538
- var a;
1539
- if (a !== void 0)
1540
- return a;
1541
- if (!Se(t))
1542
- return t;
1543
- var l = Be(t);
1544
- if (l)
1545
- a = function(u) {
1546
- var h = u.length, b = new u.constructor(h);
1547
- return h && typeof u[0] == "string" && er.call(u, "index") && (b.index = u.index, b.input = u.input), b;
1548
- }(t);
1549
- else {
1550
- var d = wt(t), c = d == hn || d == "[object GeneratorFunction]";
1551
- if (un(t))
1552
- return t.slice();
1553
- if (d == yn || d == fn || c && !r)
1554
- a = c ? {} : function(u) {
1555
- return typeof u.constructor != "function" || ln(u) ? {} : Li(Hi(u));
1556
- }(t);
1557
- else {
1558
- if (!H[d])
1559
- return r ? t : {};
1560
- a = nr(t, d);
1561
- }
1562
- }
1563
- i || (i = new Ut());
1564
- var p = i.get(t);
1565
- if (p)
1566
- return p;
1567
- i.set(t, a), rr(t) ? t.forEach(function(u) {
1568
- a.add(me(u, e, o, u, t, i));
1569
- }) : ir(t) && t.forEach(function(u, h) {
1570
- a.set(h, me(u, e, o, h, t, i));
1571
- });
1572
- var s = l ? void 0 : qi(t);
1573
- return function(u, h) {
1574
- for (var b = -1, m = u == null ? 0 : u.length; ++b < m && h(u[b], b, u) !== !1; )
1575
- ;
1576
- }(s || t, function(u, h) {
1577
- s && (u = t[h = u]), Di(a, h, me(u, e, o, h, t, i));
1578
- }), a;
1579
- }
1580
- H[fn] = H["[object Array]"] = H["[object ArrayBuffer]"] = H["[object DataView]"] = H["[object Boolean]"] = H["[object Date]"] = H["[object Float32Array]"] = H["[object Float64Array]"] = H["[object Int8Array]"] = H["[object Int16Array]"] = H["[object Int32Array]"] = H["[object Map]"] = H["[object Number]"] = H[yn] = H["[object RegExp]"] = H["[object Set]"] = H["[object String]"] = H["[object Symbol]"] = H["[object Uint8Array]"] = H["[object Uint8ClampedArray]"] = H["[object Uint16Array]"] = H["[object Uint32Array]"] = !0, H["[object Error]"] = H[hn] = H["[object WeakMap]"] = !1;
1581
- function be(t) {
1582
- return me(t, 5);
1583
- }
1584
- const mn = (t, e) => {
1585
- const o = Object.assign({ dayjs: pt }, e);
1586
- let n = "";
1587
- const r = [];
1588
- for (const l in o)
1589
- n += `${l},`, r.push(o[l]);
1590
- n = n.replace(/,$/, "");
1591
- const i = `function (${n}){return ${t}}`;
1592
- let a;
1593
- try {
1594
- a = Function(`"use strict";return (${i})`)()(...r);
1595
- } catch {
1596
- return t;
1597
- }
1598
- return a;
1599
- }, Ht = (t = "", { textData: e, codeData: o } = {}, { useNewline: n = !1, useSpace: r = !1 } = {}) => {
1600
- const i = window.config || {}, a = Object.assign(Object.assign({}, i), e), l = String(t || "").match(/\{(.+?)\}/g);
1601
- if (l == null || l.length === 0)
1602
- return t;
1603
- for (let d = 0; d < l.length; d++) {
1604
- const c = l[d];
1605
- let p = c.slice(1, -1).trim();
1606
- const s = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, u = p.match(s);
1607
- for (let h = 0; h < u.length; h++) {
1608
- const b = u[h], m = a[b];
1609
- m != null && typeof m != "function" && (p = p.replace(b, m));
1610
- }
1611
- (/\(.*\)/g.test(p) || /[+/\\*]/g.test(p)) && (p = mn(p, o)), t = t.replace(c, p);
1612
- }
1613
- return n && (t = t == null ? void 0 : t.replace(/\n|\\n/g, "<br/>")), r && (t = t == null ? void 0 : t.replace(/\s{2,}?/g, "&nbsp;&nbsp;")), t = t.replace(/Qfw\((.*?)\)/, (d, c) => e != null && e.Qfw ? e == null ? void 0 : e.Qfw(c) : c);
1614
- }, tt = (t, e) => {
1615
- if (typeof t == "string" && typeof e == "string")
1616
- return t.toLocaleLowerCase().includes(e.toLocaleLowerCase());
1617
- if (typeof t == "string" && Array.isArray(e)) {
1618
- const o = e.length;
1619
- for (let n = 0; n < o; n++) {
1620
- const r = e[n];
1621
- if (typeof r == "string" && t.toLocaleLowerCase().includes(r.toLocaleLowerCase()))
1622
- return !0;
1623
- }
1624
- }
1625
- return !1;
1626
- }, st = (t, e) => Object.prototype.hasOwnProperty.call(t, e), xe = (t) => {
1627
- const e = [];
1628
- for (const o of t)
1629
- o.conditions ? e.push(...xe(o.conditions)) : (o == null ? void 0 : o.dataType) === "component" && e.push(o);
1630
- return e;
1631
- };
1632
- function ar(t) {
1633
- let e = "", o = "", n = "", r = "";
1634
- t.indexOf(".") > -1 ? (o = t.split(".")[0], n = t.split(".")[1]) : o = t;
1635
- let i = 0, a = 0;
1636
- for (a = o.length - 1; a >= 0; )
1637
- i % 3 == 0 && i !== 0 ? o[a] === "-" ? e += o[a] : e += "," + o[a] : e += o[a], a--, i++;
1638
- return e = e.split("").reverse().join(""), r = t.indexOf(".") > -1 ? e + "." + n : e, r;
1639
- }
1640
- const lr = ["table", "bar", "combograph", "line", "pie", "radar", "scatter", "list", "circulate"];
1641
- let gn = /* @__PURE__ */ new Map(), bn = [];
1642
- const sr = ["keyValue", "conditionKey", "conditionLabel", "conditionName", "conditionValueType", "customValue", "id", "keyName"], Ae = (t) => gn.get(t), ko = (t, e) => {
1643
- if (e)
1644
- st(t, "indexCode") && (t.hrpIndexCode = t.indexCode, delete t.indexCode), st(t, "indexCodeNum") && (t.hrpIndexCodeNum = t.indexCodeNum, delete t.indexCodeNum), st(t, "dataType") && delete t.dataType, t.fieldValue || delete t.fieldValue;
1645
- else {
1646
- const { calcWays: o = [], dateCalcTypes: n = [], activeKey: r, componentId: i = "" } = t;
1647
- if (r === 5 && (o != null && o.length) && (n != null && n.length) && i) {
1648
- const a = o[0].split("-");
1649
- (a == null ? void 0 : a.length) > 1 && a[0] === "rangeValue" && (t.calcWays = ((l, d = {}) => {
1650
- const { around: c, unit: p, id: s } = l;
1651
- let u = "";
1652
- const { pageMode: h = "", componentList: b = [] } = (d == null ? void 0 : d.graphicConfig) || {};
1653
- let m = null, f = null;
1654
- if (h === "design") {
1655
- const v = b == null ? void 0 : b.find((F) => F.id === s);
1656
- if (!v)
1657
- return [];
1658
- const { interval: C, intervalUnit: g, startTime: A, endTime: j, operate: E, useCurrentTime: P } = v || {};
1659
- if (P && (m = pt().subtract(C, g), f = pt()), A && (m = pt(A)), j && (f = pt(j)), E) {
1660
- const { type: F, value: _, mode: I } = E;
1661
- switch (F) {
1662
- case "add":
1663
- m = m && m.add(_, I), f = f && f.add(_, I);
1664
- break;
1665
- case "minus":
1666
- m = m && m.subtract(_, I), f = f && f.subtract(_, I);
1667
- }
1668
- }
1669
- } else {
1670
- const v = Ae(s) || {};
1671
- q(v.startTime) && (m = pt(q(v.startTime))), q(v.endTime) && (f = pt(q(v.endTime)));
1672
- }
1673
- return m && f && (u = `${c === "before" ? "-" : ""}${f.diff(m, p.toLowerCase()) + 1}`), u ? [u] : [];
1674
- })({ around: a[1], unit: n[0], id: i })), delete t.radioValue;
1675
- }
1676
- if (st(t, "dataType")) {
1677
- if (t.fieldType === "DATE" && (t.label = t.fieldName), t.dataType === "component")
1678
- if (t.fieldValue === "PARENT") {
1679
- let a = t.modelKey;
1680
- a && t.prop && (a += `-${t.prop}`), t.fieldValue = "${" + a + "}";
1681
- } else
1682
- t.fieldValue = "${" + se(t.componentId, t.fieldValue) + "}";
1683
- delete t.dataType;
1684
- }
1685
- st(t, "activeKey") && delete t.activeKey, st(t, "radioValue") && delete t.radioValue, st(t, "indexCode") && (t.hrpIndexCode = t.indexCode, delete t.indexCode), st(t, "indexCodeNum") && (t.hrpIndexCodeNum = t.indexCodeNum, delete t.indexCodeNum), t.dataType !== "component" && t.useCurrentTime && (t.fieldValue = pt().format(t.dateFormat)), st(t, "modelKey") && delete t.modelKey, st(t, "prop") && delete t.prop, delete t.useCurrentTime;
1686
- }
1687
- }, Mt = (t, e) => {
1688
- const o = [];
1689
- return t != null && t.length && be(t).forEach((n) => {
1690
- if (n.join && n.conditions) {
1691
- const r = !n.conditions.some((i) => i.join && i.conditions);
1692
- n.conditions.forEach((i, a) => {
1693
- ko(i, e);
1694
- const l = {};
1695
- if (a < n.conditions.length - 1 && (l.join = n.join), r)
1696
- o.push(Object.assign(Object.assign({}, l), i));
1697
- else if (i.join && i.conditions) {
1698
- const d = e ? "sqlConditions" : "conditions";
1699
- o.push(Object.assign({ [d]: Mt([i], e) }, l));
1700
- } else
1701
- o.push(Object.assign(Object.assign({}, l), i));
1702
- });
1703
- } else
1704
- ko(n, e), o.push(n);
1705
- }), o;
1706
- }, he = (t = {}, e) => {
1707
- if (t != null && t.sortCpnts && e) {
1708
- const j = Sn(t);
1709
- j && (e.sort = j);
1710
- }
1711
- const { label: o, name: n, location: r, show: i, indexCode: a, indexCodeNum: l, calcType: d = "COLUMN", builtInFormula: c, builtInValueSource: p, builtInCalcWay: s, formula: u, conditions: h, aggregate: b, distinct: m, dimByCount: f, dataTo: v, sort: C } = t;
1712
- let g;
1713
- if (h && (g = Mt(h)), d === "COMPONENT") {
1714
- const j = {};
1715
- return we(j, p), { label: o.trim(), columnName: n, show: i, calcType: d, componentAlias: s, componentValue: j.fieldValue || null };
1716
- }
1717
- const A = { label: o.trim(), columnName: n, location: r, show: i, calcType: v === "1" ? "VIEW" : d, hrpIndexCode: a, hrpIndexCodeNum: l, aggregate: b, builtInFormula: c, builtInValueSource: p, formula: u, conditions: g };
1718
- if (C && (A.sort = { columnName: n, label: A.label, order: C, type: "NORMAL" }), c !== "DATE_OFFSET")
1719
- return n === "the_count" && (A.calcType = "AGGREGATE", A.distinct = !!m, A.typeGuid = f), Object.assign(Object.assign({}, A), { builtInCalcWay: s });
1720
- {
1721
- const j = s.split("-");
1722
- if ((j == null ? void 0 : j.length) === 3) {
1723
- let E = j[0];
1724
- return j[2] === "before" && j[0] !== "0" && (E = `-${j[0]}`), Object.assign(Object.assign({}, A), { calcWays: [E], dateCalcTypes: [j[1]] });
1725
- }
1726
- }
1727
- }, se = (t, e) => {
1728
- const o = bn.find((r) => r.id === t), { keyName: n } = o || {};
1729
- if (n) {
1730
- const r = /-(startTime|endTime)/g, i = e.match(r);
1731
- return i != null && i.length ? `${n}${i[0]}` : n;
1732
- }
1733
- return e || "";
1734
- }, cr = (t) => {
1735
- if (!t)
1736
- return [];
1737
- const e = be((t == null ? void 0 : t.controlList) || []).filter((f) => f.conditionKey !== "parentCode"), { classificationList: o = [], rowHeaderList: n = [], dimensionList: r = [], seriesList: i = [], leftAxisList: a = [], rightAxisList: l = [], queryColumnList: d = [], indexLibColumns: c = [], indicators: p = [], specialIndicators: s = [] } = t;
1738
- vn(e);
1739
- const u = [...o, ...n, ...r, ...i, ...a, ...l, ...d, ...c, ...p, ...s], h = [];
1740
- for (const f of u) {
1741
- const v = xe((f == null ? void 0 : f.conditions) || []);
1742
- if (v != null && v.length) {
1743
- const C = v.filter((g) => (g == null ? void 0 : g.dataType) === "component").map((g) => {
1744
- const A = {};
1745
- return g != null && g.dateFormat && (A.format = g.dateFormat), g.fieldValue === "PARENT" && (A.id = "PARENT", A.keyName = g.modelKey, A.modelKey = g.modelKey, A.prop = g.prop), Object.assign({ conditionKey: g.fieldName, conditionLabel: g.fieldName, conditionName: g.fieldName, conditionValueType: g.fieldType, id: g.componentId, keyName: g.fieldValue, rule: g.rule, notGlobal: !0, indexCode: g.indexCode, typeGuid: g.typeGuid, indexCodeNum: g.indexCodeNum }, A);
1746
- });
1747
- if (C != null && C.length)
1748
- for (const g of C)
1749
- h.find((A) => A.keyName === g.keyName) || h.push(g);
1750
- }
1751
- }
1752
- const b = h.length, m = e;
1753
- for (let f = 0; f < b; f++) {
1754
- const v = h[f];
1755
- if ((v == null ? void 0 : v.conditionKey) === "parentCode")
1756
- continue;
1757
- const { id: C, keyName: g, prop: A, format: j, modelKey: E, dataType: P = "component", customValue: F } = v, _ = se(C, g), I = xn(v);
1758
- we(I, C, { prop: A, dateFormat: j, modelKey: E, keyName: _ }), P === "" && (I.fieldValue = F || ""), m.push(I);
1759
- }
1760
- for (let f = m.length - 1; f >= 0; f--) {
1761
- const v = m[f];
1762
- v.globalCondition || xe(m).find((C) => C.alias === v.alias && C.globalCondition) && m.splice(f, 1);
1763
- }
1764
- return m;
1765
- };
1766
- function xn(t) {
1767
- const { id: e, keyName: o, conditionLabel: n, conditionKey: r, conditionValueType: i, prop: a, rule: l = "NONE", notGlobal: d = !1, indexCode: c, typeGuid: p, indexCodeNum: s, dataType: u = "component" } = t, h = se(e, o);
1768
- let b = h || e;
1769
- b && a && (b += `-${a}`);
1770
- let m = l;
1771
- return m === "NONE" && (m = ["startTime", "endTime"].includes(a) ? a === "startTime" ? "GREATER_EQUAL" : "LESS_EQUAL" : h != null && h.includes("startTime") ? a === "GREATER_EQUAL" : h != null && h.includes("endTime") ? a === "LESS_EQUAL" : "EQUAL"), e === "PARENT" && (b = t.modelKey, b && a && (b += `-${a}`), m = l), { rule: m, label: n, fieldName: r, fieldValue: "", valueType: i, alias: b, globalCondition: !d, indexCode: c, typeGuid: p, indexCodeNum: s, dataType: u };
1772
- }
1773
- function vn(t) {
1774
- if (t != null && t.length)
1775
- for (const e of t)
1776
- if (e != null && e.conditions)
1777
- vn(e.conditions);
1778
- else {
1779
- const { id: o, keyName: n, prop: r, modelKey: i, format: a, dataType: l = "component", customValue: d } = e, c = se(o, n), p = xn(e);
1780
- we(p, o, { prop: r, dateFormat: a, modelKey: i, keyName: c }), l === "" && (p.fieldValue = d || "");
1781
- for (const s in p)
1782
- e[s] = p[s];
1783
- for (const s of sr)
1784
- delete e[s];
1785
- }
1786
- }
1787
- function we(t, e, o) {
1788
- const { prop: n = "", dateFormat: r = "", modelKey: i = "", keyName: a = "", operateValue: l, operateMode: d, operateType: c } = o || {}, p = i || a;
1789
- if (e === "PARENT" && p && n) {
1790
- const C = window.config.record;
1791
- let g = n, A = r;
1792
- const j = n.match(/\{(.+?)\}/g);
1793
- if (j != null && j.length) {
1794
- const E = j[0].slice(1, -1).trim();
1795
- g = n.replace(j[0], ""), A = E, t.dateFormat = A;
1796
- }
1797
- if (C && C[p]) {
1798
- const E = q(C[p][g]);
1799
- pt.isDayjs(E) ? t.fieldValue = E.format(A || "YYYY-MM-DD") : t.fieldValue = E;
1800
- }
1801
- return;
1802
- }
1803
- const s = Ae(e) || {}, { value: u, format: h = "YYYY-MM-DD", type: b = "", useCurrentTime: m, RECORD: f } = s || {}, v = r || h;
1804
- if (tt(b, "date")) {
1805
- let C;
1806
- if (C = m ? u ? q(u) : pt() : q(u), typeof C == "string" && (C = pt(C)), l && d && c)
1807
- switch (c) {
1808
- case "add":
1809
- C = C.add(l, d);
1810
- break;
1811
- case "minus":
1812
- C = C.subtract(l, d);
1813
- }
1814
- t.fieldValue = C == null ? void 0 : C.format(v), t.dateFormat = v;
1815
- } else if (tt(b, "rangepicker")) {
1816
- let C = n;
1817
- if (!n) {
1818
- const A = a && a.split("-");
1819
- A != null && A.length && (C = A[A.length - 1]);
1820
- }
1821
- if (!C)
1822
- return;
1823
- let g = null;
1824
- if (q(s[C]) && (g = pt(q(s[C]))), l && d && c) {
1825
- if (l === "rangeValue") {
1826
- if (s.startTime && s.endTime) {
1827
- const A = q(s.endTime).diff(q(s.startTime), d) + 1;
1828
- switch (c) {
1829
- case "add":
1830
- g = g && g.add(A, d);
1831
- break;
1832
- case "minus":
1833
- g = g && g.subtract(A, d);
1834
- }
1835
- }
1836
- } else if (!isNaN(+l))
1837
- switch (c) {
1838
- case "add":
1839
- g = g && g.add(l, d);
1840
- break;
1841
- case "minus":
1842
- g = g && g.subtract(l, d);
1843
- }
1844
- }
1845
- if (g && (t.fieldValue = g == null ? void 0 : g.format(v)), C === "rangeValue" && s.startTime && s.endTime) {
1846
- const A = function(j) {
1847
- const E = j.split("-");
1848
- let P = "";
1849
- if (E != null && E.length)
1850
- switch (E[E.length - 1]) {
1851
- case "YYYY":
1852
- P = "year";
1853
- break;
1854
- case "MM":
1855
- P = "month";
1856
- break;
1857
- case "DD":
1858
- P = "day";
1859
- }
1860
- return P;
1861
- }(v);
1862
- A && (t.fieldValue = q(s.endTime).diff(q(s.startTime), A) + 1);
1863
- }
1864
- t.dateFormat = v;
1865
- } else
1866
- tt(b, lr) ? t.fieldValue = i && f ? f[i] : !i && f ? f.value : q(u) : tt(b, "select") && Array.isArray(q(u)) ? t.fieldValue = q(u).join(",") : t.fieldValue = q(u);
1867
- }
1868
- const ye = (t) => {
1869
- var e;
1870
- if (t) {
1871
- const o = Array.isArray(t) ? be(t) : [be(t)];
1872
- let n = "", r = [];
1873
- const i = [], a = [], l = [];
1874
- for (const d of o) {
1875
- if (d.defaultCode && (d.label = d.columnName, delete d.defaultCode), d.type === "CUSTOM" && (r = d.customOrderColumns), n = d.type, i.push(d.label), (e = d.columnName) === null || e === void 0 ? void 0 : e.includes("_ecanrepeat_")) {
1876
- const c = d.columnName.split("_ecanrepeat_");
1877
- a.push(c[0]);
1878
- } else
1879
- a.push(d.columnName);
1880
- l.push(d.order);
1881
- }
1882
- return n !== "CUSTOM" && (i == null ? void 0 : i.length) > 1 && (n = "COMBINATION"), n === "CUSTOM" ? { label: i.join(","), columnName: a.join(","), type: n, customOrderColumns: r } : { label: i.join(","), columnName: a.join(","), order: l.join(","), type: n };
1883
- }
1884
- return t;
1885
- }, Sn = (t) => {
1886
- const { sortCpnts: e = [] } = t;
1887
- let o, n = "";
1888
- for (const r of e) {
1889
- const i = Ae(r) || {}, { type: a, RECORD: l } = i;
1890
- if (tt(a, "image") && tt(l == null ? void 0 : l.value, ["asc", "desc"])) {
1891
- n = l.value.toUpperCase();
1892
- break;
1893
- }
1894
- }
1895
- return n && (o = { label: t.label, columnName: t.name, order: n, type: "NORMAL" }), o;
1896
- }, Dr = (t, e = {}) => {
1897
- var o, n, r, i, a, l, d, c;
1898
- const { graphicConfig: p, type: s, globalModel: u, isGroupTable: h = !1, allComponentList: b } = t;
1899
- u && (gn = u), b != null && b.length && (bn = b);
1900
- const m = tt(s, "pivottable");
1901
- let f, { source: v, dataViewId: C, plugin: g = "1", layer: A, chartType: j, classificationList: E = [], rowHeaderList: P = [], dimensionList: F = [], seriesList: _ = [], leftAxisList: I = [], rightAxisList: et = [], queryColumnList: T = [], indexLibColumns: S = [], indicators: y = [], specialIndicators: w = [], controlList: x = [], formFields: O = {}, variableList: N = [], variableConditions: k = [], dataSourceId: R = "", idxLibMode: B, preview: Q = !1, edvDataSetId: ot, compositeIndicator: Tt } = p || {}, Y = [];
1902
- if ((p == null ? void 0 : p.pageMode) === "design" ? (Y = ((o = p.sqlConditions) !== null && o !== void 0 ? o : []).map((L) => {
1903
- const M = {};
1904
- if (st(L, "globalCondition") || L.join || (M.globalCondition = !0), !L.join) {
1905
- const D = L.rule || "EQUAL";
1906
- M.rule = D === "NONE" ? "EQUAL" : D;
1907
- }
1908
- return Object.assign(Object.assign({}, L), M);
1909
- }), k != null && k.length && (Y = Y.concat(k))) : (Y = cr(p), N != null && N.length && (Y = Y.concat(function(L) {
1910
- const M = [];
1911
- if (L != null && L.length) {
1912
- for (const D of L)
1913
- if (D.variableName) {
1914
- const V = se(D.id, D.keyName), z = { variateName: D.variableName, globalCondition: !1, valueType: D.variableType, alias: V || "" };
1915
- we(z, D.id, { dateFormat: D.format, prop: D.dateTypeValue, keyName: V, operateType: D.operateType, operateMode: D.operateMode, operateValue: D.operateValue }), D.dataType === "" && (z.fieldValue = D.variableValue), D.format && (z.dateFormat = D.format), D.label && (z.label = D.label), M.push(z);
1916
- }
1917
- }
1918
- return M;
1919
- }(N)))), Y == null ? void 0 : Y.length) {
1920
- const L = Y.filter((D) => D.globalCondition), M = Y.filter((D) => !D.globalCondition);
1921
- (L == null ? void 0 : L.length) > 1 && (Y = [{ join: "&&", conditions: L }, ...M]);
1922
- }
1923
- Y != null && Y.length && (Y = Mt(Y, "1")), A == null && (A = tt(s, ["table", "card"]) || tt(s, ["list", "circulate"]) && (E == null ? void 0 : E.length) > 1 ? "1" : tt(s, ["select", "checkbox", "radio", "treeSelect"]) ? "3" : tt(s, ["indexPanel"]) ? "4" : "2"), tt(s, ["indexPanel"]) && (g = "3");
1924
- const Ot = [];
1925
- let ut, it = "";
1926
- if (Array.isArray(E) && E.length > 0 && (!["ecanList", "ecanCirculate"].includes(s) || (E == null ? void 0 : E.length) === 1)) {
1927
- const L = E.length;
1928
- for (let M = 0; M < L; M++) {
1929
- const D = E[M] || {}, { label: V = "", name: z = "", show: at = !1, sort: dt, customGroup: St, conditions: W, dateFormat: G, typeGuid: J = "", truncations: Z = [] } = D;
1930
- if (at || L === 1) {
1931
- it = J, f = { label: V.trim(), columnName: z, show: at, sort: Sn(D) || ye(dt) || dt, customGroup: St, conditions: Mt(W), typeGuid: J }, G && (f.dateFormat = G), z !== "the_date" || f.dateFormat || (f.dateFormat = "YYYY-MM-DD");
1932
- const U = {};
1933
- if (Array.isArray(Z) && Z.length > 0) {
1934
- const rt = Z.length;
1935
- for (let ft = 0; ft < rt; ft++) {
1936
- const ht = Z[ft] || {}, { rule: gt = "", num: At = 0, name: Dt = "" } = ht;
1937
- gt && At && (U.num = At, U.rule = gt, Dt && (U.otherGroupName = Dt));
1938
- }
1939
- }
1940
- if (!((n = Object.keys(U)) === null || n === void 0) && n.length && (f.truncation = U), !tt(s, ["scatter", "valueline"]))
1941
- break;
1942
- Ot.push(f);
1943
- }
1944
- }
1945
- }
1946
- if (Array.isArray(_) && _.length > 0) {
1947
- const L = _.length;
1948
- for (let M = 0; M < L; M++) {
1949
- const D = _[M] || {}, { label: V = "", name: z = "", show: at = !1, sort: dt, customGroup: St, conditions: W, typeGuid: G, dateFormat: J = "" } = D;
1950
- if (at || L === 1) {
1951
- ut = { label: V.trim(), columnName: z, show: at, sort: ye(dt), customGroup: St, conditions: Mt(W), typeGuid: G }, J ? ut.dateFormat = J : z === "the_date" && (ut.dateFormat = "YYYY-MM-DD");
1952
- break;
1953
- }
1954
- }
1955
- }
1956
- const X = [];
1957
- I == null || I.forEach((L) => {
1958
- L.location = "LEFT", X.push(he(L, f));
1959
- }), et == null || et.forEach((L) => {
1960
- L.location = "RIGHT", X.push(he(L, f));
1961
- });
1962
- let xt = y;
1963
- e != null && e.pivotTableCal && (xt = ((r = e.pivotTableCal) === null || r === void 0 ? void 0 : r.indicators) || []), xt == null || xt.forEach((L) => {
1964
- L.location = "LEFT", X.push(he(L, f));
1965
- });
1966
- const vt = [];
1967
- w == null || w.forEach((L) => {
1968
- L.location = "LEFT", vt.push(he(L, f));
1969
- });
1970
- const Lt = [];
1971
- ["ecanList", "ecanCirculate"].includes(s) && (E == null ? void 0 : E.length) > 1 && (T = E), e != null && e.pivotTableCal && (T = ((i = e.pivotTableCal) === null || i === void 0 ? void 0 : i.dimensions) || []), T == null || T.forEach((L) => {
1972
- const { label: M, name: D, location: V, show: z, indexCode: at, sort: dt, typeGuid: St, indexCodeNum: W, dateFormat: G, conditions: J } = L;
1973
- let Z = ye(dt);
1974
- if (e.sort) {
1975
- const { field: rt, order: ft } = e.sort;
1976
- let ht = X.find((gt) => gt.label === rt);
1977
- ht || M !== rt || (ht = L), ht && (Z = { columnName: ht.columnName, label: e.sort.field, order: ft.toUpperCase(), type: "NORMAL" });
1978
- }
1979
- const U = { label: M, columnName: D, location: V, show: z, sort: Z, calcType: "COLUMN", hrpIndexCode: at, hrpIndexCodeNum: W, conditions: Mt(J), typeGuid: St };
1980
- G && (U.dateFormat = G), D !== "the_date" || U.dateFormat || (U.dateFormat = "YYYY-MM-DD"), Lt.push(U);
1981
- });
1982
- const Qt = [];
1983
- ["ecanTable"].includes(s) && p.isIndexSet && S.forEach((L) => {
1984
- const M = { label: L.label, calcType: L.calcType, show: L.show };
1985
- L.formula && (M.formula = L.formula), Qt.push(M);
1986
- });
1987
- let Zt = [], Vt = [];
1988
- if (Array.isArray(P) && P.length > 0 ? Vt = P : Array.isArray(F) && F.length > 0 && (Vt = F), Vt == null ? void 0 : Vt.length) {
1989
- const L = Vt.length;
1990
- for (let M = 0; M < L; M++) {
1991
- const D = Vt[M] || {}, { label: V = "", name: z = "", show: at = !1, sort: dt, customGroup: St, conditions: W, truncations: G, typeGuid: J = "", dateFormat: Z } = D;
1992
- let U = ye(dt);
1993
- if (e.sort) {
1994
- const { field: ht, order: gt } = e.sort;
1995
- let At = X.find((Dt) => Dt.label === ht);
1996
- At || D.label !== ht || (At = D), At && (U = { columnName: At.columnName, label: e.sort.field, order: gt.toUpperCase(), type: "NORMAL" });
1997
- }
1998
- const rt = { label: V.trim(), columnName: z, show: at, sort: U, customGroup: St, conditions: Mt(W), typeGuid: J };
1999
- Z && (rt.dateFormat = Z), z !== "the_date" || rt.dateFormat || (rt.dateFormat = "YYYY-MM-DD");
2000
- const ft = {};
2001
- if (Array.isArray(G) && G.length > 0) {
2002
- const ht = G.length;
2003
- for (let gt = 0; gt < ht; gt++) {
2004
- const At = G[gt] || {}, { rule: Dt = "", num: Ye = 0, name: Ke = "" } = At;
2005
- Dt && Ye && (ft.num = Ye, ft.rule = Dt, Ke && (ft.otherGroupName = Ke));
2006
- }
2007
- }
2008
- !((a = Object.keys(ft)) === null || a === void 0) && a.length && (rt.truncation = ft), Zt.push(rt);
2009
- }
2010
- }
2011
- let He, Ce = [];
2012
- const ce = [];
2013
- if (e != null && e.pivotTableCal) {
2014
- let L = [];
2015
- const { calc: M = [], filter: D = [], truncations: V = [], sorts: z = [], aggregateMethod: at = [], rowDimensionKeys: dt = [], colDimensionKeys: St = [] } = e.pivotTableCal;
2016
- if (X.push(...M), D == null ? void 0 : D.length) {
2017
- const W = function G(J) {
2018
- const Z = [];
2019
- for (const U of J)
2020
- U.conditions ? Z.push(...G(U.conditions)) : U.conditionKey === "the_date" && Z.push(U);
2021
- return Z;
2022
- }(x);
2023
- for (const G of D) {
2024
- const { type: J } = G, Z = Je(G, ["type"]);
2025
- J === "indicators" ? L = X : J === "dimension" && (L = Lt);
2026
- const U = L.find((rt) => rt.columnName === G.fieldName && rt.label === G.label);
2027
- if (U) {
2028
- if (J === "indicators")
2029
- U.filter = { rule: Z.rule, fieldValue: Z.fieldValue };
2030
- else if (J === "dimension") {
2031
- let rt = !0;
2032
- Z.fieldName === "the_date" && (W == null ? void 0 : W.length) === 2 && (rt = !1, ce.push(Z)), rt && (U.conditions || (U.conditions = []), U.conditions.push(Z));
2033
- }
2034
- }
2035
- }
2036
- }
2037
- if (V != null && V.length)
2038
- for (const W of V) {
2039
- const G = Lt.find((J) => J.label === W.key);
2040
- G && (G.truncation = { num: W.num, rule: W.rule });
2041
- }
2042
- if (z != null && z.length)
2043
- for (const W of z) {
2044
- const { fieldType: G, columnData: J } = W, Z = Je(W, ["fieldType", "columnData"]);
2045
- G === "indicators" ? (L = X, He = J) : G === "dimension" && (L = Lt);
2046
- const U = L.find((rt) => rt.label === Z.label);
2047
- U && (U.sort = Object.assign(Object.assign({}, Z), { columnName: U.columnName }));
2048
- }
2049
- if (!((l = Object.keys(at)) === null || l === void 0) && l.length)
2050
- for (const W in at) {
2051
- const G = Lt.find((J) => J.label === W);
2052
- G && (!((d = at[W]) === null || d === void 0) && d.length) && (G.aggregateMethod = at[W]);
2053
- }
2054
- Zt = [], Ce = [];
2055
- for (const W of Lt)
2056
- dt.includes(W.columnName) ? Zt.push(W) : St.includes(W.columnName) && Ce.push(W);
2057
- }
2058
- if (tt(s, ["text", "proportion", "counter", "gauge"]) ? j = "zb" : tt(s, ["valueline"]) ? j = "valueline" : tt(s, ["indexPanel"]) ? j = "indexPanel" : tt(s, ["boxplot"]) ? j = "boxplot" : tt(s, ["budget"]) && (j = "budget"), h || s === "card") {
2059
- if (Zt.length === 0 || X.length === 0)
2060
- return;
2061
- j = "grouptable";
2062
- } else if (A === "1" && !Lt.length && !Qt.length || ["2", "4"].includes(A) && X.length === 0 || !(A !== "3" || (it || v === "EDV_DATA_SET") && O.labelField && O.valueField) || A === "3" && s === "ecanDataSelect" && X.length === 0)
2063
- return;
2064
- let _e;
2065
- if (F != null && F.length && (A = "1", j = "grouptable"), m || tt(s, ["scatter", "valueline"]) || !(!((c = Object.keys(O)) === null || c === void 0) && c.length)) {
2066
- let L = {};
2067
- L = tt(s, ["scatter", "valueline"]) ? { classifications: Ot } : { classification: f }, Qt != null && Qt.length && (L.indexLibColumns = Qt, L.isIndexSet = !0), vt != null && vt.length && (L.specialIndicatorList = vt), tt(s, "table") && p.isIndexSet && (L.compositeIndicator = Tt);
2068
- const M = Y.map((D) => {
2069
- const { fieldValue: V } = D, z = {};
2070
- return V && Array.isArray(V) && (z.fieldValue = JSON.stringify(V)), Object.assign(Object.assign({}, D), z);
2071
- });
2072
- ce != null && ce.length && function D(V) {
2073
- for (const z of V)
2074
- if (z.sqlConditions)
2075
- D(z.sqlConditions);
2076
- else if (z.fieldName === "the_date") {
2077
- const at = ce.find((dt) => dt.prop === z.prop);
2078
- at && (z.fieldValue = at.fieldValue);
2079
- }
2080
- }(M), _e = Object.assign({ url: "/diagram", source: v, dataViewId: C, plugin: m ? "5" : g, layer: A, chartType: m ? "pivot-table" : j, series: ut, indicatorList: X, queryColumns: h ? [] : Lt, pageFlag: !0, edvDataSetId: ot || "", sqlConditions: M, idxLibMode: B, dataSourceId: R, preview: Q, rowHeaders: Zt, keyName: t.keyName, columnData: He, columnHeaders: Ce }, L);
2081
- } else {
2082
- const L = xe(x).find((V) => V.conditionKey === "parentCode"), M = {};
2083
- if (L) {
2084
- const V = Ae(L.id) || {};
2085
- if (!(V != null && V.itemCodes))
2086
- return;
2087
- M.parentItemCodes = V.itemCodes;
2088
- }
2089
- s === "ecanDataSelect" && (M.indicatorList = X.filter((V) => V.show)), v === "EDV_DATA_SET" && (M.edvDataSetId = ot), f != null && f.sort && (M.sort = f.sort);
2090
- let D = "normalSelect";
2091
- s === "ecanDataSelect" ? D = "normalSelectData" : s === "ecanTreeSelect" && (D = "treeSelect"), _e = Object.assign({ url: "/diagram/formData", source: v, dataViewId: C, plugin: "4", layer: A, chartType: s === "ecanTreeSelect" ? "treeSelect" : "normalSelect", rangeIndexTypeGuid: it, type: D, labelField: O.labelField, valueField: O.valueField, parentField: O.parentField, sqlConditions: Y, idxLibMode: "WITH_DATE_DIM_TABLE", dataSourceId: R, keyName: t.keyName }, M);
2092
- }
2093
- return _e;
2094
- }, ur = (t = [], e, o = !1) => {
2095
- let { name: n = "name", types: r = [] } = e || {};
2096
- n = (n == null ? void 0 : n.trim()) || n;
2097
- const i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map(), l = t.length, d = r.length;
2098
- if (l !== 1 || o)
2099
- for (let s = 0; s < l; s++) {
2100
- const u = t[s], h = u[n];
2101
- i.add(h);
2102
- for (let b = 0; b < d; b++) {
2103
- const m = r[b], { label: f, value: v } = m, C = Object.assign(Object.assign({}, u), { value: u[v] });
2104
- if (a.has(f)) {
2105
- const g = a.get(f);
2106
- g.push(C), a.set(f, g);
2107
- } else
2108
- a.set(f, [C]);
2109
- }
2110
- }
2111
- else {
2112
- const s = [];
2113
- for (let h = 0; h < d; h++) {
2114
- const b = r[h], { label: m, value: f } = b, v = Object.assign(Object.assign({}, t[0]), { value: t[0][f] });
2115
- i.add(m), s.push(v);
2116
- }
2117
- const u = t[0][n] || "";
2118
- a.set(u, s);
2119
- }
2120
- const c = Array.from(i), p = [];
2121
- for (const [s, u] of a)
2122
- p.push({ name: s, data: u });
2123
- return { dimensions: c, dataset: p };
2124
- }, dr = (t, e) => {
2125
- let { name: o = "name", value: n = "value", type: r = "type" } = e || {};
2126
- o = o == null ? void 0 : o.trim(), n = n == null ? void 0 : n.trim(), r = r == null ? void 0 : r.trim();
2127
- const i = /* @__PURE__ */ new Map(), a = t.length;
2128
- for (let c = 0; c < a; c++) {
2129
- const p = t[c], s = p[o] || "", u = p[n] || "", h = p[r] || "";
2130
- if (i.has(h)) {
2131
- const b = i.get(h);
2132
- b.push(Object.assign({ name: s, value: u }, p)), i.set(h, b);
2133
- } else
2134
- i.set(h, [Object.assign({ name: s, value: u }, p)]);
2135
- }
2136
- const l = [], d = [];
2137
- for (const [c, p] of i)
2138
- if (d.push({ name: c, data: p }), p == null ? void 0 : p.length)
2139
- if (l.length)
2140
- for (const s of p)
2141
- l.includes(s.name) || l.push(s.name);
2142
- else
2143
- l.push(...p.map((s) => s.name));
2144
- return { dimensions: l, dataset: d };
2145
- }, Yt = (t, e) => {
2146
- var o;
2147
- if (t == null)
2148
- return e;
2149
- const n = t.match(/\{.*\}/g);
2150
- if (n == null || n.length === 0)
2151
- return e;
2152
- const r = n.length;
2153
- for (let i = 0; i < r; i++) {
2154
- const a = n[i];
2155
- if (a == null || a === "")
2156
- break;
2157
- let l = (o = a.slice(1, -1)) === null || o === void 0 ? void 0 : o.trim();
2158
- l = l == null ? void 0 : l.replace(/value/g, e);
2159
- try {
2160
- let d = l;
2161
- (/\(.*\)/g.test(l) || /[+/\\*]/g.test(l)) && (d = mn(l)), t = t.replace(a, d);
2162
- } catch {
2163
- t = t.replace(a, l);
2164
- }
2165
- }
2166
- return t;
2167
- };
2168
- function pr(t) {
2169
- return t.isShowMarkLine ? { markLine: { data: [{ type: t.markLineType }] } } : {};
2170
- }
2171
- const fr = (t, e, o) => {
2172
- const n = t.yAxisLabelFormatter, r = t.xAxisLabelFormatter, { dimensions: i = [], dataset: a = [] } = e, l = Pt(() => {
2173
- const { gradientShow: c, gradientColors: p, gradientOffset: s, barBorderRadius: u } = t, h = a, b = h.length, m = [];
2174
- for (let f = 0; f < b; f++) {
2175
- const v = Object.assign(Object.assign({}, h[f]), { type: "bar", barWidth: t.barWidth, showBackground: t.showBarBackground }), { isStack: C, stackColumns: g } = t;
2176
- if (C && g.includes(h[f].name || !g) && (v.stack = "stack"), v.label = { show: t.labelShow, fontSize: t.labelFontSize, position: t.labelPosition, color: t.labelColor, width: t.labelWidth, overflow: t.labelOverflow, formatter: (A) => {
2177
- let j = "", E = t.labelFormatter;
2178
- E === "" && (E = "{c}");
2179
- const { seriesName: P, name: F, value: _, data: I } = A || {};
2180
- return j += Ht(E, { textData: Object.assign({ name: F, value: _, a: P, b: F, c: _ || 0 }, I) }, { useNewline: !0, useSpace: !0 }), j;
2181
- } }, v.itemStyle = {}, c && (v.itemStyle = { color: { x: t.isUseHorizontalAxis ? 1 : 0, y: 0, x2: 0, y2: t.isUseHorizontalAxis ? 0 : 1, colorStops: [{ offset: 0, color: t.colors[f] }, { offset: s, color: p[f] }, { offset: 1, color: p[f] }] } }), u) {
2182
- const A = u.split(",");
2183
- if (A != null && A.length) {
2184
- const j = [];
2185
- for (const E of A) {
2186
- const P = parseFloat(E);
2187
- isNaN(P) || j.push(P);
2188
- }
2189
- v.itemStyle.barBorderRadius = j;
2190
- }
2191
- }
2192
- t.isShowMarkLine && (v.markLine = { data: [{ type: t.markLineType }] }), m.push(v);
2193
- }
2194
- return m;
2195
- }), d = Pt(() => i.map((c) => {
2196
- let p = {};
2197
- return p = c && typeof c == "object" ? Object.assign(Object.assign({}, c), { textStyle: { fontSize: o } }) : { value: c, textStyle: { fontSize: o } }, p;
2198
- }));
2199
- return { tooltip: { trigger: "axis", show: t.tooltipShow, formatter: (c) => {
2200
- const p = c.length;
2201
- let s = "", u = t.tooltipFormatter;
2202
- u === "" && (u = "{marker} {a} {c}");
2203
- for (let h = 0; h < p; h++) {
2204
- const { marker: b, seriesName: m, name: f, value: v, data: C } = c[h] || {};
2205
- if (h === 0) {
2206
- let g = f;
2207
- typeof f != "string" || f[0] !== "0" || isNaN(+f) || (g = (+f).toString()), s += `${Yt(r, g)}<br/>`;
2208
- }
2209
- s += Ht(u, { textData: Object.assign({ marker: b, name: f, value: v, Qfw: ar, a: m, b: f, c: v || 0 }, C) }, { useNewline: !0, useSpace: !0 }), s += "<br/>";
2210
- }
2211
- return s;
2212
- }, textStyle: { color: t.tooltipTextStyleColor, fontSize: o }, position: t.tooltipPosition || void 0, backgroundColor: t.tooltipBackgroundColor || "#fff" }, legend: { type: t.legendScroll ? "scroll" : "plain", width: t.legendWidth, height: t.legendHeight, show: t.legendShow, orient: t.legendOrient, top: t.legendTop, left: t.legendLeft, textStyle: { rich: { text: { width: t.legendTextWidth, color: t.legendTextStyleColor, fontSize: t.legendFontSize } } }, itemHeight: t.legendItemHeight, itemWidth: t.legendItemWidth, itemGap: t.legendItemGap, data: a.map((c, p) => ({ name: c.name, itemStyle: { color: t.colors[p] }, icon: t.legendType })), formatter: (c) => ((p = "", s) => {
2213
- var u;
2214
- const h = p.match(/\{(.+?)\}/g), b = ((u = p.split(`
2215
- `)) === null || u === void 0 ? void 0 : u.length) - 1;
2216
- let m = "";
2217
- if (b)
2218
- for (let v = 0; v < b; v++)
2219
- m += `
2220
- `;
2221
- let f = p;
2222
- if (h != null && h.length) {
2223
- for (const v of h) {
2224
- const C = Ht(v, { textData: s }, { useNewline: !1, useSpace: !1 });
2225
- C && (f = f.replace(v, C));
2226
- }
2227
- return `${m}{text|${f}}`;
2228
- }
2229
- return p;
2230
- })(t.legendFormatter, { name: c }) }, xAxis: { type: t.isUseHorizontalAxis ? "value" : "category", data: t.isUseHorizontalAxis ? null : q(d), inverse: t.isUseHorizontalAxis ? t.xAxisInverse : t.axisInverse, minInterval: t.xAxisMinInterval, splitLine: { show: t.xAxisSplitLineShow, lineStyle: { color: t.xAxisSplitLineStyleColor, type: t.xAxisSplitLineType }, interval: t.xAxisSplitLineInterval }, splitArea: { show: t.xAxisSplitAreaShow }, axisLabel: { color: t.xAxisLabelColor, interval: t.xAxisLabelInterval || 0, rotate: t.xAxisLabelRotate, width: t.xAxisLabelWidth, overflow: t.xAxisLabelOverflow, fontSize: t.xAxisLabelFontSize, formatter: (c) => (typeof c != "string" || c[0] !== "0" || isNaN(+c) || (c = (+c).toString()), Yt(r, c)) }, axisLine: { show: t.xAxisLineShow, lineStyle: { color: t.xAxisLineStyleColor } }, axisTick: { show: t.xAxisTickShow }, name: t.xAxisName, nameTextStyle: { fontSize: t.xAxisLabelFontSize, color: t.xAxisLabelColor, align: "left" }, max: t.xAxisMaxValue || null }, yAxis: { type: t.isUseHorizontalAxis ? "category" : "value", data: t.isUseHorizontalAxis ? q(i) : null, inverse: t.isUseHorizontalAxis ? t.axisInverse : t.yAxisInverse, minInterval: t.yAxisMinInterval, splitLine: { show: t.yAxisSplitLineShow, lineStyle: { color: t.yAxisSplitLineStyleColor, type: t.yAxisSplitLineType } }, splitArea: { show: t.yAxisSplitAreaShow }, axisLabel: { show: t.yAxisLabelShow, fontSize: t.yAxisLabelFontSize, color: t.yAxisLabelColor, rotate: t.yAxisLabelRotate, width: t.yAxisLabelWidth, overflow: t.yAxisLabelOverflow, formatter: (c) => Yt(n, c) }, axisLine: { show: t.yAxisLineAlwaysDisplay, lineStyle: { color: t.yAxisLineStyleColor } }, name: t.yAxisName, nameTextStyle: { fontSize: t.yAxisLabelFontSize, color: t.yAxisLabelColor, align: "right" }, max: t.yAxisMaxValue || null }, series: q(l) };
2231
- }, hr = (t, e, o) => {
2232
- const n = t.yAxisLabelFormatter, r = t.xAxisLabelFormatter, { dimensions: i = [], dataset: a = [] } = e, l = Pt(() => i.map((c) => {
2233
- let p = {};
2234
- return p = c && typeof c == "object" ? Object.assign(Object.assign({}, c), { textStyle: { fontSize: o } }) : { value: c, textStyle: { fontSize: o } }, p;
2235
- })), d = Pt(() => {
2236
- const c = [], p = a.length;
2237
- for (let s = 0; s < p; s++) {
2238
- const u = {};
2239
- t.shadowColor && (u.shadowColor = t.shadowColor, u.shadowBlur = t.shadowBlur, u.shadowOffsetY = t.shadowOffsetY, u.shadowOffsetX = t.shadowOffsetX), c.push(Object.assign(Object.assign(Object.assign({ type: "line" }, a[s]), { symbolSize: t.symbolSize, smooth: t.smooth, areaStyle: { color: t.areaGradientShow ? { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: t.colors[s] }, { offset: 1, color: t.areaGradientColor || "transparent" }], global: !1 } : t.colors[s], opacity: t.areaStyleOpacity }, lineStyle: Object.assign({ width: t.lineStyleWidth }, u) }), pr(t)));
2240
- }
2241
- return c;
2242
- });
2243
- return { tooltip: { trigger: "axis", show: t.tooltipShow, formatter: (c) => {
2244
- const p = c.length;
2245
- let s = "", u = t.tooltipFormatter;
2246
- u === "" && (u = "{marker} {a} {c}");
2247
- for (let h = 0; h < p; h++) {
2248
- const { marker: b, seriesName: m, name: f, value: v, data: C } = c[h] || {};
2249
- h === 0 && (s += `${f}<br/>`), s += Ht(u, { textData: Object.assign({ marker: b, name: f, value: v, a: m, b: f, c: v }, C) }, { useNewline: !0, useSpace: !0 }), s += "<br/>";
2250
- }
2251
- return s;
2252
- }, textStyle: { color: t.tooltipTextStyleColor, fontSize: o.value }, position: t.tooltipPosition || void 0, backgroundColor: t.tooltipBackgroundColor || "#fff" }, xAxis: { name: t.xAxisName, type: "category", data: q(l), minInterval: t.xAxisMinInterval, splitLine: { show: t.xAxisSplitLineShow, lineStyle: { color: t.xAxisSplitLineStyleColor } }, axisLabel: { color: t.xAxisLabelColor, interval: t.xAxisLabelInterval || 0, rotate: t.xAxisLabelRotate, width: t.xAxisLabelWidth, overflow: t.xAxisLabelOverflow, formatter: (c) => Yt(r, c) }, axisLine: { lineStyle: { color: t.xAxisLineStyleColor } }, axisTick: { show: t.xAxisTickShow } }, yAxis: { type: "value", name: t.yAxisName, minInterval: t.yAxisMinInterval, splitLine: { show: t.yAxisSplitLineShow, lineStyle: { color: t.yAxisSplitLineStyleColor } }, axisLabel: { fontSize: o, color: t.yAxisLabelColor, formatter: (c) => Yt(n, c) }, axisLine: { show: t.yAxisLineAlwaysDisplay, lineStyle: { color: t.yAxisLineStyleColor } } }, legend: { show: t.legendShow, orient: t.legendOrient, top: t.legendTop, left: t.legendLeft, textStyle: { fontSize: o } }, series: q(d) };
2253
- }, yr = (t, e, o) => {
2254
- const { dataset: n = [] } = e;
2255
- let { data: r = [] } = n[0] || {};
2256
- if (Array.isArray(t.colors)) {
2257
- const a = t.isUseLabelColors, l = t.colors;
2258
- r = r.map((d, c) => Object.assign({ label: a ? { color: l[c] } : {} }, d));
2259
- }
2260
- return { title: { text: t.titleText, subtext: t.titleSubtext, textStyle: { fontSize: t.titleFontSize, fontWeight: t.fontWeight, color: t.titleColor }, left: t.textAlign || "center" }, tooltip: { show: t.tooltipShow, trigger: t.tooltipTrigger, formatter: (a) => {
2261
- const { marker: l, seriesName: d, name: c, value: p, percent: s, data: u } = a || {};
2262
- return Ht(t.tooltipFormatter, { textData: Object.assign({ marker: l, name: c, value: p, percent: s, a: d, b: c, c: p, d: s }, u) }, { useNewline: !0, useSpace: !0 });
2263
- }, textStyle: { color: t.tooltipTextStyleColor || "#333" }, backgroundColor: t.tooltipBackgroundColor || "#fff", borderColor: t.tooltipBorderColor || "#eee" }, legend: { show: t.legendShow, orient: t.legendOrient, top: t.legendTop, left: t.legendLeft, textStyle: { color: t.legendTextStyleColor, fontSize: o === 18 ? o : t.labelFontSize } }, series: [{ data: r, type: "pie", radius: [t.innerRadius, t.outerRadius], center: [t.centerLeft, t.centerTop], roseType: t.roseType, avoidLabelOverlap: !1, minAngle: t.minAngle, label: { show: t.labelPosition !== "center" && t.labelShow, color: t.labelColor, fontSize: o === 18 ? o : t.labelFontSize, position: t.labelPosition, formatter: (i = t.labelFormatter, i.replace(/\\n/g, `
2264
- `)) }, labelLine: { show: t.labelLineShow, length: t.labelLineLength, length2: t.labelLineLength2 }, emphasis: { itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0, 0, 0, 0.5)" }, label: {} } }] };
2265
- var i;
2266
- }, mr = (t, e, o) => {
2267
- const { dimensions: n = [], dataset: r = [] } = e, i = Pt(() => n.map((d) => {
2268
- let c = {};
2269
- return c = d && typeof d == "object" ? Object.assign(Object.assign({}, d), { textStyle: { fontSize: o } }) : { value: d, textStyle: { fontSize: o } }, c;
2270
- })), a = Pt(() => {
2271
- const d = [], c = r.length, p = t.seriesTypes;
2272
- for (let s = 0; s < c; s++) {
2273
- const u = p[s], { type: h, axisIndex: b } = u || {};
2274
- let m = Object.assign({ type: h, yAxisIndex: b }, r[s]);
2275
- if (h === "line") {
2276
- const f = {};
2277
- t.shadowColor && (f.shadowColor = t.shadowColor, f.shadowBlur = t.shadowBlur, f.shadowOffsetY = t.shadowOffsetY, f.shadowOffsetX = t.shadowOffsetX), m = Object.assign(Object.assign({}, m), { symbolSize: t.symbolSize, smooth: t.smooth, itemStyle: { color: t.colors[s] }, areaStyle: { color: t.areaGradientShow ? { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: t.colors[s] }, { offset: 1, color: t.areaGradientColor || "transparent" }], global: !1 } : t.colors[s], opacity: t.areaStyleOpacity }, lineStyle: Object.assign({ width: t.lineStyleWidth }, f) });
2278
- }
2279
- if (h === "bar") {
2280
- const { gradientShow: f, gradientColors: v, gradientOffset: C } = t, g = {};
2281
- if (t.barBorderRadius) {
2282
- const A = t.barBorderRadius.split(",");
2283
- if (A != null && A.length) {
2284
- const j = [];
2285
- for (const E of A) {
2286
- const P = parseFloat(E);
2287
- isNaN(P) || j.push(P);
2288
- }
2289
- g.borderRadius = j;
2290
- }
2291
- }
2292
- f && (g.color = { x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: t.colors[s] }, { offset: C, color: v[s] }, { offset: 1, color: v[s] }] }), m = Object.assign(Object.assign({}, m), { barWidth: t.barWidth, itemStyle: g });
2293
- }
2294
- t.isShowMarkLine && (m.markLine = { data: [{ type: t.markLineType }] }), d.push(m);
2295
- }
2296
- return d;
2297
- }), l = Pt(() => {
2298
- const d = t.yAxis;
2299
- return d == null ? void 0 : d.map((c, p) => ({ type: "value", minInterval: t.yAxisMinInterval, splitLine: { show: p === 0 ? t.yAxisLeftSplitLineShow : t.yAxisRightSplitLineShow, lineStyle: { color: t.yAxisSplitLineStyleColor, type: p === 0 ? t.yAxisLeftSplitLineType : t.yAxisRightSplitLineType } }, splitArea: { show: t.yAxisSplitAreaShow }, axisLabel: { fontSize: o, show: t.yAxisLabelShow, color: t.yAxisLabelColor, formatter: (s) => Yt(c.axisLabelFormatter, s) }, axisLine: { show: t.yAxisLineAlwaysDisplay, lineStyle: { color: t.yAxisLineStyleColor } }, name: p === 0 ? t.yAxisLeftName : t.yAxisRightName, nameTextStyle: { fontSize: t.yAxisLabelFontSize, color: t.yAxisLabelColor, align: p === 0 ? "right" : "left" }, max: t.yAxisMaxValue || null }));
2300
- });
2301
- return { legend: { show: t.legendShow, orient: t.legendOrient, top: t.legendTop, left: t.legendLeft, textStyle: { color: t.legendTextStyleColor, fontSize: o } }, tooltip: { trigger: "axis", show: t.tooltipShow, formatter: (d) => {
2302
- const c = d.length;
2303
- let p = "", s = t.tooltipFormatter;
2304
- s === "" && (s = "{marker} {a} {c}");
2305
- const u = t.seriesTypes;
2306
- for (let h = 0; h < c; h++) {
2307
- const b = u[h], { tooltipFormatter: m } = b || {}, { marker: f, seriesName: v, name: C, value: g, data: A } = d[h] || {};
2308
- h === 0 && (p += `${C}<br/>`), p += Ht(m || s, { textData: Object.assign({ marker: f, name: C, value: g, seriesName: v, a: v, b: C, c: g }, A) }, { useNewline: !0, useSpace: !0 }), p += "<br/>";
2309
- }
2310
- return p;
2311
- }, textStyle: { color: t.tooltipTextStyleColor || "#333", fontSize: o }, backgroundColor: t.tooltipBackgroundColor || "#fff", borderColor: t.tooltipBorderColor || "#eee" }, xAxis: { name: t.xAxisName, minInterval: t.xAxisMinInterval, type: "category", data: q(i), splitLine: { show: t.xAxisSplitLineShow, lineStyle: { color: t.xAxisSplitLineStyleColor } }, axisLabel: { color: t.xAxisLabelColor, interval: t.xAxisLabelInterval || 0, rotate: t.xAxisLabelRotate, width: t.xAxisLabelWidth, overflow: t.xAxisLabelOverflow }, axisLine: { lineStyle: { color: t.xAxisLineStyleColor } }, axisTick: { show: t.xAxisTickShow } }, yAxis: q(l), series: q(a) };
2312
- }, gr = (t, e, o = 12) => Object.assign(Object.assign({}, ((n) => ({ title: { text: n.titleText, subtext: n.titleSubtext, textStyle: { fontSize: n.titleFontSize, fontWeight: n.fontWeight, color: n.titleColor }, left: n.textAlign || "center" }, grid: { top: n.gridTop, bottom: n.gridBottom, left: n.gridLeft, right: n.gridRight, containLabel: n.gridContainLabel }, color: n.colors }))(t)), ((n, r, i) => {
2313
- switch (n.type) {
2314
- case "bar":
2315
- return fr(n, r, i);
2316
- case "line":
2317
- return hr(n, r, i);
2318
- case "pie":
2319
- return yr(n, r, i);
2320
- case "comboGraph":
2321
- return mr(n, r, i);
2322
- default:
2323
- return {};
2324
- }
2325
- })(t, e, o)), br = (t = {}) => {
2326
- const e = (i = {}) => {
2327
- const { label: a, name: l, location: d, show: c, indexCode: p, typeGuid: s } = i;
2328
- return {
2329
- label: a,
2330
- columnName: l,
2331
- location: d,
2332
- show: c,
2333
- calcType: "COLUMN",
2334
- hrpIndexCode: p,
2335
- typeGuid: s
2336
- };
2337
- }, o = (i) => {
2338
- st(i, "dataType") && (i.fieldType === "DATE" && (i.label = i.fieldName, i.dataType === "component" && (i.fieldValue = "${" + i.fieldValue + "}")), delete i.dataType), st(i, "activeKey") && delete i.activeKey, st(i, "radioValue") && delete i.radioValue;
2339
- }, n = (i) => {
2340
- const a = [];
2341
- return i != null && i.length && i.forEach((l) => {
2342
- if (l.join && l.conditions) {
2343
- const d = !l.conditions.some((c) => c.join && c.conditions);
2344
- l.conditions.forEach((c, p) => {
2345
- o(c), d ? p < l.conditions.length - 1 ? a.push({
2346
- join: l.join,
2347
- ...c
2348
- }) : a.push(c) : c.join && c.conditions ? a.push({
2349
- conditions: n([c]),
2350
- join: l.join
2351
- }) : a.push(c);
2352
- });
2353
- } else
2354
- o(l), a.push(l);
2355
- }), a;
2356
- }, r = (i = {}) => {
2357
- const {
2358
- label: a,
2359
- name: l,
2360
- location: d,
2361
- show: c,
2362
- indexCode: p,
2363
- calcType: s = "COLUMN",
2364
- builtInFormula: u,
2365
- builtInValueSource: h,
2366
- builtInCalcWay: b,
2367
- formula: m,
2368
- conditions: f,
2369
- aggregate: v
2370
- } = i;
2371
- let C;
2372
- return f && (C = n(f)), {
2373
- label: a.trim(),
2374
- columnName: l,
2375
- location: d,
2376
- show: c,
2377
- calcType: s,
2378
- hrpIndexCode: p,
2379
- aggregate: v,
2380
- builtInFormula: u,
2381
- builtInValueSource: h,
2382
- builtInCalcWay: b,
2383
- formula: m,
2384
- conditions: C
2385
- };
2386
- };
2387
- return async () => {
2388
- const { graphicConfig: i, type: a, request: l, isGroupTable: d } = t;
2389
- let {
2390
- source: c,
2391
- dataViewId: p,
2392
- plugin: s = "1",
2393
- // 插件类型
2394
- layer: u,
2395
- // 后台图表类型,值分0,1
2396
- chartType: h,
2397
- // 前端图表类型,实测没用
2398
- classificationList: b = [],
2399
- seriesList: m = [],
2400
- leftAxisList: f = [],
2401
- rightAxisList: v = [],
2402
- queryColumnList: C = [],
2403
- indicators: g = [],
2404
- // controlList = [],
2405
- dataSourceId: A,
2406
- // 所属数据源ID
2407
- idxLibMode: j,
2408
- // 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
2409
- preview: E = !1,
2410
- // 预览开关
2411
- sqlConditions: P = [],
2412
- rowHeaderList: F = []
2413
- } = i || {};
2414
- u == null && (tt(a, ["table", "card"]) ? u = "1" : u = "2");
2415
- let _;
2416
- if (Array.isArray(b) && b.length > 0) {
2417
- const y = b.length;
2418
- for (let w = 0; w < y; w++) {
2419
- const x = b[w] || {}, { label: O = "", name: N = "", show: k = !1, sort: R, customGroup: B, conditions: Q, typeGuid: ot } = x;
2420
- if (k || y === 1) {
2421
- _ = {
2422
- label: O.trim(),
2423
- columnName: N,
2424
- show: k,
2425
- sort: R,
2426
- customGroup: B,
2427
- typeGuid: ot,
2428
- conditions: n(Q)
2429
- };
2430
- break;
2431
- }
2432
- }
2433
- }
2434
- let I;
2435
- if (Array.isArray(m) && m.length > 0) {
2436
- const y = m.length;
2437
- for (let w = 0; w < y; w++) {
2438
- const x = m[w] || {}, { label: O = "", name: N = "", show: k = !1, sort: R, customGroup: B, conditions: Q, typeGuid: ot } = x;
2439
- if (k || y === 1) {
2440
- I = {
2441
- label: O.trim(),
2442
- columnName: N,
2443
- show: k,
2444
- sort: R,
2445
- customGroup: B,
2446
- conditions: n(Q),
2447
- typeGuid: ot
2448
- };
2449
- break;
2450
- }
2451
- }
2452
- }
2453
- const et = [];
2454
- if (Array.isArray(F) && F.length > 0) {
2455
- const y = F.length;
2456
- for (let w = 0; w < y; w++) {
2457
- const x = F[w] || {}, { label: O = "", name: N = "", show: k = !1, sort: R, customGroup: B, conditions: Q, typeGuid: ot } = x;
2458
- et.push({
2459
- typeGuid: ot,
2460
- label: O.trim(),
2461
- columnName: N,
2462
- show: k,
2463
- sort: R,
2464
- customGroup: B,
2465
- conditions: n(Q)
2466
- });
2467
- }
2468
- }
2469
- const T = [];
2470
- C == null || C.forEach((y) => {
2471
- T.push(e(y));
2472
- });
2473
- const S = [];
2474
- if (f == null || f.forEach((y) => {
2475
- y.location = "LEFT", S.push(r(y));
2476
- }), v == null || v.forEach((y) => {
2477
- y.location = "RIGHT", S.push(r(y));
2478
- }), g == null || g.forEach((y) => {
2479
- y.location = "LEFT", S.push(r(y));
2480
- }), d || a === "card") {
2481
- if (h = "grouptable", S.length === 0 || et.length === 0)
2482
- return;
2483
- } else {
2484
- if (u === "1" && T.length === 0)
2485
- return;
2486
- if (u === "2" && S.length === 0)
2487
- return;
2488
- }
2489
- try {
2490
- return await l.post(`${jn}/diagram`, {
2491
- source: c,
2492
- dataViewId: p,
2493
- plugin: s,
2494
- layer: u,
2495
- chartType: h,
2496
- classification: _,
2497
- series: I,
2498
- indicatorList: S,
2499
- queryColumns: T,
2500
- pageFlag: !0,
2501
- sqlConditions: P,
2502
- rowHeaders: et,
2503
- dataSourceId: A,
2504
- idxLibMode: j,
2505
- preview: E
2506
- });
2507
- } catch (y) {
2508
- console.error(y);
2509
- }
2510
- };
2511
- }, xr = Po({
2512
- name: "ChartGraph",
2513
- components: {
2514
- ASpin: Nn
2515
- },
2516
- props: {
2517
- graphicConfig: {
2518
- // 指标库配置
2519
- type: Object,
2520
- default: () => {
2521
- }
2522
- },
2523
- chartsOptions: {
2524
- // 图表配置
2525
- type: Object,
2526
- default: () => {
2527
- }
2528
- }
2529
- },
2530
- setup(t, { expose: e }) {
2531
- const o = yt(() => t.chartsOptions ? $(t.chartsOptions) : d), n = yt(() => t.graphicConfig ? $(t.graphicConfig) : l), r = ue(Vo);
2532
- let i = null;
2533
- const a = ue(Go) || "", l = ue(Uo) || {}, d = ue(Bo) || {}, c = lt(null), p = lt(null), s = lt(), u = lt(!1), h = lt(!1), b = yt(() => h.value ? Mn : 12), m = lt({}), f = lt(), v = yt(() => {
2534
- const _ = $(o.value);
2535
- return (_ == null ? void 0 : _.type) === "customGraph" ? f.value : gr(_, $(m), b.value);
2536
- }), C = (_ = [], I, et = !1) => {
2537
- const T = et ? I : null;
2538
- m.value = ur(_, T);
2539
- }, g = (_ = [], I) => {
2540
- m.value = dr(_, I);
2541
- }, A = async () => {
2542
- var _, I, et;
2543
- try {
2544
- const T = br({
2545
- graphicConfig: $(n.value),
2546
- type: (_ = $(o.value)) == null ? void 0 : _.type,
2547
- request: r,
2548
- indicatorToken: a
2549
- });
2550
- u.value = !0;
2551
- const S = await T(), { columns: y = [], rows: w = [] } = ((I = S == null ? void 0 : S.data) == null ? void 0 : I.data) ?? {};
2552
- if (((et = $(o.value)) == null ? void 0 : et.type) === "pie") {
2553
- let x = [];
2554
- if (y.length > 0) {
2555
- const O = y[0], N = y[1];
2556
- x = w.map((k) => ({
2557
- name: k[O],
2558
- value: k[N]
2559
- }));
2560
- }
2561
- g(x);
2562
- } else {
2563
- let x;
2564
- y.length > 0 && (x = {
2565
- name: y[0],
2566
- types: y.slice(1).map((O) => ({
2567
- label: O,
2568
- value: O
2569
- }))
2570
- }), C(w, x, !0);
2571
- }
2572
- } catch (T) {
2573
- console.error(T);
2574
- } finally {
2575
- u.value = !1;
2576
- }
2577
- }, j = {
2578
- title: {
2579
- text: "暂无数据",
2580
- x: "center",
2581
- y: "center",
2582
- textStyle: {
2583
- fontSize: 14,
2584
- fontWeight: "normal"
2585
- }
2586
- }
2587
- }, E = () => {
2588
- $(m).dataset.length === 0 ? s.value.setOption(j, !0) : s.value.setOption(v.value, !0);
2589
- }, P = () => {
2590
- $(o.value).type !== "customGraph" && A();
2591
- }, F = () => {
2592
- var _;
2593
- (_ = s.value) == null || _.resize();
2594
- };
2595
- return Qe(
2596
- v,
2597
- () => {
2598
- E();
2599
- },
2600
- {
2601
- deep: !0
2602
- }
2603
- ), Qe(
2604
- () => $(o.value).optionCode,
2605
- (_) => {
2606
- try {
2607
- const I = eval;
2608
- f.value = I(_);
2609
- } catch (I) {
2610
- console.error(I);
2611
- }
2612
- },
2613
- {
2614
- immediate: !0
2615
- }
2616
- ), _n(() => {
2617
- p.value && (i = new ResizeObserver(F), i.observe(p.value)), s.value = Ln.init(c.value);
2618
- }), Tn(() => {
2619
- s.value.dispose(), i && (i.disconnect(), i = null);
2620
- }), e({
2621
- refreshData: P
2622
- }), {
2623
- echartRef: c,
2624
- loading: u
2625
- };
2626
- }
2627
- });
2628
- const vr = {
2629
- class: "ecan-chart-graph",
2630
- ref: "chartWrapRef"
2631
- }, Sr = {
2632
- style: { width: "100%", height: "100%" },
2633
- ref: "echartRef"
2634
- };
2635
- function Ar(t, e, o, n, r, i) {
2636
- const a = Ie("a-spin");
2637
- return De(), Ee("div", vr, [
2638
- Fe(a, {
2639
- spinning: t.loading,
2640
- wrapperClassName: "chart-spin",
2641
- tip: "数据加载中..."
2642
- }, {
2643
- default: On(() => [
2644
- Ro("div", Sr, null, 512)
2645
- ]),
2646
- _: 1
2647
- }, 8, ["spinning"])
2648
- ], 512);
2649
- }
2650
- const wr = /* @__PURE__ */ Wo(xr, [["render", Ar], ["__scopeId", "data-v-845f7ab1"]]), Cr = zo(wr), Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2651
- __proto__: null,
2652
- EcanChartGraph: Cr,
2653
- EcanIndicatorLibrary: ii
2654
- }, Symbol.toStringTag, { value: "Module" })), _r = (t, e) => {
2655
- const { request: o } = e;
2656
- t.provide("$request", o), Object.keys(Mo).forEach((n) => {
2657
- const r = Mo[n];
2658
- r.install && t.use(r);
2659
- });
2660
- }, Er = {
2661
- install: _r
2662
- };
2663
- export {
2664
- jr as C,
2665
- In as D,
2666
- Dr as E,
2667
- Uo as G,
2668
- Go as I,
2669
- Un as M,
2670
- Bn as P,
2671
- Vo as R,
2672
- Dn as S,
2673
- kn as T,
2674
- En as U,
2675
- Wo as _,
2676
- jn as a,
2677
- Rn as b,
2678
- Ir as c,
2679
- zn as d,
2680
- Vn as e,
2681
- Bo as f,
2682
- $n as g,
2683
- Pn as h,
2684
- Nr as i,
2685
- Wn as j,
2686
- Gn as k,
2687
- wr as l,
2688
- st as m,
2689
- Fn as n,
2690
- Hn as o,
2691
- Ze as p,
2692
- Er as q,
2693
- ii as r,
2694
- Cr as s,
2695
- br as u,
2696
- tt as y
2697
- };
2698
- //# sourceMappingURL=index-59fa0aa8.mjs.map