@sheetxl/io-xlsx 0.7.28-beta.3 → 0.8.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/BAtEL-5TLyoaPFDP.cjs +2 -0
- package/browser/cjs/Bg0e53JZa8vhmm5a.cjs +1 -0
- package/browser/cjs/CK5FFUvet6FnIYO_.cjs +5 -0
- package/browser/cjs/{BZsKjlEe8ttWIao7.cjs → DV6LeTEiiFUrZoxj.cjs} +1 -1
- package/browser/cjs/Db8YjGM6TG34c8aT.cjs +1 -0
- package/browser/cjs/index.cjs +1 -1
- package/browser/esm/{Da4uZFnis4q5dMxA.mjs → 4BWLu134ABlCQEtM.mjs} +928 -890
- package/browser/esm/{uIgz_sO2ZTlIJryO.mjs → BkNXyG6NC-w5Xo92.mjs} +2 -2
- package/browser/esm/{9k07cBjQx8ZMNU1r.mjs → BzQ_lPzc8C4OTIGZ.mjs} +2 -2
- package/browser/esm/{BwSyMclyk-t3Qsxs.mjs → CJknI8BYGSZr-4zS.mjs} +5 -5
- package/browser/esm/{DmzsYgxDBYYWxQWu.mjs → CLWzJJyoSrykkVLX.mjs} +2 -2
- package/browser/esm/{BjKFtNZckTyELfHX.mjs → Cok_fBIUCHDSrKw0.mjs} +260 -242
- package/browser/esm/{C0ftqc3PDJkuDjFG.mjs → Ctqql4O-3xj2K8vv.mjs} +2 -2
- package/browser/esm/{DofvhgOWFHBSl9vH.mjs → D-m_kQLaewdwuXaF.mjs} +743 -681
- package/browser/esm/{Wg4pN30I3RZmpjIf.mjs → Dj7D2nVdAZ3TiUks.mjs} +1460 -1392
- package/browser/esm/{DatxS1drpnPiN0bA.mjs → Dz1Dp8DDJvhd09RR.mjs} +1 -1
- package/browser/esm/{B1HdC5n0VHTzJXno.mjs → ijQzHH-bvDfUHIi1.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{C9wIBQW-fwqlpFJm.mjs → CEAmv36xpTNgFwl_.mjs} +2 -2
- package/node/esm/{CUQy4BVE8DwTALUu.mjs → CEV7nKotMpeRRnQC.mjs} +1 -1
- package/node/esm/{BTiGUmPt1-zNmYTg.mjs → CF1R5ovFsRNu--Rw.mjs} +994 -950
- package/node/esm/{DWNfn3shRCVhbEOV.mjs → Ctcl4jN52INWpKWC.mjs} +197 -179
- package/node/esm/{BOF2zpi3fMaBFMe7.mjs → CvnRSooxEQdlJgMn.mjs} +741 -677
- package/node/esm/{zldOc2ba5Vlg1s2E.mjs → DQd0vxzTaPt2qSL-.mjs} +1 -1
- package/node/esm/{DYH_lfcyj9wTL8Er.mjs → fOnuUjpPCAzmuIXN.mjs} +2 -2
- package/node/esm/index.mjs +5 -5
- package/node/esm/{f9-SN-lQDdZGt0vO.mjs → ssSlRCbCqxvZ9IX8.mjs} +613 -545
- package/package.json +3 -3
- package/types/src/AutoFilterRules.d.ts +62 -0
- package/types/src/reader/dom/DOMTransformer.d.ts +10 -0
- package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +1 -1
- package/types/src/reader/sax/SaxVisitor.d.ts +14 -0
- package/types/src/writer/builder/EmitterRegistry.d.ts +7 -0
- package/types/src/writer/emitters/StylesEmitter.d.ts +13 -2
- package/types/src/writer/utils/AutoFilter.d.ts +3 -2
- package/browser/cjs/5QaWZ2tRVhz1rf3W.cjs +0 -1
- package/browser/cjs/Bi-WvoygX7yZzlxU.cjs +0 -5
- package/browser/cjs/D-8WoJkvdPf-79sB.cjs +0 -2
- package/browser/cjs/sEmMmxaNBSY_o-Zb.cjs +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import { AddressUtils as
|
|
10
|
-
var
|
|
7
|
+
import "./CJknI8BYGSZr-4zS.mjs";
|
|
8
|
+
import { D as e, E as t, F as n, H as r, I as i, K as a, L as o, M as s, N as c, O as l, P as u, U as d, _ as f, a as p, b as m, f as h, g, h as _, i as v, k as y, l as b, n as x, s as S, u as ee, w as C, z as w } from "./Dj7D2nVdAZ3TiUks.mjs";
|
|
9
|
+
import { AddressUtils as T, BufferUtils as E, Color as te, CommonUtils as D, CoordUtils as O, FormulaError as ne, IColor as k, ICondition as A, IConditionalFormat as j, IEffect as M, IFill as N, ISheet as P, IStroke as F, IStyle as I, ITextFrame as L, LicenseManager as re, NumberFormat as R, ScalarType as z } from "@sheetxl/sdk";
|
|
10
|
+
var B = class {
|
|
11
11
|
constructor(e) {
|
|
12
12
|
this._kind = e.kind, this._contentType = e.contentType, this._relTypeUri = e.relTypeUri, this._path = e.path;
|
|
13
13
|
}
|
|
@@ -23,50 +23,50 @@ var L = class {
|
|
|
23
23
|
getPath(e) {
|
|
24
24
|
return typeof this._path == "function" ? this._path(e) : this._path;
|
|
25
25
|
}
|
|
26
|
-
},
|
|
26
|
+
}, ie = class e {
|
|
27
27
|
constructor(e, t, n) {
|
|
28
28
|
this.zipWriter = e, this.outputKind = t, this.outWritable = n;
|
|
29
29
|
}
|
|
30
30
|
static createUint8Array(t) {
|
|
31
|
-
let
|
|
32
|
-
return new e(
|
|
31
|
+
let r = new y(new n(), t);
|
|
32
|
+
return new e(r, "uint8array");
|
|
33
33
|
}
|
|
34
34
|
static createBlob(t) {
|
|
35
|
-
let n = new
|
|
35
|
+
let n = new y(new s("application/zip"), t);
|
|
36
36
|
return new e(n, "blob");
|
|
37
37
|
}
|
|
38
38
|
static createWritableStream(t, n) {
|
|
39
|
-
let r = new
|
|
39
|
+
let r = new y(t, n);
|
|
40
40
|
return new e(r, "writable", t);
|
|
41
41
|
}
|
|
42
|
-
async add(e, t,
|
|
43
|
-
let
|
|
42
|
+
async add(e, t, n) {
|
|
43
|
+
let r = function(e) {
|
|
44
44
|
let t = e.replace(/\\/g, "/").trim();
|
|
45
45
|
for (; t.startsWith("/");) t = t.slice(1);
|
|
46
46
|
return t;
|
|
47
|
-
}(e),
|
|
48
|
-
level:
|
|
49
|
-
password:
|
|
50
|
-
encryptionStrength:
|
|
51
|
-
zipCrypto:
|
|
52
|
-
lastModDate:
|
|
53
|
-
keepOrder:
|
|
54
|
-
uncompressedSize:
|
|
55
|
-
dataDescriptor:
|
|
56
|
-
passThrough:
|
|
57
|
-
compressionMethod:
|
|
58
|
-
signature:
|
|
47
|
+
}(e), i = {
|
|
48
|
+
level: n?.level,
|
|
49
|
+
password: n?.password,
|
|
50
|
+
encryptionStrength: n?.encryptionStrength,
|
|
51
|
+
zipCrypto: n?.zipCrypto,
|
|
52
|
+
lastModDate: n?.lastModDate,
|
|
53
|
+
keepOrder: n?.keepOrder,
|
|
54
|
+
uncompressedSize: n?.uncompressedSize,
|
|
55
|
+
dataDescriptor: n?.dataDescriptor,
|
|
56
|
+
passThrough: n?.passThrough,
|
|
57
|
+
compressionMethod: n?.compressionMethod,
|
|
58
|
+
signature: n?.signature
|
|
59
59
|
};
|
|
60
|
-
if (typeof t == "string") return void await this.zipWriter.add(
|
|
60
|
+
if (typeof t == "string") return void await this.zipWriter.add(r, new c(t), i);
|
|
61
61
|
if (t instanceof Uint8Array || ArrayBuffer.isView(t) || t && typeof t.byteLength == "number" && typeof t.byteOffset == "number") {
|
|
62
62
|
try {
|
|
63
|
-
await this.zipWriter.add(
|
|
63
|
+
await this.zipWriter.add(r, new u(t), i);
|
|
64
64
|
} catch (e) {
|
|
65
|
-
throw console.log("Error adding Uint8Array source to zip:",
|
|
65
|
+
throw console.log("Error adding Uint8Array source to zip:", r, i), e;
|
|
66
66
|
}
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
-
let
|
|
69
|
+
let a = (o = t) && typeof o.getReader == "function" ? t : function(e) {
|
|
70
70
|
let t = e[Symbol.asyncIterator]();
|
|
71
71
|
return new ReadableStream({
|
|
72
72
|
async pull(e) {
|
|
@@ -80,8 +80,8 @@ var L = class {
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
}(t);
|
|
83
|
-
var
|
|
84
|
-
await this.zipWriter.add(
|
|
83
|
+
var o;
|
|
84
|
+
await this.zipWriter.add(r, a, i);
|
|
85
85
|
}
|
|
86
86
|
async close(e) {
|
|
87
87
|
let t = e?.comment, n = await this.zipWriter.close(t, {});
|
|
@@ -168,12 +168,12 @@ function oe(e) {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
function se(e) {
|
|
171
|
-
let t =
|
|
171
|
+
let t = V(e);
|
|
172
172
|
if (!t) return "_rels/.rels";
|
|
173
173
|
let n = t.lastIndexOf("/"), r = n >= 0 ? t.slice(0, n) : "";
|
|
174
174
|
return `${r ? `${r}/_rels` : "_rels"}/${n >= 0 ? t.slice(n + 1) : t}.rels`;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function V(e) {
|
|
177
177
|
let t = (e ?? "").replace(/\\/g, "/").trim();
|
|
178
178
|
for (; t.startsWith("/");) t = t.slice(1);
|
|
179
179
|
return t;
|
|
@@ -182,7 +182,7 @@ function ce(e) {
|
|
|
182
182
|
let t = /^rId(\d+)$/.exec(e);
|
|
183
183
|
return t ? parseInt(t[1], 10) : 2 ** 53 - 1;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function H(e) {
|
|
186
186
|
return String(e).replace(/&/g, "&").replace(/</g, "<").replace(/"/g, """).replace(/>/g, ">");
|
|
187
187
|
}
|
|
188
188
|
function le(e, t, n, r = !1) {
|
|
@@ -270,7 +270,7 @@ function ye(e) {
|
|
|
270
270
|
}
|
|
271
271
|
var be = class {
|
|
272
272
|
constructor(e) {
|
|
273
|
-
this.rels = [], this.usedIds = /* @__PURE__ */ new Set(), this.nextId = 1, this.sourcePart =
|
|
273
|
+
this.rels = [], this.usedIds = /* @__PURE__ */ new Set(), this.nextId = 1, this.sourcePart = V(e);
|
|
274
274
|
}
|
|
275
275
|
add(e, t, n) {
|
|
276
276
|
let r = n?.idHint && !this.usedIds.has(n.idHint) ? n.idHint : void 0;
|
|
@@ -293,9 +293,9 @@ var be = class {
|
|
|
293
293
|
t.push("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"), t.push(`<Relationships xmlns="${xe}">`);
|
|
294
294
|
for (let n of e) {
|
|
295
295
|
let e = [
|
|
296
|
-
`Id="${
|
|
297
|
-
`Type="${
|
|
298
|
-
`Target="${
|
|
296
|
+
`Id="${H(n.id)}"`,
|
|
297
|
+
`Type="${H(n.type)}"`,
|
|
298
|
+
`Target="${H(n.target)}"`
|
|
299
299
|
];
|
|
300
300
|
n.targetMode === "External" && e.push("TargetMode=\"External\""), t.push(`<Relationship ${e.join(" ")}/>`);
|
|
301
301
|
}
|
|
@@ -330,9 +330,9 @@ var be = class {
|
|
|
330
330
|
e.push("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"), e.push(`<Types xmlns="${Ce}">`);
|
|
331
331
|
let t = this._defaults.reverse();
|
|
332
332
|
this.addDefault("rels", "application/vnd.openxmlformats-package.relationships+xml"), this.addDefault("xml", "application/xml");
|
|
333
|
-
for (let { key: n, content: r } of t) e.push(`<Default Extension="${
|
|
333
|
+
for (let { key: n, content: r } of t) e.push(`<Default Extension="${H(n)}" ContentType="${H(r)}"/>`);
|
|
334
334
|
let n = this._overrides;
|
|
335
|
-
for (let { key: t, content: r } of n) e.push(`<Override PartName="${
|
|
335
|
+
for (let { key: t, content: r } of n) e.push(`<Override PartName="${H(t)}" ContentType="${H(r)}"/>`);
|
|
336
336
|
return e.push("</Types>"), fe(e.join(""));
|
|
337
337
|
}
|
|
338
338
|
}, Ce = "http://schemas.openxmlformats.org/package/2006/content-types", we = class {
|
|
@@ -340,14 +340,14 @@ var be = class {
|
|
|
340
340
|
this.parts = [], this.relsRoot = new be(""), this.relsByPart = /* @__PURE__ */ new Map(), this.contentTypes = new Se(), this.zip = e;
|
|
341
341
|
}
|
|
342
342
|
addContentType(e, t) {
|
|
343
|
-
let n =
|
|
343
|
+
let n = V(e);
|
|
344
344
|
this.contentTypes.addOverride("/" + n, t);
|
|
345
345
|
}
|
|
346
346
|
addDefaultType(e, t) {
|
|
347
347
|
this.contentTypes.addDefault(e, t);
|
|
348
348
|
}
|
|
349
349
|
addPart(e, t, n, r) {
|
|
350
|
-
let i =
|
|
350
|
+
let i = V(e);
|
|
351
351
|
this.parts.push({
|
|
352
352
|
path: i,
|
|
353
353
|
body: t,
|
|
@@ -355,7 +355,7 @@ var be = class {
|
|
|
355
355
|
}), n && this.contentTypes.addOverride("/" + i, n);
|
|
356
356
|
}
|
|
357
357
|
rels(e) {
|
|
358
|
-
let t =
|
|
358
|
+
let t = V(e || "");
|
|
359
359
|
if (!t) return this.relsRoot;
|
|
360
360
|
let n = this.relsByPart.get(t);
|
|
361
361
|
return n || (n = new be(t), this.relsByPart.set(t, n)), n;
|
|
@@ -463,7 +463,7 @@ var je = class {
|
|
|
463
463
|
continue;
|
|
464
464
|
}
|
|
465
465
|
let t = ue((a ? a + "/" : "") + o.target);
|
|
466
|
-
n.has(t) || this._explicitRelTargets.has(`${e}::${t}`) || (r.has(t) ? i.add(o.type, o.target) : console.warn(`Dropping preserved relationship to missing part '${t}'`, e || "(root)"));
|
|
466
|
+
n.has(t) || this._explicitRelTargets.has(`${e}::${t}`) || (r.has(t) ? i.add(o.type, o.target) : this._registry.ownsRelType(o.type) || console.warn(`Dropping preserved relationship to missing part '${t}'`, e || "(root)"));
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
addPart(e, t, n) {
|
|
@@ -620,6 +620,10 @@ var je = class {
|
|
|
620
620
|
has(e) {
|
|
621
621
|
return this.map.has(e);
|
|
622
622
|
}
|
|
623
|
+
ownsRelType(e) {
|
|
624
|
+
for (let t of this.map.values()) if (t.relTypeUri === e) return !0;
|
|
625
|
+
return !1;
|
|
626
|
+
}
|
|
623
627
|
};
|
|
624
628
|
function Pe(e, t, n) {
|
|
625
629
|
e && (e.algorithm && (t[n ? `${n}AlgorithmName` : "algorithmName"] = e.algorithm), e.hash && (t[n ? `${n}HashValue` : "hashValue"] = e.hash), e.salt && (t[n ? `${n}SaltValue` : "saltValue"] = e.salt), e.spinCount !== void 0 && (t[n ? `${n}SpinCount` : "spinCount"] = e.spinCount));
|
|
@@ -665,14 +669,14 @@ var Fe = class {
|
|
|
665
669
|
}
|
|
666
670
|
add(e) {
|
|
667
671
|
if (e == null) return this._onWarn?.("RichValueCollector.add: null/undefined value — falling back to #UNKNOWN!"), this._registerFallback();
|
|
668
|
-
if (
|
|
672
|
+
if (ne.isError(e)) {
|
|
669
673
|
let t = e.getCode(), n = this._register(`_error:${t}`, { errorType: "" + (t - 1) }, Le);
|
|
670
674
|
return this._metaCollector.registerRichValueCell(n);
|
|
671
675
|
}
|
|
672
676
|
return e.isIRichData && e.getType(), this._onWarn?.("RichValueCollector.add: unsupported rich value type — falling back to #UNKNOWN!", e), this._registerFallback();
|
|
673
677
|
}
|
|
674
678
|
_registerFallback() {
|
|
675
|
-
let e = this._register("_error:fallback", { errorType:
|
|
679
|
+
let e = this._register("_error:fallback", { errorType: ne.Code.Unknown - 1 }, Le);
|
|
676
680
|
return this._metaCollector.registerRichValueCell(e);
|
|
677
681
|
}
|
|
678
682
|
_register(e, t, n) {
|
|
@@ -722,54 +726,58 @@ var Fe = class {
|
|
|
722
726
|
"subType",
|
|
723
727
|
"i",
|
|
724
728
|
"0"
|
|
725
|
-
]])
|
|
726
|
-
|
|
729
|
+
]]), Re = {
|
|
730
|
+
auto: "auto",
|
|
731
|
+
automaticExceptTables: "autoNoTable",
|
|
732
|
+
manual: "manual"
|
|
733
|
+
};
|
|
734
|
+
function U(e, t, n, r) {
|
|
727
735
|
if (!n) return;
|
|
728
736
|
let i = typeof n == "string" ? t.parseColor(n) : n;
|
|
729
737
|
r && e.start(r);
|
|
730
738
|
let a = i.getType(), o = i.getVal(), s = i.getAdjustments(), c = s && s.length > 0;
|
|
731
739
|
switch (a) {
|
|
732
740
|
case "scheme":
|
|
733
|
-
c ? (e.start("schemeClr", { val: o }),
|
|
741
|
+
c ? (e.start("schemeClr", { val: o }), W(e, s), e.end("schemeClr")) : e.empty("schemeClr", { val: o });
|
|
734
742
|
break;
|
|
735
743
|
case "named":
|
|
736
|
-
if (
|
|
744
|
+
if (te.isSystem(o)) {
|
|
737
745
|
let t = i.getLastColor() ?? i.getBaseColor().toHex().toString(!1).replace("#", "");
|
|
738
746
|
c ? (e.start("sysClr", {
|
|
739
747
|
val: o,
|
|
740
748
|
lastClr: t
|
|
741
|
-
}),
|
|
749
|
+
}), W(e, s), e.end("sysClr")) : e.empty("sysClr", {
|
|
742
750
|
val: o,
|
|
743
751
|
lastClr: t
|
|
744
752
|
});
|
|
745
|
-
} else c ? (e.start("prstClr", { val: o }),
|
|
753
|
+
} else c ? (e.start("prstClr", { val: o }), W(e, s), e.end("prstClr")) : e.empty("prstClr", { val: o });
|
|
746
754
|
break;
|
|
747
755
|
case "auto": {
|
|
748
756
|
let t = i.getLastColor() ?? i.getBaseColor().toHex().toString(!1).replace("#", "");
|
|
749
757
|
c ? (e.start("sysClr", {
|
|
750
758
|
val: "windowText",
|
|
751
759
|
lastClr: t
|
|
752
|
-
}),
|
|
760
|
+
}), W(e, s), e.end("sysClr")) : e.empty("sysClr", {
|
|
753
761
|
val: "windowText",
|
|
754
762
|
lastClr: t
|
|
755
763
|
});
|
|
756
764
|
break;
|
|
757
765
|
}
|
|
758
766
|
case "index":
|
|
759
|
-
c ? (e.start("srgbClr", { val: o }),
|
|
767
|
+
c ? (e.start("srgbClr", { val: o }), W(e, s), e.end("srgbClr")) : e.empty("srgbClr", { val: o });
|
|
760
768
|
break;
|
|
761
769
|
case "hsl":
|
|
762
770
|
let t = i.toHex().toString();
|
|
763
|
-
c ? (e.start("srgbClr", { val: t }),
|
|
771
|
+
c ? (e.start("srgbClr", { val: t }), W(e, s), e.end("srgbClr")) : e.empty("srgbClr", { val: t });
|
|
764
772
|
break;
|
|
765
773
|
case "rgb":
|
|
766
774
|
case "lrgb":
|
|
767
775
|
let n = i.toHex().toString();
|
|
768
|
-
c ? (e.start("srgbClr", { val: n }),
|
|
776
|
+
c ? (e.start("srgbClr", { val: n }), W(e, s), e.end("srgbClr")) : e.empty("srgbClr", { val: n });
|
|
769
777
|
break;
|
|
770
778
|
case "hex":
|
|
771
779
|
let r = o.replace("#", "").toUpperCase();
|
|
772
|
-
c ? (e.start("srgbClr", { val: r }),
|
|
780
|
+
c ? (e.start("srgbClr", { val: r }), W(e, s), e.end("srgbClr")) : e.empty("srgbClr", { val: r });
|
|
773
781
|
break;
|
|
774
782
|
default:
|
|
775
783
|
let a = o.replace("#", "").toUpperCase();
|
|
@@ -777,7 +785,7 @@ function V(e, t, n, r) {
|
|
|
777
785
|
}
|
|
778
786
|
r && e.end(r);
|
|
779
787
|
}
|
|
780
|
-
function
|
|
788
|
+
function W(e, t) {
|
|
781
789
|
if (t && t.length !== 0) for (let n of t) for (let [t, r] of Object.entries(n)) {
|
|
782
790
|
if (r == null) continue;
|
|
783
791
|
let n = t;
|
|
@@ -800,47 +808,47 @@ function H(e, t) {
|
|
|
800
808
|
}
|
|
801
809
|
}
|
|
802
810
|
}
|
|
803
|
-
function
|
|
811
|
+
function G(e, t, n, r, i = !1, a = !1) {
|
|
804
812
|
if (!n) return;
|
|
805
813
|
let o = typeof n == "string" ? t.parseColor(n) : n, s = () => {
|
|
806
|
-
e.empty(r, { rgb:
|
|
814
|
+
e.empty(r, { rgb: Ke(o.toHex().toString(!0)) });
|
|
807
815
|
}, c = o.getAdjustments(), l = c && c.length > 0, u = o.getType();
|
|
808
|
-
if (u !==
|
|
809
|
-
if (u ===
|
|
810
|
-
let t = o.getVal(), n =
|
|
816
|
+
if (u !== k.Type.Auto) {
|
|
817
|
+
if (u === k.Type.Scheme) {
|
|
818
|
+
let t = o.getVal(), n = ze[t] ?? t, i = He.get(n);
|
|
811
819
|
if (i === void 0 && n !== "phClr") return console.warn(`Color scheme not in theme. schemeVal=${t} themeKey=${n}`), s();
|
|
812
820
|
let a = {};
|
|
813
821
|
if (a.theme = i, l) {
|
|
814
822
|
if (!function(e) {
|
|
815
823
|
for (let t of e) switch (Object.keys(t)[0]) {
|
|
816
|
-
case
|
|
817
|
-
case
|
|
818
|
-
case
|
|
819
|
-
case
|
|
820
|
-
case
|
|
821
|
-
case
|
|
822
|
-
case
|
|
823
|
-
case
|
|
824
|
-
case
|
|
824
|
+
case k.AdjustmentType.Tint:
|
|
825
|
+
case k.AdjustmentType.ETint:
|
|
826
|
+
case k.AdjustmentType.Shade:
|
|
827
|
+
case k.AdjustmentType.Lum:
|
|
828
|
+
case k.AdjustmentType.LumOff:
|
|
829
|
+
case k.AdjustmentType.LumMod:
|
|
830
|
+
case k.AdjustmentType.Alpha:
|
|
831
|
+
case k.AdjustmentType.AlphaOff:
|
|
832
|
+
case k.AdjustmentType.AlphaMod: continue;
|
|
825
833
|
default: return !1;
|
|
826
834
|
}
|
|
827
835
|
return !0;
|
|
828
836
|
}(c)) return s();
|
|
829
|
-
let e = c.length === 1 ? c[0][
|
|
830
|
-
if (e !== void 0) t =
|
|
837
|
+
let e = c.length === 1 ? c[0][k.AdjustmentType.ETint] : void 0, t;
|
|
838
|
+
if (e !== void 0) t = We(e);
|
|
831
839
|
else {
|
|
832
840
|
let e = o.getBaseColor().toHex().toString(!0), n = o.toHex().toString(!0);
|
|
833
|
-
t =
|
|
834
|
-
let n =
|
|
835
|
-
return Math.abs(r - n) < 1e-9 ? 0 : r < n ? n <= 1e-9 ? -1 :
|
|
836
|
-
}(
|
|
841
|
+
t = We(function(e, t) {
|
|
842
|
+
let n = Ue(e, 0, 255), r = Ue(t, 0, 255);
|
|
843
|
+
return Math.abs(r - n) < 1e-9 ? 0 : r < n ? n <= 1e-9 ? -1 : Ue(r / n - 1, -1, 0) : 255 - n <= 1e-9 ? 0 : Ue((r - n) / (255 - n), 0, 1);
|
|
844
|
+
}(Ge(e), Ge(n)));
|
|
837
845
|
}
|
|
838
846
|
t !== 0 && (a.tint = t);
|
|
839
847
|
}
|
|
840
848
|
e.empty(r, a);
|
|
841
849
|
return;
|
|
842
850
|
}
|
|
843
|
-
if (u ===
|
|
851
|
+
if (u === k.Type.Index) {
|
|
844
852
|
let t = o.getVal(), n = t.substring(5, t.length);
|
|
845
853
|
e.empty(r, { indexed: Number(n) });
|
|
846
854
|
return;
|
|
@@ -849,7 +857,7 @@ function U(e, t, n, r, i = !1, a = !1) {
|
|
|
849
857
|
}
|
|
850
858
|
e.empty(r, { auto: 1 });
|
|
851
859
|
}
|
|
852
|
-
var
|
|
860
|
+
var ze = {
|
|
853
861
|
bg1: "lt1",
|
|
854
862
|
tx1: "dk1",
|
|
855
863
|
bg2: "lt2",
|
|
@@ -862,7 +870,7 @@ var Re = {
|
|
|
862
870
|
accent6: "accent6",
|
|
863
871
|
hlink: "hlink",
|
|
864
872
|
folHlink: "folHlink"
|
|
865
|
-
},
|
|
873
|
+
}, Be = Object.freeze([
|
|
866
874
|
"lt1",
|
|
867
875
|
"dk1",
|
|
868
876
|
"lt2",
|
|
@@ -875,7 +883,7 @@ var Re = {
|
|
|
875
883
|
"accent6",
|
|
876
884
|
"hlink",
|
|
877
885
|
"folHlink"
|
|
878
|
-
]),
|
|
886
|
+
]), Ve = Object.freeze([
|
|
879
887
|
"dk1",
|
|
880
888
|
"lt1",
|
|
881
889
|
"dk2",
|
|
@@ -888,15 +896,15 @@ var Re = {
|
|
|
888
896
|
"accent6",
|
|
889
897
|
"hlink",
|
|
890
898
|
"folHlink"
|
|
891
|
-
]),
|
|
892
|
-
function
|
|
899
|
+
]), He = new Map(Be.map((e, t) => [e, t]));
|
|
900
|
+
function Ue(e, t, n) {
|
|
893
901
|
return Math.max(t, Math.min(n, e));
|
|
894
902
|
}
|
|
895
|
-
function
|
|
896
|
-
let t =
|
|
903
|
+
function We(e) {
|
|
904
|
+
let t = Ue(e, -1, 1);
|
|
897
905
|
return Math.abs(t) < 1e-12 ? 0 : t;
|
|
898
906
|
}
|
|
899
|
-
function
|
|
907
|
+
function Ge(e) {
|
|
900
908
|
let t = function(e) {
|
|
901
909
|
let t = e.replace(/^#/, "").toUpperCase();
|
|
902
910
|
if (t.length === 8) return t.slice(2);
|
|
@@ -905,364 +913,31 @@ function Ue(e) {
|
|
|
905
913
|
}(e), n = parseInt(t.slice(0, 2), 16) / 255, r = parseInt(t.slice(2, 4), 16) / 255, i = parseInt(t.slice(4, 6), 16) / 255;
|
|
906
914
|
return (Math.max(n, r, i) + Math.min(n, r, i)) / 2 * 255;
|
|
907
915
|
}
|
|
908
|
-
function
|
|
916
|
+
function Ke(e) {
|
|
909
917
|
let t = e.replace(/^#/, "").toUpperCase();
|
|
910
918
|
if (t.length === 8) return t;
|
|
911
919
|
if (t.length === 6) return "FF" + t;
|
|
912
920
|
throw Error(`Invalid hex: ${e}`);
|
|
913
921
|
}
|
|
914
|
-
function
|
|
922
|
+
function qe(e, t = !1) {
|
|
915
923
|
let n = e;
|
|
916
924
|
return n.length === 8 && (n = n.substring(2, 8)), n.length === 6 && (n = (t ? "00" : "FF") + n), n.toUpperCase();
|
|
917
925
|
}
|
|
918
|
-
|
|
919
|
-
let o = r.sorts, s = o ? o.length : 0;
|
|
920
|
-
if (s === 0) return;
|
|
921
|
-
let c = {};
|
|
922
|
-
if (s > 0) {
|
|
923
|
-
let e = o[0].criteria?.collatorOptions;
|
|
924
|
-
e && (c.caseSensitive = typeof e != "object" || Array.isArray(e) || e.sensitivity !== "case" && e.sensitivity !== "variant" ? "0" : "1");
|
|
925
|
-
}
|
|
926
|
-
c.ref = n.getRange().toString(), c["xmlns:xlrd2"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", t.start("sortState", c);
|
|
927
|
-
for (let e = 0; e < s; e++) {
|
|
928
|
-
let n = o[e], r = n.criteria ?? {}, s = n.index + a.colStart, c = {};
|
|
929
|
-
r.reverse && (c.descending = "1"), c.ref = i.getIntersect({
|
|
930
|
-
colStart: s,
|
|
931
|
-
rowStart: a.rowStart,
|
|
932
|
-
colEnd: s,
|
|
933
|
-
rowEnd: a.rowEnd
|
|
934
|
-
}).toString(), r.sortOn && (c.sortBy = r.sortOn), r.dxfId !== void 0 && (c.dxfId = r.dxfId), r.iconSet !== void 0 && (c.iconSet = r.iconSet), r.customList !== void 0 && (c.customList = r.customList), t.empty("sortCondition", c);
|
|
935
|
-
}
|
|
936
|
-
t.end("sortState");
|
|
937
|
-
}, qe = (e, t, n, r, i = !1) => {
|
|
938
|
-
let a = n.getRange();
|
|
939
|
-
n.isShowTotals() && (a = a.getResizeBy(-1, 0));
|
|
940
|
-
let o = a.getCoords(), s = r.sort, c = r.filter, l = c ? c.conditions : void 0, u = l ? l.length : 0, d = r.hiddenButtons, f = {};
|
|
941
|
-
f.ref = a.toString();
|
|
942
|
-
let p, m = [];
|
|
943
|
-
for (let e = 0; e < u; e++) {
|
|
944
|
-
let t = l[e];
|
|
945
|
-
m[t.index] = { ...t };
|
|
946
|
-
}
|
|
947
|
-
if (Array.isArray(d) && d.length > 0) {
|
|
948
|
-
let e = d.length;
|
|
949
|
-
p = Array(d[e - 1]);
|
|
950
|
-
for (let t = 0; t < e; t++) p[d[t]] = !0;
|
|
951
|
-
}
|
|
952
|
-
if (m || d || p || i) {
|
|
953
|
-
let c = 0;
|
|
954
|
-
r.columns ? c = r.columns.length : i && (c = a.getColumnCount()), t.start("autoFilter", f);
|
|
955
|
-
for (let n = 0; n < c; n++) {
|
|
956
|
-
let r = !0 === d || !0 === p?.[n], i = m[n];
|
|
957
|
-
(i || r) && Ye(e, t, n, i, r);
|
|
958
|
-
}
|
|
959
|
-
s && i && Ke(0, t, n, s, a, o), t.end("autoFilter");
|
|
960
|
-
} else t.empty("autoFilter", f);
|
|
961
|
-
s && !i && Ke(0, t, n, s, a, o);
|
|
962
|
-
}, Je = (e, t, n, r) => {
|
|
963
|
-
let i = {};
|
|
964
|
-
switch (n) {
|
|
965
|
-
case G.Equal:
|
|
966
|
-
i.operator = "equal";
|
|
967
|
-
break;
|
|
968
|
-
case G.GreaterThan:
|
|
969
|
-
i.operator = "greaterThan";
|
|
970
|
-
break;
|
|
971
|
-
case G.GreaterThanOrEqual:
|
|
972
|
-
i.operator = "greaterThanOrEqual";
|
|
973
|
-
break;
|
|
974
|
-
case G.LessThan:
|
|
975
|
-
i.operator = "lessThan";
|
|
976
|
-
break;
|
|
977
|
-
case G.LessThanOrEqual:
|
|
978
|
-
i.operator = "lessThanOrEqual";
|
|
979
|
-
break;
|
|
980
|
-
case G.NotEqual: i.operator = "notEqual";
|
|
981
|
-
}
|
|
982
|
-
i.val = "" + r, t.empty("customFilter", i);
|
|
983
|
-
}, Ye = (e, t, n, r, i) => {
|
|
984
|
-
let a = {};
|
|
985
|
-
a.colId = "" + n, i && (a.hiddenButton = "1"), r ? (t.start("filterColumn", a), ((e, t, n) => {
|
|
986
|
-
let r = n.operator;
|
|
987
|
-
if (r !== D.BuiltInOperatorNames.Expression) if (r !== D.BuiltInOperatorNames.Unique) {
|
|
988
|
-
if (r === D.BuiltInOperatorNames.Color) {
|
|
989
|
-
let e = n.param, r = {};
|
|
990
|
-
e.cellColor !== void 0 && (r.cellColor = e.cellColor ? "1" : "0"), e.styleId !== void 0 && (r.dxfId = e.styleId), t.empty("colorFilter", r);
|
|
991
|
-
}
|
|
992
|
-
if (Xe(r)) if (r === "between") {
|
|
993
|
-
let e = n.param;
|
|
994
|
-
t.start("customFilters", { and: "1" }), Je(0, t, G.GreaterThanOrEqual, e.from), Je(0, t, G.LessThanOrEqual, e.to), t.end("customFilters");
|
|
995
|
-
} else if (r === D.BuiltInOperatorNames.Not) {
|
|
996
|
-
let t = n.param;
|
|
997
|
-
Xe(t.operator) || e.warn("Not rule with non-comparison criteria not supported in OOXML", t);
|
|
998
|
-
} else if (r === D.BuiltInOperatorNames.And || r === D.BuiltInOperatorNames.Or) {
|
|
999
|
-
let i = n.param, a = i.length;
|
|
1000
|
-
if (a > 0) {
|
|
1001
|
-
let n = {};
|
|
1002
|
-
r === D.BuiltInOperatorNames.And && a > 1 && (n.and = "1"), t.start("customFilters", n);
|
|
1003
|
-
for (let t = 0; t < a; t++) {
|
|
1004
|
-
let n = i[t];
|
|
1005
|
-
Xe(n.operator) || e.warn("Only Comparison criteria supported in Union conditions for Table AutoFilters", n);
|
|
1006
|
-
}
|
|
1007
|
-
t.end("customFilters");
|
|
1008
|
-
}
|
|
1009
|
-
} else Xe(r) && (t.start("customFilters"), Je(0, t, n.operator, n.param), t.end("customFilters"));
|
|
1010
|
-
if (r === D.BuiltInOperatorNames.TimePeriod) {
|
|
1011
|
-
let e = n.param, r = {};
|
|
1012
|
-
e.type && (r.type = e.type), e.anchorDate !== void 0 && (r.val = "" + e.anchorDate), e.maxVal !== void 0 && (r.maxVal = "" + e.maxVal), t.empty("dynamicFilter", r);
|
|
1013
|
-
}
|
|
1014
|
-
if (r === D.BuiltInOperatorNames.Average) {
|
|
1015
|
-
let e = n.param, r = {}, i = e.type;
|
|
1016
|
-
i && (i === D.AverageType.Above ? r.type = "aboveAverage" : i === D.AverageType.Below && (r.type = "belowAverage")), e.stdDevs !== void 0 && (r.val = "" + e.stdDevs), t.empty("dynamicFilter", r);
|
|
1017
|
-
}
|
|
1018
|
-
if (r === D.BuiltInOperatorNames.InSet) {
|
|
1019
|
-
let e = n.param;
|
|
1020
|
-
if (e.dateGroups) {
|
|
1021
|
-
let n = e.dateGroups, r = n.length;
|
|
1022
|
-
t.start("dateGroupItem");
|
|
1023
|
-
for (let e = 0; e < r; e++) {
|
|
1024
|
-
let r = n[e], i = {};
|
|
1025
|
-
r.day !== void 0 && (i.day = "" + r.day), r.hour !== void 0 && (i.hour = "" + r.hour), r.minute !== void 0 && (i.minute = "" + r.minute), r.second !== void 0 && (i.second = "" + r.second), r.year !== void 0 && (i.year = "" + r.year), r.month !== void 0 && (i.month = "" + r.month), i.dateTimeGrouping = r.group, t.empty("dateGroupItem", i);
|
|
1026
|
-
}
|
|
1027
|
-
t.end("dateGroupItem");
|
|
1028
|
-
}
|
|
1029
|
-
if (e.items) {
|
|
1030
|
-
let n = e.items, r = n.length;
|
|
1031
|
-
t.start("filters");
|
|
1032
|
-
for (let e = 0; e < r; e++) {
|
|
1033
|
-
let r = n[e];
|
|
1034
|
-
t.empty("filter", { val: "" + r });
|
|
1035
|
-
}
|
|
1036
|
-
t.end("filters");
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
if (r === D.BuiltInOperatorNames.Icon) {
|
|
1040
|
-
let e = n.param, r = {};
|
|
1041
|
-
e.iconSet !== void 0 && (r.iconSet = e.iconSet), e.iconId !== void 0 && (r.iconId = "" + e.iconId), t.empty("iconFilter", r);
|
|
1042
|
-
}
|
|
1043
|
-
if (r === D.BuiltInOperatorNames.TopN) {
|
|
1044
|
-
let e = n.param, r = {};
|
|
1045
|
-
e.percent && (r.percent = "1"), e.top !== void 0 && (r.top = e.top ? "1" : "0"), e.limit !== void 0 && (r.val = "" + e.limit), e.filterVal !== void 0 && (r.filterVal = "" + e.filterVal), t.empty("top10", r);
|
|
1046
|
-
}
|
|
1047
|
-
} else e.warn("Unique conditions not supported in Table AutoFilters", n);
|
|
1048
|
-
else e.warn("Expression conditions not supported in Table AutoFilters", n);
|
|
1049
|
-
})(e, t, r), t.end("filterColumn")) : t.empty("filterColumn", a);
|
|
1050
|
-
}, Xe = (e) => e === D.BuiltInOperatorNames.GreaterThan || e === D.BuiltInOperatorNames.GreaterThanEqualTo || e === D.BuiltInOperatorNames.LessThan || e === D.BuiltInOperatorNames.LessThanEqualTo || e === D.BuiltInOperatorNames.EqualTo || e === D.BuiltInOperatorNames.And || e === D.BuiltInOperatorNames.Or || e === D.BuiltInOperatorNames.Not || e === "between", G = {
|
|
1051
|
-
Equal: "equal",
|
|
1052
|
-
GreaterThan: "greaterThan",
|
|
1053
|
-
GreaterThanOrEqual: "greaterThanOrEqual",
|
|
1054
|
-
LessThan: "lessThan",
|
|
1055
|
-
LessThanOrEqual: "lessThanOrEqual",
|
|
1056
|
-
NotEqual: "notEqual"
|
|
1057
|
-
}, Ze = "16.0000", Qe = 1048575, $e = 16383, et = class {
|
|
1058
|
-
constructor() {
|
|
1059
|
-
this._dxfs = [], this._byKey = /* @__PURE__ */ new Map();
|
|
1060
|
-
}
|
|
1061
|
-
add(e) {
|
|
1062
|
-
let t = JSON.stringify(e), n = this._byKey.get(t);
|
|
1063
|
-
return n === void 0 && (n = this._dxfs.length, this._dxfs.push(e), this._byKey.set(t, n)), n;
|
|
1064
|
-
}
|
|
1065
|
-
getDxfs() {
|
|
1066
|
-
return this._dxfs;
|
|
1067
|
-
}
|
|
1068
|
-
getCount() {
|
|
1069
|
-
return this._dxfs.length;
|
|
1070
|
-
}
|
|
1071
|
-
}, tt = "cfDxfs", nt = {
|
|
1072
|
-
names: /* @__PURE__ */ new Set(),
|
|
1073
|
-
perFormula: [],
|
|
1074
|
-
affects: () => !1
|
|
1075
|
-
}, rt = 1048576, it = (e, t, n) => {
|
|
1076
|
-
if (!n) return [];
|
|
1077
|
-
let r = 0;
|
|
1078
|
-
for (let i = 0; i < n.length; i++) {
|
|
1079
|
-
let a = n[i][0], o = t.getRange(a).getCoords();
|
|
1080
|
-
if (r += (o.rowEnd - o.rowStart + 1) * (o.colEnd - o.colStart + 1), r > rt) return e.warn(`Direct styles cover more than ${rt} cells; not writing the styles from '${a}' on. A range that size belongs in a column or row style.`), n.slice(0, i);
|
|
1081
|
-
}
|
|
1082
|
-
return n;
|
|
1083
|
-
};
|
|
1084
|
-
function at(e, t) {
|
|
1085
|
-
let n = t.type;
|
|
1086
|
-
n === O.ColorStopType.AutoMin ? n = O.ColorStopType.Min : n === O.ColorStopType.AutoMax && (n = O.ColorStopType.Max), e.empty("cfvo", {
|
|
1087
|
-
type: n,
|
|
1088
|
-
val: t.value,
|
|
1089
|
-
gte: t.exclusive ? "0" : void 0
|
|
1090
|
-
});
|
|
1091
|
-
}
|
|
1092
|
-
function ot(e, t) {
|
|
1093
|
-
let n = {
|
|
1094
|
-
type: t.type,
|
|
1095
|
-
gte: t.exclusive ? "0" : void 0
|
|
1096
|
-
};
|
|
1097
|
-
t.value === void 0 ? e.empty("x14:cfvo", n) : (e.start("x14:cfvo", n), e.start("xm:f"), e.text(t.value), e.end("xm:f"), e.end("x14:cfvo"));
|
|
1098
|
-
}
|
|
1099
|
-
var st = /* @__PURE__ */ new Set([
|
|
1100
|
-
N.IconSet.Arrows3,
|
|
1101
|
-
N.IconSet.ArrowsGray3,
|
|
1102
|
-
N.IconSet.Flags3,
|
|
1103
|
-
N.IconSet.Signs3,
|
|
1104
|
-
N.IconSet.Symbols3,
|
|
1105
|
-
N.IconSet.Symbols3_2,
|
|
1106
|
-
N.IconSet.TrafficLights3,
|
|
1107
|
-
N.IconSet.TrafficLights3_2,
|
|
1108
|
-
N.IconSet.Arrows4,
|
|
1109
|
-
N.IconSet.ArrowsGray4,
|
|
1110
|
-
N.IconSet.Rating4,
|
|
1111
|
-
N.IconSet.RedToBlack4,
|
|
1112
|
-
N.IconSet.TrafficLights4,
|
|
1113
|
-
N.IconSet.Arrows5,
|
|
1114
|
-
N.IconSet.ArrowsGray5,
|
|
1115
|
-
N.IconSet.Quarters5,
|
|
1116
|
-
N.IconSet.Rating5
|
|
1117
|
-
]);
|
|
1118
|
-
function ct(e) {
|
|
1119
|
-
return (e.icon?.length ?? 0) > 0 || e.iconSet !== void 0 && !st.has(e.iconSet);
|
|
1120
|
-
}
|
|
1121
|
-
function lt(e, t, n, r, i, a, o, s, c) {
|
|
1122
|
-
let l = r.scale, u = l ? { type: l.type } : p(r.condition, i, (t) => e.warn(t));
|
|
1123
|
-
if (!u) return r.condition || e.warn("Skipping conditional format with neither a condition nor a scale."), !1;
|
|
1124
|
-
r.ext && e.warn("Conditional format extension payload is not written to xlsx; it will be lost.");
|
|
1125
|
-
let d = {
|
|
1126
|
-
type: u.type,
|
|
1127
|
-
dxfId: r.style && Object.keys(r.style).length > 0 ? s.add(r.style) : void 0,
|
|
1128
|
-
priority: o,
|
|
1129
|
-
stopIfTrue: K(r.stopIfTrue),
|
|
1130
|
-
aboveAverage: K(u.aboveAverage),
|
|
1131
|
-
equalAverage: K(u.equalAverage),
|
|
1132
|
-
stdDev: u.stdDev,
|
|
1133
|
-
bottom: K(u.bottom),
|
|
1134
|
-
percent: K(u.percent),
|
|
1135
|
-
rank: u.rank,
|
|
1136
|
-
operator: u.operator,
|
|
1137
|
-
text: u.text,
|
|
1138
|
-
timePeriod: u.timePeriod
|
|
1139
|
-
}, m;
|
|
1140
|
-
l?.type === O.ScaleType.DataBar && function(e) {
|
|
1141
|
-
if (e.gradient || e.borderColor || e.negativeFillColor || e.negativeBorderColor || e.axisColor || e.axisPosition || e.direction) return !0;
|
|
1142
|
-
let t = e.stops, n = t ? t.length : 0;
|
|
1143
|
-
for (let e = 0; e < n; e++) {
|
|
1144
|
-
let n = t[e].type;
|
|
1145
|
-
if (n === O.ColorStopType.AutoMin || n === O.ColorStopType.AutoMax) return !0;
|
|
1146
|
-
}
|
|
1147
|
-
return !1;
|
|
1148
|
-
}(l) && (m = f(T.uuidV4), c.push({
|
|
1149
|
-
guid: m,
|
|
1150
|
-
sqref: a,
|
|
1151
|
-
priority: o,
|
|
1152
|
-
scale: l
|
|
1153
|
-
}));
|
|
1154
|
-
let h = u.formulas, g = h ? h.length : 0;
|
|
1155
|
-
if (g === 0 && !l) return t.empty("cfRule", d), !0;
|
|
1156
|
-
t.start("cfRule", d);
|
|
1157
|
-
for (let e = 0; e < g; e++) t.start("formula"), t.text(h[e]), t.end("formula");
|
|
1158
|
-
if (l?.type === O.ScaleType.ColorScale) {
|
|
1159
|
-
let e = l.stops ?? [];
|
|
1160
|
-
t.start("colorScale");
|
|
1161
|
-
for (let n = 0; n < e.length; n++) at(t, e[n]);
|
|
1162
|
-
for (let r = 0; r < e.length; r++) U(t, n, e[r].color, "color");
|
|
1163
|
-
t.end("colorScale");
|
|
1164
|
-
} else if (l?.type === O.ScaleType.DataBar) {
|
|
1165
|
-
let e = l.stops ?? [];
|
|
1166
|
-
t.start("dataBar", {
|
|
1167
|
-
minLength: l.minLength,
|
|
1168
|
-
maxLength: l.maxLength,
|
|
1169
|
-
showValue: K(l.showValue)
|
|
1170
|
-
});
|
|
1171
|
-
for (let n = 0; n < e.length; n++) at(t, e[n]);
|
|
1172
|
-
l.color && U(t, n, l.color, "color"), t.end("dataBar");
|
|
1173
|
-
} else if (l?.type === O.ScaleType.IconSet) {
|
|
1174
|
-
let e = l.stops ?? [];
|
|
1175
|
-
t.start("iconSet", {
|
|
1176
|
-
iconSet: l.iconSet,
|
|
1177
|
-
reverse: K(l.reverse),
|
|
1178
|
-
showValue: K(l.showValue)
|
|
1179
|
-
});
|
|
1180
|
-
for (let n = 0; n < e.length; n++) at(t, e[n]);
|
|
1181
|
-
t.end("iconSet");
|
|
1182
|
-
}
|
|
1183
|
-
return m && (t.start("extLst"), t.start("ext", {
|
|
1184
|
-
uri: y,
|
|
1185
|
-
"xmlns:x14": v
|
|
1186
|
-
}), t.start("x14:id"), t.text(m), t.end("x14:id"), t.end("ext"), t.end("extLst")), t.end("cfRule"), !0;
|
|
1187
|
-
}
|
|
1188
|
-
function ut(e) {
|
|
1189
|
-
return e.split(" ")[0].split(":")[0];
|
|
1190
|
-
}
|
|
1191
|
-
function dt(e) {
|
|
1192
|
-
if (typeof e == "string") return e.split(",").join(" ");
|
|
1193
|
-
if (Array.isArray(e)) {
|
|
1194
|
-
let t = [];
|
|
1195
|
-
for (let n = 0; n < e.length; n++) {
|
|
1196
|
-
let r = S.rangeToString(e[n]);
|
|
1197
|
-
r && t.push(r);
|
|
1198
|
-
}
|
|
1199
|
-
return t.length > 0 ? t.join(" ") : null;
|
|
1200
|
-
}
|
|
1201
|
-
return S.rangeToString(e);
|
|
1202
|
-
}
|
|
1203
|
-
function K(e) {
|
|
1204
|
-
if (e !== void 0) return e ? "1" : "0";
|
|
1205
|
-
}
|
|
1206
|
-
function ft(e) {
|
|
1207
|
-
if (typeof e != "string") return !1;
|
|
1208
|
-
let t = !1;
|
|
1209
|
-
for (let n = 0; n < e.length; n++) {
|
|
1210
|
-
let r = e[n];
|
|
1211
|
-
if (r === "\"") t = !t;
|
|
1212
|
-
else if (r === "!" && !t) return !0;
|
|
1213
|
-
}
|
|
1214
|
-
return !1;
|
|
1215
|
-
}
|
|
1216
|
-
var pt = {
|
|
1217
|
-
r: void 0,
|
|
1218
|
-
s: void 0,
|
|
1219
|
-
t: void 0,
|
|
1220
|
-
cm: void 0,
|
|
1221
|
-
vm: void 0
|
|
1222
|
-
}, mt = {
|
|
1223
|
-
r: void 0,
|
|
1224
|
-
s: void 0,
|
|
1225
|
-
customFormat: void 0,
|
|
1226
|
-
hidden: void 0,
|
|
1227
|
-
ht: void 0,
|
|
1228
|
-
customHeight: void 0,
|
|
1229
|
-
"x14ac:dyDescent": "0.25",
|
|
1230
|
-
outlineLevel: void 0,
|
|
1231
|
-
collapsed: void 0
|
|
1232
|
-
}, ht = {
|
|
1233
|
-
t: void 0,
|
|
1234
|
-
aca: void 0,
|
|
1235
|
-
ref: void 0,
|
|
1236
|
-
ca: void 0,
|
|
1237
|
-
si: void 0
|
|
1238
|
-
}, gt = {
|
|
1239
|
-
t: "shared",
|
|
1240
|
-
aca: void 0,
|
|
1241
|
-
ref: void 0,
|
|
1242
|
-
ca: void 0,
|
|
1243
|
-
si: void 0
|
|
1244
|
-
}, _t = {
|
|
1245
|
-
t: "array",
|
|
1246
|
-
aca: void 0,
|
|
1247
|
-
ref: void 0,
|
|
1248
|
-
ca: void 0,
|
|
1249
|
-
si: void 0
|
|
1250
|
-
};
|
|
1251
|
-
function q(e, t, n, r, i = !1, a = !1) {
|
|
926
|
+
function K(e, t, n, r, i = !1, a = !1) {
|
|
1252
927
|
let o = r.getTheme();
|
|
1253
928
|
if (i && t.start("fill"), typeof n == "string" && (n = {
|
|
1254
|
-
type:
|
|
929
|
+
type: N.Type.Solid,
|
|
1255
930
|
color: n
|
|
1256
|
-
}), n.type ===
|
|
1257
|
-
else if (n.type ===
|
|
931
|
+
}), n.type === N.Type.None) i ? t.empty("patternFill", { patternType: "none" }) : t.empty("noFill");
|
|
932
|
+
else if (n.type === N.Type.Solid) {
|
|
1258
933
|
let e = n;
|
|
1259
|
-
i ? t.start("patternFill", { patternType: "solid" }) : t.start("solidFill"), e.color && (i ?
|
|
1260
|
-
} else if (n.type ===
|
|
934
|
+
i ? t.start("patternFill", { patternType: "solid" }) : t.start("solidFill"), e.color && (i ? G(t, o, e.color, "fgColor") : U(t, o, e.color)), i ? t.end("patternFill") : t.end("solidFill");
|
|
935
|
+
} else if (n.type === N.Type.Pattern) {
|
|
1261
936
|
let e = n, r = e.patternType || "solid";
|
|
1262
|
-
t.start("patternFill", { patternType: r }), e.foreground && (i ?
|
|
1263
|
-
} else if (n.type ===
|
|
937
|
+
t.start("patternFill", { patternType: r }), e.foreground && (i ? G(t, o, a ? e.background : e.foreground, "fgColor") : U(t, o, a ? e.background : e.foreground)), e.background && (i ? G(t, o, a ? e.foreground : e.background, "bgColor") : U(t, o, a ? e.foreground : e.background)), t.end("patternFill");
|
|
938
|
+
} else if (n.type === N.Type.Gradient && i) {
|
|
1264
939
|
let e = n, r = {}, i = e.gradientType;
|
|
1265
|
-
if (i !==
|
|
940
|
+
if (i !== N.GradientType.Path && i !== N.GradientType.Linear || (r.type = i), e.angle !== void 0) {
|
|
1266
941
|
let t = (e.angle - 90) % 360;
|
|
1267
942
|
t !== 0 && (r.degree = String(t));
|
|
1268
943
|
}
|
|
@@ -1276,10 +951,10 @@ function q(e, t, n, r, i = !1, a = !1) {
|
|
|
1276
951
|
let t = e;
|
|
1277
952
|
r = t.offset || 0, n = t.color;
|
|
1278
953
|
}
|
|
1279
|
-
t.start("stop", { position: String(r) }), n &&
|
|
954
|
+
t.start("stop", { position: String(r) }), n && G(t, o, n, "color"), t.end("stop");
|
|
1280
955
|
}
|
|
1281
956
|
t.end("gradientFill");
|
|
1282
|
-
} else if (n.type ===
|
|
957
|
+
} else if (n.type === N.Type.Gradient) {
|
|
1283
958
|
let e = n, r = {};
|
|
1284
959
|
e.isRotatedWithShape !== void 0 && (r.rotWithShape = e.isRotatedWithShape ? "1" : "0"), t.start("gradFill", r), t.start("gsLst");
|
|
1285
960
|
let i = e.stops;
|
|
@@ -1290,22 +965,22 @@ function q(e, t, n, r, i = !1, a = !1) {
|
|
|
1290
965
|
let t = e;
|
|
1291
966
|
r = t.offset || 0, n = t.color;
|
|
1292
967
|
}
|
|
1293
|
-
t.start("gs", { pos: String(
|
|
968
|
+
t.start("gs", { pos: String(D.roundAccurately(1e3 * r, 0)) }), n && U(t, o, n), t.end("gs");
|
|
1294
969
|
}
|
|
1295
970
|
t.end("gsLst");
|
|
1296
971
|
let a = e.gradientType;
|
|
1297
|
-
if (a && a !==
|
|
972
|
+
if (a && a !== N.GradientType.Linear) {
|
|
1298
973
|
let n = a === "radial" ? "circle" : a;
|
|
1299
974
|
t.start("path", { path: n });
|
|
1300
975
|
let r = e.focus;
|
|
1301
976
|
if (r) {
|
|
1302
977
|
let e = {};
|
|
1303
|
-
r.t !== void 0 && (e.t = String(
|
|
978
|
+
r.t !== void 0 && (e.t = String(D.roundAccurately(1e3 * r.t, 0))), r.l !== void 0 && (e.l = String(D.roundAccurately(1e3 * r.l, 0))), r.b !== void 0 && (e.b = String(D.roundAccurately(1e3 * r.b, 0))), r.r !== void 0 && (e.r = String(D.roundAccurately(1e3 * r.r, 0))), t.empty("fillToRect", e);
|
|
1304
979
|
}
|
|
1305
980
|
t.end("path");
|
|
1306
981
|
} else {
|
|
1307
982
|
let n = {};
|
|
1308
|
-
e.angle !== void 0 && (n.ang = String(
|
|
983
|
+
e.angle !== void 0 && (n.ang = String(D.roundAccurately(6e4 * e.angle, 0)));
|
|
1309
984
|
let r = e.scaled;
|
|
1310
985
|
r !== void 0 && (n.scaled = r ? "1" : "0"), t.empty("lin", n);
|
|
1311
986
|
}
|
|
@@ -1313,131 +988,141 @@ function q(e, t, n, r, i = !1, a = !1) {
|
|
|
1313
988
|
} else i ? t.empty("patternFill", { patternType: "none" }) : t.empty("noFill");
|
|
1314
989
|
i && t.end("fill");
|
|
1315
990
|
}
|
|
1316
|
-
var
|
|
991
|
+
var Je = (e, t, n, r) => {
|
|
1317
992
|
if (!n) return t.start("ln"), t.empty("noFill"), void t.end("ln");
|
|
1318
993
|
typeof n == "string" && (n = { fill: n });
|
|
1319
994
|
let i = n, a = {};
|
|
1320
|
-
if (i.width !== void 0 && (a.w = String(
|
|
995
|
+
if (i.width !== void 0 && (a.w = String(q(i.width))), i.lineCap !== void 0 && (a.cap = Ye(i.lineCap)), i.compound !== void 0 && (a.cmpd = i.compound), i.align !== void 0 && (a.algn = i.align), t.start("ln", a), K(0, t, i.fill ?? $e, r), Array.isArray(i.dash)) {
|
|
1321
996
|
t.start("custDash");
|
|
1322
997
|
for (let e = 0; e < i.dash.length; e += 2) t.empty("ds", {
|
|
1323
|
-
d: String(
|
|
1324
|
-
sp: String(
|
|
998
|
+
d: String(D.roundAccurately(1e3 * i.dash[e], 0)),
|
|
999
|
+
sp: String(D.roundAccurately(1e3 * (i.dash[e + 1] ?? 0), 0))
|
|
1325
1000
|
});
|
|
1326
1001
|
t.end("custDash");
|
|
1327
1002
|
} else typeof i.dash == "string" && t.empty("prstDash", { val: i.dash });
|
|
1328
|
-
if (i.lineJoin ===
|
|
1329
|
-
else if (i.lineJoin ===
|
|
1330
|
-
else if (i.lineJoin ===
|
|
1003
|
+
if (i.lineJoin === F.LineJoin.Round) t.empty("round");
|
|
1004
|
+
else if (i.lineJoin === F.LineJoin.Bevel) t.empty("bevel");
|
|
1005
|
+
else if (i.lineJoin === F.LineJoin.Miter) {
|
|
1331
1006
|
let e = {};
|
|
1332
|
-
i.miterLimit !== void 0 && (e.lim = String(
|
|
1007
|
+
i.miterLimit !== void 0 && (e.lim = String(D.roundAccurately(1e5 * i.miterLimit, 0))), t.empty("miter", e);
|
|
1333
1008
|
}
|
|
1334
1009
|
t.end("ln");
|
|
1335
|
-
},
|
|
1010
|
+
}, Ye = (e) => e === "round" ? "rnd" : e === "butt" ? "flat" : e === "square" ? "sq" : e, Xe = (e, t, n, r = void 0, i = !1) => {
|
|
1336
1011
|
if (!n || !(n.fill || n.stroke || n.effects?.length || i)) return;
|
|
1337
1012
|
let a = e.getXMLWriter();
|
|
1338
|
-
r && a.start(r), a.pushDefaultNamespace("a"), n.fill &&
|
|
1339
|
-
},
|
|
1013
|
+
r && a.start(r), a.pushDefaultNamespace("a"), n.fill && K(0, a, n.fill, t), n.stroke && Je(0, a, n.stroke, t), n.effects?.length ? Ze(e, a, t.getTheme(), n.effects) : i && a.empty("effectLst"), a.popDefaultNamespace(), r && a.end(r);
|
|
1014
|
+
}, Ze = (e, t, n, r) => {
|
|
1340
1015
|
t.start("effectLst");
|
|
1341
|
-
for (let e of r)
|
|
1016
|
+
for (let e of r) Qe(t, n, e);
|
|
1342
1017
|
t.end("effectLst");
|
|
1343
|
-
},
|
|
1018
|
+
}, Qe = (e, t, n) => {
|
|
1344
1019
|
switch (n.type) {
|
|
1345
|
-
case
|
|
1020
|
+
case M.Type.OuterShadow: {
|
|
1346
1021
|
let r = n, i = {};
|
|
1347
|
-
r.blur !== void 0 && (i.blurRad = String(
|
|
1022
|
+
r.blur !== void 0 && (i.blurRad = String(q(r.blur))), r.distance !== void 0 && (i.dist = String(q(r.distance))), r.angle !== void 0 && (i.dir = String(Y(r.angle))), r.alignment !== void 0 && (i.algn = r.alignment), r.isRotatedWithShape !== void 0 && (i.rotWithShape = r.isRotatedWithShape ? "1" : "0"), r.scaleX !== void 0 && (i.sx = String(D.roundAccurately(1e3 * r.scaleX, 0))), r.scaleY !== void 0 && (i.sy = String(D.roundAccurately(1e3 * r.scaleY, 0))), r.skewX !== void 0 && (i.kx = String(Y(r.skewX))), r.skewY !== void 0 && (i.ky = String(Y(r.skewY))), e.start("outerShdw", i), U(e, t, r.color), e.end("outerShdw");
|
|
1348
1023
|
break;
|
|
1349
1024
|
}
|
|
1350
|
-
case
|
|
1025
|
+
case M.Type.InnerShadow: {
|
|
1351
1026
|
let r = n, i = {};
|
|
1352
|
-
r.blur !== void 0 && (i.blurRad = String(
|
|
1027
|
+
r.blur !== void 0 && (i.blurRad = String(q(r.blur))), r.distance !== void 0 && (i.dist = String(q(r.distance))), r.angle !== void 0 && (i.dir = String(Y(r.angle))), e.start("innerShdw", i), U(e, t, r.color), e.end("innerShdw");
|
|
1353
1028
|
break;
|
|
1354
1029
|
}
|
|
1355
|
-
case
|
|
1030
|
+
case M.Type.PresetShadow: {
|
|
1356
1031
|
let r = n, i = { prst: r.preset };
|
|
1357
|
-
r.distance !== void 0 && (i.dist = String(
|
|
1032
|
+
r.distance !== void 0 && (i.dist = String(q(r.distance))), r.angle !== void 0 && (i.dir = String(Y(r.angle))), e.start("prstShdw", i), U(e, t, r.color), e.end("prstShdw");
|
|
1358
1033
|
break;
|
|
1359
1034
|
}
|
|
1360
|
-
case
|
|
1035
|
+
case M.Type.Glow: {
|
|
1361
1036
|
let r = n, i = {};
|
|
1362
|
-
r.radius !== void 0 && (i.rad = String(
|
|
1037
|
+
r.radius !== void 0 && (i.rad = String(q(r.radius))), e.start("glow", i), U(e, t, r.color), e.end("glow");
|
|
1363
1038
|
break;
|
|
1364
1039
|
}
|
|
1365
|
-
case
|
|
1040
|
+
case M.Type.SoftEdge: {
|
|
1366
1041
|
let t = n, r = {};
|
|
1367
|
-
t.radius !== void 0 && (r.rad = String(
|
|
1042
|
+
t.radius !== void 0 && (r.rad = String(q(t.radius))), e.empty("softEdge", r);
|
|
1368
1043
|
break;
|
|
1369
1044
|
}
|
|
1370
|
-
case
|
|
1045
|
+
case M.Type.Reflection: {
|
|
1371
1046
|
let t = n, r = {};
|
|
1372
|
-
t.blur !== void 0 && (r.blurRad = String(
|
|
1047
|
+
t.blur !== void 0 && (r.blurRad = String(q(t.blur))), t.distance !== void 0 && (r.dist = String(q(t.distance))), t.angle !== void 0 && (r.dir = String(Y(t.angle))), t.fadeAngle !== void 0 && (r.fadeDir = String(Y(t.fadeAngle))), t.startAlpha !== void 0 && (r.stA = String(D.roundAccurately(1e3 * t.startAlpha, 0))), t.startPosition !== void 0 && (r.stPos = String(D.roundAccurately(1e3 * t.startPosition, 0))), t.endAlpha !== void 0 && (r.endA = String(D.roundAccurately(1e3 * t.endAlpha, 0))), t.endPosition !== void 0 && (r.endPos = String(D.roundAccurately(1e3 * t.endPosition, 0))), t.scaleX !== void 0 && (r.sx = String(D.roundAccurately(1e3 * t.scaleX, 0))), t.scaleY !== void 0 && (r.sy = String(D.roundAccurately(1e3 * t.scaleY, 0))), t.skewX !== void 0 && (r.kx = String(Y(t.skewX))), t.skewY !== void 0 && (r.ky = String(Y(t.skewY))), t.alignment !== void 0 && (r.algn = t.alignment), t.isRotatedWithShape !== void 0 && (r.rotWithShape = t.isRotatedWithShape ? "1" : "0"), e.empty("reflection", r);
|
|
1373
1048
|
break;
|
|
1374
1049
|
}
|
|
1375
1050
|
}
|
|
1376
|
-
},
|
|
1051
|
+
}, $e = { type: "none" }, et = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", tt = {
|
|
1377
1052
|
mime: "image/png",
|
|
1378
1053
|
ext: "png"
|
|
1379
|
-
},
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1054
|
+
}, q = (e = 0) => D.roundAccurately(12700 * e, 0), J = (e = 0) => D.roundAccurately(9525 * e, 0), Y = (e) => 6e4 * e, nt = (e = 0) => D.roundAccurately(100 * e, 2), rt = class {
|
|
1055
|
+
constructor() {
|
|
1056
|
+
this._dxfs = [], this._byKey = /* @__PURE__ */ new Map();
|
|
1057
|
+
}
|
|
1058
|
+
add(e) {
|
|
1059
|
+
let t = JSON.stringify(e), n = this._byKey.get(t);
|
|
1060
|
+
return n === void 0 && (n = this._dxfs.length, this._dxfs.push(e), this._byKey.set(t, n)), n;
|
|
1061
|
+
}
|
|
1062
|
+
getDxfs() {
|
|
1063
|
+
return this._dxfs;
|
|
1064
|
+
}
|
|
1065
|
+
getCount() {
|
|
1066
|
+
return this._dxfs.length;
|
|
1067
|
+
}
|
|
1068
|
+
}, it = "cfDxfs", at = [
|
|
1384
1069
|
"font",
|
|
1385
1070
|
"fill",
|
|
1386
1071
|
"border",
|
|
1387
1072
|
"numberFormat",
|
|
1388
1073
|
"alignment"
|
|
1389
1074
|
];
|
|
1390
|
-
function
|
|
1075
|
+
function ot(e, t, n) {
|
|
1391
1076
|
if (t) {
|
|
1392
1077
|
if (t.named) {
|
|
1393
1078
|
let r = t.named, i = r.toLowerCase(), a = n.namedStyleMap;
|
|
1394
1079
|
if (!a.has(i)) {
|
|
1395
1080
|
a.set(i, "" + a.size);
|
|
1396
1081
|
let t = e.getNamed(r).toJSON();
|
|
1397
|
-
|
|
1082
|
+
ot(e, t.style ?? D.EmptyObject, n), n.namedStyles.push(t);
|
|
1398
1083
|
}
|
|
1399
1084
|
}
|
|
1400
1085
|
t.font && function(e, t, n) {
|
|
1401
1086
|
if (!t) return;
|
|
1402
|
-
let r =
|
|
1087
|
+
let r = E.JSONStableStringify(t), i = n.fontMap;
|
|
1403
1088
|
if (!i.has(r)) {
|
|
1404
1089
|
let e = i.size;
|
|
1405
1090
|
i.set(r, "" + e), n.fonts.push(t);
|
|
1406
1091
|
}
|
|
1407
1092
|
}(0, t.font, n), t.fill && function(e, t, n) {
|
|
1408
1093
|
if (!t) return;
|
|
1409
|
-
let r =
|
|
1094
|
+
let r = E.JSONStableStringify(t), i = n.fillMap;
|
|
1410
1095
|
if (!i.has(r) && typeof t == "object" && t.type) {
|
|
1411
1096
|
let e = i.size;
|
|
1412
1097
|
i.set(r, "" + e), n.fills.push(t);
|
|
1413
1098
|
}
|
|
1414
1099
|
}(0, t.fill, n), t.border && function(e, t, n) {
|
|
1415
1100
|
if (!t) return;
|
|
1416
|
-
let r =
|
|
1101
|
+
let r = E.JSONStableStringify(t), i = n.borderMap;
|
|
1417
1102
|
if (!i.has(r)) {
|
|
1418
1103
|
let e = i.size;
|
|
1419
1104
|
i.set(r, "" + e), n.borders.push(t);
|
|
1420
1105
|
}
|
|
1421
1106
|
}(0, t.border, n), t.numberFormat !== void 0 && function(e, t, n) {
|
|
1422
1107
|
if (!t) return;
|
|
1423
|
-
let r =
|
|
1108
|
+
let r = R.toBuiltInID(t), i = n.numFmtMap;
|
|
1424
1109
|
if (!i.has(r)) {
|
|
1425
1110
|
let e = 0;
|
|
1426
|
-
typeof r == "number" ? e = r : (e = n.numFmtsCustom.length +
|
|
1111
|
+
typeof r == "number" ? e = r : (e = n.numFmtsCustom.length + pt, n.numFmtsCustom.push(r)), i.set(t, "" + e);
|
|
1427
1112
|
}
|
|
1428
1113
|
}(0, t.numberFormat, n);
|
|
1429
1114
|
}
|
|
1430
1115
|
}
|
|
1431
|
-
function
|
|
1116
|
+
function st(e, t, n) {
|
|
1432
1117
|
if (!t) return;
|
|
1433
1118
|
let r = t.name.toLowerCase();
|
|
1434
|
-
n.namedStyleMap.has(r) || (n.namedStyleMap.set(r, "" + n.namedStyleMap.size), n.namedStyles.push(t),
|
|
1119
|
+
n.namedStyleMap.has(r) || (n.namedStyleMap.set(r, "" + n.namedStyleMap.size), n.namedStyles.push(t), ot(e, t.style, n));
|
|
1435
1120
|
}
|
|
1436
|
-
function
|
|
1121
|
+
function ct(e, t, n, r, i = !1) {
|
|
1437
1122
|
let a = r.getDefaultFontSize(), o = r.getTheme().getFontScheme().getMinorFont() ?? "Calibri", s = r.getNormal().getFont().getColor();
|
|
1438
1123
|
t.start("font"), n.weight && n.weight >= 700 && t.empty("b"), n.style && n.style !== "normal" && t.empty("i"), n.strike && t.empty("strike"), n.underline && t.empty("u", { val: n.underline }), n.outline && t.empty("outline"), n.shadow && t.empty("shadow"), n.extend && t.empty("extend");
|
|
1439
1124
|
let c = n.verticalAlign;
|
|
1440
|
-
c && (c === "super" && (c = "superscript"), c === "sub" && (c = "subscript"), t.empty("vertAlign", { val: c })), i ? n.size !== void 0 && t.empty("sz", { val: String(n.size) }) : t.empty("sz", { val: String(n.size ?? a) }),
|
|
1125
|
+
c && (c === "super" && (c = "superscript"), c === "sub" && (c = "subscript"), t.empty("vertAlign", { val: c })), i ? n.size !== void 0 && t.empty("sz", { val: String(n.size) }) : t.empty("sz", { val: String(n.size ?? a) }), G(t, r.getTheme(), n.color ?? s, "color", !i);
|
|
1441
1126
|
let l = !i || n.family && n.family !== o;
|
|
1442
1127
|
if (l && (t.empty("name", { val: n.family ?? o }), n.fallbacks && n.fallbacks.length > 0)) {
|
|
1443
1128
|
let e = n.fallbacks;
|
|
@@ -1447,43 +1132,57 @@ function jt(e, t, n, r, i = !1) {
|
|
|
1447
1132
|
let u = n.scheme ?? (n.family === void 0 ? "minor" : void 0);
|
|
1448
1133
|
l && u !== void 0 && u !== "none" && t.empty("scheme", { val: u }), t.end("font");
|
|
1449
1134
|
}
|
|
1450
|
-
function
|
|
1135
|
+
function X(e, t, n, r, i, a = !1) {
|
|
1451
1136
|
if (!i || i.style === "none" || !i.style) return void (a && !i || t.empty(r));
|
|
1452
1137
|
t.start(r, { style: i.style });
|
|
1453
1138
|
let o = i.color;
|
|
1454
|
-
o &&
|
|
1139
|
+
o && G(t, n, o, "color", !a, a), t.end(r);
|
|
1455
1140
|
}
|
|
1456
|
-
function
|
|
1141
|
+
function lt(e, t, n, r, i = !1) {
|
|
1457
1142
|
let a = {};
|
|
1458
|
-
i ? (a.diagonalUp = "0", a.diagonalDown = "0") : (n.diagonalUp && (a.diagonalUp = "1"), n.diagonalDown && (a.diagonalDown = "1")), t.start("border", a),
|
|
1143
|
+
i ? (a.diagonalUp = "0", a.diagonalDown = "0") : (n.diagonalUp && (a.diagonalUp = "1"), n.diagonalDown && (a.diagonalDown = "1")), t.start("border", a), X(0, t, r, "left", n.left, i), X(0, t, r, "right", n.right, i), X(0, t, r, "top", n.top, i), X(0, t, r, "bottom", n.bottom, i), i ? (X(0, t, r, "vertical", n.vertical, i), X(0, t, r, "horizontal", n.horizontal, i)) : X(0, t, r, "diagonal", n.diagonalUp ?? n.diagonalDown, i), t.end("border");
|
|
1459
1144
|
}
|
|
1460
|
-
function
|
|
1145
|
+
function ut(e, t, n, r = !1) {
|
|
1461
1146
|
let i = {};
|
|
1462
|
-
n.horizontal && n.horizontal !==
|
|
1147
|
+
n.horizontal && n.horizontal !== L.HorizontalAlignment.General && (i.horizontal = n.horizontal), n.vertical && n.vertical !== L.VerticalAlignment.Bottom && (i.vertical = n.vertical);
|
|
1463
1148
|
let a = n.rotation;
|
|
1464
1149
|
n.stacked && (i.textRotation = "255", a = 0), a && (a >= 270 && a < 360 ? a = 360 - a : a > 0 && a <= 90 && (a += 90), i.textRotation = String(a));
|
|
1465
1150
|
let o = n.overflow;
|
|
1466
|
-
switch (o ===
|
|
1467
|
-
case
|
|
1468
|
-
case
|
|
1151
|
+
switch (o === L.Overflow.Wrap && (i.wrapText = "1"), n.indent && (i.indent = "" + n.indent), n.relativeIndent && (i.relativeIndent = "" + n.relativeIndent), n.justifyLastLine && (i.justifyLastLine = "1"), o === L.Overflow.Shrink && (i.shrinkToFit = "1"), n.readingDirection) {
|
|
1152
|
+
case L.ReadingDirection.Auto: break;
|
|
1153
|
+
case L.ReadingDirection.LeftToRight:
|
|
1469
1154
|
i.readingOrder = "1";
|
|
1470
1155
|
break;
|
|
1471
|
-
case
|
|
1156
|
+
case L.ReadingDirection.RightToLeft: i.readingOrder = "2";
|
|
1472
1157
|
}
|
|
1473
1158
|
return Object.keys(i).length > 0 ? i : null;
|
|
1474
1159
|
}
|
|
1475
|
-
function
|
|
1160
|
+
function dt(e, t, n, r, i, a) {
|
|
1476
1161
|
let o = {}, s = null, c = r.named;
|
|
1477
1162
|
c && (s = n.getNamed(c).toJSON().style);
|
|
1478
|
-
let l = r.font ?? s?.font, u = l ? i.fontMap.get(
|
|
1163
|
+
let l = r.font ?? s?.font, u = l ? i.fontMap.get(E.JSONStableStringify(l)) ?? 0 : 0, d = r.fill ?? s?.fill, f = d ? i.fillMap.get(E.JSONStableStringify(d)) ?? 0 : 0, p = r.border ?? s?.border, m = p ? i.borderMap.get(E.JSONStableStringify(p)) ?? 0 : 0, h = r.numberFormat ?? s?.numberFormat;
|
|
1479
1164
|
if (o.numFmtId = (h === void 0 ? void 0 : i.numFmtMap.get(h)) ?? "0", o.fontId = String(u), o.fillId = String(f), o.borderId = String(m), a) {
|
|
1480
|
-
let e = r.named ??
|
|
1165
|
+
let e = r.named ?? I.BuiltInName.Normal;
|
|
1481
1166
|
o.xfId = i.namedStyleMap.get(e.toLowerCase());
|
|
1482
1167
|
}
|
|
1483
1168
|
let g = null, _ = r.alignment ?? s?.alignment;
|
|
1484
|
-
_ && (g =
|
|
1169
|
+
_ && (g = ut(0, 0, _)), r.font && (o.applyFont = "1"), r.fill && (o.applyFill = "1"), r.numberFormat && (o.applyNumberFormat = "1"), r.border && (o.applyBorder = "1"), g && (o.applyAlignment = "1"), r.quotePrefix && (o.quotePrefix = "1"), g ? (t.start("xf", o), g && t.empty("alignment", g), t.end("xf")) : t.empty("xf", o);
|
|
1485
1170
|
}
|
|
1486
|
-
|
|
1171
|
+
function ft(e, t, n, r, i, a = "dxf", o = pt) {
|
|
1172
|
+
if (t.start(a), n.font && ct(0, t, n.font, r, !0), n.numberFormat !== void 0 && n.numberFormat !== null) {
|
|
1173
|
+
let e = R.toBuiltInID(n.numberFormat), r = typeof e == "number", i = r ? R.builtInFormat(e) : String(e);
|
|
1174
|
+
i && t.empty("numFmt", {
|
|
1175
|
+
numFmtId: String(r ? e : o++),
|
|
1176
|
+
formatCode: i
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
if (n.fill && K(0, t, n.fill, r, !0, !0), n.alignment) {
|
|
1180
|
+
let e = ut(0, 0, n.alignment, !0);
|
|
1181
|
+
e && t.empty("alignment", e);
|
|
1182
|
+
}
|
|
1183
|
+
return n.border && lt(0, t, n.border, i, !0), t.end(a), o;
|
|
1184
|
+
}
|
|
1185
|
+
var pt = 164, mt = Object.freeze([
|
|
1487
1186
|
"wholeTable",
|
|
1488
1187
|
"headerRow",
|
|
1489
1188
|
"totalRow",
|
|
@@ -1497,7 +1196,317 @@ var Ft = 164, It = Object.freeze([
|
|
|
1497
1196
|
"lastHeaderCell",
|
|
1498
1197
|
"firstTotalCell",
|
|
1499
1198
|
"lastTotalCell"
|
|
1500
|
-
]),
|
|
1199
|
+
]), ht = A.BuiltInOperatorNames, gt = (e, t, n, r, i, a) => {
|
|
1200
|
+
let o = r.sorts, s = o ? o.length : 0;
|
|
1201
|
+
if (s === 0) return;
|
|
1202
|
+
let c = {};
|
|
1203
|
+
if (s > 0) {
|
|
1204
|
+
let e = o[0].criteria?.collatorOptions;
|
|
1205
|
+
e && (c.caseSensitive = typeof e != "object" || Array.isArray(e) || e.sensitivity !== "case" && e.sensitivity !== "variant" ? "0" : "1");
|
|
1206
|
+
}
|
|
1207
|
+
c.ref = n.getRange().toString(), c["xmlns:xlrd2"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", t.start("sortState", c);
|
|
1208
|
+
for (let e = 0; e < s; e++) {
|
|
1209
|
+
let n = o[e], r = n.criteria ?? {}, s = n.index + a.colStart, c = {};
|
|
1210
|
+
r.reverse && (c.descending = "1"), c.ref = i.getIntersect({
|
|
1211
|
+
colStart: s,
|
|
1212
|
+
rowStart: a.rowStart,
|
|
1213
|
+
colEnd: s,
|
|
1214
|
+
rowEnd: a.rowEnd
|
|
1215
|
+
}).toString(), r.sortOn && (c.sortBy = r.sortOn), r.dxfId !== void 0 && (c.dxfId = r.dxfId), r.iconSet !== void 0 && (c.iconSet = r.iconSet), r.customList !== void 0 && (c.customList = r.customList), t.empty("sortCondition", c);
|
|
1216
|
+
}
|
|
1217
|
+
t.end("sortState");
|
|
1218
|
+
}, _t = (e, t, n, r, i = !1) => {
|
|
1219
|
+
let a = n.getRange();
|
|
1220
|
+
n.isShowTotals() && (a = a.getResizeBy(-1, 0));
|
|
1221
|
+
let o = a.getCoords(), s = r.sort, c = r.filter, l = c ? c.conditions : void 0, u = l ? l.length : 0, d = r.hiddenButtons, f = {};
|
|
1222
|
+
f.ref = a.toString();
|
|
1223
|
+
let p, m = [];
|
|
1224
|
+
for (let e = 0; e < u; e++) {
|
|
1225
|
+
let t = l[e];
|
|
1226
|
+
m[t.index] = { ...t };
|
|
1227
|
+
}
|
|
1228
|
+
if (Array.isArray(d) && d.length > 0) {
|
|
1229
|
+
let e = d.length;
|
|
1230
|
+
p = Array(d[e - 1]);
|
|
1231
|
+
for (let t = 0; t < e; t++) p[d[t]] = !0;
|
|
1232
|
+
}
|
|
1233
|
+
if (m || d || p || i) {
|
|
1234
|
+
let c = 0;
|
|
1235
|
+
r.columns ? c = r.columns.length : i && (c = a.getColumnCount()), t.start("autoFilter", f);
|
|
1236
|
+
for (let n = 0; n < c; n++) {
|
|
1237
|
+
let r = !0 === d || !0 === p?.[n], i = m[n];
|
|
1238
|
+
(i || r) && yt(e, t, n, i, r);
|
|
1239
|
+
}
|
|
1240
|
+
s && i && gt(0, t, n, s, a, o), t.end("autoFilter");
|
|
1241
|
+
} else t.empty("autoFilter", f);
|
|
1242
|
+
s && !i && gt(0, t, n, s, a, o);
|
|
1243
|
+
}, vt = (e, t, n) => {
|
|
1244
|
+
let r = v(n, (t) => e.warn(t, n));
|
|
1245
|
+
if (!r) return;
|
|
1246
|
+
let i = { operator: r.operator };
|
|
1247
|
+
r.val !== void 0 && (i.val = r.val), t.empty("customFilter", i);
|
|
1248
|
+
}, yt = (e, t, n, r, i) => {
|
|
1249
|
+
let a = {};
|
|
1250
|
+
a.colId = "" + n, i && (a.hiddenButton = "1"), r ? (t.start("filterColumn", a), ((e, t, n) => {
|
|
1251
|
+
let r = n.operator;
|
|
1252
|
+
if (r !== A.BuiltInOperatorNames.Expression) if (r !== A.BuiltInOperatorNames.Unique) {
|
|
1253
|
+
if (r === A.BuiltInOperatorNames.Color) {
|
|
1254
|
+
let e = n.param, r = {};
|
|
1255
|
+
e.cellColor !== void 0 && (r.cellColor = e.cellColor ? "1" : "0"), e.styleId !== void 0 && (r.dxfId = e.styleId), t.empty("colorFilter", r);
|
|
1256
|
+
}
|
|
1257
|
+
if (bt(r)) if (r === "between") {
|
|
1258
|
+
let r = n.param;
|
|
1259
|
+
t.start("customFilters", { and: "1" }), vt(e, t, {
|
|
1260
|
+
operator: ht.GreaterThanEqualTo,
|
|
1261
|
+
param: r.from
|
|
1262
|
+
}), vt(e, t, {
|
|
1263
|
+
operator: ht.LessThanEqualTo,
|
|
1264
|
+
param: r.to
|
|
1265
|
+
}), t.end("customFilters");
|
|
1266
|
+
} else if (r === A.BuiltInOperatorNames.Not) {
|
|
1267
|
+
let r = n.param;
|
|
1268
|
+
p(r?.operator) ? (t.start("customFilters"), vt(e, t, n), t.end("customFilters")) : e.warn("Not rule with non-comparison criteria not supported in OOXML", r);
|
|
1269
|
+
} else if (r === A.BuiltInOperatorNames.And || r === A.BuiltInOperatorNames.Or) {
|
|
1270
|
+
let i = n.param, a = i.length;
|
|
1271
|
+
if (a > 0) {
|
|
1272
|
+
let n = {};
|
|
1273
|
+
r === A.BuiltInOperatorNames.And && a > 1 && (n.and = "1"), t.start("customFilters", n);
|
|
1274
|
+
for (let n = 0; n < a; n++) {
|
|
1275
|
+
let r = i[n], a = r.operator === ht.Not && p(r.param?.operator);
|
|
1276
|
+
p(r.operator) || a ? vt(e, t, r) : e.warn("Only Comparison criteria supported in Union conditions for Table AutoFilters", r);
|
|
1277
|
+
}
|
|
1278
|
+
t.end("customFilters");
|
|
1279
|
+
}
|
|
1280
|
+
} else p(r) && (t.start("customFilters"), vt(e, t, n), t.end("customFilters"));
|
|
1281
|
+
if (r === A.BuiltInOperatorNames.TimePeriod) {
|
|
1282
|
+
let e = n.param, r = {};
|
|
1283
|
+
e.type && (r.type = e.type), e.anchorDate !== void 0 && (r.val = "" + e.anchorDate), e.maxVal !== void 0 && (r.maxVal = "" + e.maxVal), t.empty("dynamicFilter", r);
|
|
1284
|
+
}
|
|
1285
|
+
if (r === A.BuiltInOperatorNames.Average) {
|
|
1286
|
+
let e = n.param, r = {}, i = e.type;
|
|
1287
|
+
i && (i === A.AverageType.Above ? r.type = "aboveAverage" : i === A.AverageType.Below && (r.type = "belowAverage")), e.stdDevs !== void 0 && (r.val = "" + e.stdDevs), t.empty("dynamicFilter", r);
|
|
1288
|
+
}
|
|
1289
|
+
if (r === A.BuiltInOperatorNames.InSet) {
|
|
1290
|
+
let e = n.param;
|
|
1291
|
+
if (e.dateGroups) {
|
|
1292
|
+
let n = e.dateGroups, r = n.length;
|
|
1293
|
+
t.start("dateGroupItem");
|
|
1294
|
+
for (let e = 0; e < r; e++) {
|
|
1295
|
+
let r = n[e], i = {};
|
|
1296
|
+
r.day !== void 0 && (i.day = "" + r.day), r.hour !== void 0 && (i.hour = "" + r.hour), r.minute !== void 0 && (i.minute = "" + r.minute), r.second !== void 0 && (i.second = "" + r.second), r.year !== void 0 && (i.year = "" + r.year), r.month !== void 0 && (i.month = "" + r.month), i.dateTimeGrouping = r.group, t.empty("dateGroupItem", i);
|
|
1297
|
+
}
|
|
1298
|
+
t.end("dateGroupItem");
|
|
1299
|
+
}
|
|
1300
|
+
if (e.items) {
|
|
1301
|
+
let n = e.items, r = n.length;
|
|
1302
|
+
t.start("filters");
|
|
1303
|
+
for (let e = 0; e < r; e++) {
|
|
1304
|
+
let r = n[e];
|
|
1305
|
+
t.empty("filter", { val: "" + r });
|
|
1306
|
+
}
|
|
1307
|
+
t.end("filters");
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
if (r === A.BuiltInOperatorNames.Icon) {
|
|
1311
|
+
let e = n.param, r = {};
|
|
1312
|
+
e.iconSet !== void 0 && (r.iconSet = e.iconSet), e.iconId !== void 0 && (r.iconId = "" + e.iconId), t.empty("iconFilter", r);
|
|
1313
|
+
}
|
|
1314
|
+
if (r === A.BuiltInOperatorNames.TopN) {
|
|
1315
|
+
let e = n.param, r = {};
|
|
1316
|
+
e.percent && (r.percent = "1"), e.top !== void 0 && (r.top = e.top ? "1" : "0"), e.limit !== void 0 && (r.val = "" + e.limit), e.filterVal !== void 0 && (r.filterVal = "" + e.filterVal), t.empty("top10", r);
|
|
1317
|
+
}
|
|
1318
|
+
} else e.warn("Unique conditions not supported in Table AutoFilters", n);
|
|
1319
|
+
else e.warn("Expression conditions not supported in Table AutoFilters", n);
|
|
1320
|
+
})(e, t, r), t.end("filterColumn")) : t.empty("filterColumn", a);
|
|
1321
|
+
}, bt = (e) => e === A.BuiltInOperatorNames.GreaterThan || e === A.BuiltInOperatorNames.GreaterThanEqualTo || e === A.BuiltInOperatorNames.LessThan || e === A.BuiltInOperatorNames.LessThanEqualTo || e === A.BuiltInOperatorNames.EqualTo || e === A.BuiltInOperatorNames.And || e === A.BuiltInOperatorNames.Or || e === A.BuiltInOperatorNames.Not || e === "between", xt = "16.0000", St = 1048575, Ct = 16383, wt = {
|
|
1322
|
+
names: /* @__PURE__ */ new Set(),
|
|
1323
|
+
perFormula: [],
|
|
1324
|
+
affects: () => !1
|
|
1325
|
+
}, Tt = 1048576, Et = (e, t, n) => {
|
|
1326
|
+
if (!n) return [];
|
|
1327
|
+
let r = 0;
|
|
1328
|
+
for (let i = 0; i < n.length; i++) {
|
|
1329
|
+
let a = n[i][0], o = t.getRange(a).getCoords();
|
|
1330
|
+
if (r += (o.rowEnd - o.rowStart + 1) * (o.colEnd - o.colStart + 1), r > Tt) return e.warn(`Direct styles cover more than ${Tt} cells; not writing the styles from '${a}' on. A range that size belongs in a column or row style.`), n.slice(0, i);
|
|
1331
|
+
}
|
|
1332
|
+
return n;
|
|
1333
|
+
};
|
|
1334
|
+
function Dt(e, t) {
|
|
1335
|
+
let n = t.type;
|
|
1336
|
+
n === j.ColorStopType.AutoMin ? n = j.ColorStopType.Min : n === j.ColorStopType.AutoMax && (n = j.ColorStopType.Max), e.empty("cfvo", {
|
|
1337
|
+
type: n,
|
|
1338
|
+
val: t.value,
|
|
1339
|
+
gte: t.exclusive ? "0" : void 0
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
function Ot(e, t) {
|
|
1343
|
+
let n = {
|
|
1344
|
+
type: t.type,
|
|
1345
|
+
gte: t.exclusive ? "0" : void 0
|
|
1346
|
+
};
|
|
1347
|
+
t.value === void 0 ? e.empty("x14:cfvo", n) : (e.start("x14:cfvo", n), e.start("xm:f"), e.text(t.value), e.end("xm:f"), e.end("x14:cfvo"));
|
|
1348
|
+
}
|
|
1349
|
+
var kt = /* @__PURE__ */ new Set([
|
|
1350
|
+
I.IconSet.Arrows3,
|
|
1351
|
+
I.IconSet.ArrowsGray3,
|
|
1352
|
+
I.IconSet.Flags3,
|
|
1353
|
+
I.IconSet.Signs3,
|
|
1354
|
+
I.IconSet.Symbols3,
|
|
1355
|
+
I.IconSet.Symbols3_2,
|
|
1356
|
+
I.IconSet.TrafficLights3,
|
|
1357
|
+
I.IconSet.TrafficLights3_2,
|
|
1358
|
+
I.IconSet.Arrows4,
|
|
1359
|
+
I.IconSet.ArrowsGray4,
|
|
1360
|
+
I.IconSet.Rating4,
|
|
1361
|
+
I.IconSet.RedToBlack4,
|
|
1362
|
+
I.IconSet.TrafficLights4,
|
|
1363
|
+
I.IconSet.Arrows5,
|
|
1364
|
+
I.IconSet.ArrowsGray5,
|
|
1365
|
+
I.IconSet.Quarters5,
|
|
1366
|
+
I.IconSet.Rating5
|
|
1367
|
+
]);
|
|
1368
|
+
function At(e) {
|
|
1369
|
+
return (e.icon?.length ?? 0) > 0 || e.iconSet !== void 0 && !kt.has(e.iconSet);
|
|
1370
|
+
}
|
|
1371
|
+
function jt(e, t, n, o, s, c, l, u, d) {
|
|
1372
|
+
let f = o.scale;
|
|
1373
|
+
o.ext && e.warn("Conditional format extension payload is not written to xlsx; it will be lost.");
|
|
1374
|
+
let p = {
|
|
1375
|
+
type: s.type,
|
|
1376
|
+
dxfId: o.style && Object.keys(o.style).length > 0 ? u.add(o.style) : void 0,
|
|
1377
|
+
priority: l,
|
|
1378
|
+
stopIfTrue: Z(o.stopIfTrue),
|
|
1379
|
+
aboveAverage: Z(s.aboveAverage),
|
|
1380
|
+
equalAverage: Z(s.equalAverage),
|
|
1381
|
+
stdDev: s.stdDev,
|
|
1382
|
+
bottom: Z(s.bottom),
|
|
1383
|
+
percent: Z(s.percent),
|
|
1384
|
+
rank: s.rank,
|
|
1385
|
+
operator: s.operator,
|
|
1386
|
+
text: s.text,
|
|
1387
|
+
timePeriod: s.timePeriod
|
|
1388
|
+
}, m;
|
|
1389
|
+
f?.type === j.ScaleType.DataBar && function(e) {
|
|
1390
|
+
if (e.gradient || e.borderColor || e.negativeFillColor || e.negativeBorderColor || e.axisColor || e.axisPosition || e.direction) return !0;
|
|
1391
|
+
let t = e.stops, n = t ? t.length : 0;
|
|
1392
|
+
for (let e = 0; e < n; e++) {
|
|
1393
|
+
let n = t[e].type;
|
|
1394
|
+
if (n === j.ColorStopType.AutoMin || n === j.ColorStopType.AutoMax) return !0;
|
|
1395
|
+
}
|
|
1396
|
+
return !1;
|
|
1397
|
+
}(f) && (m = a(D.uuidV4), d.push({
|
|
1398
|
+
guid: m,
|
|
1399
|
+
sqref: c,
|
|
1400
|
+
priority: l,
|
|
1401
|
+
scale: f
|
|
1402
|
+
}));
|
|
1403
|
+
let h = s.formulas, g = h ? h.length : 0;
|
|
1404
|
+
if (g !== 0 || f) {
|
|
1405
|
+
t.start("cfRule", p);
|
|
1406
|
+
for (let e = 0; e < g; e++) t.start("formula"), t.text(h[e]), t.end("formula");
|
|
1407
|
+
if (f?.type === j.ScaleType.ColorScale) {
|
|
1408
|
+
let e = f.stops ?? [];
|
|
1409
|
+
t.start("colorScale");
|
|
1410
|
+
for (let n = 0; n < e.length; n++) Dt(t, e[n]);
|
|
1411
|
+
for (let r = 0; r < e.length; r++) G(t, n, e[r].color, "color");
|
|
1412
|
+
t.end("colorScale");
|
|
1413
|
+
} else if (f?.type === j.ScaleType.DataBar) {
|
|
1414
|
+
let e = f.stops ?? [];
|
|
1415
|
+
t.start("dataBar", {
|
|
1416
|
+
minLength: f.minLength,
|
|
1417
|
+
maxLength: f.maxLength,
|
|
1418
|
+
showValue: Z(f.showValue)
|
|
1419
|
+
});
|
|
1420
|
+
for (let n = 0; n < e.length; n++) Dt(t, e[n]);
|
|
1421
|
+
f.color && G(t, n, f.color, "color"), t.end("dataBar");
|
|
1422
|
+
} else if (f?.type === j.ScaleType.IconSet) {
|
|
1423
|
+
let e = f.stops ?? [];
|
|
1424
|
+
t.start("iconSet", {
|
|
1425
|
+
iconSet: f.iconSet,
|
|
1426
|
+
reverse: Z(f.reverse),
|
|
1427
|
+
showValue: Z(f.showValue)
|
|
1428
|
+
});
|
|
1429
|
+
for (let n = 0; n < e.length; n++) Dt(t, e[n]);
|
|
1430
|
+
t.end("iconSet");
|
|
1431
|
+
}
|
|
1432
|
+
m && (t.start("extLst"), t.start("ext", {
|
|
1433
|
+
uri: i,
|
|
1434
|
+
"xmlns:x14": r
|
|
1435
|
+
}), t.start("x14:id"), t.text(m), t.end("x14:id"), t.end("ext"), t.end("extLst")), t.end("cfRule");
|
|
1436
|
+
} else t.empty("cfRule", p);
|
|
1437
|
+
}
|
|
1438
|
+
function Mt(e) {
|
|
1439
|
+
return e.split(" ")[0].split(":")[0];
|
|
1440
|
+
}
|
|
1441
|
+
function Nt(e) {
|
|
1442
|
+
if (typeof e == "string") return e.split(",").join(" ");
|
|
1443
|
+
if (Array.isArray(e)) {
|
|
1444
|
+
let t = [];
|
|
1445
|
+
for (let n = 0; n < e.length; n++) {
|
|
1446
|
+
let r = T.rangeToString(e[n]);
|
|
1447
|
+
r && t.push(r);
|
|
1448
|
+
}
|
|
1449
|
+
return t.length > 0 ? t.join(" ") : null;
|
|
1450
|
+
}
|
|
1451
|
+
return T.rangeToString(e);
|
|
1452
|
+
}
|
|
1453
|
+
function Z(e) {
|
|
1454
|
+
if (e !== void 0) return e ? "1" : "0";
|
|
1455
|
+
}
|
|
1456
|
+
function Pt(e) {
|
|
1457
|
+
if (typeof e != "string") return !1;
|
|
1458
|
+
let t = !1;
|
|
1459
|
+
for (let n = 0; n < e.length; n++) {
|
|
1460
|
+
let r = e[n];
|
|
1461
|
+
if (r === "\"") t = !t;
|
|
1462
|
+
else if (r === "!" && !t) return !0;
|
|
1463
|
+
}
|
|
1464
|
+
return !1;
|
|
1465
|
+
}
|
|
1466
|
+
function Ft(e) {
|
|
1467
|
+
let t = e.formulas, n = t ? t.length : 0;
|
|
1468
|
+
for (let e = 0; e < n; e++) if (Pt(t[e])) return !0;
|
|
1469
|
+
return !1;
|
|
1470
|
+
}
|
|
1471
|
+
var It = {
|
|
1472
|
+
r: void 0,
|
|
1473
|
+
s: void 0,
|
|
1474
|
+
t: void 0,
|
|
1475
|
+
cm: void 0,
|
|
1476
|
+
vm: void 0
|
|
1477
|
+
}, Lt = {
|
|
1478
|
+
r: void 0,
|
|
1479
|
+
s: void 0,
|
|
1480
|
+
customFormat: void 0,
|
|
1481
|
+
hidden: void 0,
|
|
1482
|
+
ht: void 0,
|
|
1483
|
+
customHeight: void 0,
|
|
1484
|
+
"x14ac:dyDescent": "0.25",
|
|
1485
|
+
outlineLevel: void 0,
|
|
1486
|
+
collapsed: void 0
|
|
1487
|
+
}, Rt = {
|
|
1488
|
+
t: void 0,
|
|
1489
|
+
aca: void 0,
|
|
1490
|
+
ref: void 0,
|
|
1491
|
+
ca: void 0,
|
|
1492
|
+
si: void 0
|
|
1493
|
+
}, zt = {
|
|
1494
|
+
t: "shared",
|
|
1495
|
+
aca: void 0,
|
|
1496
|
+
ref: void 0,
|
|
1497
|
+
ca: void 0,
|
|
1498
|
+
si: void 0
|
|
1499
|
+
}, Bt = {
|
|
1500
|
+
t: "array",
|
|
1501
|
+
aca: void 0,
|
|
1502
|
+
ref: void 0,
|
|
1503
|
+
ca: void 0,
|
|
1504
|
+
si: void 0
|
|
1505
|
+
};
|
|
1506
|
+
function Vt(e, t, n, r) {
|
|
1507
|
+
n && (t.start(r), t.empty("latin", { typeface: n }), t.empty("ea", { typeface: "" }), t.empty("cs", { typeface: "" }), t.end(r));
|
|
1508
|
+
}
|
|
1509
|
+
var Ht = (e) => e.toISOString().split(".")[0] + "Z", Ut = (e, t, n) => {
|
|
1501
1510
|
switch (t) {
|
|
1502
1511
|
case "creator":
|
|
1503
1512
|
e.start("dc:creator"), e.text(n), e.end("dc:creator");
|
|
@@ -1512,8 +1521,8 @@ var Ft = 164, It = Object.freeze([
|
|
|
1512
1521
|
}
|
|
1513
1522
|
}, Q = (e, t, n, r) => {
|
|
1514
1523
|
t.start(n), t.text(r), t.end(n);
|
|
1515
|
-
},
|
|
1516
|
-
let r = n.getSheets().getItems({ visibility:
|
|
1524
|
+
}, Wt = (e, t, n) => {
|
|
1525
|
+
let r = n.getSheets().getItems({ visibility: P.Visibility.Hidden }).map((e) => e.getName()), i = n.getNames().getItems({ type: "formula" }).filter((e) => !!e.getRanges?.()).map((e) => e.getName());
|
|
1517
1526
|
t.start("HeadingPairs"), t.start("vt:vector", {
|
|
1518
1527
|
size: i.length > 0 ? "4" : "2",
|
|
1519
1528
|
baseType: "variant"
|
|
@@ -1524,7 +1533,7 @@ var Ft = 164, It = Object.freeze([
|
|
|
1524
1533
|
for (let e of r) t.start("vt:lpstr"), t.text(e), t.end("vt:lpstr");
|
|
1525
1534
|
for (let e of i) t.start("vt:lpstr"), t.text(e), t.end("vt:lpstr");
|
|
1526
1535
|
t.end("vt:vector"), t.end("TitlesOfParts");
|
|
1527
|
-
},
|
|
1536
|
+
}, Gt = {
|
|
1528
1537
|
minSupportedVersion: "120000",
|
|
1529
1538
|
copy: "1",
|
|
1530
1539
|
pasteAll: "1",
|
|
@@ -1536,17 +1545,17 @@ var Ft = 164, It = Object.freeze([
|
|
|
1536
1545
|
clearComments: "1",
|
|
1537
1546
|
assign: "1",
|
|
1538
1547
|
coerce: "1"
|
|
1539
|
-
},
|
|
1548
|
+
}, Kt = (e, t, n = D.EmptyArray) => {
|
|
1540
1549
|
if (!t) return { ...n };
|
|
1541
1550
|
let { text: r, runs: i, color: a, size: o, kern: s, weight: c, style: l, b: u, i: d, spc: f, baseline: p, ...m } = t, h = {
|
|
1542
1551
|
...n,
|
|
1543
1552
|
...m
|
|
1544
1553
|
};
|
|
1545
|
-
return o !== void 0 && (h.sz = "" +
|
|
1546
|
-
},
|
|
1554
|
+
return o !== void 0 && (h.sz = "" + nt(o)), u !== void 0 && (h.b = u ? "1" : "0"), c !== void 0 && (h.b = c > 500 ? "1" : "0"), d !== void 0 && (h.i = d ? "1" : "0"), l !== void 0 && (h.i = l === "italic" ? "1" : "0"), s !== void 0 && (h.kern = "" + nt(s)), f !== void 0 && (h.spc = "" + nt(f)), p !== void 0 && (h.baseline = "" + nt(p)), h;
|
|
1555
|
+
}, qt = (e, t, n) => {
|
|
1547
1556
|
if (!n) return;
|
|
1548
1557
|
let r = e.getXMLWriter();
|
|
1549
|
-
r.start("txBody"), r.pushDefaultNamespace("a"),
|
|
1558
|
+
r.start("txBody"), r.pushDefaultNamespace("a"), Yt(e, t, {
|
|
1550
1559
|
vertOverflow: "clip",
|
|
1551
1560
|
horzOverflow: "clip",
|
|
1552
1561
|
rtlCol: "0",
|
|
@@ -1555,28 +1564,28 @@ var Ft = 164, It = Object.freeze([
|
|
|
1555
1564
|
if (!n) return;
|
|
1556
1565
|
let r = e.getXMLWriter();
|
|
1557
1566
|
r.pushDefaultNamespace("a"), typeof n == "string" && (n = { runs: [{ text: n }] }), r.start("p"), r.empty("pPr", { algn: "ctr" });
|
|
1558
|
-
let i =
|
|
1559
|
-
...
|
|
1567
|
+
let i = Kt(0, n, {
|
|
1568
|
+
...Xt,
|
|
1560
1569
|
size: t.getDefaultFontSize()
|
|
1561
1570
|
}), a = n?.runs, o = a ? a.length : 0;
|
|
1562
1571
|
if (o > 0) for (let e = 0; e < o; e++) {
|
|
1563
1572
|
let n = a[e];
|
|
1564
1573
|
r.start("r", {});
|
|
1565
|
-
let i =
|
|
1566
|
-
o ? (r.start("rPr", i),
|
|
1574
|
+
let i = Kt(0, n, Xt), o = n.color;
|
|
1575
|
+
o ? (r.start("rPr", i), K(0, r, o, t), r.end("rPr")) : r.empty("rPr", i), r.start("t"), r.text(n?.text ?? ""), r.end("t"), r.end("r");
|
|
1567
1576
|
}
|
|
1568
1577
|
else r.empty("endParaRPr", i);
|
|
1569
1578
|
r.end("p"), r.popDefaultNamespace();
|
|
1570
1579
|
})(e, t, n), r.popDefaultNamespace(), r.end("txBody");
|
|
1571
|
-
},
|
|
1580
|
+
}, Jt = (e, t, n) => {
|
|
1572
1581
|
if (!n) return;
|
|
1573
|
-
let r = e.getXMLWriter(), i =
|
|
1582
|
+
let r = e.getXMLWriter(), i = Kt(0, n);
|
|
1574
1583
|
r.empty("defRPr", i);
|
|
1575
|
-
},
|
|
1584
|
+
}, Yt = (e, t, n) => {
|
|
1576
1585
|
if (!n) return;
|
|
1577
1586
|
let r = e.getXMLWriter(), { spAutoFit: i, ...a } = n;
|
|
1578
1587
|
i ? (r.start("bodyPr", a), r.empty("spAutoFit"), r.end("bodyPr")) : r.empty("bodyPr", a);
|
|
1579
|
-
},
|
|
1588
|
+
}, Xt = Object.freeze({ lang: "en-US" }), Zt = (e, t) => {
|
|
1580
1589
|
if (t.length !== 0) {
|
|
1581
1590
|
e.start("a:extLst");
|
|
1582
1591
|
for (let n of t) {
|
|
@@ -1585,9 +1594,9 @@ var Ft = 164, It = Object.freeze([
|
|
|
1585
1594
|
}
|
|
1586
1595
|
e.end("a:extLst");
|
|
1587
1596
|
}
|
|
1588
|
-
},
|
|
1597
|
+
}, Qt = async (e, t, n, r, i) => {
|
|
1589
1598
|
let a = e.getSharedStates(), o = r.getContent().getResource(), s = await o.getExternalURI(), c;
|
|
1590
|
-
if (s) c = e.addExternal(
|
|
1599
|
+
if (s) c = e.addExternal(et, s);
|
|
1591
1600
|
else if (c = n.get(o), !c) {
|
|
1592
1601
|
let t = a.get("imagesWritten");
|
|
1593
1602
|
t || (t = /* @__PURE__ */ new Map(), a.set("imagesWritten", t));
|
|
@@ -1596,11 +1605,11 @@ var Ft = 164, It = Object.freeze([
|
|
|
1596
1605
|
let e = await o.toBuffer();
|
|
1597
1606
|
r = {
|
|
1598
1607
|
bytes: new Uint8Array(e),
|
|
1599
|
-
type: await o.getType() ??
|
|
1608
|
+
type: await o.getType() ?? tt,
|
|
1600
1609
|
index: t.size + 1
|
|
1601
1610
|
}, t.set(o, r);
|
|
1602
1611
|
}
|
|
1603
|
-
c = e.addBinary(r.bytes, r.type.mime,
|
|
1612
|
+
c = e.addBinary(r.bytes, r.type.mime, et, `../media/image${r.index}.${r.type.ext}`, !0), n.set(o, c);
|
|
1604
1613
|
}
|
|
1605
1614
|
let l = { "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships" };
|
|
1606
1615
|
s ? l["r:link"] = c.relId : l["r:embed"] = c.relId;
|
|
@@ -1614,19 +1623,19 @@ var Ft = 164, It = Object.freeze([
|
|
|
1614
1623
|
}
|
|
1615
1624
|
]);
|
|
1616
1625
|
let d = e.getXMLWriter();
|
|
1617
|
-
d.start("pic"), d.start("nvPicPr"),
|
|
1618
|
-
},
|
|
1626
|
+
d.start("pic"), d.start("nvPicPr"), cn(e, d, r, i, t), un(e, d, r, i), d.end("nvPicPr"), d.start("blipFill"), d.start("a:blip", l), Zt(d, u), d.end("a:blip"), d.start("a:stretch"), d.empty("a:fillRect"), d.end("a:stretch"), d.end("blipFill"), on(e, t, n, r, i), d.end("pic");
|
|
1627
|
+
}, $t = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart", en = async (e, t, n, r, i, a) => {
|
|
1619
1628
|
let o = i.content?.json, s = o?.xml, c = o?.chartRelId, l = o?.chartTargetPath;
|
|
1620
1629
|
if (!s || !c || !l) return $(e, t, n, r, i);
|
|
1621
1630
|
let u = e.getSharedStates(), d, f = u.get("claimedChartTargets");
|
|
1622
1631
|
if (f || (f = /* @__PURE__ */ new Set(), u.set("claimedChartTargets", f)), f.has(l)) {
|
|
1623
|
-
let a = e.forkPreservedPart(l, "application/vnd.openxmlformats-officedocument.drawingml.chart+xml",
|
|
1632
|
+
let a = e.forkPreservedPart(l, "application/vnd.openxmlformats-officedocument.drawingml.chart+xml", $t, "../charts/chart{n}.xml");
|
|
1624
1633
|
if (!a?.relId) return $(e, t, n, r, i);
|
|
1625
1634
|
d = a.relId;
|
|
1626
|
-
} else f.add(l), d = e.addPreservedRelationship(
|
|
1635
|
+
} else f.add(l), d = e.addPreservedRelationship($t, l, c);
|
|
1627
1636
|
let p = d === c ? s : s.replace(`r:id="${c}"`, `r:id="${d}"`);
|
|
1628
1637
|
a !== void 0 && typeof o?.sourceId == "number" && (p = p.replace(`cNvPr id="${o.sourceId}"`, `cNvPr id="${a}"`)), e.getXMLWriter().raw(p);
|
|
1629
|
-
},
|
|
1638
|
+
}, tn = async (e, t, n, r, i) => $(e, t, n, r, i), nn = async (e, t, n, r, i) => $(e, t, n, r, i), rn = async (e, t, n, r, i) => $(e, t, n, r, i), an = async (e, t, n, r, i, a) => {
|
|
1630
1639
|
let o = i.content?.json, s = o?.xml;
|
|
1631
1640
|
if (!s) return $(e, t, n, r, i);
|
|
1632
1641
|
let c = a !== void 0 && typeof o?.sourceId == "number" ? s.replace(`cNvPr id="${o.sourceId}"`, `cNvPr id="${a}"`) : s;
|
|
@@ -1634,10 +1643,10 @@ var Ft = 164, It = Object.freeze([
|
|
|
1634
1643
|
}, $ = async (e, t, n, r, i) => {
|
|
1635
1644
|
(async (e, t, n, r, i) => {
|
|
1636
1645
|
let a = e.getXMLWriter(), o = {}, s = i.content?.json, c = s?.type ?? "sp", l = t.getStyles();
|
|
1637
|
-
c === "cxnSp" ? (o.macro = "", a.start("cxnSp", o), a.start("nvCxnSpPr"),
|
|
1646
|
+
c === "cxnSp" ? (o.macro = "", a.start("cxnSp", o), a.start("nvCxnSpPr"), cn(e, a, r, i, t), ln(e, a, r, i, t), a.start("cNvCxnSpPr"), a.empty("a:stCnx", {
|
|
1638
1647
|
id: "0",
|
|
1639
1648
|
idx: "0"
|
|
1640
|
-
}), a.end("cNvCxnSpPr"), a.end("nvCxnSpPr"),
|
|
1649
|
+
}), a.end("cNvCxnSpPr"), a.end("nvCxnSpPr"), on(e, t, n, r, i), sn(e, t, n, r, i), qt(e, l, s?.text), a.end("cxnSp")) : c === "grpSp" || (o.macro = "", o.textlink = "", a.start("sp", o), a.start("nvSpPr"), cn(e, a, r, i, t), ln(e, a, r, i, t), a.end("nvSpPr"), on(e, t, n, r, i), sn(e, t, n, r, i), qt(e, l, s?.text), a.end("sp"));
|
|
1641
1650
|
})(e, t, n, r, {
|
|
1642
1651
|
...i,
|
|
1643
1652
|
content: {
|
|
@@ -1655,13 +1664,13 @@ var Ft = 164, It = Object.freeze([
|
|
|
1655
1664
|
}
|
|
1656
1665
|
}
|
|
1657
1666
|
});
|
|
1658
|
-
},
|
|
1667
|
+
}, on = (e, t, n, r, i) => {
|
|
1659
1668
|
let a = e.getXMLWriter(), o = i.content?.json, s = o?.geometry ?? "rect", c = t.getStyles();
|
|
1660
|
-
a.start("spPr"), a.pushDefaultNamespace("a"),
|
|
1661
|
-
},
|
|
1669
|
+
a.start("spPr"), a.pushDefaultNamespace("a"), dn(a, r, i), a.start("prstGeom", { prst: s }), a.empty("avLst"), a.end("prstGeom"), Xe(e, c, o), a.popDefaultNamespace(), a.end("spPr");
|
|
1670
|
+
}, sn = (e, t, n, r, i) => {
|
|
1662
1671
|
let a = e.getXMLWriter();
|
|
1663
1672
|
a.start("style"), a.pushDefaultNamespace("a"), a.start("lnRef", { idx: "1" }), a.start("schemeClr", { val: "accent1" }), a.empty("shade", { val: "15000" }), a.end("schemeClr"), a.end("lnRef"), a.start("fillRef", { idx: "1" }), a.empty("schemeClr", { val: "accent1" }), a.end("fillRef"), a.start("effectRef", { idx: "0" }), a.empty("schemeClr", { val: "accent1" }), a.end("effectRef"), a.start("fontRef", { idx: "minor" }), a.empty("schemeClr", { val: "lt1" }), a.end("fontRef"), a.popDefaultNamespace(), a.end("style");
|
|
1664
|
-
},
|
|
1673
|
+
}, cn = (e, t, n, r, i) => {
|
|
1665
1674
|
let a = e.getSharedStates(), o = a.get("uniqueIdCounter");
|
|
1666
1675
|
o || (o = /* @__PURE__ */ new Map(), a.set("uniqueIdCounter", o));
|
|
1667
1676
|
let s = o.get(i) ?? 1;
|
|
@@ -1677,27 +1686,27 @@ var Ft = 164, It = Object.freeze([
|
|
|
1677
1686
|
"a16:creationId",
|
|
1678
1687
|
{
|
|
1679
1688
|
"xmlns:a16": "http://schemas.microsoft.com/office/drawing/2014/main",
|
|
1680
|
-
id: `{${
|
|
1689
|
+
id: `{${D.uuidV4().toUpperCase()}}`
|
|
1681
1690
|
}
|
|
1682
|
-
]), t.start("cNvPr", c),
|
|
1683
|
-
},
|
|
1691
|
+
]), t.start("cNvPr", c), Zt(t, l), t.end("cNvPr");
|
|
1692
|
+
}, ln = (e, t, n, r, i) => {
|
|
1684
1693
|
t.empty("cNvSpPr");
|
|
1685
|
-
},
|
|
1694
|
+
}, un = (e, t, n, r) => {
|
|
1686
1695
|
let i = {};
|
|
1687
1696
|
if (r.lockAspect && (i.noChangeAspect = "1"), r.locks) for (let e of Object.keys(r.locks)) !0 === r.locks[e] && (i[e] = "1");
|
|
1688
1697
|
t.start("cNvPicPr", {}), t.empty("a:picLocks", i), t.end("cNvPicPr");
|
|
1689
|
-
},
|
|
1698
|
+
}, dn = (e, t, n) => {
|
|
1690
1699
|
let r = t.getBounds(), i = {}, a = n.rotation;
|
|
1691
|
-
a !== void 0 && a !== 0 && (i.rot = "" +
|
|
1692
|
-
x:
|
|
1693
|
-
y:
|
|
1700
|
+
a !== void 0 && a !== 0 && (i.rot = "" + Y(a)), e.start("xfrm", i), e.start("off", {
|
|
1701
|
+
x: J(r.x),
|
|
1702
|
+
y: J(r.y)
|
|
1694
1703
|
}), e.end("off"), e.start("ext", {
|
|
1695
|
-
cx:
|
|
1696
|
-
cy:
|
|
1704
|
+
cx: J(r.width),
|
|
1705
|
+
cy: J(r.height)
|
|
1697
1706
|
}), e.end("ext"), e.end("xfrm");
|
|
1698
|
-
},
|
|
1699
|
-
e.start(t), e.start("col"), e.text(n.c ?? 0), e.end("col"), e.start("colOff"), e.text(
|
|
1700
|
-
},
|
|
1707
|
+
}, fn = (e, t, n) => {
|
|
1708
|
+
e.start(t), e.start("col"), e.text(n.c ?? 0), e.end("col"), e.start("colOff"), e.text(J(n.x)), e.end("colOff"), e.start("row"), e.text(n.r ?? 0), e.end("row"), e.start("rowOff"), e.text(J(n.y)), e.end("rowOff"), e.end(t);
|
|
1709
|
+
}, pn = 0, mn = (e, t, n, r) => {
|
|
1701
1710
|
let i = r.columns, a = i ? i.length : 0;
|
|
1702
1711
|
if (a !== 0) {
|
|
1703
1712
|
t.start("tableColumns", { count: a });
|
|
@@ -1707,11 +1716,11 @@ var Ft = 164, It = Object.freeze([
|
|
|
1707
1716
|
let r = {};
|
|
1708
1717
|
r.id = e + 1, r.name = n.name ?? `Column${e + 1}`;
|
|
1709
1718
|
let a = null, o = n.totalsRowFormula;
|
|
1710
|
-
o && (typeof o == "number" && (o =
|
|
1719
|
+
o && (typeof o == "number" && (o = _n.get(o)), o && !gn.has(o.toLowerCase()) && (a = o, o = "custom"), o && (r.totalsRowFunction = o)), n.totalsRowLabel && (r.totalsRowLabel = n.totalsRowLabel), a ? (t.start("tableColumn", r), t.start("totalsRowFormula"), t.text(a), t.end("totalsRowFormula"), t.end("tableColumn")) : t.empty("tableColumn", r);
|
|
1711
1720
|
}
|
|
1712
1721
|
t.end("tableColumns");
|
|
1713
1722
|
}
|
|
1714
|
-
},
|
|
1723
|
+
}, hn = (e, t, n, r) => {
|
|
1715
1724
|
let i = {
|
|
1716
1725
|
name: n.getStyle().getName(),
|
|
1717
1726
|
showFirstColumn: n.isShowHighlightFirstColumn() ? "1" : "0",
|
|
@@ -1720,7 +1729,7 @@ var Ft = 164, It = Object.freeze([
|
|
|
1720
1729
|
showColumnStripes: n.isShowBandedColumns() ? "1" : "0"
|
|
1721
1730
|
};
|
|
1722
1731
|
t.empty("tableStyleInfo", i);
|
|
1723
|
-
},
|
|
1732
|
+
}, gn = /* @__PURE__ */ new Map([
|
|
1724
1733
|
["average", 101],
|
|
1725
1734
|
["countnums", 102],
|
|
1726
1735
|
["count", 103],
|
|
@@ -1731,22 +1740,22 @@ var Ft = 164, It = Object.freeze([
|
|
|
1731
1740
|
["stddevp", 108],
|
|
1732
1741
|
["sum", 109],
|
|
1733
1742
|
["var", 110]
|
|
1734
|
-
]),
|
|
1735
|
-
|
|
1736
|
-
|
|
1743
|
+
]), _n = /* @__PURE__ */ new Map();
|
|
1744
|
+
gn.forEach((e, t) => {
|
|
1745
|
+
_n.set(e, t);
|
|
1737
1746
|
});
|
|
1738
|
-
var
|
|
1747
|
+
var vn = (e, t, n, r) => {
|
|
1739
1748
|
t.start("mc:AlternateContent", { "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006" }), t.start("mc:Choice", {
|
|
1740
1749
|
Requires: "c14",
|
|
1741
1750
|
"xmlns:c14": "http://schemas.microsoft.com/office/drawing/2007/8/2/chart"
|
|
1742
1751
|
}), t.empty("c14:style", { val: "102" }), t.end("mc:Choice"), t.start("mc:Fallback"), t.empty("c:style", { val: "2" }), t.end("mc:Fallback"), t.end("mc:AlternateContent");
|
|
1743
|
-
},
|
|
1752
|
+
}, yn = (e, t, n, r, i) => {
|
|
1744
1753
|
t.start("chart"), ((e, t, n, r, i) => {
|
|
1745
|
-
t.start("title"), t.empty("overlay", { val: "0" }),
|
|
1754
|
+
t.start("title"), t.empty("overlay", { val: "0" }), Xe(e, n, i, "spPr", !0), t.end("title"), t.empty("autoTitleDeleted", { val: "0" });
|
|
1746
1755
|
})(e, t, n, 0, i), ((e, t, n, r, i) => {
|
|
1747
|
-
t.start("plotArea"), t.empty("layout"),
|
|
1756
|
+
t.start("plotArea"), t.empty("layout"), Xe(e, n, i, "spPr", !0), t.end("plotArea");
|
|
1748
1757
|
})(e, t, n, 0, i), t.empty("plotVisOnly", { val: "1" }), t.empty("dispBlanksAs", { val: "gap" }), t.empty("showDLblsOverMax", { val: "0" }), t.end("chart");
|
|
1749
|
-
},
|
|
1758
|
+
}, bn = (e, t, n, r) => {
|
|
1750
1759
|
t.start("printSettings"), t.empty("headerFooter"), t.empty("pageMargins", {
|
|
1751
1760
|
b: "0.75",
|
|
1752
1761
|
l: "0.7",
|
|
@@ -1755,16 +1764,16 @@ var pn = (e, t, n, r) => {
|
|
|
1755
1764
|
header: "0.3",
|
|
1756
1765
|
footer: "0.3"
|
|
1757
1766
|
}), t.empty("pageSetup"), t.end("printSettings");
|
|
1758
|
-
},
|
|
1767
|
+
}, xn = (e, t, n, r, i, a = "0") => {
|
|
1759
1768
|
let o = i?.color, s = { idx: i?.idx ?? a };
|
|
1760
|
-
o === void 0 ? t.empty(r, s) : (t.start(r, s), o === "auto" ? t.empty("styleClr", { val: "auto" }) : (t.pushDefaultNamespace("a"),
|
|
1761
|
-
},
|
|
1769
|
+
o === void 0 ? t.empty(r, s) : (t.start(r, s), o === "auto" ? t.empty("styleClr", { val: "auto" }) : (t.pushDefaultNamespace("a"), U(t, n.getTheme(), o), t.popDefaultNamespace()), t.end(r));
|
|
1770
|
+
}, Sn = (e, t, n, r) => {
|
|
1762
1771
|
let i = n.length;
|
|
1763
1772
|
for (let a = 0; a < i; a++) {
|
|
1764
1773
|
let i = n[a];
|
|
1765
|
-
i.empty ? t.empty(i.type, i.mods) : (t.start(i.type, i.mods),
|
|
1774
|
+
i.empty ? t.empty(i.type, i.mods) : (t.start(i.type, i.mods), xn(0, t, r, "lnRef", i.lineRef, "0"), xn(0, t, r, "fillRef", i.fillRef, "0"), xn(0, t, r, "effectRef", i.effectRef, "0"), xn(0, t, r, "fontRef", i.fontRef, "minor"), Xe(e, r, i, "spPr"), Jt(e, 0, i.defRPr), Yt(e, r, i.bodyPr), t.end(i.type));
|
|
1766
1775
|
}
|
|
1767
|
-
},
|
|
1776
|
+
}, Cn = Object.freeze([
|
|
1768
1777
|
{
|
|
1769
1778
|
type: "axisTitle",
|
|
1770
1779
|
fontRef: { color: "tx1 lumMod 65 lumOff 35" },
|
|
@@ -2116,13 +2125,13 @@ var pn = (e, t, n, r) => {
|
|
|
2116
2125
|
fill: { type: "none" },
|
|
2117
2126
|
stroke: {}
|
|
2118
2127
|
}
|
|
2119
|
-
]),
|
|
2128
|
+
]), wn = (e, t, n) => {
|
|
2120
2129
|
let r = n.length;
|
|
2121
2130
|
for (let e = 0; e < r; e++) {
|
|
2122
2131
|
let r = n[e], i = {}, a = r[0], o = r[1];
|
|
2123
2132
|
a || o ? (t.start("variation", i), a && t.empty("a:lumMod", { val: a }), o && t.empty("a:lumOff", { val: o }), t.end("variation")) : t.empty("variation", i);
|
|
2124
2133
|
}
|
|
2125
|
-
},
|
|
2134
|
+
}, Tn = Object.freeze([
|
|
2126
2135
|
[0, 0],
|
|
2127
2136
|
[6e4, 0],
|
|
2128
2137
|
[8e4, 2e4],
|
|
@@ -2132,8 +2141,8 @@ var pn = (e, t, n, r) => {
|
|
|
2132
2141
|
[7e4, 3e4],
|
|
2133
2142
|
[7e4, 0],
|
|
2134
2143
|
[5e4, 5e4]
|
|
2135
|
-
]),
|
|
2136
|
-
new class extends
|
|
2144
|
+
]), En = [
|
|
2145
|
+
new class extends B {
|
|
2137
2146
|
constructor() {
|
|
2138
2147
|
super({
|
|
2139
2148
|
kind: "workbook",
|
|
@@ -2155,13 +2164,13 @@ var pn = (e, t, n, r) => {
|
|
|
2155
2164
|
"xmlns:xr10": "http://schemas.microsoft.com/office/spreadsheetml/2016/revision10",
|
|
2156
2165
|
"xmlns:xr2": "http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"
|
|
2157
2166
|
});
|
|
2158
|
-
let r = /* @__PURE__ */ new Set(),
|
|
2159
|
-
for (let e = 0; e <
|
|
2160
|
-
let
|
|
2167
|
+
let r = /* @__PURE__ */ new Set(), i = e.getCalculation().getNamedFormulas().getItems();
|
|
2168
|
+
for (let e = 0; e < i.length; e++) r.add(i[e].getName().toUpperCase());
|
|
2169
|
+
let a = l(r), o = await e.toJSON({
|
|
2161
2170
|
ignoreData: !0,
|
|
2162
2171
|
ignoreResources: !0,
|
|
2163
2172
|
includeHeaderStyles: !0,
|
|
2164
|
-
formulaTransform:
|
|
2173
|
+
formulaTransform: a,
|
|
2165
2174
|
splitDirectBorders: !0
|
|
2166
2175
|
});
|
|
2167
2176
|
(function(e, t, n) {
|
|
@@ -2172,7 +2181,7 @@ var pn = (e, t, n, r) => {
|
|
|
2172
2181
|
if (!i) return;
|
|
2173
2182
|
let a = {};
|
|
2174
2183
|
Pe(i.password ?? {}, a, "workbook"), Pe(i.revisionsPassword ?? {}, a, "revisions"), i.structure && (a.lockStructure = "1"), i.windows && (a.lockWindows = "1"), i.revision && (a.lockRevision = "1"), t.empty("workbookProtection", a);
|
|
2175
|
-
}(0, n, 0,
|
|
2184
|
+
}(0, n, 0, o), function(e, t, n) {
|
|
2176
2185
|
t.start("bookViews");
|
|
2177
2186
|
let r = n.getView(), i = {};
|
|
2178
2187
|
r.isShowHorizontalScrollbar() || (i.showHorizontalScroll = "0"), r.isShowVerticalScrollbar() || (i.showVerticalScroll = "0"), r.isShowTabs() || (i.showSheetTabs = "0");
|
|
@@ -2180,59 +2189,59 @@ var pn = (e, t, n, r) => {
|
|
|
2180
2189
|
a !== 600 && (i.tabRatio = a);
|
|
2181
2190
|
let o = n.getSelectedSheet().getIndex();
|
|
2182
2191
|
o !== 0 && (i.activeTab = "" + o), t.empty("workbookView", i), t.end("bookViews");
|
|
2183
|
-
}(0, n, e,
|
|
2184
|
-
let
|
|
2185
|
-
|
|
2186
|
-
let
|
|
2187
|
-
|
|
2192
|
+
}(0, n, e, o.view), n.start("sheets");
|
|
2193
|
+
let s = t.getSharedStates();
|
|
2194
|
+
s.set("formulaTransform", a);
|
|
2195
|
+
let c = e.getStrings().beginPersist();
|
|
2196
|
+
s.set("persistStrings", c);
|
|
2188
2197
|
let u = new Fe();
|
|
2189
|
-
|
|
2198
|
+
s.set("metaCollector", u);
|
|
2190
2199
|
let d = new Ie(u, t.warn.bind(t));
|
|
2191
|
-
|
|
2200
|
+
s.set("persistRichTypes", d);
|
|
2192
2201
|
try {
|
|
2193
|
-
let r = e.getSheets().getItems({ visibility:
|
|
2194
|
-
for (let e = 0; e <
|
|
2195
|
-
let o = r[e], s = "" + (o.getIndex() + 1),
|
|
2202
|
+
let r = e.getSheets().getItems({ visibility: P.Visibility.VeryHidden }), i = o.sheets, a = e.getSelectedSheet(), l = r.length;
|
|
2203
|
+
for (let e = 0; e < l; e++) {
|
|
2204
|
+
let o = r[e], s = "" + (o.getIndex() + 1), l = {
|
|
2196
2205
|
name: o.getName(),
|
|
2197
2206
|
sheetId: s
|
|
2198
2207
|
}, u = o.getVisibility();
|
|
2199
|
-
u === "hidden" ?
|
|
2208
|
+
u === "hidden" ? l.state = "hidden" : u === "veryHidden" && (l.state = "veryHidden");
|
|
2200
2209
|
let d = i[e].sheet;
|
|
2201
|
-
|
|
2210
|
+
l["r:id"] = t.addPart("worksheet", {
|
|
2202
2211
|
model: o,
|
|
2203
2212
|
isSelected: a === o,
|
|
2204
2213
|
json: d,
|
|
2205
|
-
persistStrings:
|
|
2206
|
-
}).relId, n.empty("sheet",
|
|
2214
|
+
persistStrings: c
|
|
2215
|
+
}).relId, n.empty("sheet", l);
|
|
2207
2216
|
}
|
|
2208
2217
|
await t.waitEmit();
|
|
2209
2218
|
let u = e.getTheme();
|
|
2210
2219
|
t.addPart("theme", {
|
|
2211
2220
|
model: u,
|
|
2212
|
-
json:
|
|
2221
|
+
json: o.theme
|
|
2213
2222
|
}), await t.waitEmit(), t.addPart("styles", {
|
|
2214
2223
|
styles: e.getStyles(),
|
|
2215
2224
|
theme: e.getTheme(),
|
|
2216
|
-
json:
|
|
2225
|
+
json: o.styles
|
|
2217
2226
|
}), await t.waitEmit();
|
|
2218
|
-
let d = await
|
|
2227
|
+
let d = await c.toJSONAsync();
|
|
2219
2228
|
d && d.length > 0 && (t.addPart("sharedStrings", {
|
|
2220
2229
|
model: d,
|
|
2221
2230
|
json: d
|
|
2222
2231
|
}), await t.waitEmit());
|
|
2223
|
-
let f =
|
|
2232
|
+
let f = s.get("persistRichTypes");
|
|
2224
2233
|
f?.hasAny() && (t.addPart("richValue", f), t.addPart("richValueStructure", f), t.addPart("richValueTypes", null), await t.waitEmit());
|
|
2225
|
-
let p =
|
|
2226
|
-
p?.hasAny() && (t.addPart("metadata", p), await t.waitEmit()),
|
|
2234
|
+
let p = s.get("metaCollector");
|
|
2235
|
+
p?.hasAny() && (t.addPart("metadata", p), await t.waitEmit()), s.delete("persistRichTypes"), s.delete("metaCollector"), s.delete("persistStrings");
|
|
2227
2236
|
} catch (e) {
|
|
2228
2237
|
throw e;
|
|
2229
2238
|
} finally {
|
|
2230
|
-
|
|
2239
|
+
c.endPersist();
|
|
2231
2240
|
}
|
|
2232
2241
|
n.end("sheets"), function(e, t, n, r, i) {
|
|
2233
2242
|
let a = r.names, o = a ? a.length : 0;
|
|
2234
2243
|
if (o === 0) return;
|
|
2235
|
-
let s = n.getCalculation().getNamedFormulas(), c = /* @__PURE__ */ new Map(), l = n.getSheets().getItems({ visibility:
|
|
2244
|
+
let s = n.getCalculation().getNamedFormulas(), c = /* @__PURE__ */ new Map(), l = n.getSheets().getItems({ visibility: P.Visibility.VeryHidden });
|
|
2236
2245
|
for (let e = 0; e < l.length; e++) c.set(l[e].getName().toLowerCase(), e);
|
|
2237
2246
|
t.start("definedNames");
|
|
2238
2247
|
for (let n = 0; n < o; n++) {
|
|
@@ -2249,10 +2258,20 @@ var pn = (e, t, n, r) => {
|
|
|
2249
2258
|
u && (l = u.getExpression({ formulaTransform: i })), t.start("definedName", o), t.text(l), t.end("definedName");
|
|
2250
2259
|
}
|
|
2251
2260
|
t.end("definedNames");
|
|
2252
|
-
}(t, n, e,
|
|
2261
|
+
}(t, n, e, o, a), function(e, t, n) {
|
|
2262
|
+
let r = n.getCalculation().toJSON(), i = {}, a = (e, t) => {
|
|
2263
|
+
let n = r[e];
|
|
2264
|
+
typeof n == "boolean" && (i[t] = n ? "1" : "0");
|
|
2265
|
+
};
|
|
2266
|
+
if (r.calcMode) {
|
|
2267
|
+
let e = Re[r.calcMode];
|
|
2268
|
+
e && e !== "auto" && (i.calcMode = e);
|
|
2269
|
+
}
|
|
2270
|
+
a("fullCalcOnLoad", "fullCalcOnLoad"), a("calcOnSave", "calcOnSave"), a("calcCompleted", "calcCompleted"), a("fullPrecision", "fullPrecision"), a("forceFullCalc", "forceFullCalc"), a("concurrentCalc", "concurrentCalc"), r.refMode && (i.refMode = r.refMode), r.iterate && (i.iterate = "1"), r.maxIterations !== void 0 && (i.iterateCount = String(r.maxIterations)), r.maxIterateChange !== void 0 && (i.iterateDelta = String(r.maxIterateChange)), Object.keys(i).length !== 0 && t.empty("calcPr", i);
|
|
2271
|
+
}(0, n, e), n.end("workbook"), n.close();
|
|
2253
2272
|
}
|
|
2254
2273
|
}(),
|
|
2255
|
-
new class extends
|
|
2274
|
+
new class extends B {
|
|
2256
2275
|
constructor() {
|
|
2257
2276
|
super({
|
|
2258
2277
|
kind: "worksheet",
|
|
@@ -2262,8 +2281,8 @@ var pn = (e, t, n, r) => {
|
|
|
2262
2281
|
});
|
|
2263
2282
|
}
|
|
2264
2283
|
async emit(n, i) {
|
|
2265
|
-
let
|
|
2266
|
-
|
|
2284
|
+
let s = i.getXMLWriter(), c = n.model, l = n.json;
|
|
2285
|
+
s.decl(), s.start("worksheet", {
|
|
2267
2286
|
xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
|
|
2268
2287
|
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
2269
2288
|
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
@@ -2271,9 +2290,9 @@ var pn = (e, t, n, r) => {
|
|
|
2271
2290
|
"xmlns:x14ac": "http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"
|
|
2272
2291
|
}), function(e, t, n) {
|
|
2273
2292
|
let r = n.getTabColor();
|
|
2274
|
-
r && (t.start("sheetPr"), r &&
|
|
2275
|
-
}(0,
|
|
2276
|
-
let i = n.getUsedRange({ features: [] }), a = i ? i.getCoords() : null, o =
|
|
2293
|
+
r && (t.start("sheetPr"), r && G(t, n.getStyles().getTheme(), r, "tabColor", !1), t.end("sheetPr"));
|
|
2294
|
+
}(0, s, c), function(e, t, n, r) {
|
|
2295
|
+
let i = n.getUsedRange({ features: [] }), a = i ? i.getCoords() : null, o = St, s = Ct, c = r.directStyles, l = c ? c.length : 0;
|
|
2277
2296
|
for (let e = 0; e < l; e++) {
|
|
2278
2297
|
let t = n.getRange(c[e][0]).getCoords();
|
|
2279
2298
|
if (t.colEnd === s) {
|
|
@@ -2292,12 +2311,12 @@ var pn = (e, t, n, r) => {
|
|
|
2292
2311
|
rowEnd: e
|
|
2293
2312
|
};
|
|
2294
2313
|
}
|
|
2295
|
-
a =
|
|
2314
|
+
a = O.unionRanges(a, t);
|
|
2296
2315
|
}
|
|
2297
2316
|
let u = r.merges, d = u ? u.length : 0;
|
|
2298
2317
|
for (let e = 0; e < d; e++) {
|
|
2299
2318
|
let t = n.getRange(u[e]).getCoords();
|
|
2300
|
-
t.colEnd === s && (t = { ...a }, t.colStart = a?.colStart ?? 0, t.colEnd = t.colStart), t.rowEnd === o && (t = { ...t }, t.rowStart = a?.rowStart ?? 0, t.rowEnd = t.rowStart), a =
|
|
2319
|
+
t.colEnd === s && (t = { ...a }, t.colStart = a?.colStart ?? 0, t.colEnd = t.colStart), t.rowEnd === o && (t = { ...t }, t.rowStart = a?.rowStart ?? 0, t.rowEnd = t.rowStart), a = O.unionRanges(a, t);
|
|
2301
2320
|
}
|
|
2302
2321
|
let f = "A1";
|
|
2303
2322
|
a && (i = n.getRange(a), f = a.colStart === a.colEnd && a.rowStart === a.rowEnd ? i.getAddress() : `${i.getIntersect({
|
|
@@ -2311,8 +2330,8 @@ var pn = (e, t, n, r) => {
|
|
|
2311
2330
|
colEnd: a.colEnd,
|
|
2312
2331
|
rowEnd: a.rowEnd
|
|
2313
2332
|
}).getAddress()}`), t.empty("dimension", { ref: f });
|
|
2314
|
-
}(0,
|
|
2315
|
-
let a = n.getView(), o = a.getTopLeft(), s = n.getRowHeaders().getIndex(o.top), c = n.getColumnHeaders().getIndex(o.left), l =
|
|
2333
|
+
}(0, s, c, l), function(e, t, n, r, i) {
|
|
2334
|
+
let a = n.getView(), o = a.getTopLeft(), s = n.getRowHeaders().getIndex(o.top), c = n.getColumnHeaders().getIndex(o.left), l = T.cellToString({
|
|
2316
2335
|
colIndex: c,
|
|
2317
2336
|
rowIndex: s
|
|
2318
2337
|
});
|
|
@@ -2332,20 +2351,20 @@ var pn = (e, t, n, r) => {
|
|
|
2332
2351
|
u.colorId = "" + s;
|
|
2333
2352
|
}
|
|
2334
2353
|
u.workbookViewId = "0";
|
|
2335
|
-
let p = n.getSelection().getCoords(), m =
|
|
2354
|
+
let p = n.getSelection().getCoords(), m = T.cellToString(p.cell), h = {}, g = a.getFreezePanes(), _ = g.coords ?? {}, v = _.colIndex ?? 0, y = _.rowIndex ?? 0;
|
|
2336
2355
|
if (v > 0 || y > 0) {
|
|
2337
|
-
let e = g.topLeft ?? {}, r = e.top ?? 0, i = e.left ?? 0, a = n.getRowHeaders().getIndex(r), s = n.getColumnHeaders().getIndex(i), c = v - s, l = y - a, d = Math.max(v, n.getColumnHeaders().getIndex(o.left + n.getColumnHeaders().getOffset(v) - i)), f = Math.max(y, n.getRowHeaders().getIndex(o.top + n.getRowHeaders().getOffset(y) - r)), p =
|
|
2356
|
+
let e = g.topLeft ?? {}, r = e.top ?? 0, i = e.left ?? 0, a = n.getRowHeaders().getIndex(r), s = n.getColumnHeaders().getIndex(i), c = v - s, l = y - a, d = Math.max(v, n.getColumnHeaders().getIndex(o.left + n.getColumnHeaders().getOffset(v) - i)), f = Math.max(y, n.getRowHeaders().getIndex(o.top + n.getRowHeaders().getOffset(y) - r)), p = T.cellToString({
|
|
2338
2357
|
colIndex: s,
|
|
2339
2358
|
rowIndex: a
|
|
2340
2359
|
});
|
|
2341
2360
|
p === "A1" ? delete u.topLeftCell : u.topLeftCell = p, t.start("sheetView", u);
|
|
2342
2361
|
let m = {};
|
|
2343
|
-
if (c > 0 && (m.xSplit = c), l > 0 && (m.ySplit = l), m.topLeftCell =
|
|
2362
|
+
if (c > 0 && (m.xSplit = c), l > 0 && (m.ySplit = l), m.topLeftCell = T.cellToString({
|
|
2344
2363
|
colIndex: d,
|
|
2345
2364
|
rowIndex: f
|
|
2346
2365
|
}), m.state = "frozen", v === 0) {
|
|
2347
2366
|
m.activePane = "bottomLeft", t.empty("pane", m);
|
|
2348
|
-
let e =
|
|
2367
|
+
let e = T.cellToString({
|
|
2349
2368
|
colIndex: d,
|
|
2350
2369
|
rowIndex: a
|
|
2351
2370
|
});
|
|
@@ -2355,7 +2374,7 @@ var pn = (e, t, n, r) => {
|
|
|
2355
2374
|
}), h.pane = "bottomLeft";
|
|
2356
2375
|
} else if (y === 0) {
|
|
2357
2376
|
m.activePane = "topRight", t.empty("pane", m);
|
|
2358
|
-
let e =
|
|
2377
|
+
let e = T.cellToString({
|
|
2359
2378
|
colIndex: s,
|
|
2360
2379
|
rowIndex: f
|
|
2361
2380
|
});
|
|
@@ -2368,7 +2387,7 @@ var pn = (e, t, n, r) => {
|
|
|
2368
2387
|
activeCell: p,
|
|
2369
2388
|
sqref: p
|
|
2370
2389
|
});
|
|
2371
|
-
let e =
|
|
2390
|
+
let e = T.cellToString({
|
|
2372
2391
|
colIndex: d,
|
|
2373
2392
|
rowIndex: a
|
|
2374
2393
|
});
|
|
@@ -2377,7 +2396,7 @@ var pn = (e, t, n, r) => {
|
|
|
2377
2396
|
activeCell: e,
|
|
2378
2397
|
sqref: e
|
|
2379
2398
|
});
|
|
2380
|
-
let n =
|
|
2399
|
+
let n = T.cellToString({
|
|
2381
2400
|
colIndex: s,
|
|
2382
2401
|
rowIndex: f
|
|
2383
2402
|
});
|
|
@@ -2394,16 +2413,16 @@ var pn = (e, t, n, r) => {
|
|
|
2394
2413
|
let e = "";
|
|
2395
2414
|
for (let t = 0; t < x; t++) {
|
|
2396
2415
|
let n = b[t];
|
|
2397
|
-
t > 0 && (e += " "), e +=
|
|
2416
|
+
t > 0 && (e += " "), e += T.rangeToString(n);
|
|
2398
2417
|
}
|
|
2399
2418
|
h.sqref = e, (p.rangeIndex ?? 0) > 0 && (h.activeCellId = "" + p.rangeIndex);
|
|
2400
2419
|
} else m === "A1" ? h = null : h.sqref = m;
|
|
2401
2420
|
h && t.empty("selection", h), t.end("sheetView"), t.end("sheetViews");
|
|
2402
|
-
}(0,
|
|
2421
|
+
}(0, s, c, 0, n.isSelected), function(e, t, n, r) {
|
|
2403
2422
|
let i = r.defaultColSize, a = r.defaultRowSize, o = {};
|
|
2404
2423
|
i !== void 0 && (o.defaultColWidth = i), o.defaultRowHeight = a ?? .75 * n.getRowHeaders().getDefaultSize(), a !== void 0 && (o.customHeight = "1"), o["x14ac:dyDescent"] = "0.25", t.empty("sheetFormatPr", o);
|
|
2405
|
-
}(0,
|
|
2406
|
-
let i = r.cols ?
|
|
2424
|
+
}(0, s, c, l), function(e, t, n, r) {
|
|
2425
|
+
let i = r.cols ? T.refsToRuns(r.cols, !0) : null, a = i ? i.length : 0;
|
|
2407
2426
|
n.getEntireRange().getColumnEnd();
|
|
2408
2427
|
let o = n.getColumnHeaders().getDefaultSizeNative();
|
|
2409
2428
|
if (a > 0) {
|
|
@@ -2419,139 +2438,139 @@ var pn = (e, t, n, r) => {
|
|
|
2419
2438
|
}
|
|
2420
2439
|
t.end("cols");
|
|
2421
2440
|
}
|
|
2422
|
-
}(0,
|
|
2423
|
-
let
|
|
2441
|
+
}(0, s, c, l), function(n, r, i, a, o) {
|
|
2442
|
+
let s = n.getSharedStates(), c = s.get("persistStrings"), l = s.get("metaCollector"), u = s.get("persistRichTypes"), d = s.get("formulaTransform"), p = 0, m = 0, _ = i.getUsedRange(), v = 0, y = a.rows ? T.refsToRuns(a.rows, !1) : null, x = y ? y.length : 0, S = y?.[x - 1]?.max ?? -1, w = a.cols ? T.refsToRuns(a.cols, !0) : null, E = w ? w.length : 0, te = w?.[E - 1]?.max ?? -1;
|
|
2424
2443
|
if (_ || x > 0) {
|
|
2425
|
-
let
|
|
2426
|
-
let n =
|
|
2444
|
+
let s = .75, _ = a.defaultRowSize ?? i.getRowHeaders().getDefaultSize() * s, x = i.getStyles().getNormal().getBestFit().height * s, E = (e, t) => {
|
|
2445
|
+
let n = Lt;
|
|
2427
2446
|
if (n.r = "" + (e + 1), n.s = void 0, n.customFormat = void 0, n.hidden = void 0, n.ht = void 0, n.customHeight = void 0, n.outlineLevel = void 0, n.collapsed = void 0, !t) return n;
|
|
2428
2447
|
let r = t.value;
|
|
2429
2448
|
r.s !== void 0 && (n.s = "" + r.s, n.customFormat = "1"), r.h && (n.hidden = "1");
|
|
2430
2449
|
let i = r.csz ?? !1, a = r.sz ?? _;
|
|
2431
2450
|
return (a !== x || i) && (n.ht = "" + a), i && (n.customHeight = "1"), r.l !== void 0 && (n.outlineLevel = "" + r.l), r.cl !== void 0 && (n.collapsed = "" + r.cl), n;
|
|
2432
|
-
},
|
|
2433
|
-
if (
|
|
2434
|
-
for (
|
|
2435
|
-
|
|
2436
|
-
let n =
|
|
2437
|
-
n ?
|
|
2451
|
+
}, D = 0, O = y?.[D] ?? null, k = O?.min ?? 2 ** 53 - 1, A = O?.max ?? 2 ** 53 - 1, j = O?.value?.s, M = -1, N = 0, P = w?.[N] ?? null, F = P?.min ?? 2 ** 53 - 1, I = P?.max ?? 2 ** 53 - 1, L = P?.value?.s, re = (e, t = !1) => {
|
|
2452
|
+
if (M !== e) {
|
|
2453
|
+
for (M !== -1 && (r.end("row"), N !== 0 && (N = 0, P = w?.[N] ?? null, F = P?.min ?? 2 ** 53 - 1, I = P?.max ?? 2 ** 53 - 1, L = P?.value?.s)); M + 1 <= e;) {
|
|
2454
|
+
M++, O && M > A && (O = y[++D] ?? null, O ? (k = O.min, A = O.max, j = O.value?.s) : (k = 2 ** 53 - 1, A = 2 ** 53 - 1, j = void 0)), M < k && M < e && (M = O ? Math.min(k, e) : e);
|
|
2455
|
+
let n = M < e || t && M === e, i = E(M, O && M >= k && M <= A ? O : null);
|
|
2456
|
+
n ? r.empty("row", i) : r.start("row", i);
|
|
2438
2457
|
}
|
|
2439
|
-
if (e <
|
|
2440
|
-
let t =
|
|
2441
|
-
|
|
2458
|
+
if (e < M) {
|
|
2459
|
+
let t = E(e, null);
|
|
2460
|
+
r.start("row", t);
|
|
2442
2461
|
}
|
|
2443
2462
|
}
|
|
2444
2463
|
};
|
|
2445
|
-
|
|
2464
|
+
r.setValidationDisabled(!0), r.start("sheetData");
|
|
2446
2465
|
let R = [];
|
|
2447
|
-
R.push(
|
|
2448
|
-
let
|
|
2449
|
-
if (
|
|
2466
|
+
R.push(Et(n, i, a.directStyles));
|
|
2467
|
+
let B = a.formulas, ie = B ? B.length : 0;
|
|
2468
|
+
if (ie > 0) {
|
|
2450
2469
|
let n = /* @__PURE__ */ new Map();
|
|
2451
|
-
if (
|
|
2452
|
-
let t =
|
|
2470
|
+
if (o.names.size > 0 && a.formulaArray) for (let e of a.formulaArray) try {
|
|
2471
|
+
let t = i.getRange(e[0]).getCoords();
|
|
2453
2472
|
n.set(`${t.rowStart},${t.colStart}`, t);
|
|
2454
2473
|
} catch {}
|
|
2455
|
-
let
|
|
2456
|
-
if (
|
|
2457
|
-
|
|
2474
|
+
let r = [];
|
|
2475
|
+
if (a.formulaArray) for (let e of a.formulaArray) try {
|
|
2476
|
+
r.push(i.getRange(e[0]).getCoords());
|
|
2458
2477
|
} catch {}
|
|
2459
|
-
let
|
|
2460
|
-
for (let t = 0; t <
|
|
2461
|
-
let n =
|
|
2478
|
+
let s = (e) => {
|
|
2479
|
+
for (let t = 0; t < r.length; t++) {
|
|
2480
|
+
let n = r[t];
|
|
2462
2481
|
if (n.rowStart <= e.rowEnd && n.rowEnd >= e.rowStart && n.colStart <= e.colEnd && n.colEnd >= e.colStart) return !0;
|
|
2463
2482
|
}
|
|
2464
2483
|
return !1;
|
|
2465
|
-
},
|
|
2484
|
+
}, c = C(() => i.getCalculation()), l = (e) => {
|
|
2466
2485
|
if (!e) return;
|
|
2467
2486
|
let t;
|
|
2468
2487
|
return e.getExpression({ formulaTransform: (e, n) => {
|
|
2469
2488
|
n === void 0 && (t = e);
|
|
2470
2489
|
} }), t;
|
|
2471
|
-
},
|
|
2472
|
-
for (let
|
|
2473
|
-
let a =
|
|
2490
|
+
}, u = [];
|
|
2491
|
+
for (let r = 0; r < ie; r++) {
|
|
2492
|
+
let a = B[r];
|
|
2474
2493
|
try {
|
|
2475
|
-
let
|
|
2476
|
-
if (
|
|
2494
|
+
let p = a[0], m = i.getRange(p), h = m.getCoords(), _ = a[1], y = null, b = l(m.getCell().getFormula()), x = !!b && t(b, c), S = e(b);
|
|
2495
|
+
if (o.affects(r)) {
|
|
2477
2496
|
y = null, x = !1;
|
|
2478
|
-
let
|
|
2497
|
+
let e = (e, t, n) => {
|
|
2479
2498
|
let r = {
|
|
2480
2499
|
rowStart: e,
|
|
2481
2500
|
colStart: t,
|
|
2482
2501
|
rowEnd: e,
|
|
2483
2502
|
colEnd: t
|
|
2484
2503
|
};
|
|
2485
|
-
|
|
2504
|
+
u.push([r, {
|
|
2486
2505
|
coords: r,
|
|
2487
2506
|
formula: n,
|
|
2488
2507
|
sharedId: null,
|
|
2489
|
-
ref:
|
|
2508
|
+
ref: T.rangeToString(r),
|
|
2490
2509
|
isDynamicRange: !1,
|
|
2491
2510
|
isWrapped: !0
|
|
2492
2511
|
}]);
|
|
2493
|
-
},
|
|
2494
|
-
if (
|
|
2495
|
-
let n =
|
|
2496
|
-
if (n !== null) for (let
|
|
2497
|
-
if (
|
|
2498
|
-
|
|
2512
|
+
}, t = n.get(`${h.rowStart},${h.colStart}`), r = t !== void 0 && (t.rowEnd > t.rowStart || t.colEnd > t.colStart), a = !1;
|
|
2513
|
+
if (r) {
|
|
2514
|
+
let n = g(_, m.getCell().getValue());
|
|
2515
|
+
if (n !== null) for (let r = t.rowStart; r <= t.rowEnd; r++) for (let o = t.colStart; o <= t.colEnd; o++) {
|
|
2516
|
+
if (r === t.rowStart && o === t.colStart) {
|
|
2517
|
+
e(r, o, n), a = !0;
|
|
2499
2518
|
continue;
|
|
2500
2519
|
}
|
|
2501
|
-
let
|
|
2502
|
-
rowStart:
|
|
2503
|
-
colStart:
|
|
2504
|
-
rowEnd:
|
|
2505
|
-
colEnd:
|
|
2520
|
+
let s = f(i.getRange(T.rangeToString({
|
|
2521
|
+
rowStart: r,
|
|
2522
|
+
colStart: o,
|
|
2523
|
+
rowEnd: r,
|
|
2524
|
+
colEnd: o
|
|
2506
2525
|
})).getCell().getValue());
|
|
2507
|
-
|
|
2526
|
+
s !== null && e(r, o, s);
|
|
2508
2527
|
}
|
|
2509
2528
|
} else {
|
|
2510
|
-
let
|
|
2511
|
-
for (let n = 0; n <
|
|
2512
|
-
let r =
|
|
2513
|
-
for (let
|
|
2514
|
-
let i = r[
|
|
2515
|
-
o !== null && (
|
|
2529
|
+
let t = m.getCells();
|
|
2530
|
+
for (let n = 0; n < t.length; n++) {
|
|
2531
|
+
let r = t[n];
|
|
2532
|
+
for (let t = 0; t < r.length; t++) {
|
|
2533
|
+
let i = r[t], o = g(i.getFormula()?.getExpression() ?? _, i.getValue());
|
|
2534
|
+
o !== null && (e(h.rowStart + n, h.colStart + t, o), a = !0);
|
|
2516
2535
|
}
|
|
2517
2536
|
}
|
|
2518
2537
|
}
|
|
2519
2538
|
if (a) continue;
|
|
2520
2539
|
}
|
|
2521
|
-
let
|
|
2522
|
-
if (x ||
|
|
2540
|
+
let ee = _.indexOf("!") !== -1 || _.indexOf("[") !== -1, C;
|
|
2541
|
+
if (x || m.isSingleCell() || ee || s(h) || (y = "" + v++), y === null && !m.isSingleCell()) {
|
|
2523
2542
|
C = [];
|
|
2524
|
-
let e =
|
|
2543
|
+
let e = m.getCells();
|
|
2525
2544
|
for (let t = 0; t < e.length; t++) {
|
|
2526
2545
|
let n = e[t], r = Array(n.length);
|
|
2527
|
-
for (let e = 0; e < n.length; e++) t === 0 && e === 0 || (r[e] = n[e].getFormula()?.getExpression({ formulaTransform:
|
|
2546
|
+
for (let e = 0; e < n.length; e++) t === 0 && e === 0 || (r[e] = n[e].getFormula()?.getExpression({ formulaTransform: d }) ?? void 0);
|
|
2528
2547
|
C.push(r);
|
|
2529
2548
|
}
|
|
2530
2549
|
}
|
|
2531
|
-
let w = [
|
|
2532
|
-
coords:
|
|
2550
|
+
let w = [h, {
|
|
2551
|
+
coords: h,
|
|
2533
2552
|
formula: _,
|
|
2534
2553
|
sharedId: y,
|
|
2535
|
-
ref:
|
|
2554
|
+
ref: p,
|
|
2536
2555
|
isDynamicRange: x,
|
|
2537
|
-
isExcelVolatile:
|
|
2556
|
+
isExcelVolatile: S,
|
|
2538
2557
|
memberTexts: C
|
|
2539
2558
|
}];
|
|
2540
|
-
|
|
2559
|
+
u.push(w);
|
|
2541
2560
|
} catch (e) {
|
|
2542
2561
|
console.warn(`Failed to parse formula: ${a[1]}`, e);
|
|
2543
2562
|
continue;
|
|
2544
2563
|
}
|
|
2545
2564
|
}
|
|
2546
|
-
R.push(
|
|
2565
|
+
R.push(u);
|
|
2547
2566
|
} else R.push([]);
|
|
2548
|
-
let
|
|
2549
|
-
if (
|
|
2550
|
-
let e = Array(
|
|
2551
|
-
for (let t = 0; t <
|
|
2552
|
-
let n =
|
|
2567
|
+
let ae = a.volatile, oe = ae ? ae.length : 0;
|
|
2568
|
+
if (oe > 0) {
|
|
2569
|
+
let e = Array(oe);
|
|
2570
|
+
for (let t = 0; t < oe; t++) {
|
|
2571
|
+
let n = ae[t];
|
|
2553
2572
|
try {
|
|
2554
|
-
e[t] = [
|
|
2573
|
+
e[t] = [i.getRange(n).getCoords(), !0];
|
|
2555
2574
|
} catch (e) {
|
|
2556
2575
|
console.warn(`Failed to parse volatile: ${n}`, e);
|
|
2557
2576
|
continue;
|
|
@@ -2559,14 +2578,14 @@ var pn = (e, t, n, r) => {
|
|
|
2559
2578
|
}
|
|
2560
2579
|
R.push(e);
|
|
2561
2580
|
} else R.push([]);
|
|
2562
|
-
let
|
|
2563
|
-
if (
|
|
2564
|
-
let e = Array(
|
|
2565
|
-
for (let t = 0; t <
|
|
2566
|
-
let n =
|
|
2581
|
+
let se = a.formulaArray, V = se ? se.length : 0;
|
|
2582
|
+
if (V > 0) {
|
|
2583
|
+
let e = Array(V);
|
|
2584
|
+
for (let t = 0; t < V; t++) {
|
|
2585
|
+
let n = se[t];
|
|
2567
2586
|
try {
|
|
2568
2587
|
let r = n[0];
|
|
2569
|
-
e[t] = [
|
|
2588
|
+
e[t] = [i.getRange(r).getCoords(), {
|
|
2570
2589
|
ref: r,
|
|
2571
2590
|
kind: n[1] ?? "dynamic"
|
|
2572
2591
|
}];
|
|
@@ -2577,69 +2596,69 @@ var pn = (e, t, n, r) => {
|
|
|
2577
2596
|
}
|
|
2578
2597
|
R.push(e);
|
|
2579
2598
|
} else R.push([]);
|
|
2580
|
-
|
|
2581
|
-
let
|
|
2582
|
-
|
|
2599
|
+
i.getEntireRange().forEach((e, t) => {
|
|
2600
|
+
let i = t.getCoords(), a = i.rowIndex, o = i.colIndex;
|
|
2601
|
+
M !== a && re(a);
|
|
2583
2602
|
let s = t.getInjectedReference(0);
|
|
2584
|
-
if (s === void 0 &&
|
|
2585
|
-
for (; o <=
|
|
2586
|
-
|
|
2603
|
+
if (s === void 0 && j !== void 0 && a >= k && a <= A && (s = j), s === void 0) {
|
|
2604
|
+
for (; o <= te && o > I;) N++, P = w?.[N] ?? null, F = P?.min ?? 2 ** 53 - 1, I = P?.max ?? 2 ** 53 - 1, L = P?.value?.s;
|
|
2605
|
+
L !== void 0 && o >= F && o <= I && (s = L);
|
|
2587
2606
|
}
|
|
2588
|
-
let
|
|
2589
|
-
|
|
2590
|
-
let
|
|
2591
|
-
|
|
2592
|
-
let
|
|
2593
|
-
|
|
2594
|
-
let
|
|
2595
|
-
|
|
2596
|
-
let
|
|
2597
|
-
switch (
|
|
2598
|
-
case
|
|
2599
|
-
|
|
2607
|
+
let d = t.getType(), f = null;
|
|
2608
|
+
ie > 0 && (f = t.getInjectedReference(1) ?? null);
|
|
2609
|
+
let g = !1;
|
|
2610
|
+
oe > 0 && (g = t.getInjectedReference(2) ?? !1);
|
|
2611
|
+
let _ = null;
|
|
2612
|
+
V > 0 && (_ = t.getInjectedReference(3) ?? null);
|
|
2613
|
+
let v = _?.kind === "dynamicSpillError", y = _?.kind === "static", x = It;
|
|
2614
|
+
x.r = t.getAddress(), x.s = void 0, x.t = void 0, x.cm = void 0, x.vm = void 0, s !== void 0 && s !== 0 && (x.s = "" + s);
|
|
2615
|
+
let S = null, C = null;
|
|
2616
|
+
switch (d) {
|
|
2617
|
+
case z.Boolean:
|
|
2618
|
+
S = e ? "1" : "0", C = "b";
|
|
2600
2619
|
break;
|
|
2601
|
-
case
|
|
2620
|
+
case z.Error:
|
|
2602
2621
|
let t = e.getCode();
|
|
2603
|
-
if (
|
|
2622
|
+
if (C = "e", t > 7) S = ne.BuiltIn.Value.getLabel(), x.vm = "" + u.add(e);
|
|
2604
2623
|
else if (t < 1) {
|
|
2605
2624
|
let t;
|
|
2606
|
-
|
|
2607
|
-
} else
|
|
2625
|
+
C = "s", f ? (t = "=" + f.formula, f = null) : t = "" + e.getLabel(), S = "" + c.add(t), p++;
|
|
2626
|
+
} else S = "" + e.getLabel();
|
|
2608
2627
|
break;
|
|
2609
|
-
case
|
|
2610
|
-
|
|
2628
|
+
case z.Number:
|
|
2629
|
+
S = "" + e, C = null;
|
|
2611
2630
|
break;
|
|
2612
|
-
case
|
|
2613
|
-
|
|
2631
|
+
case z.String:
|
|
2632
|
+
S = e, f ? (C = "str", S = e) : (C = "s", S = "" + c.add(S), p++);
|
|
2614
2633
|
break;
|
|
2615
|
-
case
|
|
2634
|
+
case z.RichData: C = "e", S = ne.BuiltIn.Value.getLabel(), x.vm = "" + u.add(e);
|
|
2616
2635
|
}
|
|
2617
|
-
|
|
2618
|
-
let
|
|
2619
|
-
if (
|
|
2620
|
-
if (
|
|
2621
|
-
let e =
|
|
2622
|
-
if (
|
|
2623
|
-
t =
|
|
2624
|
-
let e =
|
|
2625
|
-
e.colStart === o && e.rowStart === a ? (t.ref =
|
|
2626
|
-
} else
|
|
2627
|
-
t.ca =
|
|
2636
|
+
C && (x.t = C);
|
|
2637
|
+
let T = !f?.isWrapped && (_ !== null || (f?.isDynamicRange ?? !1));
|
|
2638
|
+
if (f !== null || S !== null) {
|
|
2639
|
+
if (T && f !== null && !y && (x.cm = "" + l.registerArrayCell(v)), r.start("c", x), f) {
|
|
2640
|
+
let e = f.memberTexts?.[a - f.coords.rowStart]?.[o - f.coords.colStart] ?? f.formula, t, n = null, i = f.sharedId;
|
|
2641
|
+
if (i) {
|
|
2642
|
+
t = zt;
|
|
2643
|
+
let e = f.coords;
|
|
2644
|
+
e.colStart === o && e.rowStart === a ? (t.ref = f.ref, t.si = i, n = f.formula) : (t.ref = void 0, t.si = i);
|
|
2645
|
+
} else T ? (t = Bt, t.aca = v ? "1" : void 0, t.ref = v ? x.r : _?.ref ?? x.r, n = e) : (t = Rt, n = e);
|
|
2646
|
+
t.ca = g || v || f.isExcelVolatile ? "1" : void 0, n ? (r.start("f", t), r.text(n), r.end("f")) : r.empty("f", t);
|
|
2628
2647
|
}
|
|
2629
|
-
|
|
2630
|
-
} else
|
|
2648
|
+
S !== null && (C === "str" && S ? (r.start("v", ee.test(S) ? b : void 0), r.text(h(S))) : (r.start("v"), S && r.text(S)), r.end("v")), r.end("c");
|
|
2649
|
+
} else m++ < Tt ? r.empty("c", x) : m === 1048577 && n.warn(`Reached ${Tt} style-only cells at '${x.r}'; not writing the rest.`);
|
|
2631
2650
|
}, {
|
|
2632
2651
|
injectReferences: R,
|
|
2633
2652
|
features: []
|
|
2634
|
-
}),
|
|
2635
|
-
} else
|
|
2636
|
-
if (
|
|
2637
|
-
let e =
|
|
2638
|
-
|
|
2653
|
+
}), M !== -1 && M >= S ? r.end("row") : re(S, !0), r.end("sheetData"), r.setValidationDisabled(!1);
|
|
2654
|
+
} else r.empty("sheetData");
|
|
2655
|
+
if (p > 0) {
|
|
2656
|
+
let e = s.get("stringsCount") ?? 0;
|
|
2657
|
+
s.set("stringsCount", e + p);
|
|
2639
2658
|
}
|
|
2640
|
-
}(i,
|
|
2659
|
+
}(i, s, c, l, await (async (e, t) => {
|
|
2641
2660
|
let n = t ? t.length : 0;
|
|
2642
|
-
if (n === 0) return
|
|
2661
|
+
if (n === 0) return wt;
|
|
2643
2662
|
let r = /* @__PURE__ */ new Set(), i = Array(n);
|
|
2644
2663
|
for (let a = 0; a < n; a++) {
|
|
2645
2664
|
i[a] = null;
|
|
@@ -2655,9 +2674,9 @@ var pn = (e, t, n, r) => {
|
|
|
2655
2674
|
} catch {}
|
|
2656
2675
|
}
|
|
2657
2676
|
let a = e.getWorkbook();
|
|
2658
|
-
if (!a) return
|
|
2659
|
-
let o = await
|
|
2660
|
-
return o.size === 0 ?
|
|
2677
|
+
if (!a) return wt;
|
|
2678
|
+
let o = await _(a, r);
|
|
2679
|
+
return o.size === 0 ? wt : {
|
|
2661
2680
|
names: o,
|
|
2662
2681
|
perFormula: i,
|
|
2663
2682
|
affects: (e) => {
|
|
@@ -2677,14 +2696,14 @@ var pn = (e, t, n, r) => {
|
|
|
2677
2696
|
r !== void 0 && r !== t && (a[n ?? e] = r ? "1" : "0");
|
|
2678
2697
|
};
|
|
2679
2698
|
o("objects", "0"), o("scenarios", "0"), o("formatCells", "0"), o("formatColumns", "0"), o("formatRows", "0"), o("insertColumns", "0"), o("insertRows", "0"), o("insertHyperlinks", "0"), o("deleteColumns", "0"), o("deleteRows", "0"), o("selectLockedCells", "1"), o("sort", "0"), o("autoTable", "0", "autoFilter"), o("pivotTables", "0"), o("selectUnlockedCells", "1"), t.empty("sheetProtection", a);
|
|
2680
|
-
}(0,
|
|
2699
|
+
}(0, s, 0, l), function(e, t, n, r) {
|
|
2681
2700
|
let i = r.protectedRanges, a = i ? i.length : 0;
|
|
2682
2701
|
if (a === 0) return;
|
|
2683
2702
|
let o = [];
|
|
2684
2703
|
for (let t = 0; t < a; t++) {
|
|
2685
2704
|
let n = i[t], r, a;
|
|
2686
2705
|
Array.isArray(n) ? (r = n[0], a = n[1]) : (r = n.r, a = n.v);
|
|
2687
|
-
let s =
|
|
2706
|
+
let s = Nt(r);
|
|
2688
2707
|
if (!s || !a) {
|
|
2689
2708
|
e.warn("Skipping protectedRange with no range.");
|
|
2690
2709
|
continue;
|
|
@@ -2701,64 +2720,76 @@ var pn = (e, t, n, r) => {
|
|
|
2701
2720
|
for (let e = 0; e < o.length; e++) t.empty("protectedRange", o[e]);
|
|
2702
2721
|
t.end("protectedRanges");
|
|
2703
2722
|
}
|
|
2704
|
-
}(i,
|
|
2723
|
+
}(i, s, 0, l);
|
|
2705
2724
|
let u = l.autoTable;
|
|
2706
2725
|
if (u) {
|
|
2707
2726
|
let e, t = u;
|
|
2708
|
-
e = Array.isArray(t) ? t[1] : t.v,
|
|
2727
|
+
e = Array.isArray(t) ? t[1] : t.v, _t(i, s, c.getAutoTable(), e, !0);
|
|
2709
2728
|
}
|
|
2710
2729
|
(function(e, t, n, r) {
|
|
2711
2730
|
let i = r.merges ? r.merges.length : 0;
|
|
2712
2731
|
if (i > 0) {
|
|
2713
2732
|
t.start("mergeCells", { count: i });
|
|
2714
2733
|
for (let e = 0; e < i; e++) {
|
|
2715
|
-
let n = r.merges[e], i = typeof n == "string" ? n :
|
|
2734
|
+
let n = r.merges[e], i = typeof n == "string" ? n : T.rangeToString(n);
|
|
2716
2735
|
t.empty("mergeCell", { ref: i });
|
|
2717
2736
|
}
|
|
2718
2737
|
t.end("mergeCells");
|
|
2719
2738
|
}
|
|
2720
|
-
})(0,
|
|
2739
|
+
})(0, s, 0, l);
|
|
2721
2740
|
let p = function(e, t, n, r) {
|
|
2722
|
-
let i = [],
|
|
2723
|
-
if (
|
|
2724
|
-
let
|
|
2725
|
-
|
|
2726
|
-
let
|
|
2727
|
-
for (let n = 0; n <
|
|
2728
|
-
let r =
|
|
2729
|
-
Array.isArray(r) ? (
|
|
2730
|
-
let p =
|
|
2731
|
-
p
|
|
2732
|
-
|
|
2741
|
+
let i = [], o = r.conditionals, s = o ? o.length : 0;
|
|
2742
|
+
if (s === 0) return i;
|
|
2743
|
+
let c = e.getSharedStates(), l = c.get(it);
|
|
2744
|
+
l || (l = new rt(), c.set(it, l));
|
|
2745
|
+
let u = n.getStyles().getTheme(), d = null, f = 0;
|
|
2746
|
+
for (let n = 0; n < s; n++) {
|
|
2747
|
+
let r = o[n], s, c;
|
|
2748
|
+
Array.isArray(r) ? (s = r[0], c = r[1]) : (s = r.r, c = r.v);
|
|
2749
|
+
let p = Nt(s);
|
|
2750
|
+
if (!p || !c) {
|
|
2751
|
+
e.warn("Skipping conditionalFormatting with no range.");
|
|
2752
|
+
continue;
|
|
2753
|
+
}
|
|
2754
|
+
let m = c.scale, h = m ? { type: m.type } : S(c.condition, Mt(p), (t) => e.warn(t));
|
|
2755
|
+
h ? m?.type === j.ScaleType.IconSet && At(m) ? (f++, i.push({
|
|
2756
|
+
guid: a(D.uuidV4),
|
|
2733
2757
|
sqref: p,
|
|
2734
|
-
priority:
|
|
2735
|
-
scale:
|
|
2736
|
-
})) : (p !==
|
|
2758
|
+
priority: f,
|
|
2759
|
+
scale: m
|
|
2760
|
+
})) : m || !Ft(h) ? (p !== d && (d !== null && t.end("conditionalFormatting"), t.start("conditionalFormatting", {
|
|
2737
2761
|
sqref: p,
|
|
2738
|
-
pivot:
|
|
2739
|
-
}),
|
|
2762
|
+
pivot: c.pivot ? "1" : void 0
|
|
2763
|
+
}), d = p), f++, jt(e, t, u, c, h, p, f, l, i)) : (f++, i.push({
|
|
2764
|
+
guid: a(D.uuidV4),
|
|
2765
|
+
sqref: p,
|
|
2766
|
+
priority: f,
|
|
2767
|
+
rule: h,
|
|
2768
|
+
style: c.style,
|
|
2769
|
+
stopIfTrue: c.stopIfTrue
|
|
2770
|
+
})) : c.condition || e.warn("Skipping conditional format with neither a condition nor a scale.");
|
|
2740
2771
|
}
|
|
2741
|
-
return
|
|
2742
|
-
}(i,
|
|
2772
|
+
return d !== null && t.end("conditionalFormatting"), i;
|
|
2773
|
+
}(i, s, c, l), m = function(e, t, n, r) {
|
|
2743
2774
|
let i = [], a = r.validations, o = a ? a.length : 0;
|
|
2744
2775
|
if (o === 0) return i;
|
|
2745
2776
|
let s = [];
|
|
2746
2777
|
for (let t = 0; t < o; t++) {
|
|
2747
2778
|
let n = a[t], r, o;
|
|
2748
2779
|
Array.isArray(n) ? (r = n[0], o = n[1]) : (r = n.r, o = n.v);
|
|
2749
|
-
let c =
|
|
2780
|
+
let c = Nt(r);
|
|
2750
2781
|
if (!c || !o) {
|
|
2751
2782
|
e.warn?.("Skipping dataValidation with no range.");
|
|
2752
2783
|
continue;
|
|
2753
2784
|
}
|
|
2754
2785
|
o.ext && e.warn("DataValidation extension payload is not written to xlsx; it will be lost.");
|
|
2755
|
-
let { type: l, operator: u, formula1: d, formula2: f } =
|
|
2786
|
+
let { type: l, operator: u, formula1: d, formula2: f } = x(o.condition, (t) => e.warn(t)) ?? {}, p = {
|
|
2756
2787
|
type: l,
|
|
2757
2788
|
operator: u,
|
|
2758
|
-
allowBlank:
|
|
2789
|
+
allowBlank: Z(o.condition?.includeBlanks ?? !1),
|
|
2759
2790
|
showDropDown: o.hideDropdown ? "1" : void 0,
|
|
2760
|
-
showInputMessage:
|
|
2761
|
-
showErrorMessage:
|
|
2791
|
+
showInputMessage: Z(o.showPromptMessage),
|
|
2792
|
+
showErrorMessage: Z(o.showAlertMessage),
|
|
2762
2793
|
errorStyle: o.alertStyle ?? "information",
|
|
2763
2794
|
errorTitle: o.alertTitle,
|
|
2764
2795
|
error: o.alert,
|
|
@@ -2766,7 +2797,7 @@ var pn = (e, t, n, r) => {
|
|
|
2766
2797
|
prompt: o.prompt,
|
|
2767
2798
|
imeMode: o.imeMode
|
|
2768
2799
|
};
|
|
2769
|
-
|
|
2800
|
+
Pt(d) || Pt(f) ? i.push({
|
|
2770
2801
|
attrs: p,
|
|
2771
2802
|
formula1: d,
|
|
2772
2803
|
formula2: f,
|
|
@@ -2784,7 +2815,7 @@ var pn = (e, t, n, r) => {
|
|
|
2784
2815
|
r !== void 0 || i !== void 0 ? (t.start("dataValidation", n), r !== void 0 && (t.start("formula1"), t.text(r), t.end("formula1")), i !== void 0 && (t.start("formula2"), t.text(i), t.end("formula2")), t.end("dataValidation")) : t.empty("dataValidation", n);
|
|
2785
2816
|
}
|
|
2786
2817
|
return t.end("dataValidations"), i;
|
|
2787
|
-
}(i,
|
|
2818
|
+
}(i, s, 0, l);
|
|
2788
2819
|
(function(e, t, n, r) {
|
|
2789
2820
|
let i = r.hyperlinks, a = i ? i.length : 0;
|
|
2790
2821
|
if (a !== 0) {
|
|
@@ -2797,7 +2828,7 @@ var pn = (e, t, n, r) => {
|
|
|
2797
2828
|
}
|
|
2798
2829
|
t.end("hyperlinks");
|
|
2799
2830
|
}
|
|
2800
|
-
})(i,
|
|
2831
|
+
})(i, s, 0, l), function(e, t, n, r) {
|
|
2801
2832
|
let i = r.pageMargins;
|
|
2802
2833
|
t.empty("pageMargins", {
|
|
2803
2834
|
left: i?.left ?? .7,
|
|
@@ -2807,7 +2838,7 @@ var pn = (e, t, n, r) => {
|
|
|
2807
2838
|
header: i?.header ?? .3,
|
|
2808
2839
|
footer: i?.footer ?? .3
|
|
2809
2840
|
});
|
|
2810
|
-
}(0,
|
|
2841
|
+
}(0, s, 0, l), function(e, t, n, r) {
|
|
2811
2842
|
let i = r.movables;
|
|
2812
2843
|
if ((i ? i.length : 0) === 0 || !i.some((e) => {
|
|
2813
2844
|
let t = e.content?.type;
|
|
@@ -2825,7 +2856,7 @@ var pn = (e, t, n, r) => {
|
|
|
2825
2856
|
resources: n.getResources()
|
|
2826
2857
|
});
|
|
2827
2858
|
t.empty("drawing", { "r:id": o.relId });
|
|
2828
|
-
}(i,
|
|
2859
|
+
}(i, s, c, l), function(e, t, n, r) {
|
|
2829
2860
|
let i = r.tables, a = i ? i.length : 0;
|
|
2830
2861
|
if (a === 0) return;
|
|
2831
2862
|
let o = n.getTables().getItems();
|
|
@@ -2841,77 +2872,97 @@ var pn = (e, t, n, r) => {
|
|
|
2841
2872
|
l["r:id"] = c.relId, t.empty("tablePart", l);
|
|
2842
2873
|
}
|
|
2843
2874
|
t.end("tableParts");
|
|
2844
|
-
}(i,
|
|
2845
|
-
if (
|
|
2846
|
-
let
|
|
2847
|
-
if (t.start("extLst"),
|
|
2875
|
+
}(i, s, c, l), function(e, t, n, i, a) {
|
|
2876
|
+
if (i.length === 0 && a.length === 0) return;
|
|
2877
|
+
let s = n.getStyles(), c = s.getTheme();
|
|
2878
|
+
if (t.start("extLst"), i.length > 0) {
|
|
2848
2879
|
t.start("ext", {
|
|
2849
|
-
uri:
|
|
2850
|
-
"xmlns:x14":
|
|
2880
|
+
uri: o,
|
|
2881
|
+
"xmlns:x14": r
|
|
2851
2882
|
}), t.start("x14:conditionalFormattings");
|
|
2852
|
-
for (let e = 0; e <
|
|
2853
|
-
let { guid: n, sqref:
|
|
2854
|
-
if (t.start("x14:conditionalFormatting", { "xmlns:xm": d }),
|
|
2883
|
+
for (let e = 0; e < i.length; e++) {
|
|
2884
|
+
let { guid: n, sqref: r, priority: a, scale: o, rule: l, style: u, stopIfTrue: f } = i[e];
|
|
2885
|
+
if (t.start("x14:conditionalFormatting", { "xmlns:xm": d }), o) if (o.type === j.ScaleType.DataBar) {
|
|
2855
2886
|
t.start("x14:cfRule", {
|
|
2856
2887
|
type: "dataBar",
|
|
2857
2888
|
id: n
|
|
2858
2889
|
}), t.start("x14:dataBar", {
|
|
2859
|
-
minLength:
|
|
2860
|
-
maxLength:
|
|
2861
|
-
gradient:
|
|
2862
|
-
border:
|
|
2863
|
-
direction:
|
|
2864
|
-
negativeBarColorSameAsPositive:
|
|
2865
|
-
negativeBarBorderColorSameAsPositive:
|
|
2866
|
-
axisPosition:
|
|
2890
|
+
minLength: o.minLength,
|
|
2891
|
+
maxLength: o.maxLength,
|
|
2892
|
+
gradient: o.gradient ? void 0 : "0",
|
|
2893
|
+
border: o.borderColor ? "1" : void 0,
|
|
2894
|
+
direction: o.direction,
|
|
2895
|
+
negativeBarColorSameAsPositive: o.negativeFillColor ? "0" : "1",
|
|
2896
|
+
negativeBarBorderColorSameAsPositive: o.negativeBorderColor ? "0" : void 0,
|
|
2897
|
+
axisPosition: o.axisPosition
|
|
2867
2898
|
});
|
|
2868
|
-
let e =
|
|
2869
|
-
if (e.length === 0)
|
|
2870
|
-
else for (let n = 0; n < e.length; n++)
|
|
2871
|
-
|
|
2899
|
+
let e = o.stops ?? [];
|
|
2900
|
+
if (e.length === 0) Ot(t, { type: j.ColorStopType.AutoMin }), Ot(t, { type: j.ColorStopType.AutoMax });
|
|
2901
|
+
else for (let n = 0; n < e.length; n++) Ot(t, e[n]);
|
|
2902
|
+
o.borderColor && G(t, c, o.borderColor, "x14:borderColor"), o.negativeFillColor && G(t, c, o.negativeFillColor, "x14:negativeFillColor"), o.negativeBorderColor && G(t, c, o.negativeBorderColor, "x14:negativeBorderColor"), o.axisColor && G(t, c, o.axisColor, "x14:axisColor"), t.end("x14:dataBar"), t.end("x14:cfRule");
|
|
2872
2903
|
} else {
|
|
2873
2904
|
t.start("x14:cfRule", {
|
|
2874
2905
|
type: "iconSet",
|
|
2875
|
-
priority:
|
|
2906
|
+
priority: a,
|
|
2876
2907
|
id: n
|
|
2877
2908
|
}), t.start("x14:iconSet", {
|
|
2878
|
-
iconSet:
|
|
2879
|
-
reverse:
|
|
2880
|
-
showValue:
|
|
2881
|
-
custom: (
|
|
2909
|
+
iconSet: o.iconSet,
|
|
2910
|
+
reverse: Z(o.reverse),
|
|
2911
|
+
showValue: Z(o.showValue),
|
|
2912
|
+
custom: (o.icon?.length ?? 0) > 0 ? "1" : void 0
|
|
2882
2913
|
});
|
|
2883
|
-
let e =
|
|
2884
|
-
for (let n = 0; n < e.length; n++)
|
|
2885
|
-
let r =
|
|
2914
|
+
let e = o.stops ?? [];
|
|
2915
|
+
for (let n = 0; n < e.length; n++) Ot(t, e[n]);
|
|
2916
|
+
let r = o.icon ?? [];
|
|
2886
2917
|
for (let e = 0; e < r.length; e++) t.empty("x14:cfIcon", {
|
|
2887
2918
|
iconSet: r[e].set,
|
|
2888
2919
|
iconId: r[e].id
|
|
2889
2920
|
});
|
|
2890
2921
|
t.end("x14:iconSet"), t.end("x14:cfRule");
|
|
2891
2922
|
}
|
|
2892
|
-
|
|
2923
|
+
else {
|
|
2924
|
+
t.start("x14:cfRule", {
|
|
2925
|
+
type: l.type,
|
|
2926
|
+
priority: a,
|
|
2927
|
+
stopIfTrue: Z(f),
|
|
2928
|
+
aboveAverage: Z(l.aboveAverage),
|
|
2929
|
+
equalAverage: Z(l.equalAverage),
|
|
2930
|
+
stdDev: l.stdDev,
|
|
2931
|
+
bottom: Z(l.bottom),
|
|
2932
|
+
percent: Z(l.percent),
|
|
2933
|
+
rank: l.rank,
|
|
2934
|
+
operator: l.operator,
|
|
2935
|
+
text: l.text,
|
|
2936
|
+
timePeriod: l.timePeriod,
|
|
2937
|
+
id: n
|
|
2938
|
+
});
|
|
2939
|
+
let e = l.formulas ?? [];
|
|
2940
|
+
for (let n = 0; n < e.length; n++) t.start("xm:f"), t.text(e[n]), t.end("xm:f");
|
|
2941
|
+
u && Object.keys(u).length > 0 && ft(0, t, u, s, c, "x14:dxf"), t.end("x14:cfRule");
|
|
2942
|
+
}
|
|
2943
|
+
t.start("xm:sqref"), t.text(r), t.end("xm:sqref"), t.end("x14:conditionalFormatting");
|
|
2893
2944
|
}
|
|
2894
2945
|
t.end("x14:conditionalFormattings"), t.end("ext");
|
|
2895
2946
|
}
|
|
2896
|
-
if (
|
|
2947
|
+
if (a.length > 0) {
|
|
2897
2948
|
t.start("ext", {
|
|
2898
|
-
uri:
|
|
2899
|
-
"xmlns:x14":
|
|
2949
|
+
uri: w,
|
|
2950
|
+
"xmlns:x14": r
|
|
2900
2951
|
}), t.start("x14:dataValidations", {
|
|
2901
2952
|
"xmlns:xm": d,
|
|
2902
|
-
count:
|
|
2953
|
+
count: a.length
|
|
2903
2954
|
});
|
|
2904
|
-
for (let e = 0; e <
|
|
2905
|
-
let { attrs: n, formula1: r, formula2:
|
|
2906
|
-
t.start("x14:dataValidation", n), r !== void 0 && (t.start("x14:formula1"), t.start("xm:f"), t.text(r), t.end("xm:f"), t.end("x14:formula1")),
|
|
2955
|
+
for (let e = 0; e < a.length; e++) {
|
|
2956
|
+
let { attrs: n, formula1: r, formula2: i, sqref: o } = a[e];
|
|
2957
|
+
t.start("x14:dataValidation", n), r !== void 0 && (t.start("x14:formula1"), t.start("xm:f"), t.text(r), t.end("xm:f"), t.end("x14:formula1")), i !== void 0 && (t.start("x14:formula2"), t.start("xm:f"), t.text(i), t.end("xm:f"), t.end("x14:formula2")), t.start("xm:sqref"), t.text(o), t.end("xm:sqref"), t.end("x14:dataValidation");
|
|
2907
2958
|
}
|
|
2908
2959
|
t.end("x14:dataValidations"), t.end("ext");
|
|
2909
2960
|
}
|
|
2910
2961
|
t.end("extLst");
|
|
2911
|
-
}(0,
|
|
2962
|
+
}(0, s, c, p, m), s.end("worksheet"), s.close();
|
|
2912
2963
|
}
|
|
2913
2964
|
}(),
|
|
2914
|
-
new class extends
|
|
2965
|
+
new class extends B {
|
|
2915
2966
|
constructor() {
|
|
2916
2967
|
super({
|
|
2917
2968
|
kind: "sharedStrings",
|
|
@@ -2930,13 +2981,13 @@ var pn = (e, t, n, r) => {
|
|
|
2930
2981
|
for (let e = 0; e < i; e++) {
|
|
2931
2982
|
let t = r[e];
|
|
2932
2983
|
n.start("si");
|
|
2933
|
-
let i =
|
|
2934
|
-
n.start("t", i), n.text(
|
|
2984
|
+
let i = ee.test(t) ? b : void 0;
|
|
2985
|
+
n.start("t", i), n.text(h(t)), n.end("t"), n.end("si");
|
|
2935
2986
|
}
|
|
2936
2987
|
n.end("sst"), n.close();
|
|
2937
2988
|
}
|
|
2938
2989
|
}(),
|
|
2939
|
-
new class extends
|
|
2990
|
+
new class extends B {
|
|
2940
2991
|
constructor() {
|
|
2941
2992
|
super({
|
|
2942
2993
|
kind: "theme",
|
|
@@ -2954,22 +3005,22 @@ var pn = (e, t, n, r) => {
|
|
|
2954
3005
|
let i = n?.getColorScheme();
|
|
2955
3006
|
if (i) {
|
|
2956
3007
|
t.start(r, { name: i.getName() || "Office" });
|
|
2957
|
-
for (let e of
|
|
3008
|
+
for (let e of Ve) t.start(e), U(t, n, i["get" + e.charAt(0).toUpperCase() + e.slice(1)]()), t.end(e);
|
|
2958
3009
|
t.end(r);
|
|
2959
3010
|
}
|
|
2960
3011
|
}(0, n, r, "clrScheme"), function(e, t, n, r) {
|
|
2961
|
-
n && (t.start(r, { name: n.getName() || "Office" }),
|
|
3012
|
+
n && (t.start(r, { name: n.getName() || "Office" }), Vt(e, t, n.getMajorFont() || "Calibri Light", "majorFont"), Vt(e, t, n.getMinorFont() || "Calibri", "minorFont"), t.end(r));
|
|
2962
3013
|
}(t, n, r.getFontScheme(), "fontScheme"), function(e, t, n, r, i) {
|
|
2963
3014
|
if (i?.fillStyleLst && i?.lnStyleLst && i?.effectStyleLst && i?.bgFillStyleLst) return void function(e, t, n, r, i) {
|
|
2964
3015
|
let a = { getTheme: () => r };
|
|
2965
3016
|
t.start(n, { name: "Office" }), t.start("fillStyleLst");
|
|
2966
|
-
for (let e of i.fillStyleLst)
|
|
3017
|
+
for (let e of i.fillStyleLst) K(0, t, e, a);
|
|
2967
3018
|
t.end("fillStyleLst"), t.start("lnStyleLst");
|
|
2968
|
-
for (let e of i.lnStyleLst)
|
|
3019
|
+
for (let e of i.lnStyleLst) Je(0, t, e, a);
|
|
2969
3020
|
t.end("lnStyleLst"), t.start("effectStyleLst");
|
|
2970
|
-
for (let n of i.effectStyleLst) t.start("effectStyle"), n.length > 0 ?
|
|
3021
|
+
for (let n of i.effectStyleLst) t.start("effectStyle"), n.length > 0 ? Ze(e, t, r, n) : t.empty("effectLst"), t.end("effectStyle");
|
|
2971
3022
|
t.end("effectStyleLst"), t.start("bgFillStyleLst");
|
|
2972
|
-
for (let e of i.bgFillStyleLst)
|
|
3023
|
+
for (let e of i.bgFillStyleLst) K(0, t, e, a);
|
|
2973
3024
|
t.end("bgFillStyleLst"), t.end(n);
|
|
2974
3025
|
}(e, t, n, r, i);
|
|
2975
3026
|
if (i?.formatSchemeXml) return void t.raw(i.formatSchemeXml);
|
|
@@ -3020,7 +3071,7 @@ var pn = (e, t, n, r) => {
|
|
|
3020
3071
|
}(t, n, "fmtScheme", r, i), n.end("themeElements"), n.start("objectDefaults"), n.end("objectDefaults"), n.start("extraClrSchemeLst"), n.end("extraClrSchemeLst"), n.end("theme"), n.close();
|
|
3021
3072
|
}
|
|
3022
3073
|
}(),
|
|
3023
|
-
new class extends
|
|
3074
|
+
new class extends B {
|
|
3024
3075
|
constructor() {
|
|
3025
3076
|
super({
|
|
3026
3077
|
kind: "styles",
|
|
@@ -3046,11 +3097,11 @@ var pn = (e, t, n, r) => {
|
|
|
3046
3097
|
for (let t = 0; t < r; t++) {
|
|
3047
3098
|
let r = t === 0 ? {
|
|
3048
3099
|
...n[t],
|
|
3049
|
-
named:
|
|
3100
|
+
named: I.BuiltInName.Normal
|
|
3050
3101
|
} : n[t], a = e.resolve(r), o = {};
|
|
3051
3102
|
r.named !== void 0 && (o.named = r.named), r.quotePrefix !== void 0 && (o.quotePrefix = r.quotePrefix);
|
|
3052
|
-
for (let e = 0; e <
|
|
3053
|
-
let t =
|
|
3103
|
+
for (let e = 0; e < at.length; e++) {
|
|
3104
|
+
let t = at[e];
|
|
3054
3105
|
if (r[t] === void 0 && t !== "alignment") continue;
|
|
3055
3106
|
let n = a?.[t] ?? r[t];
|
|
3056
3107
|
n !== void 0 && (o[t] = n);
|
|
@@ -3072,16 +3123,16 @@ var pn = (e, t, n, r) => {
|
|
|
3072
3123
|
namedStyles: []
|
|
3073
3124
|
};
|
|
3074
3125
|
(function(e, t) {
|
|
3075
|
-
let n = (e.getNamed(
|
|
3076
|
-
t.fontMap.set(
|
|
3126
|
+
let n = (e.getNamed(I.BuiltInName.Normal).toJSON().style ?? {}).font ?? {};
|
|
3127
|
+
t.fontMap.set(E.JSONStableStringify(n), "0"), t.fonts.push(n);
|
|
3077
3128
|
})(e, r), function(e) {
|
|
3078
3129
|
let t = { type: "none" };
|
|
3079
|
-
e.fillMap.set(
|
|
3130
|
+
e.fillMap.set(E.JSONStableStringify(t), "0"), e.fills.push(t);
|
|
3080
3131
|
let n = {
|
|
3081
3132
|
type: "pattern",
|
|
3082
3133
|
patternType: "gray125"
|
|
3083
3134
|
};
|
|
3084
|
-
e.fillMap.set(
|
|
3135
|
+
e.fillMap.set(E.JSONStableStringify(n), "1"), e.fills.push(n);
|
|
3085
3136
|
}(r), function(e) {
|
|
3086
3137
|
let t = {
|
|
3087
3138
|
bottom: { style: "none" },
|
|
@@ -3089,20 +3140,20 @@ var pn = (e, t, n, r) => {
|
|
|
3089
3140
|
right: { style: "none" },
|
|
3090
3141
|
top: { style: "none" }
|
|
3091
3142
|
};
|
|
3092
|
-
e.borderMap.set(
|
|
3143
|
+
e.borderMap.set(E.JSONStableStringify(t), "0"), e.borders.push(t);
|
|
3093
3144
|
}(r), function(e, t) {
|
|
3094
|
-
|
|
3145
|
+
st(e, e.getNamed(I.BuiltInName.Normal).toJSON(), t);
|
|
3095
3146
|
}(e, r);
|
|
3096
|
-
let i = t?.named ??
|
|
3097
|
-
for (let t of i)
|
|
3098
|
-
for (let t of n)
|
|
3147
|
+
let i = t?.named ?? D.EmptyArray;
|
|
3148
|
+
for (let t of i) st(e, t, r);
|
|
3149
|
+
for (let t of n) ot(e, t, r);
|
|
3099
3150
|
return r;
|
|
3100
|
-
}(i, r, a), s = t.getSharedStates().get(
|
|
3151
|
+
}(i, r, a), s = t.getSharedStates().get(it), c = function(e, t = 0) {
|
|
3101
3152
|
let n = e?.tables;
|
|
3102
3153
|
if (!n) return null;
|
|
3103
3154
|
let r = n.styles;
|
|
3104
3155
|
if (!r) return null;
|
|
3105
|
-
let i = [], a = /* @__PURE__ */ new Map(), o = Object.keys(r), s = [...
|
|
3156
|
+
let i = [], a = /* @__PURE__ */ new Map(), o = Object.keys(r), s = [...mt].reverse();
|
|
3106
3157
|
for (let e of o) {
|
|
3107
3158
|
let n = r[e];
|
|
3108
3159
|
for (let r of s) {
|
|
@@ -3128,7 +3179,7 @@ var pn = (e, t, n, r) => {
|
|
|
3128
3179
|
for (let e = 0; e < i; e++) {
|
|
3129
3180
|
let n = r[e];
|
|
3130
3181
|
t.empty("numFmt", {
|
|
3131
|
-
numFmtId: String(e +
|
|
3182
|
+
numFmtId: String(e + pt),
|
|
3132
3183
|
formatCode: n
|
|
3133
3184
|
});
|
|
3134
3185
|
}
|
|
@@ -3140,28 +3191,28 @@ var pn = (e, t, n, r) => {
|
|
|
3140
3191
|
count: String(a),
|
|
3141
3192
|
"x14ac:knownFonts": "1"
|
|
3142
3193
|
});
|
|
3143
|
-
for (let r of i)
|
|
3194
|
+
for (let r of i) ct(e, t, r, n);
|
|
3144
3195
|
t.end("fonts");
|
|
3145
3196
|
}(t, n, i, o), function(e, t, n, r) {
|
|
3146
3197
|
let i = r.fills, a = i.length;
|
|
3147
3198
|
t.start("fills", { count: String(a) });
|
|
3148
|
-
for (let e of i)
|
|
3199
|
+
for (let e of i) K(0, t, e, n, !0);
|
|
3149
3200
|
t.end("fills");
|
|
3150
3201
|
}(0, n, i, o), function(e, t, n, r) {
|
|
3151
3202
|
let i = r.borders, a = i.length;
|
|
3152
3203
|
t.start("borders", { count: String(a) });
|
|
3153
3204
|
let o = n.getTheme();
|
|
3154
|
-
for (let n of i)
|
|
3205
|
+
for (let n of i) lt(e, t, n, o, !1);
|
|
3155
3206
|
t.end("borders");
|
|
3156
3207
|
}(t, n, i, o), function(e, t, n, r, i) {
|
|
3157
3208
|
let a = i.namedStyles, o = a.length;
|
|
3158
3209
|
t.start("cellStyleXfs", { count: String(o) });
|
|
3159
|
-
for (let r of a)
|
|
3210
|
+
for (let r of a) dt(e, t, n, r.style ?? D.EmptyObject, i, !1);
|
|
3160
3211
|
t.end("cellStyleXfs");
|
|
3161
3212
|
}(t, n, i, 0, o), function(e, t, n, r, i) {
|
|
3162
3213
|
let a = r.length;
|
|
3163
3214
|
t.start("cellXfs", { count: String(a) });
|
|
3164
|
-
for (let o = 0; o < a; o++)
|
|
3215
|
+
for (let o = 0; o < a; o++) dt(e, t, n, r[o], i, !0);
|
|
3165
3216
|
t.end("cellXfs");
|
|
3166
3217
|
}(t, n, i, a, o), function(e, t, n, r, i) {
|
|
3167
3218
|
let a = i.namedStyles, o = a.length;
|
|
@@ -3174,7 +3225,7 @@ var pn = (e, t, n, r) => {
|
|
|
3174
3225
|
};
|
|
3175
3226
|
r.hidden && (c.hidden = "1"), r.iLevel && (c.iLevel = String(r.iLevel));
|
|
3176
3227
|
let l = null;
|
|
3177
|
-
l = o ===
|
|
3228
|
+
l = o === I.BuiltInName.Normal.toLowerCase() ? 0 : n.getNamed(i).getBuiltInID(), l !== null && (c.builtinId = String(l), c.customBuiltin = "1"), t.empty("cellStyle", c);
|
|
3178
3229
|
}
|
|
3179
3230
|
t.end("cellStyles");
|
|
3180
3231
|
}(0, n, i, 0, o), function(e, t, n, r, i) {
|
|
@@ -3182,21 +3233,8 @@ var pn = (e, t, n, r) => {
|
|
|
3182
3233
|
if (a.length === 0) return void t.empty("dxfs", { count: "0" });
|
|
3183
3234
|
let o = n.getTheme();
|
|
3184
3235
|
t.start("dxfs", { count: String(a.length) });
|
|
3185
|
-
let s =
|
|
3186
|
-
for (let r of a)
|
|
3187
|
-
if (t.start("dxf"), r.font && jt(e, t, r.font, n, !0), r.numberFormat !== void 0 && r.numberFormat !== null) {
|
|
3188
|
-
let e = F.toBuiltInID(r.numberFormat), n = typeof e == "number", i = n ? F.builtInFormat(e) : String(e);
|
|
3189
|
-
i && t.empty("numFmt", {
|
|
3190
|
-
numFmtId: String(n ? e : s++),
|
|
3191
|
-
formatCode: i
|
|
3192
|
-
});
|
|
3193
|
-
}
|
|
3194
|
-
if (r.fill && q(0, t, r.fill, n, !0, !0), r.alignment) {
|
|
3195
|
-
let n = Nt(e, t, r.alignment, !0);
|
|
3196
|
-
n && t.empty("alignment", n);
|
|
3197
|
-
}
|
|
3198
|
-
r.border && Mt(e, t, r.border, o, !0), t.end("dxf");
|
|
3199
|
-
}
|
|
3236
|
+
let s = pt;
|
|
3237
|
+
for (let r of a) s = ft(e, t, r, n, o, "dxf", s);
|
|
3200
3238
|
t.end("dxfs");
|
|
3201
3239
|
}(t, n, i, c, s), function(e, t, n, r, i) {
|
|
3202
3240
|
let a = r?.tables, o = a?.styles ?? null, s = o ? Object.keys(o) : null, c = s ? s.length : 0, l = {
|
|
@@ -3208,7 +3246,7 @@ var pn = (e, t, n, r) => {
|
|
|
3208
3246
|
t.start("tableStyles", l);
|
|
3209
3247
|
for (let e of s) {
|
|
3210
3248
|
let n = o[e], r = [];
|
|
3211
|
-
for (let e of
|
|
3249
|
+
for (let e of mt) {
|
|
3212
3250
|
let t = n[e];
|
|
3213
3251
|
t && r.push([e, t]);
|
|
3214
3252
|
}
|
|
@@ -3231,7 +3269,7 @@ var pn = (e, t, n, r) => {
|
|
|
3231
3269
|
if (t.start("colors"), i) {
|
|
3232
3270
|
t.start("indexedColors");
|
|
3233
3271
|
for (let e of r.indexedColors) {
|
|
3234
|
-
let n =
|
|
3272
|
+
let n = qe(e, !0);
|
|
3235
3273
|
t.empty("rgbColor", { rgb: n });
|
|
3236
3274
|
}
|
|
3237
3275
|
t.end("indexedColors");
|
|
@@ -3239,7 +3277,7 @@ var pn = (e, t, n, r) => {
|
|
|
3239
3277
|
if (a) {
|
|
3240
3278
|
t.start("mruColors");
|
|
3241
3279
|
for (let e of r.mruColors) {
|
|
3242
|
-
let n =
|
|
3280
|
+
let n = qe(e);
|
|
3243
3281
|
t.empty("color", { rgb: n });
|
|
3244
3282
|
}
|
|
3245
3283
|
t.end("mruColors");
|
|
@@ -3257,7 +3295,7 @@ var pn = (e, t, n, r) => {
|
|
|
3257
3295
|
}(0, n), n.end("styleSheet"), n.close();
|
|
3258
3296
|
}
|
|
3259
3297
|
}(),
|
|
3260
|
-
new class extends
|
|
3298
|
+
new class extends B {
|
|
3261
3299
|
constructor() {
|
|
3262
3300
|
super({
|
|
3263
3301
|
kind: "propsCore",
|
|
@@ -3278,14 +3316,14 @@ var pn = (e, t, n, r) => {
|
|
|
3278
3316
|
let r = /* @__PURE__ */ new Date(), i = [
|
|
3279
3317
|
["creator", "SheetXL"],
|
|
3280
3318
|
["lastModifiedBy", "SheetXL"],
|
|
3281
|
-
["created",
|
|
3282
|
-
["modified",
|
|
3319
|
+
["created", Ht(r)],
|
|
3320
|
+
["modified", Ht(r)]
|
|
3283
3321
|
];
|
|
3284
|
-
for (let e of i)
|
|
3322
|
+
for (let e of i) Ut(n, e[0], e[1]);
|
|
3285
3323
|
n.end("cp:coreProperties"), n.close();
|
|
3286
3324
|
}
|
|
3287
3325
|
}(),
|
|
3288
|
-
new class extends
|
|
3326
|
+
new class extends B {
|
|
3289
3327
|
constructor() {
|
|
3290
3328
|
super({
|
|
3291
3329
|
kind: "propsApp",
|
|
@@ -3295,21 +3333,21 @@ var pn = (e, t, n, r) => {
|
|
|
3295
3333
|
});
|
|
3296
3334
|
}
|
|
3297
3335
|
async emit(e, t) {
|
|
3298
|
-
let n = t.getXMLWriter(), r = e.model, i = await
|
|
3299
|
-
if (!e || typeof e != "string") return
|
|
3336
|
+
let n = t.getXMLWriter(), r = e.model, i = await re.getDetails(), a = function(e) {
|
|
3337
|
+
if (!e || typeof e != "string") return xt;
|
|
3300
3338
|
if (e === "local" || e === "dev" || e === "development") return "00.0000";
|
|
3301
3339
|
let t = e.match(/^(\d+)(?:\.(\d+))?(?:\.(\d+))?/);
|
|
3302
|
-
if (!t) return
|
|
3340
|
+
if (!t) return xt;
|
|
3303
3341
|
let n = parseInt(t[1], 10), r = parseInt(t[2] || "0", 10);
|
|
3304
|
-
return n > 99 || r > 9999 ?
|
|
3342
|
+
return n > 99 || r > 9999 ? xt : `${n.toString()}.${r.toString().padStart(4, "0")}`;
|
|
3305
3343
|
}(i.getBuildVersion()), o = i.getLicensee() || "";
|
|
3306
3344
|
n.setValidationDisabled(!0), n.decl(), n.start("Properties", {
|
|
3307
3345
|
xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
|
|
3308
3346
|
"xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
|
|
3309
|
-
}), Q(t, n, "Application", "SheetXL"), Q(t, n, "DocSecurity", "0"), Q(t, n, "ScaleCrop", "false"),
|
|
3347
|
+
}), Q(t, n, "Application", "SheetXL"), Q(t, n, "DocSecurity", "0"), Q(t, n, "ScaleCrop", "false"), Wt(t, n, r), Q(t, n, "Company", o), Q(t, n, "LinksUpToDate", "false"), Q(t, n, "SharedDoc", "false"), Q(t, n, "HyperlinksChanged", "false"), Q(t, n, "AppVersion", a), n.end("Properties"), n.close();
|
|
3310
3348
|
}
|
|
3311
3349
|
}(),
|
|
3312
|
-
new class extends
|
|
3350
|
+
new class extends B {
|
|
3313
3351
|
constructor() {
|
|
3314
3352
|
super({
|
|
3315
3353
|
kind: "metadata",
|
|
@@ -3324,11 +3362,11 @@ var pn = (e, t, n, r) => {
|
|
|
3324
3362
|
let d = { xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main" };
|
|
3325
3363
|
if (r && (d["xmlns:xda"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"), i && (d["xmlns:xlrd"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata"), n.decl(), n.start("metadata", d), n.start("metadataTypes", { count: u }), r && n.empty("metadataType", {
|
|
3326
3364
|
name: "XLDAPR",
|
|
3327
|
-
...
|
|
3365
|
+
...Gt,
|
|
3328
3366
|
cellMeta: "1"
|
|
3329
3367
|
}), i && n.empty("metadataType", {
|
|
3330
3368
|
name: "XLRICHVALUE",
|
|
3331
|
-
...
|
|
3369
|
+
...Gt
|
|
3332
3370
|
}), n.end("metadataTypes"), r) {
|
|
3333
3371
|
n.start("futureMetadata", {
|
|
3334
3372
|
name: "XLDAPR",
|
|
@@ -3367,7 +3405,7 @@ var pn = (e, t, n, r) => {
|
|
|
3367
3405
|
n.end("metadata"), n.close();
|
|
3368
3406
|
}
|
|
3369
3407
|
}(),
|
|
3370
|
-
new class extends
|
|
3408
|
+
new class extends B {
|
|
3371
3409
|
constructor() {
|
|
3372
3410
|
super({
|
|
3373
3411
|
kind: "richValue",
|
|
@@ -3392,7 +3430,7 @@ var pn = (e, t, n, r) => {
|
|
|
3392
3430
|
n.end("rvData"), n.close();
|
|
3393
3431
|
}
|
|
3394
3432
|
}(),
|
|
3395
|
-
new class extends
|
|
3433
|
+
new class extends B {
|
|
3396
3434
|
constructor() {
|
|
3397
3435
|
super({
|
|
3398
3436
|
kind: "richValueStructure",
|
|
@@ -3418,7 +3456,7 @@ var pn = (e, t, n, r) => {
|
|
|
3418
3456
|
n.end("rvStructures"), n.close();
|
|
3419
3457
|
}
|
|
3420
3458
|
}(),
|
|
3421
|
-
new class extends
|
|
3459
|
+
new class extends B {
|
|
3422
3460
|
constructor() {
|
|
3423
3461
|
super({
|
|
3424
3462
|
kind: "richValueTypes",
|
|
@@ -3459,7 +3497,7 @@ var pn = (e, t, n, r) => {
|
|
|
3459
3497
|
n.end("keyFlags"), n.end("global"), n.end("rvTypesInfo"), n.close();
|
|
3460
3498
|
}
|
|
3461
3499
|
}(),
|
|
3462
|
-
new class extends
|
|
3500
|
+
new class extends B {
|
|
3463
3501
|
constructor() {
|
|
3464
3502
|
super({
|
|
3465
3503
|
kind: "drawing",
|
|
@@ -3494,24 +3532,24 @@ var pn = (e, t, n, r) => {
|
|
|
3494
3532
|
}
|
|
3495
3533
|
for (let e = 0; e < s; e++) {
|
|
3496
3534
|
let s = o[e], c = a[e], u = s.content?.type;
|
|
3497
|
-
switch (n.start("twoCellAnchor", { editAs: s.anchorType || "twoCell" }),
|
|
3535
|
+
switch (n.start("twoCellAnchor", { editAs: s.anchorType || "twoCell" }), fn(n, "from", s.anchor.tl), fn(n, "to", s.anchor.br), u) {
|
|
3498
3536
|
case "picture":
|
|
3499
|
-
await
|
|
3537
|
+
await Qt(t, i, r, c, s);
|
|
3500
3538
|
break;
|
|
3501
3539
|
case "chart":
|
|
3502
|
-
await
|
|
3540
|
+
await en(t, i, r, c, s, l.get(s));
|
|
3503
3541
|
break;
|
|
3504
3542
|
case "shape":
|
|
3505
|
-
await
|
|
3543
|
+
await an(t, i, r, c, s, l.get(s));
|
|
3506
3544
|
break;
|
|
3507
3545
|
case "smartArt":
|
|
3508
|
-
await
|
|
3546
|
+
await tn(t, i, r, c, s);
|
|
3509
3547
|
break;
|
|
3510
3548
|
case "slicer":
|
|
3511
|
-
await
|
|
3549
|
+
await nn(t, i, r, c, s);
|
|
3512
3550
|
break;
|
|
3513
3551
|
case "graphicFrame":
|
|
3514
|
-
await
|
|
3552
|
+
await rn(t, i, r, c, s);
|
|
3515
3553
|
break;
|
|
3516
3554
|
default: await $(t, i, r, c, s);
|
|
3517
3555
|
}
|
|
@@ -3520,7 +3558,7 @@ var pn = (e, t, n, r) => {
|
|
|
3520
3558
|
n.end("wsDr"), n.close();
|
|
3521
3559
|
}
|
|
3522
3560
|
}(),
|
|
3523
|
-
new class extends
|
|
3561
|
+
new class extends B {
|
|
3524
3562
|
constructor() {
|
|
3525
3563
|
super({
|
|
3526
3564
|
kind: "table",
|
|
@@ -3539,10 +3577,10 @@ var pn = (e, t, n, r) => {
|
|
|
3539
3577
|
"xmlns:xr": "http://schemas.microsoft.com/office/spreadsheetml/2014/revision",
|
|
3540
3578
|
"xmlns:xr3": "http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"
|
|
3541
3579
|
}, i = e.json, a = e.model;
|
|
3542
|
-
a.isShowHeaders(), r.id = ++
|
|
3580
|
+
a.isShowHeaders(), r.id = ++pn, r.name = i.name?.trim(), r.displayName = i.description ?? i.name, r.ref = e.ref, i.headerRowCount !== 1 && (r.headerRowCount = i.headerRowCount), i.totalsRowCount !== 0 && (r.totalsRowCount = i.totalsRowCount), a.isShowTotals() || (r.totalsRowShown = "0"), n.start("table", r), a.isShowHeaders() && _t(t, n, a, i), mn(t, n, a, i), hn(t, n, a, i), n.end("table"), n.close();
|
|
3543
3581
|
}
|
|
3544
3582
|
}(),
|
|
3545
|
-
new class extends
|
|
3583
|
+
new class extends B {
|
|
3546
3584
|
constructor() {
|
|
3547
3585
|
super({
|
|
3548
3586
|
kind: "chart",
|
|
@@ -3558,10 +3596,10 @@ var pn = (e, t, n, r) => {
|
|
|
3558
3596
|
"xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main",
|
|
3559
3597
|
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
3560
3598
|
"xmlns:c16r2": "http://schemas.microsoft.com/office/drawing/2015/06/chart"
|
|
3561
|
-
}), n.empty("date1904", { val: "0" }), n.empty("lang", { val: "en-US" }), n.empty("roundedCorners", { val: "0" }),
|
|
3599
|
+
}), n.empty("date1904", { val: "0" }), n.empty("lang", { val: "en-US" }), n.empty("roundedCorners", { val: "0" }), vn(t, n, e.model, e.json), yn(t, n, e.styles, e.model, e.json), bn(t, n, e.model, e.json), n.end("chartSpace"), n.popDefaultNamespace(), n.close(), t.addPart("chartStyle", { styles: e.styles }), t.addPart("chartColors", { styles: e.styles });
|
|
3562
3600
|
}
|
|
3563
3601
|
}(),
|
|
3564
|
-
new class extends
|
|
3602
|
+
new class extends B {
|
|
3565
3603
|
constructor() {
|
|
3566
3604
|
super({
|
|
3567
3605
|
kind: "chartStyle",
|
|
@@ -3576,10 +3614,10 @@ var pn = (e, t, n, r) => {
|
|
|
3576
3614
|
"xmlns:cs": "http://schemas.microsoft.com/office/drawing/2012/chartStyle",
|
|
3577
3615
|
"xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main",
|
|
3578
3616
|
id: "297"
|
|
3579
|
-
}),
|
|
3617
|
+
}), Sn(t, n, Cn, e.styles), n.end("chartStyle"), n.close();
|
|
3580
3618
|
}
|
|
3581
3619
|
}(),
|
|
3582
|
-
new class extends
|
|
3620
|
+
new class extends B {
|
|
3583
3621
|
constructor() {
|
|
3584
3622
|
super({
|
|
3585
3623
|
kind: "chartColors",
|
|
@@ -3595,16 +3633,16 @@ var pn = (e, t, n, r) => {
|
|
|
3595
3633
|
"xmlns:a": "http://schemas.openxmlformats.org/drawingml/2006/main",
|
|
3596
3634
|
meth: "cycle",
|
|
3597
3635
|
id: "10"
|
|
3598
|
-
}), n.empty("a:schemeClr", { val: "accent1" }), n.empty("a:schemeClr", { val: "accent2" }), n.empty("a:schemeClr", { val: "accent3" }), n.empty("a:schemeClr", { val: "accent4" }), n.empty("a:schemeClr", { val: "accent5" }), n.empty("a:schemeClr", { val: "accent6" }),
|
|
3636
|
+
}), n.empty("a:schemeClr", { val: "accent1" }), n.empty("a:schemeClr", { val: "accent2" }), n.empty("a:schemeClr", { val: "accent3" }), n.empty("a:schemeClr", { val: "accent4" }), n.empty("a:schemeClr", { val: "accent5" }), n.empty("a:schemeClr", { val: "accent6" }), wn(t, n, Tn), n.end("cs:colorStyle"), n.close();
|
|
3599
3637
|
}
|
|
3600
3638
|
}()
|
|
3601
|
-
],
|
|
3639
|
+
], Dn = async (e, t) => {
|
|
3602
3640
|
let n = new Ne();
|
|
3603
|
-
for (let e of
|
|
3604
|
-
let r =
|
|
3641
|
+
for (let e of En) n.register(e);
|
|
3642
|
+
let r = On, i = ie.createUint8Array({
|
|
3605
3643
|
lastModDate: new Date(1899, 11, 29, 19, 0, 0),
|
|
3606
3644
|
level: r
|
|
3607
|
-
}), a = e.getOrigin(), o = t?.format === "Excel" ?
|
|
3645
|
+
}), a = e.getOrigin(), o = t?.format === "Excel" ? m(a) : null, s = /* @__PURE__ */ new Map(), c = new je(i, n, {
|
|
3608
3646
|
strictDuplicateChildren: !0,
|
|
3609
3647
|
onPartEmitted: t?.onPartEmitted,
|
|
3610
3648
|
mapState: s,
|
|
@@ -3613,5 +3651,5 @@ var pn = (e, t, n, r) => {
|
|
|
3613
3651
|
c.addPart("workbook", e, "/xl/workbook.xml"), await c.waitEmit(), c.addPart("propsCore", {}), c.addPart("propsApp", { model: e });
|
|
3614
3652
|
let l = await c.build();
|
|
3615
3653
|
return l.byteOffset === 0 && l.byteLength === l.buffer.byteLength ? l.buffer : l.slice().buffer;
|
|
3616
|
-
},
|
|
3617
|
-
export {
|
|
3654
|
+
}, On = 1;
|
|
3655
|
+
export { Dn as writeXLSX };
|