@embeddable.com/remarkable-ui 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BarChartDefaultHorizontalPro.js +3 -3
- package/dist/BarChartDefaultPro.js +3 -3
- package/dist/BarChartGroupedHorizontalPro.js +3 -3
- package/dist/BarChartGroupedPro.js +3 -3
- package/dist/BarChartStackedHorizontalPro.js +3 -3
- package/dist/BarChartStackedPro.js +3 -3
- package/dist/{BaseButton-8lCm-nHV.js → BaseButton-BbhHQD9t.js} +2 -2
- package/dist/{BaseButton-8lCm-nHV.js.map → BaseButton-BbhHQD9t.js.map} +1 -1
- package/dist/ChartCard-11lQWjXq.js +106 -0
- package/dist/ChartCard-11lQWjXq.js.map +1 -0
- package/dist/ComparisonPeriod.type.emb-D51Sg3wt.js +15 -0
- package/dist/ComparisonPeriod.type.emb-D51Sg3wt.js.map +1 -0
- package/dist/ComparisonPeriodSelectFieldPro.js +45 -53
- package/dist/ComparisonPeriodSelectFieldPro.js.map +1 -1
- package/dist/DateRangeSelectFieldPro.js +3 -3
- package/dist/DonutChartPro.js +2 -2
- package/dist/DonutLabelChartPro.js +2 -2
- package/dist/{EditorCard-_U0it3Eb.js → EditorCard-BriyqUva.js} +17 -17
- package/dist/{EditorCard-_U0it3Eb.js.map → EditorCard-BriyqUva.js.map} +1 -1
- package/dist/KpiChart-BLMULQMh.js +77 -0
- package/dist/KpiChart-BLMULQMh.js.map +1 -0
- package/dist/KpiChartNumberComparisonPro.js +156 -0
- package/dist/KpiChartNumberComparisonPro.js.map +1 -0
- package/dist/KpiChartNumberPro.js +47 -0
- package/dist/KpiChartNumberPro.js.map +1 -0
- package/dist/MultiSelectFieldPro.js +2 -3
- package/dist/MultiSelectFieldPro.js.map +1 -1
- package/dist/PieChartPro.js +2 -2
- package/dist/{SingleSelectField-Coqlrz4l.js → SingleSelectField-D1E9OJxC.js} +3 -3
- package/dist/{SingleSelectField-Coqlrz4l.js.map → SingleSelectField-D1E9OJxC.js.map} +1 -1
- package/dist/SingleSelectFieldPro.js +2 -2
- package/dist/{charts.fillGaps.hooks-dHYClR1D.js → charts.fillGaps.hooks-lZwsRfDF.js} +4 -4
- package/dist/{charts.fillGaps.hooks-dHYClR1D.js.map → charts.fillGaps.hooks-lZwsRfDF.js.map} +1 -1
- package/dist/{component.constants-6skM25Z_.js → component.constants-DIhZCTG3.js} +120 -84
- package/dist/component.constants-DIhZCTG3.js.map +1 -0
- package/dist/{editors.timeRange.utils-Dv6T01Ys.js → date.utils-CNVHSCO8.js} +18 -31
- package/dist/date.utils-CNVHSCO8.js.map +1 -0
- package/dist/editors.timeRange.utils-CG333N7U.js +18 -0
- package/dist/editors.timeRange.utils-CG333N7U.js.map +1 -0
- package/dist/embeddable-components.json +7 -5
- package/dist/embeddable-theme-2b917.js +974 -966
- package/dist/{formatter.utils-DMMBiLDD.js → formatter.utils-CuZlh4EL.js} +2 -2
- package/dist/{formatter.utils-DMMBiLDD.js.map → formatter.utils-CuZlh4EL.js.map} +1 -1
- package/dist/{index-rQcWoTcg.js → index-B7KNswsW.js} +8 -8
- package/dist/{index-rQcWoTcg.js.map → index-B7KNswsW.js.map} +1 -1
- package/dist/{index-j6OFGLY6.js → index-B_4rK6tI.js} +12 -11
- package/dist/{index-j6OFGLY6.js.map → index-B_4rK6tI.js.map} +1 -1
- package/dist/{index-DUWz6JXu.js → index-Bgj2EBb8.js} +10 -10
- package/dist/{index-DUWz6JXu.js.map → index-Bgj2EBb8.js.map} +1 -1
- package/dist/{index-B3vcfrrk.js → index-C-zjH8iP.js} +5 -5
- package/dist/{index-B3vcfrrk.js.map → index-C-zjH8iP.js.map} +1 -1
- package/dist/{index-Btli_FdH.js → index-C8pGCEGw.js} +5 -5
- package/dist/{index-Btli_FdH.js.map → index-C8pGCEGw.js.map} +1 -1
- package/dist/{index-B9XcOUp_.js → index-DqKfDjMs.js} +25 -25
- package/dist/{index-B9XcOUp_.js.map → index-DqKfDjMs.js.map} +1 -1
- package/dist/index.js +190 -247
- package/dist/index.js.map +1 -1
- package/dist/{object.utils-B52mECQg.js → object.utils-CMJleY-P.js} +2511 -2604
- package/dist/object.utils-CMJleY-P.js.map +1 -0
- package/dist/{pies.utils-BpooJ8CU.js → pies.utils-DluC4GlY.js} +4 -4
- package/dist/{pies.utils-BpooJ8CU.js.map → pies.utils-DluC4GlY.js.map} +1 -1
- package/dist/remarkable-pro/components/charts/kpis/KpiChartNumberComparisonPro/index.d.ts +19 -0
- package/dist/remarkable-pro/components/charts/kpis/KpiChartNumberComparisonPro/index.d.ts.map +1 -0
- package/dist/remarkable-pro/components/charts/kpis/KpiChartNumberPro/index.d.ts +11 -0
- package/dist/remarkable-pro/components/charts/kpis/KpiChartNumberPro/index.d.ts.map +1 -0
- package/dist/remarkable-pro/components/component.constants.d.ts +35 -0
- package/dist/remarkable-pro/components/component.constants.d.ts.map +1 -1
- package/dist/remarkable-pro/components/utils/timeRange.utils.d.ts +5 -0
- package/dist/remarkable-pro/components/utils/timeRange.utils.d.ts.map +1 -0
- package/dist/remarkable-pro/theme/defaults/defaults.ComparisonPeriods.constants.d.ts +9 -0
- package/dist/remarkable-pro/theme/defaults/defaults.ComparisonPeriods.constants.d.ts.map +1 -0
- package/dist/remarkable-pro/theme/defaults/defaults.DateRanges.constants.d.ts +9 -0
- package/dist/remarkable-pro/theme/defaults/defaults.DateRanges.constants.d.ts.map +1 -0
- package/dist/remarkable-pro/theme/i18n/translations/de.d.ts.map +1 -1
- package/dist/remarkable-pro/theme/i18n/translations/en.d.ts.map +1 -1
- package/dist/remarkable-pro/theme/theme.constants.d.ts.map +1 -1
- package/dist/remarkable-pro/theme/theme.types.d.ts +7 -0
- package/dist/remarkable-pro/theme/theme.types.d.ts.map +1 -1
- package/dist/remarkable-ui/charts/kpis/KpiChart.d.ts.map +1 -1
- package/dist/remarkable-ui/charts/kpis/KpiChart.stories.d.ts +7 -0
- package/dist/remarkable-ui/charts/kpis/KpiChart.stories.d.ts.map +1 -1
- package/dist/remarkable-ui/charts/kpis/KpiChart.types.d.ts +4 -0
- package/dist/remarkable-ui/charts/kpis/KpiChart.types.d.ts.map +1 -1
- package/dist/remarkable-ui/charts/kpis/components/KpiChartChange.d.ts.map +1 -1
- package/dist/remarkable-ui/shared/Typography/Typography.d.ts +2 -1
- package/dist/remarkable-ui/shared/Typography/Typography.d.ts.map +1 -1
- package/dist/remarkable-ui/types/css.types.d.ts +2 -0
- package/dist/remarkable-ui/types/css.types.d.ts.map +1 -0
- package/dist/remarkable-ui.css +1 -1
- package/package.json +1 -1
- package/dist/component.constants-6skM25Z_.js.map +0 -1
- package/dist/editors.timeRange.utils-Dv6T01Ys.js.map +0 -1
- package/dist/object.utils-B52mECQg.js.map +0 -1
- package/dist/remarkable-pro/components/editors/ComparisonPeriodSelectFieldPro/ComparisonPeriodSelectFieldPro.constants.d.ts +0 -3
- package/dist/remarkable-pro/components/editors/ComparisonPeriodSelectFieldPro/ComparisonPeriodSelectFieldPro.constants.d.ts.map +0 -1
- package/dist/remarkable-pro/components/editors/DateRangeSelectFieldPro/DateRangeSelectFieldPro.constants.d.ts +0 -3
- package/dist/remarkable-pro/components/editors/DateRangeSelectFieldPro/DateRangeSelectFieldPro.constants.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Qo = {
|
|
2
2
|
translation: {
|
|
3
3
|
common: {
|
|
4
4
|
other: "Other",
|
|
@@ -15,8 +15,10 @@ const qo = {
|
|
|
15
15
|
emptyMessage: "Try adding something."
|
|
16
16
|
},
|
|
17
17
|
editors: {
|
|
18
|
-
errorTitle: "Something went wrong."
|
|
19
|
-
|
|
18
|
+
errorTitle: "Something went wrong."
|
|
19
|
+
},
|
|
20
|
+
defaults: {
|
|
21
|
+
comparisonPeriodOptions: {
|
|
20
22
|
previousPeriod: "Previous period",
|
|
21
23
|
previousWeek: "Previous week",
|
|
22
24
|
previousMonth: "Previous month",
|
|
@@ -28,7 +30,7 @@ const qo = {
|
|
|
28
30
|
quarter: "Q{{quarter}} {{year}}"
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
|
-
},
|
|
33
|
+
}, Zo = {
|
|
32
34
|
translation: {
|
|
33
35
|
common: {
|
|
34
36
|
other: "Andere",
|
|
@@ -56,8 +58,10 @@ const qo = {
|
|
|
56
58
|
emptyMessage: "Versuchen Sie, etwas hinzuzufügen."
|
|
57
59
|
},
|
|
58
60
|
editors: {
|
|
59
|
-
errorTitle: "Etwas ist schiefgelaufen."
|
|
60
|
-
|
|
61
|
+
errorTitle: "Etwas ist schiefgelaufen."
|
|
62
|
+
},
|
|
63
|
+
defaults: {
|
|
64
|
+
comparisonPeriodOptions: {
|
|
61
65
|
previousPeriod: "Vorheriger Zeitraum",
|
|
62
66
|
previousWeek: "Vorherige Woche",
|
|
63
67
|
previousMonth: "Vorheriger Monat",
|
|
@@ -77,7 +81,7 @@ const qo = {
|
|
|
77
81
|
* (c) 2022-2024 John Hildenbiddle
|
|
78
82
|
* MIT license
|
|
79
83
|
*/
|
|
80
|
-
function
|
|
84
|
+
function la(...e) {
|
|
81
85
|
const t = {};
|
|
82
86
|
return e.forEach((r) => {
|
|
83
87
|
r.forEach((n) => {
|
|
@@ -85,24 +89,24 @@ function fa(...e) {
|
|
|
85
89
|
});
|
|
86
90
|
}), t;
|
|
87
91
|
}
|
|
88
|
-
function
|
|
92
|
+
function e0(...e) {
|
|
89
93
|
return e.reduce(
|
|
90
94
|
(t, r) => t.filter(Set.prototype.has, new Set(r))
|
|
91
95
|
);
|
|
92
96
|
}
|
|
93
|
-
function
|
|
94
|
-
const t =
|
|
97
|
+
function t0(...e) {
|
|
98
|
+
const t = la(...e);
|
|
95
99
|
return Object.keys(t).filter((r) => t[r] > 1);
|
|
96
100
|
}
|
|
97
|
-
function
|
|
98
|
-
const t =
|
|
101
|
+
function r0(...e) {
|
|
102
|
+
const t = la(...e);
|
|
99
103
|
return Object.keys(t).filter((r) => t[r] < e.length);
|
|
100
104
|
}
|
|
101
|
-
function
|
|
102
|
-
const t =
|
|
105
|
+
function n0(...e) {
|
|
106
|
+
const t = la(...e);
|
|
103
107
|
return Object.keys(t).filter((r) => t[r] === 1);
|
|
104
108
|
}
|
|
105
|
-
function
|
|
109
|
+
function a0(e, t = !1) {
|
|
106
110
|
const r = Object.getOwnPropertyNames(e);
|
|
107
111
|
if (t)
|
|
108
112
|
for (const n in e)
|
|
@@ -112,7 +116,7 @@ function n0(e, t = !1) {
|
|
|
112
116
|
function ta(e) {
|
|
113
117
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
114
118
|
}
|
|
115
|
-
function
|
|
119
|
+
function $a(e) {
|
|
116
120
|
if (!ta(e))
|
|
117
121
|
return !1;
|
|
118
122
|
const t = ["writable", "enumerable", "configurable"].some(
|
|
@@ -311,19 +315,19 @@ var rr = {
|
|
|
311
315
|
* (single argument) or new merged object (multiple arguments)
|
|
312
316
|
* @preserve
|
|
313
317
|
*/
|
|
314
|
-
function
|
|
318
|
+
function Ki(e, ...t) {
|
|
315
319
|
const r = arguments.length === 1 ? arguments[0] : {}, n = { ...rr, ...r }, a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = typeof n.sortArrays == "function" ? n.sortArrays : void 0, o = /* @__PURE__ */ new WeakMap();
|
|
316
320
|
let l = 0;
|
|
317
321
|
function f(u) {
|
|
318
|
-
return
|
|
322
|
+
return a0(u, n.hoistEnumerable);
|
|
319
323
|
}
|
|
320
324
|
function c(...u) {
|
|
321
325
|
let d;
|
|
322
|
-
u.length > 1 && (n.onlyCommonKeys ? d =
|
|
326
|
+
u.length > 1 && (n.onlyCommonKeys ? d = t0(
|
|
323
327
|
...u.map((h) => f(h))
|
|
324
|
-
) : n.onlyUniversalKeys ? d =
|
|
328
|
+
) : n.onlyUniversalKeys ? d = e0(...u.map((h) => f(h))) : n.skipCommonKeys ? d = n0(
|
|
325
329
|
...u.map((h) => f(h))
|
|
326
|
-
) : n.skipUniversalKeys && (d =
|
|
330
|
+
) : n.skipUniversalKeys && (d = r0(...u.map((h) => f(h))))), !d && n.onlyKeys.length && (d = n.onlyKeys), d && d !== n.onlyKeys && n.onlyKeys.length && (d = d.filter(
|
|
327
331
|
(h) => n.onlyKeys.includes(h)
|
|
328
332
|
));
|
|
329
333
|
const m = u.reduce((h, x) => {
|
|
@@ -396,7 +400,7 @@ function ji(e, ...t) {
|
|
|
396
400
|
const b = i.get(h);
|
|
397
401
|
b && !b.includes(D) ? b.push(D) : i.set(h, [D]);
|
|
398
402
|
}
|
|
399
|
-
} else _ instanceof Date ? _ = new Date(_) : ta(_) && (!re ||
|
|
403
|
+
} else _ instanceof Date ? _ = new Date(_) : ta(_) && (!re || !$a(_)) && (l++, ta(B) ? _ = c(B, _) : _ = c(_), l--);
|
|
400
404
|
if (n.afterEach !== rr.afterEach) {
|
|
401
405
|
const b = n.afterEach({
|
|
402
406
|
depth: l,
|
|
@@ -408,7 +412,7 @@ function ji(e, ...t) {
|
|
|
408
412
|
b !== void 0 && (re = !0, _ = b);
|
|
409
413
|
}
|
|
410
414
|
if (re) {
|
|
411
|
-
const b =
|
|
415
|
+
const b = $a(_) ? _ : {
|
|
412
416
|
configurable: !0,
|
|
413
417
|
enumerable: !0,
|
|
414
418
|
value: _,
|
|
@@ -458,7 +462,7 @@ function ji(e, ...t) {
|
|
|
458
462
|
return p;
|
|
459
463
|
}
|
|
460
464
|
return arguments.length === 1 ? function(...u) {
|
|
461
|
-
return arguments.length === 1 ?
|
|
465
|
+
return arguments.length === 1 ? Ki({ ...n, ...u[0] }) : c(...u);
|
|
462
466
|
} : c(...arguments);
|
|
463
467
|
}
|
|
464
468
|
const un = "en-US", At = (e, t = {}) => ({
|
|
@@ -469,7 +473,7 @@ const un = "en-US", At = (e, t = {}) => ({
|
|
|
469
473
|
optionLabel: () => e,
|
|
470
474
|
...t
|
|
471
475
|
}
|
|
472
|
-
}),
|
|
476
|
+
}), i0 = "dimension", s0 = (e) => (e == null ? void 0 : e.__type__) === i0;
|
|
473
477
|
At("string", {
|
|
474
478
|
transform: (e) => e,
|
|
475
479
|
optionLabel: (e) => Array.isArray(e) ? `[${e.map((t) => `"${t}"`).join(",")}]` : `"${e}"`
|
|
@@ -519,29 +523,29 @@ At("dataset");
|
|
|
519
523
|
At("measure");
|
|
520
524
|
At("dimension");
|
|
521
525
|
At("dimensionOrMeasure");
|
|
522
|
-
const
|
|
526
|
+
const o0 = (e, t) => Ki(e, t), ve = (e) => typeof e == "string", yr = () => {
|
|
523
527
|
let e, t;
|
|
524
528
|
const r = new Promise((n, a) => {
|
|
525
529
|
e = n, t = a;
|
|
526
530
|
});
|
|
527
531
|
return r.resolve = e, r.reject = t, r;
|
|
528
|
-
},
|
|
532
|
+
}, Wa = (e) => e == null ? "" : "" + e, f0 = (e, t, r) => {
|
|
529
533
|
e.forEach((n) => {
|
|
530
534
|
t[n] && (r[n] = t[n]);
|
|
531
535
|
});
|
|
532
|
-
},
|
|
536
|
+
}, l0 = /###/g, Va = (e) => e && e.indexOf("###") > -1 ? e.replace(l0, ".") : e, za = (e) => !e || ve(e), Or = (e, t, r) => {
|
|
533
537
|
const n = ve(t) ? t.split(".") : t;
|
|
534
538
|
let a = 0;
|
|
535
539
|
for (; a < n.length - 1; ) {
|
|
536
|
-
if (
|
|
537
|
-
const i =
|
|
540
|
+
if (za(e)) return {};
|
|
541
|
+
const i = Va(n[a]);
|
|
538
542
|
!e[i] && r && (e[i] = new r()), Object.prototype.hasOwnProperty.call(e, i) ? e = e[i] : e = {}, ++a;
|
|
539
543
|
}
|
|
540
|
-
return
|
|
544
|
+
return za(e) ? {} : {
|
|
541
545
|
obj: e,
|
|
542
|
-
k:
|
|
546
|
+
k: Va(n[a])
|
|
543
547
|
};
|
|
544
|
-
},
|
|
548
|
+
}, Ya = (e, t, r) => {
|
|
545
549
|
const {
|
|
546
550
|
obj: n,
|
|
547
551
|
k: a
|
|
@@ -554,7 +558,7 @@ const s0 = (e, t) => ji(e, t), ve = (e) => typeof e == "string", yr = () => {
|
|
|
554
558
|
for (; o.obj === void 0 && s.length; )
|
|
555
559
|
i = `${s[s.length - 1]}.${i}`, s = s.slice(0, s.length - 1), o = Or(e, s, Object), o != null && o.obj && typeof o.obj[`${o.k}.${i}`] < "u" && (o.obj = void 0);
|
|
556
560
|
o.obj[`${o.k}.${i}`] = r;
|
|
557
|
-
},
|
|
561
|
+
}, c0 = (e, t, r, n) => {
|
|
558
562
|
const {
|
|
559
563
|
obj: a,
|
|
560
564
|
k: i
|
|
@@ -567,15 +571,15 @@ const s0 = (e, t) => ji(e, t), ve = (e) => typeof e == "string", yr = () => {
|
|
|
567
571
|
} = Or(e, t);
|
|
568
572
|
if (r && Object.prototype.hasOwnProperty.call(r, n))
|
|
569
573
|
return r[n];
|
|
570
|
-
},
|
|
574
|
+
}, u0 = (e, t, r) => {
|
|
571
575
|
const n = hn(e, r);
|
|
572
576
|
return n !== void 0 ? n : hn(t, r);
|
|
573
|
-
},
|
|
577
|
+
}, Xi = (e, t, r) => {
|
|
574
578
|
for (const n in t)
|
|
575
|
-
n !== "__proto__" && n !== "constructor" && (n in e ? ve(e[n]) || e[n] instanceof String || ve(t[n]) || t[n] instanceof String ? r && (e[n] = t[n]) :
|
|
579
|
+
n !== "__proto__" && n !== "constructor" && (n in e ? ve(e[n]) || e[n] instanceof String || ve(t[n]) || t[n] instanceof String ? r && (e[n] = t[n]) : Xi(e[n], t[n], r) : e[n] = t[n]);
|
|
576
580
|
return e;
|
|
577
581
|
}, nr = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
578
|
-
var
|
|
582
|
+
var h0 = {
|
|
579
583
|
"&": "&",
|
|
580
584
|
"<": "<",
|
|
581
585
|
">": ">",
|
|
@@ -583,8 +587,8 @@ var u0 = {
|
|
|
583
587
|
"'": "'",
|
|
584
588
|
"/": "/"
|
|
585
589
|
};
|
|
586
|
-
const
|
|
587
|
-
class
|
|
590
|
+
const d0 = (e) => ve(e) ? e.replace(/[&<>"'\/]/g, (t) => h0[t]) : e;
|
|
591
|
+
class m0 {
|
|
588
592
|
constructor(t) {
|
|
589
593
|
this.capacity = t, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
590
594
|
}
|
|
@@ -596,11 +600,11 @@ class d0 {
|
|
|
596
600
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(t, n), this.regExpQueue.push(t), n;
|
|
597
601
|
}
|
|
598
602
|
}
|
|
599
|
-
const
|
|
603
|
+
const g0 = [" ", ",", "?", "!", ";"], p0 = new m0(20), x0 = (e, t, r) => {
|
|
600
604
|
t = t || "", r = r || "";
|
|
601
|
-
const n =
|
|
605
|
+
const n = g0.filter((s) => t.indexOf(s) < 0 && r.indexOf(s) < 0);
|
|
602
606
|
if (n.length === 0) return !0;
|
|
603
|
-
const a =
|
|
607
|
+
const a = p0.getRegExp(`(${n.map((s) => s === "?" ? "\\?" : s).join("|")})`);
|
|
604
608
|
let i = !a.test(e);
|
|
605
609
|
if (!i) {
|
|
606
610
|
const s = e.indexOf(r);
|
|
@@ -627,7 +631,7 @@ const m0 = [" ", ",", "?", "!", ";"], g0 = new d0(20), p0 = (e, t, r) => {
|
|
|
627
631
|
a = s;
|
|
628
632
|
}
|
|
629
633
|
return a;
|
|
630
|
-
}, Lr = (e) => e == null ? void 0 : e.replace("_", "-"),
|
|
634
|
+
}, Lr = (e) => e == null ? void 0 : e.replace("_", "-"), v0 = {
|
|
631
635
|
type: "logger",
|
|
632
636
|
log(e) {
|
|
633
637
|
this.output("log", e);
|
|
@@ -648,7 +652,7 @@ class dn {
|
|
|
648
652
|
this.init(t, r);
|
|
649
653
|
}
|
|
650
654
|
init(t, r = {}) {
|
|
651
|
-
this.prefix = r.prefix || "i18next:", this.logger = t ||
|
|
655
|
+
this.prefix = r.prefix || "i18next:", this.logger = t || v0, this.options = r, this.debug = r.debug;
|
|
652
656
|
}
|
|
653
657
|
log(...t) {
|
|
654
658
|
return this.forward(t, "log", "", !0);
|
|
@@ -706,7 +710,7 @@ class Dn {
|
|
|
706
710
|
});
|
|
707
711
|
}
|
|
708
712
|
}
|
|
709
|
-
class
|
|
713
|
+
class Ga extends Dn {
|
|
710
714
|
constructor(t, r = {
|
|
711
715
|
ns: ["translation"],
|
|
712
716
|
defaultNS: "translation"
|
|
@@ -733,7 +737,7 @@ class Ya extends Dn {
|
|
|
733
737
|
}) {
|
|
734
738
|
const s = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator;
|
|
735
739
|
let o = [t, r];
|
|
736
|
-
n && (o = o.concat(s ? n.split(s) : n)), t.indexOf(".") > -1 && (o = t.split("."), a = r, r = o[1]), this.addNamespaces(r),
|
|
740
|
+
n && (o = o.concat(s ? n.split(s) : n)), t.indexOf(".") > -1 && (o = t.split("."), a = r, r = o[1]), this.addNamespaces(r), Ya(this.data, o, a), i.silent || this.emit("added", t, r, n, a);
|
|
737
741
|
}
|
|
738
742
|
addResources(t, r, n, a = {
|
|
739
743
|
silent: !1
|
|
@@ -751,10 +755,10 @@ class Ya extends Dn {
|
|
|
751
755
|
let o = [t, r];
|
|
752
756
|
t.indexOf(".") > -1 && (o = t.split("."), a = n, n = r, r = o[1]), this.addNamespaces(r);
|
|
753
757
|
let l = hn(this.data, o) || {};
|
|
754
|
-
s.skipCopy || (n = JSON.parse(JSON.stringify(n))), a ?
|
|
758
|
+
s.skipCopy || (n = JSON.parse(JSON.stringify(n))), a ? Xi(l, n, i) : l = {
|
|
755
759
|
...l,
|
|
756
760
|
...n
|
|
757
|
-
},
|
|
761
|
+
}, Ya(this.data, o, l), s.silent || this.emit("added", t, r, n);
|
|
758
762
|
}
|
|
759
763
|
removeResourceBundle(t, r) {
|
|
760
764
|
this.hasResourceBundle(t, r) && delete this.data[t][r], this.removeNamespaces(r), this.emit("removed", t, r);
|
|
@@ -776,7 +780,7 @@ class Ya extends Dn {
|
|
|
776
780
|
return this.data;
|
|
777
781
|
}
|
|
778
782
|
}
|
|
779
|
-
var
|
|
783
|
+
var Ji = {
|
|
780
784
|
processors: {},
|
|
781
785
|
addPostProcessor(e) {
|
|
782
786
|
this.processors[e.name] = e;
|
|
@@ -788,25 +792,25 @@ var Xi = {
|
|
|
788
792
|
}), t;
|
|
789
793
|
}
|
|
790
794
|
};
|
|
791
|
-
const
|
|
792
|
-
function
|
|
795
|
+
const qi = Symbol("i18next/PATH_KEY");
|
|
796
|
+
function w0() {
|
|
793
797
|
const e = [], t = /* @__PURE__ */ Object.create(null);
|
|
794
798
|
let r;
|
|
795
799
|
return t.get = (n, a) => {
|
|
796
800
|
var i;
|
|
797
|
-
return (i = r == null ? void 0 : r.revoke) == null || i.call(r), a ===
|
|
801
|
+
return (i = r == null ? void 0 : r.revoke) == null || i.call(r), a === qi ? e : (e.push(a), r = Proxy.revocable(n, t), r.proxy);
|
|
798
802
|
}, Proxy.revocable(/* @__PURE__ */ Object.create(null), t).proxy;
|
|
799
803
|
}
|
|
800
804
|
function na(e, t) {
|
|
801
805
|
const {
|
|
802
|
-
[
|
|
803
|
-
} = e(
|
|
806
|
+
[qi]: r
|
|
807
|
+
} = e(w0());
|
|
804
808
|
return r.join((t == null ? void 0 : t.keySeparator) ?? ".");
|
|
805
809
|
}
|
|
806
|
-
const
|
|
810
|
+
const ja = {}, Ka = (e) => !ve(e) && typeof e != "boolean" && typeof e != "number";
|
|
807
811
|
class mn extends Dn {
|
|
808
812
|
constructor(t, r = {}) {
|
|
809
|
-
super(),
|
|
813
|
+
super(), f0(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = r, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = yt.create("translator");
|
|
810
814
|
}
|
|
811
815
|
changeLanguage(t) {
|
|
812
816
|
t && (this.language = t);
|
|
@@ -826,7 +830,7 @@ class mn extends Dn {
|
|
|
826
830
|
n === void 0 && (n = ":");
|
|
827
831
|
const a = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator;
|
|
828
832
|
let i = r.ns || this.options.defaultNS || [];
|
|
829
|
-
const s = n && t.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !r.keySeparator && !this.options.userDefinedNsSeparator && !r.nsSeparator && !
|
|
833
|
+
const s = n && t.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !r.keySeparator && !this.options.userDefinedNsSeparator && !r.nsSeparator && !x0(t, n, a);
|
|
830
834
|
if (s && !o) {
|
|
831
835
|
const l = t.match(this.interpolator.nestingRegexp);
|
|
832
836
|
if (l && l.length > 0)
|
|
@@ -883,7 +887,7 @@ class mn extends Dn {
|
|
|
883
887
|
}) : "", C = B && !a.ordinal && a.count === 0, R = C && a[`defaultValue${this.options.pluralSeparator}zero`] || a[`defaultValue${re}`] || a[`defaultValue${_}`] || a.defaultValue;
|
|
884
888
|
let b = p;
|
|
885
889
|
D && !p && K && (b = R);
|
|
886
|
-
const M =
|
|
890
|
+
const M = Ka(b), H = Object.prototype.toString.apply(b);
|
|
887
891
|
if (D && b && M && P.indexOf(H) < 0 && !(ve(L) && Array.isArray(b))) {
|
|
888
892
|
if (!a.returnObjects && !this.options.returnObjects) {
|
|
889
893
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
@@ -900,7 +904,7 @@ class mn extends Dn {
|
|
|
900
904
|
const j = `${I}${s}${N}`;
|
|
901
905
|
K && !p ? U[N] = this.translate(j, {
|
|
902
906
|
...a,
|
|
903
|
-
defaultValue:
|
|
907
|
+
defaultValue: Ka(R) ? R[N] : void 0,
|
|
904
908
|
joinArrays: !1,
|
|
905
909
|
ns: l
|
|
906
910
|
}) : U[N] = this.translate(j, {
|
|
@@ -981,7 +985,7 @@ class mn extends Dn {
|
|
|
981
985
|
!n.lng && a && a.res && (n.lng = this.language || a.usedLng), n.nest !== !1 && (t = this.interpolator.nest(t, (...m) => (i == null ? void 0 : i[0]) === m[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${r[0]}`), null) : this.translate(...m, r), n)), n.interpolation && this.interpolator.reset();
|
|
982
986
|
}
|
|
983
987
|
const s = n.postProcess || this.options.postProcess, o = ve(s) ? [s] : s;
|
|
984
|
-
return t != null && (o != null && o.length) && n.applyPostProcessor !== !1 && (t =
|
|
988
|
+
return t != null && (o != null && o.length) && n.applyPostProcessor !== !1 && (t = Ji.handle(o, t, r, this.options && this.options.postProcessPassResolved ? {
|
|
985
989
|
i18nResolved: {
|
|
986
990
|
...a,
|
|
987
991
|
usedParams: this.getUsedParamsDetails(n)
|
|
@@ -1000,7 +1004,7 @@ class mn extends Dn {
|
|
|
1000
1004
|
const d = r.count !== void 0 && !ve(r.count), m = d && !r.ordinal && r.count === 0, p = r.context !== void 0 && (ve(r.context) || typeof r.context == "number") && r.context !== "", h = r.lngs ? r.lngs : this.languageUtils.toResolveHierarchy(r.lng || this.language, r.fallbackLng);
|
|
1001
1005
|
u.forEach((x) => {
|
|
1002
1006
|
var P, L;
|
|
1003
|
-
this.isValidLookup(n) || (o = x, !
|
|
1007
|
+
this.isValidLookup(n) || (o = x, !ja[`${h[0]}-${x}`] && ((P = this.utils) != null && P.hasLoadedNamespace) && !((L = this.utils) != null && L.hasLoadedNamespace(o)) && (ja[`${h[0]}-${x}`] = !0, this.logger.warn(`key "${a}" for languages "${h.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), h.forEach((D) => {
|
|
1004
1008
|
var re;
|
|
1005
1009
|
if (this.isValidLookup(n)) return;
|
|
1006
1010
|
s = D;
|
|
@@ -1059,7 +1063,7 @@ class mn extends Dn {
|
|
|
1059
1063
|
return !1;
|
|
1060
1064
|
}
|
|
1061
1065
|
}
|
|
1062
|
-
class
|
|
1066
|
+
class Xa {
|
|
1063
1067
|
constructor(t) {
|
|
1064
1068
|
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = yt.create("languageUtils");
|
|
1065
1069
|
}
|
|
@@ -1123,20 +1127,20 @@ class Ka {
|
|
|
1123
1127
|
}), a;
|
|
1124
1128
|
}
|
|
1125
1129
|
}
|
|
1126
|
-
const
|
|
1130
|
+
const Ja = {
|
|
1127
1131
|
zero: 0,
|
|
1128
1132
|
one: 1,
|
|
1129
1133
|
two: 2,
|
|
1130
1134
|
few: 3,
|
|
1131
1135
|
many: 4,
|
|
1132
1136
|
other: 5
|
|
1133
|
-
},
|
|
1137
|
+
}, qa = {
|
|
1134
1138
|
select: (e) => e === 1 ? "one" : "other",
|
|
1135
1139
|
resolvedOptions: () => ({
|
|
1136
1140
|
pluralCategories: ["one", "other"]
|
|
1137
1141
|
})
|
|
1138
1142
|
};
|
|
1139
|
-
class
|
|
1143
|
+
class _0 {
|
|
1140
1144
|
constructor(t, r = {}) {
|
|
1141
1145
|
this.languageUtils = t, this.options = r, this.logger = yt.create("pluralResolver"), this.pluralRulesCache = {};
|
|
1142
1146
|
}
|
|
@@ -1160,8 +1164,8 @@ class w0 {
|
|
|
1160
1164
|
});
|
|
1161
1165
|
} catch {
|
|
1162
1166
|
if (!Intl)
|
|
1163
|
-
return this.logger.error("No Intl support, please use an Intl polyfill!"),
|
|
1164
|
-
if (!t.match(/-|_/)) return
|
|
1167
|
+
return this.logger.error("No Intl support, please use an Intl polyfill!"), qa;
|
|
1168
|
+
if (!t.match(/-|_/)) return qa;
|
|
1165
1169
|
const l = this.languageUtils.getLanguagePartFromCode(t);
|
|
1166
1170
|
s = this.getRule(l, r);
|
|
1167
1171
|
}
|
|
@@ -1176,18 +1180,18 @@ class w0 {
|
|
|
1176
1180
|
}
|
|
1177
1181
|
getSuffixes(t, r = {}) {
|
|
1178
1182
|
let n = this.getRule(t, r);
|
|
1179
|
-
return n || (n = this.getRule("dev", r)), n ? n.resolvedOptions().pluralCategories.sort((a, i) =>
|
|
1183
|
+
return n || (n = this.getRule("dev", r)), n ? n.resolvedOptions().pluralCategories.sort((a, i) => Ja[a] - Ja[i]).map((a) => `${this.options.prepend}${r.ordinal ? `ordinal${this.options.prepend}` : ""}${a}`) : [];
|
|
1180
1184
|
}
|
|
1181
1185
|
getSuffix(t, r, n = {}) {
|
|
1182
1186
|
const a = this.getRule(t, n);
|
|
1183
1187
|
return a ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${a.select(r)}` : (this.logger.warn(`no plural rule found for: ${t}`), this.getSuffix("dev", r, n));
|
|
1184
1188
|
}
|
|
1185
1189
|
}
|
|
1186
|
-
const
|
|
1187
|
-
let i =
|
|
1190
|
+
const Qa = (e, t, r, n = ".", a = !0) => {
|
|
1191
|
+
let i = u0(e, t, r);
|
|
1188
1192
|
return !i && a && ve(r) && (i = ra(e, r, n), i === void 0 && (i = ra(t, r, n))), i;
|
|
1189
1193
|
}, zn = (e) => e.replace(/\$/g, "$$$$");
|
|
1190
|
-
class
|
|
1194
|
+
class T0 {
|
|
1191
1195
|
constructor(t = {}) {
|
|
1192
1196
|
var r;
|
|
1193
1197
|
this.logger = yt.create("interpolator"), this.options = t, this.format = ((r = t == null ? void 0 : t.interpolation) == null ? void 0 : r.format) || ((n) => n), this.init(t);
|
|
@@ -1215,7 +1219,7 @@ class _0 {
|
|
|
1215
1219
|
maxReplaces: P,
|
|
1216
1220
|
alwaysFormat: L
|
|
1217
1221
|
} = t.interpolation;
|
|
1218
|
-
this.escape = r !== void 0 ? r :
|
|
1222
|
+
this.escape = r !== void 0 ? r : d0, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = a !== void 0 ? a : !1, this.prefix = i ? nr(i) : s || "{{", this.suffix = o ? nr(o) : l || "}}", this.formatSeparator = f || ",", this.unescapePrefix = c ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = d ? nr(d) : m || nr("$t("), this.nestingSuffix = p ? nr(p) : h || nr(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = P || 1e3, this.alwaysFormat = L !== void 0 ? L : !1, this.resetRegExp();
|
|
1219
1223
|
}
|
|
1220
1224
|
reset() {
|
|
1221
1225
|
this.options && this.init(this.options);
|
|
@@ -1229,7 +1233,7 @@ class _0 {
|
|
|
1229
1233
|
let i, s, o;
|
|
1230
1234
|
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, f = (p) => {
|
|
1231
1235
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
1232
|
-
const L =
|
|
1236
|
+
const L = Qa(r, l, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
1233
1237
|
return this.alwaysFormat ? this.format(L, void 0, n, {
|
|
1234
1238
|
...a,
|
|
1235
1239
|
...r,
|
|
@@ -1237,7 +1241,7 @@ class _0 {
|
|
|
1237
1241
|
}) : L;
|
|
1238
1242
|
}
|
|
1239
1243
|
const h = p.split(this.formatSeparator), x = h.shift().trim(), P = h.join(this.formatSeparator).trim();
|
|
1240
|
-
return this.format(
|
|
1244
|
+
return this.format(Qa(r, l, x, this.options.keySeparator, this.options.ignoreJSONStructure), P, n, {
|
|
1241
1245
|
...a,
|
|
1242
1246
|
...r,
|
|
1243
1247
|
interpolationkey: x
|
|
@@ -1265,7 +1269,7 @@ class _0 {
|
|
|
1265
1269
|
continue;
|
|
1266
1270
|
} else
|
|
1267
1271
|
this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`), s = "";
|
|
1268
|
-
else !ve(s) && !this.useRawValueToEscape && (s =
|
|
1272
|
+
else !ve(s) && !this.useRawValueToEscape && (s = Wa(s));
|
|
1269
1273
|
const x = p.safeValue(s);
|
|
1270
1274
|
if (t = t.replace(i[0], x), u ? (p.regex.lastIndex += s.length, p.regex.lastIndex -= i[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
1271
1275
|
break;
|
|
@@ -1299,7 +1303,7 @@ class _0 {
|
|
|
1299
1303
|
}, s = s.replace && !ve(s.replace) ? s.replace : s, s.applyPostProcessor = !1, delete s.defaultValue;
|
|
1300
1304
|
const f = /{.*}/.test(a[1]) ? a[1].lastIndexOf("}") + 1 : a[1].indexOf(this.formatSeparator);
|
|
1301
1305
|
if (f !== -1 && (l = a[1].slice(f).split(this.formatSeparator).map((c) => c.trim()).filter(Boolean), a[1] = a[1].slice(0, f)), i = r(o.call(this, a[1].trim(), s), s), i && a[0] === t && !ve(i)) return i;
|
|
1302
|
-
ve(i) || (i =
|
|
1306
|
+
ve(i) || (i = Wa(i)), i || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`), i = ""), l.length && (i = l.reduce((c, u) => this.format(c, u, n.lng, {
|
|
1303
1307
|
...n,
|
|
1304
1308
|
interpolationkey: a[1].trim()
|
|
1305
1309
|
}), i.trim())), t = t.replace(a[0], i), this.regexp.lastIndex = 0;
|
|
@@ -1307,7 +1311,7 @@ class _0 {
|
|
|
1307
1311
|
return t;
|
|
1308
1312
|
}
|
|
1309
1313
|
}
|
|
1310
|
-
const
|
|
1314
|
+
const E0 = (e) => {
|
|
1311
1315
|
let t = e.toLowerCase().trim();
|
|
1312
1316
|
const r = {};
|
|
1313
1317
|
if (e.indexOf("(") > -1) {
|
|
@@ -1325,7 +1329,7 @@ const T0 = (e) => {
|
|
|
1325
1329
|
formatName: t,
|
|
1326
1330
|
formatOptions: r
|
|
1327
1331
|
};
|
|
1328
|
-
},
|
|
1332
|
+
}, Za = (e) => {
|
|
1329
1333
|
const t = {};
|
|
1330
1334
|
return (r, n, a) => {
|
|
1331
1335
|
let i = a;
|
|
@@ -1337,8 +1341,8 @@ const T0 = (e) => {
|
|
|
1337
1341
|
let o = t[s];
|
|
1338
1342
|
return o || (o = e(Lr(n), a), t[s] = o), o(r);
|
|
1339
1343
|
};
|
|
1340
|
-
},
|
|
1341
|
-
class
|
|
1344
|
+
}, y0 = (e) => (t, r, n) => e(Lr(r), n)(t);
|
|
1345
|
+
class S0 {
|
|
1342
1346
|
constructor(t = {}) {
|
|
1343
1347
|
this.logger = yt.create("formatter"), this.options = t, this.init(t);
|
|
1344
1348
|
}
|
|
@@ -1346,7 +1350,7 @@ class y0 {
|
|
|
1346
1350
|
interpolation: {}
|
|
1347
1351
|
}) {
|
|
1348
1352
|
this.formatSeparator = r.interpolation.formatSeparator || ",";
|
|
1349
|
-
const n = r.cacheInBuiltFormats ?
|
|
1353
|
+
const n = r.cacheInBuiltFormats ? Za : y0;
|
|
1350
1354
|
this.formats = {
|
|
1351
1355
|
number: n((a, i) => {
|
|
1352
1356
|
const s = new Intl.NumberFormat(a, {
|
|
@@ -1385,7 +1389,7 @@ class y0 {
|
|
|
1385
1389
|
this.formats[t.toLowerCase().trim()] = r;
|
|
1386
1390
|
}
|
|
1387
1391
|
addCached(t, r) {
|
|
1388
|
-
this.formats[t.toLowerCase().trim()] =
|
|
1392
|
+
this.formats[t.toLowerCase().trim()] = Za(r);
|
|
1389
1393
|
}
|
|
1390
1394
|
format(t, r, n, a = {}) {
|
|
1391
1395
|
const i = r.split(this.formatSeparator);
|
|
@@ -1398,7 +1402,7 @@ class y0 {
|
|
|
1398
1402
|
const {
|
|
1399
1403
|
formatName: f,
|
|
1400
1404
|
formatOptions: c
|
|
1401
|
-
} =
|
|
1405
|
+
} = E0(l);
|
|
1402
1406
|
if (this.formats[f]) {
|
|
1403
1407
|
let d = o;
|
|
1404
1408
|
try {
|
|
@@ -1418,10 +1422,10 @@ class y0 {
|
|
|
1418
1422
|
}, t);
|
|
1419
1423
|
}
|
|
1420
1424
|
}
|
|
1421
|
-
const
|
|
1425
|
+
const A0 = (e, t) => {
|
|
1422
1426
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
1423
1427
|
};
|
|
1424
|
-
class
|
|
1428
|
+
class F0 extends Dn {
|
|
1425
1429
|
constructor(t, r, n, a = {}) {
|
|
1426
1430
|
var i, s;
|
|
1427
1431
|
super(), this.backend = t, this.store = r, this.services = n, this.languageUtils = n.languageUtils, this.options = a, this.logger = yt.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = a.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = a.maxRetries >= 0 ? a.maxRetries : 5, this.retryTimeout = a.retryTimeout >= 1 ? a.retryTimeout : 350, this.state = {}, this.queue = [], (s = (i = this.backend) == null ? void 0 : i.init) == null || s.call(i, n, a.backend, a);
|
|
@@ -1454,7 +1458,7 @@ class A0 extends Dn {
|
|
|
1454
1458
|
}), this.state[t] = r ? -1 : 2, r && n && (this.state[t] = 0);
|
|
1455
1459
|
const o = {};
|
|
1456
1460
|
this.queue.forEach((l) => {
|
|
1457
|
-
|
|
1461
|
+
c0(l.loaded, [i], s), A0(l, t), r && l.errors.push(r), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((f) => {
|
|
1458
1462
|
o[f] || (o[f] = {});
|
|
1459
1463
|
const c = l.loaded[f];
|
|
1460
1464
|
c.length && c.forEach((u) => {
|
|
@@ -1553,7 +1557,7 @@ class A0 extends Dn {
|
|
|
1553
1557
|
}
|
|
1554
1558
|
}
|
|
1555
1559
|
}
|
|
1556
|
-
const
|
|
1560
|
+
const ei = () => ({
|
|
1557
1561
|
debug: !1,
|
|
1558
1562
|
initAsync: !0,
|
|
1559
1563
|
ns: ["translation"],
|
|
@@ -1610,20 +1614,20 @@ const Za = () => ({
|
|
|
1610
1614
|
skipOnVariables: !0
|
|
1611
1615
|
},
|
|
1612
1616
|
cacheInBuiltFormats: !0
|
|
1613
|
-
}),
|
|
1617
|
+
}), ti = (e) => {
|
|
1614
1618
|
var t, r;
|
|
1615
1619
|
return ve(e.ns) && (e.ns = [e.ns]), ve(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), ve(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), ((r = (t = e.supportedLngs) == null ? void 0 : t.indexOf) == null ? void 0 : r.call(t, "cimode")) < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e;
|
|
1616
1620
|
}, Jr = () => {
|
|
1617
|
-
},
|
|
1621
|
+
}, O0 = (e) => {
|
|
1618
1622
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((r) => {
|
|
1619
1623
|
typeof e[r] == "function" && (e[r] = e[r].bind(e));
|
|
1620
1624
|
});
|
|
1621
1625
|
};
|
|
1622
1626
|
class Nr extends Dn {
|
|
1623
1627
|
constructor(t = {}, r) {
|
|
1624
|
-
if (super(), this.options =
|
|
1628
|
+
if (super(), this.options = ti(t), this.services = {}, this.logger = yt, this.modules = {
|
|
1625
1629
|
external: []
|
|
1626
|
-
},
|
|
1630
|
+
}, O0(this), r && !this.isInitialized && !t.isClone) {
|
|
1627
1631
|
if (!this.options.initAsync)
|
|
1628
1632
|
return this.init(t, r), this;
|
|
1629
1633
|
setTimeout(() => {
|
|
@@ -1633,11 +1637,11 @@ class Nr extends Dn {
|
|
|
1633
1637
|
}
|
|
1634
1638
|
init(t = {}, r) {
|
|
1635
1639
|
this.isInitializing = !0, typeof t == "function" && (r = t, t = {}), t.defaultNS == null && t.ns && (ve(t.ns) ? t.defaultNS = t.ns : t.ns.indexOf("translation") < 0 && (t.defaultNS = t.ns[0]));
|
|
1636
|
-
const n =
|
|
1640
|
+
const n = ei();
|
|
1637
1641
|
this.options = {
|
|
1638
1642
|
...n,
|
|
1639
1643
|
...this.options,
|
|
1640
|
-
...
|
|
1644
|
+
...ti(t)
|
|
1641
1645
|
}, this.options.interpolation = {
|
|
1642
1646
|
...n.interpolation,
|
|
1643
1647
|
...this.options.interpolation
|
|
@@ -1646,16 +1650,16 @@ class Nr extends Dn {
|
|
|
1646
1650
|
if (!this.options.isClone) {
|
|
1647
1651
|
this.modules.logger ? yt.init(a(this.modules.logger), this.options) : yt.init(null, this.options);
|
|
1648
1652
|
let f;
|
|
1649
|
-
this.modules.formatter ? f = this.modules.formatter : f =
|
|
1650
|
-
const c = new
|
|
1651
|
-
this.store = new
|
|
1653
|
+
this.modules.formatter ? f = this.modules.formatter : f = S0;
|
|
1654
|
+
const c = new Xa(this.options);
|
|
1655
|
+
this.store = new Ga(this.options.resources, this.options);
|
|
1652
1656
|
const u = this.services;
|
|
1653
|
-
u.logger = yt, u.resourceStore = this.store, u.languageUtils = c, u.pluralResolver = new
|
|
1657
|
+
u.logger = yt, u.resourceStore = this.store, u.languageUtils = c, u.pluralResolver = new _0(c, {
|
|
1654
1658
|
prepend: this.options.pluralSeparator,
|
|
1655
1659
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1656
|
-
}), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), f && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = a(f), u.formatter.init && u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new
|
|
1660
|
+
}), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), f && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = a(f), u.formatter.init && u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new T0(this.options), u.utils = {
|
|
1657
1661
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1658
|
-
}, u.backendConnector = new
|
|
1662
|
+
}, u.backendConnector = new F0(a(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (m, ...p) => {
|
|
1659
1663
|
this.emit(m, ...p);
|
|
1660
1664
|
}), this.modules.languageDetector && (u.languageDetector = a(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = a(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new mn(this.services, this.options), this.translator.on("*", (m, ...p) => {
|
|
1661
1665
|
this.emit(m, ...p);
|
|
@@ -1708,7 +1712,7 @@ class Nr extends Dn {
|
|
|
1708
1712
|
use(t) {
|
|
1709
1713
|
if (!t) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
1710
1714
|
if (!t.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
1711
|
-
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" &&
|
|
1715
|
+
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && Ji.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
|
|
1712
1716
|
}
|
|
1713
1717
|
setResolvedLanguage(t) {
|
|
1714
1718
|
if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1)) {
|
|
@@ -1813,7 +1817,7 @@ class Nr extends Dn {
|
|
|
1813
1817
|
}
|
|
1814
1818
|
} catch {
|
|
1815
1819
|
}
|
|
1816
|
-
const r = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = ((i = this.services) == null ? void 0 : i.languageUtils) || new
|
|
1820
|
+
const r = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = ((i = this.services) == null ? void 0 : i.languageUtils) || new Xa(ei());
|
|
1817
1821
|
return t.toLowerCase().indexOf("-latn") > 1 ? "ltr" : r.indexOf(n.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1818
1822
|
}
|
|
1819
1823
|
static createInstance(t = {}, r) {
|
|
@@ -1839,7 +1843,7 @@ class Nr extends Dn {
|
|
|
1839
1843
|
}, l[f] = Object.keys(l[f]).reduce((c, u) => (c[u] = {
|
|
1840
1844
|
...l[f][u]
|
|
1841
1845
|
}, c), l[f]), l), {});
|
|
1842
|
-
i.store = new
|
|
1846
|
+
i.store = new Ga(o, a), i.services.resourceStore = i.store;
|
|
1843
1847
|
}
|
|
1844
1848
|
return i.translator = new mn(i.services, a), i.translator.on("*", (o, ...l) => {
|
|
1845
1849
|
i.emit(o, ...l);
|
|
@@ -1873,7 +1877,7 @@ Le.setDefaultNamespace;
|
|
|
1873
1877
|
Le.hasLoadedNamespace;
|
|
1874
1878
|
Le.loadNamespaces;
|
|
1875
1879
|
Le.loadLanguages;
|
|
1876
|
-
const
|
|
1880
|
+
const Qi = (e) => {
|
|
1877
1881
|
var t, r;
|
|
1878
1882
|
!((t = e == null ? void 0 : e.i18n) != null && t.language) || !((r = e == null ? void 0 : e.i18n) != null && r.translations) || Le.language === e.i18n.language && Le.isInitialized || Le.init({
|
|
1879
1883
|
lng: e.i18n.language,
|
|
@@ -1883,13 +1887,13 @@ const qi = (e) => {
|
|
|
1883
1887
|
escapeValue: !1
|
|
1884
1888
|
}
|
|
1885
1889
|
});
|
|
1886
|
-
},
|
|
1890
|
+
}, ca = (e) => {
|
|
1887
1891
|
try {
|
|
1888
1892
|
return new Intl.Locale(e);
|
|
1889
1893
|
} catch {
|
|
1890
1894
|
return new Intl.Locale("en-US");
|
|
1891
1895
|
}
|
|
1892
|
-
},
|
|
1896
|
+
}, C0 = (e, t) => {
|
|
1893
1897
|
try {
|
|
1894
1898
|
return new Intl.NumberFormat(e, {
|
|
1895
1899
|
style: "currency",
|
|
@@ -1898,16 +1902,16 @@ const qi = (e) => {
|
|
|
1898
1902
|
} catch {
|
|
1899
1903
|
return !1;
|
|
1900
1904
|
}
|
|
1901
|
-
},
|
|
1905
|
+
}, b0 = () => ({
|
|
1902
1906
|
format: (e) => Le.t(e)
|
|
1903
|
-
}),
|
|
1904
|
-
const r =
|
|
1905
|
-
return n && !
|
|
1907
|
+
}), D0 = {}, k0 = (e, t = e.formatter.defaultNumberFormatterOptions) => {
|
|
1908
|
+
const r = ca(e.formatter.locale), n = t == null ? void 0 : t.currency;
|
|
1909
|
+
return n && !C0(r, n) ? {
|
|
1906
1910
|
format: (a) => `${n} ${Intl.NumberFormat(r, { ...t, currency: void 0, style: void 0 }).format(a)}`
|
|
1907
1911
|
} : {
|
|
1908
1912
|
format: Intl.NumberFormat(r, t ?? e.formatter.defaultNumberFormatterOptions).format
|
|
1909
1913
|
};
|
|
1910
|
-
},
|
|
1914
|
+
}, R0 = (e, t) => {
|
|
1911
1915
|
var a, i, s;
|
|
1912
1916
|
const r = (a = t.inputs) == null ? void 0 : a.currency, n = {
|
|
1913
1917
|
style: r ? "currency" : void 0,
|
|
@@ -1916,20 +1920,20 @@ const qi = (e) => {
|
|
|
1916
1920
|
maximumFractionDigits: ((s = t.inputs) == null ? void 0 : s.decimalPlaces) ?? 0
|
|
1917
1921
|
};
|
|
1918
1922
|
return e.formatter.numberFormatter(e, n);
|
|
1919
|
-
},
|
|
1923
|
+
}, P0 = {
|
|
1920
1924
|
year: "numeric",
|
|
1921
1925
|
month: "short",
|
|
1922
1926
|
day: "numeric",
|
|
1923
1927
|
hour: "numeric",
|
|
1924
1928
|
minute: "numeric",
|
|
1925
1929
|
second: "numeric"
|
|
1926
|
-
}, P0 = (e, t) => {
|
|
1927
|
-
const r = la(e.formatter.locale), { year: n, month: a, day: i, hour: s, minute: o, second: l } = t ?? e.formatter.defaultDateTimeFormatOptions;
|
|
1928
|
-
return new Intl.DateTimeFormat(r, { year: n, month: a, day: i, hour: s, minute: o, second: l });
|
|
1929
1930
|
}, L0 = (e, t) => {
|
|
1931
|
+
const r = ca(e.formatter.locale), { year: n, month: a, day: i, hour: s, minute: o, second: l } = t ?? e.formatter.defaultDateTimeFormatOptions;
|
|
1932
|
+
return new Intl.DateTimeFormat(r, { year: n, month: a, day: i, hour: s, minute: o, second: l });
|
|
1933
|
+
}, N0 = (e, t) => {
|
|
1930
1934
|
var f, c;
|
|
1931
|
-
|
|
1932
|
-
const r =
|
|
1935
|
+
Qi(e);
|
|
1936
|
+
const r = ca(e.formatter.locale);
|
|
1933
1937
|
if (!((f = t.inputs) != null && f.granularity))
|
|
1934
1938
|
return e.formatter.dateTimeFormatter(e);
|
|
1935
1939
|
const { year: n, month: a, day: i, hour: s, minute: o, second: l } = e.formatter.defaultDateTimeFormatOptions;
|
|
@@ -1956,9 +1960,9 @@ const qi = (e) => {
|
|
|
1956
1960
|
default:
|
|
1957
1961
|
return new Intl.DateTimeFormat(r, { year: n, month: a, day: i, hour: s, minute: o, second: l });
|
|
1958
1962
|
}
|
|
1959
|
-
},
|
|
1960
|
-
|
|
1961
|
-
const r = t.name, n =
|
|
1963
|
+
}, I0 = (e, t) => {
|
|
1964
|
+
Qi(e);
|
|
1965
|
+
const r = t.name, n = s0(t) ? "dimension" : "measure";
|
|
1962
1966
|
return {
|
|
1963
1967
|
format: (a) => {
|
|
1964
1968
|
if (!a)
|
|
@@ -1981,17 +1985,17 @@ const qi = (e) => {
|
|
|
1981
1985
|
);
|
|
1982
1986
|
}
|
|
1983
1987
|
};
|
|
1984
|
-
}, I0 = {
|
|
1985
|
-
locale: navigator.language,
|
|
1986
|
-
defaultNumberFormatterOptions: b0,
|
|
1987
|
-
defaultDateTimeFormatOptions: R0,
|
|
1988
|
-
stringFormatter: C0,
|
|
1989
|
-
numberFormatter: D0,
|
|
1990
|
-
dateTimeFormatter: P0,
|
|
1991
|
-
dataNumberFormatter: k0,
|
|
1992
|
-
dataDateTimeFormatter: L0,
|
|
1993
|
-
dataOthersFormatter: N0
|
|
1994
1988
|
}, M0 = {
|
|
1989
|
+
locale: navigator.language,
|
|
1990
|
+
defaultNumberFormatterOptions: D0,
|
|
1991
|
+
defaultDateTimeFormatOptions: P0,
|
|
1992
|
+
stringFormatter: b0,
|
|
1993
|
+
numberFormatter: k0,
|
|
1994
|
+
dateTimeFormatter: L0,
|
|
1995
|
+
dataNumberFormatter: R0,
|
|
1996
|
+
dataDateTimeFormatter: N0,
|
|
1997
|
+
dataOthersFormatter: I0
|
|
1998
|
+
}, B0 = {
|
|
1995
1999
|
"--em-gray-0": "rgb(255 255 255)",
|
|
1996
2000
|
"--em-gray-050": "rgb(247 247 248)",
|
|
1997
2001
|
"--em-gray-100": "rgb(237 237 241)",
|
|
@@ -2014,7 +2018,7 @@ const qi = (e) => {
|
|
|
2014
2018
|
"--em-orange-700": "rgb(255 119 51)",
|
|
2015
2019
|
"--em-orange-800": "rgb(255 102 26)",
|
|
2016
2020
|
"--em-orange-900": "rgb(255 84 0)"
|
|
2017
|
-
},
|
|
2021
|
+
}, U0 = {
|
|
2018
2022
|
"--em-height-0": "0px",
|
|
2019
2023
|
"--em-height-050": "2px",
|
|
2020
2024
|
"--em-height-100": "4px",
|
|
@@ -2079,7 +2083,7 @@ const qi = (e) => {
|
|
|
2079
2083
|
"--em-width-700": "28px",
|
|
2080
2084
|
"--em-width-800": "32px",
|
|
2081
2085
|
"--em-width-900": "36px"
|
|
2082
|
-
},
|
|
2086
|
+
}, H0 = {
|
|
2083
2087
|
"--em-border-radius-0": "0px",
|
|
2084
2088
|
"--em-border-radius-050": "2px",
|
|
2085
2089
|
"--em-border-radius-100": "4px",
|
|
@@ -2092,7 +2096,7 @@ const qi = (e) => {
|
|
|
2092
2096
|
"--em-border-width-default": "1px",
|
|
2093
2097
|
"--em-border-width-l": "2px",
|
|
2094
2098
|
"--em-border-width-xl": "4px"
|
|
2095
|
-
},
|
|
2099
|
+
}, $0 = {
|
|
2096
2100
|
"--em-background-color-default": "var(--em-gray-050)",
|
|
2097
2101
|
"--em-background-color-inverted": "var(--em-gray-900)",
|
|
2098
2102
|
"--em-background-color-light": "var(--em-gray-100)",
|
|
@@ -2533,7 +2537,7 @@ const qi = (e) => {
|
|
|
2533
2537
|
"--em-text-input-size-height": "var(--em-height-1000)",
|
|
2534
2538
|
"--em-text-input-size-max-width": "400px",
|
|
2535
2539
|
"--em-text-input-size-min-width": "160px"
|
|
2536
|
-
},
|
|
2540
|
+
}, W0 = {
|
|
2537
2541
|
"--em-font-family-default": "inter",
|
|
2538
2542
|
"--em-font-size-md": "16px",
|
|
2539
2543
|
"--em-font-size-sm": "14px",
|
|
@@ -2547,323 +2551,73 @@ const qi = (e) => {
|
|
|
2547
2551
|
"--em-line-height-md": "16px",
|
|
2548
2552
|
"--em-line-height-sm": "14px",
|
|
2549
2553
|
"--em-line-height-xl": "38px"
|
|
2550
|
-
},
|
|
2554
|
+
}, V0 = {
|
|
2551
2555
|
"--em-box-shadow-default-blur": "40px",
|
|
2552
2556
|
"--em-box-shadow-default-color": "rgb(33 33 41 / 25%)",
|
|
2553
2557
|
"--em-box-shadow-default-position-x": "0px",
|
|
2554
2558
|
"--em-box-shadow-default-position-y": "1px",
|
|
2555
2559
|
"--em-box-shadow-default-spread": "0px"
|
|
2556
|
-
},
|
|
2557
|
-
...M0,
|
|
2560
|
+
}, z0 = {
|
|
2558
2561
|
...B0,
|
|
2559
2562
|
...U0,
|
|
2560
2563
|
...H0,
|
|
2561
2564
|
...$0,
|
|
2562
|
-
...W0
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
}
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
dateFormat: "MMM DD"
|
|
2613
|
-
},
|
|
2614
|
-
{
|
|
2615
|
-
value: "Last week",
|
|
2616
|
-
label: "Last week",
|
|
2617
|
-
getRange: () => Yn(/* @__PURE__ */ new Date(), -1),
|
|
2618
|
-
dateFormat: "MMM DD"
|
|
2619
|
-
},
|
|
2620
|
-
{
|
|
2621
|
-
value: "Week to date",
|
|
2622
|
-
label: "Week to date",
|
|
2623
|
-
getRange: () => {
|
|
2624
|
-
const e = /* @__PURE__ */ new Date(), { from: t } = Yn(e, 0), r = new Date(e);
|
|
2625
|
-
return r.setHours(23, 59, 59, 999), {
|
|
2626
|
-
from: t,
|
|
2627
|
-
to: r,
|
|
2628
|
-
relativeTimeString: ""
|
|
2629
|
-
};
|
|
2630
|
-
},
|
|
2631
|
-
dateFormat: "MMM DD"
|
|
2632
|
-
},
|
|
2633
|
-
{
|
|
2634
|
-
value: "Last 7 days",
|
|
2635
|
-
label: "Last 7 days",
|
|
2636
|
-
getRange: () => {
|
|
2637
|
-
const e = /* @__PURE__ */ new Date();
|
|
2638
|
-
e.setHours(23, 59, 59, 999);
|
|
2639
|
-
const t = new Date(e);
|
|
2640
|
-
return t.setDate(e.getDate() - 6), t.setHours(0, 0, 0, 0), {
|
|
2641
|
-
from: t,
|
|
2642
|
-
to: e,
|
|
2643
|
-
relativeTimeString: ""
|
|
2644
|
-
};
|
|
2645
|
-
},
|
|
2646
|
-
dateFormat: "MMM DD"
|
|
2647
|
-
},
|
|
2648
|
-
{
|
|
2649
|
-
value: "Next 7 days",
|
|
2650
|
-
label: "Next 7 days",
|
|
2651
|
-
getRange: () => {
|
|
2652
|
-
const e = /* @__PURE__ */ new Date();
|
|
2653
|
-
e.setHours(0, 0, 0, 0);
|
|
2654
|
-
const t = new Date(e);
|
|
2655
|
-
return t.setDate(e.getDate() + 6), t.setHours(23, 59, 59, 999), {
|
|
2656
|
-
from: e,
|
|
2657
|
-
to: t,
|
|
2658
|
-
relativeTimeString: ""
|
|
2659
|
-
};
|
|
2660
|
-
},
|
|
2661
|
-
dateFormat: "MMM DD"
|
|
2662
|
-
},
|
|
2663
|
-
{
|
|
2664
|
-
value: "Last 30 days",
|
|
2665
|
-
label: "Last 30 days",
|
|
2666
|
-
getRange: () => {
|
|
2667
|
-
const e = /* @__PURE__ */ new Date();
|
|
2668
|
-
e.setHours(23, 59, 59, 999);
|
|
2669
|
-
const t = new Date(e);
|
|
2670
|
-
return t.setDate(e.getDate() - 29), t.setHours(0, 0, 0, 0), {
|
|
2671
|
-
from: t,
|
|
2672
|
-
to: e,
|
|
2673
|
-
relativeTimeString: ""
|
|
2674
|
-
};
|
|
2675
|
-
},
|
|
2676
|
-
dateFormat: "MMM DD"
|
|
2677
|
-
},
|
|
2678
|
-
{
|
|
2679
|
-
value: "Next 30 days",
|
|
2680
|
-
label: "Next 30 days",
|
|
2681
|
-
getRange: () => {
|
|
2682
|
-
const e = /* @__PURE__ */ new Date();
|
|
2683
|
-
e.setHours(0, 0, 0, 0);
|
|
2684
|
-
const t = new Date(e);
|
|
2685
|
-
return t.setDate(e.getDate() + 29), t.setHours(23, 59, 59, 999), {
|
|
2686
|
-
from: e,
|
|
2687
|
-
to: t,
|
|
2688
|
-
relativeTimeString: ""
|
|
2689
|
-
};
|
|
2690
|
-
},
|
|
2691
|
-
dateFormat: "MMM DD"
|
|
2692
|
-
},
|
|
2693
|
-
{
|
|
2694
|
-
value: "This month",
|
|
2695
|
-
label: "This month",
|
|
2696
|
-
getRange: () => {
|
|
2697
|
-
const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), e.getMonth(), 1), r = new Date(e.getFullYear(), e.getMonth() + 1, 0, 23, 59, 59, 999);
|
|
2698
|
-
return {
|
|
2699
|
-
from: t,
|
|
2700
|
-
to: r,
|
|
2701
|
-
relativeTimeString: ""
|
|
2702
|
-
};
|
|
2703
|
-
},
|
|
2704
|
-
dateFormat: "MMM YYYY"
|
|
2705
|
-
},
|
|
2706
|
-
{
|
|
2707
|
-
value: "Last month",
|
|
2708
|
-
label: "Last month",
|
|
2709
|
-
getRange: () => {
|
|
2710
|
-
const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), e.getMonth() - 1, 1), r = new Date(e.getFullYear(), e.getMonth(), 0, 23, 59, 59, 999);
|
|
2711
|
-
return {
|
|
2712
|
-
from: t,
|
|
2713
|
-
to: r,
|
|
2714
|
-
relativeTimeString: ""
|
|
2715
|
-
};
|
|
2716
|
-
},
|
|
2717
|
-
dateFormat: "MMM YYYY"
|
|
2718
|
-
},
|
|
2719
|
-
{
|
|
2720
|
-
value: "Next month",
|
|
2721
|
-
label: "Next month",
|
|
2722
|
-
getRange: () => {
|
|
2723
|
-
const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), e.getMonth() + 1, 1), r = new Date(e.getFullYear(), e.getMonth() + 2, 0, 23, 59, 59, 999);
|
|
2724
|
-
return { from: t, to: r, relativeTimeString: "" };
|
|
2725
|
-
},
|
|
2726
|
-
dateFormat: "MMM YYYY"
|
|
2727
|
-
},
|
|
2728
|
-
{
|
|
2729
|
-
value: "This quarter",
|
|
2730
|
-
label: "This quarter",
|
|
2731
|
-
getRange: () => qr(/* @__PURE__ */ new Date(), 0),
|
|
2732
|
-
dateFormat: "MMM YYYY"
|
|
2733
|
-
},
|
|
2734
|
-
{
|
|
2735
|
-
value: "Last quarter",
|
|
2736
|
-
label: "Last quarter",
|
|
2737
|
-
getRange: () => qr(/* @__PURE__ */ new Date(), -1),
|
|
2738
|
-
dateFormat: "MMM YYYY"
|
|
2739
|
-
},
|
|
2740
|
-
{
|
|
2741
|
-
value: "Next quarter",
|
|
2742
|
-
label: "Next quarter",
|
|
2743
|
-
getRange: () => qr(/* @__PURE__ */ new Date(), 1),
|
|
2744
|
-
dateFormat: "MMM YYYY"
|
|
2745
|
-
},
|
|
2746
|
-
{
|
|
2747
|
-
value: "Quarter to date",
|
|
2748
|
-
label: "Quarter to date",
|
|
2749
|
-
getRange: () => {
|
|
2750
|
-
const e = /* @__PURE__ */ new Date(), { from: t } = qr(e, 0), r = new Date(e);
|
|
2751
|
-
return r.setHours(23, 59, 59, 999), { from: t, to: r, relativeTimeString: "" };
|
|
2752
|
-
},
|
|
2753
|
-
dateFormat: "MMM YYYY"
|
|
2754
|
-
},
|
|
2755
|
-
{
|
|
2756
|
-
value: "Last 6 months",
|
|
2757
|
-
label: "Last 6 months",
|
|
2758
|
-
getRange: () => {
|
|
2759
|
-
const e = /* @__PURE__ */ new Date();
|
|
2760
|
-
e.setHours(23, 59, 59, 999);
|
|
2761
|
-
const t = new Date(e);
|
|
2762
|
-
return t.setMonth(e.getMonth() - 6), t.setHours(0, 0, 0, 0), { from: t, to: e, relativeTimeString: "" };
|
|
2763
|
-
},
|
|
2764
|
-
dateFormat: "MMM YYYY"
|
|
2765
|
-
},
|
|
2766
|
-
{
|
|
2767
|
-
value: "Last 12 months",
|
|
2768
|
-
label: "Last 12 months",
|
|
2769
|
-
getRange: () => {
|
|
2770
|
-
const e = /* @__PURE__ */ new Date();
|
|
2771
|
-
e.setHours(23, 59, 59, 999);
|
|
2772
|
-
const t = new Date(e);
|
|
2773
|
-
return t.setMonth(e.getMonth() - 12), t.setHours(0, 0, 0, 0), { from: t, to: e, relativeTimeString: "" };
|
|
2774
|
-
},
|
|
2775
|
-
dateFormat: "MMM YYYY"
|
|
2776
|
-
},
|
|
2777
|
-
{
|
|
2778
|
-
value: "This year",
|
|
2779
|
-
label: "This year",
|
|
2780
|
-
getRange: () => {
|
|
2781
|
-
const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), 0, 1), r = new Date(e.getFullYear(), 11, 31, 23, 59, 59, 999);
|
|
2782
|
-
return { from: t, to: r, relativeTimeString: "" };
|
|
2783
|
-
},
|
|
2784
|
-
dateFormat: "YYYY"
|
|
2785
|
-
},
|
|
2786
|
-
{
|
|
2787
|
-
value: "Last year",
|
|
2788
|
-
label: "Last year",
|
|
2789
|
-
getRange: () => {
|
|
2790
|
-
const t = (/* @__PURE__ */ new Date()).getFullYear() - 1, r = new Date(t, 0, 1), n = new Date(t, 11, 31, 23, 59, 59, 999);
|
|
2791
|
-
return { from: r, to: n, relativeTimeString: "" };
|
|
2792
|
-
},
|
|
2793
|
-
dateFormat: "YYYY"
|
|
2794
|
-
},
|
|
2795
|
-
{
|
|
2796
|
-
value: "Next year",
|
|
2797
|
-
label: "Next year",
|
|
2798
|
-
getRange: () => {
|
|
2799
|
-
const t = (/* @__PURE__ */ new Date()).getFullYear() + 1, r = new Date(t, 0, 1), n = new Date(t, 11, 31, 23, 59, 59, 999);
|
|
2800
|
-
return { from: r, to: n, relativeTimeString: "" };
|
|
2801
|
-
},
|
|
2802
|
-
dateFormat: "YYYY"
|
|
2803
|
-
},
|
|
2804
|
-
{
|
|
2805
|
-
value: "Year to date",
|
|
2806
|
-
label: "Year to date",
|
|
2807
|
-
getRange: () => {
|
|
2808
|
-
const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), 0, 1), r = new Date(e);
|
|
2809
|
-
return r.setHours(23, 59, 59, 999), { from: t, to: r, relativeTimeString: "" };
|
|
2810
|
-
},
|
|
2811
|
-
dateFormat: "MMM YYYY"
|
|
2812
|
-
}
|
|
2813
|
-
];
|
|
2814
|
-
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
2815
|
-
var gn = {};
|
|
2816
|
-
gn.version = "0.18.5";
|
|
2817
|
-
var Qi = 1252, G0 = [874, 932, 936, 949, 950, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258, 1e4], Zi = function(e) {
|
|
2818
|
-
G0.indexOf(e) != -1 && (Qi = e);
|
|
2819
|
-
};
|
|
2820
|
-
function j0() {
|
|
2821
|
-
Zi(1252);
|
|
2822
|
-
}
|
|
2823
|
-
var Ir = function(e) {
|
|
2824
|
-
Zi(e);
|
|
2825
|
-
};
|
|
2826
|
-
function K0() {
|
|
2827
|
-
Ir(1200), j0();
|
|
2828
|
-
}
|
|
2829
|
-
var Qr = function(t) {
|
|
2830
|
-
return String.fromCharCode(t);
|
|
2831
|
-
}, ti = function(t) {
|
|
2832
|
-
return String.fromCharCode(t);
|
|
2833
|
-
}, pn, It = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
2834
|
-
function Mr(e) {
|
|
2835
|
-
for (var t = "", r = 0, n = 0, a = 0, i = 0, s = 0, o = 0, l = 0, f = 0; f < e.length; )
|
|
2836
|
-
r = e.charCodeAt(f++), i = r >> 2, n = e.charCodeAt(f++), s = (r & 3) << 4 | n >> 4, a = e.charCodeAt(f++), o = (n & 15) << 2 | a >> 6, l = a & 63, isNaN(n) ? o = l = 64 : isNaN(a) && (l = 64), t += It.charAt(i) + It.charAt(s) + It.charAt(o) + It.charAt(l);
|
|
2837
|
-
return t;
|
|
2838
|
-
}
|
|
2839
|
-
function kt(e) {
|
|
2840
|
-
var t = "", r = 0, n = 0, a = 0, i = 0, s = 0, o = 0, l = 0;
|
|
2841
|
-
e = e.replace(/[^\w\+\/\=]/g, "");
|
|
2842
|
-
for (var f = 0; f < e.length; )
|
|
2843
|
-
i = It.indexOf(e.charAt(f++)), s = It.indexOf(e.charAt(f++)), r = i << 2 | s >> 4, t += String.fromCharCode(r), o = It.indexOf(e.charAt(f++)), n = (s & 15) << 4 | o >> 2, o !== 64 && (t += String.fromCharCode(n)), l = It.indexOf(e.charAt(f++)), a = (o & 3) << 6 | l, l !== 64 && (t += String.fromCharCode(a));
|
|
2844
|
-
return t;
|
|
2845
|
-
}
|
|
2846
|
-
var ye = /* @__PURE__ */ (function() {
|
|
2847
|
-
return typeof Buffer < "u" && typeof process < "u" && typeof process.versions < "u" && !!process.versions.node;
|
|
2848
|
-
})(), Pt = /* @__PURE__ */ (function() {
|
|
2849
|
-
if (typeof Buffer < "u") {
|
|
2850
|
-
var e = !Buffer.from;
|
|
2851
|
-
if (!e) try {
|
|
2852
|
-
Buffer.from("foo", "utf8");
|
|
2853
|
-
} catch {
|
|
2854
|
-
e = !0;
|
|
2855
|
-
}
|
|
2856
|
-
return e ? function(t, r) {
|
|
2857
|
-
return r ? new Buffer(t, r) : new Buffer(t);
|
|
2858
|
-
} : Buffer.from.bind(Buffer);
|
|
2859
|
-
}
|
|
2860
|
-
return function() {
|
|
2565
|
+
...W0,
|
|
2566
|
+
...V0
|
|
2567
|
+
}, Y0 = z0;
|
|
2568
|
+
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
2569
|
+
var gn = {};
|
|
2570
|
+
gn.version = "0.18.5";
|
|
2571
|
+
var Zi = 1252, G0 = [874, 932, 936, 949, 950, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258, 1e4], es = function(e) {
|
|
2572
|
+
G0.indexOf(e) != -1 && (Zi = e);
|
|
2573
|
+
};
|
|
2574
|
+
function j0() {
|
|
2575
|
+
es(1252);
|
|
2576
|
+
}
|
|
2577
|
+
var Ir = function(e) {
|
|
2578
|
+
es(e);
|
|
2579
|
+
};
|
|
2580
|
+
function K0() {
|
|
2581
|
+
Ir(1200), j0();
|
|
2582
|
+
}
|
|
2583
|
+
var qr = function(t) {
|
|
2584
|
+
return String.fromCharCode(t);
|
|
2585
|
+
}, ri = function(t) {
|
|
2586
|
+
return String.fromCharCode(t);
|
|
2587
|
+
}, pn, It = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
2588
|
+
function Mr(e) {
|
|
2589
|
+
for (var t = "", r = 0, n = 0, a = 0, i = 0, s = 0, o = 0, l = 0, f = 0; f < e.length; )
|
|
2590
|
+
r = e.charCodeAt(f++), i = r >> 2, n = e.charCodeAt(f++), s = (r & 3) << 4 | n >> 4, a = e.charCodeAt(f++), o = (n & 15) << 2 | a >> 6, l = a & 63, isNaN(n) ? o = l = 64 : isNaN(a) && (l = 64), t += It.charAt(i) + It.charAt(s) + It.charAt(o) + It.charAt(l);
|
|
2591
|
+
return t;
|
|
2592
|
+
}
|
|
2593
|
+
function kt(e) {
|
|
2594
|
+
var t = "", r = 0, n = 0, a = 0, i = 0, s = 0, o = 0, l = 0;
|
|
2595
|
+
e = e.replace(/[^\w\+\/\=]/g, "");
|
|
2596
|
+
for (var f = 0; f < e.length; )
|
|
2597
|
+
i = It.indexOf(e.charAt(f++)), s = It.indexOf(e.charAt(f++)), r = i << 2 | s >> 4, t += String.fromCharCode(r), o = It.indexOf(e.charAt(f++)), n = (s & 15) << 4 | o >> 2, o !== 64 && (t += String.fromCharCode(n)), l = It.indexOf(e.charAt(f++)), a = (o & 3) << 6 | l, l !== 64 && (t += String.fromCharCode(a));
|
|
2598
|
+
return t;
|
|
2599
|
+
}
|
|
2600
|
+
var ye = /* @__PURE__ */ (function() {
|
|
2601
|
+
return typeof Buffer < "u" && typeof process < "u" && typeof process.versions < "u" && !!process.versions.node;
|
|
2602
|
+
})(), Pt = /* @__PURE__ */ (function() {
|
|
2603
|
+
if (typeof Buffer < "u") {
|
|
2604
|
+
var e = !Buffer.from;
|
|
2605
|
+
if (!e) try {
|
|
2606
|
+
Buffer.from("foo", "utf8");
|
|
2607
|
+
} catch {
|
|
2608
|
+
e = !0;
|
|
2609
|
+
}
|
|
2610
|
+
return e ? function(t, r) {
|
|
2611
|
+
return r ? new Buffer(t, r) : new Buffer(t);
|
|
2612
|
+
} : Buffer.from.bind(Buffer);
|
|
2613
|
+
}
|
|
2614
|
+
return function() {
|
|
2861
2615
|
};
|
|
2862
2616
|
})();
|
|
2863
2617
|
function jt(e) {
|
|
2864
2618
|
return ye ? Buffer.alloc ? Buffer.alloc(e) : new Buffer(e) : typeof Uint8Array < "u" ? new Uint8Array(e) : new Array(e);
|
|
2865
2619
|
}
|
|
2866
|
-
function
|
|
2620
|
+
function ni(e) {
|
|
2867
2621
|
return ye ? Buffer.allocUnsafe ? Buffer.allocUnsafe(e) : new Buffer(e) : typeof Uint8Array < "u" ? new Uint8Array(e) : new Array(e);
|
|
2868
2622
|
}
|
|
2869
2623
|
var vt = function(t) {
|
|
@@ -2925,7 +2679,7 @@ function J0(e) {
|
|
|
2925
2679
|
}
|
|
2926
2680
|
return t.push(a.slice(0, r)), Ye(t);
|
|
2927
2681
|
}
|
|
2928
|
-
var Cr = /\u0000/g,
|
|
2682
|
+
var Cr = /\u0000/g, Qr = /[\u0001-\u0006]/g;
|
|
2929
2683
|
function lr(e) {
|
|
2930
2684
|
for (var t = "", r = e.length - 1; r >= 0; ) t += e.charAt(r--);
|
|
2931
2685
|
return t;
|
|
@@ -2934,7 +2688,7 @@ function wt(e, t) {
|
|
|
2934
2688
|
var r = "" + e;
|
|
2935
2689
|
return r.length >= t ? r : Pe("0", t - r.length) + r;
|
|
2936
2690
|
}
|
|
2937
|
-
function
|
|
2691
|
+
function ua(e, t) {
|
|
2938
2692
|
var r = "" + e;
|
|
2939
2693
|
return r.length >= t ? r : Pe(" ", t - r.length) + r;
|
|
2940
2694
|
}
|
|
@@ -2950,16 +2704,16 @@ function Q0(e, t) {
|
|
|
2950
2704
|
var r = "" + e;
|
|
2951
2705
|
return r.length >= t ? r : Pe("0", t - r.length) + r;
|
|
2952
2706
|
}
|
|
2953
|
-
var
|
|
2707
|
+
var ai = /* @__PURE__ */ Math.pow(2, 32);
|
|
2954
2708
|
function ar(e, t) {
|
|
2955
|
-
if (e >
|
|
2709
|
+
if (e > ai || e < -ai) return q0(e, t);
|
|
2956
2710
|
var r = Math.round(e);
|
|
2957
2711
|
return Q0(r, t);
|
|
2958
2712
|
}
|
|
2959
2713
|
function vn(e, t) {
|
|
2960
2714
|
return t = t || 0, e.length >= 7 + t && (e.charCodeAt(t) | 32) === 103 && (e.charCodeAt(t + 1) | 32) === 101 && (e.charCodeAt(t + 2) | 32) === 110 && (e.charCodeAt(t + 3) | 32) === 101 && (e.charCodeAt(t + 4) | 32) === 114 && (e.charCodeAt(t + 5) | 32) === 97 && (e.charCodeAt(t + 6) | 32) === 108;
|
|
2961
2715
|
}
|
|
2962
|
-
var
|
|
2716
|
+
var ii = [
|
|
2963
2717
|
["Sun", "Sunday"],
|
|
2964
2718
|
["Mon", "Monday"],
|
|
2965
2719
|
["Tue", "Tuesday"],
|
|
@@ -2967,7 +2721,7 @@ var ai = [
|
|
|
2967
2721
|
["Thu", "Thursday"],
|
|
2968
2722
|
["Fri", "Friday"],
|
|
2969
2723
|
["Sat", "Saturday"]
|
|
2970
|
-
],
|
|
2724
|
+
], Yn = [
|
|
2971
2725
|
["J", "Jan", "January"],
|
|
2972
2726
|
["F", "Feb", "February"],
|
|
2973
2727
|
["M", "Mar", "March"],
|
|
@@ -3014,7 +2768,7 @@ var Ne = {
|
|
|
3014
2768
|
48: "##0.0E+0",
|
|
3015
2769
|
49: "@",
|
|
3016
2770
|
56: '"上午/下午 "hh"時"mm"分"ss"秒 "'
|
|
3017
|
-
},
|
|
2771
|
+
}, si = {
|
|
3018
2772
|
5: 37,
|
|
3019
2773
|
6: 38,
|
|
3020
2774
|
7: 39,
|
|
@@ -3097,7 +2851,7 @@ function wn(e, t, r) {
|
|
|
3097
2851
|
var d = Math.floor(n * o / c);
|
|
3098
2852
|
return [d, n * o - d * c, c];
|
|
3099
2853
|
}
|
|
3100
|
-
function
|
|
2854
|
+
function Zr(e, t, r) {
|
|
3101
2855
|
if (e > 2958465 || e < 0) return null;
|
|
3102
2856
|
var n = e | 0, a = Math.floor(86400 * (e - n)), i = 0, s = [], o = { D: n, T: a, u: 86400 * (e - n) - a, y: 0, m: 0, d: 0, H: 0, M: 0, S: 0, q: 0 };
|
|
3103
2857
|
if (Math.abs(o.u) < 1e-6 && (o.u = 0), t && t.date1904 && (n += 1462), o.u > 0.9999 && (o.u = 0, ++a == 86400 && (o.T = a = 0, ++n, ++o.D)), n === 60)
|
|
@@ -3111,28 +2865,28 @@ function en(e, t, r) {
|
|
|
3111
2865
|
}
|
|
3112
2866
|
return o.y = s[0], o.m = s[1], o.d = s[2], o.S = a % 60, a = Math.floor(a / 60), o.M = a % 60, a = Math.floor(a / 60), o.H = a, o.q = i, o;
|
|
3113
2867
|
}
|
|
3114
|
-
var
|
|
3115
|
-
function
|
|
2868
|
+
var ts = /* @__PURE__ */ new Date(1899, 11, 31, 0, 0, 0), tf = /* @__PURE__ */ ts.getTime(), rf = /* @__PURE__ */ new Date(1900, 2, 1, 0, 0, 0);
|
|
2869
|
+
function rs(e, t) {
|
|
3116
2870
|
var r = /* @__PURE__ */ e.getTime();
|
|
3117
|
-
return t ? r -= 1461 * 24 * 60 * 60 * 1e3 : e >= rf && (r += 1440 * 60 * 1e3), (r - (tf + (/* @__PURE__ */ e.getTimezoneOffset() - /* @__PURE__ */
|
|
2871
|
+
return t ? r -= 1461 * 24 * 60 * 60 * 1e3 : e >= rf && (r += 1440 * 60 * 1e3), (r - (tf + (/* @__PURE__ */ e.getTimezoneOffset() - /* @__PURE__ */ ts.getTimezoneOffset()) * 6e4)) / (1440 * 60 * 1e3);
|
|
3118
2872
|
}
|
|
3119
|
-
function
|
|
2873
|
+
function ha(e) {
|
|
3120
2874
|
return e.indexOf(".") == -1 ? e : e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/, "$1");
|
|
3121
2875
|
}
|
|
3122
2876
|
function nf(e) {
|
|
3123
2877
|
return e.indexOf("E") == -1 ? e : e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/, "$1E").replace(/(E[+-])(\d)$/, "$10$2");
|
|
3124
2878
|
}
|
|
3125
2879
|
function af(e) {
|
|
3126
|
-
var t = e < 0 ? 12 : 11, r =
|
|
2880
|
+
var t = e < 0 ? 12 : 11, r = ha(e.toFixed(12));
|
|
3127
2881
|
return r.length <= t || (r = e.toPrecision(10), r.length <= t) ? r : e.toExponential(5);
|
|
3128
2882
|
}
|
|
3129
2883
|
function sf(e) {
|
|
3130
|
-
var t =
|
|
2884
|
+
var t = ha(e.toFixed(11));
|
|
3131
2885
|
return t.length > (e < 0 ? 12 : 11) || t === "0" || t === "-0" ? e.toPrecision(6) : t;
|
|
3132
2886
|
}
|
|
3133
2887
|
function of(e) {
|
|
3134
2888
|
var t = Math.floor(Math.log(Math.abs(e)) * Math.LOG10E), r;
|
|
3135
|
-
return t >= -4 && t <= -1 ? r = e.toPrecision(10 + t) : Math.abs(t) <= 9 ? r = af(e) : t === 10 ? r = e.toFixed(10).substr(0, 12) : r = sf(e),
|
|
2889
|
+
return t >= -4 && t <= -1 ? r = e.toPrecision(10 + t) : Math.abs(t) <= 9 ? r = af(e) : t === 10 ? r = e.toFixed(10).substr(0, 12) : r = sf(e), ha(nf(r.toUpperCase()));
|
|
3136
2890
|
}
|
|
3137
2891
|
function aa(e, t) {
|
|
3138
2892
|
switch (typeof e) {
|
|
@@ -3146,7 +2900,7 @@ function aa(e, t) {
|
|
|
3146
2900
|
return "";
|
|
3147
2901
|
case "object":
|
|
3148
2902
|
if (e == null) return "";
|
|
3149
|
-
if (e instanceof Date) return Bt(14,
|
|
2903
|
+
if (e instanceof Date) return Bt(14, rs(e, t && t.date1904), t);
|
|
3150
2904
|
}
|
|
3151
2905
|
throw new Error("unsupported value in General format: " + e);
|
|
3152
2906
|
}
|
|
@@ -3179,11 +2933,11 @@ function lf(e, t, r, n) {
|
|
|
3179
2933
|
l = r.m, f = t.length;
|
|
3180
2934
|
break;
|
|
3181
2935
|
case 3:
|
|
3182
|
-
return
|
|
2936
|
+
return Yn[r.m - 1][1];
|
|
3183
2937
|
case 5:
|
|
3184
|
-
return
|
|
2938
|
+
return Yn[r.m - 1][0];
|
|
3185
2939
|
default:
|
|
3186
|
-
return
|
|
2940
|
+
return Yn[r.m - 1][2];
|
|
3187
2941
|
}
|
|
3188
2942
|
break;
|
|
3189
2943
|
case 100:
|
|
@@ -3193,9 +2947,9 @@ function lf(e, t, r, n) {
|
|
|
3193
2947
|
l = r.d, f = t.length;
|
|
3194
2948
|
break;
|
|
3195
2949
|
case 3:
|
|
3196
|
-
return
|
|
2950
|
+
return ii[r.q][0];
|
|
3197
2951
|
default:
|
|
3198
|
-
return
|
|
2952
|
+
return ii[r.q][1];
|
|
3199
2953
|
}
|
|
3200
2954
|
break;
|
|
3201
2955
|
case 104:
|
|
@@ -3263,20 +3017,20 @@ function Mt(e) {
|
|
|
3263
3017
|
for (var r = e.length % t, n = e.substr(0, r); r != e.length; r += t) n += (n.length > 0 ? "," : "") + e.substr(r, t);
|
|
3264
3018
|
return n;
|
|
3265
3019
|
}
|
|
3266
|
-
var
|
|
3020
|
+
var ns = /%/g;
|
|
3267
3021
|
function cf(e, t, r) {
|
|
3268
|
-
var n = t.replace(
|
|
3022
|
+
var n = t.replace(ns, ""), a = t.length - n.length;
|
|
3269
3023
|
return Ct(e, n, r * Math.pow(10, 2 * a)) + Pe("%", a);
|
|
3270
3024
|
}
|
|
3271
3025
|
function uf(e, t, r) {
|
|
3272
3026
|
for (var n = t.length - 1; t.charCodeAt(n - 1) === 44; ) --n;
|
|
3273
3027
|
return Ct(e, t.substr(0, n), r / Math.pow(10, 3 * (t.length - n)));
|
|
3274
3028
|
}
|
|
3275
|
-
function
|
|
3029
|
+
function as(e, t) {
|
|
3276
3030
|
var r, n = e.indexOf("E") - e.indexOf(".") - 1;
|
|
3277
3031
|
if (e.match(/^#+0.0E\+0$/)) {
|
|
3278
3032
|
if (t == 0) return "0.0E+0";
|
|
3279
|
-
if (t < 0) return "-" +
|
|
3033
|
+
if (t < 0) return "-" + as(e, -t);
|
|
3280
3034
|
var a = e.indexOf(".");
|
|
3281
3035
|
a === -1 && (a = e.indexOf("E"));
|
|
3282
3036
|
var i = Math.floor(Math.log(t) * Math.LOG10E) % a;
|
|
@@ -3292,15 +3046,15 @@ function ns(e, t) {
|
|
|
3292
3046
|
} else r = t.toExponential(n);
|
|
3293
3047
|
return e.match(/E\+00$/) && r.match(/e[+-]\d$/) && (r = r.substr(0, r.length - 1) + "0" + r.charAt(r.length - 1)), e.match(/E\-/) && r.match(/e\+/) && (r = r.replace(/e\+/, "e")), r.replace("e", "E");
|
|
3294
3048
|
}
|
|
3295
|
-
var
|
|
3049
|
+
var is = /# (\?+)( ?)\/( ?)(\d+)/;
|
|
3296
3050
|
function hf(e, t, r) {
|
|
3297
3051
|
var n = parseInt(e[4], 10), a = Math.round(t * n), i = Math.floor(a / n), s = a - i * n, o = n;
|
|
3298
|
-
return r + (i === 0 ? "" : "" + i) + " " + (s === 0 ? Pe(" ", e[1].length + 1 + e[4].length) :
|
|
3052
|
+
return r + (i === 0 ? "" : "" + i) + " " + (s === 0 ? Pe(" ", e[1].length + 1 + e[4].length) : ua(s, e[1].length) + e[2] + "/" + e[3] + wt(o, e[4].length));
|
|
3299
3053
|
}
|
|
3300
3054
|
function df(e, t, r) {
|
|
3301
3055
|
return r + (t === 0 ? "" : "" + t) + Pe(" ", e[1].length + 2 + e[4].length);
|
|
3302
3056
|
}
|
|
3303
|
-
var
|
|
3057
|
+
var ss = /^#*0*\.([0#]+)/, os = /\).*[0#]/, fs = /\(###\) ###\\?-####/;
|
|
3304
3058
|
function Ze(e) {
|
|
3305
3059
|
for (var t = "", r, n = 0; n != e.length; ++n) switch (r = e.charCodeAt(n)) {
|
|
3306
3060
|
case 35:
|
|
@@ -3316,11 +3070,11 @@ function Ze(e) {
|
|
|
3316
3070
|
}
|
|
3317
3071
|
return t;
|
|
3318
3072
|
}
|
|
3319
|
-
function
|
|
3073
|
+
function oi(e, t) {
|
|
3320
3074
|
var r = Math.pow(10, t);
|
|
3321
3075
|
return "" + Math.round(e * r) / r;
|
|
3322
3076
|
}
|
|
3323
|
-
function
|
|
3077
|
+
function fi(e, t) {
|
|
3324
3078
|
var r = e - Math.floor(e), n = Math.pow(10, t);
|
|
3325
3079
|
return t < ("" + Math.round(r * n)).length ? 0 : Math.round(r * n);
|
|
3326
3080
|
}
|
|
@@ -3331,38 +3085,38 @@ function gf(e) {
|
|
|
3331
3085
|
return e < 2147483647 && e > -2147483648 ? "" + (e >= 0 ? e | 0 : e - 1 | 0) : "" + Math.floor(e);
|
|
3332
3086
|
}
|
|
3333
3087
|
function ht(e, t, r) {
|
|
3334
|
-
if (e.charCodeAt(0) === 40 && !t.match(
|
|
3088
|
+
if (e.charCodeAt(0) === 40 && !t.match(os)) {
|
|
3335
3089
|
var n = t.replace(/\( */, "").replace(/ \)/, "").replace(/\)/, "");
|
|
3336
3090
|
return r >= 0 ? ht("n", n, r) : "(" + ht("n", n, -r) + ")";
|
|
3337
3091
|
}
|
|
3338
3092
|
if (t.charCodeAt(t.length - 1) === 44) return uf(e, t, r);
|
|
3339
3093
|
if (t.indexOf("%") !== -1) return cf(e, t, r);
|
|
3340
|
-
if (t.indexOf("E") !== -1) return
|
|
3094
|
+
if (t.indexOf("E") !== -1) return as(t, r);
|
|
3341
3095
|
if (t.charCodeAt(0) === 36) return "$" + ht(e, t.substr(t.charAt(1) == " " ? 2 : 1), r);
|
|
3342
3096
|
var a, i, s, o, l = Math.abs(r), f = r < 0 ? "-" : "";
|
|
3343
3097
|
if (t.match(/^00+$/)) return f + ar(l, t.length);
|
|
3344
3098
|
if (t.match(/^[#?]+$/))
|
|
3345
3099
|
return a = ar(r, 0), a === "0" && (a = ""), a.length > t.length ? a : Ze(t.substr(0, t.length - a.length)) + a;
|
|
3346
|
-
if (i = t.match(
|
|
3100
|
+
if (i = t.match(is)) return hf(i, l, f);
|
|
3347
3101
|
if (t.match(/^#+0+$/)) return f + ar(l, t.length - t.indexOf("0"));
|
|
3348
|
-
if (i = t.match(
|
|
3349
|
-
return a =
|
|
3102
|
+
if (i = t.match(ss))
|
|
3103
|
+
return a = oi(r, i[1].length).replace(/^([^\.]+)$/, "$1." + Ze(i[1])).replace(/\.$/, "." + Ze(i[1])).replace(/\.(\d*)$/, function(p, h) {
|
|
3350
3104
|
return "." + h + Pe("0", Ze(
|
|
3351
3105
|
/*::(*/
|
|
3352
3106
|
i[1]
|
|
3353
3107
|
).length - h.length);
|
|
3354
3108
|
}), t.indexOf("0.") !== -1 ? a : a.replace(/^0\./, ".");
|
|
3355
3109
|
if (t = t.replace(/^#+([0.])/, "$1"), i = t.match(/^(0*)\.(#*)$/))
|
|
3356
|
-
return f +
|
|
3110
|
+
return f + oi(l, i[2].length).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, i[1].length ? "0." : ".");
|
|
3357
3111
|
if (i = t.match(/^#{1,3},##0(\.?)$/)) return f + Mt(ar(l, 0));
|
|
3358
3112
|
if (i = t.match(/^#,##0\.([#0]*0)$/))
|
|
3359
|
-
return r < 0 ? "-" + ht(e, t, -r) : Mt("" + (Math.floor(r) + mf(r, i[1].length))) + "." + wt(
|
|
3113
|
+
return r < 0 ? "-" + ht(e, t, -r) : Mt("" + (Math.floor(r) + mf(r, i[1].length))) + "." + wt(fi(r, i[1].length), i[1].length);
|
|
3360
3114
|
if (i = t.match(/^#,#*,#0/)) return ht(e, t.replace(/^#,#*,/, ""), r);
|
|
3361
3115
|
if (i = t.match(/^([0#]+)(\\?-([0#]+))+$/))
|
|
3362
3116
|
return a = lr(ht(e, t.replace(/[\\-]/g, ""), r)), s = 0, lr(lr(t.replace(/\\/g, "")).replace(/[0#]/g, function(p) {
|
|
3363
3117
|
return s < a.length ? a.charAt(s++) : p === "0" ? "0" : "";
|
|
3364
3118
|
}));
|
|
3365
|
-
if (t.match(
|
|
3119
|
+
if (t.match(fs))
|
|
3366
3120
|
return a = ht(e, "##########", r), "(" + a.substr(0, 3) + ") " + a.substr(3, 3) + "-" + a.substr(6);
|
|
3367
3121
|
var c = "";
|
|
3368
3122
|
if (i = t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
@@ -3379,7 +3133,7 @@ function ht(e, t, r) {
|
|
|
3379
3133
|
i[2] + "/" + /*::String(*/
|
|
3380
3134
|
i[3], c = xn(o[2], s), c.length < i[4].length && (c = Ze(i[4].substr(i[4].length - c.length)) + c), a += c, a;
|
|
3381
3135
|
if (i = t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
3382
|
-
return s = Math.min(Math.max(i[1].length, i[4].length), 7), o = wn(l, Math.pow(10, s) - 1, !0), f + (o[0] || (o[1] ? "" : "0")) + " " + (o[1] ?
|
|
3136
|
+
return s = Math.min(Math.max(i[1].length, i[4].length), 7), o = wn(l, Math.pow(10, s) - 1, !0), f + (o[0] || (o[1] ? "" : "0")) + " " + (o[1] ? ua(o[1], s) + i[2] + "/" + i[3] + xn(o[2], s) : Pe(" ", 2 * s + 1 + i[2].length + i[3].length));
|
|
3383
3137
|
if (i = t.match(/^[#0?]+$/))
|
|
3384
3138
|
return a = ar(r, 0), t.length <= a.length ? a : Ze(t.substr(0, t.length - a.length)) + a;
|
|
3385
3139
|
if (i = t.match(/^([#0?]+)\.([#0]+)$/)) {
|
|
@@ -3388,7 +3142,7 @@ function ht(e, t, r) {
|
|
|
3388
3142
|
return Ze(t.substr(0, u) + a + t.substr(t.length - d));
|
|
3389
3143
|
}
|
|
3390
3144
|
if (i = t.match(/^00,000\.([#0]*0)$/))
|
|
3391
|
-
return s =
|
|
3145
|
+
return s = fi(r, i[1].length), r < 0 ? "-" + ht(e, t, -r) : Mt(gf(r)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(p) {
|
|
3392
3146
|
return "00," + (p.length < 3 ? wt(0, 3 - p.length) : "") + p;
|
|
3393
3147
|
}) + "." + wt(s, i[1].length);
|
|
3394
3148
|
switch (t) {
|
|
@@ -3411,14 +3165,14 @@ function pf(e, t, r) {
|
|
|
3411
3165
|
return Ct(e, t.substr(0, n), r / Math.pow(10, 3 * (t.length - n)));
|
|
3412
3166
|
}
|
|
3413
3167
|
function xf(e, t, r) {
|
|
3414
|
-
var n = t.replace(
|
|
3168
|
+
var n = t.replace(ns, ""), a = t.length - n.length;
|
|
3415
3169
|
return Ct(e, n, r * Math.pow(10, 2 * a)) + Pe("%", a);
|
|
3416
3170
|
}
|
|
3417
|
-
function
|
|
3171
|
+
function ls(e, t) {
|
|
3418
3172
|
var r, n = e.indexOf("E") - e.indexOf(".") - 1;
|
|
3419
3173
|
if (e.match(/^#+0.0E\+0$/)) {
|
|
3420
3174
|
if (t == 0) return "0.0E+0";
|
|
3421
|
-
if (t < 0) return "-" +
|
|
3175
|
+
if (t < 0) return "-" + ls(e, -t);
|
|
3422
3176
|
var a = e.indexOf(".");
|
|
3423
3177
|
a === -1 && (a = e.indexOf("E"));
|
|
3424
3178
|
var i = Math.floor(Math.log(t) * Math.LOG10E) % a;
|
|
@@ -3433,21 +3187,21 @@ function fs(e, t) {
|
|
|
3433
3187
|
return e.match(/E\+00$/) && r.match(/e[+-]\d$/) && (r = r.substr(0, r.length - 1) + "0" + r.charAt(r.length - 1)), e.match(/E\-/) && r.match(/e\+/) && (r = r.replace(/e\+/, "e")), r.replace("e", "E");
|
|
3434
3188
|
}
|
|
3435
3189
|
function Tt(e, t, r) {
|
|
3436
|
-
if (e.charCodeAt(0) === 40 && !t.match(
|
|
3190
|
+
if (e.charCodeAt(0) === 40 && !t.match(os)) {
|
|
3437
3191
|
var n = t.replace(/\( */, "").replace(/ \)/, "").replace(/\)/, "");
|
|
3438
3192
|
return r >= 0 ? Tt("n", n, r) : "(" + Tt("n", n, -r) + ")";
|
|
3439
3193
|
}
|
|
3440
3194
|
if (t.charCodeAt(t.length - 1) === 44) return pf(e, t, r);
|
|
3441
3195
|
if (t.indexOf("%") !== -1) return xf(e, t, r);
|
|
3442
|
-
if (t.indexOf("E") !== -1) return
|
|
3196
|
+
if (t.indexOf("E") !== -1) return ls(t, r);
|
|
3443
3197
|
if (t.charCodeAt(0) === 36) return "$" + Tt(e, t.substr(t.charAt(1) == " " ? 2 : 1), r);
|
|
3444
3198
|
var a, i, s, o, l = Math.abs(r), f = r < 0 ? "-" : "";
|
|
3445
3199
|
if (t.match(/^00+$/)) return f + wt(l, t.length);
|
|
3446
3200
|
if (t.match(/^[#?]+$/))
|
|
3447
3201
|
return a = "" + r, r === 0 && (a = ""), a.length > t.length ? a : Ze(t.substr(0, t.length - a.length)) + a;
|
|
3448
|
-
if (i = t.match(
|
|
3202
|
+
if (i = t.match(is)) return df(i, l, f);
|
|
3449
3203
|
if (t.match(/^#+0+$/)) return f + wt(l, t.length - t.indexOf("0"));
|
|
3450
|
-
if (i = t.match(
|
|
3204
|
+
if (i = t.match(ss))
|
|
3451
3205
|
return a = ("" + r).replace(/^([^\.]+)$/, "$1." + Ze(i[1])).replace(/\.$/, "." + Ze(i[1])), a = a.replace(/\.(\d*)$/, function(p, h) {
|
|
3452
3206
|
return "." + h + Pe("0", Ze(i[1]).length - h.length);
|
|
3453
3207
|
}), t.indexOf("0.") !== -1 ? a : a.replace(/^0\./, ".");
|
|
@@ -3461,7 +3215,7 @@ function Tt(e, t, r) {
|
|
|
3461
3215
|
return a = lr(Tt(e, t.replace(/[\\-]/g, ""), r)), s = 0, lr(lr(t.replace(/\\/g, "")).replace(/[0#]/g, function(p) {
|
|
3462
3216
|
return s < a.length ? a.charAt(s++) : p === "0" ? "0" : "";
|
|
3463
3217
|
}));
|
|
3464
|
-
if (t.match(
|
|
3218
|
+
if (t.match(fs))
|
|
3465
3219
|
return a = Tt(e, "##########", r), "(" + a.substr(0, 3) + ") " + a.substr(3, 3) + "-" + a.substr(6);
|
|
3466
3220
|
var c = "";
|
|
3467
3221
|
if (i = t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
@@ -3478,7 +3232,7 @@ function Tt(e, t, r) {
|
|
|
3478
3232
|
i[2] + "/" + /*::String(*/
|
|
3479
3233
|
i[3], c = xn(o[2], s), c.length < i[4].length && (c = Ze(i[4].substr(i[4].length - c.length)) + c), a += c, a;
|
|
3480
3234
|
if (i = t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
3481
|
-
return s = Math.min(Math.max(i[1].length, i[4].length), 7), o = wn(l, Math.pow(10, s) - 1, !0), f + (o[0] || (o[1] ? "" : "0")) + " " + (o[1] ?
|
|
3235
|
+
return s = Math.min(Math.max(i[1].length, i[4].length), 7), o = wn(l, Math.pow(10, s) - 1, !0), f + (o[0] || (o[1] ? "" : "0")) + " " + (o[1] ? ua(o[1], s) + i[2] + "/" + i[3] + xn(o[2], s) : Pe(" ", 2 * s + 1 + i[2].length + i[3].length));
|
|
3482
3236
|
if (i = t.match(/^[#0?]+$/))
|
|
3483
3237
|
return a = "" + r, t.length <= a.length ? a : Ze(t.substr(0, t.length - a.length)) + a;
|
|
3484
3238
|
if (i = t.match(/^([#0]+)\.([#0]+)$/)) {
|
|
@@ -3523,8 +3277,8 @@ function vf(e) {
|
|
|
3523
3277
|
if (t[t.length] = e.substr(a), r === !0) throw new Error("Format |" + e + "| unterminated string ");
|
|
3524
3278
|
return t;
|
|
3525
3279
|
}
|
|
3526
|
-
var
|
|
3527
|
-
function
|
|
3280
|
+
var cs = /\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;
|
|
3281
|
+
function us(e) {
|
|
3528
3282
|
for (var t = 0, r = "", n = ""; t < e.length; )
|
|
3529
3283
|
switch (r = e.charAt(t)) {
|
|
3530
3284
|
case "G":
|
|
@@ -3575,7 +3329,7 @@ function cs(e) {
|
|
|
3575
3329
|
break;
|
|
3576
3330
|
case "[":
|
|
3577
3331
|
for (n = r; e.charAt(t++) !== "]" && t < e.length; ) n += e.charAt(t);
|
|
3578
|
-
if (n.match(
|
|
3332
|
+
if (n.match(cs)) return !0;
|
|
3579
3333
|
break;
|
|
3580
3334
|
case ".":
|
|
3581
3335
|
/* falls through */
|
|
@@ -3640,7 +3394,7 @@ function wf(e, t, r, n) {
|
|
|
3640
3394
|
case "B":
|
|
3641
3395
|
case "b":
|
|
3642
3396
|
if (e.charAt(s + 1) === "1" || e.charAt(s + 1) === "2") {
|
|
3643
|
-
if (f == null && (f =
|
|
3397
|
+
if (f == null && (f = Zr(t, r, e.charAt(s + 1) === "2"), f == null))
|
|
3644
3398
|
return "";
|
|
3645
3399
|
a[a.length] = { t: "X", v: e.substr(s, 2) }, l = o, s += 2;
|
|
3646
3400
|
break;
|
|
@@ -3661,7 +3415,7 @@ function wf(e, t, r, n) {
|
|
|
3661
3415
|
case "s":
|
|
3662
3416
|
case "e":
|
|
3663
3417
|
case "g":
|
|
3664
|
-
if (t < 0 || f == null && (f =
|
|
3418
|
+
if (t < 0 || f == null && (f = Zr(t, r), f == null))
|
|
3665
3419
|
return "";
|
|
3666
3420
|
for (i = o; ++s < e.length && e.charAt(s).toLowerCase() === o; ) i += o;
|
|
3667
3421
|
o === "m" && l.toLowerCase() === "h" && (o = "M"), o === "h" && (o = d), a[a.length] = { t: o, v: i }, l = o;
|
|
@@ -3670,17 +3424,17 @@ function wf(e, t, r, n) {
|
|
|
3670
3424
|
case "a":
|
|
3671
3425
|
case "上":
|
|
3672
3426
|
var h = { t: o, v: o };
|
|
3673
|
-
if (f == null && (f =
|
|
3427
|
+
if (f == null && (f = Zr(t, r)), e.substr(s, 3).toUpperCase() === "A/P" ? (f != null && (h.v = f.H >= 12 ? "P" : "A"), h.t = "T", d = "h", s += 3) : e.substr(s, 5).toUpperCase() === "AM/PM" ? (f != null && (h.v = f.H >= 12 ? "PM" : "AM"), h.t = "T", s += 5, d = "h") : e.substr(s, 5).toUpperCase() === "上午/下午" ? (f != null && (h.v = f.H >= 12 ? "下午" : "上午"), h.t = "T", s += 5, d = "h") : (h.t = "t", ++s), f == null && h.t === "T") return "";
|
|
3674
3428
|
a[a.length] = h, l = o;
|
|
3675
3429
|
break;
|
|
3676
3430
|
case "[":
|
|
3677
3431
|
for (i = o; e.charAt(s++) !== "]" && s < e.length; ) i += e.charAt(s);
|
|
3678
3432
|
if (i.slice(-1) !== "]") throw 'unterminated "[" block: |' + i + "|";
|
|
3679
|
-
if (i.match(
|
|
3680
|
-
if (f == null && (f =
|
|
3433
|
+
if (i.match(cs)) {
|
|
3434
|
+
if (f == null && (f = Zr(t, r), f == null))
|
|
3681
3435
|
return "";
|
|
3682
3436
|
a[a.length] = { t: "Z", v: i.toLowerCase() }, l = i.charAt(1);
|
|
3683
|
-
} else i.indexOf("$") > -1 && (i = (i.match(/\$([^-\[\]]*)/) || [])[1] || "$",
|
|
3437
|
+
} else i.indexOf("$") > -1 && (i = (i.match(/\$([^-\[\]]*)/) || [])[1] || "$", us(e) || (a[a.length] = { t: "t", v: i }));
|
|
3684
3438
|
break;
|
|
3685
3439
|
/* Numbers */
|
|
3686
3440
|
case ".":
|
|
@@ -3830,8 +3584,8 @@ function wf(e, t, r, n) {
|
|
|
3830
3584
|
for (s = 0; s !== a.length; ++s) a[s] != null && (b += a[s].v);
|
|
3831
3585
|
return b;
|
|
3832
3586
|
}
|
|
3833
|
-
var
|
|
3834
|
-
function
|
|
3587
|
+
var li = /\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;
|
|
3588
|
+
function ci(e, t) {
|
|
3835
3589
|
if (t == null) return !1;
|
|
3836
3590
|
var r = parseFloat(t[2]);
|
|
3837
3591
|
switch (t[1]) {
|
|
@@ -3874,8 +3628,8 @@ function _f(e, t) {
|
|
|
3874
3628
|
var i = t > 0 ? r[0] : t < 0 ? r[1] : r[2];
|
|
3875
3629
|
if (r[0].indexOf("[") === -1 && r[1].indexOf("[") === -1) return [n, i];
|
|
3876
3630
|
if (r[0].match(/\[[=<>]/) != null || r[1].match(/\[[=<>]/) != null) {
|
|
3877
|
-
var s = r[0].match(
|
|
3878
|
-
return
|
|
3631
|
+
var s = r[0].match(li), o = r[1].match(li);
|
|
3632
|
+
return ci(t, s) ? [n, r[0]] : ci(t, o) ? [n, r[1]] : [n, r[s != null && o != null ? 2 : 1]];
|
|
3879
3633
|
}
|
|
3880
3634
|
return [n, i];
|
|
3881
3635
|
}
|
|
@@ -3887,11 +3641,11 @@ function Bt(e, t, r) {
|
|
|
3887
3641
|
e == "m/d/yy" && r.dateNF ? n = r.dateNF : n = e;
|
|
3888
3642
|
break;
|
|
3889
3643
|
case "number":
|
|
3890
|
-
e == 14 && r.dateNF ? n = r.dateNF : n = (r.table != null ? r.table : Ne)[e], n == null && (n = r.table && r.table[
|
|
3644
|
+
e == 14 && r.dateNF ? n = r.dateNF : n = (r.table != null ? r.table : Ne)[e], n == null && (n = r.table && r.table[si[e]] || Ne[si[e]]), n == null && (n = ef[e] || "General");
|
|
3891
3645
|
break;
|
|
3892
3646
|
}
|
|
3893
3647
|
if (vn(n, 0)) return aa(t, r);
|
|
3894
|
-
t instanceof Date && (t =
|
|
3648
|
+
t instanceof Date && (t = rs(t, r.date1904));
|
|
3895
3649
|
var a = _f(n, t);
|
|
3896
3650
|
if (vn(a[1])) return aa(t, r);
|
|
3897
3651
|
if (t === !0) t = "TRUE";
|
|
@@ -3899,7 +3653,7 @@ function Bt(e, t, r) {
|
|
|
3899
3653
|
else if (t === "" || t == null) return "";
|
|
3900
3654
|
return wf(a[1], t, r, a[0]);
|
|
3901
3655
|
}
|
|
3902
|
-
function
|
|
3656
|
+
function hs(e, t) {
|
|
3903
3657
|
if (typeof t != "number") {
|
|
3904
3658
|
t = +t || -1;
|
|
3905
3659
|
for (var r = 0; r < 392; ++r) {
|
|
@@ -3918,19 +3672,19 @@ function us(e, t) {
|
|
|
3918
3672
|
}
|
|
3919
3673
|
function Rn(e) {
|
|
3920
3674
|
for (var t = 0; t != 392; ++t)
|
|
3921
|
-
e[t] !== void 0 &&
|
|
3675
|
+
e[t] !== void 0 && hs(e[t], t);
|
|
3922
3676
|
}
|
|
3923
3677
|
function Pn() {
|
|
3924
3678
|
Ne = Z0();
|
|
3925
3679
|
}
|
|
3926
|
-
var
|
|
3680
|
+
var ds = /[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;
|
|
3927
3681
|
function Tf(e) {
|
|
3928
3682
|
var t = typeof e == "number" ? Ne[e] : e;
|
|
3929
|
-
return t = t.replace(
|
|
3683
|
+
return t = t.replace(ds, "(\\d+)"), new RegExp("^" + t + "$");
|
|
3930
3684
|
}
|
|
3931
3685
|
function Ef(e, t, r) {
|
|
3932
3686
|
var n = -1, a = -1, i = -1, s = -1, o = -1, l = -1;
|
|
3933
|
-
(t.match(
|
|
3687
|
+
(t.match(ds) || []).forEach(function(u, d) {
|
|
3934
3688
|
var m = parseInt(r[d + 1], 10);
|
|
3935
3689
|
switch (u.toLowerCase().charAt(0)) {
|
|
3936
3690
|
case "y":
|
|
@@ -4048,8 +3802,8 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4048
3802
|
return l || (l = {});
|
|
4049
3803
|
}
|
|
4050
3804
|
function c(g, T) {
|
|
4051
|
-
if (g[0] == 80 && g[1] == 75) return
|
|
4052
|
-
if ((g[0] | 32) == 109 && (g[1] | 32) == 105) return
|
|
3805
|
+
if (g[0] == 80 && g[1] == 75) return Ha(g, T);
|
|
3806
|
+
if ((g[0] | 32) == 109 && (g[1] | 32) == 105) return Go(g, T);
|
|
4053
3807
|
if (g.length < 512) throw new Error("CFB file size " + g.length + " < 512");
|
|
4054
3808
|
var v = 3, w = 512, y = 0, S = 0, V = 0, X = 0, W = 0, z = [], Y = (
|
|
4055
3809
|
/*::(*/
|
|
@@ -4065,7 +3819,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4065
3819
|
w = 4096;
|
|
4066
3820
|
break;
|
|
4067
3821
|
case 0:
|
|
4068
|
-
if (te[1] == 0) return
|
|
3822
|
+
if (te[1] == 0) return Ha(g, T);
|
|
4069
3823
|
/* falls through */
|
|
4070
3824
|
default:
|
|
4071
3825
|
throw new Error("Major Version: Expected 3 or 4 saw " + v);
|
|
@@ -4163,7 +3917,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4163
3917
|
if (!g[Y]) break;
|
|
4164
3918
|
W = Yt(g[Y], z);
|
|
4165
3919
|
}
|
|
4166
|
-
return { nodes: S, data:
|
|
3920
|
+
return { nodes: S, data: vi([V]) };
|
|
4167
3921
|
}
|
|
4168
3922
|
function L(g, T, v, w) {
|
|
4169
3923
|
var y = g.length, S = [], V = [], X = [], W = [], z = w - 1, Y = 0, te = 0, fe = 0, de = 0;
|
|
@@ -4177,7 +3931,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4177
3931
|
if (de = te * 4 & z, w < 4 + de) throw new Error("FAT boundary crossed: " + te + " 4 " + w);
|
|
4178
3932
|
if (!g[he] || (te = Yt(g[he], de), ne[te])) break;
|
|
4179
3933
|
}
|
|
4180
|
-
S[fe] = { nodes: X, data:
|
|
3934
|
+
S[fe] = { nodes: X, data: vi([W]) };
|
|
4181
3935
|
}
|
|
4182
3936
|
return S;
|
|
4183
3937
|
}
|
|
@@ -4187,7 +3941,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4187
3941
|
/*::(*/
|
|
4188
3942
|
Y.slice(te, te + 128)
|
|
4189
3943
|
);
|
|
4190
|
-
ft(ne, 64), fe = ne.read_shift(2), de =
|
|
3944
|
+
ft(ne, 64), fe = ne.read_shift(2), de = xa(ne, 0, fe - z), w.push(de);
|
|
4191
3945
|
var he = {
|
|
4192
3946
|
name: de,
|
|
4193
3947
|
type: ne.read_shift(1),
|
|
@@ -4291,10 +4045,10 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4291
4045
|
}
|
|
4292
4046
|
function b(g, T) {
|
|
4293
4047
|
var v = T || {};
|
|
4294
|
-
if (v.fileType == "mad") return
|
|
4048
|
+
if (v.fileType == "mad") return jo(g, v);
|
|
4295
4049
|
switch (R(g), v.fileType) {
|
|
4296
4050
|
case "zip":
|
|
4297
|
-
return
|
|
4051
|
+
return Ho(g, v);
|
|
4298
4052
|
}
|
|
4299
4053
|
var w = (function(de) {
|
|
4300
4054
|
for (var ne = 0, he = 0, we = 0; we < de.FileIndex.length; ++we) {
|
|
@@ -4378,9 +4132,9 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4378
4132
|
T.charCodeAt(0) === 47 ? (y = !0, T = v[0].slice(0, -1) + T) : y = T.indexOf("/") !== -1;
|
|
4379
4133
|
var S = T.toUpperCase(), V = y === !0 ? v.indexOf(S) : w.indexOf(S);
|
|
4380
4134
|
if (V !== -1) return g.FileIndex[V];
|
|
4381
|
-
var X = !S.match(
|
|
4382
|
-
for (S = S.replace(Cr, ""), X && (S = S.replace(
|
|
4383
|
-
if ((X ? v[V].replace(
|
|
4135
|
+
var X = !S.match(Qr);
|
|
4136
|
+
for (S = S.replace(Cr, ""), X && (S = S.replace(Qr, "!")), V = 0; V < v.length; ++V)
|
|
4137
|
+
if ((X ? v[V].replace(Qr, "!") : v[V]).replace(Cr, "") == S || (X ? w[V].replace(Qr, "!") : w[V]).replace(Cr, "") == S) return g.FileIndex[V];
|
|
4384
4138
|
return null;
|
|
4385
4139
|
}
|
|
4386
4140
|
var H = 64, F = -2, U = "d0cf11e0a1b11ae1", I = [208, 207, 17, 224, 161, 177, 26, 225], N = "00000000000000000000000000000000", j = {
|
|
@@ -4436,12 +4190,12 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4436
4190
|
}
|
|
4437
4191
|
}
|
|
4438
4192
|
function A(g, T) {
|
|
4439
|
-
if (!le) return
|
|
4193
|
+
if (!le) return Ba(g, T);
|
|
4440
4194
|
var v = le.InflateRaw, w = new v(), y = w._processChunk(g.slice(g.l), w._finishFlushFlag);
|
|
4441
4195
|
return g.l += w.bytesRead, y;
|
|
4442
4196
|
}
|
|
4443
4197
|
function O(g) {
|
|
4444
|
-
return le ? le.deflateRawSync(g) :
|
|
4198
|
+
return le ? le.deflateRawSync(g) : Ra(g);
|
|
4445
4199
|
}
|
|
4446
4200
|
var k = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], J = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258], ce = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
|
|
4447
4201
|
function ue(g) {
|
|
@@ -4497,7 +4251,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4497
4251
|
var v = g.length, w = 2 * v > T ? 2 * v : T + 5, y = 0;
|
|
4498
4252
|
if (v >= T) return g;
|
|
4499
4253
|
if (ye) {
|
|
4500
|
-
var S =
|
|
4254
|
+
var S = ni(w);
|
|
4501
4255
|
if (g.copy) g.copy(S);
|
|
4502
4256
|
else for (; y < g.length; ++y) S[y] = g[y];
|
|
4503
4257
|
return S;
|
|
@@ -4546,7 +4300,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4546
4300
|
for (; T <= 287; T++) v.push(8);
|
|
4547
4301
|
tr(v, wr, 288);
|
|
4548
4302
|
})();
|
|
4549
|
-
var
|
|
4303
|
+
var Io = /* @__PURE__ */ (function() {
|
|
4550
4304
|
for (var T = ie ? new Uint8Array(32768) : [], v = 0, w = 0; v < ce.length - 1; ++v)
|
|
4551
4305
|
for (; w < ce[v + 1]; ++w) T[w] = v;
|
|
4552
4306
|
for (; w < 32768; ++w) T[w] = 29;
|
|
@@ -4598,12 +4352,12 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4598
4352
|
return W.length < 8 ? S(W, z) : V(W, z);
|
|
4599
4353
|
};
|
|
4600
4354
|
})();
|
|
4601
|
-
function
|
|
4602
|
-
var T = G(50 + Math.floor(g.length * 1.1)), v =
|
|
4355
|
+
function Ra(g) {
|
|
4356
|
+
var T = G(50 + Math.floor(g.length * 1.1)), v = Io(g, T);
|
|
4603
4357
|
return T.slice(0, v);
|
|
4604
4358
|
}
|
|
4605
|
-
var
|
|
4606
|
-
function
|
|
4359
|
+
var Pa = ie ? new Uint16Array(32768) : nt(32768), La = ie ? new Uint16Array(32768) : nt(32768), Na = ie ? new Uint16Array(128) : nt(128), Ia = 1, Ma = 1;
|
|
4360
|
+
function Mo(g, T) {
|
|
4607
4361
|
var v = be(g, T) + 257;
|
|
4608
4362
|
T += 5;
|
|
4609
4363
|
var w = be(g, T) + 1;
|
|
@@ -4619,11 +4373,11 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4619
4373
|
for (fe = 0; fe < te; ++fe)
|
|
4620
4374
|
if (ne = V[fe], ne != 0) {
|
|
4621
4375
|
de = Z[X[fe]] >> 8 - ne;
|
|
4622
|
-
for (var he = (1 << 7 - ne) - 1; he >= 0; --he)
|
|
4376
|
+
for (var he = (1 << 7 - ne) - 1; he >= 0; --he) Na[de | he << ne] = ne & 7 | fe << 3;
|
|
4623
4377
|
}
|
|
4624
4378
|
var we = [];
|
|
4625
4379
|
for (W = 1; we.length < v + w; )
|
|
4626
|
-
switch (de =
|
|
4380
|
+
switch (de = Na[me(g, T)], T += de & 7, de >>>= 3) {
|
|
4627
4381
|
case 16:
|
|
4628
4382
|
for (S = 3 + pe(g, T), T += 2, de = we[we.length - 1]; S-- > 0; ) we.push(de);
|
|
4629
4383
|
break;
|
|
@@ -4640,14 +4394,14 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4640
4394
|
var ke = we.slice(0, v), Re = we.slice(v);
|
|
4641
4395
|
for (fe = v; fe < 286; ++fe) ke[fe] = 0;
|
|
4642
4396
|
for (fe = w; fe < 30; ++fe) Re[fe] = 0;
|
|
4643
|
-
return
|
|
4397
|
+
return Ia = tr(ke, Pa, 286), Ma = tr(Re, La, 30), T;
|
|
4644
4398
|
}
|
|
4645
|
-
function
|
|
4399
|
+
function Bo(g, T) {
|
|
4646
4400
|
if (g[0] == 3 && !(g[1] & 3))
|
|
4647
4401
|
return [jt(T), 2];
|
|
4648
|
-
for (var v = 0, w = 0, y =
|
|
4402
|
+
for (var v = 0, w = 0, y = ni(T || 1 << 18), S = 0, V = y.length >>> 0, X = 0, W = 0; (w & 1) == 0; ) {
|
|
4649
4403
|
if (w = Te(g, v), v += 3, w >>> 1)
|
|
4650
|
-
w >> 1 == 1 ? (X = 9, W = 5) : (v =
|
|
4404
|
+
w >> 1 == 1 ? (X = 9, W = 5) : (v = Mo(g, v), X = Ia, W = Ma);
|
|
4651
4405
|
else {
|
|
4652
4406
|
v & 7 && (v += 8 - (v & 7));
|
|
4653
4407
|
var z = g[v >>> 3] | g[(v >>> 3) + 1] << 8;
|
|
@@ -4658,7 +4412,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4658
4412
|
}
|
|
4659
4413
|
for (; ; ) {
|
|
4660
4414
|
!T && V < S + 32767 && (y = vr(y, S + 32767), V = y.length);
|
|
4661
|
-
var Y = rt(g, v, X), te = w >>> 1 == 1 ? wr[Y] :
|
|
4415
|
+
var Y = rt(g, v, X), te = w >>> 1 == 1 ? wr[Y] : Pa[Y];
|
|
4662
4416
|
if (v += te & 15, te >>>= 4, (te >>> 8 & 255) === 0) y[S++] = te;
|
|
4663
4417
|
else {
|
|
4664
4418
|
if (te == 256) break;
|
|
@@ -4666,7 +4420,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4666
4420
|
var fe = te < 8 ? 0 : te - 4 >> 2;
|
|
4667
4421
|
fe > 5 && (fe = 0);
|
|
4668
4422
|
var de = S + J[te];
|
|
4669
|
-
fe > 0 && (de += rt(g, v, fe), v += fe), Y = rt(g, v, W), te = w >>> 1 == 1 ? $n[Y] :
|
|
4423
|
+
fe > 0 && (de += rt(g, v, fe), v += fe), Y = rt(g, v, W), te = w >>> 1 == 1 ? $n[Y] : La[Y], v += te & 15, te >>>= 4;
|
|
4670
4424
|
var ne = te < 4 ? 0 : te - 2 >> 1, he = ce[te];
|
|
4671
4425
|
for (ne > 0 && (he += rt(g, v, ne), v += ne), !T && V < de && (y = vr(y, de + 100), V = y.length); S < de; )
|
|
4672
4426
|
y[S] = y[S - he], ++S;
|
|
@@ -4675,16 +4429,16 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4675
4429
|
}
|
|
4676
4430
|
return T ? [y, v + 7 >>> 3] : [y.slice(0, S), v + 7 >>> 3];
|
|
4677
4431
|
}
|
|
4678
|
-
function
|
|
4679
|
-
var v = g.slice(g.l || 0), w =
|
|
4432
|
+
function Ba(g, T) {
|
|
4433
|
+
var v = g.slice(g.l || 0), w = Bo(v, T);
|
|
4680
4434
|
return g.l += w[1], w[0];
|
|
4681
4435
|
}
|
|
4682
|
-
function
|
|
4436
|
+
function Ua(g, T) {
|
|
4683
4437
|
if (g)
|
|
4684
4438
|
typeof console < "u" && console.error(T);
|
|
4685
4439
|
else throw new Error(T);
|
|
4686
4440
|
}
|
|
4687
|
-
function
|
|
4441
|
+
function Ha(g, T) {
|
|
4688
4442
|
var v = (
|
|
4689
4443
|
/*::(*/
|
|
4690
4444
|
g
|
|
@@ -4711,11 +4465,11 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4711
4465
|
);
|
|
4712
4466
|
v.l += te + fe + de;
|
|
4713
4467
|
var we = v.l;
|
|
4714
|
-
v.l = ne + 4,
|
|
4468
|
+
v.l = ne + 4, Uo(v, z, Y, S, he), v.l = we;
|
|
4715
4469
|
}
|
|
4716
4470
|
return S;
|
|
4717
4471
|
}
|
|
4718
|
-
function
|
|
4472
|
+
function Uo(g, T, v, w, y) {
|
|
4719
4473
|
g.l += 2;
|
|
4720
4474
|
var S = g.read_shift(2), V = g.read_shift(2), X = s(g);
|
|
4721
4475
|
if (S & 8257) throw new Error("Unsupported ZIP encryption");
|
|
@@ -4741,9 +4495,9 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4741
4495
|
throw new Error("Unsupported ZIP Compression method " + V);
|
|
4742
4496
|
}
|
|
4743
4497
|
var ke = !1;
|
|
4744
|
-
S & 8 && (W = g.read_shift(4), W == 134695760 && (W = g.read_shift(4), ke = !0), z = g.read_shift(4), Y = g.read_shift(4)), z != T &&
|
|
4498
|
+
S & 8 && (W = g.read_shift(4), W == 134695760 && (W = g.read_shift(4), ke = !0), z = g.read_shift(4), Y = g.read_shift(4)), z != T && Ua(ke, "Bad compressed size: " + T + " != " + z), Y != v && Ua(ke, "Bad uncompressed size: " + v + " != " + Y), Wn(w, de, we, { unsafe: !0, mt: X });
|
|
4745
4499
|
}
|
|
4746
|
-
function
|
|
4500
|
+
function Ho(g, T) {
|
|
4747
4501
|
var v = T || {}, w = [], y = [], S = G(1), V = v.compression ? 8 : 0, X = 0, W = 0, z = 0, Y = 0, te = 0, fe = g.FullPaths[0], de = fe, ne = g.FileIndex[0], he = [], we = 0;
|
|
4748
4502
|
for (W = 1; W < g.FullPaths.length; ++W)
|
|
4749
4503
|
if (de = g.FullPaths[W].slice(fe.length), ne = g.FileIndex[W], !(!ne.size || !ne.content || de == "Sh33tJ5")) {
|
|
@@ -4777,18 +4531,18 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4777
4531
|
thmx: "application/vnd.ms-officetheme",
|
|
4778
4532
|
sh33tj5: "application/octet-stream"
|
|
4779
4533
|
};
|
|
4780
|
-
function
|
|
4534
|
+
function $o(g, T) {
|
|
4781
4535
|
if (g.ctype) return g.ctype;
|
|
4782
4536
|
var v = g.name || "", w = v.match(/\.([^\.]+)$/);
|
|
4783
4537
|
return w && Xr[w[1]] || T && (w = (v = T).match(/[\.\\]([^\.\\])+$/), w && Xr[w[1]]) ? Xr[w[1]] : "application/octet-stream";
|
|
4784
4538
|
}
|
|
4785
|
-
function
|
|
4539
|
+
function Wo(g) {
|
|
4786
4540
|
for (var T = Mr(g), v = [], w = 0; w < T.length; w += 76) v.push(T.slice(w, w + 76));
|
|
4787
4541
|
return v.join(`\r
|
|
4788
4542
|
`) + `\r
|
|
4789
4543
|
`;
|
|
4790
4544
|
}
|
|
4791
|
-
function
|
|
4545
|
+
function Vo(g) {
|
|
4792
4546
|
var T = g.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g, function(z) {
|
|
4793
4547
|
var Y = z.charCodeAt(0).toString(16).toUpperCase();
|
|
4794
4548
|
return "=" + (Y.length == 1 ? "0" + Y : Y);
|
|
@@ -4811,7 +4565,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4811
4565
|
return v.join(`\r
|
|
4812
4566
|
`);
|
|
4813
4567
|
}
|
|
4814
|
-
function
|
|
4568
|
+
function zo(g) {
|
|
4815
4569
|
for (var T = [], v = 0; v < g.length; ++v) {
|
|
4816
4570
|
for (var w = g[v]; v <= g.length && w.charAt(w.length - 1) == "="; ) w = w.slice(0, w.length - 1) + g[++v];
|
|
4817
4571
|
T.push(w);
|
|
@@ -4822,7 +4576,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4822
4576
|
return vt(T.join(`\r
|
|
4823
4577
|
`));
|
|
4824
4578
|
}
|
|
4825
|
-
function
|
|
4579
|
+
function Yo(g, T, v) {
|
|
4826
4580
|
for (var w = "", y = "", S = "", V, X = 0; X < 10; ++X) {
|
|
4827
4581
|
var W = T[X];
|
|
4828
4582
|
if (!W || W.match(/^\s*$/)) break;
|
|
@@ -4844,7 +4598,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4844
4598
|
V = vt(kt(T.slice(X).join("")));
|
|
4845
4599
|
break;
|
|
4846
4600
|
case "quoted-printable":
|
|
4847
|
-
V =
|
|
4601
|
+
V = zo(T.slice(X));
|
|
4848
4602
|
break;
|
|
4849
4603
|
default:
|
|
4850
4604
|
throw new Error("Unsupported Content-Transfer-Encoding " + y);
|
|
@@ -4852,7 +4606,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4852
4606
|
var Y = Wn(g, w.slice(v.length), V, { unsafe: !0 });
|
|
4853
4607
|
S && (Y.ctype = S);
|
|
4854
4608
|
}
|
|
4855
|
-
function
|
|
4609
|
+
function Go(g, T) {
|
|
4856
4610
|
if (oe(g.slice(0, 13)).toLowerCase() != "mime-version:") throw new Error("Unsupported MAD header");
|
|
4857
4611
|
var v = T && T.root || "", w = (ye && Buffer.isBuffer(g) ? g.toString("binary") : oe(g)).split(`\r
|
|
4858
4612
|
`), y = 0, S = "";
|
|
@@ -4870,11 +4624,11 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4870
4624
|
var te, fe = 0;
|
|
4871
4625
|
for (y = 0; y < w.length; ++y) {
|
|
4872
4626
|
var de = w[y];
|
|
4873
|
-
de !== X && de !== X + "--" || (fe++ &&
|
|
4627
|
+
de !== X && de !== X + "--" || (fe++ && Yo(Y, w.slice(te, y), v), te = y);
|
|
4874
4628
|
}
|
|
4875
4629
|
return Y;
|
|
4876
4630
|
}
|
|
4877
|
-
function
|
|
4631
|
+
function jo(g, T) {
|
|
4878
4632
|
var v = T || {}, w = v.boundary || "SheetJS";
|
|
4879
4633
|
w = "------=" + w;
|
|
4880
4634
|
for (var y = [
|
|
@@ -4892,13 +4646,13 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4892
4646
|
});
|
|
4893
4647
|
for (var z = X.content, Y = ye && Buffer.isBuffer(z) ? z.toString("binary") : oe(z), te = 0, fe = Math.min(1024, Y.length), de = 0, ne = 0; ne <= fe; ++ne) (de = Y.charCodeAt(ne)) >= 32 && de < 128 && ++te;
|
|
4894
4648
|
var he = te >= fe * 4 / 5;
|
|
4895
|
-
y.push(w), y.push("Content-Location: " + (v.root || "file:///C:/SheetJS/") + V), y.push("Content-Transfer-Encoding: " + (he ? "quoted-printable" : "base64")), y.push("Content-Type: " +
|
|
4649
|
+
y.push(w), y.push("Content-Location: " + (v.root || "file:///C:/SheetJS/") + V), y.push("Content-Transfer-Encoding: " + (he ? "quoted-printable" : "base64")), y.push("Content-Type: " + $o(X, V)), y.push(""), y.push(he ? Vo(Y) : Wo(Y));
|
|
4896
4650
|
}
|
|
4897
4651
|
return y.push(w + `--\r
|
|
4898
4652
|
`), y.join(`\r
|
|
4899
4653
|
`);
|
|
4900
4654
|
}
|
|
4901
|
-
function
|
|
4655
|
+
function Ko(g) {
|
|
4902
4656
|
var T = {};
|
|
4903
4657
|
return _(T, g), T;
|
|
4904
4658
|
}
|
|
@@ -4912,7 +4666,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4912
4666
|
}
|
|
4913
4667
|
return S.content = v, S.size = v ? v.length : 0, w && (w.CLSID && (S.clsid = w.CLSID), w.mt && (S.mt = w.mt), w.ct && (S.ct = w.ct)), S;
|
|
4914
4668
|
}
|
|
4915
|
-
function
|
|
4669
|
+
function Xo(g, T) {
|
|
4916
4670
|
_(g);
|
|
4917
4671
|
var v = Ce.find(g, T);
|
|
4918
4672
|
if (v) {
|
|
@@ -4921,7 +4675,7 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4921
4675
|
}
|
|
4922
4676
|
return !1;
|
|
4923
4677
|
}
|
|
4924
|
-
function
|
|
4678
|
+
function Jo(g, T, v) {
|
|
4925
4679
|
_(g);
|
|
4926
4680
|
var w = Ce.find(g, T);
|
|
4927
4681
|
if (w) {
|
|
@@ -4930,22 +4684,22 @@ var yf = /* @__PURE__ */ (function() {
|
|
|
4930
4684
|
}
|
|
4931
4685
|
return !1;
|
|
4932
4686
|
}
|
|
4933
|
-
function
|
|
4687
|
+
function qo(g) {
|
|
4934
4688
|
R(g, !0);
|
|
4935
4689
|
}
|
|
4936
4690
|
return t.find = M, t.read = re, t.parse = c, t.write = ee, t.writeFile = q, t.utils = {
|
|
4937
|
-
cfb_new:
|
|
4691
|
+
cfb_new: Ko,
|
|
4938
4692
|
cfb_add: Wn,
|
|
4939
|
-
cfb_del:
|
|
4940
|
-
cfb_mov:
|
|
4941
|
-
cfb_gc:
|
|
4693
|
+
cfb_del: Xo,
|
|
4694
|
+
cfb_mov: Jo,
|
|
4695
|
+
cfb_gc: qo,
|
|
4942
4696
|
ReadShift: Dr,
|
|
4943
|
-
CheckField:
|
|
4697
|
+
CheckField: ks,
|
|
4944
4698
|
prep_blob: ft,
|
|
4945
4699
|
bconcat: Ye,
|
|
4946
4700
|
use_zlib: E,
|
|
4947
|
-
_deflateRaw:
|
|
4948
|
-
_inflateRaw:
|
|
4701
|
+
_deflateRaw: Ra,
|
|
4702
|
+
_inflateRaw: Ba,
|
|
4949
4703
|
consts: j
|
|
4950
4704
|
}, t;
|
|
4951
4705
|
})();
|
|
@@ -4998,11 +4752,11 @@ function Ke(e) {
|
|
|
4998
4752
|
for (var t = Object.keys(e), r = [], n = 0; n < t.length; ++n) Object.prototype.hasOwnProperty.call(e, t[n]) && r.push(t[n]);
|
|
4999
4753
|
return r;
|
|
5000
4754
|
}
|
|
5001
|
-
function
|
|
4755
|
+
function ui(e, t) {
|
|
5002
4756
|
for (var r = [], n = Ke(e), a = 0; a !== n.length; ++a) r[e[n[a]][t]] == null && (r[e[n[a]][t]] = n[a]);
|
|
5003
4757
|
return r;
|
|
5004
4758
|
}
|
|
5005
|
-
function
|
|
4759
|
+
function da(e) {
|
|
5006
4760
|
for (var t = [], r = Ke(e), n = 0; n !== r.length; ++n) t[e[r[n]]] = r[n];
|
|
5007
4761
|
return t;
|
|
5008
4762
|
}
|
|
@@ -5020,18 +4774,18 @@ function it(e, t) {
|
|
|
5020
4774
|
var r = /* @__PURE__ */ e.getTime(), n = /* @__PURE__ */ _n.getTime() + (/* @__PURE__ */ e.getTimezoneOffset() - /* @__PURE__ */ _n.getTimezoneOffset()) * 6e4;
|
|
5021
4775
|
return (r - n) / (1440 * 60 * 1e3);
|
|
5022
4776
|
}
|
|
5023
|
-
var
|
|
5024
|
-
function
|
|
4777
|
+
var ms = /* @__PURE__ */ new Date(), Ff = /* @__PURE__ */ _n.getTime() + (/* @__PURE__ */ ms.getTimezoneOffset() - /* @__PURE__ */ _n.getTimezoneOffset()) * 6e4, hi = /* @__PURE__ */ ms.getTimezoneOffset();
|
|
4778
|
+
function gs(e) {
|
|
5025
4779
|
var t = /* @__PURE__ */ new Date();
|
|
5026
|
-
return t.setTime(e * 24 * 60 * 60 * 1e3 + Ff), t.getTimezoneOffset() !==
|
|
4780
|
+
return t.setTime(e * 24 * 60 * 60 * 1e3 + Ff), t.getTimezoneOffset() !== hi && t.setTime(t.getTime() + (t.getTimezoneOffset() - hi) * 6e4), t;
|
|
5027
4781
|
}
|
|
5028
|
-
var
|
|
4782
|
+
var di = /* @__PURE__ */ new Date("2017-02-19T19:06:09.000Z"), ps = /* @__PURE__ */ isNaN(/* @__PURE__ */ di.getFullYear()) ? /* @__PURE__ */ new Date("2/19/17") : di, Of = /* @__PURE__ */ ps.getFullYear() == 2017;
|
|
5029
4783
|
function tt(e, t) {
|
|
5030
4784
|
var r = new Date(e);
|
|
5031
4785
|
if (Of)
|
|
5032
4786
|
return t > 0 ? r.setTime(r.getTime() + r.getTimezoneOffset() * 60 * 1e3) : t < 0 && r.setTime(r.getTime() - r.getTimezoneOffset() * 60 * 1e3), r;
|
|
5033
4787
|
if (e instanceof Date) return e;
|
|
5034
|
-
if (
|
|
4788
|
+
if (ps.getFullYear() == 1917 && !isNaN(r.getFullYear())) {
|
|
5035
4789
|
var n = r.getFullYear();
|
|
5036
4790
|
return e.indexOf("" + n) > -1 || r.setFullYear(r.getFullYear() + 100), r;
|
|
5037
4791
|
}
|
|
@@ -5121,7 +4875,7 @@ function _e(e, t, r) {
|
|
|
5121
4875
|
Ce.utils.cfb_add(e, t, r);
|
|
5122
4876
|
} else e.file(t, r);
|
|
5123
4877
|
}
|
|
5124
|
-
function
|
|
4878
|
+
function ma() {
|
|
5125
4879
|
return Ce.utils.cfb_new();
|
|
5126
4880
|
}
|
|
5127
4881
|
var Be = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
|
|
@@ -5131,32 +4885,32 @@ var Be = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
|
|
|
5131
4885
|
">": ">",
|
|
5132
4886
|
"<": "<",
|
|
5133
4887
|
"&": "&"
|
|
5134
|
-
},
|
|
4888
|
+
}, ga = /* @__PURE__ */ da(bf), pa = /[&<>'"]/g, Df = /[\u0000-\u0008\u000b-\u001f]/g;
|
|
5135
4889
|
function Fe(e) {
|
|
5136
4890
|
var t = e + "";
|
|
5137
|
-
return t.replace(
|
|
5138
|
-
return
|
|
4891
|
+
return t.replace(pa, function(r) {
|
|
4892
|
+
return ga[r];
|
|
5139
4893
|
}).replace(Df, function(r) {
|
|
5140
4894
|
return "_x" + ("000" + r.charCodeAt(0).toString(16)).slice(-4) + "_";
|
|
5141
4895
|
});
|
|
5142
4896
|
}
|
|
5143
|
-
function
|
|
4897
|
+
function mi(e) {
|
|
5144
4898
|
return Fe(e).replace(/ /g, "_x0020_");
|
|
5145
4899
|
}
|
|
5146
|
-
var
|
|
4900
|
+
var xs = /[\u0000-\u001f]/g;
|
|
5147
4901
|
function kf(e) {
|
|
5148
4902
|
var t = e + "";
|
|
5149
|
-
return t.replace(
|
|
5150
|
-
return
|
|
5151
|
-
}).replace(/\n/g, "<br/>").replace(
|
|
4903
|
+
return t.replace(pa, function(r) {
|
|
4904
|
+
return ga[r];
|
|
4905
|
+
}).replace(/\n/g, "<br/>").replace(xs, function(r) {
|
|
5152
4906
|
return "&#x" + ("000" + r.charCodeAt(0).toString(16)).slice(-4) + ";";
|
|
5153
4907
|
});
|
|
5154
4908
|
}
|
|
5155
4909
|
function Rf(e) {
|
|
5156
4910
|
var t = e + "";
|
|
5157
|
-
return t.replace(
|
|
5158
|
-
return
|
|
5159
|
-
}).replace(
|
|
4911
|
+
return t.replace(pa, function(r) {
|
|
4912
|
+
return ga[r];
|
|
4913
|
+
}).replace(xs, function(r) {
|
|
5160
4914
|
return "&#x" + r.charCodeAt(0).toString(16).toUpperCase() + ";";
|
|
5161
4915
|
});
|
|
5162
4916
|
}
|
|
@@ -5176,7 +4930,7 @@ function Lf(e) {
|
|
|
5176
4930
|
return !1;
|
|
5177
4931
|
}
|
|
5178
4932
|
}
|
|
5179
|
-
function
|
|
4933
|
+
function Gn(e) {
|
|
5180
4934
|
for (var t = "", r = 0, n = 0, a = 0, i = 0, s = 0, o = 0; r < e.length; ) {
|
|
5181
4935
|
if (n = e.charCodeAt(r++), n < 128) {
|
|
5182
4936
|
t += String.fromCharCode(n);
|
|
@@ -5194,16 +4948,16 @@ function jn(e) {
|
|
|
5194
4948
|
}
|
|
5195
4949
|
return t;
|
|
5196
4950
|
}
|
|
5197
|
-
function
|
|
4951
|
+
function gi(e) {
|
|
5198
4952
|
var t = jt(2 * e.length), r, n, a = 1, i = 0, s = 0, o;
|
|
5199
4953
|
for (n = 0; n < e.length; n += a)
|
|
5200
4954
|
a = 1, (o = e.charCodeAt(n)) < 128 ? r = o : o < 224 ? (r = (o & 31) * 64 + (e.charCodeAt(n + 1) & 63), a = 2) : o < 240 ? (r = (o & 15) * 4096 + (e.charCodeAt(n + 1) & 63) * 64 + (e.charCodeAt(n + 2) & 63), a = 3) : (a = 4, r = (o & 7) * 262144 + (e.charCodeAt(n + 1) & 63) * 4096 + (e.charCodeAt(n + 2) & 63) * 64 + (e.charCodeAt(n + 3) & 63), r -= 65536, s = 55296 + (r >>> 10 & 1023), r = 56320 + (r & 1023)), s !== 0 && (t[i++] = s & 255, t[i++] = s >>> 8, s = 0), t[i++] = r % 256, t[i++] = r >>> 8;
|
|
5201
4955
|
return t.slice(0, i).toString("ucs2");
|
|
5202
4956
|
}
|
|
5203
|
-
function
|
|
4957
|
+
function pi(e) {
|
|
5204
4958
|
return Pt(e, "binary").toString("utf8");
|
|
5205
4959
|
}
|
|
5206
|
-
var
|
|
4960
|
+
var en = "foo bar bazâð£", br = ye && (/* @__PURE__ */ pi(en) == /* @__PURE__ */ Gn(en) && pi || /* @__PURE__ */ gi(en) == /* @__PURE__ */ Gn(en) && gi) || Gn, Ur = ye ? function(e) {
|
|
5207
4961
|
return Pt(e, "utf8").toString("binary");
|
|
5208
4962
|
} : function(e) {
|
|
5209
4963
|
for (var t = [], r = 0, n = 0, a = 0; r < e.length; )
|
|
@@ -5238,9 +4992,9 @@ var tn = "foo bar bazâð£", br = ye && (/* @__PURE__ */ gi(tn) == /* @
|
|
|
5238
4992
|
`).replace(/<[^>]*>/g, ""), a = 0; a < e.length; ++a) n = n.replace(e[a][0], e[a][1]);
|
|
5239
4993
|
return n;
|
|
5240
4994
|
};
|
|
5241
|
-
})(),
|
|
4995
|
+
})(), vs = /(^\s|\s$|\n)/;
|
|
5242
4996
|
function Ge(e, t) {
|
|
5243
|
-
return "<" + e + (t.match(
|
|
4997
|
+
return "<" + e + (t.match(vs) ? ' xml:space="preserve"' : "") + ">" + t + "</" + e + ">";
|
|
5244
4998
|
}
|
|
5245
4999
|
function Hr(e) {
|
|
5246
5000
|
return Ke(e).map(function(t) {
|
|
@@ -5248,7 +5002,7 @@ function Hr(e) {
|
|
|
5248
5002
|
}).join("");
|
|
5249
5003
|
}
|
|
5250
5004
|
function ae(e, t, r) {
|
|
5251
|
-
return "<" + e + (r != null ? Hr(r) : "") + (t != null ? (t.match(
|
|
5005
|
+
return "<" + e + (r != null ? Hr(r) : "") + (t != null ? (t.match(vs) ? ' xml:space="preserve"' : "") + ">" + t + "</" + e : "/") + ">";
|
|
5252
5006
|
}
|
|
5253
5007
|
function ia(e, t) {
|
|
5254
5008
|
try {
|
|
@@ -5309,71 +5063,71 @@ function Bf(e, t, r) {
|
|
|
5309
5063
|
for (var o = 0; o <= 5; ++o, i /= 256) e[r + o] = i & 255;
|
|
5310
5064
|
e[r + 6] = (a & 15) << 4 | i & 15, e[r + 7] = a >> 4 | n;
|
|
5311
5065
|
}
|
|
5312
|
-
var
|
|
5066
|
+
var xi = function(e) {
|
|
5313
5067
|
for (var t = [], r = 10240, n = 0; n < e[0].length; ++n) if (e[0][n]) for (var a = 0, i = e[0][n].length; a < i; a += r) t.push.apply(t, e[0][n].slice(a, a + r));
|
|
5314
5068
|
return t;
|
|
5315
|
-
},
|
|
5069
|
+
}, vi = ye ? function(e) {
|
|
5316
5070
|
return e[0].length > 0 && Buffer.isBuffer(e[0][0]) ? Buffer.concat(e[0].map(function(t) {
|
|
5317
5071
|
return Buffer.isBuffer(t) ? t : Pt(t);
|
|
5318
|
-
})) :
|
|
5319
|
-
} :
|
|
5072
|
+
})) : xi(e);
|
|
5073
|
+
} : xi, wi = function(e, t, r) {
|
|
5320
5074
|
for (var n = [], a = t; a < r; a += 2) n.push(String.fromCharCode(Fr(e, a)));
|
|
5321
5075
|
return n.join("").replace(Cr, "");
|
|
5322
|
-
},
|
|
5323
|
-
return Buffer.isBuffer(e) ? e.toString("utf16le", t, r).replace(Cr, "") :
|
|
5324
|
-
} :
|
|
5076
|
+
}, xa = ye ? function(e, t, r) {
|
|
5077
|
+
return Buffer.isBuffer(e) ? e.toString("utf16le", t, r).replace(Cr, "") : wi(e, t, r);
|
|
5078
|
+
} : wi, _i = function(e, t, r) {
|
|
5325
5079
|
for (var n = [], a = t; a < t + r; ++a) n.push(("0" + e[a].toString(16)).slice(-2));
|
|
5326
5080
|
return n.join("");
|
|
5327
|
-
},
|
|
5328
|
-
return Buffer.isBuffer(e) ? e.toString("hex", t, t + r) :
|
|
5329
|
-
} :
|
|
5081
|
+
}, ws = ye ? function(e, t, r) {
|
|
5082
|
+
return Buffer.isBuffer(e) ? e.toString("hex", t, t + r) : _i(e, t, r);
|
|
5083
|
+
} : _i, Ti = function(e, t, r) {
|
|
5330
5084
|
for (var n = [], a = t; a < r; a++) n.push(String.fromCharCode(or(e, a)));
|
|
5331
5085
|
return n.join("");
|
|
5332
5086
|
}, Yr = ye ? function(t, r, n) {
|
|
5333
|
-
return Buffer.isBuffer(t) ? t.toString("utf8", r, n) :
|
|
5334
|
-
} :
|
|
5087
|
+
return Buffer.isBuffer(t) ? t.toString("utf8", r, n) : Ti(t, r, n);
|
|
5088
|
+
} : Ti, _s = function(e, t) {
|
|
5335
5089
|
var r = ct(e, t);
|
|
5336
5090
|
return r > 0 ? Yr(e, t + 4, t + 4 + r - 1) : "";
|
|
5337
|
-
},
|
|
5091
|
+
}, Ts = _s, Es = function(e, t) {
|
|
5338
5092
|
var r = ct(e, t);
|
|
5339
5093
|
return r > 0 ? Yr(e, t + 4, t + 4 + r - 1) : "";
|
|
5340
|
-
},
|
|
5094
|
+
}, ys = Es, Ss = function(e, t) {
|
|
5341
5095
|
var r = 2 * ct(e, t);
|
|
5342
5096
|
return r > 0 ? Yr(e, t + 4, t + 4 + r - 1) : "";
|
|
5343
|
-
},
|
|
5097
|
+
}, As = Ss, Fs = function(t, r) {
|
|
5344
5098
|
var n = ct(t, r);
|
|
5345
|
-
return n > 0 ?
|
|
5346
|
-
},
|
|
5099
|
+
return n > 0 ? xa(t, r + 4, r + 4 + n) : "";
|
|
5100
|
+
}, Os = Fs, Cs = function(e, t) {
|
|
5347
5101
|
var r = ct(e, t);
|
|
5348
5102
|
return r > 0 ? Yr(e, t + 4, t + 4 + r) : "";
|
|
5349
|
-
},
|
|
5103
|
+
}, bs = Cs, Ds = function(e, t) {
|
|
5350
5104
|
return Mf(e, t);
|
|
5351
|
-
}, Tn =
|
|
5105
|
+
}, Tn = Ds, va = function(t) {
|
|
5352
5106
|
return Array.isArray(t) || typeof Uint8Array < "u" && t instanceof Uint8Array;
|
|
5353
5107
|
};
|
|
5354
|
-
ye && (
|
|
5355
|
-
if (!Buffer.isBuffer(t)) return
|
|
5108
|
+
ye && (Ts = function(t, r) {
|
|
5109
|
+
if (!Buffer.isBuffer(t)) return _s(t, r);
|
|
5356
5110
|
var n = t.readUInt32LE(r);
|
|
5357
5111
|
return n > 0 ? t.toString("utf8", r + 4, r + 4 + n - 1) : "";
|
|
5358
|
-
},
|
|
5359
|
-
if (!Buffer.isBuffer(t)) return
|
|
5112
|
+
}, ys = function(t, r) {
|
|
5113
|
+
if (!Buffer.isBuffer(t)) return Es(t, r);
|
|
5360
5114
|
var n = t.readUInt32LE(r);
|
|
5361
5115
|
return n > 0 ? t.toString("utf8", r + 4, r + 4 + n - 1) : "";
|
|
5362
|
-
},
|
|
5363
|
-
if (!Buffer.isBuffer(t)) return
|
|
5116
|
+
}, As = function(t, r) {
|
|
5117
|
+
if (!Buffer.isBuffer(t)) return Ss(t, r);
|
|
5364
5118
|
var n = 2 * t.readUInt32LE(r);
|
|
5365
5119
|
return t.toString("utf16le", r + 4, r + 4 + n - 1);
|
|
5366
|
-
},
|
|
5367
|
-
if (!Buffer.isBuffer(t)) return
|
|
5120
|
+
}, Os = function(t, r) {
|
|
5121
|
+
if (!Buffer.isBuffer(t)) return Fs(t, r);
|
|
5368
5122
|
var n = t.readUInt32LE(r);
|
|
5369
5123
|
return t.toString("utf16le", r + 4, r + 4 + n);
|
|
5370
|
-
},
|
|
5371
|
-
if (!Buffer.isBuffer(t)) return
|
|
5124
|
+
}, bs = function(t, r) {
|
|
5125
|
+
if (!Buffer.isBuffer(t)) return Cs(t, r);
|
|
5372
5126
|
var n = t.readUInt32LE(r);
|
|
5373
5127
|
return t.toString("utf8", r + 4, r + 4 + n);
|
|
5374
5128
|
}, Tn = function(t, r) {
|
|
5375
|
-
return Buffer.isBuffer(t) ? t.readDoubleLE(r) :
|
|
5376
|
-
},
|
|
5129
|
+
return Buffer.isBuffer(t) ? t.readDoubleLE(r) : Ds(t, r);
|
|
5130
|
+
}, va = function(t) {
|
|
5377
5131
|
return Buffer.isBuffer(t) || Array.isArray(t) || typeof Uint8Array < "u" && t instanceof Uint8Array;
|
|
5378
5132
|
});
|
|
5379
5133
|
var or = function(e, t) {
|
|
@@ -5403,36 +5157,36 @@ function Dr(e, t) {
|
|
|
5403
5157
|
r = Yr(this, this.l, this.l + e);
|
|
5404
5158
|
break;
|
|
5405
5159
|
case "utf16le":
|
|
5406
|
-
e *= 2, r =
|
|
5160
|
+
e *= 2, r = xa(this, this.l, this.l + e);
|
|
5407
5161
|
break;
|
|
5408
5162
|
case "wstr":
|
|
5409
5163
|
return Dr.call(this, e, "dbcs");
|
|
5410
5164
|
/* [MS-OLEDS] 2.1.4 LengthPrefixedAnsiString */
|
|
5411
5165
|
case "lpstr-ansi":
|
|
5412
|
-
r =
|
|
5166
|
+
r = Ts(this, this.l), e = 4 + ct(this, this.l);
|
|
5413
5167
|
break;
|
|
5414
5168
|
case "lpstr-cp":
|
|
5415
|
-
r =
|
|
5169
|
+
r = ys(this, this.l), e = 4 + ct(this, this.l);
|
|
5416
5170
|
break;
|
|
5417
5171
|
/* [MS-OLEDS] 2.1.5 LengthPrefixedUnicodeString */
|
|
5418
5172
|
case "lpwstr":
|
|
5419
|
-
r =
|
|
5173
|
+
r = As(this, this.l), e = 4 + 2 * ct(this, this.l);
|
|
5420
5174
|
break;
|
|
5421
5175
|
/* [MS-OFFCRYPTO] 2.1.2 Length-Prefixed Padded Unicode String (UNICODE-LP-P4) */
|
|
5422
5176
|
case "lpp4":
|
|
5423
|
-
e = 4 + ct(this, this.l), r =
|
|
5177
|
+
e = 4 + ct(this, this.l), r = Os(this, this.l), e & 2 && (e += 2);
|
|
5424
5178
|
break;
|
|
5425
5179
|
/* [MS-OFFCRYPTO] 2.1.3 Length-Prefixed UTF-8 String (UTF-8-LP-P4) */
|
|
5426
5180
|
case "8lpp4":
|
|
5427
|
-
e = 4 + ct(this, this.l), r =
|
|
5181
|
+
e = 4 + ct(this, this.l), r = bs(this, this.l), e & 3 && (e += 4 - (e & 3));
|
|
5428
5182
|
break;
|
|
5429
5183
|
case "cstr":
|
|
5430
|
-
for (e = 0, r = ""; (s = or(this, this.l + e++)) !== 0; ) i.push(
|
|
5184
|
+
for (e = 0, r = ""; (s = or(this, this.l + e++)) !== 0; ) i.push(qr(s));
|
|
5431
5185
|
r = i.join("");
|
|
5432
5186
|
break;
|
|
5433
5187
|
case "_wstr":
|
|
5434
5188
|
for (e = 0, r = ""; (s = Fr(this, this.l + e)) !== 0; )
|
|
5435
|
-
i.push(
|
|
5189
|
+
i.push(qr(s)), e += 2;
|
|
5436
5190
|
e += 2, r = i.join("");
|
|
5437
5191
|
break;
|
|
5438
5192
|
/* sbcs and dbcs support continue records in the SST way TODO codepages */
|
|
@@ -5440,7 +5194,7 @@ function Dr(e, t) {
|
|
|
5440
5194
|
for (r = "", f = this.l, l = 0; l < e; ++l) {
|
|
5441
5195
|
if (this.lens && this.lens.indexOf(f) !== -1)
|
|
5442
5196
|
return s = or(this, f), this.l = f + 1, o = Dr.call(this, e - l, s ? "dbcs-cont" : "sbcs-cont"), i.join("") + o;
|
|
5443
|
-
i.push(
|
|
5197
|
+
i.push(qr(Fr(this, f))), f += 2;
|
|
5444
5198
|
}
|
|
5445
5199
|
r = i.join(""), e *= 2;
|
|
5446
5200
|
break;
|
|
@@ -5450,7 +5204,7 @@ function Dr(e, t) {
|
|
|
5450
5204
|
for (r = "", f = this.l, l = 0; l != e; ++l) {
|
|
5451
5205
|
if (this.lens && this.lens.indexOf(f) !== -1)
|
|
5452
5206
|
return s = or(this, f), this.l = f + 1, o = Dr.call(this, e - l, s ? "dbcs-cont" : "sbcs-cont"), i.join("") + o;
|
|
5453
|
-
i.push(
|
|
5207
|
+
i.push(qr(or(this, f))), f += 1;
|
|
5454
5208
|
}
|
|
5455
5209
|
r = i.join("");
|
|
5456
5210
|
break;
|
|
@@ -5470,7 +5224,7 @@ function Dr(e, t) {
|
|
|
5470
5224
|
e = 8;
|
|
5471
5225
|
/* falls through */
|
|
5472
5226
|
case 16:
|
|
5473
|
-
r =
|
|
5227
|
+
r = ws(this, this.l, e);
|
|
5474
5228
|
break;
|
|
5475
5229
|
}
|
|
5476
5230
|
}
|
|
@@ -5530,14 +5284,14 @@ function zf(e, t, r) {
|
|
|
5530
5284
|
}
|
|
5531
5285
|
return this.l += n, this;
|
|
5532
5286
|
}
|
|
5533
|
-
function
|
|
5534
|
-
var r =
|
|
5287
|
+
function ks(e, t) {
|
|
5288
|
+
var r = ws(this, this.l, e.length >> 1);
|
|
5535
5289
|
if (r !== e) throw new Error(t + "Expected " + e + " saw " + r);
|
|
5536
5290
|
this.l += e.length >> 1;
|
|
5537
5291
|
}
|
|
5538
5292
|
function ft(e, t) {
|
|
5539
5293
|
e.l = t, e.read_shift = /*::(*/
|
|
5540
|
-
Dr, e.chk =
|
|
5294
|
+
Dr, e.chk = ks, e.write_shift = zf;
|
|
5541
5295
|
}
|
|
5542
5296
|
function St(e, t) {
|
|
5543
5297
|
e.l += t;
|
|
@@ -5575,7 +5329,7 @@ function Q(e, t, r, n) {
|
|
|
5575
5329
|
break;
|
|
5576
5330
|
}
|
|
5577
5331
|
/*:: length != null &&*/
|
|
5578
|
-
n > 0 &&
|
|
5332
|
+
n > 0 && va(r) && e.push(r);
|
|
5579
5333
|
}
|
|
5580
5334
|
}
|
|
5581
5335
|
function kr(e, t, r) {
|
|
@@ -5586,7 +5340,7 @@ function kr(e, t, r) {
|
|
|
5586
5340
|
}
|
|
5587
5341
|
return n;
|
|
5588
5342
|
}
|
|
5589
|
-
function
|
|
5343
|
+
function Ei(e, t, r) {
|
|
5590
5344
|
var n = st(e);
|
|
5591
5345
|
return n.s = kr(n.s, t.s, r), n.e = kr(n.e, t.s, r), n;
|
|
5592
5346
|
}
|
|
@@ -5598,10 +5352,10 @@ function Rr(e, t) {
|
|
|
5598
5352
|
var r = Oe(e);
|
|
5599
5353
|
return !e.cRel && e.cRel != null && (r = jf(r)), !e.rRel && e.rRel != null && (r = Yf(r)), r;
|
|
5600
5354
|
}
|
|
5601
|
-
function
|
|
5355
|
+
function jn(e, t) {
|
|
5602
5356
|
return e.s.r == 0 && !e.s.rRel && e.e.r == (t.biff >= 12 ? 1048575 : t.biff >= 8 ? 65536 : 16384) && !e.e.rRel ? (e.s.cRel ? "" : "$") + qe(e.s.c) + ":" + (e.e.cRel ? "" : "$") + qe(e.e.c) : e.s.c == 0 && !e.s.cRel && e.e.c == (t.biff >= 12 ? 16383 : 255) && !e.e.cRel ? (e.s.rRel ? "" : "$") + je(e.s.r) + ":" + (e.e.rRel ? "" : "$") + je(e.e.r) : Rr(e.s, t.biff) + ":" + Rr(e.e, t.biff);
|
|
5603
5357
|
}
|
|
5604
|
-
function
|
|
5358
|
+
function wa(e) {
|
|
5605
5359
|
return parseInt(Gf(e), 10) - 1;
|
|
5606
5360
|
}
|
|
5607
5361
|
function je(e) {
|
|
@@ -5613,7 +5367,7 @@ function Yf(e) {
|
|
|
5613
5367
|
function Gf(e) {
|
|
5614
5368
|
return e.replace(/\$(\d+)$/, "$1");
|
|
5615
5369
|
}
|
|
5616
|
-
function
|
|
5370
|
+
function _a(e) {
|
|
5617
5371
|
for (var t = Kf(e), r = 0, n = 0; n !== t.length; ++n) r = 26 * r + t.charCodeAt(n) - 64;
|
|
5618
5372
|
return r - 1;
|
|
5619
5373
|
}
|
|
@@ -5664,7 +5418,7 @@ function De(e) {
|
|
|
5664
5418
|
r = 10 * r + a;
|
|
5665
5419
|
return t.e.r = --r, t;
|
|
5666
5420
|
}
|
|
5667
|
-
function
|
|
5421
|
+
function yi(e, t) {
|
|
5668
5422
|
var r = e.t == "d" && t instanceof Date;
|
|
5669
5423
|
if (e.z != null) try {
|
|
5670
5424
|
return e.w = Bt(e.z, r ? it(t) : t);
|
|
@@ -5677,13 +5431,13 @@ function Ei(e, t) {
|
|
|
5677
5431
|
}
|
|
5678
5432
|
}
|
|
5679
5433
|
function Rt(e, t, r) {
|
|
5680
|
-
return e == null || e.t == null || e.t == "z" ? "" : e.w !== void 0 ? e.w : (e.t == "d" && !e.z && r && r.dateNF && (e.z = r.dateNF), e.t == "e" ? Gr[e.v] || e.v : t == null ?
|
|
5434
|
+
return e == null || e.t == null || e.t == "z" ? "" : e.w !== void 0 ? e.w : (e.t == "d" && !e.z && r && r.dateNF && (e.z = r.dateNF), e.t == "e" ? Gr[e.v] || e.v : t == null ? yi(e, e.v) : yi(e, t));
|
|
5681
5435
|
}
|
|
5682
5436
|
function Jt(e, t) {
|
|
5683
5437
|
var r = t && t.sheet ? t.sheet : "Sheet1", n = {};
|
|
5684
5438
|
return n[r] = e, { SheetNames: [r], Sheets: n };
|
|
5685
5439
|
}
|
|
5686
|
-
function
|
|
5440
|
+
function Rs(e, t, r) {
|
|
5687
5441
|
var n = r || {}, a = e ? Array.isArray(e) : n.dense, i = e || (a ? [] : {}), s = 0, o = 0;
|
|
5688
5442
|
if (i && n.origin != null) {
|
|
5689
5443
|
if (typeof n.origin == "number") s = n.origin;
|
|
@@ -5723,7 +5477,7 @@ function ks(e, t, r) {
|
|
|
5723
5477
|
return f.s.c < 1e7 && (i["!ref"] = Me(f)), i;
|
|
5724
5478
|
}
|
|
5725
5479
|
function gr(e, t) {
|
|
5726
|
-
return
|
|
5480
|
+
return Rs(null, e, t);
|
|
5727
5481
|
}
|
|
5728
5482
|
function Jf(e) {
|
|
5729
5483
|
return e.read_shift(4, "i");
|
|
@@ -5745,7 +5499,7 @@ function qf(e) {
|
|
|
5745
5499
|
function Qf(e, t) {
|
|
5746
5500
|
return t || (t = G(4)), t.write_shift(2, 0), t.write_shift(2, 0), t;
|
|
5747
5501
|
}
|
|
5748
|
-
function
|
|
5502
|
+
function Ta(e, t) {
|
|
5749
5503
|
var r = e.l, n = e.read_shift(1), a = Qe(e), i = [], s = { t: a, h: a };
|
|
5750
5504
|
if ((n & 1) !== 0) {
|
|
5751
5505
|
for (var o = e.read_shift(4), l = 0; l != o; ++l) i.push(qf(e));
|
|
@@ -5757,7 +5511,7 @@ function Zf(e, t) {
|
|
|
5757
5511
|
var r = !1;
|
|
5758
5512
|
return t == null && (r = !0, t = G(15 + 4 * e.t.length)), t.write_shift(1, 0), We(e.t, t), r ? t.slice(0, t.l) : t;
|
|
5759
5513
|
}
|
|
5760
|
-
var el =
|
|
5514
|
+
var el = Ta;
|
|
5761
5515
|
function tl(e, t) {
|
|
5762
5516
|
var r = !1;
|
|
5763
5517
|
return t == null && (r = !0, t = G(23 + 4 * e.t.length)), t.write_shift(1, 1), We(e.t, t), t.write_shift(4, 1), Qf({}, t), r ? t.slice(0, t.l) : t;
|
|
@@ -5776,8 +5530,8 @@ function Qt(e) {
|
|
|
5776
5530
|
function Zt(e, t) {
|
|
5777
5531
|
return t == null && (t = G(4)), t.write_shift(3, e.iStyleRef || e.s), t.write_shift(1, 0), t;
|
|
5778
5532
|
}
|
|
5779
|
-
var rl = Qe,
|
|
5780
|
-
function
|
|
5533
|
+
var rl = Qe, Ps = We;
|
|
5534
|
+
function Ea(e) {
|
|
5781
5535
|
var t = e.read_shift(4);
|
|
5782
5536
|
return t === 0 || t === 4294967295 ? "" : e.read_shift(t, "dbcs");
|
|
5783
5537
|
}
|
|
@@ -5785,27 +5539,27 @@ function En(e, t) {
|
|
|
5785
5539
|
var r = !1;
|
|
5786
5540
|
return t == null && (r = !0, t = G(127)), t.write_shift(4, e.length > 0 ? e.length : 4294967295), e.length > 0 && t.write_shift(0, e, "dbcs"), r ? t.slice(0, t.l) : t;
|
|
5787
5541
|
}
|
|
5788
|
-
var nl = Qe, sa =
|
|
5789
|
-
function
|
|
5542
|
+
var nl = Qe, sa = Ea, ya = En;
|
|
5543
|
+
function Ls(e) {
|
|
5790
5544
|
var t = e.slice(e.l, e.l + 4), r = t[0] & 1, n = t[0] & 2;
|
|
5791
5545
|
e.l += 4;
|
|
5792
5546
|
var a = n === 0 ? Tn([0, 0, 0, 0, t[0] & 252, t[1], t[2], t[3]], 0) : Yt(t, 0) >> 2;
|
|
5793
5547
|
return r ? a / 100 : a;
|
|
5794
5548
|
}
|
|
5795
|
-
function
|
|
5549
|
+
function Ns(e, t) {
|
|
5796
5550
|
t == null && (t = G(4));
|
|
5797
5551
|
var r = 0, n = 0, a = e * 100;
|
|
5798
5552
|
if (e == (e | 0) && e >= -536870912 && e < 1 << 29 ? n = 1 : a == (a | 0) && a >= -536870912 && a < 1 << 29 && (n = 1, r = 1), n) t.write_shift(-4, ((r ? a : e) << 2) + (r + 2));
|
|
5799
5553
|
else throw new Error("unsupported RkNumber " + e);
|
|
5800
5554
|
}
|
|
5801
|
-
function
|
|
5555
|
+
function Is(e) {
|
|
5802
5556
|
var t = { s: {}, e: {} };
|
|
5803
5557
|
return t.s.r = e.read_shift(4), t.e.r = e.read_shift(4), t.s.c = e.read_shift(4), t.e.c = e.read_shift(4), t;
|
|
5804
5558
|
}
|
|
5805
5559
|
function al(e, t) {
|
|
5806
5560
|
return t || (t = G(16)), t.write_shift(4, e.s.r), t.write_shift(4, e.e.r), t.write_shift(4, e.s.c), t.write_shift(4, e.e.c), t;
|
|
5807
5561
|
}
|
|
5808
|
-
var er =
|
|
5562
|
+
var er = Is, pr = al;
|
|
5809
5563
|
function xr(e) {
|
|
5810
5564
|
if (e.length - e.l < 8) throw "XLS Xnum Buffer underflow";
|
|
5811
5565
|
return e.read_shift(8, "f");
|
|
@@ -5822,10 +5576,10 @@ function il(e) {
|
|
|
5822
5576
|
case 1:
|
|
5823
5577
|
t.index = a;
|
|
5824
5578
|
var f = ml[a];
|
|
5825
|
-
f && (t.rgb =
|
|
5579
|
+
f && (t.rgb = Li(f));
|
|
5826
5580
|
break;
|
|
5827
5581
|
case 2:
|
|
5828
|
-
t.rgb =
|
|
5582
|
+
t.rgb = Li([s, o, l]);
|
|
5829
5583
|
break;
|
|
5830
5584
|
case 3:
|
|
5831
5585
|
t.theme = a;
|
|
@@ -5866,9 +5620,9 @@ function ol(e, t) {
|
|
|
5866
5620
|
var r = (e.italic ? 2 : 0) | (e.strike ? 8 : 0) | (e.outline ? 16 : 0) | (e.shadow ? 32 : 0) | (e.condense ? 64 : 0) | (e.extend ? 128 : 0);
|
|
5867
5621
|
return t.write_shift(1, r), t.write_shift(1, 0), t;
|
|
5868
5622
|
}
|
|
5869
|
-
var
|
|
5623
|
+
var Ms = 2, ot = 3, tn = 11, Sn = 19, rn = 64, fl = 65, ll = 71, cl = 4108, ul = 4126, ze = 80, Si = {
|
|
5870
5624
|
/*::[*/
|
|
5871
|
-
1: { n: "CodePage", t:
|
|
5625
|
+
1: { n: "CodePage", t: Ms },
|
|
5872
5626
|
/*::[*/
|
|
5873
5627
|
2: { n: "Category", t: ze },
|
|
5874
5628
|
/*::[*/
|
|
@@ -5888,7 +5642,7 @@ var Is = 2, ot = 3, rn = 11, Sn = 19, nn = 64, fl = 65, ll = 71, cl = 4108, ul =
|
|
|
5888
5642
|
/*::[*/
|
|
5889
5643
|
10: { n: "MultimediaClipCount", t: ot },
|
|
5890
5644
|
/*::[*/
|
|
5891
|
-
11: { n: "ScaleCrop", t:
|
|
5645
|
+
11: { n: "ScaleCrop", t: tn },
|
|
5892
5646
|
/*::[*/
|
|
5893
5647
|
12: {
|
|
5894
5648
|
n: "HeadingPairs",
|
|
@@ -5906,13 +5660,13 @@ var Is = 2, ot = 3, rn = 11, Sn = 19, nn = 64, fl = 65, ll = 71, cl = 4108, ul =
|
|
|
5906
5660
|
/*::[*/
|
|
5907
5661
|
15: { n: "Company", t: ze },
|
|
5908
5662
|
/*::[*/
|
|
5909
|
-
16: { n: "LinksUpToDate", t:
|
|
5663
|
+
16: { n: "LinksUpToDate", t: tn },
|
|
5910
5664
|
/*::[*/
|
|
5911
5665
|
17: { n: "CharacterCount", t: ot },
|
|
5912
5666
|
/*::[*/
|
|
5913
|
-
19: { n: "SharedDoc", t:
|
|
5667
|
+
19: { n: "SharedDoc", t: tn },
|
|
5914
5668
|
/*::[*/
|
|
5915
|
-
22: { n: "HyperlinksChanged", t:
|
|
5669
|
+
22: { n: "HyperlinksChanged", t: tn },
|
|
5916
5670
|
/*::[*/
|
|
5917
5671
|
23: { n: "AppVersion", t: ot, p: "version" },
|
|
5918
5672
|
/*::[*/
|
|
@@ -5934,9 +5688,9 @@ var Is = 2, ot = 3, rn = 11, Sn = 19, nn = 64, fl = 65, ll = 71, cl = 4108, ul =
|
|
|
5934
5688
|
2147483651: { n: "Behavior", t: Sn },
|
|
5935
5689
|
/*::[*/
|
|
5936
5690
|
1919054434: {}
|
|
5937
|
-
},
|
|
5691
|
+
}, Ai = {
|
|
5938
5692
|
/*::[*/
|
|
5939
|
-
1: { n: "CodePage", t:
|
|
5693
|
+
1: { n: "CodePage", t: Ms },
|
|
5940
5694
|
/*::[*/
|
|
5941
5695
|
2: { n: "Title", t: ze },
|
|
5942
5696
|
/*::[*/
|
|
@@ -5954,13 +5708,13 @@ var Is = 2, ot = 3, rn = 11, Sn = 19, nn = 64, fl = 65, ll = 71, cl = 4108, ul =
|
|
|
5954
5708
|
/*::[*/
|
|
5955
5709
|
9: { n: "RevNumber", t: ze },
|
|
5956
5710
|
/*::[*/
|
|
5957
|
-
10: { n: "EditTime", t:
|
|
5711
|
+
10: { n: "EditTime", t: rn },
|
|
5958
5712
|
/*::[*/
|
|
5959
|
-
11: { n: "LastPrinted", t:
|
|
5713
|
+
11: { n: "LastPrinted", t: rn },
|
|
5960
5714
|
/*::[*/
|
|
5961
|
-
12: { n: "CreatedDate", t:
|
|
5715
|
+
12: { n: "CreatedDate", t: rn },
|
|
5962
5716
|
/*::[*/
|
|
5963
|
-
13: { n: "ModifiedDate", t:
|
|
5717
|
+
13: { n: "ModifiedDate", t: rn },
|
|
5964
5718
|
/*::[*/
|
|
5965
5719
|
14: { n: "PageCount", t: ot },
|
|
5966
5720
|
/*::[*/
|
|
@@ -6246,7 +6000,7 @@ var dl = /* @__PURE__ */ hl([
|
|
|
6246
6000
|
/* Image */
|
|
6247
6001
|
"image/png": "TODO",
|
|
6248
6002
|
sheet: "js"
|
|
6249
|
-
},
|
|
6003
|
+
}, nn = {
|
|
6250
6004
|
workbooks: {
|
|
6251
6005
|
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",
|
|
6252
6006
|
xlsm: "application/vnd.ms-excel.sheet.macroEnabled.main+xml",
|
|
@@ -6295,7 +6049,7 @@ var dl = /* @__PURE__ */ hl([
|
|
|
6295
6049
|
xlsb: "application/vnd.ms-excel.styles"
|
|
6296
6050
|
}
|
|
6297
6051
|
};
|
|
6298
|
-
function
|
|
6052
|
+
function Bs() {
|
|
6299
6053
|
return {
|
|
6300
6054
|
workbooks: [],
|
|
6301
6055
|
sheets: [],
|
|
@@ -6321,7 +6075,7 @@ function Ms() {
|
|
|
6321
6075
|
xmlns: ""
|
|
6322
6076
|
};
|
|
6323
6077
|
}
|
|
6324
|
-
function
|
|
6078
|
+
function Us(e, t) {
|
|
6325
6079
|
var r = Af(gl), n = [], a;
|
|
6326
6080
|
n[n.length] = Be, n[n.length] = ae("Types", null, {
|
|
6327
6081
|
xmlns: He.CT,
|
|
@@ -6350,13 +6104,13 @@ function Bs(e, t) {
|
|
|
6350
6104
|
var i = function(l) {
|
|
6351
6105
|
e[l] && e[l].length > 0 && (a = e[l][0], n[n.length] = ae("Override", null, {
|
|
6352
6106
|
PartName: (a[0] == "/" ? "" : "/") + a,
|
|
6353
|
-
ContentType:
|
|
6107
|
+
ContentType: nn[l][t.bookType] || nn[l].xlsx
|
|
6354
6108
|
}));
|
|
6355
6109
|
}, s = function(l) {
|
|
6356
6110
|
(e[l] || []).forEach(function(f) {
|
|
6357
6111
|
n[n.length] = ae("Override", null, {
|
|
6358
6112
|
PartName: (f[0] == "/" ? "" : "/") + f,
|
|
6359
|
-
ContentType:
|
|
6113
|
+
ContentType: nn[l][t.bookType] || nn[l].xlsx
|
|
6360
6114
|
});
|
|
6361
6115
|
});
|
|
6362
6116
|
}, o = function(l) {
|
|
@@ -6392,7 +6146,7 @@ var Ee = {
|
|
|
6392
6146
|
PEOPLE: "http://schemas.microsoft.com/office/2017/10/relationships/person",
|
|
6393
6147
|
VBA: "http://schemas.microsoft.com/office/2006/relationships/vbaProject"
|
|
6394
6148
|
};
|
|
6395
|
-
function
|
|
6149
|
+
function Hs(e) {
|
|
6396
6150
|
var t = e.lastIndexOf("/");
|
|
6397
6151
|
return e.slice(0, t + 1) + "_rels/" + e.slice(t + 1) + ".rels";
|
|
6398
6152
|
}
|
|
@@ -6420,7 +6174,7 @@ function pl(e) {
|
|
|
6420
6174
|
`);
|
|
6421
6175
|
return t.push("</manifest:manifest>"), t.join("");
|
|
6422
6176
|
}
|
|
6423
|
-
function
|
|
6177
|
+
function Fi(e, t, r) {
|
|
6424
6178
|
return [
|
|
6425
6179
|
' <rdf:Description rdf:about="' + e + `">
|
|
6426
6180
|
`,
|
|
@@ -6445,10 +6199,10 @@ function vl(e) {
|
|
|
6445
6199
|
t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
|
6446
6200
|
`);
|
|
6447
6201
|
for (var r = 0; r != e.length; ++r)
|
|
6448
|
-
t.push(
|
|
6449
|
-
return t.push(
|
|
6202
|
+
t.push(Fi(e[r][0], e[r][1])), t.push(xl("", e[r][0]));
|
|
6203
|
+
return t.push(Fi("", "Document", "pkg")), t.push("</rdf:RDF>"), t.join("");
|
|
6450
6204
|
}
|
|
6451
|
-
function
|
|
6205
|
+
function $s() {
|
|
6452
6206
|
return '<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS ' + gn.version + "</meta:generator></office:meta></office:document-meta>";
|
|
6453
6207
|
}
|
|
6454
6208
|
var Gt = [
|
|
@@ -6468,10 +6222,10 @@ var Gt = [
|
|
|
6468
6222
|
["dcterms:created", "CreatedDate", "date"],
|
|
6469
6223
|
["dcterms:modified", "ModifiedDate", "date"]
|
|
6470
6224
|
];
|
|
6471
|
-
function
|
|
6225
|
+
function Kn(e, t, r, n, a) {
|
|
6472
6226
|
a[e] != null || t == null || t === "" || (a[e] = t, t = Fe(t), n[n.length] = r ? ae(e, t, r) : Ge(e, t));
|
|
6473
6227
|
}
|
|
6474
|
-
function
|
|
6228
|
+
function Ws(e, t) {
|
|
6475
6229
|
var r = t || {}, n = [Be, ae("cp:coreProperties", null, {
|
|
6476
6230
|
//'xmlns': XMLNS.CORE_PROPS,
|
|
6477
6231
|
"xmlns:cp": He.CORE_PROPS,
|
|
@@ -6481,10 +6235,10 @@ function $s(e, t) {
|
|
|
6481
6235
|
"xmlns:xsi": He.xsi
|
|
6482
6236
|
})], a = {};
|
|
6483
6237
|
if (!e && !r.Props) return n.join("");
|
|
6484
|
-
e && (e.CreatedDate != null &&
|
|
6238
|
+
e && (e.CreatedDate != null && Kn("dcterms:created", typeof e.CreatedDate == "string" ? e.CreatedDate : ia(e.CreatedDate, r.WTF), { "xsi:type": "dcterms:W3CDTF" }, n, a), e.ModifiedDate != null && Kn("dcterms:modified", typeof e.ModifiedDate == "string" ? e.ModifiedDate : ia(e.ModifiedDate, r.WTF), { "xsi:type": "dcterms:W3CDTF" }, n, a));
|
|
6485
6239
|
for (var i = 0; i != Gt.length; ++i) {
|
|
6486
6240
|
var s = Gt[i], o = r.Props && r.Props[s[1]] != null ? r.Props[s[1]] : e ? e[s[1]] : null;
|
|
6487
|
-
o === !0 ? o = "1" : o === !1 ? o = "0" : typeof o == "number" && (o = String(o)), o != null &&
|
|
6241
|
+
o === !0 ? o = "1" : o === !1 ? o = "0" : typeof o == "number" && (o = String(o)), o != null && Kn(s[0], o, null, n, a);
|
|
6488
6242
|
}
|
|
6489
6243
|
return n.length > 2 && (n[n.length] = "</cp:coreProperties>", n[1] = n[1].replace("/>", ">")), n.join("");
|
|
6490
6244
|
}
|
|
@@ -6500,7 +6254,7 @@ var ur = [
|
|
|
6500
6254
|
["ScaleCrop", "ScaleCrop", "bool"],
|
|
6501
6255
|
["HeadingPairs", "HeadingPairs", "raw"],
|
|
6502
6256
|
["TitlesOfParts", "TitlesOfParts", "raw"]
|
|
6503
|
-
],
|
|
6257
|
+
], Vs = [
|
|
6504
6258
|
"Worksheets",
|
|
6505
6259
|
"SheetNames",
|
|
6506
6260
|
"NamedRanges",
|
|
@@ -6508,7 +6262,7 @@ var ur = [
|
|
|
6508
6262
|
"Chartsheets",
|
|
6509
6263
|
"ChartNames"
|
|
6510
6264
|
];
|
|
6511
|
-
function
|
|
6265
|
+
function zs(e) {
|
|
6512
6266
|
var t = [], r = ae;
|
|
6513
6267
|
return e || (e = {}), e.Application = "SheetJS", t[t.length] = Be, t[t.length] = ae("Properties", null, {
|
|
6514
6268
|
xmlns: He.EXT_PROPS,
|
|
@@ -6530,7 +6284,7 @@ function Vs(e) {
|
|
|
6530
6284
|
return "<vt:lpstr>" + Fe(n) + "</vt:lpstr>";
|
|
6531
6285
|
}).join(""), { size: e.Worksheets, baseType: "lpstr" })), t.length > 2 && (t[t.length] = "</Properties>", t[1] = t[1].replace("/>", ">")), t.join("");
|
|
6532
6286
|
}
|
|
6533
|
-
function
|
|
6287
|
+
function Ys(e) {
|
|
6534
6288
|
var t = [Be, ae("Properties", null, {
|
|
6535
6289
|
xmlns: He.CUST_PROPS,
|
|
6536
6290
|
"xmlns:vt": He.vt
|
|
@@ -6545,7 +6299,7 @@ function zs(e) {
|
|
|
6545
6299
|
});
|
|
6546
6300
|
}), t.length > 2 && (t[t.length] = "</Properties>", t[1] = t[1].replace("/>", ">")), t.join("");
|
|
6547
6301
|
}
|
|
6548
|
-
var
|
|
6302
|
+
var Oi = {
|
|
6549
6303
|
Title: "Title",
|
|
6550
6304
|
Subject: "Subject",
|
|
6551
6305
|
Author: "Author",
|
|
@@ -6581,7 +6335,7 @@ var Fi = {
|
|
|
6581
6335
|
};
|
|
6582
6336
|
function wl(e, t) {
|
|
6583
6337
|
var r = [];
|
|
6584
|
-
return Ke(
|
|
6338
|
+
return Ke(Oi).map(function(n) {
|
|
6585
6339
|
for (var a = 0; a < Gt.length; ++a) if (Gt[a][1] == n) return Gt[a];
|
|
6586
6340
|
for (a = 0; a < ur.length; ++a) if (ur[a][1] == n) return ur[a];
|
|
6587
6341
|
throw n;
|
|
@@ -6593,7 +6347,7 @@ function wl(e, t) {
|
|
|
6593
6347
|
a = new Date(a).toISOString().replace(/\.\d*Z/, "Z");
|
|
6594
6348
|
break;
|
|
6595
6349
|
}
|
|
6596
|
-
typeof a == "number" ? a = String(a) : a === !0 || a === !1 ? a = a ? "1" : "0" : a instanceof Date && (a = new Date(a).toISOString().replace(/\.\d*Z/, "")), r.push(Ge(
|
|
6350
|
+
typeof a == "number" ? a = String(a) : a === !0 || a === !1 ? a = a ? "1" : "0" : a instanceof Date && (a = new Date(a).toISOString().replace(/\.\d*Z/, "")), r.push(Ge(Oi[n[1]] || n[1], a));
|
|
6597
6351
|
}
|
|
6598
6352
|
}), ae("DocumentProperties", r.join(""), { xmlns: lt.o });
|
|
6599
6353
|
}
|
|
@@ -6605,12 +6359,12 @@ function _l(e, t) {
|
|
|
6605
6359
|
for (s = 0; s < ur.length; ++s) if (i == ur[s][1]) return;
|
|
6606
6360
|
for (s = 0; s < r.length; ++s) if (i == r[s]) return;
|
|
6607
6361
|
var o = e[i], l = "string";
|
|
6608
|
-
typeof o == "number" ? (l = "float", o = String(o)) : o === !0 || o === !1 ? (l = "boolean", o = o ? "1" : "0") : o = String(o), a.push(ae(
|
|
6362
|
+
typeof o == "number" ? (l = "float", o = String(o)) : o === !0 || o === !1 ? (l = "boolean", o = o ? "1" : "0") : o = String(o), a.push(ae(mi(i), o, { "dt:dt": l }));
|
|
6609
6363
|
}
|
|
6610
6364
|
}), t && Ke(t).forEach(function(i) {
|
|
6611
6365
|
if (Object.prototype.hasOwnProperty.call(t, i) && !(e && Object.prototype.hasOwnProperty.call(e, i))) {
|
|
6612
6366
|
var s = t[i], o = "string";
|
|
6613
|
-
typeof s == "number" ? (o = "float", s = String(s)) : s === !0 || s === !1 ? (o = "boolean", s = s ? "1" : "0") : s instanceof Date ? (o = "dateTime.tz", s = s.toISOString()) : s = String(s), a.push(ae(
|
|
6367
|
+
typeof s == "number" ? (o = "float", s = String(s)) : s === !0 || s === !1 ? (o = "boolean", s = s ? "1" : "0") : s instanceof Date ? (o = "dateTime.tz", s = s.toISOString()) : s = String(s), a.push(ae(mi(i), s, { "dt:dt": o }));
|
|
6614
6368
|
}
|
|
6615
6369
|
}), "<" + n + ' xmlns="' + lt.o + '">' + a.join("") + "</" + n + ">";
|
|
6616
6370
|
}
|
|
@@ -6622,7 +6376,7 @@ function Tl(e) {
|
|
|
6622
6376
|
var s = G(8);
|
|
6623
6377
|
return s.write_shift(4, n), s.write_shift(4, a), s;
|
|
6624
6378
|
}
|
|
6625
|
-
function
|
|
6379
|
+
function Ci(e, t) {
|
|
6626
6380
|
var r = G(4), n = G(4);
|
|
6627
6381
|
switch (r.write_shift(4, e == 80 ? 31 : e), e) {
|
|
6628
6382
|
case 3:
|
|
@@ -6646,7 +6400,7 @@ function Oi(e, t) {
|
|
|
6646
6400
|
}
|
|
6647
6401
|
return Ye([r, n]);
|
|
6648
6402
|
}
|
|
6649
|
-
var
|
|
6403
|
+
var Gs = ["CodePage", "Thumbnail", "_PID_LINKBASE", "_PID_HLINKS", "SystemIdentifier", "FMTID"];
|
|
6650
6404
|
function El(e) {
|
|
6651
6405
|
switch (typeof e) {
|
|
6652
6406
|
case "boolean":
|
|
@@ -6661,7 +6415,7 @@ function El(e) {
|
|
|
6661
6415
|
}
|
|
6662
6416
|
return -1;
|
|
6663
6417
|
}
|
|
6664
|
-
function
|
|
6418
|
+
function bi(e, t, r) {
|
|
6665
6419
|
var n = G(8), a = [], i = [], s = 8, o = 0, l = G(8), f = G(8);
|
|
6666
6420
|
if (l.write_shift(4, 2), l.write_shift(4, 1200), f.write_shift(4, 1), i.push(l), a.push(f), s += 8 + l.length, !t) {
|
|
6667
6421
|
f = G(8), f.write_shift(4, 0), a.unshift(f);
|
|
@@ -6674,7 +6428,7 @@ function Ci(e, t, r) {
|
|
|
6674
6428
|
l = Ye(c), i.unshift(l), s += 8 + l.length;
|
|
6675
6429
|
}
|
|
6676
6430
|
for (o = 0; o < e.length; ++o)
|
|
6677
|
-
if (!(t && !t[e[o][0]]) && !(
|
|
6431
|
+
if (!(t && !t[e[o][0]]) && !(Gs.indexOf(e[o][0]) > -1 || Vs.indexOf(e[o][0]) > -1) && e[o][1] != null) {
|
|
6678
6432
|
var d = e[o][1], m = 0;
|
|
6679
6433
|
if (t) {
|
|
6680
6434
|
m = +t[e[o][0]];
|
|
@@ -6683,10 +6437,10 @@ function Ci(e, t, r) {
|
|
|
6683
6437
|
var h = d.split(".");
|
|
6684
6438
|
d = (+h[0] << 16) + (+h[1] || 0);
|
|
6685
6439
|
}
|
|
6686
|
-
l =
|
|
6440
|
+
l = Ci(p.t, d);
|
|
6687
6441
|
} else {
|
|
6688
6442
|
var x = El(d);
|
|
6689
|
-
x == -1 && (x = 31, d = String(d)), l =
|
|
6443
|
+
x == -1 && (x = 31, d = String(d)), l = Ci(x, d);
|
|
6690
6444
|
}
|
|
6691
6445
|
i.push(l), f = G(8), f.write_shift(4, t ? m : 2 + o), a.push(f), s += 8 + l.length;
|
|
6692
6446
|
}
|
|
@@ -6695,12 +6449,12 @@ function Ci(e, t, r) {
|
|
|
6695
6449
|
a[o].write_shift(4, P), P += i[o].length;
|
|
6696
6450
|
return n.write_shift(4, s), n.write_shift(4, i.length), Ye([n].concat(a).concat(i));
|
|
6697
6451
|
}
|
|
6698
|
-
function
|
|
6452
|
+
function Di(e, t, r, n, a, i) {
|
|
6699
6453
|
var s = G(a ? 68 : 48), o = [s];
|
|
6700
6454
|
s.write_shift(2, 65534), s.write_shift(2, 0), s.write_shift(4, 842412599), s.write_shift(16, Ce.utils.consts.HEADER_CLSID, "hex"), s.write_shift(4, a ? 2 : 1), s.write_shift(16, t, "hex"), s.write_shift(4, a ? 68 : 48);
|
|
6701
|
-
var l =
|
|
6455
|
+
var l = bi(e, r, n);
|
|
6702
6456
|
if (o.push(l), a) {
|
|
6703
|
-
var f =
|
|
6457
|
+
var f = bi(a, null, null);
|
|
6704
6458
|
s.write_shift(16, i, "hex"), s.write_shift(4, 68 + l.length), o.push(f);
|
|
6705
6459
|
}
|
|
6706
6460
|
return Ye(o);
|
|
@@ -6716,16 +6470,16 @@ function Sl(e, t) {
|
|
|
6716
6470
|
function et(e, t) {
|
|
6717
6471
|
return t || (t = G(2)), t.write_shift(2, +!!e), t;
|
|
6718
6472
|
}
|
|
6719
|
-
function
|
|
6473
|
+
function js(e) {
|
|
6720
6474
|
return e.read_shift(2, "u");
|
|
6721
6475
|
}
|
|
6722
6476
|
function dt(e, t) {
|
|
6723
6477
|
return t || (t = G(2)), t.write_shift(2, e), t;
|
|
6724
6478
|
}
|
|
6725
|
-
function
|
|
6479
|
+
function Ks(e, t, r) {
|
|
6726
6480
|
return r || (r = G(2)), r.write_shift(1, t == "e" ? +e : +!!e), r.write_shift(1, t == "e" ? 1 : 0), r;
|
|
6727
6481
|
}
|
|
6728
|
-
function
|
|
6482
|
+
function Xs(e, t, r) {
|
|
6729
6483
|
var n = e.read_shift(r && r.biff >= 12 ? 2 : 1), a = "sbcs-cont";
|
|
6730
6484
|
if (r && r.biff >= 8, !r || r.biff == 8) {
|
|
6731
6485
|
var i = e.read_shift(1);
|
|
@@ -6761,10 +6515,10 @@ function Cl(e, t, r) {
|
|
|
6761
6515
|
var n = e.read_shift(1);
|
|
6762
6516
|
return n === 0 ? (e.l++, "") : e.read_shift(n, r.biff <= 4 || !e.lens ? "cpstr" : "sbcs-cont");
|
|
6763
6517
|
}
|
|
6764
|
-
function
|
|
6518
|
+
function Js(e, t, r) {
|
|
6765
6519
|
return r || (r = G(3 + 2 * e.length)), r.write_shift(2, e.length), r.write_shift(1, 1), r.write_shift(31, e, "utf16le"), r;
|
|
6766
6520
|
}
|
|
6767
|
-
function
|
|
6521
|
+
function ki(e, t) {
|
|
6768
6522
|
t || (t = G(6 + e.length * 2)), t.write_shift(4, 1 + e.length);
|
|
6769
6523
|
for (var r = 0; r < e.length; ++r) t.write_shift(2, e.charCodeAt(r));
|
|
6770
6524
|
return t.write_shift(2, 0), t;
|
|
@@ -6785,12 +6539,12 @@ function bl(e) {
|
|
|
6785
6539
|
var s = [8, 6815827, 6619237, 4849780, 83];
|
|
6786
6540
|
for (r = 0; r < s.length; ++r) t.write_shift(4, s[r]);
|
|
6787
6541
|
if (i == 28)
|
|
6788
|
-
n = n.slice(1),
|
|
6542
|
+
n = n.slice(1), ki(n, t);
|
|
6789
6543
|
else if (i & 2) {
|
|
6790
6544
|
for (s = "e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "), r = 0; r < s.length; ++r) t.write_shift(1, parseInt(s[r], 16));
|
|
6791
6545
|
var o = a > -1 ? n.slice(0, a) : n;
|
|
6792
6546
|
for (t.write_shift(4, 2 * (o.length + 1)), r = 0; r < o.length; ++r) t.write_shift(2, o.charCodeAt(r));
|
|
6793
|
-
t.write_shift(2, 0), i & 8 &&
|
|
6547
|
+
t.write_shift(2, 0), i & 8 && ki(a > -1 ? n.slice(a + 1) : "", t);
|
|
6794
6548
|
} else {
|
|
6795
6549
|
for (s = "03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "), r = 0; r < s.length; ++r) t.write_shift(1, parseInt(s[r], 16));
|
|
6796
6550
|
for (var l = 0; n.slice(l * 3, l * 3 + 3) == "../" || n.slice(l * 3, l * 3 + 3) == "..\\"; ) ++l;
|
|
@@ -6810,10 +6564,10 @@ function kl(e) {
|
|
|
6810
6564
|
var t = e.read_shift(2), r = e.read_shift(2), n = e.read_shift(2), a = e.read_shift(2);
|
|
6811
6565
|
return { s: { c: n, r: t }, e: { c: a, r } };
|
|
6812
6566
|
}
|
|
6813
|
-
function
|
|
6567
|
+
function qs(e, t) {
|
|
6814
6568
|
return t || (t = G(8)), t.write_shift(2, e.s.r), t.write_shift(2, e.e.r), t.write_shift(2, e.s.c), t.write_shift(2, e.e.c), t;
|
|
6815
6569
|
}
|
|
6816
|
-
function
|
|
6570
|
+
function Sa(e, t, r) {
|
|
6817
6571
|
var n = 1536, a = 16;
|
|
6818
6572
|
switch (r.bookType) {
|
|
6819
6573
|
case "biff8":
|
|
@@ -6888,7 +6642,7 @@ function $l(e, t) {
|
|
|
6888
6642
|
var r = t.biff == 8 || !t.biff ? 4 : 2, n = G(2 * r + 6);
|
|
6889
6643
|
return n.write_shift(r, e.s.r), n.write_shift(r, e.e.r + 1), n.write_shift(2, e.s.c), n.write_shift(2, e.e.c + 1), n.write_shift(2, 0), n;
|
|
6890
6644
|
}
|
|
6891
|
-
function
|
|
6645
|
+
function Ri(e, t, r, n) {
|
|
6892
6646
|
var a = r && r.biff == 5;
|
|
6893
6647
|
n || (n = G(a ? 16 : 20)), n.write_shift(2, 0), e.style ? (n.write_shift(2, e.numFmtId || 0), n.write_shift(2, 65524)) : (n.write_shift(2, e.numFmtId || 0), n.write_shift(2, t << 4));
|
|
6894
6648
|
var i = 0;
|
|
@@ -6900,7 +6654,7 @@ function Wl(e) {
|
|
|
6900
6654
|
}
|
|
6901
6655
|
function Vl(e, t, r, n, a, i) {
|
|
6902
6656
|
var s = G(8);
|
|
6903
|
-
return Xt(e, t, n, s),
|
|
6657
|
+
return Xt(e, t, n, s), Ks(r, i, s), s;
|
|
6904
6658
|
}
|
|
6905
6659
|
function zl(e, t, r, n) {
|
|
6906
6660
|
var a = G(14);
|
|
@@ -6914,13 +6668,13 @@ function Yl(e, t, r) {
|
|
|
6914
6668
|
}
|
|
6915
6669
|
function Gl(e, t, r) {
|
|
6916
6670
|
e[e.l + 1] == 3 && e[e.l]++;
|
|
6917
|
-
var n =
|
|
6671
|
+
var n = Xs(e, t, r);
|
|
6918
6672
|
return n.charCodeAt(0) == 3 ? n.slice(1) : n;
|
|
6919
6673
|
}
|
|
6920
6674
|
function jl(e) {
|
|
6921
6675
|
var t = G(2 + e.length * 8);
|
|
6922
6676
|
t.write_shift(2, e.length);
|
|
6923
|
-
for (var r = 0; r < e.length; ++r)
|
|
6677
|
+
for (var r = 0; r < e.length; ++r) qs(e[r], t);
|
|
6924
6678
|
return t;
|
|
6925
6679
|
}
|
|
6926
6680
|
function Kl(e) {
|
|
@@ -7107,7 +6861,7 @@ var rc = /* @__PURE__ */ (function() {
|
|
|
7107
6861
|
204: 1257,
|
|
7108
6862
|
/*::[*/
|
|
7109
6863
|
255: 16969
|
|
7110
|
-
}, t =
|
|
6864
|
+
}, t = da({
|
|
7111
6865
|
/*::[*/
|
|
7112
6866
|
1: 437,
|
|
7113
6867
|
/*::[*/
|
|
@@ -7416,7 +7170,7 @@ var rc = /* @__PURE__ */ (function() {
|
|
|
7416
7170
|
for (M.write_shift(4, 318902576), M.write_shift(4, m.length), M.write_shift(2, 296 + 32 * P), M.write_shift(2, L), h = 0; h < 4; ++h) M.write_shift(4, 0);
|
|
7417
7171
|
for (M.write_shift(4, 0 | (+t[
|
|
7418
7172
|
/*::String(*/
|
|
7419
|
-
|
|
7173
|
+
Zi
|
|
7420
7174
|
/*::)*/
|
|
7421
7175
|
] || 3) << 8), h = 0, x = 0; h < d.length; ++h)
|
|
7422
7176
|
if (d[h] != null) {
|
|
@@ -7555,10 +7309,10 @@ var rc = /* @__PURE__ */ (function() {
|
|
|
7555
7309
|
"{": 223
|
|
7556
7310
|
}, t = new RegExp("\x1BN(" + Ke(e).join("|").replace(/\|\|\|/, "|\\||").replace(/([?()+])/g, "\\$1") + "|\\|)", "gm"), r = function(d, m) {
|
|
7557
7311
|
var p = e[m];
|
|
7558
|
-
return typeof p == "number" ?
|
|
7312
|
+
return typeof p == "number" ? ri(p) : p;
|
|
7559
7313
|
}, n = function(d, m, p) {
|
|
7560
7314
|
var h = m.charCodeAt(0) - 32 << 4 | p.charCodeAt(0) - 48;
|
|
7561
|
-
return h == 59 ? d :
|
|
7315
|
+
return h == 59 ? d : ri(h);
|
|
7562
7316
|
};
|
|
7563
7317
|
e["|"] = 254;
|
|
7564
7318
|
function a(d, m) {
|
|
@@ -7613,7 +7367,7 @@ var rc = /* @__PURE__ */ (function() {
|
|
|
7613
7367
|
for (h = parseInt(F[L].slice(1)) - 1, j || (x = 0), M = D.length; M <= h; ++M) D[M] = [];
|
|
7614
7368
|
break;
|
|
7615
7369
|
case "K":
|
|
7616
|
-
I = F[L].slice(1), I.charAt(0) === '"' ? I = I.slice(1, I.length - 1) : I === "TRUE" ? I = !0 : I === "FALSE" ? I = !1 : isNaN(bt(I)) ? isNaN(Br(I).getDate()) || (I = tt(I)) : (I = bt(I), K !== null &&
|
|
7370
|
+
I = F[L].slice(1), I.charAt(0) === '"' ? I = I.slice(1, I.length - 1) : I === "TRUE" ? I = !0 : I === "FALSE" ? I = !1 : isNaN(bt(I)) ? isNaN(Br(I).getDate()) || (I = tt(I)) : (I = bt(I), K !== null && us(K) && (I = gs(I))), N = !0;
|
|
7617
7371
|
break;
|
|
7618
7372
|
case "E":
|
|
7619
7373
|
oe = !0;
|
|
@@ -7674,13 +7428,13 @@ var rc = /* @__PURE__ */ (function() {
|
|
|
7674
7428
|
/* font */
|
|
7675
7429
|
case "W":
|
|
7676
7430
|
for (R = F[L].slice(1).split(" "), M = parseInt(R[0], 10); M <= parseInt(R[1], 10); ++M)
|
|
7677
|
-
b = parseInt(R[2], 10), C[M - 1] = b === 0 ? { hidden: !0 } : { wch: b },
|
|
7431
|
+
b = parseInt(R[2], 10), C[M - 1] = b === 0 ? { hidden: !0 } : { wch: b }, Aa(C[M - 1]);
|
|
7678
7432
|
break;
|
|
7679
7433
|
case "C":
|
|
7680
7434
|
x = parseInt(F[L].slice(1)) - 1, C[x] || (C[x] = {});
|
|
7681
7435
|
break;
|
|
7682
7436
|
case "R":
|
|
7683
|
-
h = parseInt(F[L].slice(1)) - 1, _[h] || (_[h] = {}), b > 0 ? (_[h].hpt = b, _[h].hpx =
|
|
7437
|
+
h = parseInt(F[L].slice(1)) - 1, _[h] || (_[h] = {}), b > 0 ? (_[h].hpt = b, _[h].hpx = ro(b)) : b === 0 && (_[h].hidden = !0);
|
|
7684
7438
|
break;
|
|
7685
7439
|
default:
|
|
7686
7440
|
if (m && m.WTF) throw new Error("SYLK bad record " + H);
|
|
@@ -7706,7 +7460,7 @@ var rc = /* @__PURE__ */ (function() {
|
|
|
7706
7460
|
var x = "C;Y" + (p + 1) + ";X" + (h + 1) + ";K";
|
|
7707
7461
|
switch (d.t) {
|
|
7708
7462
|
case "n":
|
|
7709
|
-
x += d.v || 0, d.f && !d.F && (x += ";E" +
|
|
7463
|
+
x += d.v || 0, d.f && !d.F && (x += ";E" + Oa(d.f, { r: p, c: h }));
|
|
7710
7464
|
break;
|
|
7711
7465
|
case "b":
|
|
7712
7466
|
x += d.v ? "TRUE" : "FALSE";
|
|
@@ -7849,7 +7603,7 @@ var rc = /* @__PURE__ */ (function() {
|
|
|
7849
7603
|
to_sheet: r,
|
|
7850
7604
|
from_sheet: a
|
|
7851
7605
|
};
|
|
7852
|
-
})(),
|
|
7606
|
+
})(), Qs = /* @__PURE__ */ (function() {
|
|
7853
7607
|
function e(u) {
|
|
7854
7608
|
return u.replace(/\\b/g, "\\").replace(/\\c/g, ":").replace(/\\n/g, `
|
|
7855
7609
|
`);
|
|
@@ -8064,7 +7818,7 @@ var rc = /* @__PURE__ */ (function() {
|
|
|
8064
7818
|
default:
|
|
8065
7819
|
throw new Error("Unrecognized type " + u.type);
|
|
8066
7820
|
}
|
|
8067
|
-
return m[0] == 239 && m[1] == 187 && m[2] == 191 ? d = br(d.slice(3)) : u.type != "string" && u.type != "buffer" && u.codepage == 65001 ? d = br(d) : u.type == "binary" && typeof pn < "u", d.slice(0, 19) == "socialcalc:version:" ?
|
|
7821
|
+
return m[0] == 239 && m[1] == 187 && m[2] == 191 ? d = br(d.slice(3)) : u.type != "string" && u.type != "buffer" && u.codepage == 65001 ? d = br(d) : u.type == "binary" && typeof pn < "u", d.slice(0, 19) == "socialcalc:version:" ? Qs.to_sheet(u.type == "string" ? d : br(d), u) : s(d, u);
|
|
8068
7822
|
}
|
|
8069
7823
|
function l(c, u) {
|
|
8070
7824
|
return Jt(o(c, u), u);
|
|
@@ -8090,7 +7844,7 @@ var rc = /* @__PURE__ */ (function() {
|
|
|
8090
7844
|
to_sheet: o,
|
|
8091
7845
|
from_sheet: f
|
|
8092
7846
|
};
|
|
8093
|
-
})(),
|
|
7847
|
+
})(), Pi = /* @__PURE__ */ (function() {
|
|
8094
7848
|
function e(E, A, O) {
|
|
8095
7849
|
if (E) {
|
|
8096
7850
|
ft(E, E.l || 0);
|
|
@@ -8145,7 +7899,7 @@ var rc = /* @__PURE__ */ (function() {
|
|
|
8145
7899
|
case 14:
|
|
8146
7900
|
/* NUMBER */
|
|
8147
7901
|
case 16:
|
|
8148
|
-
gt == 14 && (me[2] & 112) == 112 && (me[2] & 15) > 1 && (me[2] & 15) < 15 && (me[1].z = O.dateNF || Ne[14], O.cellDates && (me[1].t = "d", me[1].v =
|
|
7902
|
+
gt == 14 && (me[2] & 112) == 112 && (me[2] & 15) > 1 && (me[2] & 15) < 15 && (me[1].z = O.dateNF || Ne[14], O.cellDates && (me[1].t = "d", me[1].v = gs(me[1].v))), O.qpro && me[3] > ue && (k["!ref"] = Me(ge), ie[J] = k, Z.push(J), k = O.dense ? [] : {}, ge = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, ue = me[3], J = ce || "Sheet" + (ue + 1), ce = "");
|
|
8149
7903
|
var Ft = O.dense ? (k[me[0].r] || [])[me[0].c] : k[Oe(me[0])];
|
|
8150
7904
|
if (Ft) {
|
|
8151
7905
|
Ft.t = me[1].t, Ft.v = me[1].v, me[1].z != null && (Ft.z = me[1].z), me[1].f != null && (Ft.f = me[1].f);
|
|
@@ -8544,7 +8298,7 @@ var rc = /* @__PURE__ */ (function() {
|
|
|
8544
8298
|
}
|
|
8545
8299
|
var ee = {
|
|
8546
8300
|
/*::[*/
|
|
8547
|
-
0: { n: "BOF", f:
|
|
8301
|
+
0: { n: "BOF", f: js },
|
|
8548
8302
|
/*::[*/
|
|
8549
8303
|
1: { n: "EOF" },
|
|
8550
8304
|
/*::[*/
|
|
@@ -8925,7 +8679,7 @@ var rc = /* @__PURE__ */ (function() {
|
|
|
8925
8679
|
to_workbook: t
|
|
8926
8680
|
};
|
|
8927
8681
|
})(), sc = /^\s|\s$|[\t\n\r]/;
|
|
8928
|
-
function
|
|
8682
|
+
function Zs(e, t) {
|
|
8929
8683
|
if (!t.bookSST) return "";
|
|
8930
8684
|
var r = [Be];
|
|
8931
8685
|
r[r.length] = ae("sst", null, {
|
|
@@ -8961,7 +8715,7 @@ function uc(e) {
|
|
|
8961
8715
|
for (var t = [], r = e.split(""), n = 0; n < r.length; ++n) t[n] = r[n].charCodeAt(0);
|
|
8962
8716
|
return t;
|
|
8963
8717
|
}
|
|
8964
|
-
function
|
|
8718
|
+
function eo(e) {
|
|
8965
8719
|
var t = 0, r, n = uc(e), a = n.length + 1, i, s, o, l, f;
|
|
8966
8720
|
for (r = jt(a), r[0] = n.length, i = 1; i != a; ++i) r[i] = n[i - 1];
|
|
8967
8721
|
for (i = a - 1; i >= 0; --i)
|
|
@@ -9024,7 +8778,7 @@ var hc = /* @__PURE__ */ (function() {
|
|
|
9024
8778
|
from_sheet: n
|
|
9025
8779
|
};
|
|
9026
8780
|
})();
|
|
9027
|
-
function
|
|
8781
|
+
function Li(e) {
|
|
9028
8782
|
for (var t = 0, r = 1; t != 3; ++t) r = r * 256 + (e[t] > 255 ? 255 : e[t] < 0 ? 0 : e[t]);
|
|
9029
8783
|
return r.toString(16).toUpperCase().slice(1);
|
|
9030
8784
|
}
|
|
@@ -9038,15 +8792,15 @@ function Fn(e) {
|
|
|
9038
8792
|
function oa(e) {
|
|
9039
8793
|
return Math.round((e * Dt + 5) / Dt * 256) / 256;
|
|
9040
8794
|
}
|
|
9041
|
-
function
|
|
8795
|
+
function Aa(e) {
|
|
9042
8796
|
e.width ? (e.wpx = An(e.width), e.wch = Fn(e.wpx), e.MDW = Dt) : e.wpx ? (e.wch = Fn(e.wpx), e.width = oa(e.wch), e.MDW = Dt) : typeof e.wch == "number" && (e.width = oa(e.wch), e.wpx = An(e.width), e.MDW = Dt), e.customWidth && delete e.customWidth;
|
|
9043
8797
|
}
|
|
9044
|
-
var mc = 96,
|
|
8798
|
+
var mc = 96, to = mc;
|
|
9045
8799
|
function On(e) {
|
|
9046
|
-
return e * 96 /
|
|
8800
|
+
return e * 96 / to;
|
|
9047
8801
|
}
|
|
9048
|
-
function
|
|
9049
|
-
return e *
|
|
8802
|
+
function ro(e) {
|
|
8803
|
+
return e * to / 96;
|
|
9050
8804
|
}
|
|
9051
8805
|
function gc(e) {
|
|
9052
8806
|
var t = ["<numFmts>"];
|
|
@@ -9065,7 +8819,7 @@ function pc(e) {
|
|
|
9065
8819
|
t[t.length] = ae("xf", null, r);
|
|
9066
8820
|
}), t[t.length] = "</cellXfs>", t.length === 2 ? "" : (t[0] = ae("cellXfs", null, { count: t.length - 2 }).replace("/>", ">"), t.join(""));
|
|
9067
8821
|
}
|
|
9068
|
-
function
|
|
8822
|
+
function no(e, t) {
|
|
9069
8823
|
var r = [Be, ae("styleSheet", null, {
|
|
9070
8824
|
xmlns: mr[0],
|
|
9071
8825
|
"xmlns:vt": He.vt
|
|
@@ -9139,10 +8893,10 @@ var Tc = [
|
|
|
9139
8893
|
"lightTrellis",
|
|
9140
8894
|
"gray125",
|
|
9141
8895
|
"gray0625"
|
|
9142
|
-
],
|
|
9143
|
-
function
|
|
9144
|
-
t || (t = G(84)),
|
|
9145
|
-
var r =
|
|
8896
|
+
], Xn, Ec = St;
|
|
8897
|
+
function Ni(e, t) {
|
|
8898
|
+
t || (t = G(84)), Xn || (Xn = da(Tc));
|
|
8899
|
+
var r = Xn[e.patternType];
|
|
9146
8900
|
r == null && (r = 40), t.write_shift(4, r);
|
|
9147
8901
|
var n = 0;
|
|
9148
8902
|
if (r != 40)
|
|
@@ -9157,7 +8911,7 @@ function yc(e, t) {
|
|
|
9157
8911
|
var r = e.l + t, n = e.read_shift(2), a = e.read_shift(2);
|
|
9158
8912
|
return e.l = r, { ixfe: n, numFmtId: a };
|
|
9159
8913
|
}
|
|
9160
|
-
function
|
|
8914
|
+
function ao(e, t, r) {
|
|
9161
8915
|
r || (r = G(16)), r.write_shift(2, t || 0), r.write_shift(2, e.numFmtId || 0), r.write_shift(2, 0), r.write_shift(2, 0), r.write_shift(2, 0), r.write_shift(1, 0), r.write_shift(1, 0);
|
|
9162
8916
|
var n = 0;
|
|
9163
8917
|
return r.write_shift(1, n), r.write_shift(1, 0), r.write_shift(1, 0), r.write_shift(1, 0), r;
|
|
@@ -9215,7 +8969,7 @@ function bc(e) {
|
|
|
9215
8969
|
}
|
|
9216
8970
|
function Dc(e) {
|
|
9217
8971
|
var t = 2;
|
|
9218
|
-
Q(e, 603, _t(t)), Q(e, 45,
|
|
8972
|
+
Q(e, 603, _t(t)), Q(e, 45, Ni({ patternType: "none" })), Q(e, 45, Ni({ patternType: "gray125" })), Q(
|
|
9219
8973
|
e,
|
|
9220
8974
|
604
|
|
9221
8975
|
/* BrtEndFills */
|
|
@@ -9231,7 +8985,7 @@ function kc(e) {
|
|
|
9231
8985
|
}
|
|
9232
8986
|
function Rc(e) {
|
|
9233
8987
|
var t = 1;
|
|
9234
|
-
Q(e, 626, _t(t)), Q(e, 47,
|
|
8988
|
+
Q(e, 626, _t(t)), Q(e, 47, ao({
|
|
9235
8989
|
numFmtId: 0
|
|
9236
8990
|
}, 65535)), Q(
|
|
9237
8991
|
e,
|
|
@@ -9241,7 +8995,7 @@ function Rc(e) {
|
|
|
9241
8995
|
}
|
|
9242
8996
|
function Pc(e, t) {
|
|
9243
8997
|
Q(e, 617, _t(t.length)), t.forEach(function(r) {
|
|
9244
|
-
Q(e, 47,
|
|
8998
|
+
Q(e, 47, ao(r, 0));
|
|
9245
8999
|
}), Q(
|
|
9246
9000
|
e,
|
|
9247
9001
|
618
|
|
@@ -9287,7 +9041,7 @@ function Mc(e, t) {
|
|
|
9287
9041
|
/* BrtEndStyleSheet */
|
|
9288
9042
|
), r.end();
|
|
9289
9043
|
}
|
|
9290
|
-
function
|
|
9044
|
+
function io(e, t) {
|
|
9291
9045
|
if (t && t.themeXLSX) return t.themeXLSX;
|
|
9292
9046
|
if (e && typeof e.raw == "string") return e.raw;
|
|
9293
9047
|
var r = [Be];
|
|
@@ -9335,7 +9089,7 @@ function Yc() {
|
|
|
9335
9089
|
flags: 3496657072
|
|
9336
9090
|
})), Q(e, 336), Q(e, 339, Wc(1, "XLDAPR")), Q(e, 52), Q(e, 35, _t(514)), Q(e, 4096, _t(0)), Q(e, 4097, dt(1)), Q(e, 36), Q(e, 53), Q(e, 340), Q(e, 337, zc(1)), Q(e, 51, $c([[1, 0]])), Q(e, 338), Q(e, 333), e.end();
|
|
9337
9091
|
}
|
|
9338
|
-
function
|
|
9092
|
+
function so() {
|
|
9339
9093
|
var e = [Be];
|
|
9340
9094
|
return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
|
|
9341
9095
|
<metadataTypes count="1">
|
|
@@ -9366,7 +9120,7 @@ function Gc(e) {
|
|
|
9366
9120
|
return n & 2 && (t.l = "1"), n & 8 && (t.a = "1"), t;
|
|
9367
9121
|
}
|
|
9368
9122
|
var fr = 1024;
|
|
9369
|
-
function
|
|
9123
|
+
function oo(e, t) {
|
|
9370
9124
|
for (var r = [21600, 21600], n = ["m0,0l0", r[1], r[0], r[1], r[0], "0xe"].join(","), a = [
|
|
9371
9125
|
ae("xml", null, { "xmlns:v": lt.v, "xmlns:o": lt.o, "xmlns:x": lt.x, "xmlns:mv": lt.mv }).replace(/\/>/, ">"),
|
|
9372
9126
|
ae("o:shapelayout", ae("o:idmap", null, { "v:ext": "edit", data: e }), { "v:ext": "edit" }),
|
|
@@ -9408,7 +9162,7 @@ function so(e, t) {
|
|
|
9408
9162
|
]);
|
|
9409
9163
|
}), a.push("</xml>"), a.join("");
|
|
9410
9164
|
}
|
|
9411
|
-
function
|
|
9165
|
+
function fo(e) {
|
|
9412
9166
|
var t = [Be, ae("comments", null, { xmlns: mr[0] })], r = [];
|
|
9413
9167
|
return t.push("<authors>"), e.forEach(function(n) {
|
|
9414
9168
|
n[1].forEach(function(a) {
|
|
@@ -9526,7 +9280,7 @@ function eu(e, t) {
|
|
|
9526
9280
|
}
|
|
9527
9281
|
});
|
|
9528
9282
|
}
|
|
9529
|
-
var
|
|
9283
|
+
var lo = ["xlsb", "xlsm", "xlam", "biff8", "xla"], tu = /* @__PURE__ */ (function() {
|
|
9530
9284
|
var e = /(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g, t = { r: 0, c: 0 };
|
|
9531
9285
|
function r(n, a, i, s) {
|
|
9532
9286
|
var o = !1, l = !1;
|
|
@@ -9537,17 +9291,17 @@ var fo = ["xlsb", "xlsm", "xlam", "biff8", "xla"], tu = /* @__PURE__ */ (functio
|
|
|
9537
9291
|
return function(a, i) {
|
|
9538
9292
|
return t = i, a.replace(e, r);
|
|
9539
9293
|
};
|
|
9540
|
-
})(),
|
|
9294
|
+
})(), Fa = /(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g, Oa = /* @__PURE__ */ (function() {
|
|
9541
9295
|
return function(t, r) {
|
|
9542
|
-
return t.replace(
|
|
9543
|
-
var f =
|
|
9296
|
+
return t.replace(Fa, function(n, a, i, s, o, l) {
|
|
9297
|
+
var f = _a(s) - (i ? 0 : r.c), c = wa(l) - (o ? 0 : r.r), u = c == 0 ? "" : o ? c + 1 : "[" + c + "]", d = f == 0 ? "" : i ? f + 1 : "[" + f + "]";
|
|
9544
9298
|
return a + "R" + u + "C" + d;
|
|
9545
9299
|
});
|
|
9546
9300
|
};
|
|
9547
9301
|
})();
|
|
9548
9302
|
function ru(e, t) {
|
|
9549
|
-
return e.replace(
|
|
9550
|
-
return n + (a == "$" ? a + i : qe(
|
|
9303
|
+
return e.replace(Fa, function(r, n, a, i, s, o) {
|
|
9304
|
+
return n + (a == "$" ? a + i : qe(_a(i) + t.c)) + (s == "$" ? s + o : je(wa(o) + t.r));
|
|
9551
9305
|
});
|
|
9552
9306
|
}
|
|
9553
9307
|
function nu(e) {
|
|
@@ -9560,25 +9314,25 @@ function Ut(e, t) {
|
|
|
9560
9314
|
var r = e.read_shift(2);
|
|
9561
9315
|
return [r & 16383, r >> 14 & 1, r >> 15 & 1];
|
|
9562
9316
|
}
|
|
9563
|
-
function
|
|
9317
|
+
function co(e, t, r) {
|
|
9564
9318
|
var n = 2;
|
|
9565
9319
|
if (r) {
|
|
9566
|
-
if (r.biff >= 2 && r.biff <= 5) return
|
|
9320
|
+
if (r.biff >= 2 && r.biff <= 5) return uo(e);
|
|
9567
9321
|
r.biff == 12 && (n = 4);
|
|
9568
9322
|
}
|
|
9569
9323
|
var a = e.read_shift(n), i = e.read_shift(n), s = Ut(e), o = Ut(e);
|
|
9570
9324
|
return { s: { r: a, c: s[0], cRel: s[1], rRel: s[2] }, e: { r: i, c: o[0], cRel: o[1], rRel: o[2] } };
|
|
9571
9325
|
}
|
|
9572
|
-
function
|
|
9326
|
+
function uo(e) {
|
|
9573
9327
|
var t = Ut(e), r = Ut(e), n = e.read_shift(1), a = e.read_shift(1);
|
|
9574
9328
|
return { s: { r: t[0], c: n, cRel: t[1], rRel: t[2] }, e: { r: r[0], c: a, cRel: r[1], rRel: r[2] } };
|
|
9575
9329
|
}
|
|
9576
9330
|
function au(e, t, r) {
|
|
9577
|
-
if (r.biff < 8) return
|
|
9331
|
+
if (r.biff < 8) return uo(e);
|
|
9578
9332
|
var n = e.read_shift(r.biff == 12 ? 4 : 2), a = e.read_shift(r.biff == 12 ? 4 : 2), i = Ut(e), s = Ut(e);
|
|
9579
9333
|
return { s: { r: n, c: i[0], cRel: i[1], rRel: i[2] }, e: { r: a, c: s[0], cRel: s[1], rRel: s[2] } };
|
|
9580
9334
|
}
|
|
9581
|
-
function
|
|
9335
|
+
function ho(e, t, r) {
|
|
9582
9336
|
if (r && r.biff >= 2 && r.biff <= 5) return iu(e);
|
|
9583
9337
|
var n = e.read_shift(r && r.biff == 12 ? 4 : 2), a = Ut(e);
|
|
9584
9338
|
return { r: n, c: a[0], cRel: a[1], rRel: a[2] };
|
|
@@ -9604,7 +9358,7 @@ function fu(e) {
|
|
|
9604
9358
|
return t &= 16383, n == 1 && t >= 8192 && (t = t - 16384), a == 1 && r >= 128 && (r = r - 256), { r: t, c: r, cRel: a, rRel: n };
|
|
9605
9359
|
}
|
|
9606
9360
|
function lu(e, t, r) {
|
|
9607
|
-
var n = (e[e.l++] & 96) >> 5, a =
|
|
9361
|
+
var n = (e[e.l++] & 96) >> 5, a = co(e, r.biff >= 2 && r.biff <= 5 ? 6 : 8, r);
|
|
9608
9362
|
return [n, a];
|
|
9609
9363
|
}
|
|
9610
9364
|
function cu(e, t, r) {
|
|
@@ -9617,7 +9371,7 @@ function cu(e, t, r) {
|
|
|
9617
9371
|
i = 12;
|
|
9618
9372
|
break;
|
|
9619
9373
|
}
|
|
9620
|
-
var s =
|
|
9374
|
+
var s = co(e, i, r);
|
|
9621
9375
|
return [n, a, s];
|
|
9622
9376
|
}
|
|
9623
9377
|
function uu(e, t, r) {
|
|
@@ -9644,7 +9398,7 @@ function mu(e, t, r) {
|
|
|
9644
9398
|
var n = (e[e.l++] & 96) >> 5;
|
|
9645
9399
|
return e.l += r.biff == 2 ? 6 : r.biff == 12 ? 14 : 7, [n];
|
|
9646
9400
|
}
|
|
9647
|
-
function
|
|
9401
|
+
function Ii(e) {
|
|
9648
9402
|
var t = e[e.l + 1] & 1, r = 1;
|
|
9649
9403
|
return e.l += 4, [t, r];
|
|
9650
9404
|
}
|
|
@@ -9669,20 +9423,20 @@ function wu(e, t, r) {
|
|
|
9669
9423
|
var n = e[e.l + 1] & 255 ? 1 : 0;
|
|
9670
9424
|
return e.l += r && r.biff == 2 ? 3 : 4, [n];
|
|
9671
9425
|
}
|
|
9672
|
-
function
|
|
9426
|
+
function mo(e) {
|
|
9673
9427
|
var t = e.read_shift(1), r = e.read_shift(1);
|
|
9674
9428
|
return [t, r];
|
|
9675
9429
|
}
|
|
9676
9430
|
function _u(e) {
|
|
9677
|
-
return e.read_shift(2),
|
|
9431
|
+
return e.read_shift(2), mo(e);
|
|
9678
9432
|
}
|
|
9679
9433
|
function Tu(e) {
|
|
9680
|
-
return e.read_shift(2),
|
|
9434
|
+
return e.read_shift(2), mo(e);
|
|
9681
9435
|
}
|
|
9682
9436
|
function Eu(e, t, r) {
|
|
9683
9437
|
var n = (e[e.l] & 96) >> 5;
|
|
9684
9438
|
e.l += 1;
|
|
9685
|
-
var a =
|
|
9439
|
+
var a = ho(e, 0, r);
|
|
9686
9440
|
return [n, a];
|
|
9687
9441
|
}
|
|
9688
9442
|
function yu(e, t, r) {
|
|
@@ -9696,18 +9450,18 @@ function Su(e, t, r) {
|
|
|
9696
9450
|
e.l += 1;
|
|
9697
9451
|
var a = e.read_shift(2);
|
|
9698
9452
|
r && r.biff == 5 && (e.l += 12);
|
|
9699
|
-
var i =
|
|
9453
|
+
var i = ho(e, 0, r);
|
|
9700
9454
|
return [n, a, i];
|
|
9701
9455
|
}
|
|
9702
9456
|
function Au(e, t, r) {
|
|
9703
9457
|
var n = (e[e.l] & 96) >> 5;
|
|
9704
9458
|
e.l += 1;
|
|
9705
9459
|
var a = e.read_shift(r && r.biff <= 3 ? 1 : 2);
|
|
9706
|
-
return [Ah[a],
|
|
9460
|
+
return [Ah[a], xo[a], n];
|
|
9707
9461
|
}
|
|
9708
9462
|
function Fu(e, t, r) {
|
|
9709
9463
|
var n = e[e.l++], a = e.read_shift(1), i = r && r.biff <= 3 ? [n == 88 ? -1 : 0, e.read_shift(1)] : Ou(e);
|
|
9710
|
-
return [a, (i[0] === 0 ?
|
|
9464
|
+
return [a, (i[0] === 0 ? xo : Sh)[i[1]]];
|
|
9711
9465
|
}
|
|
9712
9466
|
function Ou(e) {
|
|
9713
9467
|
return [e[e.l + 1] >> 7, e.read_shift(2) & 32767];
|
|
@@ -9733,7 +9487,7 @@ function Pu(e) {
|
|
|
9733
9487
|
return e.l++, xr(e);
|
|
9734
9488
|
}
|
|
9735
9489
|
function Lu(e, t, r) {
|
|
9736
|
-
return e.l++,
|
|
9490
|
+
return e.l++, Xs(e, t - 1, r);
|
|
9737
9491
|
}
|
|
9738
9492
|
function Nu(e, t) {
|
|
9739
9493
|
var r = [e.read_shift(1)];
|
|
@@ -9845,14 +9599,14 @@ var Yu = St, Gu = St, ju = St;
|
|
|
9845
9599
|
function jr(e, t, r) {
|
|
9846
9600
|
return e.l += 2, [su(e)];
|
|
9847
9601
|
}
|
|
9848
|
-
function
|
|
9602
|
+
function Ca(e) {
|
|
9849
9603
|
return e.l += 6, [];
|
|
9850
9604
|
}
|
|
9851
|
-
var Ku = jr, Xu =
|
|
9852
|
-
function
|
|
9853
|
-
return e.l += 2, [
|
|
9605
|
+
var Ku = jr, Xu = Ca, Ju = Ca, qu = jr;
|
|
9606
|
+
function go(e) {
|
|
9607
|
+
return e.l += 2, [js(e), e.read_shift(2) & 1];
|
|
9854
9608
|
}
|
|
9855
|
-
var Qu = jr, Zu =
|
|
9609
|
+
var Qu = jr, Zu = go, eh = Ca, th = jr, rh = jr, nh = [
|
|
9856
9610
|
"Data",
|
|
9857
9611
|
"All",
|
|
9858
9612
|
"Headers",
|
|
@@ -9896,7 +9650,7 @@ function lh(e) {
|
|
|
9896
9650
|
function ch(e) {
|
|
9897
9651
|
return e.l += 4, [0, 0];
|
|
9898
9652
|
}
|
|
9899
|
-
var
|
|
9653
|
+
var Mi = {
|
|
9900
9654
|
/*::[*/
|
|
9901
9655
|
1: { n: "PtgExp", f: bu },
|
|
9902
9656
|
/*::[*/
|
|
@@ -10090,7 +9844,7 @@ var Ii = {
|
|
|
10090
9844
|
125: 61
|
|
10091
9845
|
}, hh = {
|
|
10092
9846
|
/*::[*/
|
|
10093
|
-
1: { n: "PtgElfLel", f:
|
|
9847
|
+
1: { n: "PtgElfLel", f: go },
|
|
10094
9848
|
/*::[*/
|
|
10095
9849
|
2: { n: "PtgElfRw", f: th },
|
|
10096
9850
|
/*::[*/
|
|
@@ -10129,9 +9883,9 @@ var Ii = {
|
|
|
10129
9883
|
/*::[*/
|
|
10130
9884
|
16: { n: "PtgAttrSum", f: Cu },
|
|
10131
9885
|
/*::[*/
|
|
10132
|
-
32: { n: "PtgAttrBaxcel", f:
|
|
9886
|
+
32: { n: "PtgAttrBaxcel", f: Ii },
|
|
10133
9887
|
/*::[*/
|
|
10134
|
-
33: { n: "PtgAttrBaxcel", f:
|
|
9888
|
+
33: { n: "PtgAttrBaxcel", f: Ii },
|
|
10135
9889
|
/*::[*/
|
|
10136
9890
|
64: { n: "PtgAttrSpace", f: _u },
|
|
10137
9891
|
/*::[*/
|
|
@@ -10167,7 +9921,7 @@ function mh(e, t, r, n) {
|
|
|
10167
9921
|
}
|
|
10168
9922
|
function gh(e, t, r) {
|
|
10169
9923
|
for (var n = e.l + t, a, i, s = []; n != e.l; )
|
|
10170
|
-
t = n - e.l, i = e[e.l], a =
|
|
9924
|
+
t = n - e.l, i = e[e.l], a = Mi[i] || Mi[uh[i]], (i === 24 || i === 25) && (a = (i === 24 ? hh : dh)[e[e.l + 1]]), !a || !a.f ? St(e, t) : s.push([a.n, a.f(e, t, r)]);
|
|
10171
9925
|
return s;
|
|
10172
9926
|
}
|
|
10173
9927
|
function ph(e) {
|
|
@@ -10206,7 +9960,7 @@ function vh(e, t) {
|
|
|
10206
9960
|
if (!e && !(t && t.biff <= 5 && t.biff >= 2)) throw new Error("empty sheet name");
|
|
10207
9961
|
return /[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e) ? "'" + e + "'" : e;
|
|
10208
9962
|
}
|
|
10209
|
-
function
|
|
9963
|
+
function po(e, t, r) {
|
|
10210
9964
|
if (!e) return "SH33TJSERR0";
|
|
10211
9965
|
if (r.biff > 8 && (!e.XTI || !e.XTI[t])) return e.SheetNames[t];
|
|
10212
9966
|
if (!e.XTI) return "SH33TJSERR6";
|
|
@@ -10238,8 +9992,8 @@ function go(e, t, r) {
|
|
|
10238
9992
|
return e[n[0]][0][3] ? (a = n[1] == -1 ? "#REF" : e[n[0]][0][3][n[1]] || "SH33TJSERR4", n[1] == n[2] ? a : a + ":" + e[n[0]][0][3][n[2]]) : "SH33TJSERR2";
|
|
10239
9993
|
}
|
|
10240
9994
|
}
|
|
10241
|
-
function
|
|
10242
|
-
var n =
|
|
9995
|
+
function Bi(e, t, r) {
|
|
9996
|
+
var n = po(e, t, r);
|
|
10243
9997
|
return n == "#REF" ? n : vh(n, r);
|
|
10244
9998
|
}
|
|
10245
9999
|
function dr(e, t, r, n, a) {
|
|
@@ -10323,7 +10077,7 @@ function dr(e, t, r, n, a) {
|
|
|
10323
10077
|
break;
|
|
10324
10078
|
case "PtgRef3d":
|
|
10325
10079
|
u = /*::Number(*/
|
|
10326
|
-
D[1][1], c = kr(D[1][2], s, a), p =
|
|
10080
|
+
D[1][1], c = kr(D[1][2], s, a), p = Bi(n, u, a), o.push(p + "!" + Rr(c, i));
|
|
10327
10081
|
break;
|
|
10328
10082
|
case "PtgFunc":
|
|
10329
10083
|
/* [MS-XLS] 2.5.198.62 */
|
|
@@ -10357,14 +10111,14 @@ function dr(e, t, r, n, a) {
|
|
|
10357
10111
|
);
|
|
10358
10112
|
break;
|
|
10359
10113
|
case "PtgAreaN":
|
|
10360
|
-
m =
|
|
10114
|
+
m = Ei(D[1][1], r ? { s: r } : s, a), o.push(jn(m, a));
|
|
10361
10115
|
break;
|
|
10362
10116
|
case "PtgArea":
|
|
10363
|
-
m =
|
|
10117
|
+
m = Ei(D[1][1], s, a), o.push(jn(m, a));
|
|
10364
10118
|
break;
|
|
10365
10119
|
case "PtgArea3d":
|
|
10366
10120
|
u = /*::Number(*/
|
|
10367
|
-
D[1][1], m = D[1][2], p =
|
|
10121
|
+
D[1][1], m = D[1][2], p = Bi(n, u, a), o.push(p + "!" + jn(m, a));
|
|
10368
10122
|
break;
|
|
10369
10123
|
case "PtgAttrSum":
|
|
10370
10124
|
o.push("SUM(" + o.pop() + ")");
|
|
@@ -10389,7 +10143,7 @@ function dr(e, t, r, n, a) {
|
|
|
10389
10143
|
if (((n[R] || [])[0] || [])[0] == 14849 || (((n[R] || [])[0] || [])[0] == 1025 ? n[R][d] && n[R][d].itab > 0 && (M = n.SheetNames[n[R][d].itab - 1] + "!") : M = n.SheetNames[d - 1] + "!"), n[R] && n[R][d]) M += n[R][d].Name;
|
|
10390
10144
|
else if (n[0] && n[0][d]) M += n[0][d].Name;
|
|
10391
10145
|
else {
|
|
10392
|
-
var H = (
|
|
10146
|
+
var H = (po(n, R, a) || "").split(";;");
|
|
10393
10147
|
H[d - 1] ? M = H[d - 1] : M += "SH33TJSERRX";
|
|
10394
10148
|
}
|
|
10395
10149
|
o.push(M);
|
|
@@ -10957,7 +10711,7 @@ var Th = In, Mn = In, Eh = In, yh = In, Sh = {
|
|
|
10957
10711
|
753: "OPTIONS.SAVE",
|
|
10958
10712
|
755: "OPTIONS.SPELL",
|
|
10959
10713
|
808: "HIDEALL.INKANNOTS"
|
|
10960
|
-
},
|
|
10714
|
+
}, xo = {
|
|
10961
10715
|
0: "COUNT",
|
|
10962
10716
|
1: "IF",
|
|
10963
10717
|
2: "ISNA",
|
|
@@ -11692,14 +11446,14 @@ var Th = In, Mn = In, Eh = In, yh = In, Sh = {
|
|
|
11692
11446
|
65535: 0
|
|
11693
11447
|
};
|
|
11694
11448
|
function Fh(e) {
|
|
11695
|
-
var t = "of:=" + e.replace(
|
|
11449
|
+
var t = "of:=" + e.replace(Fa, "$1[.$2$3$4$5]").replace(/\]:\[/g, ":");
|
|
11696
11450
|
return t.replace(/;/g, "|").replace(/,/g, ";");
|
|
11697
11451
|
}
|
|
11698
11452
|
function Oh(e) {
|
|
11699
11453
|
return e.replace(/\./, "!");
|
|
11700
11454
|
}
|
|
11701
11455
|
var Pr = typeof Map < "u";
|
|
11702
|
-
function
|
|
11456
|
+
function ba(e, t, r) {
|
|
11703
11457
|
var n = 0, a = e.length;
|
|
11704
11458
|
if (r) {
|
|
11705
11459
|
if (Pr ? r.has(t) : Object.prototype.hasOwnProperty.call(r, t)) {
|
|
@@ -11716,7 +11470,7 @@ function Bn(e, t) {
|
|
|
11716
11470
|
var r = { min: e + 1, max: e + 1 }, n = -1;
|
|
11717
11471
|
return t.MDW && (Dt = t.MDW), t.width != null ? r.customWidth = 1 : t.wpx != null ? n = Fn(t.wpx) : t.wch != null && (n = t.wch), n > -1 ? (r.width = oa(n), r.customWidth = 1) : t.width != null && (r.width = t.width), t.hidden && (r.hidden = !0), t.level != null && (r.outlineLevel = r.level = t.level), r;
|
|
11718
11472
|
}
|
|
11719
|
-
function
|
|
11473
|
+
function vo(e, t) {
|
|
11720
11474
|
if (e) {
|
|
11721
11475
|
var r = [0.7, 0.7, 0.75, 0.75, 0.3, 0.3];
|
|
11722
11476
|
e.left == null && (e.left = r[0]), e.right == null && (e.right = r[1]), e.top == null && (e.top = r[2]), e.bottom == null && (e.bottom = r[3]), e.header == null && (e.header = r[4]), e.footer == null && (e.footer = r[5]);
|
|
@@ -11726,7 +11480,7 @@ function Wt(e, t, r) {
|
|
|
11726
11480
|
var n = r.revssf[t.z != null ? t.z : "General"], a = 60, i = e.length;
|
|
11727
11481
|
if (n == null && r.ssf) {
|
|
11728
11482
|
for (; a < 392; ++a) if (r.ssf[a] == null) {
|
|
11729
|
-
|
|
11483
|
+
hs(t.z, a), r.ssf[a] = t.z, r.revssf[t.z] = n = a;
|
|
11730
11484
|
break;
|
|
11731
11485
|
}
|
|
11732
11486
|
}
|
|
@@ -11786,10 +11540,10 @@ function Ph(e) {
|
|
|
11786
11540
|
e[r] != null && e[r] && (t[r] = "1");
|
|
11787
11541
|
}), Rh.forEach(function(r) {
|
|
11788
11542
|
e[r] != null && !e[r] && (t[r] = "0");
|
|
11789
|
-
}), e.password && (t.password =
|
|
11543
|
+
}), e.password && (t.password = eo(e.password).toString(16).toUpperCase()), ae("sheetProtection", null, t);
|
|
11790
11544
|
}
|
|
11791
11545
|
function Lh(e) {
|
|
11792
|
-
return
|
|
11546
|
+
return vo(e), ae("pageMargins", null, e);
|
|
11793
11547
|
}
|
|
11794
11548
|
function Nh(e, t) {
|
|
11795
11549
|
for (var r = ["<cols>"], n, a = 0; a != t.length; ++a)
|
|
@@ -11856,7 +11610,7 @@ function Bh(e, t, r, n) {
|
|
|
11856
11610
|
}
|
|
11857
11611
|
if (e.v.length > 32767) throw new Error("Text length must not exceed 32767 characters");
|
|
11858
11612
|
if (n && n.bookSST) {
|
|
11859
|
-
o = Ge("v", "" +
|
|
11613
|
+
o = Ge("v", "" + ba(n.Strings, e.v, n.revStrings)), l.t = "s";
|
|
11860
11614
|
break;
|
|
11861
11615
|
}
|
|
11862
11616
|
l.t = "str";
|
|
@@ -11883,7 +11637,7 @@ function Uh(e, t, r, n) {
|
|
|
11883
11637
|
m && m[u] && (h = { r: u + 1 }, x = m[u], x.hidden && (h.hidden = 1), P = -1, x.hpx ? P = On(x.hpx) : x.hpt && (P = x.hpt), P > -1 && (h.ht = P, h.customHeight = 1), x.level && (h.outlineLevel = x.level), a[a.length] = ae("row", "", h));
|
|
11884
11638
|
return a.join("");
|
|
11885
11639
|
}
|
|
11886
|
-
function
|
|
11640
|
+
function wo(e, t, r, n) {
|
|
11887
11641
|
var a = [Be, ae("worksheet", null, {
|
|
11888
11642
|
xmlns: mr[0],
|
|
11889
11643
|
"xmlns:r": He.r
|
|
@@ -11954,7 +11708,7 @@ function jh(e, t, r) {
|
|
|
11954
11708
|
var n = 192;
|
|
11955
11709
|
t && (t.above && (n &= -65), t.left && (n &= -129)), r.write_shift(1, n);
|
|
11956
11710
|
for (var a = 1; a < 3; ++a) r.write_shift(1, 0);
|
|
11957
|
-
return yn({ auto: 1 }, r), r.write_shift(-4, -1), r.write_shift(-4, -1),
|
|
11711
|
+
return yn({ auto: 1 }, r), r.write_shift(-4, -1), r.write_shift(-4, -1), Ps(e, r), r.slice(0, r.l);
|
|
11958
11712
|
}
|
|
11959
11713
|
function Kh(e) {
|
|
11960
11714
|
var t = mt(e);
|
|
@@ -12027,21 +11781,21 @@ function dd(e, t, r) {
|
|
|
12027
11781
|
return r == null && (r = G(12)), Zt(t, r), Kt(e.v, r), r;
|
|
12028
11782
|
}
|
|
12029
11783
|
function md(e) {
|
|
12030
|
-
var t = mt(e), r =
|
|
11784
|
+
var t = mt(e), r = Ls(e);
|
|
12031
11785
|
return [t, r, "n"];
|
|
12032
11786
|
}
|
|
12033
11787
|
function gd(e, t, r) {
|
|
12034
|
-
return r == null && (r = G(12)), qt(t, r),
|
|
11788
|
+
return r == null && (r = G(12)), qt(t, r), Ns(e.v, r), r;
|
|
12035
11789
|
}
|
|
12036
11790
|
function pd(e) {
|
|
12037
|
-
var t = Qt(e), r =
|
|
11791
|
+
var t = Qt(e), r = Ls(e);
|
|
12038
11792
|
return [t, r, "n"];
|
|
12039
11793
|
}
|
|
12040
11794
|
function xd(e, t, r) {
|
|
12041
|
-
return r == null && (r = G(8)), Zt(t, r),
|
|
11795
|
+
return r == null && (r = G(8)), Zt(t, r), Ns(e.v, r), r;
|
|
12042
11796
|
}
|
|
12043
11797
|
function vd(e) {
|
|
12044
|
-
var t = mt(e), r =
|
|
11798
|
+
var t = mt(e), r = Ta(e);
|
|
12045
11799
|
return [t, r, "is"];
|
|
12046
11800
|
}
|
|
12047
11801
|
function wd(e) {
|
|
@@ -12107,21 +11861,21 @@ function bd(e, t) {
|
|
|
12107
11861
|
return t == null && (t = G(4)), t.write_shift(4, e), t;
|
|
12108
11862
|
}
|
|
12109
11863
|
function Dd(e, t) {
|
|
12110
|
-
var r = e.l + t, n = er(e), a =
|
|
11864
|
+
var r = e.l + t, n = er(e), a = Ea(e), i = Qe(e), s = Qe(e), o = Qe(e);
|
|
12111
11865
|
e.l = r;
|
|
12112
11866
|
var l = { rfx: n, relId: a, loc: i, display: o };
|
|
12113
11867
|
return s && (l.Tooltip = s), l;
|
|
12114
11868
|
}
|
|
12115
11869
|
function kd(e, t) {
|
|
12116
11870
|
var r = G(50 + 4 * (e[1].Target.length + (e[1].Tooltip || "").length));
|
|
12117
|
-
pr({ s: $e(e[0]), e: $e(e[0]) }, r),
|
|
11871
|
+
pr({ s: $e(e[0]), e: $e(e[0]) }, r), ya("rId" + t, r);
|
|
12118
11872
|
var n = e[1].Target.indexOf("#"), a = n == -1 ? "" : e[1].Target.slice(n + 1);
|
|
12119
11873
|
return We(a || "", r), We(e[1].Tooltip || "", r), We("", r), r.slice(0, r.l);
|
|
12120
11874
|
}
|
|
12121
11875
|
function Rd() {
|
|
12122
11876
|
}
|
|
12123
11877
|
function Pd(e, t, r) {
|
|
12124
|
-
var n = e.l + t, a =
|
|
11878
|
+
var n = e.l + t, a = Is(e), i = e.read_shift(1), s = [a];
|
|
12125
11879
|
if (s[2] = i, r.cellFormula) {
|
|
12126
11880
|
var o = Th(e, n - e.l, r);
|
|
12127
11881
|
s[1] = o;
|
|
@@ -12147,15 +11901,15 @@ function Nd(e, t, r) {
|
|
|
12147
11901
|
var a = 0;
|
|
12148
11902
|
return t.hidden && (a |= 1), typeof n.width == "number" && (a |= 2), t.level && (a |= t.level << 8), r.write_shift(2, a), r;
|
|
12149
11903
|
}
|
|
12150
|
-
var
|
|
11904
|
+
var _o = ["left", "right", "top", "bottom", "header", "footer"];
|
|
12151
11905
|
function Id(e) {
|
|
12152
11906
|
var t = {};
|
|
12153
|
-
return
|
|
11907
|
+
return _o.forEach(function(r) {
|
|
12154
11908
|
t[r] = xr(e);
|
|
12155
11909
|
}), t;
|
|
12156
11910
|
}
|
|
12157
11911
|
function Md(e, t) {
|
|
12158
|
-
return t == null && (t = G(48)),
|
|
11912
|
+
return t == null && (t = G(48)), vo(e), _o.forEach(function(r) {
|
|
12159
11913
|
Kt(e[r], t);
|
|
12160
11914
|
}), t;
|
|
12161
11915
|
}
|
|
@@ -12173,7 +11927,7 @@ function Hd(e) {
|
|
|
12173
11927
|
return t.write_shift(4, 4), t.write_shift(4, 1), pr(e, t), t;
|
|
12174
11928
|
}
|
|
12175
11929
|
function $d(e, t) {
|
|
12176
|
-
return t == null && (t = G(66)), t.write_shift(2, e.password ?
|
|
11930
|
+
return t == null && (t = G(66)), t.write_shift(2, e.password ? eo(e.password) : 0), t.write_shift(4, 1), [
|
|
12177
11931
|
["objects", !1],
|
|
12178
11932
|
// fObjects
|
|
12179
11933
|
["scenarios", !1],
|
|
@@ -12235,7 +11989,7 @@ function zd(e, t, r, n, a, i, s) {
|
|
|
12235
11989
|
switch (l.s = Wt(a.cellXfs, t, a), t.l && i["!links"].push([Oe(l), t.l]), t.c && i["!comments"].push([Oe(l), t.c]), t.t) {
|
|
12236
11990
|
case "s":
|
|
12237
11991
|
case "str":
|
|
12238
|
-
return a.bookSST ? (o =
|
|
11992
|
+
return a.bookSST ? (o = ba(a.Strings, t.v, a.revStrings), l.t = "s", l.v = o, s ? Q(e, 18, ld(t, l)) : Q(e, 7, od(t, l))) : (l.t = "str", s ? Q(e, 17, Ed(t, l)) : Q(e, 6, _d(t, l))), !0;
|
|
12239
11993
|
case "n":
|
|
12240
11994
|
return t.v == (t.v | 0) && t.v > -1e3 && t.v < 1e3 ? s ? Q(e, 13, xd(t, l)) : Q(e, 2, gd(t, l)) : s ? Q(e, 16, dd(t, l)) : Q(e, 5, ud(t, l)), !0;
|
|
12241
11995
|
case "b":
|
|
@@ -12317,7 +12071,7 @@ function Xd(e, t, r) {
|
|
|
12317
12071
|
function Jd(e, t, r, n) {
|
|
12318
12072
|
if (t["!comments"].length > 0) {
|
|
12319
12073
|
var a = Ae(n, -1, "../drawings/vmlDrawing" + (r + 1) + ".vml", Ee.VML);
|
|
12320
|
-
Q(e, 551,
|
|
12074
|
+
Q(e, 551, ya("rId" + a)), t["!legacy"] = a;
|
|
12321
12075
|
}
|
|
12322
12076
|
}
|
|
12323
12077
|
function qd(e, t, r, n) {
|
|
@@ -12408,7 +12162,7 @@ function n1(e) {
|
|
|
12408
12162
|
return !e.Workbook || !e.Workbook.WBProps ? "false" : Lf(e.Workbook.WBProps.date1904) ? "true" : "false";
|
|
12409
12163
|
}
|
|
12410
12164
|
var a1 = /* @__PURE__ */ "][*?/\\".split("");
|
|
12411
|
-
function
|
|
12165
|
+
function To(e, t) {
|
|
12412
12166
|
if (e.length > 31)
|
|
12413
12167
|
throw new Error("Sheet names cannot exceed 31 chars");
|
|
12414
12168
|
var r = !0;
|
|
@@ -12419,7 +12173,7 @@ function _o(e, t) {
|
|
|
12419
12173
|
}
|
|
12420
12174
|
function i1(e, t, r) {
|
|
12421
12175
|
e.forEach(function(n, a) {
|
|
12422
|
-
|
|
12176
|
+
To(n);
|
|
12423
12177
|
for (var i = 0; i < a; ++i) if (n == e[i]) throw new Error("Duplicate Sheet Name: " + n);
|
|
12424
12178
|
if (r) {
|
|
12425
12179
|
var s = t && t[a] && t[a].CodeName || n;
|
|
@@ -12434,7 +12188,7 @@ function s1(e) {
|
|
|
12434
12188
|
i1(e.SheetNames, t, !!e.vbaraw);
|
|
12435
12189
|
for (var r = 0; r < e.SheetNames.length; ++r) Ch(e.Sheets[e.SheetNames[r]], e.SheetNames[r], r);
|
|
12436
12190
|
}
|
|
12437
|
-
function
|
|
12191
|
+
function Eo(e) {
|
|
12438
12192
|
var t = [Be];
|
|
12439
12193
|
t[t.length] = ae("workbook", null, {
|
|
12440
12194
|
xmlns: mr[0],
|
|
@@ -12474,7 +12228,7 @@ function o1(e, t) {
|
|
|
12474
12228
|
return r.Hidden = e.read_shift(4), r.iTabID = e.read_shift(4), r.strRelID = sa(e), r.name = Qe(e), r;
|
|
12475
12229
|
}
|
|
12476
12230
|
function f1(e, t) {
|
|
12477
|
-
return t || (t = G(127)), t.write_shift(4, e.Hidden), t.write_shift(4, e.iTabID),
|
|
12231
|
+
return t || (t = G(127)), t.write_shift(4, e.Hidden), t.write_shift(4, e.iTabID), ya(e.strRelID, t), We(e.name.slice(0, 31), t), t.length > t.l ? t.slice(0, t.l) : t;
|
|
12478
12232
|
}
|
|
12479
12233
|
function l1(e, t) {
|
|
12480
12234
|
var r = {}, n = e.read_shift(4);
|
|
@@ -12485,12 +12239,12 @@ function l1(e, t) {
|
|
|
12485
12239
|
function c1(e, t) {
|
|
12486
12240
|
t || (t = G(72));
|
|
12487
12241
|
var r = 0;
|
|
12488
|
-
return e && e.filterPrivacy && (r |= 8), t.write_shift(4, r), t.write_shift(4, 0),
|
|
12242
|
+
return e && e.filterPrivacy && (r |= 8), t.write_shift(4, r), t.write_shift(4, 0), Ps(e && e.CodeName || "ThisWorkbook", t), t.slice(0, t.l);
|
|
12489
12243
|
}
|
|
12490
12244
|
function u1(e, t, r) {
|
|
12491
12245
|
var n = e.l + t;
|
|
12492
12246
|
e.l += 4, e.l += 1;
|
|
12493
|
-
var a = e.read_shift(4), i = nl(e), s = Eh(e, 0, r), o =
|
|
12247
|
+
var a = e.read_shift(4), i = nl(e), s = Eh(e, 0, r), o = Ea(e);
|
|
12494
12248
|
e.l = n;
|
|
12495
12249
|
var l = { Name: i, Ptg: s };
|
|
12496
12250
|
return a < 268435455 && (l.Sheet = a), o && (l.Comment = o), l;
|
|
@@ -12549,22 +12303,22 @@ function p1(e, t) {
|
|
|
12549
12303
|
), r.end();
|
|
12550
12304
|
}
|
|
12551
12305
|
function x1(e, t, r) {
|
|
12552
|
-
return (t.slice(-4) === ".bin" ? p1 :
|
|
12306
|
+
return (t.slice(-4) === ".bin" ? p1 : Eo)(e);
|
|
12553
12307
|
}
|
|
12554
12308
|
function v1(e, t, r, n, a) {
|
|
12555
|
-
return (t.slice(-4) === ".bin" ? e1 :
|
|
12309
|
+
return (t.slice(-4) === ".bin" ? e1 : wo)(e, r, n, a);
|
|
12556
12310
|
}
|
|
12557
12311
|
function w1(e, t, r) {
|
|
12558
|
-
return (t.slice(-4) === ".bin" ? Mc :
|
|
12312
|
+
return (t.slice(-4) === ".bin" ? Mc : no)(e, r);
|
|
12559
12313
|
}
|
|
12560
12314
|
function _1(e, t, r) {
|
|
12561
|
-
return (t.slice(-4) === ".bin" ? cc :
|
|
12315
|
+
return (t.slice(-4) === ".bin" ? cc : Zs)(e, r);
|
|
12562
12316
|
}
|
|
12563
12317
|
function T1(e, t, r) {
|
|
12564
|
-
return (t.slice(-4) === ".bin" ? Zc :
|
|
12318
|
+
return (t.slice(-4) === ".bin" ? Zc : fo)(e);
|
|
12565
12319
|
}
|
|
12566
12320
|
function E1(e) {
|
|
12567
|
-
return (e.slice(-4) === ".bin" ? Yc :
|
|
12321
|
+
return (e.slice(-4) === ".bin" ? Yc : so)();
|
|
12568
12322
|
}
|
|
12569
12323
|
function y1(e, t) {
|
|
12570
12324
|
var r = [];
|
|
@@ -12585,14 +12339,14 @@ function A1(e, t) {
|
|
|
12585
12339
|
r.push(ae("Style", i.join(""), s));
|
|
12586
12340
|
}), ae("Styles", r.join(""));
|
|
12587
12341
|
}
|
|
12588
|
-
function
|
|
12589
|
-
return ae("NamedRange", null, { "ss:Name": e.Name, "ss:RefersTo": "=" +
|
|
12342
|
+
function yo(e) {
|
|
12343
|
+
return ae("NamedRange", null, { "ss:Name": e.Name, "ss:RefersTo": "=" + Oa(e.Ref, { r: 0, c: 0 }) });
|
|
12590
12344
|
}
|
|
12591
12345
|
function F1(e) {
|
|
12592
12346
|
if (!((e || {}).Workbook || {}).Names) return "";
|
|
12593
12347
|
for (var t = e.Workbook.Names, r = [], n = 0; n < t.length; ++n) {
|
|
12594
12348
|
var a = t[n];
|
|
12595
|
-
a.Sheet == null && (a.Name.match(/^_xlfn\./) || r.push(
|
|
12349
|
+
a.Sheet == null && (a.Name.match(/^_xlfn\./) || r.push(yo(a)));
|
|
12596
12350
|
}
|
|
12597
12351
|
return ae("Names", r.join(""));
|
|
12598
12352
|
}
|
|
@@ -12600,7 +12354,7 @@ function O1(e, t, r, n) {
|
|
|
12600
12354
|
if (!e || !((n || {}).Workbook || {}).Names) return "";
|
|
12601
12355
|
for (var a = n.Workbook.Names, i = [], s = 0; s < a.length; ++s) {
|
|
12602
12356
|
var o = a[s];
|
|
12603
|
-
o.Sheet == r && (o.Name.match(/^_xlfn\./) || i.push(
|
|
12357
|
+
o.Sheet == r && (o.Name.match(/^_xlfn\./) || i.push(yo(o)));
|
|
12604
12358
|
}
|
|
12605
12359
|
return i.join("");
|
|
12606
12360
|
}
|
|
@@ -12643,7 +12397,7 @@ function b1(e) {
|
|
|
12643
12397
|
function D1(e, t, r, n, a, i, s) {
|
|
12644
12398
|
if (!e || e.v == null && e.f == null) return "";
|
|
12645
12399
|
var o = {};
|
|
12646
|
-
if (e.f && (o["ss:Formula"] = "=" + Fe(
|
|
12400
|
+
if (e.f && (o["ss:Formula"] = "=" + Fe(Oa(e.f, s))), e.F && e.F.slice(0, t.length) == t) {
|
|
12647
12401
|
var l = $e(e.F.slice(t.length + 1));
|
|
12648
12402
|
o["ss:ArrayRange"] = "RC:R" + (l.r == s.r ? "" : "[" + (l.r - s.r) + "]") + "C" + (l.c == s.c ? "" : "[" + (l.c - s.c) + "]");
|
|
12649
12403
|
}
|
|
@@ -12678,13 +12432,13 @@ function D1(e, t, r, n, a, i, s) {
|
|
|
12678
12432
|
}
|
|
12679
12433
|
function k1(e, t) {
|
|
12680
12434
|
var r = '<Row ss:Index="' + (e + 1) + '"';
|
|
12681
|
-
return t && (t.hpt && !t.hpx && (t.hpx =
|
|
12435
|
+
return t && (t.hpt && !t.hpx && (t.hpx = ro(t.hpt)), t.hpx && (r += ' ss:AutoFitHeight="0" ss:Height="' + t.hpx + '"'), t.hidden && (r += ' ss:Hidden="1"')), r + ">";
|
|
12682
12436
|
}
|
|
12683
12437
|
function R1(e, t, r, n) {
|
|
12684
12438
|
if (!e["!ref"]) return "";
|
|
12685
12439
|
var a = De(e["!ref"]), i = e["!merges"] || [], s = 0, o = [];
|
|
12686
12440
|
e["!cols"] && e["!cols"].forEach(function(x, P) {
|
|
12687
|
-
|
|
12441
|
+
Aa(x);
|
|
12688
12442
|
var L = !!x.width, D = Bn(P, x), B = { "ss:Index": P + 1 };
|
|
12689
12443
|
L && (B["ss:Width"] = An(D.width)), x.hidden && (B["ss:Hidden"] = "1"), o.push(ae("Column", null, B));
|
|
12690
12444
|
});
|
|
@@ -12724,21 +12478,21 @@ function L1(e, t) {
|
|
|
12724
12478
|
"xmlns:html": lt.html
|
|
12725
12479
|
});
|
|
12726
12480
|
}
|
|
12727
|
-
var
|
|
12481
|
+
var Jn = {
|
|
12728
12482
|
SI: "e0859ff2f94f6810ab9108002b27b3d9",
|
|
12729
12483
|
DSI: "02d5cdd59c2e1b10939708002b2cf9ae",
|
|
12730
12484
|
UDI: "05d5cdd59c2e1b10939708002b2cf9ae"
|
|
12731
12485
|
};
|
|
12732
12486
|
function N1(e, t) {
|
|
12733
|
-
var r = [], n = [], a = [], i = 0, s, o =
|
|
12487
|
+
var r = [], n = [], a = [], i = 0, s, o = ui(Si, "n"), l = ui(Ai, "n");
|
|
12734
12488
|
if (e.Props)
|
|
12735
12489
|
for (s = Ke(e.Props), i = 0; i < s.length; ++i) (Object.prototype.hasOwnProperty.call(o, s[i]) ? r : Object.prototype.hasOwnProperty.call(l, s[i]) ? n : a).push([s[i], e.Props[s[i]]]);
|
|
12736
12490
|
if (e.Custprops)
|
|
12737
12491
|
for (s = Ke(e.Custprops), i = 0; i < s.length; ++i) Object.prototype.hasOwnProperty.call(e.Props || {}, s[i]) || (Object.prototype.hasOwnProperty.call(o, s[i]) ? r : Object.prototype.hasOwnProperty.call(l, s[i]) ? n : a).push([s[i], e.Custprops[s[i]]]);
|
|
12738
12492
|
var f = [];
|
|
12739
12493
|
for (i = 0; i < a.length; ++i)
|
|
12740
|
-
|
|
12741
|
-
n.length && Ce.utils.cfb_add(t, "/SummaryInformation",
|
|
12494
|
+
Gs.indexOf(a[i][0]) > -1 || Vs.indexOf(a[i][0]) > -1 || a[i][1] != null && f.push(a[i]);
|
|
12495
|
+
n.length && Ce.utils.cfb_add(t, "/SummaryInformation", Di(n, Jn.SI, l, Ai)), (r.length || f.length) && Ce.utils.cfb_add(t, "/DocumentSummaryInformation", Di(r, Jn.DSI, o, Si, f.length ? f : null, Jn.UDI));
|
|
12742
12496
|
}
|
|
12743
12497
|
function I1(e, t) {
|
|
12744
12498
|
var r = t || {}, n = Ce.utils.cfb_new({ root: "R" }), a = "/Workbook";
|
|
@@ -12758,7 +12512,7 @@ function I1(e, t) {
|
|
|
12758
12512
|
default:
|
|
12759
12513
|
throw new Error("invalid type " + r.bookType + " for XLS CFB");
|
|
12760
12514
|
}
|
|
12761
|
-
return Ce.utils.cfb_add(n, a,
|
|
12515
|
+
return Ce.utils.cfb_add(n, a, So(e, r)), r.biff == 8 && (e.Props || e.Custprops) && N1(e, n), r.biff == 8 && e.vbaraw && eu(n, Ce.read(e.vbaraw, { type: typeof e.vbaraw == "string" ? "binary" : "buffer" })), n;
|
|
12762
12516
|
}
|
|
12763
12517
|
var M1 = {
|
|
12764
12518
|
/*::[*/
|
|
@@ -12859,7 +12613,7 @@ var M1 = {
|
|
|
12859
12613
|
/*::[*/
|
|
12860
12614
|
19: {
|
|
12861
12615
|
/* n:"BrtSSTItem", */
|
|
12862
|
-
f:
|
|
12616
|
+
f: Ta
|
|
12863
12617
|
},
|
|
12864
12618
|
/*::[*/
|
|
12865
12619
|
20: {
|
|
@@ -16847,7 +16601,7 @@ function se(e, t, r, n) {
|
|
|
16847
16601
|
if (!isNaN(a)) {
|
|
16848
16602
|
var i = n || (r || []).length || 0, s = e.next(4);
|
|
16849
16603
|
s.write_shift(2, a), s.write_shift(2, i), /*:: len != null &&*/
|
|
16850
|
-
i > 0 &&
|
|
16604
|
+
i > 0 && va(r) && e.push(r);
|
|
16851
16605
|
}
|
|
16852
16606
|
}
|
|
16853
16607
|
function B1(e, t, r, n) {
|
|
@@ -16870,7 +16624,7 @@ function Kr(e, t, r) {
|
|
|
16870
16624
|
}
|
|
16871
16625
|
function U1(e, t, r, n) {
|
|
16872
16626
|
var a = G(9);
|
|
16873
|
-
return Kr(a, e, t),
|
|
16627
|
+
return Kr(a, e, t), Ks(r, n || "b", a), a;
|
|
16874
16628
|
}
|
|
16875
16629
|
function H1(e, t, r) {
|
|
16876
16630
|
var n = G(8 + 2 * r.length);
|
|
@@ -16913,7 +16667,7 @@ function W1(e, t, r, n) {
|
|
|
16913
16667
|
function V1(e, t) {
|
|
16914
16668
|
for (var r = t || {}, n = at(), a = 0, i = 0; i < e.SheetNames.length; ++i) e.SheetNames[i] == r.sheet && (a = i);
|
|
16915
16669
|
if (a == 0 && r.sheet && e.SheetNames[0] != r.sheet) throw new Error("Sheet not found: " + r.sheet);
|
|
16916
|
-
return se(n, r.biff == 4 ? 1033 : r.biff == 3 ? 521 : 9,
|
|
16670
|
+
return se(n, r.biff == 4 ? 1033 : r.biff == 3 ? 521 : 9, Sa(e, 16, r)), W1(n, e.Sheets[e.SheetNames[a]], a, r), se(n, 10), n.end();
|
|
16917
16671
|
}
|
|
16918
16672
|
function z1(e, t, r) {
|
|
16919
16673
|
se(e, 49, Ml({
|
|
@@ -16933,12 +16687,12 @@ function Y1(e, t, r) {
|
|
|
16933
16687
|
}
|
|
16934
16688
|
function G1(e, t) {
|
|
16935
16689
|
var r = G(19);
|
|
16936
|
-
r.write_shift(4, 2151), r.write_shift(4, 0), r.write_shift(4, 0), r.write_shift(2, 3), r.write_shift(1, 1), r.write_shift(4, 0), se(e, 2151, r), r = G(39), r.write_shift(4, 2152), r.write_shift(4, 0), r.write_shift(4, 0), r.write_shift(2, 3), r.write_shift(1, 0), r.write_shift(4, 0), r.write_shift(2, 1), r.write_shift(4, 4), r.write_shift(2, 0),
|
|
16690
|
+
r.write_shift(4, 2151), r.write_shift(4, 0), r.write_shift(4, 0), r.write_shift(2, 3), r.write_shift(1, 1), r.write_shift(4, 0), se(e, 2151, r), r = G(39), r.write_shift(4, 2152), r.write_shift(4, 0), r.write_shift(4, 0), r.write_shift(2, 3), r.write_shift(1, 0), r.write_shift(4, 0), r.write_shift(2, 1), r.write_shift(4, 4), r.write_shift(2, 0), qs(De(t["!ref"] || "A1"), r), r.write_shift(4, 4), se(e, 2152, r);
|
|
16937
16691
|
}
|
|
16938
16692
|
function j1(e, t) {
|
|
16939
|
-
for (var r = 0; r < 16; ++r) se(e, 224,
|
|
16693
|
+
for (var r = 0; r < 16; ++r) se(e, 224, Ri({ numFmtId: 0, style: !0 }, 0, t));
|
|
16940
16694
|
t.cellXfs.forEach(function(n) {
|
|
16941
|
-
se(e, 224,
|
|
16695
|
+
se(e, 224, Ri(n, 0, t));
|
|
16942
16696
|
});
|
|
16943
16697
|
}
|
|
16944
16698
|
function K1(e, t) {
|
|
@@ -16977,7 +16731,7 @@ function J1(e, t, r, n, a) {
|
|
|
16977
16731
|
case "s":
|
|
16978
16732
|
case "str":
|
|
16979
16733
|
if (a.bookSST) {
|
|
16980
|
-
var o =
|
|
16734
|
+
var o = ba(a.Strings, t.v, a.revStrings);
|
|
16981
16735
|
se(e, 253, Bl(r, n, o, i));
|
|
16982
16736
|
} else se(e, 516, Ul(r, n, (t.v || "").slice(0, 255), i, a));
|
|
16983
16737
|
break;
|
|
@@ -16991,7 +16745,7 @@ function q1(e, t, r) {
|
|
|
16991
16745
|
if (t.WTF) throw new Error("Range " + (i["!ref"] || "A1") + " exceeds format limit A1:IV16384");
|
|
16992
16746
|
m.e.c = Math.min(m.e.c, 255), m.e.r = Math.min(m.e.c, p - 1);
|
|
16993
16747
|
}
|
|
16994
|
-
se(n, 2057,
|
|
16748
|
+
se(n, 2057, Sa(r, 16, t)), se(n, 13, dt(1)), se(n, 12, dt(100)), se(n, 15, et(!0)), se(n, 17, et(!1)), se(n, 16, Kt(1e-3)), se(n, 95, et(!0)), se(n, 42, et(!1)), se(n, 43, et(!1)), se(n, 130, dt(1)), se(n, 128, Wl()), se(n, 131, et(!1)), se(n, 132, et(!1)), f && X1(n, i["!cols"]), se(n, 512, $l(m, t)), f && (i["!links"] = []);
|
|
16995
16749
|
for (var h = m.s.r; h <= m.e.r; ++h) {
|
|
16996
16750
|
u = je(h);
|
|
16997
16751
|
for (var x = m.s.c; x <= m.e.c; ++x) {
|
|
@@ -17001,7 +16755,7 @@ function q1(e, t, r) {
|
|
|
17001
16755
|
}
|
|
17002
16756
|
}
|
|
17003
16757
|
var L = o.CodeName || o.name || a;
|
|
17004
|
-
return f && se(n, 574, Il((s.Views || [])[0])), f && (i["!merges"] || []).length && se(n, 229, jl(i["!merges"])), f && K1(n, i), se(n, 442,
|
|
16758
|
+
return f && se(n, 574, Il((s.Views || [])[0])), f && (i["!merges"] || []).length && se(n, 229, jl(i["!merges"])), f && K1(n, i), se(n, 442, Js(L)), f && G1(n, i), se(
|
|
17005
16759
|
n,
|
|
17006
16760
|
10
|
|
17007
16761
|
/* EOF */
|
|
@@ -17014,7 +16768,7 @@ function Q1(e, t, r) {
|
|
|
17014
16768
|
/*::CodeName:"ThisWorkbook"*/
|
|
17015
16769
|
}
|
|
17016
16770
|
), o = r.biff == 8, l = r.biff == 5;
|
|
17017
|
-
if (se(n, 2057,
|
|
16771
|
+
if (se(n, 2057, Sa(e, 5, r)), r.bookType == "xla" && se(
|
|
17018
16772
|
n,
|
|
17019
16773
|
135
|
|
17020
16774
|
/* Addin */
|
|
@@ -17040,7 +16794,7 @@ function Q1(e, t, r) {
|
|
|
17040
16794
|
/* ObProj */
|
|
17041
16795
|
), o && e.vbaraw) {
|
|
17042
16796
|
var f = s.CodeName || "ThisWorkbook";
|
|
17043
|
-
se(n, 442,
|
|
16797
|
+
se(n, 442, Js(f));
|
|
17044
16798
|
}
|
|
17045
16799
|
se(n, 156, dt(17)), se(n, 25, et(!1)), se(n, 18, et(!1)), se(n, 19, dt(0)), o && se(n, 431, et(!1)), o && se(n, 444, dt(0)), se(n, 61, Nl()), se(n, 64, et(!1)), se(n, 141, dt(0)), se(n, 34, et(n1(e) == "true")), se(n, 14, et(!0)), o && se(n, 439, et(!1)), se(n, 218, dt(0)), z1(n, e, r), Y1(n, e.SSF, r), j1(n, r), o && se(n, 352, et(!1));
|
|
17046
16800
|
var c = n.end(), u = at();
|
|
@@ -17064,11 +16818,11 @@ function Q1(e, t, r) {
|
|
|
17064
16818
|
function Z1(e, t) {
|
|
17065
16819
|
var r = t || {}, n = [];
|
|
17066
16820
|
e && !e.SSF && (e.SSF = st(Ne)), e && e.SSF && (Pn(), Rn(e.SSF), r.revssf = Ln(e.SSF), r.revssf[e.SSF[65535]] = 0, r.ssf = e.SSF), r.Strings = /*::((*/
|
|
17067
|
-
[], r.Strings.Count = 0, r.Strings.Unique = 0,
|
|
16821
|
+
[], r.Strings.Count = 0, r.Strings.Unique = 0, Da(r), r.cellXfs = [], Wt(r.cellXfs, {}, { revssf: { General: 0 } }), e.Props || (e.Props = {});
|
|
17068
16822
|
for (var a = 0; a < e.SheetNames.length; ++a) n[n.length] = q1(a, r, e);
|
|
17069
16823
|
return n.unshift(Q1(e, n, r)), Ye(n);
|
|
17070
16824
|
}
|
|
17071
|
-
function
|
|
16825
|
+
function So(e, t) {
|
|
17072
16826
|
for (var r = 0; r <= e.SheetNames.length; ++r) {
|
|
17073
16827
|
var n = e.Sheets[e.SheetNames[r]];
|
|
17074
16828
|
if (!(!n || !n["!ref"])) {
|
|
@@ -17112,13 +16866,13 @@ function nm(e, t, r) {
|
|
|
17112
16866
|
var n = [];
|
|
17113
16867
|
return n.join("") + "<table" + (r && r.id ? ' id="' + r.id + '"' : "") + ">";
|
|
17114
16868
|
}
|
|
17115
|
-
function
|
|
16869
|
+
function Ao(e, t) {
|
|
17116
16870
|
var r = t || {}, n = r.header != null ? r.header : tm, a = r.footer != null ? r.footer : rm, i = [n], s = ut(e["!ref"]);
|
|
17117
16871
|
r.dense = Array.isArray(e), i.push(nm(e, s, r));
|
|
17118
16872
|
for (var o = s.s.r; o <= s.e.r; ++o) i.push(em(e, s, o, r));
|
|
17119
16873
|
return i.push("</table>" + a), i.join("");
|
|
17120
16874
|
}
|
|
17121
|
-
function
|
|
16875
|
+
function Fo(e, t, r) {
|
|
17122
16876
|
var n = r || {}, a = 0, i = 0;
|
|
17123
16877
|
if (n.origin != null)
|
|
17124
16878
|
if (typeof n.origin == "number") a = n.origin;
|
|
@@ -17134,14 +16888,14 @@ function Ao(e, t, r) {
|
|
|
17134
16888
|
var u = [], d = 0, m = e["!rows"] || (e["!rows"] = []), p = 0, h = 0, x = 0, P = 0, L = 0, D = 0;
|
|
17135
16889
|
for (e["!cols"] || (e["!cols"] = []); p < o.length && h < l; ++p) {
|
|
17136
16890
|
var B = o[p];
|
|
17137
|
-
if (
|
|
16891
|
+
if (Ui(B)) {
|
|
17138
16892
|
if (n.display) continue;
|
|
17139
16893
|
m[h] = { hidden: !0 };
|
|
17140
16894
|
}
|
|
17141
16895
|
var K = B.children;
|
|
17142
16896
|
for (x = P = 0; x < K.length; ++x) {
|
|
17143
16897
|
var re = K[x];
|
|
17144
|
-
if (!(n.display &&
|
|
16898
|
+
if (!(n.display && Ui(re))) {
|
|
17145
16899
|
var _ = re.hasAttribute("data-v") ? re.getAttribute("data-v") : re.hasAttribute("v") ? re.getAttribute("v") : Nf(re.innerHTML), C = re.getAttribute("data-z") || re.getAttribute("z");
|
|
17146
16900
|
for (d = 0; d < u.length; ++d) {
|
|
17147
16901
|
var R = u[d];
|
|
@@ -17159,14 +16913,14 @@ function Ao(e, t, r) {
|
|
|
17159
16913
|
}
|
|
17160
16914
|
return u.length && (e["!merges"] = (e["!merges"] || []).concat(u)), f.e.r = Math.max(f.e.r, h - 1 + a), e["!ref"] = Me(f), h >= l && (e["!fullref"] = Me((f.e.r = o.length - p + h - 1 + a, f))), e;
|
|
17161
16915
|
}
|
|
17162
|
-
function
|
|
16916
|
+
function Oo(e, t) {
|
|
17163
16917
|
var r = t || {}, n = r.dense ? [] : {};
|
|
17164
|
-
return
|
|
16918
|
+
return Fo(n, e, t);
|
|
17165
16919
|
}
|
|
17166
16920
|
function am(e, t) {
|
|
17167
|
-
return Jt(
|
|
16921
|
+
return Jt(Oo(e, t), t);
|
|
17168
16922
|
}
|
|
17169
|
-
function
|
|
16923
|
+
function Ui(e) {
|
|
17170
16924
|
var t = "", r = im(e);
|
|
17171
16925
|
return r && (t = r(e).getPropertyValue("display")), t || (t = e.style && e.style.display), t === "none";
|
|
17172
16926
|
}
|
|
@@ -17200,7 +16954,7 @@ var sm = /* @__PURE__ */ (function() {
|
|
|
17200
16954
|
return function() {
|
|
17201
16955
|
return Be + t;
|
|
17202
16956
|
};
|
|
17203
|
-
})(),
|
|
16957
|
+
})(), Hi = /* @__PURE__ */ (function() {
|
|
17204
16958
|
var e = function(i) {
|
|
17205
16959
|
return Fe(i).replace(/ +/g, function(s) {
|
|
17206
16960
|
return '<text:s text:c="' + s.length + '"/>';
|
|
@@ -17292,7 +17046,7 @@ var sm = /* @__PURE__ */ (function() {
|
|
|
17292
17046
|
for (var c = 0; c < f["!cols"].length; ++c) if (f["!cols"][c]) {
|
|
17293
17047
|
var u = f["!cols"][c];
|
|
17294
17048
|
if (u.width == null && u.wpx == null && u.wch == null) continue;
|
|
17295
|
-
|
|
17049
|
+
Aa(u), u.ods = o;
|
|
17296
17050
|
var d = f["!cols"][c].wpx + "px";
|
|
17297
17051
|
i.push(' <style:style style:name="co' + o + `" style:family="table-column">
|
|
17298
17052
|
`), i.push(' <style:table-column-properties fo:break-before="auto" style:column-width="' + d + `"/>
|
|
@@ -17366,7 +17120,7 @@ var sm = /* @__PURE__ */ (function() {
|
|
|
17366
17120
|
"office:mimetype": "application/vnd.oasis.opendocument.spreadsheet"
|
|
17367
17121
|
});
|
|
17368
17122
|
o.bookType == "fods" ? (l.push("<office:document" + f + c + `>
|
|
17369
|
-
`), l.push(
|
|
17123
|
+
`), l.push($s().replace(/office:document-meta/g, "office:meta"))) : l.push("<office:document-content" + f + `>
|
|
17370
17124
|
`), a(l, s), l.push(` <office:body>
|
|
17371
17125
|
`), l.push(` <office:spreadsheet>
|
|
17372
17126
|
`);
|
|
@@ -17376,10 +17130,10 @@ var sm = /* @__PURE__ */ (function() {
|
|
|
17376
17130
|
`), o.bookType == "fods" ? l.push("</office:document>") : l.push("</office:document-content>"), l.join("");
|
|
17377
17131
|
};
|
|
17378
17132
|
})();
|
|
17379
|
-
function
|
|
17380
|
-
if (t.bookType == "fods") return
|
|
17381
|
-
var r =
|
|
17382
|
-
return n = "mimetype", _e(r, n, "application/vnd.oasis.opendocument.spreadsheet"), n = "content.xml", _e(r, n,
|
|
17133
|
+
function Co(e, t) {
|
|
17134
|
+
if (t.bookType == "fods") return Hi(e, t);
|
|
17135
|
+
var r = ma(), n = "", a = [], i = [];
|
|
17136
|
+
return n = "mimetype", _e(r, n, "application/vnd.oasis.opendocument.spreadsheet"), n = "content.xml", _e(r, n, Hi(e, t)), a.push([n, "text/xml"]), i.push([n, "ContentFile"]), n = "styles.xml", _e(r, n, sm(e, t)), a.push([n, "text/xml"]), i.push([n, "StylesFile"]), n = "meta.xml", _e(r, n, Be + $s(
|
|
17383
17137
|
/*::wb, opts*/
|
|
17384
17138
|
)), a.push([n, "text/xml"]), i.push([n, "MetadataFile"]), n = "manifest.rdf", _e(r, n, vl(
|
|
17385
17139
|
i
|
|
@@ -17575,7 +17329,7 @@ function sr(e) {
|
|
|
17575
17329
|
}
|
|
17576
17330
|
return Ht(t);
|
|
17577
17331
|
}
|
|
17578
|
-
function
|
|
17332
|
+
function qn(e, t) {
|
|
17579
17333
|
var r = new Uint8Array(32), n = Cn(r), a = 12, i = 0;
|
|
17580
17334
|
switch (r[0] = 5, e.t) {
|
|
17581
17335
|
case "n":
|
|
@@ -17594,7 +17348,7 @@ function Qn(e, t) {
|
|
|
17594
17348
|
}
|
|
17595
17349
|
return n.setUint32(8, i, !0), r.slice(0, a);
|
|
17596
17350
|
}
|
|
17597
|
-
function
|
|
17351
|
+
function Qn(e, t) {
|
|
17598
17352
|
var r = new Uint8Array(32), n = Cn(r), a = 12, i = 0;
|
|
17599
17353
|
switch (r[0] = 3, e.t) {
|
|
17600
17354
|
case "n":
|
|
@@ -17633,13 +17387,13 @@ function um(e, t, r) {
|
|
|
17633
17387
|
var x, P;
|
|
17634
17388
|
switch (typeof t[h]) {
|
|
17635
17389
|
case "string":
|
|
17636
|
-
x =
|
|
17390
|
+
x = qn({ t: "s", v: t[h] }, r), P = Qn({ t: "s", v: t[h] }, r);
|
|
17637
17391
|
break;
|
|
17638
17392
|
case "number":
|
|
17639
|
-
x =
|
|
17393
|
+
x = qn({ t: "n", v: t[h] }, r), P = Qn({ t: "n", v: t[h] }, r);
|
|
17640
17394
|
break;
|
|
17641
17395
|
case "boolean":
|
|
17642
|
-
x =
|
|
17396
|
+
x = qn({ t: "b", v: t[h] }, r), P = Qn({ t: "b", v: t[h] }, r);
|
|
17643
17397
|
break;
|
|
17644
17398
|
default:
|
|
17645
17399
|
throw new Error("Unsupported value " + t[h]);
|
|
@@ -17823,7 +17577,7 @@ function dm(e) {
|
|
|
17823
17577
|
}
|
|
17824
17578
|
};
|
|
17825
17579
|
}
|
|
17826
|
-
function
|
|
17580
|
+
function Da(e) {
|
|
17827
17581
|
dm([
|
|
17828
17582
|
["cellDates", !1],
|
|
17829
17583
|
/* write date cells with type `d` */
|
|
@@ -17838,21 +17592,21 @@ function ba(e) {
|
|
|
17838
17592
|
])(e);
|
|
17839
17593
|
}
|
|
17840
17594
|
function mm(e, t) {
|
|
17841
|
-
return t.bookType == "ods" ?
|
|
17595
|
+
return t.bookType == "ods" ? Co(e, t) : t.bookType == "numbers" ? hm(e, t) : t.bookType == "xlsb" ? gm(e, t) : pm(e, t);
|
|
17842
17596
|
}
|
|
17843
17597
|
function gm(e, t) {
|
|
17844
17598
|
fr = 1024, e && !e.SSF && (e.SSF = st(Ne)), e && e.SSF && (Pn(), Rn(e.SSF), t.revssf = Ln(e.SSF), t.revssf[e.SSF[65535]] = 0, t.ssf = e.SSF), t.rels = {}, t.wbrels = {}, t.Strings = /*::((*/
|
|
17845
17599
|
[], t.Strings.Count = 0, t.Strings.Unique = 0, Pr ? t.revStrings = /* @__PURE__ */ new Map() : (t.revStrings = {}, t.revStrings.foo = [], delete t.revStrings.foo);
|
|
17846
|
-
var r = t.bookType == "xlsb" ? "bin" : "xml", n =
|
|
17847
|
-
|
|
17848
|
-
var i =
|
|
17849
|
-
if (t.cellXfs = [], Wt(t.cellXfs, {}, { revssf: { General: 0 } }), e.Props || (e.Props = {}), s = "docProps/core.xml", _e(i, s,
|
|
17600
|
+
var r = t.bookType == "xlsb" ? "bin" : "xml", n = lo.indexOf(t.bookType) > -1, a = Bs();
|
|
17601
|
+
Da(t = t || {});
|
|
17602
|
+
var i = ma(), s = "", o = 0;
|
|
17603
|
+
if (t.cellXfs = [], Wt(t.cellXfs, {}, { revssf: { General: 0 } }), e.Props || (e.Props = {}), s = "docProps/core.xml", _e(i, s, Ws(e.Props, t)), a.coreprops.push(s), Ae(t.rels, 2, s, Ee.CORE_PROPS), s = "docProps/app.xml", !(e.Props && e.Props.SheetNames)) if (!e.Workbook || !e.Workbook.Sheets) e.Props.SheetNames = e.SheetNames;
|
|
17850
17604
|
else {
|
|
17851
17605
|
for (var l = [], f = 0; f < e.SheetNames.length; ++f)
|
|
17852
17606
|
(e.Workbook.Sheets[f] || {}).Hidden != 2 && l.push(e.SheetNames[f]);
|
|
17853
17607
|
e.Props.SheetNames = l;
|
|
17854
17608
|
}
|
|
17855
|
-
for (e.Props.Worksheets = e.Props.SheetNames.length, _e(i, s,
|
|
17609
|
+
for (e.Props.Worksheets = e.Props.SheetNames.length, _e(i, s, zs(e.Props)), a.extprops.push(s), Ae(t.rels, 3, s, Ee.EXT_PROPS), e.Custprops !== e.Props && Ke(e.Custprops || {}).length > 0 && (s = "docProps/custom.xml", _e(i, s, Ys(e.Custprops)), a.custprops.push(s), Ae(t.rels, 4, s, Ee.CUST_PROPS)), o = 1; o <= e.SheetNames.length; ++o) {
|
|
17856
17610
|
var c = { "!id": {} }, u = e.Sheets[e.SheetNames[o - 1]], d = (u || {})["!type"] || "sheet";
|
|
17857
17611
|
switch (d) {
|
|
17858
17612
|
case "chart":
|
|
@@ -17862,25 +17616,25 @@ function gm(e, t) {
|
|
|
17862
17616
|
}
|
|
17863
17617
|
if (u) {
|
|
17864
17618
|
var m = u["!comments"], p = !1, h = "";
|
|
17865
|
-
m && m.length > 0 && (h = "xl/comments" + o + "." + r, _e(i, h, T1(m, h)), a.comments.push(h), Ae(c, -1, "../comments" + o + "." + r, Ee.CMNT), p = !0), u["!legacy"] && p && _e(i, "xl/drawings/vmlDrawing" + o + ".vml",
|
|
17619
|
+
m && m.length > 0 && (h = "xl/comments" + o + "." + r, _e(i, h, T1(m, h)), a.comments.push(h), Ae(c, -1, "../comments" + o + "." + r, Ee.CMNT), p = !0), u["!legacy"] && p && _e(i, "xl/drawings/vmlDrawing" + o + ".vml", oo(o, u["!comments"])), delete u["!comments"], delete u["!legacy"];
|
|
17866
17620
|
}
|
|
17867
|
-
c["!id"].rId1 && _e(i,
|
|
17621
|
+
c["!id"].rId1 && _e(i, Hs(s), cr(c));
|
|
17868
17622
|
}
|
|
17869
|
-
return t.Strings != null && t.Strings.length > 0 && (s = "xl/sharedStrings." + r, _e(i, s, _1(t.Strings, s, t)), a.strs.push(s), Ae(t.wbrels, -1, "sharedStrings." + r, Ee.SST)), s = "xl/workbook." + r, _e(i, s, x1(e, s)), a.workbooks.push(s), Ae(t.rels, 1, s, Ee.WB), s = "xl/theme/theme1.xml", _e(i, s,
|
|
17623
|
+
return t.Strings != null && t.Strings.length > 0 && (s = "xl/sharedStrings." + r, _e(i, s, _1(t.Strings, s, t)), a.strs.push(s), Ae(t.wbrels, -1, "sharedStrings." + r, Ee.SST)), s = "xl/workbook." + r, _e(i, s, x1(e, s)), a.workbooks.push(s), Ae(t.rels, 1, s, Ee.WB), s = "xl/theme/theme1.xml", _e(i, s, io(e.Themes, t)), a.themes.push(s), Ae(t.wbrels, -1, "theme/theme1.xml", Ee.THEME), s = "xl/styles." + r, _e(i, s, w1(e, s, t)), a.styles.push(s), Ae(t.wbrels, -1, "styles." + r, Ee.STY), e.vbaraw && n && (s = "xl/vbaProject.bin", _e(i, s, e.vbaraw), a.vba.push(s), Ae(t.wbrels, -1, "vbaProject.bin", Ee.VBA)), s = "xl/metadata." + r, _e(i, s, E1(s)), a.metadata.push(s), Ae(t.wbrels, -1, "metadata." + r, Ee.XLMETA), _e(i, "[Content_Types].xml", Us(a, t)), _e(i, "_rels/.rels", cr(t.rels)), _e(i, "xl/_rels/workbook." + r + ".rels", cr(t.wbrels)), delete t.revssf, delete t.ssf, i;
|
|
17870
17624
|
}
|
|
17871
17625
|
function pm(e, t) {
|
|
17872
17626
|
fr = 1024, e && !e.SSF && (e.SSF = st(Ne)), e && e.SSF && (Pn(), Rn(e.SSF), t.revssf = Ln(e.SSF), t.revssf[e.SSF[65535]] = 0, t.ssf = e.SSF), t.rels = {}, t.wbrels = {}, t.Strings = /*::((*/
|
|
17873
17627
|
[], t.Strings.Count = 0, t.Strings.Unique = 0, Pr ? t.revStrings = /* @__PURE__ */ new Map() : (t.revStrings = {}, t.revStrings.foo = [], delete t.revStrings.foo);
|
|
17874
|
-
var r = "xml", n =
|
|
17875
|
-
|
|
17876
|
-
var i =
|
|
17877
|
-
if (t.cellXfs = [], Wt(t.cellXfs, {}, { revssf: { General: 0 } }), e.Props || (e.Props = {}), s = "docProps/core.xml", _e(i, s,
|
|
17628
|
+
var r = "xml", n = lo.indexOf(t.bookType) > -1, a = Bs();
|
|
17629
|
+
Da(t = t || {});
|
|
17630
|
+
var i = ma(), s = "", o = 0;
|
|
17631
|
+
if (t.cellXfs = [], Wt(t.cellXfs, {}, { revssf: { General: 0 } }), e.Props || (e.Props = {}), s = "docProps/core.xml", _e(i, s, Ws(e.Props, t)), a.coreprops.push(s), Ae(t.rels, 2, s, Ee.CORE_PROPS), s = "docProps/app.xml", !(e.Props && e.Props.SheetNames)) if (!e.Workbook || !e.Workbook.Sheets) e.Props.SheetNames = e.SheetNames;
|
|
17878
17632
|
else {
|
|
17879
17633
|
for (var l = [], f = 0; f < e.SheetNames.length; ++f)
|
|
17880
17634
|
(e.Workbook.Sheets[f] || {}).Hidden != 2 && l.push(e.SheetNames[f]);
|
|
17881
17635
|
e.Props.SheetNames = l;
|
|
17882
17636
|
}
|
|
17883
|
-
e.Props.Worksheets = e.Props.SheetNames.length, _e(i, s,
|
|
17637
|
+
e.Props.Worksheets = e.Props.SheetNames.length, _e(i, s, zs(e.Props)), a.extprops.push(s), Ae(t.rels, 3, s, Ee.EXT_PROPS), e.Custprops !== e.Props && Ke(e.Custprops || {}).length > 0 && (s = "docProps/custom.xml", _e(i, s, Ys(e.Custprops)), a.custprops.push(s), Ae(t.rels, 4, s, Ee.CUST_PROPS));
|
|
17884
17638
|
var c = ["SheetJ5"];
|
|
17885
17639
|
for (t.tcid = 0, o = 1; o <= e.SheetNames.length; ++o) {
|
|
17886
17640
|
var u = { "!id": {} }, d = e.Sheets[e.SheetNames[o - 1]], m = (d || {})["!type"] || "sheet";
|
|
@@ -17888,7 +17642,7 @@ function pm(e, t) {
|
|
|
17888
17642
|
case "chart":
|
|
17889
17643
|
/* falls through */
|
|
17890
17644
|
default:
|
|
17891
|
-
s = "xl/worksheets/sheet" + o + "." + r, _e(i, s,
|
|
17645
|
+
s = "xl/worksheets/sheet" + o + "." + r, _e(i, s, wo(o - 1, t, e, u)), a.sheets.push(s), Ae(t.wbrels, -1, "worksheets/sheet" + o + "." + r, Ee.WS[0]);
|
|
17892
17646
|
}
|
|
17893
17647
|
if (d) {
|
|
17894
17648
|
var p = d["!comments"], h = !1, x = "";
|
|
@@ -17898,13 +17652,13 @@ function pm(e, t) {
|
|
|
17898
17652
|
L[1].forEach(function(D) {
|
|
17899
17653
|
D.T == !0 && (P = !0);
|
|
17900
17654
|
});
|
|
17901
|
-
}), P && (x = "xl/threadedComments/threadedComment" + o + "." + r, _e(i, x, jc(p, c, t)), a.threadedcomments.push(x), Ae(u, -1, "../threadedComments/threadedComment" + o + "." + r, Ee.TCMNT)), x = "xl/comments" + o + "." + r, _e(i, x,
|
|
17655
|
+
}), P && (x = "xl/threadedComments/threadedComment" + o + "." + r, _e(i, x, jc(p, c, t)), a.threadedcomments.push(x), Ae(u, -1, "../threadedComments/threadedComment" + o + "." + r, Ee.TCMNT)), x = "xl/comments" + o + "." + r, _e(i, x, fo(p)), a.comments.push(x), Ae(u, -1, "../comments" + o + "." + r, Ee.CMNT), h = !0;
|
|
17902
17656
|
}
|
|
17903
|
-
d["!legacy"] && h && _e(i, "xl/drawings/vmlDrawing" + o + ".vml",
|
|
17657
|
+
d["!legacy"] && h && _e(i, "xl/drawings/vmlDrawing" + o + ".vml", oo(o, d["!comments"])), delete d["!comments"], delete d["!legacy"];
|
|
17904
17658
|
}
|
|
17905
|
-
u["!id"].rId1 && _e(i,
|
|
17659
|
+
u["!id"].rId1 && _e(i, Hs(s), cr(u));
|
|
17906
17660
|
}
|
|
17907
|
-
return t.Strings != null && t.Strings.length > 0 && (s = "xl/sharedStrings." + r, _e(i, s,
|
|
17661
|
+
return t.Strings != null && t.Strings.length > 0 && (s = "xl/sharedStrings." + r, _e(i, s, Zs(t.Strings, t)), a.strs.push(s), Ae(t.wbrels, -1, "sharedStrings." + r, Ee.SST)), s = "xl/workbook." + r, _e(i, s, Eo(e)), a.workbooks.push(s), Ae(t.rels, 1, s, Ee.WB), s = "xl/theme/theme1.xml", _e(i, s, io(e.Themes, t)), a.themes.push(s), Ae(t.wbrels, -1, "theme/theme1.xml", Ee.THEME), s = "xl/styles." + r, _e(i, s, no(e, t)), a.styles.push(s), Ae(t.wbrels, -1, "styles." + r, Ee.STY), e.vbaraw && n && (s = "xl/vbaProject.bin", _e(i, s, e.vbaraw), a.vba.push(s), Ae(t.wbrels, -1, "vbaProject.bin", Ee.VBA)), s = "xl/metadata." + r, _e(i, s, so()), a.metadata.push(s), Ae(t.wbrels, -1, "metadata." + r, Ee.XLMETA), c.length > 1 && (s = "xl/persons/person.xml", _e(i, s, Kc(c)), a.people.push(s), Ae(t.wbrels, -1, "persons/person.xml", Ee.PEOPLE)), _e(i, "[Content_Types].xml", Us(a, t)), _e(i, "_rels/.rels", cr(t.rels)), _e(i, "xl/_rels/workbook." + r + ".rels", cr(t.wbrels)), delete t.revssf, delete t.ssf, i;
|
|
17908
17662
|
}
|
|
17909
17663
|
function xm(e, t) {
|
|
17910
17664
|
var r = "";
|
|
@@ -17924,7 +17678,7 @@ function xm(e, t) {
|
|
|
17924
17678
|
}
|
|
17925
17679
|
return [r.charCodeAt(0), r.charCodeAt(1), r.charCodeAt(2), r.charCodeAt(3), r.charCodeAt(4), r.charCodeAt(5), r.charCodeAt(6), r.charCodeAt(7)];
|
|
17926
17680
|
}
|
|
17927
|
-
function
|
|
17681
|
+
function bo(e, t) {
|
|
17928
17682
|
switch (t.type) {
|
|
17929
17683
|
case "base64":
|
|
17930
17684
|
case "binary":
|
|
@@ -17973,7 +17727,7 @@ function wm(e, t) {
|
|
|
17973
17727
|
if (t.type == "binary" || t.type == "base64") return a;
|
|
17974
17728
|
a = new Uint8Array(kn(a));
|
|
17975
17729
|
}
|
|
17976
|
-
return t.password && typeof encrypt_agile < "u" ?
|
|
17730
|
+
return t.password && typeof encrypt_agile < "u" ? bo(encrypt_agile(a, t.password), t) : t.type === "file" ? zr(t.file, a) : t.type == "string" ? br(
|
|
17977
17731
|
/*::(*/
|
|
17978
17732
|
a
|
|
17979
17733
|
/*:: :any)*/
|
|
@@ -17981,7 +17735,7 @@ function wm(e, t) {
|
|
|
17981
17735
|
}
|
|
17982
17736
|
function _m(e, t) {
|
|
17983
17737
|
var r = t || {}, n = I1(e, r);
|
|
17984
|
-
return
|
|
17738
|
+
return bo(n, r);
|
|
17985
17739
|
}
|
|
17986
17740
|
function Et(e, t, r) {
|
|
17987
17741
|
r || (r = "");
|
|
@@ -18020,7 +17774,7 @@ function Tm(e, t) {
|
|
|
18020
17774
|
}
|
|
18021
17775
|
throw new Error("Unrecognized type " + t.type);
|
|
18022
17776
|
}
|
|
18023
|
-
function
|
|
17777
|
+
function an(e, t) {
|
|
18024
17778
|
switch (t.type) {
|
|
18025
17779
|
case "string":
|
|
18026
17780
|
case "base64":
|
|
@@ -18035,12 +17789,12 @@ function sn(e, t) {
|
|
|
18035
17789
|
throw new Error("Unrecognized type " + t.type);
|
|
18036
17790
|
}
|
|
18037
17791
|
}
|
|
18038
|
-
function
|
|
17792
|
+
function Do(e, t) {
|
|
18039
17793
|
K0(), s1(e);
|
|
18040
17794
|
var r = st(t || {});
|
|
18041
17795
|
if (r.cellStyles && (r.cellNF = !0, r.sheetStubs = !0), r.type == "array") {
|
|
18042
17796
|
r.type = "binary";
|
|
18043
|
-
var n =
|
|
17797
|
+
var n = Do(e, r);
|
|
18044
17798
|
return r.type = "array", kn(n);
|
|
18045
17799
|
}
|
|
18046
17800
|
var a = 0;
|
|
@@ -18055,27 +17809,27 @@ function bo(e, t) {
|
|
|
18055
17809
|
return Et(nc.from_sheet(e.Sheets[e.SheetNames[a]], r), r);
|
|
18056
17810
|
case "htm":
|
|
18057
17811
|
case "html":
|
|
18058
|
-
return Et(
|
|
17812
|
+
return Et(Ao(e.Sheets[e.SheetNames[a]], r), r);
|
|
18059
17813
|
case "txt":
|
|
18060
|
-
return Tm(
|
|
17814
|
+
return Tm(ko(e.Sheets[e.SheetNames[a]], r), r);
|
|
18061
17815
|
case "csv":
|
|
18062
|
-
return Et(
|
|
17816
|
+
return Et(ka(e.Sheets[e.SheetNames[a]], r), r, "\uFEFF");
|
|
18063
17817
|
case "dif":
|
|
18064
17818
|
return Et(ac.from_sheet(e.Sheets[e.SheetNames[a]], r), r);
|
|
18065
17819
|
case "dbf":
|
|
18066
|
-
return
|
|
17820
|
+
return an(rc.from_sheet(e.Sheets[e.SheetNames[a]], r), r);
|
|
18067
17821
|
case "prn":
|
|
18068
17822
|
return Et(ic.from_sheet(e.Sheets[e.SheetNames[a]], r), r);
|
|
18069
17823
|
case "rtf":
|
|
18070
17824
|
return Et(hc.from_sheet(e.Sheets[e.SheetNames[a]], r), r);
|
|
18071
17825
|
case "eth":
|
|
18072
|
-
return Et(
|
|
17826
|
+
return Et(Qs.from_sheet(e.Sheets[e.SheetNames[a]], r), r);
|
|
18073
17827
|
case "fods":
|
|
18074
|
-
return Et(
|
|
17828
|
+
return Et(Co(e, r), r);
|
|
18075
17829
|
case "wk1":
|
|
18076
|
-
return
|
|
17830
|
+
return an(Pi.sheet_to_wk1(e.Sheets[e.SheetNames[a]], r), r);
|
|
18077
17831
|
case "wk3":
|
|
18078
|
-
return
|
|
17832
|
+
return an(Pi.book_to_wk3(e, r), r);
|
|
18079
17833
|
case "biff2":
|
|
18080
17834
|
r.biff || (r.biff = 2);
|
|
18081
17835
|
/* falls through */
|
|
@@ -18083,7 +17837,7 @@ function bo(e, t) {
|
|
|
18083
17837
|
r.biff || (r.biff = 3);
|
|
18084
17838
|
/* falls through */
|
|
18085
17839
|
case "biff4":
|
|
18086
|
-
return r.biff || (r.biff = 4),
|
|
17840
|
+
return r.biff || (r.biff = 4), an(So(e, r), r);
|
|
18087
17841
|
case "biff5":
|
|
18088
17842
|
r.biff || (r.biff = 5);
|
|
18089
17843
|
/* falls through */
|
|
@@ -18116,7 +17870,7 @@ function Em(e) {
|
|
|
18116
17870
|
}
|
|
18117
17871
|
function ym(e, t, r) {
|
|
18118
17872
|
var n = {};
|
|
18119
|
-
return n.type = "file", n.file = t, Em(n),
|
|
17873
|
+
return n.type = "file", n.file = t, Em(n), Do(e, n);
|
|
18120
17874
|
}
|
|
18121
17875
|
function Sm(e, t, r, n, a, i, s, o) {
|
|
18122
17876
|
var l = je(r), f = o.defval, c = o.raw || !Object.prototype.hasOwnProperty.call(o, "raw"), u = !0, d = a === 1 ? [] : {};
|
|
@@ -18209,7 +17963,7 @@ function bn(e, t) {
|
|
|
18209
17963
|
}
|
|
18210
17964
|
return m.length = p, m;
|
|
18211
17965
|
}
|
|
18212
|
-
var
|
|
17966
|
+
var $i = /"/g;
|
|
18213
17967
|
function Am(e, t, r, n, a, i, s, o) {
|
|
18214
17968
|
for (var l = !0, f = [], c = "", u = je(r), d = t.s.c; d <= t.e.c; ++d)
|
|
18215
17969
|
if (n[d]) {
|
|
@@ -18218,16 +17972,16 @@ function Am(e, t, r, n, a, i, s, o) {
|
|
|
18218
17972
|
else if (m.v != null) {
|
|
18219
17973
|
l = !1, c = "" + (o.rawNumbers && m.t == "n" ? m.v : Rt(m, null, o));
|
|
18220
17974
|
for (var p = 0, h = 0; p !== c.length; ++p) if ((h = c.charCodeAt(p)) === a || h === i || h === 34 || o.forceQuotes) {
|
|
18221
|
-
c = '"' + c.replace(
|
|
17975
|
+
c = '"' + c.replace($i, '""') + '"';
|
|
18222
17976
|
break;
|
|
18223
17977
|
}
|
|
18224
17978
|
c == "ID" && (c = '"ID"');
|
|
18225
|
-
} else m.f != null && !m.F ? (l = !1, c = "=" + m.f, c.indexOf(",") >= 0 && (c = '"' + c.replace(
|
|
17979
|
+
} else m.f != null && !m.F ? (l = !1, c = "=" + m.f, c.indexOf(",") >= 0 && (c = '"' + c.replace($i, '""') + '"')) : c = "";
|
|
18226
17980
|
f.push(c);
|
|
18227
17981
|
}
|
|
18228
17982
|
return o.blankrows === !1 && l ? null : f.join(s);
|
|
18229
17983
|
}
|
|
18230
|
-
function
|
|
17984
|
+
function ka(e, t) {
|
|
18231
17985
|
var r = [], n = t ?? {};
|
|
18232
17986
|
if (e == null || e["!ref"] == null) return "";
|
|
18233
17987
|
var a = De(e["!ref"]), i = n.FS !== void 0 ? n.FS : ",", s = i.charCodeAt(0), o = n.RS !== void 0 ? n.RS : `
|
|
@@ -18238,10 +17992,10 @@ function Da(e, t) {
|
|
|
18238
17992
|
(m[x] || {}).hidden || (c = Am(e, a, x, u, s, l, i, n), c != null && (n.strip && (c = c.replace(f, "")), (c || n.blankrows !== !1) && r.push((h++ ? o : "") + c)));
|
|
18239
17993
|
return delete n.dense, r.join("");
|
|
18240
17994
|
}
|
|
18241
|
-
function
|
|
17995
|
+
function ko(e, t) {
|
|
18242
17996
|
t || (t = {}), t.FS = " ", t.RS = `
|
|
18243
17997
|
`;
|
|
18244
|
-
var r =
|
|
17998
|
+
var r = ka(e, t);
|
|
18245
17999
|
return r;
|
|
18246
18000
|
}
|
|
18247
18001
|
function Fm(e) {
|
|
@@ -18271,7 +18025,7 @@ function Fm(e) {
|
|
|
18271
18025
|
}
|
|
18272
18026
|
return l;
|
|
18273
18027
|
}
|
|
18274
|
-
function
|
|
18028
|
+
function Ro(e, t, r) {
|
|
18275
18029
|
var n = r || {}, a = +!n.skipHeader, i = e || {}, s = 0, o = 0;
|
|
18276
18030
|
if (i && n.origin != null)
|
|
18277
18031
|
if (typeof n.origin == "number") s = n.origin;
|
|
@@ -18298,7 +18052,7 @@ function ko(e, t, r) {
|
|
|
18298
18052
|
return i["!ref"] = Me(c), i;
|
|
18299
18053
|
}
|
|
18300
18054
|
function Om(e, t) {
|
|
18301
|
-
return
|
|
18055
|
+
return Ro(null, e, t);
|
|
18302
18056
|
}
|
|
18303
18057
|
function Wr(e, t, r) {
|
|
18304
18058
|
if (typeof t == "string") {
|
|
@@ -18333,7 +18087,7 @@ function Dm(e, t, r, n) {
|
|
|
18333
18087
|
var s = i && i[1] || r;
|
|
18334
18088
|
for (++a; a <= 65535 && e.SheetNames.indexOf(r = s + a) != -1; ++a) ;
|
|
18335
18089
|
}
|
|
18336
|
-
if (
|
|
18090
|
+
if (To(r), e.SheetNames.indexOf(r) >= 0) throw new Error("Worksheet with name |" + r + "| already exists!");
|
|
18337
18091
|
return e.SheetNames.push(r), e.Sheets[r] = t, r;
|
|
18338
18092
|
}
|
|
18339
18093
|
function km(e, t, r) {
|
|
@@ -18352,11 +18106,11 @@ function km(e, t, r) {
|
|
|
18352
18106
|
function Rm(e, t) {
|
|
18353
18107
|
return e.z = t, e;
|
|
18354
18108
|
}
|
|
18355
|
-
function
|
|
18109
|
+
function Po(e, t, r) {
|
|
18356
18110
|
return t ? (e.l = { Target: t }, r && (e.l.Tooltip = r)) : delete e.l, e;
|
|
18357
18111
|
}
|
|
18358
18112
|
function Pm(e, t, r) {
|
|
18359
|
-
return
|
|
18113
|
+
return Po(e, "#" + t, r);
|
|
18360
18114
|
}
|
|
18361
18115
|
function Lm(e, t, r) {
|
|
18362
18116
|
e.c || (e.c = []), e.c.push({ t, a: r || "SheetJS" });
|
|
@@ -18368,28 +18122,28 @@ function Nm(e, t, r, n) {
|
|
|
18368
18122
|
}
|
|
18369
18123
|
return e;
|
|
18370
18124
|
}
|
|
18371
|
-
var
|
|
18125
|
+
var Zn = {
|
|
18372
18126
|
encode_col: qe,
|
|
18373
18127
|
encode_row: je,
|
|
18374
18128
|
encode_cell: Oe,
|
|
18375
18129
|
encode_range: Me,
|
|
18376
|
-
decode_col:
|
|
18377
|
-
decode_row:
|
|
18130
|
+
decode_col: _a,
|
|
18131
|
+
decode_row: wa,
|
|
18378
18132
|
split_cell: Xf,
|
|
18379
18133
|
decode_cell: $e,
|
|
18380
18134
|
decode_range: ut,
|
|
18381
18135
|
format_cell: Rt,
|
|
18382
|
-
sheet_add_aoa:
|
|
18383
|
-
sheet_add_json:
|
|
18384
|
-
sheet_add_dom:
|
|
18136
|
+
sheet_add_aoa: Rs,
|
|
18137
|
+
sheet_add_json: Ro,
|
|
18138
|
+
sheet_add_dom: Fo,
|
|
18385
18139
|
aoa_to_sheet: gr,
|
|
18386
18140
|
json_to_sheet: Om,
|
|
18387
|
-
table_to_sheet:
|
|
18141
|
+
table_to_sheet: Oo,
|
|
18388
18142
|
table_to_book: am,
|
|
18389
|
-
sheet_to_csv:
|
|
18390
|
-
sheet_to_txt:
|
|
18143
|
+
sheet_to_csv: ka,
|
|
18144
|
+
sheet_to_txt: ko,
|
|
18391
18145
|
sheet_to_json: bn,
|
|
18392
|
-
sheet_to_html:
|
|
18146
|
+
sheet_to_html: Ao,
|
|
18393
18147
|
sheet_to_formulae: Fm,
|
|
18394
18148
|
sheet_to_row_object_array: bn,
|
|
18395
18149
|
sheet_get_cell: Wr,
|
|
@@ -18397,7 +18151,7 @@ var ea = {
|
|
|
18397
18151
|
book_append_sheet: Dm,
|
|
18398
18152
|
book_set_sheet_visibility: km,
|
|
18399
18153
|
cell_set_number_format: Rm,
|
|
18400
|
-
cell_set_hyperlink:
|
|
18154
|
+
cell_set_hyperlink: Po,
|
|
18401
18155
|
cell_set_internal_link: Pm,
|
|
18402
18156
|
cell_add_comment: Lm,
|
|
18403
18157
|
sheet_set_array_formula: Nm,
|
|
@@ -18412,9 +18166,9 @@ function Un(e) {
|
|
|
18412
18166
|
}
|
|
18413
18167
|
var on = { exports: {} };
|
|
18414
18168
|
/*! dom-to-image-more 20-08-2025 */
|
|
18415
|
-
var Im = on.exports,
|
|
18169
|
+
var Im = on.exports, Wi;
|
|
18416
18170
|
function Mm() {
|
|
18417
|
-
return
|
|
18171
|
+
return Wi || (Wi = 1, (function(e, t) {
|
|
18418
18172
|
((r) => {
|
|
18419
18173
|
let n = /* @__PURE__ */ (() => {
|
|
18420
18174
|
let _ = 0;
|
|
@@ -18941,10 +18695,10 @@ const Um = /* @__PURE__ */ Un(Bm), Ar = (e) => {
|
|
|
18941
18695
|
return (d = s.inputs) != null && d.maxCharacters ? f.length <= s.inputs.maxCharacters ? f : f.substring(0, s.inputs.maxCharacters) + "..." : f;
|
|
18942
18696
|
}
|
|
18943
18697
|
};
|
|
18944
|
-
}, zm = (e) => `"${(e == null ? "" : String(e)).replace(/"/g, '""')}"`,
|
|
18698
|
+
}, zm = (e) => `"${(e == null ? "" : String(e)).replace(/"/g, '""')}"`, Lo = (e, t) => {
|
|
18945
18699
|
const r = document.createElement("a");
|
|
18946
18700
|
r.href = e, r.download = t, document.body.appendChild(r), r.click(), document.body.removeChild(r);
|
|
18947
|
-
},
|
|
18701
|
+
}, No = (e, t, r) => {
|
|
18948
18702
|
const n = Vm(r), a = t.map((s) => n.dimensionOrMeasureTitle(s)), i = e.map((s) => {
|
|
18949
18703
|
const o = [];
|
|
18950
18704
|
return t.forEach((l) => {
|
|
@@ -18960,9 +18714,9 @@ function Ym({
|
|
|
18960
18714
|
title: r,
|
|
18961
18715
|
theme: n
|
|
18962
18716
|
}) {
|
|
18963
|
-
const a =
|
|
18717
|
+
const a = No(e, t, n).map((o) => o.map(zm).join(",")).join(`\r
|
|
18964
18718
|
`), i = new Blob([a], { type: "text/csv;charset=utf-8;" }), s = URL.createObjectURL(i);
|
|
18965
|
-
|
|
18719
|
+
Lo(s, `${r ?? "untitled"}.csv`);
|
|
18966
18720
|
}
|
|
18967
18721
|
function Gm({
|
|
18968
18722
|
data: e = [],
|
|
@@ -18970,8 +18724,8 @@ function Gm({
|
|
|
18970
18724
|
title: r,
|
|
18971
18725
|
theme: n
|
|
18972
18726
|
}) {
|
|
18973
|
-
const a =
|
|
18974
|
-
|
|
18727
|
+
const a = No(e, t, n), i = Zn.aoa_to_sheet(a), s = Zn.book_new();
|
|
18728
|
+
Zn.book_append_sheet(s, i, "Sheet1"), ym(s, `${r ?? "untitled"}.xlsx`);
|
|
18975
18729
|
}
|
|
18976
18730
|
async function jm({
|
|
18977
18731
|
title: e,
|
|
@@ -18985,21 +18739,21 @@ async function jm({
|
|
|
18985
18739
|
cacheBust: !0,
|
|
18986
18740
|
filter: (o) => !(o instanceof HTMLElement && o.hasAttribute("data-no-export"))
|
|
18987
18741
|
}), i = await (await fetch(n)).blob(), s = URL.createObjectURL(i);
|
|
18988
|
-
|
|
18742
|
+
Lo(s, `${e ?? "untitled"}.png`), URL.revokeObjectURL(s);
|
|
18989
18743
|
} catch (n) {
|
|
18990
18744
|
throw new Error(`exportPNG failed: ${n.message}`);
|
|
18991
18745
|
}
|
|
18992
18746
|
}
|
|
18993
|
-
const
|
|
18747
|
+
const Vi = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-cloud-download'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M19%2018a3.5%203.5%200%200%200%200%20-7h-1a5%204.5%200%200%200%20-11%20-2a4.6%204.4%200%200%200%20-2.1%208.4'%20/%3e%3cpath%20d='M12%2013l0%209'%20/%3e%3cpath%20d='M9%2019l3%203l3%20-3'%20/%3e%3c/svg%3e", Km = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-photo-down'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M15%208h.01'%20/%3e%3cpath%20d='M12.5%2021h-6.5a3%203%200%200%201%20-3%20-3v-12a3%203%200%200%201%203%20-3h12a3%203%200%200%201%203%203v6.5'%20/%3e%3cpath%20d='M3%2016l5%20-5c.928%20-.893%202.072%20-.893%203%200l4%204'%20/%3e%3cpath%20d='M14%2014l1%20-1c.653%20-.629%201.413%20-.815%202.13%20-.559'%20/%3e%3cpath%20d='M19%2016v6'%20/%3e%3cpath%20d='M22%2019l-3%203l-3%20-3'%20/%3e%3c/svg%3e", Xm = [
|
|
18994
18748
|
{
|
|
18995
18749
|
labelKey: "charts.menuOptions.downloadCSV",
|
|
18996
18750
|
onClick: Ym,
|
|
18997
|
-
iconSrc:
|
|
18751
|
+
iconSrc: Vi
|
|
18998
18752
|
},
|
|
18999
18753
|
{
|
|
19000
18754
|
labelKey: "charts.menuOptions.downloadXLSX",
|
|
19001
18755
|
onClick: Gm,
|
|
19002
|
-
iconSrc:
|
|
18756
|
+
iconSrc: Vi
|
|
19003
18757
|
},
|
|
19004
18758
|
{
|
|
19005
18759
|
labelKey: "charts.menuOptions.downloadPNG",
|
|
@@ -19007,9 +18761,9 @@ const Wi = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
19007
18761
|
iconSrc: Km
|
|
19008
18762
|
}
|
|
19009
18763
|
];
|
|
19010
|
-
var fn = { exports: {} }, Jm = fn.exports,
|
|
18764
|
+
var fn = { exports: {} }, Jm = fn.exports, zi;
|
|
19011
18765
|
function qm() {
|
|
19012
|
-
return
|
|
18766
|
+
return zi || (zi = 1, (function(e, t) {
|
|
19013
18767
|
(function(r, n) {
|
|
19014
18768
|
e.exports = n();
|
|
19015
18769
|
})(Jm, (function() {
|
|
@@ -19287,9 +19041,9 @@ function qm() {
|
|
|
19287
19041
|
}
|
|
19288
19042
|
var Qm = qm();
|
|
19289
19043
|
const $t = /* @__PURE__ */ Un(Qm);
|
|
19290
|
-
var ln = { exports: {} }, Zm = ln.exports,
|
|
19044
|
+
var ln = { exports: {} }, Zm = ln.exports, Yi;
|
|
19291
19045
|
function eg() {
|
|
19292
|
-
return
|
|
19046
|
+
return Yi || (Yi = 1, (function(e, t) {
|
|
19293
19047
|
(function(r, n) {
|
|
19294
19048
|
e.exports = n();
|
|
19295
19049
|
})(Zm, (function() {
|
|
@@ -19318,9 +19072,9 @@ function eg() {
|
|
|
19318
19072
|
}
|
|
19319
19073
|
var tg = eg();
|
|
19320
19074
|
const rg = /* @__PURE__ */ Un(tg);
|
|
19321
|
-
var cn = { exports: {} }, ng = cn.exports,
|
|
19075
|
+
var cn = { exports: {} }, ng = cn.exports, Gi;
|
|
19322
19076
|
function ag() {
|
|
19323
|
-
return
|
|
19077
|
+
return Gi || (Gi = 1, (function(e, t) {
|
|
19324
19078
|
(function(r, n) {
|
|
19325
19079
|
e.exports = n();
|
|
19326
19080
|
})(ng, (function() {
|
|
@@ -19399,68 +19153,322 @@ const og = (e) => {
|
|
|
19399
19153
|
}, hg = [
|
|
19400
19154
|
{
|
|
19401
19155
|
value: "Previous period",
|
|
19402
|
-
label: "
|
|
19156
|
+
label: "defaults.comparisonPeriodOptions.previousPeriod|Previous period",
|
|
19403
19157
|
getRange: og,
|
|
19404
19158
|
dateFormat: "DD MMM YYYY"
|
|
19405
19159
|
},
|
|
19406
19160
|
{
|
|
19407
19161
|
value: "Previous week",
|
|
19408
|
-
label: "
|
|
19162
|
+
label: "defaults.comparisonPeriodOptions.previousWeek|Previous week",
|
|
19409
19163
|
getRange: fg,
|
|
19410
19164
|
dateFormat: "MMM DD"
|
|
19411
19165
|
},
|
|
19412
19166
|
{
|
|
19413
19167
|
value: "Previous month",
|
|
19414
|
-
label: "
|
|
19168
|
+
label: "defaults.comparisonPeriodOptions.previousMonth|Previous month",
|
|
19415
19169
|
getRange: lg,
|
|
19416
19170
|
dateFormat: "MMM YYYY"
|
|
19417
19171
|
},
|
|
19418
19172
|
{
|
|
19419
19173
|
value: "Previous quarter",
|
|
19420
|
-
label: "
|
|
19174
|
+
label: "defaults.comparisonPeriodOptions.previousQuarter|Previous quarter",
|
|
19421
19175
|
getRange: cg,
|
|
19422
19176
|
dateFormat: "MMM YYYY"
|
|
19423
19177
|
},
|
|
19424
19178
|
{
|
|
19425
19179
|
value: "Previous year",
|
|
19426
|
-
label: "
|
|
19180
|
+
label: "defaults.comparisonPeriodOptions.previousYear|Previous year",
|
|
19427
19181
|
getRange: ug,
|
|
19428
19182
|
dateFormat: "YYYY"
|
|
19429
19183
|
}
|
|
19430
|
-
],
|
|
19184
|
+
], ea = (e, t = 0) => {
|
|
19185
|
+
const r = new Date(e), n = (r.getDay() + 6) % 7;
|
|
19186
|
+
r.setDate(r.getDate() - n + t * 7);
|
|
19187
|
+
const a = new Date(r.getFullYear(), r.getMonth(), r.getDate()), i = new Date(a);
|
|
19188
|
+
return i.setDate(a.getDate() + 6), i.setHours(23, 59, 59, 999), {
|
|
19189
|
+
from: a,
|
|
19190
|
+
to: i,
|
|
19191
|
+
relativeTimeString: ""
|
|
19192
|
+
};
|
|
19193
|
+
}, sn = (e, t = 0) => {
|
|
19194
|
+
const n = Math.floor(e.getMonth() / 3) + t, a = Math.floor(n / 4), i = (n % 4 + 4) % 4, s = e.getFullYear() + a, o = new Date(s, i * 3, 1), l = new Date(s, i * 3 + 3, 0, 23, 59, 59, 999);
|
|
19195
|
+
return {
|
|
19196
|
+
from: o,
|
|
19197
|
+
to: l,
|
|
19198
|
+
relativeTimeString: ""
|
|
19199
|
+
};
|
|
19200
|
+
}, dg = [
|
|
19201
|
+
{
|
|
19202
|
+
value: "Today",
|
|
19203
|
+
label: "Today",
|
|
19204
|
+
getRange: () => {
|
|
19205
|
+
const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), e.getMonth(), e.getDate()), r = new Date(t);
|
|
19206
|
+
return r.setHours(23, 59, 59, 999), {
|
|
19207
|
+
from: t,
|
|
19208
|
+
to: r,
|
|
19209
|
+
relativeTimeString: ""
|
|
19210
|
+
};
|
|
19211
|
+
},
|
|
19212
|
+
dateFormat: "MMM DD"
|
|
19213
|
+
},
|
|
19214
|
+
{
|
|
19215
|
+
value: "Yesterday",
|
|
19216
|
+
label: "Yesterday",
|
|
19217
|
+
getRange: () => {
|
|
19218
|
+
const e = /* @__PURE__ */ new Date(), t = new Date(e);
|
|
19219
|
+
t.setDate(e.getDate() - 1), t.setHours(0, 0, 0, 0);
|
|
19220
|
+
const r = new Date(t);
|
|
19221
|
+
return r.setHours(23, 59, 59, 999), {
|
|
19222
|
+
from: t,
|
|
19223
|
+
to: r,
|
|
19224
|
+
relativeTimeString: ""
|
|
19225
|
+
};
|
|
19226
|
+
},
|
|
19227
|
+
dateFormat: "MMM DD"
|
|
19228
|
+
},
|
|
19229
|
+
{
|
|
19230
|
+
value: "This week",
|
|
19231
|
+
label: "This week",
|
|
19232
|
+
getRange: () => ea(/* @__PURE__ */ new Date(), 0),
|
|
19233
|
+
dateFormat: "MMM DD"
|
|
19234
|
+
},
|
|
19235
|
+
{
|
|
19236
|
+
value: "Last week",
|
|
19237
|
+
label: "Last week",
|
|
19238
|
+
getRange: () => ea(/* @__PURE__ */ new Date(), -1),
|
|
19239
|
+
dateFormat: "MMM DD"
|
|
19240
|
+
},
|
|
19241
|
+
{
|
|
19242
|
+
value: "Week to date",
|
|
19243
|
+
label: "Week to date",
|
|
19244
|
+
getRange: () => {
|
|
19245
|
+
const e = /* @__PURE__ */ new Date(), { from: t } = ea(e, 0), r = new Date(e);
|
|
19246
|
+
return r.setHours(23, 59, 59, 999), {
|
|
19247
|
+
from: t,
|
|
19248
|
+
to: r,
|
|
19249
|
+
relativeTimeString: ""
|
|
19250
|
+
};
|
|
19251
|
+
},
|
|
19252
|
+
dateFormat: "MMM DD"
|
|
19253
|
+
},
|
|
19254
|
+
{
|
|
19255
|
+
value: "Last 7 days",
|
|
19256
|
+
label: "Last 7 days",
|
|
19257
|
+
getRange: () => {
|
|
19258
|
+
const e = /* @__PURE__ */ new Date();
|
|
19259
|
+
e.setHours(23, 59, 59, 999);
|
|
19260
|
+
const t = new Date(e);
|
|
19261
|
+
return t.setDate(e.getDate() - 6), t.setHours(0, 0, 0, 0), {
|
|
19262
|
+
from: t,
|
|
19263
|
+
to: e,
|
|
19264
|
+
relativeTimeString: ""
|
|
19265
|
+
};
|
|
19266
|
+
},
|
|
19267
|
+
dateFormat: "MMM DD"
|
|
19268
|
+
},
|
|
19269
|
+
{
|
|
19270
|
+
value: "Next 7 days",
|
|
19271
|
+
label: "Next 7 days",
|
|
19272
|
+
getRange: () => {
|
|
19273
|
+
const e = /* @__PURE__ */ new Date();
|
|
19274
|
+
e.setHours(0, 0, 0, 0);
|
|
19275
|
+
const t = new Date(e);
|
|
19276
|
+
return t.setDate(e.getDate() + 6), t.setHours(23, 59, 59, 999), {
|
|
19277
|
+
from: e,
|
|
19278
|
+
to: t,
|
|
19279
|
+
relativeTimeString: ""
|
|
19280
|
+
};
|
|
19281
|
+
},
|
|
19282
|
+
dateFormat: "MMM DD"
|
|
19283
|
+
},
|
|
19284
|
+
{
|
|
19285
|
+
value: "Last 30 days",
|
|
19286
|
+
label: "Last 30 days",
|
|
19287
|
+
getRange: () => {
|
|
19288
|
+
const e = /* @__PURE__ */ new Date();
|
|
19289
|
+
e.setHours(23, 59, 59, 999);
|
|
19290
|
+
const t = new Date(e);
|
|
19291
|
+
return t.setDate(e.getDate() - 29), t.setHours(0, 0, 0, 0), {
|
|
19292
|
+
from: t,
|
|
19293
|
+
to: e,
|
|
19294
|
+
relativeTimeString: ""
|
|
19295
|
+
};
|
|
19296
|
+
},
|
|
19297
|
+
dateFormat: "MMM DD"
|
|
19298
|
+
},
|
|
19299
|
+
{
|
|
19300
|
+
value: "Next 30 days",
|
|
19301
|
+
label: "Next 30 days",
|
|
19302
|
+
getRange: () => {
|
|
19303
|
+
const e = /* @__PURE__ */ new Date();
|
|
19304
|
+
e.setHours(0, 0, 0, 0);
|
|
19305
|
+
const t = new Date(e);
|
|
19306
|
+
return t.setDate(e.getDate() + 29), t.setHours(23, 59, 59, 999), {
|
|
19307
|
+
from: e,
|
|
19308
|
+
to: t,
|
|
19309
|
+
relativeTimeString: ""
|
|
19310
|
+
};
|
|
19311
|
+
},
|
|
19312
|
+
dateFormat: "MMM DD"
|
|
19313
|
+
},
|
|
19314
|
+
{
|
|
19315
|
+
value: "This month",
|
|
19316
|
+
label: "This month",
|
|
19317
|
+
getRange: () => {
|
|
19318
|
+
const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), e.getMonth(), 1), r = new Date(e.getFullYear(), e.getMonth() + 1, 0, 23, 59, 59, 999);
|
|
19319
|
+
return {
|
|
19320
|
+
from: t,
|
|
19321
|
+
to: r,
|
|
19322
|
+
relativeTimeString: ""
|
|
19323
|
+
};
|
|
19324
|
+
},
|
|
19325
|
+
dateFormat: "MMM YYYY"
|
|
19326
|
+
},
|
|
19327
|
+
{
|
|
19328
|
+
value: "Last month",
|
|
19329
|
+
label: "Last month",
|
|
19330
|
+
getRange: () => {
|
|
19331
|
+
const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), e.getMonth() - 1, 1), r = new Date(e.getFullYear(), e.getMonth(), 0, 23, 59, 59, 999);
|
|
19332
|
+
return {
|
|
19333
|
+
from: t,
|
|
19334
|
+
to: r,
|
|
19335
|
+
relativeTimeString: ""
|
|
19336
|
+
};
|
|
19337
|
+
},
|
|
19338
|
+
dateFormat: "MMM YYYY"
|
|
19339
|
+
},
|
|
19340
|
+
{
|
|
19341
|
+
value: "Next month",
|
|
19342
|
+
label: "Next month",
|
|
19343
|
+
getRange: () => {
|
|
19344
|
+
const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), e.getMonth() + 1, 1), r = new Date(e.getFullYear(), e.getMonth() + 2, 0, 23, 59, 59, 999);
|
|
19345
|
+
return { from: t, to: r, relativeTimeString: "" };
|
|
19346
|
+
},
|
|
19347
|
+
dateFormat: "MMM YYYY"
|
|
19348
|
+
},
|
|
19349
|
+
{
|
|
19350
|
+
value: "This quarter",
|
|
19351
|
+
label: "This quarter",
|
|
19352
|
+
getRange: () => sn(/* @__PURE__ */ new Date(), 0),
|
|
19353
|
+
dateFormat: "MMM YYYY"
|
|
19354
|
+
},
|
|
19355
|
+
{
|
|
19356
|
+
value: "Last quarter",
|
|
19357
|
+
label: "Last quarter",
|
|
19358
|
+
getRange: () => sn(/* @__PURE__ */ new Date(), -1),
|
|
19359
|
+
dateFormat: "MMM YYYY"
|
|
19360
|
+
},
|
|
19361
|
+
{
|
|
19362
|
+
value: "Next quarter",
|
|
19363
|
+
label: "Next quarter",
|
|
19364
|
+
getRange: () => sn(/* @__PURE__ */ new Date(), 1),
|
|
19365
|
+
dateFormat: "MMM YYYY"
|
|
19366
|
+
},
|
|
19367
|
+
{
|
|
19368
|
+
value: "Quarter to date",
|
|
19369
|
+
label: "Quarter to date",
|
|
19370
|
+
getRange: () => {
|
|
19371
|
+
const e = /* @__PURE__ */ new Date(), { from: t } = sn(e, 0), r = new Date(e);
|
|
19372
|
+
return r.setHours(23, 59, 59, 999), { from: t, to: r, relativeTimeString: "" };
|
|
19373
|
+
},
|
|
19374
|
+
dateFormat: "MMM YYYY"
|
|
19375
|
+
},
|
|
19376
|
+
{
|
|
19377
|
+
value: "Last 6 months",
|
|
19378
|
+
label: "Last 6 months",
|
|
19379
|
+
getRange: () => {
|
|
19380
|
+
const e = /* @__PURE__ */ new Date();
|
|
19381
|
+
e.setHours(23, 59, 59, 999);
|
|
19382
|
+
const t = new Date(e);
|
|
19383
|
+
return t.setMonth(e.getMonth() - 6), t.setHours(0, 0, 0, 0), { from: t, to: e, relativeTimeString: "" };
|
|
19384
|
+
},
|
|
19385
|
+
dateFormat: "MMM YYYY"
|
|
19386
|
+
},
|
|
19387
|
+
{
|
|
19388
|
+
value: "Last 12 months",
|
|
19389
|
+
label: "Last 12 months",
|
|
19390
|
+
getRange: () => {
|
|
19391
|
+
const e = /* @__PURE__ */ new Date();
|
|
19392
|
+
e.setHours(23, 59, 59, 999);
|
|
19393
|
+
const t = new Date(e);
|
|
19394
|
+
return t.setMonth(e.getMonth() - 12), t.setHours(0, 0, 0, 0), { from: t, to: e, relativeTimeString: "" };
|
|
19395
|
+
},
|
|
19396
|
+
dateFormat: "MMM YYYY"
|
|
19397
|
+
},
|
|
19398
|
+
{
|
|
19399
|
+
value: "This year",
|
|
19400
|
+
label: "This year",
|
|
19401
|
+
getRange: () => {
|
|
19402
|
+
const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), 0, 1), r = new Date(e.getFullYear(), 11, 31, 23, 59, 59, 999);
|
|
19403
|
+
return { from: t, to: r, relativeTimeString: "" };
|
|
19404
|
+
},
|
|
19405
|
+
dateFormat: "YYYY"
|
|
19406
|
+
},
|
|
19407
|
+
{
|
|
19408
|
+
value: "Last year",
|
|
19409
|
+
label: "Last year",
|
|
19410
|
+
getRange: () => {
|
|
19411
|
+
const t = (/* @__PURE__ */ new Date()).getFullYear() - 1, r = new Date(t, 0, 1), n = new Date(t, 11, 31, 23, 59, 59, 999);
|
|
19412
|
+
return { from: r, to: n, relativeTimeString: "" };
|
|
19413
|
+
},
|
|
19414
|
+
dateFormat: "YYYY"
|
|
19415
|
+
},
|
|
19416
|
+
{
|
|
19417
|
+
value: "Next year",
|
|
19418
|
+
label: "Next year",
|
|
19419
|
+
getRange: () => {
|
|
19420
|
+
const t = (/* @__PURE__ */ new Date()).getFullYear() + 1, r = new Date(t, 0, 1), n = new Date(t, 11, 31, 23, 59, 59, 999);
|
|
19421
|
+
return { from: r, to: n, relativeTimeString: "" };
|
|
19422
|
+
},
|
|
19423
|
+
dateFormat: "YYYY"
|
|
19424
|
+
},
|
|
19425
|
+
{
|
|
19426
|
+
value: "Year to date",
|
|
19427
|
+
label: "Year to date",
|
|
19428
|
+
getRange: () => {
|
|
19429
|
+
const e = /* @__PURE__ */ new Date(), t = new Date(e.getFullYear(), 0, 1), r = new Date(e);
|
|
19430
|
+
return r.setHours(23, 59, 59, 999), { from: t, to: r, relativeTimeString: "" };
|
|
19431
|
+
},
|
|
19432
|
+
dateFormat: "MMM YYYY"
|
|
19433
|
+
}
|
|
19434
|
+
], mg = {
|
|
19431
19435
|
language: "en",
|
|
19432
19436
|
translations: {
|
|
19433
|
-
en:
|
|
19434
|
-
de:
|
|
19437
|
+
en: Qo,
|
|
19438
|
+
de: Zo
|
|
19435
19439
|
}
|
|
19436
|
-
},
|
|
19440
|
+
}, gg = {
|
|
19437
19441
|
legendPosition: "bottom",
|
|
19438
19442
|
chartCardMenuPro: {
|
|
19439
19443
|
options: Xm
|
|
19440
19444
|
}
|
|
19441
|
-
},
|
|
19445
|
+
}, fa = {
|
|
19446
|
+
comparisonPeriodsOptions: hg,
|
|
19447
|
+
dateRangesOptions: dg
|
|
19448
|
+
}, pg = {
|
|
19442
19449
|
dateRangeSelectFieldPro: {
|
|
19443
|
-
options:
|
|
19450
|
+
options: fa.dateRangesOptions
|
|
19444
19451
|
},
|
|
19445
19452
|
comparisonPeriodSelectFieldPro: {
|
|
19446
|
-
options:
|
|
19447
|
-
}
|
|
19448
|
-
},
|
|
19449
|
-
i18n:
|
|
19450
|
-
charts:
|
|
19451
|
-
editors:
|
|
19452
|
-
formatter:
|
|
19453
|
-
styles:
|
|
19454
|
-
|
|
19455
|
-
|
|
19453
|
+
options: fa.comparisonPeriodsOptions
|
|
19454
|
+
}
|
|
19455
|
+
}, xg = {
|
|
19456
|
+
i18n: mg,
|
|
19457
|
+
charts: gg,
|
|
19458
|
+
editors: pg,
|
|
19459
|
+
formatter: M0,
|
|
19460
|
+
styles: Y0,
|
|
19461
|
+
defaults: fa
|
|
19462
|
+
}, ji = () => xg, vg = [];
|
|
19463
|
+
function wg(e) {
|
|
19456
19464
|
let t = {};
|
|
19457
|
-
for (const r of
|
|
19465
|
+
for (const r of vg)
|
|
19458
19466
|
if (typeof r == "function") {
|
|
19459
19467
|
const n = r(e, t);
|
|
19460
|
-
t =
|
|
19468
|
+
t = o0(t, n);
|
|
19461
19469
|
}
|
|
19462
|
-
return typeof
|
|
19470
|
+
return typeof ji == "function" ? ji() : t;
|
|
19463
19471
|
}
|
|
19464
19472
|
export {
|
|
19465
|
-
|
|
19473
|
+
wg as default
|
|
19466
19474
|
};
|