@sheetxl/io-xlsx 0.8.0-beta.20 → 0.8.0-beta.22
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/esm/{Bw35-W8cnzxxvqQy.mjs → 2Tu0hkxKQVlv9Cra.mjs} +4 -4
- package/browser/esm/{CSOuRlSN9bhykqDr.mjs → B-gFy6wqDX1nS1H6.mjs} +724 -719
- package/browser/esm/{RFSuXvJ9sgsaA2LC.mjs → BksP77A3tWZz2uFZ.mjs} +4 -4
- package/browser/esm/{C16bEh6IrUpJONhS.mjs → CSeKlqJLKPdaHQnM.mjs} +2 -2
- package/browser/esm/{D7ogsrtXfjU5NW7r.mjs → Cx9ap9QP6pCr4onD.mjs} +2 -2
- package/browser/esm/{S4Uq85YdUb6O5Pz0.mjs → DEQzaCJ7RX2QoCut.mjs} +1 -1
- package/browser/esm/{PgUWs0pPSCSFYJtU.mjs → DKFJjTTJkuTmxyrC.mjs} +2 -2
- package/browser/esm/{CPK1-z95jtLOfCXG.mjs → Dm3PlbhnXRlbfwcc.mjs} +2 -2
- package/browser/esm/{DpPFQ7-tBwVyjvWr.mjs → TlUpdMxCXP6T7d5o.mjs} +1 -1
- package/browser/esm/{D2872f7aTugYxhht.mjs → fw-xerhhOIbrtjj8.mjs} +2 -2
- package/browser/esm/{D8CQKL3Y3CMFOPqD.mjs → hYm31nxQHahoYW47.mjs} +329 -319
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{D2vDZOgLcv-YiWnB.mjs → -4emwUa_cqmg0qom.mjs} +279 -274
- package/node/esm/{BSHqfcsR9hY-JB30.mjs → B1_JjHLkB9GQt41F.mjs} +1 -1
- package/node/esm/{DFw0ibBUmPyd-wey.mjs → BaRyFsg1YMFUyXd4.mjs} +4 -4
- package/node/esm/{BOAucs-qLpjtUOcZ.mjs → C1VsUbGfwY9-dlaU.mjs} +1 -1
- package/node/esm/{DGuQIj077oygCTGu.mjs → C6HiyeKhrpNGFeb3.mjs} +2 -2
- package/node/esm/{Qn2Bv4QG3mOLiJHh.mjs → CeRdSa9ObgI_mmCT.mjs} +478 -468
- package/node/esm/{C6eSWtTkyDQKbQdT.mjs → Dd0rxpiUIxg4BeeC.mjs} +2 -2
- package/node/esm/index.mjs +4 -4
- package/node/esm/{CPhiu1T7tl-leKh2.mjs → yNj0KH21rJk2rfm7.mjs} +2 -2
- package/package.json +3 -3
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.22
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { $n as t, $t as e, Ar as n, At as o, Bt as s, C as a, Cn as i, Cr as l, D as c, Dn as d, Dr as m, Dt as p, Er as f, Et as h, Fn as u, Ft as g, G as
|
|
8
|
-
import { EXCEL_FORMAT_KEYS as
|
|
9
|
-
import { a as ve, c as we, i as Se, l as be, n as Ce, t as ke } from "./
|
|
7
|
+
import { $n as t, $t as e, Ar as n, At as o, Bt as s, C as a, Cn as i, Cr as l, D as c, Dn as d, Dr as m, Dt as p, Er as f, Et as h, Fn as u, Ft as g, G as x, Gn as y, Gt as v, H as w, Hn as S, In as b, Ir as C, J as k, Jn as T, Jt as I, K as R, Kt as F, Mn as E, Mr as M, Mt as P, Nr as A, O as D, On as L, Or as _, Ot as N, Pr as $, Pt as B, Q as O, Qt as V, S as W, Sr as z, U as j, Un as X, Vt as H, W as U, X as q, Xt as J, Y as K, Yt as Y, Z, Zt as Q, _n as tt, _r as et, _t as nt, a as ot, an as rt, at as st, b as at, bn as it, c as lt, cn as ct, cr as dt, d as mt, dr as pt, dt as ft, en as ht, et as ut, fr as gt, ft as xt, g as yt, gn as vt, gr as wt, gt as St, h as bt, hn as Ct, hr as kt, ht as Tt, i as It, ir as Rt, jr as Ft, kn as Et, kr as Mt, kt as Pt, l as At, ln as Dt, lr as Lt, lt as _t, m as Nt, mr as $t, mt as Bt, nr as Ot, o as Vt, on as Wt, or as zt, pn as jt, pr as Xt, pt as Ht, q as Ut, qn as Gt, qt, r as Jt, rr as Kt, rt as Yt, s as Zt, sn as Qt, st as te, tt as ee, u as ne, un as oe, ur as re, ut as se, vn as ae, vr as ie, w as le, wn as ce, wr as de, x as me, xn as pe, xr as fe, y as he, yt as ue, zn as ge, zt as xe } from "./C1VsUbGfwY9-dlaU.mjs";
|
|
8
|
+
import { EXCEL_FORMAT_KEYS as ye } from "./index.mjs";
|
|
9
|
+
import { a as ve, c as we, i as Se, l as be, n as Ce, t as ke } from "./C6HiyeKhrpNGFeb3.mjs";
|
|
10
10
|
import { BufferUtils as Te, OverlappingRange as Ie, RangeAxis as Re } from "@sheetxl/utils";
|
|
11
11
|
import { AddressUtils as Fe, BufferUtils as Ee, Color as Me, CommonUtils as Pe, CoordUtils as Ae, FormulaError as De, FormulaText as Le, Hyperlink as _e, IBorders as Ne, ICellStyle as $e, IColor as Be, ICondition as Oe, IConditionalFormat as Ve, ICustomProperty as We, IEffect as ze, IFill as je, IFont as Xe, IFontCollection as He, IRange as Ue, IShape as Ge, ISheet as qe, IStroke as Je, ITextFrame as Ke, IWorkbookView as Ye, IWorksheetView as Ze, LicenseManager as Qe, NumberFormat as tn, Resource as en, RichArray as nn, RichRecord as on, RichText as rn, Scalar as sn, ScalarType as an, ShapeStyleUtils as ln, pivotCellFormatsOf as cn } from "@sheetxl/sdk";
|
|
12
12
|
import { BlobWriter as dn, TextReader as mn, TextWriter as pn, Uint8ArrayReader as fn, Uint8ArrayWriter as hn, ZipReader as un, ZipWriter as gn } from "@zip.js/zip.js";
|
|
13
|
-
var
|
|
13
|
+
var xn = [
|
|
14
14
|
["%EntityServiceId", "i"],
|
|
15
15
|
["_DisplayString", "s"],
|
|
16
16
|
["%EntityId", "s"],
|
|
17
17
|
["%EntityCulture", "s"],
|
|
18
18
|
["_Icon", "s"]
|
|
19
|
-
],
|
|
19
|
+
], yn = [["%cvi", "r"]], vn = [
|
|
20
20
|
["ShowInCardView", "0"],
|
|
21
21
|
["ShowInDotNotation", "0"],
|
|
22
22
|
["ShowInAutoComplete", "0"],
|
|
@@ -821,7 +821,7 @@ function lo(t, e, n, o, r) {
|
|
|
821
821
|
}
|
|
822
822
|
const l = Ro(o, e, i, t.rows, !1);
|
|
823
823
|
if (t.cols === r && t.rows === l) return t;
|
|
824
|
-
const c = [], d =
|
|
824
|
+
const c = [], d = xo(r, e, !0), m = xo(l, e, !1), p = o;
|
|
825
825
|
for (const t of d) p.push(t), p.push({
|
|
826
826
|
...t,
|
|
827
827
|
value: 0
|
|
@@ -832,21 +832,21 @@ function lo(t, e, n, o, r) {
|
|
|
832
832
|
});
|
|
833
833
|
const f = new Ie.IteratorInstance(p, { axis: Re.Column }), h = e.rowEnd, u = e.colEnd, g = (t, e) => {
|
|
834
834
|
t.rowStart >= h || t.colStart >= u || c.push([t, e]);
|
|
835
|
-
},
|
|
836
|
-
let e =
|
|
835
|
+
}, x = /* @__PURE__ */ new Map(), y = (t) => {
|
|
836
|
+
let e = x.get(t);
|
|
837
837
|
if (void 0 === e) {
|
|
838
838
|
const o = n.getElementJSON(t);
|
|
839
|
-
e = o?.borders ? o : null,
|
|
839
|
+
e = o?.borders ? o : null, x.set(t, e);
|
|
840
840
|
}
|
|
841
841
|
return e;
|
|
842
842
|
}, v = (t, e, o) => {
|
|
843
|
-
const r =
|
|
843
|
+
const r = y(e);
|
|
844
844
|
if (!r || Ae.isEqualRanges(t, o)) return e;
|
|
845
845
|
let s = mo(r.borders, t, o, !0);
|
|
846
846
|
s && (s = mo(s, t, o, !1));
|
|
847
847
|
const a = { ...r };
|
|
848
848
|
return s ? a.borders = s : delete a.borders, n.getElementID(a, n.getElementComplement?.(e)) ?? e;
|
|
849
|
-
}, w = (t, e, n, o, r) => e === o && (!
|
|
849
|
+
}, w = (t, e, n, o, r) => e === o && (!y(o) || v(t, e, r) === v(n, o, r)), S = /* @__PURE__ */ new Map(), b = (t, e) => {
|
|
850
850
|
if (e.rowStart >= h || e.colStart >= u) return;
|
|
851
851
|
const n = S.get(t);
|
|
852
852
|
n ? n.push(e) : S.set(t, [e]);
|
|
@@ -875,7 +875,7 @@ function lo(t, e, n, o, r) {
|
|
|
875
875
|
}) : b(s, n) : w(i, a, s, r, n) || b(s, n);
|
|
876
876
|
}
|
|
877
877
|
for (const [t, e] of S) {
|
|
878
|
-
const n =
|
|
878
|
+
const n = yo(e);
|
|
879
879
|
for (let e = 0; e < n.length; e++) {
|
|
880
880
|
const o = {
|
|
881
881
|
rowStart: n[e].rowStart,
|
|
@@ -1024,7 +1024,7 @@ function go(t) {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
return e;
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function xo(t, e, n) {
|
|
1028
1028
|
const o = n ? e.rowStart : e.colStart, r = n ? e.rowEnd : e.colEnd;
|
|
1029
1029
|
return t.map((t) => {
|
|
1030
1030
|
const e = {
|
|
@@ -1036,7 +1036,7 @@ function yo(t, e, n) {
|
|
|
1036
1036
|
return void 0 !== t.value && (e.value = t.value), e;
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function yo(t) {
|
|
1040
1040
|
let e = [...t];
|
|
1041
1041
|
if (t.length <= 1) return e;
|
|
1042
1042
|
let n = !0, o = 0;
|
|
@@ -1338,7 +1338,7 @@ var Fo = class {
|
|
|
1338
1338
|
const r = o.getKind(), i = wn(r), l = r.getMeta(), c = l?.card, d = o.getOwnMeta() ?? {}, m = o.getValues(), p = [], f = [];
|
|
1339
1339
|
for (const o of r.getProperties()) {
|
|
1340
1340
|
const { name: h } = o;
|
|
1341
|
-
if (
|
|
1341
|
+
if (y.has(h)) {
|
|
1342
1342
|
switch (p.push([h, "_Icon" === h ? "s" : "spb"]), h) {
|
|
1343
1343
|
case "_Icon":
|
|
1344
1344
|
f.push(l?.icon ?? "");
|
|
@@ -1408,14 +1408,14 @@ var Fo = class {
|
|
|
1408
1408
|
return t.addValue(t.structureFor(i, p), f);
|
|
1409
1409
|
}, l = (e) => {
|
|
1410
1410
|
const n = wn(e.getKind());
|
|
1411
|
-
if ("_linkedentitycore" === n) return t.addKeyFlags("_linkedentity", "%cvi", vn), t.addValue(t.structureFor("_linkedentity",
|
|
1411
|
+
if ("_linkedentitycore" === n) return t.addKeyFlags("_linkedentity", "%cvi", vn), t.addValue(t.structureFor("_linkedentity", yn), ["" + i(e)]);
|
|
1412
1412
|
if ("_linkedentity2core" === n) {
|
|
1413
1413
|
i(e);
|
|
1414
1414
|
const n = (t) => {
|
|
1415
1415
|
const n = e.getProperty(t);
|
|
1416
1416
|
return null == n ? "" : "" + n;
|
|
1417
1417
|
};
|
|
1418
|
-
return t.addValue(t.structureFor("_linkedentity2",
|
|
1418
|
+
return t.addValue(t.structureFor("_linkedentity2", xn), [
|
|
1419
1419
|
n("%EntityServiceId"),
|
|
1420
1420
|
n("_DisplayString"),
|
|
1421
1421
|
n("%EntityId"),
|
|
@@ -1789,7 +1789,7 @@ function qo(t, e, n, o, r = !1, s = !1) {
|
|
|
1789
1789
|
}), n.type !== je.Type.Image || r) if (n.type !== je.Type.Group || r) if (n.type === je.Type.None || n.type === je.Type.Image || n.type === je.Type.Group) r ? e.empty("patternFill", { patternType: "none" }) : e.empty("noFill");
|
|
1790
1790
|
else if (n.type === je.Type.Solid) {
|
|
1791
1791
|
const t = n;
|
|
1792
|
-
r ? e.start("patternFill", { patternType: "solid" }) : e.start("solidFill"), t.color && (r ? No(e, a, t.color, "fgColor") : Lo(e, a, t.color)), r ? e.end("patternFill") : e.end("solidFill");
|
|
1792
|
+
r ? e.start("patternFill", { patternType: "solid" }) : e.start("solidFill"), t.color && (r ? No(e, a, t.color, s ? "bgColor" : "fgColor") : Lo(e, a, t.color)), r ? e.end("patternFill") : e.end("solidFill");
|
|
1793
1793
|
} else if (n.type === je.Type.Pattern) {
|
|
1794
1794
|
const t = n, o = t.patternType || "solid";
|
|
1795
1795
|
e.start("patternFill", { patternType: o });
|
|
@@ -2007,9 +2007,9 @@ var Jo = (t, e, n, o) => {
|
|
|
2007
2007
|
getCount() {
|
|
2008
2008
|
return this._dxfs.length;
|
|
2009
2009
|
}
|
|
2010
|
-
},
|
|
2011
|
-
let e = t.get(
|
|
2012
|
-
return e || (e = new gr(), t.set(
|
|
2010
|
+
}, xr = "dxfs", yr = (t) => {
|
|
2011
|
+
let e = t.get(xr);
|
|
2012
|
+
return e || (e = new gr(), t.set(xr, e)), e;
|
|
2013
2013
|
}, vr = "stylesLayout", wr = (t, e) => {
|
|
2014
2014
|
const n = function(t, e) {
|
|
2015
2015
|
let n = e?.direct;
|
|
@@ -2177,8 +2177,8 @@ function Ar(t, e, n, o, r, s, a = !1, i = !1, l = null) {
|
|
|
2177
2177
|
const c = {};
|
|
2178
2178
|
let d = null, m = o.named;
|
|
2179
2179
|
m && (d = n.getNamedStyles().getByName(m).toJSON().style);
|
|
2180
|
-
const p = o.font ?? d?.font, f = p ? r.fontMap.get(Ee.JSONStableStringify(p)) ?? 0 : 0, h = o.fill ?? d?.fill, u = h ? r.fillMap.get(Ee.JSONStableStringify(h)) ?? 0 : 0, g = o.borders ?? d?.borders,
|
|
2181
|
-
if (c.numFmtId = (void 0 !==
|
|
2180
|
+
const p = o.font ?? d?.font, f = p ? r.fontMap.get(Ee.JSONStableStringify(p)) ?? 0 : 0, h = o.fill ?? d?.fill, u = h ? r.fillMap.get(Ee.JSONStableStringify(h)) ?? 0 : 0, g = o.borders ?? d?.borders, x = g ? r.borderMap.get(Ee.JSONStableStringify(g)) ?? 0 : 0, y = o.numberFormat ?? d?.numberFormat;
|
|
2181
|
+
if (c.numFmtId = (void 0 !== y ? r.numFmtMap.get(y) : void 0) ?? "0", c.fontId = String(f), c.fillId = String(u), c.borderId = String(x), s) {
|
|
2182
2182
|
const t = o.named ?? $e.BuiltInName.Normal;
|
|
2183
2183
|
c.xfId = r.namedStyleMap.get(t.toLowerCase());
|
|
2184
2184
|
}
|
|
@@ -2288,16 +2288,16 @@ var $r = Object.freeze([
|
|
|
2288
2288
|
};
|
|
2289
2289
|
const g = [];
|
|
2290
2290
|
for (let t = 0; t < o.length; t++) o[t].noRecords || g.push(t);
|
|
2291
|
-
const
|
|
2291
|
+
const x = [Wr, `<pivotCacheRecords xmlns="${Or}" xmlns:r="${Vr}" count="${i}">`];
|
|
2292
2292
|
for (let t = 0; t < i; t++) {
|
|
2293
|
-
|
|
2293
|
+
x.push("<r>");
|
|
2294
2294
|
for (const n of g) {
|
|
2295
2295
|
const r = a[n][t];
|
|
2296
|
-
|
|
2296
|
+
x.push(o[n].inline ? Yr(s[n][r], !!o[n].dates || !!o[n].dateItems?.includes(r), !1, e) : `<x v="${r}"/>`);
|
|
2297
2297
|
}
|
|
2298
|
-
|
|
2298
|
+
x.push("</r>");
|
|
2299
2299
|
}
|
|
2300
|
-
return
|
|
2300
|
+
return x.push("</pivotCacheRecords>"), {
|
|
2301
2301
|
id: "",
|
|
2302
2302
|
type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition",
|
|
2303
2303
|
name: "pivotCacheDefinition1.xml",
|
|
@@ -2307,7 +2307,7 @@ var $r = Object.freeze([
|
|
|
2307
2307
|
type: ve,
|
|
2308
2308
|
contentType: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml",
|
|
2309
2309
|
name: "pivotCacheRecords1.xml",
|
|
2310
|
-
xml:
|
|
2310
|
+
xml: x.join("")
|
|
2311
2311
|
}]
|
|
2312
2312
|
};
|
|
2313
2313
|
}, Ur = (t, e) => {
|
|
@@ -2463,7 +2463,7 @@ var $r = Object.freeze([
|
|
|
2463
2463
|
}, rs = (t) => {
|
|
2464
2464
|
const e = t.getSharedStates(), n = e.get(vr);
|
|
2465
2465
|
if (!n) throw new Error("The styles are laid out before the pivot parts are written.");
|
|
2466
|
-
const o =
|
|
2466
|
+
const o = yr(e);
|
|
2467
2467
|
return {
|
|
2468
2468
|
numFmtId: (t) => ((t, e) => (Cr(t.styles, e, t.denormalized), parseInt(t.denormalized.numFmtMap.get(e) ?? "0", 10)))(n, t),
|
|
2469
2469
|
dxfId: (t) => o.add(t)
|
|
@@ -2493,7 +2493,7 @@ var $r = Object.freeze([
|
|
|
2493
2493
|
});
|
|
2494
2494
|
c.ref = Fe.rangeToString(h);
|
|
2495
2495
|
const u = pe(r.sortOn);
|
|
2496
|
-
u && (c.sortBy = u), void 0 !== r.style && (c.dxfId =
|
|
2496
|
+
u && (c.sortBy = u), void 0 !== r.style && (c.dxfId = yr(t.getSharedStates()).add(r.style)), void 0 !== r.iconSet && (c.iconSet = r.iconSet), void 0 !== r.customList && (c.customList = r.customList), e.empty("sortCondition", c);
|
|
2497
2497
|
}
|
|
2498
2498
|
e.end("sortState");
|
|
2499
2499
|
}, ms = (t, e, n, o, r = !1) => {
|
|
@@ -2549,7 +2549,7 @@ var $r = Object.freeze([
|
|
|
2549
2549
|
if (r === Oe.BuiltInOperatorNames.Unique) return void t.warn("Unique conditions not supported in Table AutoFilters", n);
|
|
2550
2550
|
if (r === Oe.BuiltInOperatorNames.Color) {
|
|
2551
2551
|
const o = n.param, r = {};
|
|
2552
|
-
void 0 !== o.cellColor && (r.cellColor = o.cellColor ? "1" : "0"), void 0 !== o.style && (r.dxfId =
|
|
2552
|
+
void 0 !== o.cellColor && (r.cellColor = o.cellColor ? "1" : "0"), void 0 !== o.style && (r.dxfId = yr(t.getSharedStates()).add(o.style)), e.empty("colorFilter", r);
|
|
2553
2553
|
}
|
|
2554
2554
|
const a = it(n);
|
|
2555
2555
|
if (null !== a) return void gs(e, "" === a ? [] : [a], [], "" === a || !0 === n.includeBlanks);
|
|
@@ -2625,12 +2625,12 @@ var $r = Object.freeze([
|
|
|
2625
2625
|
}
|
|
2626
2626
|
t.end("filters");
|
|
2627
2627
|
} else t.empty("filters", i);
|
|
2628
|
-
},
|
|
2628
|
+
}, xs = "tableIds", ys = (t) => {
|
|
2629
2629
|
const e = t.getSharedStates();
|
|
2630
|
-
let n = e.get(
|
|
2631
|
-
return n || (n = /* @__PURE__ */ new Map(), e.set(
|
|
2630
|
+
let n = e.get(xs);
|
|
2631
|
+
return n || (n = /* @__PURE__ */ new Map(), e.set(xs, n)), n;
|
|
2632
2632
|
}, vs = (t, e) => {
|
|
2633
|
-
const n =
|
|
2633
|
+
const n = ys(t);
|
|
2634
2634
|
let o = n.get(e);
|
|
2635
2635
|
return void 0 === o && (o = ++ls, n.set(e, o)), o;
|
|
2636
2636
|
}, ws = (t, e, n, o) => {
|
|
@@ -2779,12 +2779,12 @@ function js(e, o, r, s, a, i) {
|
|
|
2779
2779
|
return n;
|
|
2780
2780
|
}(n)) || null;
|
|
2781
2781
|
}(o, h) : null));
|
|
2782
|
-
let u = l[r], g = Ft(c.type) === r ? c.type : u.relType,
|
|
2783
|
-
return "macro" !== r || i || (d = f(d), u = de, g = de.relType,
|
|
2782
|
+
let u = l[r], g = Ft(c.type) === r ? c.type : u.relType, x = c.contentType ?? u.contentType;
|
|
2783
|
+
return "macro" !== r || i || (d = f(d), u = de, g = de.relType, x = de.contentType), e.addPart("embeddedPart", {
|
|
2784
2784
|
...c,
|
|
2785
2785
|
xml: d,
|
|
2786
2786
|
type: g,
|
|
2787
|
-
contentType:
|
|
2787
|
+
contentType: x
|
|
2788
2788
|
}, `/xl/${u.folder}/sheet{n}.xml`).relId ?? null;
|
|
2789
2789
|
}
|
|
2790
2790
|
var Xs = "externalLinkParts";
|
|
@@ -2890,23 +2890,23 @@ var Us = [
|
|
|
2890
2890
|
u && u.length > 0 && (l = ta(l, "dataFields", `<dataFields count="${u.length}">${u.map((t) => ea(t, e)).join("")}</dataFields>`));
|
|
2891
2891
|
const g = t.formats;
|
|
2892
2892
|
g && g.length > 0 && (l = ta(l, "formats", Qt(g, e)));
|
|
2893
|
-
const
|
|
2894
|
-
if (
|
|
2895
|
-
const t =
|
|
2893
|
+
const x = t.conditionalFormats;
|
|
2894
|
+
if (x && x.length > 0) {
|
|
2895
|
+
const t = x.map((t) => `<conditionalFormat${Et([
|
|
2896
2896
|
["scope", t.scope],
|
|
2897
2897
|
["type", t.type],
|
|
2898
2898
|
["priority", t.priority]
|
|
2899
2899
|
])}><pivotAreas count="${t.areas.length}">${t.areas.map(ct).join("")}</pivotAreas></conditionalFormat>`).join("");
|
|
2900
|
-
l = ta(l, "conditionalFormats", `<conditionalFormats count="${
|
|
2901
|
-
}
|
|
2902
|
-
const
|
|
2903
|
-
|
|
2904
|
-
["name",
|
|
2905
|
-
["showRowHeaders", Zs(
|
|
2906
|
-
["showColHeaders", Zs(
|
|
2907
|
-
["showRowStripes", Zs(
|
|
2908
|
-
["showColStripes", Zs(
|
|
2909
|
-
["showLastColumn", Zs(
|
|
2900
|
+
l = ta(l, "conditionalFormats", `<conditionalFormats count="${x.length}">${t}</conditionalFormats>`);
|
|
2901
|
+
}
|
|
2902
|
+
const y = t.style;
|
|
2903
|
+
y && (l = ta(l, "pivotTableStyleInfo", `<pivotTableStyleInfo${Et([
|
|
2904
|
+
["name", y.name],
|
|
2905
|
+
["showRowHeaders", Zs(y.showRowHeaders)],
|
|
2906
|
+
["showColHeaders", Zs(y.showColumnHeaders)],
|
|
2907
|
+
["showRowStripes", Zs(y.showRowStripes)],
|
|
2908
|
+
["showColStripes", Zs(y.showColumnStripes)],
|
|
2909
|
+
["showLastColumn", Zs(y.showLastColumn)]
|
|
2910
2910
|
])}/>`));
|
|
2911
2911
|
const v = (t.filters ?? []).map((t, e) => Dt(t, e, n, o)).filter((t) => null !== t);
|
|
2912
2912
|
return v.length > 0 && (l = ta(l, "filters", `<filters count="${v.length}">${v.join("")}</filters>`)), l;
|
|
@@ -3054,7 +3054,7 @@ var ua = (t) => {
|
|
|
3054
3054
|
const n = e.value;
|
|
3055
3055
|
return !n?.h || void 0 !== n.s || n.l || n.cl || n.csz || void 0 !== n.sz && -1 !== n.sz ? null : se - e.min + 1 > e.min ? e.min : null;
|
|
3056
3056
|
};
|
|
3057
|
-
var ga = 1048576, ya = (t, e, n) => {
|
|
3057
|
+
var ga = 1048576, xa = 8192, ya = (t, e, n) => {
|
|
3058
3058
|
if (!n) return [];
|
|
3059
3059
|
let o = 0;
|
|
3060
3060
|
for (let r = 0; r < n.length; r++) {
|
|
@@ -3063,8 +3063,8 @@ var ga = 1048576, ya = (t, e, n) => {
|
|
|
3063
3063
|
}
|
|
3064
3064
|
return n;
|
|
3065
3065
|
};
|
|
3066
|
-
var
|
|
3067
|
-
function
|
|
3066
|
+
var va = /^\s*=?\s*TABLE\s*\(/i;
|
|
3067
|
+
function wa(t, e, n, o) {
|
|
3068
3068
|
let r = null;
|
|
3069
3069
|
const s = [];
|
|
3070
3070
|
for (let o = e.rowStart; o <= e.rowEnd; o++) for (let a = e.colStart; a <= e.colEnd; a++) {
|
|
@@ -3089,7 +3089,7 @@ function va(t, e, n, o) {
|
|
|
3089
3089
|
for (let t = 0; t < s.length; t++) o.push(s[t]);
|
|
3090
3090
|
return !0;
|
|
3091
3091
|
}
|
|
3092
|
-
function
|
|
3092
|
+
function Sa(t, e) {
|
|
3093
3093
|
let n = e.type;
|
|
3094
3094
|
n === Ve.ColorStopType.AutoMin ? n = Ve.ColorStopType.Min : n === Ve.ColorStopType.AutoMax && (n = Ve.ColorStopType.Max), t.empty("cfvo", {
|
|
3095
3095
|
type: n,
|
|
@@ -3097,14 +3097,14 @@ function wa(t, e) {
|
|
|
3097
3097
|
gte: e.exclusive ? "0" : void 0
|
|
3098
3098
|
});
|
|
3099
3099
|
}
|
|
3100
|
-
function
|
|
3100
|
+
function ba(t, e) {
|
|
3101
3101
|
const n = {
|
|
3102
3102
|
type: e.type,
|
|
3103
3103
|
gte: e.exclusive ? "0" : void 0
|
|
3104
3104
|
};
|
|
3105
3105
|
void 0 !== e.value ? (t.start("x14:cfvo", n), t.start("xm:f"), t.text(e.value), t.end("xm:f"), t.end("x14:cfvo")) : t.empty("x14:cfvo", n);
|
|
3106
3106
|
}
|
|
3107
|
-
var
|
|
3107
|
+
var Ca = /* @__PURE__ */ new Set([
|
|
3108
3108
|
$e.IconSet.Arrows3,
|
|
3109
3109
|
$e.IconSet.ArrowsGray3,
|
|
3110
3110
|
$e.IconSet.Flags3,
|
|
@@ -3123,22 +3123,26 @@ var ba = /* @__PURE__ */ new Set([
|
|
|
3123
3123
|
$e.IconSet.Quarters5,
|
|
3124
3124
|
$e.IconSet.Rating5
|
|
3125
3125
|
]);
|
|
3126
|
-
function
|
|
3127
|
-
return (t.icon?.length ?? 0) > 0 || void 0 !== t.iconSet && !
|
|
3126
|
+
function ka(t) {
|
|
3127
|
+
return (t.icon?.length ?? 0) > 0 || void 0 !== t.iconSet && !Ca.has(t.iconSet);
|
|
3128
3128
|
}
|
|
3129
|
-
function
|
|
3129
|
+
function Ta(t) {
|
|
3130
|
+
return [t.minPoint ?? { type: Ve.ColorStopType.Min }, t.maxPoint ?? { type: Ve.ColorStopType.Max }];
|
|
3131
|
+
}
|
|
3132
|
+
var Ia = "#638EC6";
|
|
3133
|
+
function Ra(t, e, n, o, r, s, a, i, l) {
|
|
3130
3134
|
const c = o.scale;
|
|
3131
3135
|
o.ext && t.warn("Conditional format extension payload is not written to xlsx; it will be lost.");
|
|
3132
3136
|
const d = {
|
|
3133
3137
|
type: r.type,
|
|
3134
3138
|
dxfId: o.style && Object.keys(o.style).length > 0 ? i.add(o.style) : void 0,
|
|
3135
3139
|
priority: a,
|
|
3136
|
-
stopIfTrue:
|
|
3137
|
-
aboveAverage:
|
|
3138
|
-
equalAverage:
|
|
3140
|
+
stopIfTrue: Ma(o.stopIfTrue),
|
|
3141
|
+
aboveAverage: Ma(r.aboveAverage),
|
|
3142
|
+
equalAverage: Ma(r.equalAverage),
|
|
3139
3143
|
stdDev: r.stdDev,
|
|
3140
|
-
bottom:
|
|
3141
|
-
percent:
|
|
3144
|
+
bottom: Ma(r.bottom),
|
|
3145
|
+
percent: Ma(r.percent),
|
|
3142
3146
|
rank: r.rank,
|
|
3143
3147
|
operator: r.operator,
|
|
3144
3148
|
text: r.text,
|
|
@@ -3146,13 +3150,7 @@ function ka(t, e, n, o, r, s, a, i, l) {
|
|
|
3146
3150
|
};
|
|
3147
3151
|
let m;
|
|
3148
3152
|
c?.type === Ve.ScaleType.DataBar && function(t) {
|
|
3149
|
-
|
|
3150
|
-
const e = t.stops, n = e ? e.length : 0;
|
|
3151
|
-
for (let t = 0; t < n; t++) {
|
|
3152
|
-
const n = e[t].type;
|
|
3153
|
-
if (n === Ve.ColorStopType.AutoMin || n === Ve.ColorStopType.AutoMax) return !0;
|
|
3154
|
-
}
|
|
3155
|
-
return !1;
|
|
3153
|
+
return !!(t.solidFill || t.borderColor || t.negativeFillColor || t.negativeBorderColor || t.axisColor || t.axisPosition || t.direction) || t.minPoint?.type === Ve.ColorStopType.AutoMin || t.maxPoint?.type === Ve.ColorStopType.AutoMax;
|
|
3156
3154
|
}(c) && (m = fe(Pe.uuidV4), l.push({
|
|
3157
3155
|
guid: m,
|
|
3158
3156
|
sqref: s,
|
|
@@ -3166,26 +3164,25 @@ function ka(t, e, n, o, r, s, a, i, l) {
|
|
|
3166
3164
|
if (c?.type === Ve.ScaleType.ColorScale) {
|
|
3167
3165
|
const t = c.stops ?? [];
|
|
3168
3166
|
e.start("colorScale");
|
|
3169
|
-
for (let n = 0; n < t.length; n++)
|
|
3167
|
+
for (let n = 0; n < t.length; n++) Sa(e, t[n]);
|
|
3170
3168
|
for (let o = 0; o < t.length; o++) No(e, n, t[o].color, "color");
|
|
3171
3169
|
e.end("colorScale");
|
|
3172
3170
|
} else if (c?.type === Ve.ScaleType.DataBar) {
|
|
3173
|
-
const t = c.stops ?? [];
|
|
3174
3171
|
e.start("dataBar", {
|
|
3175
|
-
minLength: c.minLength,
|
|
3176
|
-
maxLength: c.maxLength,
|
|
3177
|
-
showValue:
|
|
3172
|
+
minLength: c.minLength ?? 0,
|
|
3173
|
+
maxLength: c.maxLength ?? 100,
|
|
3174
|
+
showValue: Ma(c.showValue)
|
|
3178
3175
|
});
|
|
3179
|
-
|
|
3180
|
-
|
|
3176
|
+
const [t, o] = Ta(c);
|
|
3177
|
+
Sa(e, t), Sa(e, o), No(e, n, c.color ?? Ia, "color"), e.end("dataBar");
|
|
3181
3178
|
} else if (c?.type === Ve.ScaleType.IconSet) {
|
|
3182
3179
|
const t = c.stops ?? [];
|
|
3183
3180
|
e.start("iconSet", {
|
|
3184
3181
|
iconSet: c.iconSet,
|
|
3185
|
-
reverse:
|
|
3186
|
-
showValue:
|
|
3182
|
+
reverse: Ma(c.reverse),
|
|
3183
|
+
showValue: Ma(c.showValue)
|
|
3187
3184
|
});
|
|
3188
|
-
for (let n = 0; n < t.length; n++)
|
|
3185
|
+
for (let n = 0; n < t.length; n++) Sa(e, t[n]);
|
|
3189
3186
|
e.end("iconSet");
|
|
3190
3187
|
}
|
|
3191
3188
|
m && (e.start("extLst"), e.start("ext", {
|
|
@@ -3194,7 +3191,7 @@ function ka(t, e, n, o, r, s, a, i, l) {
|
|
|
3194
3191
|
}), e.start("x14:id"), e.text(m), e.end("x14:id"), e.end("ext"), e.end("extLst")), e.end("cfRule");
|
|
3195
3192
|
} else e.empty("cfRule", d);
|
|
3196
3193
|
}
|
|
3197
|
-
function
|
|
3194
|
+
function Fa(t) {
|
|
3198
3195
|
let e = Number.MAX_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER;
|
|
3199
3196
|
const o = t.split(" ");
|
|
3200
3197
|
for (let t = 0; t < o.length; t++) {
|
|
@@ -3207,7 +3204,7 @@ function Ta(t) {
|
|
|
3207
3204
|
colIndex: n
|
|
3208
3205
|
});
|
|
3209
3206
|
}
|
|
3210
|
-
function
|
|
3207
|
+
function Ea(t) {
|
|
3211
3208
|
if ("string" == typeof t) return t.split(",").join(" ");
|
|
3212
3209
|
if (Array.isArray(t)) {
|
|
3213
3210
|
const e = [];
|
|
@@ -3219,10 +3216,10 @@ function Ia(t) {
|
|
|
3219
3216
|
}
|
|
3220
3217
|
return Fe.rangeToString(t);
|
|
3221
3218
|
}
|
|
3222
|
-
function
|
|
3219
|
+
function Ma(t) {
|
|
3223
3220
|
if (void 0 !== t) return t ? "1" : "0";
|
|
3224
3221
|
}
|
|
3225
|
-
function
|
|
3222
|
+
function Pa(t) {
|
|
3226
3223
|
if ("string" != typeof t) return !1;
|
|
3227
3224
|
let e = !1;
|
|
3228
3225
|
for (let n = 0; n < t.length; n++) {
|
|
@@ -3232,12 +3229,12 @@ function Fa(t) {
|
|
|
3232
3229
|
}
|
|
3233
3230
|
return !1;
|
|
3234
3231
|
}
|
|
3235
|
-
function
|
|
3232
|
+
function Aa(t) {
|
|
3236
3233
|
const e = t.formulas, n = e ? e.length : 0;
|
|
3237
|
-
for (let t = 0; t < n; t++) if (
|
|
3234
|
+
for (let t = 0; t < n; t++) if (Pa(e[t])) return !0;
|
|
3238
3235
|
return !1;
|
|
3239
3236
|
}
|
|
3240
|
-
function
|
|
3237
|
+
function Da(t) {
|
|
3241
3238
|
let e = Number.MAX_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER;
|
|
3242
3239
|
const o = t.split(" ");
|
|
3243
3240
|
for (let t = 0; t < o.length; t++) {
|
|
@@ -3250,7 +3247,7 @@ function Ma(t) {
|
|
|
3250
3247
|
colIndex: n
|
|
3251
3248
|
};
|
|
3252
3249
|
}
|
|
3253
|
-
function
|
|
3250
|
+
function La(t, e, n) {
|
|
3254
3251
|
if ("string" != typeof t || !t || !e || !n) return t;
|
|
3255
3252
|
try {
|
|
3256
3253
|
const o = n.parse(t, e);
|
|
@@ -3259,30 +3256,41 @@ function Pa(t, e, n) {
|
|
|
3259
3256
|
return t;
|
|
3260
3257
|
}
|
|
3261
3258
|
}
|
|
3262
|
-
function
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
const
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3259
|
+
function _a(t, e, n) {
|
|
3260
|
+
if (!t || !n) return t;
|
|
3261
|
+
const o = (t) => {
|
|
3262
|
+
const o = t?.value;
|
|
3263
|
+
if ("string" != typeof o) return t;
|
|
3264
|
+
const r = La(o, e, n);
|
|
3265
|
+
return r === o ? t : {
|
|
3266
|
+
...t,
|
|
3267
|
+
value: r
|
|
3268
|
+
};
|
|
3269
|
+
};
|
|
3270
|
+
if (t.type === Ve.ScaleType.DataBar) {
|
|
3271
|
+
const e = o(t.minPoint), n = o(t.maxPoint);
|
|
3272
|
+
if (e === t.minPoint && n === t.maxPoint) return t;
|
|
3273
|
+
const r = { ...t };
|
|
3274
|
+
return e && (r.minPoint = e), n && (r.maxPoint = n), r;
|
|
3275
|
+
}
|
|
3276
|
+
const r = t.stops;
|
|
3277
|
+
if (!r) return t;
|
|
3278
|
+
let s;
|
|
3279
|
+
for (let t = 0; t < r.length; t++) {
|
|
3280
|
+
const e = o(r[t]);
|
|
3281
|
+
e !== r[t] && (s || (s = [...r]), s[t] = e);
|
|
3274
3282
|
}
|
|
3275
|
-
return
|
|
3283
|
+
return s ? {
|
|
3276
3284
|
...t,
|
|
3277
|
-
stops:
|
|
3285
|
+
stops: s
|
|
3278
3286
|
} : t;
|
|
3279
3287
|
}
|
|
3280
|
-
function
|
|
3288
|
+
function Na(t) {
|
|
3281
3289
|
const e = t.getDataValidations().getSettings(), n = {};
|
|
3282
3290
|
return e.disablePrompts && (n.disablePrompts = "1"), void 0 !== e.windowX && (n.xWindow = e.windowX), void 0 !== e.windowY && (n.yWindow = e.windowY), n;
|
|
3283
3291
|
}
|
|
3284
|
-
var
|
|
3285
|
-
function
|
|
3292
|
+
var $a = "application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings";
|
|
3293
|
+
function Ba(t, e, n) {
|
|
3286
3294
|
if (!n || 0 === n.length) return;
|
|
3287
3295
|
const o = n.filter((t) => !t.automatic).length;
|
|
3288
3296
|
t.start(e, {
|
|
@@ -3295,12 +3303,12 @@ function _a(t, e, n) {
|
|
|
3295
3303
|
}
|
|
3296
3304
|
t.end(e);
|
|
3297
3305
|
}
|
|
3298
|
-
function
|
|
3306
|
+
function Oa(t, e, n, o) {
|
|
3299
3307
|
if (!o?.xml) return;
|
|
3300
3308
|
const r = t.addPart("legacyDrawing", o);
|
|
3301
3309
|
e.empty(n, { "r:id": r.relId });
|
|
3302
3310
|
}
|
|
3303
|
-
var
|
|
3311
|
+
var Va = (t, e, n, o) => {
|
|
3304
3312
|
const r = (e, n) => {
|
|
3305
3313
|
const o = t.getRangeAtBounds({
|
|
3306
3314
|
x: e,
|
|
@@ -3347,13 +3355,13 @@ var $a = (t, e, n, o) => {
|
|
|
3347
3355
|
bounds: s,
|
|
3348
3356
|
anchor: [...r(s.x, s.y), ...r(s.x + s.width, s.y + s.height)]
|
|
3349
3357
|
};
|
|
3350
|
-
},
|
|
3358
|
+
}, Wa = (t, e) => {
|
|
3351
3359
|
if (!e) return t;
|
|
3352
3360
|
const n = t?.xml ?? null;
|
|
3353
3361
|
let o = le(n ?? "");
|
|
3354
3362
|
const r = [], s = e.comments;
|
|
3355
3363
|
for (let t = 0; t < s.length; t++) {
|
|
3356
|
-
const { comment: n, row: a, col: i } = s[t], l = n.isNote() ? n.toJSON() : null, { bounds: d, anchor: m } =
|
|
3364
|
+
const { comment: n, row: a, col: i } = s[t], l = n.isNote() ? n.toJSON() : null, { bounds: d, anchor: m } = Va(e.sheet, n, a, i), p = l?.box, f = p?.fill || p?.stroke ? D(p.xml ?? W, {
|
|
3357
3365
|
fill: p.fill,
|
|
3358
3366
|
stroke: p.stroke
|
|
3359
3367
|
}, (t) => e.sheet.getStyles().parseColor(t)) : p?.xml;
|
|
@@ -3373,8 +3381,8 @@ var $a = (t, e, n, o) => {
|
|
|
3373
3381
|
...t,
|
|
3374
3382
|
xml: i
|
|
3375
3383
|
} : { xml: i } : t;
|
|
3376
|
-
},
|
|
3377
|
-
var
|
|
3384
|
+
}, za = _t + 1;
|
|
3385
|
+
var ja = (t, e) => {
|
|
3378
3386
|
if (0 === e.length) return;
|
|
3379
3387
|
let n = le(t.legacyDrawing?.xml ?? "");
|
|
3380
3388
|
const o = e.length;
|
|
@@ -3387,7 +3395,7 @@ var Va = (t, e) => {
|
|
|
3387
3395
|
const o = e[t].jsonMovable.content, s = o.json ?? (o.json = {});
|
|
3388
3396
|
("number" != typeof s.shapeId || r.has(s.shapeId)) && (s.shapeId = ++n), r.add(s.shapeId);
|
|
3389
3397
|
}
|
|
3390
|
-
},
|
|
3398
|
+
}, Xa = (t, e, n) => {
|
|
3391
3399
|
if (0 === n.length) return e;
|
|
3392
3400
|
const o = (e, n) => t.getRange({
|
|
3393
3401
|
rowStart: n,
|
|
@@ -3427,16 +3435,16 @@ var Va = (t, e) => {
|
|
|
3427
3435
|
...e,
|
|
3428
3436
|
xml: l
|
|
3429
3437
|
} : { xml: l } : e;
|
|
3430
|
-
},
|
|
3438
|
+
}, Ha = (t, e, n) => {
|
|
3431
3439
|
t.start(e), t.start("xdr:col"), t.text(n.c ?? 0), t.end("xdr:col"), t.start("xdr:colOff"), t.text(fr(n.x)), t.end("xdr:colOff"), t.start("xdr:row"), t.text(n.r ?? 0), t.end("xdr:row"), t.start("xdr:rowOff"), t.text(fr(n.y)), t.end("xdr:rowOff"), t.end(e);
|
|
3432
3440
|
};
|
|
3433
|
-
var
|
|
3441
|
+
var Ua = {
|
|
3434
3442
|
r: void 0,
|
|
3435
3443
|
s: void 0,
|
|
3436
3444
|
t: void 0,
|
|
3437
3445
|
cm: void 0,
|
|
3438
3446
|
vm: void 0
|
|
3439
|
-
},
|
|
3447
|
+
}, Ga = {
|
|
3440
3448
|
r: void 0,
|
|
3441
3449
|
s: void 0,
|
|
3442
3450
|
customFormat: void 0,
|
|
@@ -3448,30 +3456,30 @@ var ja = {
|
|
|
3448
3456
|
collapsed: void 0,
|
|
3449
3457
|
thickTop: void 0,
|
|
3450
3458
|
thickBot: void 0
|
|
3451
|
-
},
|
|
3459
|
+
}, qa = {
|
|
3452
3460
|
t: void 0,
|
|
3453
3461
|
aca: void 0,
|
|
3454
3462
|
ref: void 0,
|
|
3455
3463
|
ca: void 0,
|
|
3456
3464
|
si: void 0
|
|
3457
|
-
},
|
|
3465
|
+
}, Ja = {
|
|
3458
3466
|
t: "shared",
|
|
3459
3467
|
aca: void 0,
|
|
3460
3468
|
ref: void 0,
|
|
3461
3469
|
ca: void 0,
|
|
3462
3470
|
si: void 0
|
|
3463
|
-
},
|
|
3471
|
+
}, Ka = {
|
|
3464
3472
|
t: "array",
|
|
3465
3473
|
aca: void 0,
|
|
3466
3474
|
ref: void 0,
|
|
3467
3475
|
ca: void 0,
|
|
3468
3476
|
si: void 0
|
|
3469
3477
|
};
|
|
3470
|
-
function
|
|
3478
|
+
function Ya(t, e) {
|
|
3471
3479
|
const n = $.test(e) ? A : void 0;
|
|
3472
3480
|
t.start("t", n), t.text(C(e)), t.end("t");
|
|
3473
3481
|
}
|
|
3474
|
-
var
|
|
3482
|
+
var Za = (t) => String(Math.round(1e3 * t)), Qa = (t) => void 0 === t ? void 0 : t ? "1" : "0", ti = /* @__PURE__ */ new Set([
|
|
3475
3483
|
"text",
|
|
3476
3484
|
"runs",
|
|
3477
3485
|
"paragraphs",
|
|
@@ -3505,48 +3513,48 @@ var Ja = (t) => String(Math.round(1e3 * t)), Ka = (t) => void 0 === t ? void 0 :
|
|
|
3505
3513
|
"effects",
|
|
3506
3514
|
"fill",
|
|
3507
3515
|
"stroke"
|
|
3508
|
-
]),
|
|
3516
|
+
]), ei = {
|
|
3509
3517
|
latin: "lt",
|
|
3510
3518
|
ea: "ea",
|
|
3511
3519
|
cs: "cs",
|
|
3512
3520
|
sym: "lt",
|
|
3513
3521
|
buFont: "lt"
|
|
3514
|
-
},
|
|
3522
|
+
}, ni = (t, e, n) => {
|
|
3515
3523
|
if (!n) return;
|
|
3516
|
-
const o = void 0 !== n.scheme && n.scheme !== Xe.Scheme.None ? `+${n.scheme === Xe.Scheme.Major ? "mj" : "mn"}-${
|
|
3524
|
+
const o = void 0 !== n.scheme && n.scheme !== Xe.Scheme.None ? `+${n.scheme === Xe.Scheme.Major ? "mj" : "mn"}-${ei[e]}` : n.family;
|
|
3517
3525
|
void 0 !== o && t.empty(e, {
|
|
3518
3526
|
typeface: o,
|
|
3519
3527
|
panose: n.panose,
|
|
3520
3528
|
pitchFamily: n.pitch,
|
|
3521
3529
|
charset: K(n.charset)
|
|
3522
3530
|
});
|
|
3523
|
-
},
|
|
3531
|
+
}, oi = (t, e, n, o, r = Pe.EmptyObject) => {
|
|
3524
3532
|
const s = t.getXMLWriter(), a = ((t, e, n = Pe.EmptyArray) => {
|
|
3525
3533
|
if (!e) return { ...n };
|
|
3526
3534
|
const o = { ...n };
|
|
3527
|
-
for (const t of Object.keys(e))
|
|
3535
|
+
for (const t of Object.keys(e)) ti.has(t) || void 0 === e[t] || (o[t] = e[t]);
|
|
3528
3536
|
const { size: r, kern: s, weight: a, style: i, b: l, i: c, spc: d, baseline: m } = e, p = e;
|
|
3529
|
-
return void 0 !== p.language && (o.lang = p.language), void 0 !== p.alternateLanguage && (o.altLang = p.alternateLanguage), void 0 !== r && (o.sz = "" + ur(r)), void 0 !== l && (o.b = l ? "1" : "0"), void 0 !== a && (o.b = a > 500 ? "1" : "0"), void 0 !== c && (o.i = c ? "1" : "0"), void 0 !== i && (o.i = "italic" === i ? "1" : "0"), void 0 !== e.italic && (o.i = e.italic ? "1" : "0"), void 0 !== p.underline && (o.u = k.write(p.underline)), void 0 !== p.strike && (o.strike = R.write(p.strike)), void 0 !== s && (o.kern = "" + ur(s)), void 0 !== p.kerning && (o.kern = "" + ur(p.kerning)), void 0 !== d && (o.spc = "" + ur(d)), void 0 !== p.letterSpacing && (o.spc = "" + ur(p.letterSpacing)), void 0 !== m && (o.baseline =
|
|
3537
|
+
return void 0 !== p.language && (o.lang = p.language), void 0 !== p.alternateLanguage && (o.altLang = p.alternateLanguage), void 0 !== r && (o.sz = "" + ur(r)), void 0 !== l && (o.b = l ? "1" : "0"), void 0 !== a && (o.b = a > 500 ? "1" : "0"), void 0 !== c && (o.i = c ? "1" : "0"), void 0 !== i && (o.i = "italic" === i ? "1" : "0"), void 0 !== e.italic && (o.i = e.italic ? "1" : "0"), void 0 !== p.underline && (o.u = k.write(p.underline)), void 0 !== p.strike && (o.strike = R.write(p.strike)), void 0 !== s && (o.kern = "" + ur(s)), void 0 !== p.kerning && (o.kern = "" + ur(p.kerning)), void 0 !== d && (o.spc = "" + ur(d)), void 0 !== p.letterSpacing && (o.spc = "" + ur(p.letterSpacing)), void 0 !== m && (o.baseline = Za(m)), void 0 !== p.capitals && (o.cap = p.capitals), void 0 !== p.normalizeHeight && (o.normalizeH = Qa(p.normalizeHeight)), o;
|
|
3530
3538
|
})(0, o ?? {}, r);
|
|
3531
|
-
o?.outline || o?.color || o?.effects?.length || o?.highlight || o?.font || o?.eastAsianFont || o?.complexScriptFont || o?.symbolFont || o?.hyperlink ? (s.start(n, a), o.outline && Jo(t, s, o.outline, e), o.color && qo(t, s, o.color, e), o.effects?.length && Zo(t, s, e.getTheme(), o.effects), o.highlight && (s.start("highlight"), Lo(s, e.getTheme(), o.highlight), s.end("highlight")),
|
|
3532
|
-
},
|
|
3533
|
-
n && (t.start(e), "percent" in n ? t.empty("spcPct", { val:
|
|
3534
|
-
},
|
|
3539
|
+
o?.outline || o?.color || o?.effects?.length || o?.highlight || o?.font || o?.eastAsianFont || o?.complexScriptFont || o?.symbolFont || o?.hyperlink ? (s.start(n, a), o.outline && Jo(t, s, o.outline, e), o.color && qo(t, s, o.color, e), o.effects?.length && Zo(t, s, e.getTheme(), o.effects), o.highlight && (s.start("highlight"), Lo(s, e.getTheme(), o.highlight), s.end("highlight")), ni(s, "latin", o.font), ni(s, "ea", o.eastAsianFont), ni(s, "cs", o.complexScriptFont), ni(s, "sym", o.symbolFont), Go(t, s, "hlinkClick", o.hyperlink), s.end(n)) : s.empty(n, a);
|
|
3540
|
+
}, ri = (t, e, n) => {
|
|
3541
|
+
n && (t.start(e), "percent" in n ? t.empty("spcPct", { val: Za(n.percent) }) : t.empty("spcPts", { val: String(Math.round(100 * n.points)) }), t.end(e));
|
|
3542
|
+
}, si = (t, e, n, o) => {
|
|
3535
3543
|
const r = t.getXMLWriter(), s = {
|
|
3536
3544
|
marL: void 0 === o.marginLeft ? void 0 : String(fr(o.marginLeft)),
|
|
3537
3545
|
marR: void 0 === o.marginRight ? void 0 : String(fr(o.marginRight)),
|
|
3538
3546
|
lvl: void 0 === o.level ? void 0 : String(o.level),
|
|
3539
3547
|
indent: void 0 === o.indent ? void 0 : String(fr(o.indent)),
|
|
3540
|
-
algn:
|
|
3548
|
+
algn: x.write(o.align),
|
|
3541
3549
|
defTabSz: void 0 === o.defaultTabSize ? void 0 : String(fr(o.defaultTabSize)),
|
|
3542
|
-
rtl:
|
|
3543
|
-
eaLnBrk:
|
|
3550
|
+
rtl: Qa(o.rightToLeft),
|
|
3551
|
+
eaLnBrk: Qa(o.eastAsianLineBreak),
|
|
3544
3552
|
fontAlgn: j.write(o.fontAlign),
|
|
3545
|
-
latinLnBrk:
|
|
3546
|
-
hangingPunct:
|
|
3553
|
+
latinLnBrk: Qa(o.latinLineBreak),
|
|
3554
|
+
hangingPunct: Qa(o.hangingPunctuation)
|
|
3547
3555
|
}, a = o.bullet;
|
|
3548
3556
|
if (o.lineSpacing || o.spaceBefore || o.spaceAfter || a || o.tabs || o.defaultRun) {
|
|
3549
|
-
if (r.start(n, s),
|
|
3557
|
+
if (r.start(n, s), ri(r, "lnSpc", o.lineSpacing), ri(r, "spcBef", o.spaceBefore), ri(r, "spcAft", o.spaceAfter), a) switch (a.colorFollowsText ? r.empty("buClrTx") : a.color && (r.start("buClr"), Lo(r, e.getTheme(), a.color), r.end("buClr")), a.sizeFollowsText ? r.empty("buSzTx") : a.size && ("percent" in a.size ? r.empty("buSzPct", { val: Za(a.size.percent) }) : r.empty("buSzPts", { val: String(Math.round(100 * a.size.points)) })), a.fontFollowsText ? r.empty("buFontTx") : ni(r, "buFont", a.font), a.type) {
|
|
3550
3558
|
case "none":
|
|
3551
3559
|
r.empty("buNone");
|
|
3552
3560
|
break;
|
|
@@ -3566,14 +3574,14 @@ var Ja = (t) => String(Math.round(1e3 * t)), Ka = (t) => void 0 === t ? void 0 :
|
|
|
3566
3574
|
});
|
|
3567
3575
|
r.end("tabLst");
|
|
3568
3576
|
}
|
|
3569
|
-
o.defaultRun &&
|
|
3577
|
+
o.defaultRun && oi(t, e, "defRPr", o.defaultRun), r.end(n);
|
|
3570
3578
|
} else r.empty(n, s);
|
|
3571
|
-
},
|
|
3579
|
+
}, ai = (t) => t === Ke.Overflow.Visible ? void 0 : U.write(t), ii = (t, e) => {
|
|
3572
3580
|
const n = e.body ?? {}, o = n.insets, r = {
|
|
3573
3581
|
rot: void 0 === e.rotation ? void 0 : String(Math.round(6e4 * e.rotation)),
|
|
3574
|
-
spcFirstLastPara:
|
|
3575
|
-
vertOverflow:
|
|
3576
|
-
horzOverflow:
|
|
3582
|
+
spcFirstLastPara: Qa(n.spaceFirstLastParagraph),
|
|
3583
|
+
vertOverflow: ai(n.verticalOverflow ?? ln.TEXT_DEFAULTS.verticalOverflow),
|
|
3584
|
+
horzOverflow: ai(n.horizontalOverflow ?? ln.TEXT_DEFAULTS.horizontalOverflow),
|
|
3577
3585
|
vert: q.write(n.vertical),
|
|
3578
3586
|
wrap: n.wrap,
|
|
3579
3587
|
lIns: void 0 === o?.left ? void 0 : String(fr(o.left)),
|
|
@@ -3582,13 +3590,13 @@ var Ja = (t) => String(Math.round(1e3 * t)), Ka = (t) => void 0 === t ? void 0 :
|
|
|
3582
3590
|
bIns: void 0 === o?.bottom ? void 0 : String(fr(o.bottom)),
|
|
3583
3591
|
numCol: void 0 === n.columns ? void 0 : String(n.columns),
|
|
3584
3592
|
spcCol: void 0 === n.columnSpacing ? void 0 : String(fr(n.columnSpacing)),
|
|
3585
|
-
rtlCol:
|
|
3586
|
-
fromWordArt:
|
|
3593
|
+
rtlCol: Qa(n.rightToLeftColumns),
|
|
3594
|
+
fromWordArt: Qa(n.fromWordArt),
|
|
3587
3595
|
anchor: w.write(n.anchor),
|
|
3588
|
-
anchorCtr:
|
|
3589
|
-
forceAA:
|
|
3590
|
-
upright:
|
|
3591
|
-
compatLnSpc:
|
|
3596
|
+
anchorCtr: Qa(n.anchorCenter),
|
|
3597
|
+
forceAA: Qa(n.forceAntiAlias),
|
|
3598
|
+
upright: Qa(n.upright),
|
|
3599
|
+
compatLnSpc: Qa(n.compatibleLineSpacing)
|
|
3592
3600
|
};
|
|
3593
3601
|
if (n.warp || n.autoFit || n.extLst) {
|
|
3594
3602
|
if (t.start("bodyPr", r), n.warp) {
|
|
@@ -3612,25 +3620,25 @@ var Ja = (t) => String(Math.round(1e3 * t)), Ka = (t) => void 0 === t ? void 0 :
|
|
|
3612
3620
|
t.empty("spAutoFit");
|
|
3613
3621
|
break;
|
|
3614
3622
|
case Ke.Autofit.Normal: t.empty("normAutofit", {
|
|
3615
|
-
fontScale: void 0 === n.fontScale ? void 0 :
|
|
3616
|
-
lnSpcReduction: void 0 === n.lineSpacingReduction ? void 0 :
|
|
3623
|
+
fontScale: void 0 === n.fontScale ? void 0 : Za(n.fontScale),
|
|
3624
|
+
lnSpcReduction: void 0 === n.lineSpacingReduction ? void 0 : Za(n.lineSpacingReduction)
|
|
3617
3625
|
});
|
|
3618
3626
|
}
|
|
3619
3627
|
n.extLst && t.raw(n.extLst), t.end("bodyPr");
|
|
3620
3628
|
} else t.empty("bodyPr", r);
|
|
3621
|
-
},
|
|
3629
|
+
}, li = (t, e, n) => {
|
|
3622
3630
|
const o = t.getXMLWriter();
|
|
3623
|
-
n && (n.default || n.levels?.some((t) => t)) ? (o.start("lstStyle"), n.default &&
|
|
3624
|
-
n &&
|
|
3631
|
+
n && (n.default || n.levels?.some((t) => t)) ? (o.start("lstStyle"), n.default && si(t, e, "defPPr", n.default), n.levels?.forEach((n, o) => {
|
|
3632
|
+
n && si(t, e, `lvl${o + 1}pPr`, n);
|
|
3625
3633
|
}), o.end("lstStyle")) : o.empty("lstStyle");
|
|
3626
|
-
},
|
|
3634
|
+
}, ci = (t, e, n, o) => {
|
|
3627
3635
|
const r = t.getXMLWriter();
|
|
3628
3636
|
r.pushDefaultNamespace("a"), r.start("p");
|
|
3629
3637
|
const { runs: s, endRun: a, ...i } = o, l = void 0 !== ln.inheritedTextSize(n, o) ? (t) => t : (t) => void 0 === t.size ? {
|
|
3630
3638
|
...t,
|
|
3631
3639
|
size: ln.TEXT_DEFAULTS.size
|
|
3632
3640
|
} : t;
|
|
3633
|
-
((t) => !!t && Object.keys(t).some((e) => "runs" !== e && "endRun" !== e && void 0 !== t[e]))(i) &&
|
|
3641
|
+
((t) => !!t && Object.keys(t).some((e) => "runs" !== e && "endRun" !== e && void 0 !== t[e]))(i) && si(t, e, "pPr", i);
|
|
3634
3642
|
for (const n of s ?? []) {
|
|
3635
3643
|
if ("\n" === n?.text) {
|
|
3636
3644
|
r.empty("br");
|
|
@@ -3640,22 +3648,22 @@ var Ja = (t) => String(Math.round(1e3 * t)), Ka = (t) => void 0 === t ? void 0 :
|
|
|
3640
3648
|
r.start(i, s ? {
|
|
3641
3649
|
id: s.id,
|
|
3642
3650
|
type: s.type
|
|
3643
|
-
} : {}),
|
|
3651
|
+
} : {}), oi(t, e, "rPr", l(a)), r.start("t"), r.text(o ?? ""), r.end("t"), r.end(i);
|
|
3644
3652
|
}
|
|
3645
|
-
!a && s?.length ||
|
|
3646
|
-
},
|
|
3653
|
+
!a && s?.length || oi(t, e, "endParaRPr", l(a ?? {})), r.end("p"), r.popDefaultNamespace();
|
|
3654
|
+
}, di = (t, e, n) => {
|
|
3647
3655
|
if (!n) return;
|
|
3648
3656
|
const o = t.getXMLWriter(), r = ((t) => "string" == typeof t ? { paragraphs: [{ runs: [{ text: t }] }] } : Array.isArray(t?.paragraphs) ? t : { paragraphs: [t] })(n);
|
|
3649
|
-
o.start("txBody"), o.pushDefaultNamespace("a"),
|
|
3657
|
+
o.start("txBody"), o.pushDefaultNamespace("a"), ii(o, r), li(t, e, r.listStyle);
|
|
3650
3658
|
const s = 0 === r.paragraphs.length ? [{ runs: [] }] : r.paragraphs;
|
|
3651
|
-
for (const n of s)
|
|
3659
|
+
for (const n of s) ci(t, e, r, n);
|
|
3652
3660
|
o.popDefaultNamespace(), o.end("txBody");
|
|
3653
|
-
},
|
|
3661
|
+
}, mi = (t, e, n) => {
|
|
3654
3662
|
const o = t.getXMLWriter();
|
|
3655
3663
|
if (!n) return o.empty("bodyPr"), void o.empty("lstStyle");
|
|
3656
|
-
|
|
3664
|
+
ii(o, n), li(t, e, n.listStyle);
|
|
3657
3665
|
};
|
|
3658
|
-
function
|
|
3666
|
+
function pi(t, e, n, o) {
|
|
3659
3667
|
t.start(o);
|
|
3660
3668
|
const r = { typeface: e.latin || n };
|
|
3661
3669
|
e.panose && (r.panose = e.panose), t.empty("latin", r), t.empty("ea", { typeface: e.eastAsian ?? "" }), t.empty("cs", { typeface: e.complexScript ?? "" });
|
|
@@ -3666,12 +3674,12 @@ function ci(t, e, n, o) {
|
|
|
3666
3674
|
});
|
|
3667
3675
|
t.end(o);
|
|
3668
3676
|
}
|
|
3669
|
-
var
|
|
3677
|
+
var fi = [
|
|
3670
3678
|
["shape", "spDef"],
|
|
3671
3679
|
["line", "lnDef"],
|
|
3672
3680
|
["text", "txDef"]
|
|
3673
3681
|
];
|
|
3674
|
-
var
|
|
3682
|
+
var hi = { checkbox: "Checkbox" }, ui = [
|
|
3675
3683
|
["dc:title", "title"],
|
|
3676
3684
|
["dc:subject", "subject"],
|
|
3677
3685
|
["dc:creator", "author"],
|
|
@@ -3692,9 +3700,9 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
3692
3700
|
["cp:category", "category"],
|
|
3693
3701
|
["cp:contentStatus", "contentStatus"],
|
|
3694
3702
|
["cp:revision", "revisionNumber"]
|
|
3695
|
-
],
|
|
3703
|
+
], gi = (t) => t.toISOString().split(".")[0] + "Z", xi = (t, e, n, o) => {
|
|
3696
3704
|
e.start(n), e.text(o), e.end(n);
|
|
3697
|
-
},
|
|
3705
|
+
}, yi = (t, e, n) => {
|
|
3698
3706
|
const o = [
|
|
3699
3707
|
{
|
|
3700
3708
|
heading: "Worksheets",
|
|
@@ -3741,13 +3749,13 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
3741
3749
|
});
|
|
3742
3750
|
for (const t of a) for (const n of t.names) e.start("vt:lpstr"), e.text(n), e.end("vt:lpstr");
|
|
3743
3751
|
e.end("vt:vector"), e.end("TitlesOfParts");
|
|
3744
|
-
},
|
|
3752
|
+
}, vi = {
|
|
3745
3753
|
[We.Type.String]: "vt:lpwstr",
|
|
3746
3754
|
[We.Type.Number]: "vt:i4",
|
|
3747
3755
|
[We.Type.Float]: "vt:r8",
|
|
3748
3756
|
[We.Type.Boolean]: "vt:bool",
|
|
3749
3757
|
[We.Type.Date]: "vt:filetime"
|
|
3750
|
-
},
|
|
3758
|
+
}, wi = (t) => t.split(".")[0] + "Z", Si = {
|
|
3751
3759
|
minSupportedVersion: "120000",
|
|
3752
3760
|
copy: "1",
|
|
3753
3761
|
pasteAll: "1",
|
|
@@ -3759,42 +3767,42 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
3759
3767
|
clearComments: "1",
|
|
3760
3768
|
assign: "1",
|
|
3761
3769
|
coerce: "1"
|
|
3762
|
-
},
|
|
3770
|
+
}, bi = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", Ci = (t, e) => {
|
|
3763
3771
|
for (const [n, o] of e) t.start("v", n ? { t: n } : void 0), t.text(o), t.end("v");
|
|
3764
|
-
},
|
|
3772
|
+
}, ki = (t) => void 0 === t || "_" === t ? void 0 : t, Ti = (t, e) => {
|
|
3765
3773
|
const n = e.indexOf(" ");
|
|
3766
3774
|
n < 0 || t.empty("gd", {
|
|
3767
3775
|
name: e.slice(0, n),
|
|
3768
3776
|
fmla: e.slice(n + 1).trim()
|
|
3769
3777
|
});
|
|
3770
|
-
},
|
|
3778
|
+
}, Ii = (t, e, n) => {
|
|
3771
3779
|
t.empty("pos", {
|
|
3772
3780
|
x: e,
|
|
3773
3781
|
y: n
|
|
3774
3782
|
});
|
|
3775
|
-
},
|
|
3783
|
+
}, Ri = (t, e) => {
|
|
3776
3784
|
const n = e.split(" ");
|
|
3777
3785
|
"xy" === n[0] ? (t.start("ahXY", {
|
|
3778
|
-
gdRefX:
|
|
3779
|
-
minX:
|
|
3780
|
-
maxX:
|
|
3781
|
-
gdRefY:
|
|
3782
|
-
minY:
|
|
3783
|
-
maxY:
|
|
3784
|
-
}),
|
|
3785
|
-
gdRefR:
|
|
3786
|
-
minR:
|
|
3787
|
-
maxR:
|
|
3788
|
-
gdRefAng:
|
|
3789
|
-
minAng:
|
|
3790
|
-
maxAng:
|
|
3791
|
-
}),
|
|
3792
|
-
},
|
|
3786
|
+
gdRefX: ki(n[1]),
|
|
3787
|
+
minX: ki(n[5]),
|
|
3788
|
+
maxX: ki(n[6]),
|
|
3789
|
+
gdRefY: ki(n[2]),
|
|
3790
|
+
minY: ki(n[7]),
|
|
3791
|
+
maxY: ki(n[8])
|
|
3792
|
+
}), Ii(t, n[3], n[4]), t.end("ahXY")) : "polar" === n[0] && (t.start("ahPolar", {
|
|
3793
|
+
gdRefR: ki(n[1]),
|
|
3794
|
+
minR: ki(n[5]),
|
|
3795
|
+
maxR: ki(n[6]),
|
|
3796
|
+
gdRefAng: ki(n[2]),
|
|
3797
|
+
minAng: ki(n[7]),
|
|
3798
|
+
maxAng: ki(n[8])
|
|
3799
|
+
}), Ii(t, n[3], n[4]), t.end("ahPolar"));
|
|
3800
|
+
}, Fi = {
|
|
3793
3801
|
M: ["moveTo", 1],
|
|
3794
3802
|
L: ["lnTo", 1],
|
|
3795
3803
|
Q: ["quadBezTo", 2],
|
|
3796
3804
|
C: ["cubicBezTo", 3]
|
|
3797
|
-
},
|
|
3805
|
+
}, Ei = (t, e) => {
|
|
3798
3806
|
t.start("path", {
|
|
3799
3807
|
w: e.w,
|
|
3800
3808
|
h: e.h,
|
|
@@ -3813,7 +3821,7 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
3813
3821
|
swAng: n[o + 3]
|
|
3814
3822
|
}), o += 4;
|
|
3815
3823
|
else {
|
|
3816
|
-
const r =
|
|
3824
|
+
const r = Fi[e];
|
|
3817
3825
|
if (!r) break;
|
|
3818
3826
|
t.start(r[0]);
|
|
3819
3827
|
for (let e = 0; e < r[1]; e++, o += 2) t.empty("pt", {
|
|
@@ -3824,32 +3832,32 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
3824
3832
|
}
|
|
3825
3833
|
}
|
|
3826
3834
|
t.end("path");
|
|
3827
|
-
},
|
|
3835
|
+
}, Mi = {
|
|
3828
3836
|
type: "http://schemas.microsoft.com/office/2011/relationships/chartStyle",
|
|
3829
3837
|
contentType: "application/vnd.ms-office.chartstyle+xml",
|
|
3830
3838
|
name: "style1.xml",
|
|
3831
3839
|
xml: "<cs:chartStyle xmlns:cs=\"http://schemas.microsoft.com/office/drawing/2012/chartStyle\" xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" id=\"395\"><cs:axisTitle><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:axisTitle><cs:categoryAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:categoryAxis><cs:chartArea mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"bg1\"/></a:solidFill><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"1000\"/></cs:chartArea><cs:dataLabel><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:dataLabel><cs:dataLabelCallout><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill><a:ln><a:solidFill><a:schemeClr val=\"dk1\"><a:lumMod val=\"25000\"/><a:lumOff val=\"75000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr><cs:defRPr sz=\"900\"/><cs:bodyPr rot=\"0\" spcFirstLastPara=\"1\" vertOverflow=\"clip\" horzOverflow=\"clip\" vert=\"horz\" wrap=\"square\" lIns=\"36576\" tIns=\"18288\" rIns=\"36576\" bIns=\"18288\" anchor=\"ctr\" anchorCtr=\"1\"><a:spAutoFit/></cs:bodyPr></cs:dataLabelCallout><cs:dataPoint><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill></cs:spPr></cs:dataPoint><cs:dataPoint3D><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill></cs:spPr></cs:dataPoint3D><cs:dataPointLine><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"28575\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointLine><cs:dataPointMarker><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:fillRef><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill></a:ln></cs:spPr></cs:dataPointMarker><cs:dataPointMarkerLayout symbol=\"circle\" size=\"5\"/><cs:dataPointWireframe><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"28575\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointWireframe><cs:dataTable><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:dataTable><cs:downBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"dk1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:downBar><cs:dropLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"35000\"/><a:lumOff val=\"65000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:dropLine><cs:errorBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:errorBar><cs:floor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:floor><cs:gridlineMajor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMajor><cs:gridlineMinor><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMinor><cs:hiLoLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"75000\"/><a:lumOff val=\"25000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:hiLoLine><cs:leaderLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"35000\"/><a:lumOff val=\"65000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:leaderLine><cs:legend><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:legend><cs:plotArea mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:plotArea><cs:plotArea3D mods=\"allowNoFillOverride allowNoLineOverride\"><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:plotArea3D><cs:seriesAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\" cmpd=\"sng\" algn=\"ctr\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz=\"900\"/></cs:seriesAxis><cs:seriesLine><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"9525\" cap=\"flat\"><a:solidFill><a:srgbClr val=\"D9D9D9\"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:seriesLine><cs:title><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"1400\"/></cs:title><cs:trendline><cs:lnRef idx=\"0\"><cs:styleClr val=\"auto\"/></cs:lnRef><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef><cs:spPr><a:ln w=\"19050\" cap=\"rnd\"><a:solidFill><a:schemeClr val=\"phClr\"/></a:solidFill><a:prstDash val=\"sysDash\"/></a:ln></cs:spPr></cs:trendline><cs:trendlineLabel><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:trendlineLabel><cs:upBar><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"dk1\"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val=\"lt1\"/></a:solidFill><a:ln w=\"9525\"><a:solidFill><a:schemeClr val=\"tx1\"><a:lumMod val=\"15000\"/><a:lumOff val=\"85000\"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:upBar><cs:valueAxis><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"><a:lumMod val=\"65000\"/><a:lumOff val=\"35000\"/></a:schemeClr></cs:fontRef><cs:defRPr sz=\"900\"/></cs:valueAxis><cs:wall><cs:lnRef idx=\"0\"/><cs:fillRef idx=\"0\"/><cs:effectRef idx=\"0\"/><cs:fontRef idx=\"minor\"><a:schemeClr val=\"tx1\"/></cs:fontRef></cs:wall></cs:chartStyle>"
|
|
3832
|
-
},
|
|
3840
|
+
}, Pi = {
|
|
3833
3841
|
type: "http://schemas.microsoft.com/office/2011/relationships/chartColorStyle",
|
|
3834
3842
|
contentType: "application/vnd.ms-office.chartcolorstyle+xml",
|
|
3835
3843
|
name: "colors1.xml",
|
|
3836
3844
|
xml: "<cs:colorStyle xmlns:cs=\"http://schemas.microsoft.com/office/drawing/2012/chartStyle\" xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" meth=\"cycle\" id=\"10\"><a:schemeClr val=\"accent1\"/><a:schemeClr val=\"accent2\"/><a:schemeClr val=\"accent3\"/><a:schemeClr val=\"accent4\"/><a:schemeClr val=\"accent5\"/><a:schemeClr val=\"accent6\"/><cs:variation/><cs:variation><a:lumMod val=\"60000\"/></cs:variation><cs:variation><a:lumMod val=\"80000\"/><a:lumOff val=\"20000\"/></cs:variation><cs:variation><a:lumMod val=\"80000\"/></cs:variation><cs:variation><a:lumMod val=\"60000\"/><a:lumOff val=\"40000\"/></cs:variation><cs:variation><a:lumMod val=\"50000\"/></cs:variation><cs:variation><a:lumMod val=\"70000\"/><a:lumOff val=\"30000\"/></cs:variation><cs:variation><a:lumMod val=\"70000\"/></cs:variation><cs:variation><a:lumMod val=\"50000\"/><a:lumOff val=\"50000\"/></cs:variation></cs:colorStyle>"
|
|
3837
|
-
},
|
|
3845
|
+
}, Ai = (t, e) => {
|
|
3838
3846
|
const n = {};
|
|
3839
3847
|
e.unlocked && (n.fLocksWithSheet = "0"), e.noPrint && (n.fPrintsWithSheet = "0"), t.empty("clientData", n);
|
|
3840
|
-
},
|
|
3848
|
+
}, Di = (t) => (t.content?.json)?.members ?? [], Li = (t) => ({
|
|
3841
3849
|
x: t.anchor?.tl?.x ?? 0,
|
|
3842
3850
|
y: t.anchor?.tl?.y ?? 0,
|
|
3843
3851
|
width: t.anchor?.br?.x ?? 0,
|
|
3844
3852
|
height: t.anchor?.br?.y ?? 0
|
|
3845
|
-
}),
|
|
3853
|
+
}), _i = async (t, e) => {
|
|
3846
3854
|
const n = e.content;
|
|
3847
3855
|
if ("shape" !== n?.type && "picture" !== n?.type || await ar(t, n.json), "group" === n?.type) {
|
|
3848
3856
|
await ar(t, n.json);
|
|
3849
|
-
for (const n of
|
|
3857
|
+
for (const n of Di(e)) await _i(t, n);
|
|
3850
3858
|
}
|
|
3851
|
-
},
|
|
3852
|
-
const a = await rr(t, s), i = o.content?.json, l = i?.image ?? {}, c = l.extLst ?? (a.external ? void 0 :
|
|
3859
|
+
}, Ni = async (t, e, n, o, r, s) => {
|
|
3860
|
+
const a = await rr(t, s), i = o.content?.json, l = i?.image ?? {}, c = l.extLst ?? (a.external ? void 0 : $i), d = {
|
|
3853
3861
|
...l,
|
|
3854
3862
|
type: je.Type.Image,
|
|
3855
3863
|
extLst: c,
|
|
@@ -3859,8 +3867,8 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
3859
3867
|
const p = {};
|
|
3860
3868
|
void 0 !== l.dpi && (p.dpi = String(l.dpi)), void 0 !== l.isRotatedWithShape && (p.rotWithShape = l.isRotatedWithShape ? "1" : "0");
|
|
3861
3869
|
const f = t.getXMLWriter();
|
|
3862
|
-
f.start("pic", m), f.start("nvPicPr"),
|
|
3863
|
-
},
|
|
3870
|
+
f.start("pic", m), f.start("nvPicPr"), Qi(t, f, n, o, e), f.start("cNvPicPr", i?.noRelativeResize ? { preferRelativeResize: "0" } : {}), f.empty("a:picLocks", ol(o)), f.end("cNvPicPr"), f.end("nvPicPr"), f.start("blipFill", p), f.pushDefaultNamespace("a"), dr(f, d, a), f.popDefaultNamespace(), f.end("blipFill"), Yi(t, e, n, o, r), f.end("pic");
|
|
3871
|
+
}, $i = "<a:extLst><a:ext uri=\"{28A0092B-C50C-407E-A947-70E740481C1C}\"><a14:useLocalDpi xmlns:a14=\"http://schemas.microsoft.com/office/drawing/2010/main\" val=\"0\"/></a:ext></a:extLst>", Bi = async (t, e, n, o, r) => {
|
|
3864
3872
|
const s = o.content?.json, a = s?.model, i = s?.part, l = () => r ?? n?.getBounds() ?? {
|
|
3865
3873
|
x: 0,
|
|
3866
3874
|
y: 0,
|
|
@@ -3875,16 +3883,16 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
3875
3883
|
});
|
|
3876
3884
|
if (n.leftOut.length > 0) {
|
|
3877
3885
|
const r = o.content?.name ?? "";
|
|
3878
|
-
if (n.leftOut.length === d.length) return t.warn(`The chart '${r}' is of a type an xlsx file cannot hold (${n.leftOut.join(", ")}); it is saved as a placeholder.`, void 0, "xlsx.chart.unplaced"),
|
|
3886
|
+
if (n.leftOut.length === d.length) return t.warn(`The chart '${r}' is of a type an xlsx file cannot hold (${n.leftOut.join(", ")}); it is saved as a placeholder.`, void 0, "xlsx.chart.unplaced"), Ki(t, e, o, l());
|
|
3879
3887
|
t.warn(`The chart '${r}' combines types one xlsx chart cannot hold together; it is saved without its ${n.leftOut.join(", ")} series.`, void 0, "xlsx.chart.leftOut");
|
|
3880
3888
|
}
|
|
3881
3889
|
m = n.family, p = n.xml;
|
|
3882
3890
|
} else {
|
|
3883
|
-
if (!i?.xml || !c) return
|
|
3891
|
+
if (!i?.xml || !c) return Ki(t, e, o, l());
|
|
3884
3892
|
m = c, p = i.xml;
|
|
3885
3893
|
}
|
|
3886
3894
|
const f = ke[m], h = [...i?.parts ?? []];
|
|
3887
|
-
if ("chartEx" === m) for (const t of [
|
|
3895
|
+
if ("chartEx" === m) for (const t of [Mi, Pi]) h.some((e) => e.type === t.type) || h.push({
|
|
3888
3896
|
id: "",
|
|
3889
3897
|
...t
|
|
3890
3898
|
});
|
|
@@ -3896,10 +3904,10 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
3896
3904
|
xml: p,
|
|
3897
3905
|
parts: h
|
|
3898
3906
|
}, t, f.path);
|
|
3899
|
-
if (!u?.relId) return
|
|
3907
|
+
if (!u?.relId) return Ki(t, e, o, l());
|
|
3900
3908
|
const g = t.getXMLWriter();
|
|
3901
|
-
if ("chart" === m) return void
|
|
3902
|
-
const
|
|
3909
|
+
if ("chart" === m) return void Oi(t, e, n, o, m, u.relId, r);
|
|
3910
|
+
const x = ((t) => {
|
|
3903
3911
|
const e = new Set(t.map((t) => t.type));
|
|
3904
3912
|
return e.has("regionMap") ? {
|
|
3905
3913
|
prefix: "cx4",
|
|
@@ -3912,18 +3920,18 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
3912
3920
|
uri: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"
|
|
3913
3921
|
};
|
|
3914
3922
|
})(d);
|
|
3915
|
-
g.start("mc:AlternateContent", { "xmlns:mc":
|
|
3916
|
-
[`xmlns:${
|
|
3917
|
-
Requires:
|
|
3918
|
-
}),
|
|
3919
|
-
},
|
|
3923
|
+
g.start("mc:AlternateContent", { "xmlns:mc": Xi }), g.start("mc:Choice", {
|
|
3924
|
+
[`xmlns:${x.prefix}`]: x.uri,
|
|
3925
|
+
Requires: x.prefix
|
|
3926
|
+
}), Oi(t, e, n, o, m, u.relId, r), g.end("mc:Choice"), g.start("mc:Fallback"), qi(g, l(), "This chart isn't available in your version of Excel.\n\nEditing this shape or saving this workbook into a different file format will permanently break the chart."), g.end("mc:Fallback"), g.end("mc:AlternateContent");
|
|
3927
|
+
}, Oi = (t, e, n, o, r, s, a) => {
|
|
3920
3928
|
const i = t.getXMLWriter(), l = a ?? {
|
|
3921
3929
|
x: 0,
|
|
3922
3930
|
y: 0,
|
|
3923
3931
|
width: 0,
|
|
3924
3932
|
height: 0
|
|
3925
3933
|
}, c = "chartEx" === r ? "cx" : "c", d = ke[r].graphicUri;
|
|
3926
|
-
i.start("graphicFrame", { macro: "" }), i.start("nvGraphicFramePr"),
|
|
3934
|
+
i.start("graphicFrame", { macro: "" }), i.start("nvGraphicFramePr"), Qi(t, i, n, o, e), o.lockAspect ? (i.start("cNvGraphicFramePr"), i.empty("a:graphicFrameLocks", { noChangeAspect: "1" }), i.end("cNvGraphicFramePr")) : i.empty("cNvGraphicFramePr"), i.end("nvGraphicFramePr"), i.start("xfrm"), i.empty("a:off", {
|
|
3927
3935
|
x: fr(l.x),
|
|
3928
3936
|
y: fr(l.y)
|
|
3929
3937
|
}), i.empty("a:ext", {
|
|
@@ -3934,30 +3942,30 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
3934
3942
|
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
3935
3943
|
"r:id": s
|
|
3936
3944
|
}), i.end("a:graphicData"), i.end("a:graphic"), i.end("graphicFrame");
|
|
3937
|
-
},
|
|
3945
|
+
}, Vi = async (t, e, n, o, r) => {
|
|
3938
3946
|
const s = t.getXMLWriter(), a = o.content?.json, i = e.getStyles();
|
|
3939
|
-
s.start("grpSp"), s.start("nvGrpSpPr"),
|
|
3940
|
-
const l =
|
|
3941
|
-
l ? (s.start("cNvGrpSpPr"), s.empty("a:grpSpLocks", l), s.end("cNvGrpSpPr")) : s.empty("cNvGrpSpPr"), s.end("nvGrpSpPr"), s.start("grpSpPr"), s.pushDefaultNamespace("a"),
|
|
3942
|
-
for (const n of
|
|
3947
|
+
s.start("grpSp"), s.start("nvGrpSpPr"), Qi(t, s, n, o, e);
|
|
3948
|
+
const l = el(o);
|
|
3949
|
+
l ? (s.start("cNvGrpSpPr"), s.empty("a:grpSpLocks", l), s.end("cNvGrpSpPr")) : s.empty("cNvGrpSpPr"), s.end("nvGrpSpPr"), s.start("grpSpPr"), s.pushDefaultNamespace("a"), rl(s, r, o, a?.childBounds ?? r), Yo(t, i, a), a?.scene3d && s.raw(a.scene3d), a?.extLst?.properties && s.raw(a.extLst.properties), s.popDefaultNamespace(), s.end("grpSpPr");
|
|
3950
|
+
for (const n of Di(o)) await Wi(t, e, n, Li(n));
|
|
3943
3951
|
s.end("grpSp");
|
|
3944
|
-
},
|
|
3952
|
+
}, Wi = async (t, e, n, o) => {
|
|
3945
3953
|
switch (n.content?.type) {
|
|
3946
3954
|
case "picture": {
|
|
3947
3955
|
const r = sr(t, n.content.json?.resId);
|
|
3948
|
-
return r ?
|
|
3956
|
+
return r ? Ni(t, e, null, n, o, r) : void t.warn(`The picture '${n.content.name ?? ""}' in a group names no image in the workbook; the group is saved without it.`, void 0, "xlsx.drawing.group.picture");
|
|
3949
3957
|
}
|
|
3950
|
-
case "chart": return
|
|
3951
|
-
case "shape": return
|
|
3952
|
-
case "group": return
|
|
3953
|
-
default: return
|
|
3958
|
+
case "chart": return Bi(t, e, null, n, o);
|
|
3959
|
+
case "shape": return zi(t, e, null, n, o);
|
|
3960
|
+
case "group": return Vi(t, e, null, n, o);
|
|
3961
|
+
default: return yt(n.content?.type) ? void al(t.getXMLWriter(), n, o) : Ki(t, e, n, o);
|
|
3954
3962
|
}
|
|
3955
|
-
},
|
|
3963
|
+
}, zi = async (t, e, n, o, r) => {
|
|
3956
3964
|
const s = t.getXMLWriter(), a = {}, i = o.content?.json, l = i?.type ?? Ge.Type.Shape, c = e.getStyles();
|
|
3957
|
-
l === Ge.Type.Connector ? (void 0 !== i?.macro && (a.macro = i.macro), void 0 !== i?.published && (a.fPublished = i.published ? "1" : "0"), s.start("cxnSp", a), s.start("nvCxnSpPr"),
|
|
3958
|
-
},
|
|
3965
|
+
l === Ge.Type.Connector ? (void 0 !== i?.macro && (a.macro = i.macro), void 0 !== i?.published && (a.fPublished = i.published ? "1" : "0"), s.start("cxnSp", a), s.start("nvCxnSpPr"), Qi(t, s, n, o, e), nl(t, s, n, o, e), s.end("nvCxnSpPr"), Yi(t, e, n, o, r), Zi(t, e, n, o), di(t, c, i?.text), s.end("cxnSp")) : (void 0 !== i?.macro && (a.macro = i.macro), void 0 !== i?.textLink && (a.textlink = i.textLink), void 0 !== i?.locksText && (a.fLocksText = i.locksText ? "1" : "0"), void 0 !== i?.published && (a.fPublished = i.published ? "1" : "0"), s.start("sp", a), s.start("nvSpPr"), Qi(t, s, n, o, e), nl(t, s, n, o, e), s.end("nvSpPr"), Yi(t, e, n, o, r), Zi(t, e, n, o), di(t, c, i?.text), s.end("sp"));
|
|
3966
|
+
}, ji = async (t, e, n, o) => Ki(t, e, o, n.getBounds()), Xi = "http://schemas.openxmlformats.org/markup-compatibility/2006", Hi = "http://schemas.microsoft.com/office/drawing/2010/slicer", Ui = "http://schemas.microsoft.com/office/drawing/2012/timeslicer", Gi = async (t, e, n, o) => {
|
|
3959
3967
|
const r = t.getXMLWriter(), s = o.content?.name ?? "", a = Ps(n.getContent()), i = void 0 !== a?.timeline, l = i ? {
|
|
3960
|
-
"xmlns:tsle":
|
|
3968
|
+
"xmlns:tsle": Ui,
|
|
3961
3969
|
Requires: "tsle"
|
|
3962
3970
|
} : a ? {
|
|
3963
3971
|
"xmlns:a14": "http://schemas.microsoft.com/office/drawing/2010/main",
|
|
@@ -3966,20 +3974,20 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
3966
3974
|
"xmlns:sle15": "http://schemas.microsoft.com/office/drawing/2012/slicer",
|
|
3967
3975
|
Requires: "sle15"
|
|
3968
3976
|
}, c = i ? "Timeline: Works in Excel 2013 or higher. Do not move or resize." : a ? "This shape represents a slicer. Slicers are supported in Excel 2010 or later.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2003 or earlier, the slicer cannot be used." : "This shape represents a table slicer. Table slicers are not supported in this version of Excel.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2007 or earlier, the slicer can't be used.";
|
|
3969
|
-
r.start("mc:AlternateContent", { "xmlns:mc":
|
|
3977
|
+
r.start("mc:AlternateContent", { "xmlns:mc": Xi }), r.start("mc:Choice", l), r.start("graphicFrame", { macro: "" }), r.start("nvGraphicFramePr"), Qi(t, r, n, o, e), r.empty("cNvGraphicFramePr"), r.end("nvGraphicFramePr"), r.start("xfrm"), r.empty("a:off", {
|
|
3970
3978
|
x: "0",
|
|
3971
3979
|
y: "0"
|
|
3972
3980
|
}), r.empty("a:ext", {
|
|
3973
3981
|
cx: "0",
|
|
3974
3982
|
cy: "0"
|
|
3975
|
-
}), r.end("xfrm"), r.start("a:graphic"), i ? (r.start("a:graphicData", { uri:
|
|
3976
|
-
"xmlns:tsle":
|
|
3983
|
+
}), r.end("xfrm"), r.start("a:graphic"), i ? (r.start("a:graphicData", { uri: Ui }), r.empty("tsle:timeslicer", {
|
|
3984
|
+
"xmlns:tsle": Ui,
|
|
3977
3985
|
name: s
|
|
3978
|
-
}), r.end("a:graphicData")) : (r.start("a:graphicData", { uri:
|
|
3979
|
-
"xmlns:sle":
|
|
3986
|
+
}), r.end("a:graphicData")) : (r.start("a:graphicData", { uri: Hi }), r.empty("sle:slicer", {
|
|
3987
|
+
"xmlns:sle": Hi,
|
|
3980
3988
|
name: s
|
|
3981
|
-
}), r.end("a:graphicData")), r.end("a:graphic"), r.end("graphicFrame"), r.end("mc:Choice"), r.start("mc:Fallback"),
|
|
3982
|
-
},
|
|
3989
|
+
}), r.end("a:graphicData")), r.end("a:graphic"), r.end("graphicFrame"), r.end("mc:Choice"), r.start("mc:Fallback"), qi(r, n.getBounds(), c), r.end("mc:Fallback"), r.end("mc:AlternateContent");
|
|
3990
|
+
}, qi = (t, e, n) => {
|
|
3983
3991
|
t.start("sp", {
|
|
3984
3992
|
macro: "",
|
|
3985
3993
|
textlink: ""
|
|
@@ -3999,8 +4007,8 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
3999
4007
|
lang: "en-US",
|
|
4000
4008
|
sz: "1100"
|
|
4001
4009
|
}), t.start("a:t"), t.text(n), t.end("a:t"), t.end("a:r"), t.end("a:p"), t.end("txBody"), t.end("sp");
|
|
4002
|
-
},
|
|
4003
|
-
|
|
4010
|
+
}, Ji = async (t, e, n, o) => Ki(t, e, o, n.getBounds()), Ki = async (t, e, n, o) => {
|
|
4011
|
+
zi(t, e, null, {
|
|
4004
4012
|
...n,
|
|
4005
4013
|
content: {
|
|
4006
4014
|
type: "shape",
|
|
@@ -4019,19 +4027,19 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
4019
4027
|
}
|
|
4020
4028
|
}
|
|
4021
4029
|
}, o);
|
|
4022
|
-
},
|
|
4030
|
+
}, Yi = (t, e, n, o, r) => {
|
|
4023
4031
|
const s = t.getXMLWriter(), a = o.content?.json, i = a?.geometry, l = e.getStyles();
|
|
4024
|
-
if (s.start("spPr"), s.pushDefaultNamespace("a"),
|
|
4032
|
+
if (s.start("spPr"), s.pushDefaultNamespace("a"), rl(s, r, o), "object" == typeof i && i) ((t, e) => {
|
|
4025
4033
|
t.start("custGeom"), t.start("avLst");
|
|
4026
|
-
for (const n of e.av ?? [])
|
|
4034
|
+
for (const n of e.av ?? []) Ti(t, n);
|
|
4027
4035
|
t.end("avLst"), t.start("gdLst");
|
|
4028
|
-
for (const n of e.gd ?? [])
|
|
4036
|
+
for (const n of e.gd ?? []) Ti(t, n);
|
|
4029
4037
|
t.end("gdLst"), t.start("ahLst");
|
|
4030
|
-
for (const n of e.ah ?? [])
|
|
4038
|
+
for (const n of e.ah ?? []) Ri(t, n);
|
|
4031
4039
|
t.end("ahLst"), t.start("cxnLst");
|
|
4032
4040
|
for (const n of Array.isArray(e.cxn) ? e.cxn : []) {
|
|
4033
4041
|
const e = n.split(" ");
|
|
4034
|
-
t.start("cxn", { ang: e[0] }),
|
|
4042
|
+
t.start("cxn", { ang: e[0] }), Ii(t, e[1], e[2]), t.end("cxn");
|
|
4035
4043
|
}
|
|
4036
4044
|
if (t.end("cxnLst"), e.rect) {
|
|
4037
4045
|
const n = e.rect.split(" ");
|
|
@@ -4043,7 +4051,7 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
4043
4051
|
});
|
|
4044
4052
|
}
|
|
4045
4053
|
t.start("pathLst");
|
|
4046
|
-
for (const n of e.paths)
|
|
4054
|
+
for (const n of e.paths) Ei(t, n);
|
|
4047
4055
|
t.end("pathLst"), t.end("custGeom");
|
|
4048
4056
|
})(s, i);
|
|
4049
4057
|
else {
|
|
@@ -4061,15 +4069,15 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
4061
4069
|
s.end("prstGeom");
|
|
4062
4070
|
}
|
|
4063
4071
|
Yo(t, l, a), a?.scene3d && s.raw(a.scene3d), a?.shape3d && s.raw(a.shape3d), a?.extLst?.properties && s.raw(a.extLst.properties), s.popDefaultNamespace(), s.end("spPr");
|
|
4064
|
-
},
|
|
4072
|
+
}, Zi = (t, e, n, o) => {
|
|
4065
4073
|
const r = t.getXMLWriter(), s = o.content?.json?.style;
|
|
4066
4074
|
if (null === s) return;
|
|
4067
4075
|
const a = e.getStyles().getTheme(), i = ln.defaultStyleRefs(o.content?.json), l = (t, e) => {
|
|
4068
4076
|
e && (r.start(t, { idx: String(e.index) }), e.color && Lo(r, a, e.color), r.end(t));
|
|
4069
4077
|
};
|
|
4070
4078
|
r.start("style"), r.pushDefaultNamespace("a"), l("lnRef", s?.stroke ?? i.stroke), l("fillRef", s?.fill ?? i.fill), l("effectRef", s?.effect ?? i.effect), l("fontRef", s?.font ?? i.font), r.popDefaultNamespace(), r.end("style");
|
|
4071
|
-
},
|
|
4072
|
-
let s =
|
|
4079
|
+
}, Qi = (t, e, n, o, r) => {
|
|
4080
|
+
let s = tl(t, r).assigned.get(o);
|
|
4073
4081
|
if (void 0 === s) {
|
|
4074
4082
|
const e = t.getSharedStates();
|
|
4075
4083
|
let n = e.get("uniqueIdCounter");
|
|
@@ -4080,7 +4088,7 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
4080
4088
|
name: o.content?.name
|
|
4081
4089
|
};
|
|
4082
4090
|
o.content?.description && (i.descr = o.content.description), o.hidden && (i.hidden = "1"), a?.title && (i.title = a.title), e.start("cNvPr", i), Go(t, e, "a:hlinkClick", a?.hyperlink), Go(t, e, "a:hlinkHover", a?.hoverHyperlink), a?.extLst?.nonVisual && e.raw(a.extLst.nonVisual), e.end("cNvPr");
|
|
4083
|
-
},
|
|
4091
|
+
}, tl = (t, e) => {
|
|
4084
4092
|
const n = t.getSharedStates();
|
|
4085
4093
|
let o = n.get("drawingIds");
|
|
4086
4094
|
o || (o = /* @__PURE__ */ new Map(), n.set("drawingIds", o));
|
|
@@ -4089,18 +4097,18 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
4089
4097
|
assigned: /* @__PURE__ */ new Map(),
|
|
4090
4098
|
bySource: /* @__PURE__ */ new Map()
|
|
4091
4099
|
}, o.set(e, r)), r;
|
|
4092
|
-
},
|
|
4100
|
+
}, el = (t) => {
|
|
4093
4101
|
const e = { ...(t.content?.json)?.locks };
|
|
4094
4102
|
void 0 !== t.lockAspect && void 0 === e.noChangeAspect && (e.noChangeAspect = t.lockAspect);
|
|
4095
4103
|
const n = {};
|
|
4096
4104
|
for (const t of Object.keys(e)) e[t] && (n[t] = "1");
|
|
4097
4105
|
return Object.keys(n).length > 0 ? n : null;
|
|
4098
|
-
},
|
|
4099
|
-
const s = o.content?.json, a =
|
|
4106
|
+
}, nl = (t, e, n, o, r) => {
|
|
4107
|
+
const s = o.content?.json, a = el(o);
|
|
4100
4108
|
if (s?.type === Ge.Type.Connector) {
|
|
4101
4109
|
const n = s.connectorEnds;
|
|
4102
4110
|
if (!a && !n) return void e.empty("cNvCxnSpPr");
|
|
4103
|
-
const o =
|
|
4111
|
+
const o = tl(t, r);
|
|
4104
4112
|
e.start("cNvCxnSpPr"), a && e.empty("a:cxnSpLocks", a), n?.start && e.empty("a:stCxn", {
|
|
4105
4113
|
id: String(o.bySource.get(n.start.id) ?? n.start.id),
|
|
4106
4114
|
idx: String(n.start.index)
|
|
@@ -4112,13 +4120,13 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
4112
4120
|
}
|
|
4113
4121
|
const i = { txBox: s?.textBox ? "1" : void 0 };
|
|
4114
4122
|
a ? (e.start("cNvSpPr", i), e.empty("a:spLocks", a), e.end("cNvSpPr")) : e.empty("cNvSpPr", i);
|
|
4115
|
-
},
|
|
4123
|
+
}, ol = (t) => {
|
|
4116
4124
|
const e = { ...(t.content?.json)?.locks };
|
|
4117
4125
|
void 0 !== t.lockAspect ? e.noChangeAspect = t.lockAspect : e.noChangeAspect ??= !0;
|
|
4118
4126
|
const n = {};
|
|
4119
4127
|
for (const t of Object.keys(e)) e[t] && (n[t] = "1");
|
|
4120
4128
|
return n;
|
|
4121
|
-
},
|
|
4129
|
+
}, rl = (t, e, n, o) => {
|
|
4122
4130
|
const r = {}, s = n.rotation;
|
|
4123
4131
|
void 0 !== s && 0 !== s && (r.rot = "" + hr(s)), n.flipH && (r.flipH = "1"), n.flipV && (r.flipV = "1"), t.start("xfrm", r), t.empty("off", {
|
|
4124
4132
|
x: fr(e.x),
|
|
@@ -4133,13 +4141,13 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
4133
4141
|
cx: fr(o.width),
|
|
4134
4142
|
cy: fr(o.height)
|
|
4135
4143
|
})), t.end("xfrm");
|
|
4136
|
-
},
|
|
4144
|
+
}, sl = (t, e, n) => {
|
|
4137
4145
|
t.start(e), t.start("col"), t.text(n.c ?? 0), t.end("col"), t.start("colOff"), t.text(fr(n.x)), t.end("colOff"), t.start("row"), t.text(n.r ?? 0), t.end("row"), t.start("rowOff"), t.text(fr(n.y)), t.end("rowOff"), t.end(e);
|
|
4138
|
-
},
|
|
4146
|
+
}, al = (t, e, n) => {
|
|
4139
4147
|
const o = e.content.json;
|
|
4140
4148
|
if (t.start("mc:AlternateContent", ne), t.start("mc:Choice", mt), n) return t.raw(bt(e.content.type, o, e.content?.name, n)), t.end("mc:Choice"), t.empty("mc:Fallback"), void t.end("mc:AlternateContent");
|
|
4141
|
-
t.start("twoCellAnchor", { editAs: e.anchorType || "twoCell" }),
|
|
4142
|
-
},
|
|
4149
|
+
t.start("twoCellAnchor", { editAs: e.anchorType || "twoCell" }), sl(t, "from", e.anchor.tl), sl(t, "to", e.anchor.br), t.raw(bt(e.content.type, o, e.content?.name)), t.empty("clientData", { fPrintsWithSheet: "0" }), t.end("twoCellAnchor"), t.end("mc:Choice"), t.empty("mc:Fallback"), t.end("mc:AlternateContent");
|
|
4150
|
+
}, il = async (t, e, n) => {
|
|
4143
4151
|
const o = await n.getExternalURI();
|
|
4144
4152
|
if (o) return void t.addExternal(er, o);
|
|
4145
4153
|
const r = t.getSharedStates();
|
|
@@ -4157,16 +4165,16 @@ var mi = { checkbox: "Checkbox" }, pi = [
|
|
|
4157
4165
|
const i = t.addBinary(a.bytes, a.type.mime, er, `../media/image${a.index}.${a.type.ext}`, !0, e);
|
|
4158
4166
|
i.relId !== e && t.log(`Legacy drawing image '${e}' was written as '${i.relId}'; the markup will not find it.`);
|
|
4159
4167
|
};
|
|
4160
|
-
function
|
|
4168
|
+
function ll(t) {
|
|
4161
4169
|
return t.toISOString().substring(0, 22);
|
|
4162
4170
|
}
|
|
4163
|
-
function
|
|
4171
|
+
function cl(t, e, n, o, r, s, a, i, l) {
|
|
4164
4172
|
const c = {
|
|
4165
4173
|
ref: e,
|
|
4166
|
-
dT:
|
|
4167
|
-
personId: o ?
|
|
4168
|
-
id:
|
|
4169
|
-
parentId: a ?
|
|
4174
|
+
dT: ll(r ?? /* @__PURE__ */ new Date()),
|
|
4175
|
+
personId: o ? dl(o) : void 0,
|
|
4176
|
+
id: dl(n),
|
|
4177
|
+
parentId: a ? dl(a) : void 0,
|
|
4170
4178
|
done: i ? "1" : void 0
|
|
4171
4179
|
};
|
|
4172
4180
|
if (t.start("threadedComment", c), t.start("text", $.test(s) || /[\n\r]/.test(s) ? A : void 0), t.text(s), t.end("text"), l && l.length > 0) {
|
|
@@ -4174,8 +4182,8 @@ function al(t, e, n, o, r, s, a, i, l) {
|
|
|
4174
4182
|
for (let e = 0; e < l.length; e++) {
|
|
4175
4183
|
const n = l[e];
|
|
4176
4184
|
t.empty("mention", {
|
|
4177
|
-
mentionpersonId:
|
|
4178
|
-
mentionId:
|
|
4185
|
+
mentionpersonId: dl(n.personId),
|
|
4186
|
+
mentionId: dl(n.id),
|
|
4179
4187
|
startIndex: n.startIndex ?? 0,
|
|
4180
4188
|
length: n.length ?? 0
|
|
4181
4189
|
});
|
|
@@ -4184,17 +4192,17 @@ function al(t, e, n, o, r, s, a, i, l) {
|
|
|
4184
4192
|
}
|
|
4185
4193
|
t.end("threadedComment");
|
|
4186
4194
|
}
|
|
4187
|
-
function
|
|
4195
|
+
function dl(t) {
|
|
4188
4196
|
return `{${t.replace(/^\{|\}$/g, "").toUpperCase()}}`;
|
|
4189
4197
|
}
|
|
4190
|
-
var
|
|
4198
|
+
var ml = {
|
|
4191
4199
|
rowIndex: 0,
|
|
4192
4200
|
colIndex: 0
|
|
4193
4201
|
};
|
|
4194
|
-
function
|
|
4202
|
+
function pl(t, e, n, o) {
|
|
4195
4203
|
if (null == o) return;
|
|
4196
|
-
|
|
4197
|
-
const r = Fe.cellToString(
|
|
4204
|
+
ml.rowIndex = e, ml.colIndex = n;
|
|
4205
|
+
const r = Fe.cellToString(ml);
|
|
4198
4206
|
let s, a;
|
|
4199
4207
|
switch (typeof o) {
|
|
4200
4208
|
case "number":
|
|
@@ -4217,7 +4225,7 @@ function cl(t, e, n, o) {
|
|
|
4217
4225
|
t: s
|
|
4218
4226
|
} : { r }), t.start("v"), t.text(a), t.end("v"), t.end("cell");
|
|
4219
4227
|
}
|
|
4220
|
-
var
|
|
4228
|
+
var fl = [
|
|
4221
4229
|
new class extends Tn {
|
|
4222
4230
|
constructor() {
|
|
4223
4231
|
super({
|
|
@@ -4442,10 +4450,10 @@ var dl = [
|
|
|
4442
4450
|
}, "/" + u[t]);
|
|
4443
4451
|
g[t] = l.relId ?? null;
|
|
4444
4452
|
}
|
|
4445
|
-
const
|
|
4453
|
+
const x = !0 === l.get(zs);
|
|
4446
4454
|
for (let n = 0; n < p; n++) {
|
|
4447
4455
|
const r = m(i[n]);
|
|
4448
|
-
r && (g[n] = js(e, t, i[n].kind, r, d === o[n],
|
|
4456
|
+
r && (g[n] = js(e, t, i[n].kind, r, d === o[n], x));
|
|
4449
4457
|
}
|
|
4450
4458
|
for (let t = 0; t < p; t++) {
|
|
4451
4459
|
const r = o[t];
|
|
@@ -4465,7 +4473,7 @@ var dl = [
|
|
|
4465
4473
|
pivot: [],
|
|
4466
4474
|
timeline: [],
|
|
4467
4475
|
cacheNames: []
|
|
4468
|
-
}, o =
|
|
4476
|
+
}, o = ys(t), r = e.getWorksheets().getItems({ visibility: qe.Visibility.VeryHidden });
|
|
4469
4477
|
for (let e = 0; e < r.length; e++) {
|
|
4470
4478
|
const s = Ds(r[e]);
|
|
4471
4479
|
for (let e = 0; e < s.length; e++) {
|
|
@@ -4485,9 +4493,9 @@ var dl = [
|
|
|
4485
4493
|
}
|
|
4486
4494
|
return n;
|
|
4487
4495
|
})(e, t), await e.waitEmit();
|
|
4488
|
-
const
|
|
4496
|
+
const y = t.getTheme();
|
|
4489
4497
|
e.addPart("theme", {
|
|
4490
|
-
model:
|
|
4498
|
+
model: y,
|
|
4491
4499
|
json: r.theme
|
|
4492
4500
|
}), await e.waitEmit(), e.addPart("styles", {
|
|
4493
4501
|
styles: t.getStyles(),
|
|
@@ -4640,7 +4648,7 @@ var dl = [
|
|
|
4640
4648
|
}
|
|
4641
4649
|
async emit(t, e) {
|
|
4642
4650
|
const n = e.getXMLWriter(), o = t.model, r = t.json, a = he(o, r);
|
|
4643
|
-
|
|
4651
|
+
ja(r, a), n.decl(), n.start("worksheet", {
|
|
4644
4652
|
xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
|
|
4645
4653
|
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
4646
4654
|
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
@@ -4753,8 +4761,8 @@ var dl = [
|
|
|
4753
4761
|
d.colorId = "" + i;
|
|
4754
4762
|
}
|
|
4755
4763
|
d.workbookViewId = "0";
|
|
4756
|
-
const g = n.getSelection().getCoords(),
|
|
4757
|
-
let
|
|
4764
|
+
const g = n.getSelection().getCoords(), x = Fe.cellToString(g.cell);
|
|
4765
|
+
let y = {};
|
|
4758
4766
|
const v = s.getFreezePanes(), w = v.coords ?? {}, S = w.colIndex ?? 0, b = w.rowIndex ?? 0;
|
|
4759
4767
|
if (S > 0 || b > 0) {
|
|
4760
4768
|
const t = v.topLeft ?? {}, o = t.top ?? 0, r = t.left ?? 0, s = n.getRowHeaders().getMetrics().getIndex(o), i = n.getColumnHeaders().getMetrics().getIndex(r), l = S - i, c = b - s, m = Math.max(S, n.getColumnHeaders().getMetrics().getIndex(a.left + n.getColumnHeaders().getMetrics().getOffset(S) - r)), p = Math.max(b, n.getRowHeaders().getMetrics().getIndex(a.top + n.getRowHeaders().getMetrics().getOffset(b) - o)), f = Fe.cellToString({
|
|
@@ -4780,18 +4788,18 @@ var dl = [
|
|
|
4780
4788
|
0 === S ? (h.activePane = "bottomLeft", e.empty("pane", h), g("topLeft", Fe.cellToString({
|
|
4781
4789
|
colIndex: m,
|
|
4782
4790
|
rowIndex: s
|
|
4783
|
-
}), !1),
|
|
4791
|
+
}), !1), y.pane = "bottomLeft") : 0 === b ? (h.activePane = "topRight", e.empty("pane", h), g("topLeft", Fe.cellToString({
|
|
4784
4792
|
colIndex: i,
|
|
4785
4793
|
rowIndex: p
|
|
4786
|
-
}), !1),
|
|
4794
|
+
}), !1), y.pane = "topRight") : (h.activePane = "bottomRight", e.empty("pane", h), g("topLeft", f, !1), g("topRight", Fe.cellToString({
|
|
4787
4795
|
colIndex: m,
|
|
4788
4796
|
rowIndex: s
|
|
4789
4797
|
}), !0), g("bottomLeft", Fe.cellToString({
|
|
4790
4798
|
colIndex: i,
|
|
4791
4799
|
rowIndex: p
|
|
4792
|
-
}), !0),
|
|
4800
|
+
}), !0), y.pane = "bottomRight");
|
|
4793
4801
|
} else e.start("sheetView", d);
|
|
4794
|
-
|
|
4802
|
+
y.activeCell = x;
|
|
4795
4803
|
const C = g.ranges, k = C ? C.length : 0;
|
|
4796
4804
|
if (k > 0) {
|
|
4797
4805
|
let t = "";
|
|
@@ -4799,9 +4807,9 @@ var dl = [
|
|
|
4799
4807
|
const n = C[e];
|
|
4800
4808
|
e > 0 && (t += " "), t += Fe.rangeToString(n);
|
|
4801
4809
|
}
|
|
4802
|
-
|
|
4803
|
-
} else "A1" ===
|
|
4804
|
-
|
|
4810
|
+
y.sqref = t, (g.rangeIndex ?? 0) > 0 && (y.activeCellId = "" + g.rangeIndex);
|
|
4811
|
+
} else "A1" === x ? y = null : y.sqref = x;
|
|
4812
|
+
y && e.empty("selection", y);
|
|
4805
4813
|
e.end("sheetView"), e.end("sheetViews");
|
|
4806
4814
|
}(0, n, o, 0, t.isSelected);
|
|
4807
4815
|
const i = ((t, e, n) => {
|
|
@@ -4876,7 +4884,7 @@ var dl = [
|
|
|
4876
4884
|
const t = n.buttons?.length ? Vt(n) : null;
|
|
4877
4885
|
if (t) for (const o of n.buttons) {
|
|
4878
4886
|
const n = Fe.fastStringToRange(o);
|
|
4879
|
-
for (let o = n.rowStart; o <= n.rowEnd; o++) for (let r = n.colStart; r <= n.colEnd; r++) (e ??= /* @__PURE__ */ new Set()).add((t.rowStart + o) *
|
|
4887
|
+
for (let o = n.rowStart; o <= n.rowEnd; o++) for (let r = n.colStart; r <= n.colEnd; r++) (e ??= /* @__PURE__ */ new Set()).add((t.rowStart + o) * za + t.colStart + r);
|
|
4880
4888
|
}
|
|
4881
4889
|
}
|
|
4882
4890
|
return e;
|
|
@@ -4893,8 +4901,8 @@ var dl = [
|
|
|
4893
4901
|
return e;
|
|
4894
4902
|
}(n);
|
|
4895
4903
|
let u = 0, g = 0;
|
|
4896
|
-
const
|
|
4897
|
-
let
|
|
4904
|
+
const x = n.getUsedRange();
|
|
4905
|
+
let y = 0;
|
|
4898
4906
|
const v = i?.run, w = o.rows ? Fe.refsToRuns(o.rows, !1) : null, S = o.defaultRowSize ?? .75 * n.getStyles().getNormal().getBestFit().height, k = w && v ? ((t, e, n, o) => {
|
|
4899
4907
|
const r = [];
|
|
4900
4908
|
let s = 0;
|
|
@@ -4911,13 +4919,13 @@ var dl = [
|
|
|
4911
4919
|
}
|
|
4912
4920
|
return a(s, o - 1), r;
|
|
4913
4921
|
})(w, v, S, n.getEntireRange().getRowEnd() + 1) : w, T = k ? k.length : 0, I = ua(k), R = null !== I ? I - 1 : k?.[T - 1]?.max ?? -1, F = o.cols ? Fe.refsToRuns(o.cols, !0) : null, E = F ? F.length : 0, M = F?.[E - 1]?.max ?? -1;
|
|
4914
|
-
if (
|
|
4915
|
-
const l = .75,
|
|
4916
|
-
const n =
|
|
4922
|
+
if (x || T > 0) {
|
|
4923
|
+
const l = .75, x = o.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * l, v = n.getStyles().getNormal().getBestFit().height * l, w = ha(n.getOutline(), Ue.Axis.Row), S = (t, e) => {
|
|
4924
|
+
const n = Ga;
|
|
4917
4925
|
if (n.r = "" + (t + 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, n.thickTop = void 0, n.thickBot = void 0, !e) return n;
|
|
4918
4926
|
const o = e.value;
|
|
4919
4927
|
void 0 !== o.s && (n.s = "" + (a ? a.getXf(o.s, !0, !1) : o.s), n.customFormat = "1"), o.h && (n.hidden = "1");
|
|
4920
|
-
const r = o.csz ?? !1, s = o.sz ??
|
|
4928
|
+
const r = o.csz ?? !1, s = o.sz ?? x;
|
|
4921
4929
|
return (s !== (i?.height ?? v) || r) && (n.ht = "" + s), r && (n.customHeight = "1"), o.l && (n.outlineLevel = "" + o.l), w.has(t) && (n.collapsed = "1"), o.tt && (n.thickTop = "1"), o.tb && (n.thickBot = "1"), n;
|
|
4922
4930
|
};
|
|
4923
4931
|
let T = 0, E = k?.[T] ?? null, P = E?.min ?? Number.MAX_SAFE_INTEGER, D = E?.max ?? Number.MAX_SAFE_INTEGER, L = E?.value?.s, _ = -1, N = 0, B = F?.[N] ?? null, O = B?.min ?? Number.MAX_SAFE_INTEGER, V = B?.max ?? Number.MAX_SAFE_INTEGER, W = B?.value?.s;
|
|
@@ -4968,27 +4976,31 @@ var dl = [
|
|
|
4968
4976
|
for (let o = 0; o < U; o++) {
|
|
4969
4977
|
const a = X[o];
|
|
4970
4978
|
try {
|
|
4971
|
-
const
|
|
4972
|
-
let
|
|
4973
|
-
if (
|
|
4974
|
-
let
|
|
4975
|
-
const
|
|
4976
|
-
rowIndex:
|
|
4977
|
-
colIndex:
|
|
4978
|
-
},
|
|
4979
|
-
let
|
|
4980
|
-
if (
|
|
4981
|
-
else if (!Ae.isSingleCell(
|
|
4979
|
+
const d = a[0], h = n.getRange(d), u = h.getCoords();
|
|
4980
|
+
let g = a[1];
|
|
4981
|
+
if (va.test(g) && wa(n, u, g, G)) continue;
|
|
4982
|
+
let x = null;
|
|
4983
|
+
const v = {
|
|
4984
|
+
rowIndex: u.rowStart,
|
|
4985
|
+
colIndex: u.colStart
|
|
4986
|
+
}, w = l.parse(g, v), S = w ? l.annotate(w) : void 0, b = w ? l.spell(w, p.has(`${u.rowStart},${u.colStart}`), m(u.rowStart, u.colStart)) : null;
|
|
4987
|
+
let C = b ? Le.imager(b, { entireCoords: c }) : null;
|
|
4988
|
+
if (C) g = C(v);
|
|
4989
|
+
else if (!Ae.isSingleCell(u)) {
|
|
4982
4990
|
const t = [];
|
|
4983
|
-
Fe.normalizeA1ToR1C1(
|
|
4984
|
-
const n = e ??
|
|
4991
|
+
Fe.normalizeA1ToR1C1(g, v.rowIndex, v.colIndex, t), C = (e) => {
|
|
4992
|
+
const n = e ?? v;
|
|
4985
4993
|
return Fe.resolveRelativeToA1(t, n.rowIndex, n.colIndex);
|
|
4986
4994
|
};
|
|
4987
4995
|
}
|
|
4988
|
-
|
|
4989
|
-
|
|
4996
|
+
if (g.length > xa) {
|
|
4997
|
+
t.warn(`The formula at '${n.getName()}'!${Fe.rangeToString(u)} is ${g.length.toLocaleString()} characters as xlsx stores it; Excel allows at most ${xa.toLocaleString()}. Its cells are saved as values.`, void 0, "xlsx.formula.lengthLimit");
|
|
4998
|
+
continue;
|
|
4999
|
+
}
|
|
5000
|
+
let k = !0 === S?.cm;
|
|
5001
|
+
const T = !0 === S?.ca;
|
|
4990
5002
|
if (r.affects(o)) {
|
|
4991
|
-
|
|
5003
|
+
x = null, k = !1;
|
|
4992
5004
|
const t = (t, e, n) => {
|
|
4993
5005
|
const o = {
|
|
4994
5006
|
rowStart: t,
|
|
@@ -5004,10 +5016,10 @@ var dl = [
|
|
|
5004
5016
|
isDynamicRange: !1,
|
|
5005
5017
|
isWrapped: !0
|
|
5006
5018
|
}]);
|
|
5007
|
-
}, o = e.get(`${
|
|
5019
|
+
}, o = e.get(`${u.rowStart},${u.colStart}`), r = void 0 !== o && (o.rowEnd > o.rowStart || o.colEnd > o.colStart);
|
|
5008
5020
|
let a = !1;
|
|
5009
5021
|
if (r) {
|
|
5010
|
-
const e = s(
|
|
5022
|
+
const e = s(g, h.getCell().getValue());
|
|
5011
5023
|
if (null !== e) for (let r = o.rowStart; r <= o.rowEnd; r++) for (let s = o.colStart; s <= o.colEnd; s++) {
|
|
5012
5024
|
if (r === o.rowStart && s === o.colStart) {
|
|
5013
5025
|
t(r, s, e), a = !0;
|
|
@@ -5021,24 +5033,24 @@ var dl = [
|
|
|
5021
5033
|
})), l = H(i.getCell().getValue());
|
|
5022
5034
|
null !== l && t(r, s, l);
|
|
5023
5035
|
}
|
|
5024
|
-
} else
|
|
5025
|
-
const o = n.getCoords(), r =
|
|
5036
|
+
} else h.forEach((e, n) => {
|
|
5037
|
+
const o = n.getCoords(), r = C?.(o) ?? g, i = s(r, n.getCell().getValue());
|
|
5026
5038
|
null !== i && (t(o.rowIndex, o.colIndex, i), a = !0);
|
|
5027
5039
|
}, { includeEmpty: !0 });
|
|
5028
5040
|
if (a) continue;
|
|
5029
5041
|
}
|
|
5030
|
-
const
|
|
5031
|
-
|
|
5032
|
-
const
|
|
5033
|
-
coords:
|
|
5034
|
-
formula:
|
|
5035
|
-
sharedId:
|
|
5036
|
-
ref:
|
|
5037
|
-
isDynamicRange:
|
|
5038
|
-
isExcelVolatile:
|
|
5039
|
-
memberImage:
|
|
5042
|
+
const I = -1 !== g.indexOf("!") || -1 !== g.indexOf("[");
|
|
5043
|
+
k || h.isSingleCell() || I || i(u) || (x = "" + y++);
|
|
5044
|
+
const R = null !== x || h.isSingleCell() ? null : C, F = [u, {
|
|
5045
|
+
coords: u,
|
|
5046
|
+
formula: g,
|
|
5047
|
+
sharedId: x,
|
|
5048
|
+
ref: d,
|
|
5049
|
+
isDynamicRange: k,
|
|
5050
|
+
isExcelVolatile: T,
|
|
5051
|
+
memberImage: R
|
|
5040
5052
|
}];
|
|
5041
|
-
f.push(
|
|
5053
|
+
f.push(F);
|
|
5042
5054
|
} catch (e) {
|
|
5043
5055
|
t.log(`Could not write the formula '${a[1]}' over '${a[0]}'; those cells are written as values only. ${e}`);
|
|
5044
5056
|
continue;
|
|
@@ -5090,16 +5102,16 @@ var dl = [
|
|
|
5090
5102
|
for (; i <= M && i > V;) N++, B = F?.[N] ?? null, O = B?.min ?? Number.MAX_SAFE_INTEGER, V = B?.max ?? Number.MAX_SAFE_INTEGER, W = B?.value?.s;
|
|
5091
5103
|
void 0 !== W && i >= O && i <= V && (l = W);
|
|
5092
5104
|
}
|
|
5093
|
-
const
|
|
5094
|
-
let
|
|
5095
|
-
U > 0 && (
|
|
5105
|
+
const x = o.getType();
|
|
5106
|
+
let y = null;
|
|
5107
|
+
U > 0 && (y = o.getInjectedReference(1) ?? null);
|
|
5096
5108
|
let v = !1;
|
|
5097
5109
|
J > 0 && (v = o.getInjectedReference(2) ?? !1);
|
|
5098
5110
|
let w = null;
|
|
5099
5111
|
Y > 0 && (w = o.getInjectedReference(3) ?? null);
|
|
5100
|
-
const S = "error" === w?.kind, b = "fixed" === w?.kind, k =
|
|
5112
|
+
const S = "error" === w?.kind, b = "fixed" === w?.kind, k = Ua;
|
|
5101
5113
|
k.r = o.getAddress(), k.s = void 0, k.t = void 0, k.cm = void 0, k.vm = void 0;
|
|
5102
|
-
const T = null !== f && f.has(s *
|
|
5114
|
+
const T = null !== f && f.has(s * za + i), I = null !== h ? function(t, e, n) {
|
|
5103
5115
|
for (const { table: o, coords: r, formats: s } of t) {
|
|
5104
5116
|
if (e < r.rowStart || e > r.rowEnd || n < r.colStart || n > r.colEnd) continue;
|
|
5105
5117
|
const t = o.getStyleAt(e, n), a = t.getAlignment(), i = "left" === a.getHorizontal() ? a.getIndent() : null, l = t.getNumberFormat(), c = l && "General" !== l ? l : null, d = s?.formatAt(e - r.rowStart, n - r.colStart).user ?? null;
|
|
@@ -5114,7 +5126,7 @@ var dl = [
|
|
|
5114
5126
|
(a || T || null !== I) && (l = p.getXf(l ?? 0, null !== a, T, I?.labelIndent ?? null, I?.numberFormat ?? null, I?.user ?? null)), void 0 !== l && 0 !== l && (k.s = "" + l);
|
|
5115
5127
|
const R = G.length > 0 ? o.getInjectedReference(4) ?? null : null;
|
|
5116
5128
|
let E = null, j = null;
|
|
5117
|
-
switch (
|
|
5129
|
+
switch (x) {
|
|
5118
5130
|
case an.Boolean:
|
|
5119
5131
|
E = n ? "1" : "0", j = "b";
|
|
5120
5132
|
break;
|
|
@@ -5123,18 +5135,18 @@ var dl = [
|
|
|
5123
5135
|
if (j = "e", t > 7) E = De.BuiltIn.Value.getLabel(), k.vm = "" + m.add(n);
|
|
5124
5136
|
else if (t < 1) {
|
|
5125
5137
|
let t;
|
|
5126
|
-
j = "s",
|
|
5138
|
+
j = "s", y ? (t = "=" + y.formula, y = null) : t = "" + n.getLabel(), E = "" + c.add(t), u++;
|
|
5127
5139
|
} else E = "" + n.getLabel();
|
|
5128
5140
|
break;
|
|
5129
5141
|
case an.Number:
|
|
5130
5142
|
E = tt(n), j = null;
|
|
5131
5143
|
break;
|
|
5132
5144
|
case an.String:
|
|
5133
|
-
E = n,
|
|
5145
|
+
E = n, y || R ? (j = "str", E = n) : (j = "s", E = "" + c.add(E), u++);
|
|
5134
5146
|
break;
|
|
5135
5147
|
case an.RichData:
|
|
5136
5148
|
if (n instanceof rn) {
|
|
5137
|
-
|
|
5149
|
+
y || R ? (j = "str", E = n.getText()) : (j = "s", E = "" + c.add(function(t, e, n) {
|
|
5138
5150
|
const o = t.getRuns(), r = e.getCell().getRichText();
|
|
5139
5151
|
if (!r) return t.getText();
|
|
5140
5152
|
const s = new Array(o.length);
|
|
@@ -5158,29 +5170,29 @@ var dl = [
|
|
|
5158
5170
|
}
|
|
5159
5171
|
if (n instanceof _e) {
|
|
5160
5172
|
const t = n.toPrimitive();
|
|
5161
|
-
"number" == typeof t ? E = tt(t) : "boolean" == typeof t ? (j = "b", E = t ? "1" : "0") :
|
|
5173
|
+
"number" == typeof t ? E = tt(t) : "boolean" == typeof t ? (j = "b", E = t ? "1" : "0") : y || R ? (j = "str", E = t) : (j = "s", E = "" + c.add(t), u++);
|
|
5162
5174
|
break;
|
|
5163
5175
|
}
|
|
5164
|
-
j = "e", E = De.BuiltIn.Value.getLabel(), k.vm = "" + m.add(n,
|
|
5176
|
+
j = "e", E = De.BuiltIn.Value.getLabel(), k.vm = "" + m.add(n, y?.formula ?? (R ? "" : null));
|
|
5165
5177
|
}
|
|
5166
5178
|
j && (k.t = j);
|
|
5167
|
-
const X = !
|
|
5168
|
-
if (null !==
|
|
5169
|
-
if (X && null !==
|
|
5170
|
-
const t = s ===
|
|
5171
|
-
let n =
|
|
5172
|
-
|
|
5179
|
+
const X = !y?.isWrapped && (null !== w || (y?.isDynamicRange ?? !1));
|
|
5180
|
+
if (null !== y || null !== E || null !== R) {
|
|
5181
|
+
if (X && null !== y && !b && (k.cm = "" + d.registerArrayCell(S)), e.start("c", k), y) {
|
|
5182
|
+
const t = s === y.coords.rowStart && i === y.coords.colStart;
|
|
5183
|
+
let n = y.formula;
|
|
5184
|
+
y.memberImage && !t && (n = y.memberImage({
|
|
5173
5185
|
rowIndex: s,
|
|
5174
5186
|
colIndex: i
|
|
5175
5187
|
}));
|
|
5176
5188
|
let o, r = null;
|
|
5177
|
-
const a =
|
|
5189
|
+
const a = y.sharedId;
|
|
5178
5190
|
if (a) {
|
|
5179
|
-
o =
|
|
5180
|
-
const t =
|
|
5181
|
-
t.colStart === i && t.rowStart === s ? (o.ref =
|
|
5182
|
-
} else X ? (o =
|
|
5183
|
-
o.ca = v || S ||
|
|
5191
|
+
o = Ja;
|
|
5192
|
+
const t = y.coords;
|
|
5193
|
+
t.colStart === i && t.rowStart === s ? (o.ref = y.ref, o.si = a, r = y.formula) : (o.ref = void 0, o.si = a);
|
|
5194
|
+
} else X ? (o = Ka, o.aca = S ? "1" : void 0, o.ref = S ? k.r : w?.ref ?? k.r, r = n) : (o = qa, r = n);
|
|
5195
|
+
o.ca = v || S || y.isExcelVolatile ? "1" : void 0, r ? (e.start("f", o), e.text(r), e.end("f")) : e.empty("f", o);
|
|
5184
5196
|
} else R && e.empty("f", v ? {
|
|
5185
5197
|
...R,
|
|
5186
5198
|
ca: "1"
|
|
@@ -5217,7 +5229,7 @@ var dl = [
|
|
|
5217
5229
|
}
|
|
5218
5230
|
const s = t.getWorkbook();
|
|
5219
5231
|
if (!s) return ma;
|
|
5220
|
-
const a = await
|
|
5232
|
+
const a = await xe(s, o);
|
|
5221
5233
|
return 0 === a.size ? ma : {
|
|
5222
5234
|
names: a,
|
|
5223
5235
|
perFormula: r,
|
|
@@ -5246,7 +5258,7 @@ var dl = [
|
|
|
5246
5258
|
const n = r[e];
|
|
5247
5259
|
let o, s;
|
|
5248
5260
|
Array.isArray(n) ? (o = n[0], s = n[1]) : (o = n.r, s = n.v);
|
|
5249
|
-
const i =
|
|
5261
|
+
const i = Ea(o);
|
|
5250
5262
|
if (!i || !s) {
|
|
5251
5263
|
t.log("Skipping protectedRange with no range.");
|
|
5252
5264
|
continue;
|
|
@@ -5283,7 +5295,7 @@ var dl = [
|
|
|
5283
5295
|
const m = /* @__PURE__ */ new Map(), p = function(t, e, n, o, r) {
|
|
5284
5296
|
const s = [], a = o.conditionals, i = a ? a.length : 0;
|
|
5285
5297
|
if (0 === i) return s;
|
|
5286
|
-
const l = t.getSharedStates(), c =
|
|
5298
|
+
const l = t.getSharedStates(), c = yr(l), d = n.getStyles().getTheme(), m = l.get(u);
|
|
5287
5299
|
let p = null, f = 0;
|
|
5288
5300
|
const h = (t) => {
|
|
5289
5301
|
"number" != typeof t.pivotKey || r.has(t.pivotKey) || r.set(t.pivotKey, f);
|
|
@@ -5292,30 +5304,30 @@ var dl = [
|
|
|
5292
5304
|
const o = a[n];
|
|
5293
5305
|
let r, i;
|
|
5294
5306
|
Array.isArray(o) ? (r = o[0], i = o[1]) : (r = o.r, i = o.v);
|
|
5295
|
-
const l =
|
|
5307
|
+
const l = Ea(r);
|
|
5296
5308
|
if (!l || !i) {
|
|
5297
5309
|
t.log("Skipping conditionalFormatting with no range.");
|
|
5298
5310
|
continue;
|
|
5299
5311
|
}
|
|
5300
|
-
const u =
|
|
5312
|
+
const u = Da(l), g = _a(i.scale, u, m);
|
|
5301
5313
|
g !== i.scale && (i = {
|
|
5302
5314
|
...i,
|
|
5303
5315
|
scale: g
|
|
5304
5316
|
});
|
|
5305
|
-
const
|
|
5306
|
-
|
|
5317
|
+
const x = g ? { type: g.type } : te(i.condition, Fa(l), (e, n) => t.warn(e, void 0, n));
|
|
5318
|
+
x ? (x.formulas && (x.formulas = x.formulas.map((t) => La(t, u, m))), g?.type === Ve.ScaleType.IconSet && ka(g) ? (f++, h(i), s.push({
|
|
5307
5319
|
guid: fe(Pe.uuidV4),
|
|
5308
5320
|
sqref: l,
|
|
5309
5321
|
priority: f,
|
|
5310
5322
|
scale: g
|
|
5311
|
-
})) : g || !
|
|
5323
|
+
})) : g || !Aa(x) ? (l !== p && (null !== p && e.end("conditionalFormatting"), e.start("conditionalFormatting", {
|
|
5312
5324
|
sqref: l,
|
|
5313
5325
|
pivot: "number" == typeof i.pivotKey ? "1" : void 0
|
|
5314
|
-
}), p = l), f++, h(i),
|
|
5326
|
+
}), p = l), f++, h(i), Ra(t, e, d, i, x, l, f, c, s)) : (f++, h(i), s.push({
|
|
5315
5327
|
guid: fe(Pe.uuidV4),
|
|
5316
5328
|
sqref: l,
|
|
5317
5329
|
priority: f,
|
|
5318
|
-
rule:
|
|
5330
|
+
rule: x,
|
|
5319
5331
|
style: i.style,
|
|
5320
5332
|
stopIfTrue: i.stopIfTrue
|
|
5321
5333
|
}))) : i.condition || t.log("Skipping conditional format with neither a condition nor a scale.");
|
|
@@ -5330,19 +5342,19 @@ var dl = [
|
|
|
5330
5342
|
const n = a[e];
|
|
5331
5343
|
let o, i;
|
|
5332
5344
|
Array.isArray(n) ? (o = n[0], i = n[1]) : (o = n.r, i = n.v);
|
|
5333
|
-
const c =
|
|
5345
|
+
const c = Ea(o);
|
|
5334
5346
|
if (!c || !i) {
|
|
5335
5347
|
t.log("Skipping dataValidation with no range.");
|
|
5336
5348
|
continue;
|
|
5337
5349
|
}
|
|
5338
5350
|
i.ext && t.warn("DataValidation extension payload is not written to xlsx; it will be lost.");
|
|
5339
|
-
const d = (e, n) => t.warn(e, void 0, n), m = st(i.condition, d), { type: p, operator: f } = m ?? {}, h =
|
|
5351
|
+
const d = (e, n) => t.warn(e, void 0, n), m = st(i.condition, d), { type: p, operator: f } = m ?? {}, h = Da(c), u = La(m?.formula1, h, s), g = La(m?.formula2, h, s), x = {
|
|
5340
5352
|
type: p,
|
|
5341
5353
|
operator: f,
|
|
5342
|
-
allowBlank:
|
|
5354
|
+
allowBlank: Ma(i.condition?.includeBlanks ?? !1),
|
|
5343
5355
|
showDropDown: i.hideDropdown ? "1" : void 0,
|
|
5344
|
-
showInputMessage:
|
|
5345
|
-
showErrorMessage:
|
|
5356
|
+
showInputMessage: Ma(i.showPromptMessage),
|
|
5357
|
+
showErrorMessage: Ma(i.showAlertMessage),
|
|
5346
5358
|
errorStyle: i.alertStyle ?? "stop",
|
|
5347
5359
|
errorTitle: Yt(i.alertTitle, "errorTitle", d),
|
|
5348
5360
|
error: Yt(i.alert, "error", d),
|
|
@@ -5350,20 +5362,20 @@ var dl = [
|
|
|
5350
5362
|
prompt: Yt(i.prompt, "prompt", d),
|
|
5351
5363
|
imeMode: i.imeMode
|
|
5352
5364
|
};
|
|
5353
|
-
|
|
5354
|
-
attrs:
|
|
5365
|
+
Pa(u) || Pa(g) ? r.push({
|
|
5366
|
+
attrs: x,
|
|
5355
5367
|
formula1: u,
|
|
5356
5368
|
formula2: g,
|
|
5357
5369
|
sqref: c
|
|
5358
|
-
}) : (
|
|
5359
|
-
attrs:
|
|
5370
|
+
}) : (x.sqref = c, l.push({
|
|
5371
|
+
attrs: x,
|
|
5360
5372
|
formula1: u,
|
|
5361
5373
|
formula2: g
|
|
5362
5374
|
}));
|
|
5363
5375
|
}
|
|
5364
5376
|
if (0 === l.length) return r;
|
|
5365
5377
|
e.start("dataValidations", {
|
|
5366
|
-
...
|
|
5378
|
+
...Na(n),
|
|
5367
5379
|
count: l.length
|
|
5368
5380
|
});
|
|
5369
5381
|
for (let t = 0; t < l.length; t++) {
|
|
@@ -5410,7 +5422,7 @@ var dl = [
|
|
|
5410
5422
|
n.ignorePrinterDefaults && (s.usePrinterDefaults = "0");
|
|
5411
5423
|
n.blackAndWhite && (s.blackAndWhite = "1");
|
|
5412
5424
|
n.draftMode && (s.draft = "1");
|
|
5413
|
-
const i =
|
|
5425
|
+
const i = xt.find(([, t]) => t === n.printComments)?.[0];
|
|
5414
5426
|
i && (s.cellComments = i);
|
|
5415
5427
|
n.useFirstPageNumber && (s.useFirstPageNumber = "1");
|
|
5416
5428
|
const l = Bt.find(([, t]) => t === n.printErrors)?.[0];
|
|
@@ -5420,7 +5432,7 @@ var dl = [
|
|
|
5420
5432
|
if (c) {
|
|
5421
5433
|
const e = await Ao({
|
|
5422
5434
|
...c,
|
|
5423
|
-
contentType: c.contentType ||
|
|
5435
|
+
contentType: c.contentType || $a
|
|
5424
5436
|
}, t, "../printerSettings/printerSettings{n}.bin");
|
|
5425
5437
|
e?.relId && (s["r:id"] = e.relId);
|
|
5426
5438
|
}
|
|
@@ -5440,14 +5452,14 @@ var dl = [
|
|
|
5440
5452
|
e.end("headerFooter");
|
|
5441
5453
|
}
|
|
5442
5454
|
}
|
|
5443
|
-
|
|
5455
|
+
Ba(e, "rowBreaks", n.rowBreaks), Ba(e, "colBreaks", n.columnBreaks);
|
|
5444
5456
|
}(e, n, r.pageLayout), function(t, e) {
|
|
5445
5457
|
if (!e?.length) return;
|
|
5446
5458
|
const n = /* @__PURE__ */ new Map();
|
|
5447
5459
|
for (const t of e) {
|
|
5448
5460
|
const e = Array.isArray(t) ? t[0] : t.r, o = Array.isArray(t) ? t[1] : t.v, r = v.filter((t) => o?.includes(t));
|
|
5449
5461
|
if (0 === r.length) continue;
|
|
5450
|
-
const s = "string" == typeof e ? e :
|
|
5462
|
+
const s = "string" == typeof e ? e : Ea(e);
|
|
5451
5463
|
if (!s) continue;
|
|
5452
5464
|
const a = r.join(",");
|
|
5453
5465
|
let i = n.get(a);
|
|
@@ -5469,7 +5481,7 @@ var dl = [
|
|
|
5469
5481
|
if (0 === (r ? r.length : 0)) return;
|
|
5470
5482
|
const s = (t) => {
|
|
5471
5483
|
const e = t.content?.type;
|
|
5472
|
-
return "picture" === e || "chart" === e || "shape" === e || "group" === e || "slicer" === e ||
|
|
5484
|
+
return "picture" === e || "chart" === e || "shape" === e || "group" === e || "slicer" === e || yt(e);
|
|
5473
5485
|
};
|
|
5474
5486
|
if (!r.some(s)) return;
|
|
5475
5487
|
const a = n.getMovables().getItems().filter((t) => "note" !== t.getContent().getType()), i = (t) => {
|
|
@@ -5505,7 +5517,7 @@ var dl = [
|
|
|
5505
5517
|
comments: n
|
|
5506
5518
|
});
|
|
5507
5519
|
}(o);
|
|
5508
|
-
|
|
5520
|
+
Oa(e, n, "legacyDrawing", Wa(Xa(o, r.legacyDrawing ?? null, a), h)), Oa(e, n, "legacyDrawingHF", r.legacyDrawingHF ?? null), await async function(t, e, n) {
|
|
5509
5521
|
const o = n.getPicture();
|
|
5510
5522
|
if (!o) return;
|
|
5511
5523
|
const r = o.getResource(), s = await r.getExternalURI();
|
|
@@ -5568,7 +5580,7 @@ var dl = [
|
|
|
5568
5580
|
e.start("controlPr", Nt(r)), e.start("anchor", {
|
|
5569
5581
|
moveWithCells: "absolute" === i ? void 0 : "1",
|
|
5570
5582
|
sizeWithCells: "twoCell" === i ? "1" : void 0
|
|
5571
|
-
}),
|
|
5583
|
+
}), Ha(e, "from", n.anchor.tl), Ha(e, "to", n.anchor.br), e.end("anchor"), r.xml && e.raw(r.xml), e.end("controlPr"), e.end("control"), e.end("mc:Choice"), e.end("mc:AlternateContent");
|
|
5572
5584
|
}
|
|
5573
5585
|
e.end("controls"), e.end("mc:Choice"), e.end("mc:AlternateContent");
|
|
5574
5586
|
}(e, n, a), function(t, e, n, o) {
|
|
@@ -5604,19 +5616,17 @@ var dl = [
|
|
|
5604
5616
|
type: "dataBar",
|
|
5605
5617
|
id: r
|
|
5606
5618
|
}), e.start("x14:dataBar", {
|
|
5607
|
-
minLength: i.minLength,
|
|
5608
|
-
maxLength: i.maxLength,
|
|
5609
|
-
gradient: i.
|
|
5619
|
+
minLength: i.minLength ?? 0,
|
|
5620
|
+
maxLength: i.maxLength ?? 100,
|
|
5621
|
+
gradient: i.solidFill ? "0" : void 0,
|
|
5610
5622
|
border: i.borderColor ? "1" : void 0,
|
|
5611
5623
|
direction: i.direction,
|
|
5612
5624
|
negativeBarColorSameAsPositive: i.negativeFillColor ? "0" : "1",
|
|
5613
5625
|
negativeBarBorderColorSameAsPositive: i.negativeBorderColor ? "0" : void 0,
|
|
5614
5626
|
axisPosition: i.axisPosition
|
|
5615
5627
|
});
|
|
5616
|
-
const t = i
|
|
5617
|
-
|
|
5618
|
-
else for (let n = 0; n < t.length; n++) Sa(e, t[n]);
|
|
5619
|
-
i.borderColor && No(e, c, i.borderColor, "x14:borderColor"), i.negativeFillColor && No(e, c, i.negativeFillColor, "x14:negativeFillColor"), i.negativeBorderColor && No(e, c, i.negativeBorderColor, "x14:negativeBorderColor"), i.axisColor && No(e, c, i.axisColor, "x14:axisColor"), e.end("x14:dataBar"), e.end("x14:cfRule");
|
|
5628
|
+
const [t, n] = Ta(i);
|
|
5629
|
+
ba(e, t), ba(e, n), i.borderColor && No(e, c, i.borderColor, "x14:borderColor"), i.negativeFillColor && No(e, c, i.negativeFillColor, "x14:negativeFillColor"), i.negativeBorderColor && No(e, c, i.negativeBorderColor, "x14:negativeBorderColor"), i.axisColor && No(e, c, i.axisColor, "x14:axisColor"), e.end("x14:dataBar"), e.end("x14:cfRule");
|
|
5620
5630
|
} else {
|
|
5621
5631
|
e.start("x14:cfRule", {
|
|
5622
5632
|
type: "iconSet",
|
|
@@ -5624,12 +5634,12 @@ var dl = [
|
|
|
5624
5634
|
id: r
|
|
5625
5635
|
}), e.start("x14:iconSet", {
|
|
5626
5636
|
iconSet: i.iconSet,
|
|
5627
|
-
reverse:
|
|
5628
|
-
showValue:
|
|
5637
|
+
reverse: Ma(i.reverse),
|
|
5638
|
+
showValue: Ma(i.showValue),
|
|
5629
5639
|
custom: (i.icon?.length ?? 0) > 0 ? "1" : void 0
|
|
5630
5640
|
});
|
|
5631
5641
|
const t = i.stops ?? [];
|
|
5632
|
-
for (let n = 0; n < t.length; n++)
|
|
5642
|
+
for (let n = 0; n < t.length; n++) ba(e, t[n]);
|
|
5633
5643
|
const n = i.icon ?? [];
|
|
5634
5644
|
for (let t = 0; t < n.length; t++) e.empty("x14:cfIcon", {
|
|
5635
5645
|
iconSet: n[t].set,
|
|
@@ -5641,12 +5651,12 @@ var dl = [
|
|
|
5641
5651
|
e.start("x14:cfRule", {
|
|
5642
5652
|
type: d.type,
|
|
5643
5653
|
priority: a,
|
|
5644
|
-
stopIfTrue:
|
|
5645
|
-
aboveAverage:
|
|
5646
|
-
equalAverage:
|
|
5654
|
+
stopIfTrue: Ma(p),
|
|
5655
|
+
aboveAverage: Ma(d.aboveAverage),
|
|
5656
|
+
equalAverage: Ma(d.equalAverage),
|
|
5647
5657
|
stdDev: d.stdDev,
|
|
5648
|
-
bottom:
|
|
5649
|
-
percent:
|
|
5658
|
+
bottom: Ma(d.bottom),
|
|
5659
|
+
percent: Ma(d.percent),
|
|
5650
5660
|
rank: d.rank,
|
|
5651
5661
|
operator: d.operator,
|
|
5652
5662
|
text: d.text,
|
|
@@ -5667,7 +5677,7 @@ var dl = [
|
|
|
5667
5677
|
"xmlns:x14": wt
|
|
5668
5678
|
}), e.start("x14:dataValidations", {
|
|
5669
5679
|
"xmlns:xm": ie,
|
|
5670
|
-
...
|
|
5680
|
+
...Na(n),
|
|
5671
5681
|
count: r.length
|
|
5672
5682
|
});
|
|
5673
5683
|
for (let t = 0; t < r.length; t++) {
|
|
@@ -5806,9 +5816,9 @@ var dl = [
|
|
|
5806
5816
|
const t = e.getRuns();
|
|
5807
5817
|
for (let e = 0; e < t.length; e++) {
|
|
5808
5818
|
const o = t[e];
|
|
5809
|
-
n.start("r"), o.font && a && ia(n, o.font, a),
|
|
5819
|
+
n.start("r"), o.font && a && ia(n, o.font, a), Ya(n, o.text), n.end("r");
|
|
5810
5820
|
}
|
|
5811
|
-
} else
|
|
5821
|
+
} else Ya(n, e);
|
|
5812
5822
|
n.end("si");
|
|
5813
5823
|
}
|
|
5814
5824
|
n.end("sst"), n.close();
|
|
@@ -5839,7 +5849,7 @@ var dl = [
|
|
|
5839
5849
|
e.end(o);
|
|
5840
5850
|
}(0, n, o, "clrScheme"), function(t, e, n, o) {
|
|
5841
5851
|
if (!n) return;
|
|
5842
|
-
e.start(o, { name: n.getName() || "Office" }),
|
|
5852
|
+
e.start(o, { name: n.getName() || "Office" }), pi(e, n.getMajor() ?? {}, "Calibri Light", "majorFont"), pi(e, n.getMinor() ?? {}, "Calibri", "minorFont"), e.end(o);
|
|
5843
5853
|
}(0, n, o.getFontScheme(), "fontScheme"), function(t, e, n, o, r) {
|
|
5844
5854
|
if (r?.formatSchemeXml) return void e.raw(r.formatSchemeXml);
|
|
5845
5855
|
(function(t, e, n, o, r) {
|
|
@@ -5856,13 +5866,13 @@ var dl = [
|
|
|
5856
5866
|
})(t, e, n, o, o.getFormatScheme());
|
|
5857
5867
|
}(e, n, "fmtScheme", o, r), n.end("themeElements"), function(t, e, n) {
|
|
5858
5868
|
const o = n.getObjectDefaults();
|
|
5859
|
-
if (!
|
|
5869
|
+
if (!fi.some(([t]) => o[t])) return void e.empty("objectDefaults");
|
|
5860
5870
|
const r = { getTheme: () => n };
|
|
5861
5871
|
e.start("objectDefaults");
|
|
5862
|
-
for (const [s, a] of
|
|
5872
|
+
for (const [s, a] of fi) {
|
|
5863
5873
|
const i = o[s];
|
|
5864
5874
|
if (!i) continue;
|
|
5865
|
-
e.start(a), e.start("spPr"), Yo(t, r, i), e.end("spPr"),
|
|
5875
|
+
e.start(a), e.start("spPr"), Yo(t, r, i), e.end("spPr"), mi(t, r, i.text);
|
|
5866
5876
|
const l = i.style;
|
|
5867
5877
|
if (l) {
|
|
5868
5878
|
const t = (t, o) => {
|
|
@@ -5912,7 +5922,7 @@ var dl = [
|
|
|
5912
5922
|
"xmlns:x16r2": "http://schemas.microsoft.com/office/spreadsheetml/2015/02/main",
|
|
5913
5923
|
"xmlns:xr": "http://schemas.microsoft.com/office/spreadsheetml/2014/revision"
|
|
5914
5924
|
});
|
|
5915
|
-
const { directXfs: s, denormalized: a } = e.getSharedStates().get("stylesLayout") ?? wr(r, o), i = e.getSharedStates().get(
|
|
5925
|
+
const { directXfs: s, denormalized: a } = e.getSharedStates().get("stylesLayout") ?? wr(r, o), i = e.getSharedStates().get(xr), l = function(t) {
|
|
5916
5926
|
const e = t?.slicers?.styles;
|
|
5917
5927
|
if (!e) return t;
|
|
5918
5928
|
const n = { ...t.tables?.styles };
|
|
@@ -6169,7 +6179,7 @@ var dl = [
|
|
|
6169
6179
|
let s = 0;
|
|
6170
6180
|
for (let t = 0; t < o.length; t++) {
|
|
6171
6181
|
const e = s++;
|
|
6172
|
-
n.empty("bag", { type:
|
|
6182
|
+
n.empty("bag", { type: hi[o[t].type] ?? o[t].type });
|
|
6173
6183
|
const a = s++;
|
|
6174
6184
|
n.start("bag", { type: "XFControls" }), n.start("bagId", { k: "CellControl" }), n.text(String(e)), n.end("bagId"), n.end("bag"), r.push(s++), n.start("bag", { type: "XFComplement" }), n.start("bagId", { k: "XFControls" }), n.text(String(a)), n.end("bagId"), n.end("bag");
|
|
6175
6185
|
}
|
|
@@ -6199,14 +6209,14 @@ var dl = [
|
|
|
6199
6209
|
"xmlns:dcmitype": "http://purl.org/dc/dcmitype/",
|
|
6200
6210
|
"xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance"
|
|
6201
6211
|
});
|
|
6202
|
-
const o =
|
|
6212
|
+
const o = gi(/* @__PURE__ */ new Date()), r = {
|
|
6203
6213
|
author: "SheetXL",
|
|
6204
6214
|
lastAuthor: "SheetXL",
|
|
6205
6215
|
creationDate: o,
|
|
6206
6216
|
...t.model.getProperties().toJSON(),
|
|
6207
6217
|
lastModifiedDate: o
|
|
6208
6218
|
};
|
|
6209
|
-
for (const [t, e, o] of
|
|
6219
|
+
for (const [t, e, o] of ui) {
|
|
6210
6220
|
const s = r[e];
|
|
6211
6221
|
null != s && "" !== s && (n.start(t, o ? { "xsi:type": "dcterms:W3CDTF" } : void 0), n.text(String(s)), n.end(t));
|
|
6212
6222
|
}
|
|
@@ -6227,11 +6237,11 @@ var dl = [
|
|
|
6227
6237
|
n.setValidationDisabled(!0), n.decl(), n.start("Properties", {
|
|
6228
6238
|
xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
|
|
6229
6239
|
"xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
|
|
6230
|
-
}),
|
|
6240
|
+
}), xi(e, n, "Application", "SheetXL"), xi(e, n, "DocSecurity", "0"), xi(e, n, "ScaleCrop", "false"), yi(e, n, o);
|
|
6231
6241
|
const i = a.getManager();
|
|
6232
|
-
i &&
|
|
6242
|
+
i && xi(e, n, "Manager", i);
|
|
6233
6243
|
const l = a.getCompany();
|
|
6234
|
-
l &&
|
|
6244
|
+
l && xi(e, n, "Company", l), xi(e, n, "LinksUpToDate", "false"), xi(e, n, "SharedDoc", "false"), xi(e, n, "HyperlinksChanged", "false"), xi(e, n, "AppVersion", s), n.end("Properties"), n.close();
|
|
6235
6245
|
}
|
|
6236
6246
|
}(),
|
|
6237
6247
|
new class extends Tn {
|
|
@@ -6257,8 +6267,8 @@ var dl = [
|
|
|
6257
6267
|
name: e
|
|
6258
6268
|
};
|
|
6259
6269
|
a && (i.linkTarget = a), n.start("property", i);
|
|
6260
|
-
const l =
|
|
6261
|
-
n.start(l), n.text(r === We.Type.Date ?
|
|
6270
|
+
const l = vi[r];
|
|
6271
|
+
n.start(l), n.text(r === We.Type.Date ? wi(s) : String(s)), n.end(l), n.end("property");
|
|
6262
6272
|
}
|
|
6263
6273
|
n.end("Properties"), n.close();
|
|
6264
6274
|
}
|
|
@@ -6279,11 +6289,11 @@ var dl = [
|
|
|
6279
6289
|
const m = { xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main" };
|
|
6280
6290
|
if (o && (m["xmlns:xda"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"), r && (m["xmlns:xlrd"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata"), n.decl(), n.start("metadata", m), n.start("metadataTypes", { count: d }), o && n.empty("metadataType", {
|
|
6281
6291
|
name: "XLDAPR",
|
|
6282
|
-
...
|
|
6292
|
+
...Si,
|
|
6283
6293
|
cellMeta: "1"
|
|
6284
6294
|
}), r && n.empty("metadataType", {
|
|
6285
6295
|
name: "XLRICHVALUE",
|
|
6286
|
-
...
|
|
6296
|
+
...Si
|
|
6287
6297
|
}), n.end("metadataTypes"), o) {
|
|
6288
6298
|
n.start("futureMetadata", {
|
|
6289
6299
|
name: "XLDAPR",
|
|
@@ -6499,13 +6509,13 @@ var dl = [
|
|
|
6499
6509
|
async emit(t, e) {
|
|
6500
6510
|
const n = e.getXMLWriter(), o = t.getArrays();
|
|
6501
6511
|
n.decl(), n.start("arrayData", {
|
|
6502
|
-
xmlns:
|
|
6512
|
+
xmlns: bi,
|
|
6503
6513
|
count: o.length
|
|
6504
6514
|
});
|
|
6505
6515
|
for (const t of o) n.start("a", {
|
|
6506
6516
|
r: t.rows,
|
|
6507
6517
|
c: t.columns > 1 ? t.columns : void 0
|
|
6508
|
-
}),
|
|
6518
|
+
}), Ci(n, t.items), n.end("a");
|
|
6509
6519
|
n.end("arrayData"), n.close();
|
|
6510
6520
|
}
|
|
6511
6521
|
}(),
|
|
@@ -6521,7 +6531,7 @@ var dl = [
|
|
|
6521
6531
|
async emit(t, e) {
|
|
6522
6532
|
const n = e.getXMLWriter(), { structures: o } = t.getBags();
|
|
6523
6533
|
n.decl(), n.start("spbStructures", {
|
|
6524
|
-
xmlns:
|
|
6534
|
+
xmlns: bi,
|
|
6525
6535
|
count: o.length
|
|
6526
6536
|
});
|
|
6527
6537
|
for (const t of o) {
|
|
@@ -6546,9 +6556,9 @@ var dl = [
|
|
|
6546
6556
|
}
|
|
6547
6557
|
async emit(t, e) {
|
|
6548
6558
|
const n = e.getXMLWriter(), { bags: o, arrays: r } = t.getBags();
|
|
6549
|
-
if (n.decl(), n.start("supportingPropertyBags", { xmlns:
|
|
6559
|
+
if (n.decl(), n.start("supportingPropertyBags", { xmlns: bi }), r.length > 0) {
|
|
6550
6560
|
n.start("spbArrays", { count: r.length });
|
|
6551
|
-
for (const t of r) n.start("a", { count: t.length }),
|
|
6561
|
+
for (const t of r) n.start("a", { count: t.length }), Ci(n, t), n.end("a");
|
|
6552
6562
|
n.end("spbArrays");
|
|
6553
6563
|
}
|
|
6554
6564
|
n.start("spbData", { count: o.length });
|
|
@@ -6572,7 +6582,7 @@ var dl = [
|
|
|
6572
6582
|
async emit(t, e) {
|
|
6573
6583
|
const n = e.getXMLWriter(), o = t.getRichStyles();
|
|
6574
6584
|
n.decl(), n.start("richStyleSheet", {
|
|
6575
|
-
xmlns:
|
|
6585
|
+
xmlns: bi,
|
|
6576
6586
|
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
6577
6587
|
"mc:Ignorable": "x",
|
|
6578
6588
|
"xmlns:x": "http://schemas.openxmlformats.org/spreadsheetml/2006/main"
|
|
@@ -6622,8 +6632,8 @@ var dl = [
|
|
|
6622
6632
|
const o = t.sheet, r = t.movables, s = t.jsonMovables, a = s ? s.length : 0;
|
|
6623
6633
|
let i = 0;
|
|
6624
6634
|
const l = (t) => {
|
|
6625
|
-
const e = t.content, n =
|
|
6626
|
-
if ("number" == typeof n && n > i && (i = n), "group" === e?.type) for (const e of
|
|
6635
|
+
const e = t.content, n = yt(e?.type) ? e.json?.shapeId : e?.json?.sourceId;
|
|
6636
|
+
if ("number" == typeof n && n > i && (i = n), "group" === e?.type) for (const e of Di(t)) l(e);
|
|
6627
6637
|
};
|
|
6628
6638
|
for (let t = 0; t < a; t++) l(s[t]);
|
|
6629
6639
|
const c = /* @__PURE__ */ new Map(), d = e.getSharedStates();
|
|
@@ -6639,11 +6649,11 @@ var dl = [
|
|
|
6639
6649
|
} else t.add(n);
|
|
6640
6650
|
}
|
|
6641
6651
|
}
|
|
6642
|
-
const p =
|
|
6652
|
+
const p = tl(e, o), f = () => {
|
|
6643
6653
|
const t = (m.get(o) ?? 1) + 1;
|
|
6644
6654
|
return m.set(o, t), t;
|
|
6645
6655
|
}, h = (t) => {
|
|
6646
|
-
for (const e of
|
|
6656
|
+
for (const e of Di(t)) {
|
|
6647
6657
|
const t = e.content?.json?.sourceId, n = "number" == typeof t && !p.bySource.has(t), o = n ? t : f();
|
|
6648
6658
|
p.assigned.set(e, o), n && p.bySource.set(t, o), "group" === e.content?.type && h(e);
|
|
6649
6659
|
}
|
|
@@ -6653,40 +6663,40 @@ var dl = [
|
|
|
6653
6663
|
let o = c.get(e) ?? ("number" == typeof n ? n : void 0);
|
|
6654
6664
|
void 0 === o && (o = f()), p.assigned.set(e, o), "number" != typeof n || p.bySource.has(n) || p.bySource.set(n, o), "group" === e.content?.type && h(e);
|
|
6655
6665
|
}
|
|
6656
|
-
for (let t = 0; t < a; t++) await
|
|
6666
|
+
for (let t = 0; t < a; t++) await _i(e, s[t]);
|
|
6657
6667
|
for (let t = 0; t < a; t++) {
|
|
6658
6668
|
const a = s[t], i = r[t], l = a.content?.type;
|
|
6659
|
-
if (
|
|
6669
|
+
if (yt(l)) al(n, a);
|
|
6660
6670
|
else {
|
|
6661
6671
|
if ("slicer" === l) {
|
|
6662
6672
|
const t = i.getContent();
|
|
6663
6673
|
if (!t.getTable?.() && !Ps(t)) continue;
|
|
6664
6674
|
}
|
|
6665
|
-
switch (n.start("twoCellAnchor", { editAs: a.anchorType || "twoCell" }),
|
|
6675
|
+
switch (n.start("twoCellAnchor", { editAs: a.anchorType || "twoCell" }), sl(n, "from", a.anchor.tl), sl(n, "to", a.anchor.br), l) {
|
|
6666
6676
|
case "picture":
|
|
6667
|
-
await
|
|
6677
|
+
await Ni(e, o, i, a, i.getBounds(), i.getContent().getResource());
|
|
6668
6678
|
break;
|
|
6669
6679
|
case "chart":
|
|
6670
|
-
await
|
|
6680
|
+
await Bi(e, o, i, a);
|
|
6671
6681
|
break;
|
|
6672
6682
|
case "shape":
|
|
6673
|
-
await
|
|
6683
|
+
await zi(e, o, i, a, i.getBounds());
|
|
6674
6684
|
break;
|
|
6675
6685
|
case "group":
|
|
6676
|
-
await
|
|
6686
|
+
await Vi(e, o, i, a, i.getBounds());
|
|
6677
6687
|
break;
|
|
6678
6688
|
case "smartArt":
|
|
6679
|
-
await
|
|
6689
|
+
await ji(e, o, i, a);
|
|
6680
6690
|
break;
|
|
6681
6691
|
case "slicer":
|
|
6682
|
-
await
|
|
6692
|
+
await Gi(e, o, i, a);
|
|
6683
6693
|
break;
|
|
6684
6694
|
case "graphicFrame":
|
|
6685
|
-
await
|
|
6695
|
+
await Ji(e, o, i, a);
|
|
6686
6696
|
break;
|
|
6687
|
-
default: await
|
|
6697
|
+
default: await Ki(e, o, a, i.getBounds());
|
|
6688
6698
|
}
|
|
6689
|
-
|
|
6699
|
+
Ai(n, a), n.end("twoCellAnchor");
|
|
6690
6700
|
}
|
|
6691
6701
|
}
|
|
6692
6702
|
n.end("wsDr"), n.close();
|
|
@@ -6708,7 +6718,7 @@ var dl = [
|
|
|
6708
6718
|
for (let r = 0; r < o; r++) {
|
|
6709
6719
|
const o = n[r], s = t?.get(o.resId);
|
|
6710
6720
|
if (s) try {
|
|
6711
|
-
await
|
|
6721
|
+
await il(e, o.id, s);
|
|
6712
6722
|
} catch (t) {
|
|
6713
6723
|
e.log(`Unable to write legacy drawing image '${o.id}'`, t);
|
|
6714
6724
|
}
|
|
@@ -6831,11 +6841,11 @@ var dl = [
|
|
|
6831
6841
|
for (let t = 0; t < o.length; t++) {
|
|
6832
6842
|
const { comment: e, ref: r } = o[t];
|
|
6833
6843
|
if (e.isNote()) continue;
|
|
6834
|
-
|
|
6844
|
+
cl(n, r, e.getId(), e.getAuthor()?.getId(), e.getCreationDate(), e.getContent(), null, e.isResolved(), e.toJSON()?.mentions);
|
|
6835
6845
|
const s = e.getReplies();
|
|
6836
6846
|
for (let t = 0; t < s.length; t++) {
|
|
6837
6847
|
const o = s[t];
|
|
6838
|
-
|
|
6848
|
+
cl(n, r, o.getId(), o.getAuthor()?.getId(), o.getCreationDate(), o.getContent(), e.getId(), !1, o.toJSON().mentions);
|
|
6839
6849
|
}
|
|
6840
6850
|
}
|
|
6841
6851
|
n.end("ThreadedComments"), n.close();
|
|
@@ -6861,7 +6871,7 @@ var dl = [
|
|
|
6861
6871
|
const e = o[t];
|
|
6862
6872
|
n.empty("person", {
|
|
6863
6873
|
displayName: e.getDisplayName(),
|
|
6864
|
-
id:
|
|
6874
|
+
id: dl(e.getId()),
|
|
6865
6875
|
userId: e.getUserId() ?? e.getDisplayName(),
|
|
6866
6876
|
providerId: e.getProviderId() ?? "None"
|
|
6867
6877
|
});
|
|
@@ -6935,7 +6945,7 @@ var dl = [
|
|
|
6935
6945
|
async emit(t, e) {
|
|
6936
6946
|
const n = Ps(t);
|
|
6937
6947
|
if (n) return void this.emitPivot(t, n, e);
|
|
6938
|
-
const o = t.getTable(), r = t.getColumn(), s = o ?
|
|
6948
|
+
const o = t.getTable(), r = t.getColumn(), s = o ? ys(e).get(o) : void 0;
|
|
6939
6949
|
if (!o || !r || void 0 === s) throw new Error(`The slicer '${t.getName?.() ?? ""}' names a table that was not written.`);
|
|
6940
6950
|
const a = t.toJSON(), i = t.getSortOrder(), l = t.getCrossFilter(), c = e.getXMLWriter();
|
|
6941
6951
|
c.decl(), c.start("slicerCacheDefinition", {
|
|
@@ -7090,7 +7100,7 @@ var dl = [
|
|
|
7090
7100
|
const r = o.length;
|
|
7091
7101
|
for (let e = 0; e < r; e++) {
|
|
7092
7102
|
const [r, s] = o[e], a = s.length;
|
|
7093
|
-
for (let e = 0; e < a; e++)
|
|
7103
|
+
for (let e = 0; e < a; e++) pl(t, n, r + e, s.at(e));
|
|
7094
7104
|
}
|
|
7095
7105
|
t.end("row");
|
|
7096
7106
|
}
|
|
@@ -7101,39 +7111,39 @@ var dl = [
|
|
|
7101
7111
|
}(n, t), n.end("externalBook"), n.end("externalLink"), n.close();
|
|
7102
7112
|
}
|
|
7103
7113
|
}()
|
|
7104
|
-
],
|
|
7114
|
+
], hl = "SheetXL Evaluation", ul = "xl/worksheets/sheetSheetXLEvaluation.xml", gl = "rIdSheetXLEvaluation", xl = [
|
|
7105
7115
|
"This workbook was exported from an unlicensed evaluation of SheetXL.",
|
|
7106
7116
|
"Your own sheets follow this one, unchanged.",
|
|
7107
7117
|
"To license SheetXL, visit https://www.sheetxl.com"
|
|
7108
|
-
],
|
|
7118
|
+
], yl = (t) => {
|
|
7109
7119
|
const e = [...t.matchAll(/<sheet\b[^>]*\bsheetId="(\d+)"/g)].map((t) => parseInt(t[1], 10)), n = new Set([...t.matchAll(/<sheet\b[^>]*\bname="([^"]*)"/g)].map((t) => t[1].toLowerCase()));
|
|
7110
|
-
let o =
|
|
7111
|
-
for (let t = 2; n.has(o.toLowerCase()); t++) o = `${
|
|
7112
|
-
const r = `<sheet name="${o}" sheetId="${Math.max(0, ...e) + 1}" r:id="${
|
|
7120
|
+
let o = hl;
|
|
7121
|
+
for (let t = 2; n.has(o.toLowerCase()); t++) o = `${hl} (${t})`;
|
|
7122
|
+
const r = `<sheet name="${o}" sheetId="${Math.max(0, ...e) + 1}" r:id="${gl}"/>`;
|
|
7113
7123
|
return t.replace(/<sheets>/, `<sheets>${r}`).replace(/\blocalSheetId="(\d+)"/g, (t, e) => `localSheetId="${parseInt(e, 10) + 1}"`).replace(/<workbookView\b([^>]*?)(\/?)>/, (t, e, n) => {
|
|
7114
7124
|
const o = /\bactiveTab="(\d+)"/.exec(e);
|
|
7115
7125
|
return `<workbookView${(o ? e.replace(/\bactiveTab="\d+"/, `activeTab="${parseInt(o[1], 10) + 1}"`) : `${e} activeTab="1"`).replace(/\s*\bfirstTab="\d+"/, "")}${n}>`;
|
|
7116
7126
|
});
|
|
7117
|
-
},
|
|
7127
|
+
}, vl = async (t) => {
|
|
7118
7128
|
const e = new un(new fn(t)), n = new hn(), o = new gn(n, { lastModDate: new Date(1899, 11, 29, 19, 0, 0) });
|
|
7119
7129
|
try {
|
|
7120
7130
|
for (const t of await e.getEntries()) {
|
|
7121
7131
|
if (t.directory || !("getData" in t)) continue;
|
|
7122
7132
|
const e = t.filename;
|
|
7123
|
-
if ("xl/workbook.xml" === e) await o.add(e, new fn(new TextEncoder().encode(
|
|
7133
|
+
if ("xl/workbook.xml" === e) await o.add(e, new fn(new TextEncoder().encode(yl(await t.getData(new pn())))));
|
|
7124
7134
|
else if ("xl/_rels/workbook.xml.rels" === e) {
|
|
7125
|
-
const n = await t.getData(new pn()), r = `<Relationship Id="${
|
|
7135
|
+
const n = await t.getData(new pn()), r = `<Relationship Id="${gl}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="${ul.slice(3)}"/>`;
|
|
7126
7136
|
await o.add(e, new fn(new TextEncoder().encode(n.replace("</Relationships>", `${r}</Relationships>`))));
|
|
7127
7137
|
} else if ("[Content_Types].xml" === e) {
|
|
7128
|
-
const n = await t.getData(new pn()), r = `<Override PartName="/${
|
|
7138
|
+
const n = await t.getData(new pn()), r = `<Override PartName="/${ul}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`;
|
|
7129
7139
|
await o.add(e, new fn(new TextEncoder().encode(n.replace("</Types>", `${r}</Types>`))));
|
|
7130
7140
|
} else await o.add(e, new fn(await t.getData(new hn())));
|
|
7131
7141
|
}
|
|
7132
|
-
return await o.add(
|
|
7142
|
+
return await o.add(ul, new fn(new TextEncoder().encode(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><sheetViews><sheetView workbookViewId="0"/></sheetViews><cols><col min="1" max="1" width="80" customWidth="1"/></cols><sheetData>${xl.map((t, e) => `<row r="${e + 1}"><c r="A${e + 1}" t="inlineStr"><is><t>${t}</t></is></c></row>`).join("")}</sheetData></worksheet>`))), await o.close(), await n.getData();
|
|
7133
7143
|
} finally {
|
|
7134
7144
|
await e.close();
|
|
7135
7145
|
}
|
|
7136
|
-
},
|
|
7146
|
+
}, wl = (t) => {
|
|
7137
7147
|
const e = t.getPart("xl/_rels/workbook.xml.rels");
|
|
7138
7148
|
if (!e) return null;
|
|
7139
7149
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -7147,27 +7157,27 @@ var dl = [
|
|
|
7147
7157
|
});
|
|
7148
7158
|
}
|
|
7149
7159
|
return n;
|
|
7150
|
-
},
|
|
7160
|
+
}, Sl = (t) => {
|
|
7151
7161
|
const e = t.getPart("xl/workbook.xml");
|
|
7152
7162
|
return e ? new TextDecoder("utf-8").decode(e.data) : null;
|
|
7153
|
-
},
|
|
7163
|
+
}, bl = (t) => {
|
|
7154
7164
|
const e = [], n = /<(\/?)ext(?=[\s/>])[^>]*?(\/?)>/g;
|
|
7155
7165
|
let o = 0, r = 0;
|
|
7156
7166
|
for (let s = n.exec(t); s; s = n.exec(t)) s[1] ? (o--, 0 === o && e.push(t.slice(r, s.index + s[0].length))) : s[2] ? 0 === o && e.push(s[0]) : (0 === o && (r = s.index), o++);
|
|
7157
7167
|
return e;
|
|
7158
|
-
},
|
|
7159
|
-
const e =
|
|
7168
|
+
}, Cl = (t) => {
|
|
7169
|
+
const e = kl.get(t);
|
|
7160
7170
|
if (void 0 !== e) return e;
|
|
7161
7171
|
const n = t.getPart("xl/workbook.xml"), o = n ? new TextDecoder("utf-8").decode(n.data) : null;
|
|
7162
|
-
return
|
|
7163
|
-
},
|
|
7172
|
+
return kl.set(t, o), o;
|
|
7173
|
+
}, kl = /* @__PURE__ */ new WeakMap(), Tl = async (t, e) => {
|
|
7164
7174
|
await Le.load();
|
|
7165
7175
|
const n = new to();
|
|
7166
|
-
for (const t of
|
|
7167
|
-
const o =
|
|
7176
|
+
for (const t of fl) n.register(t);
|
|
7177
|
+
const o = Il, r = In.createUint8Array({
|
|
7168
7178
|
lastModDate: new Date(1899, 11, 29, 19, 0, 0),
|
|
7169
7179
|
level: o
|
|
7170
|
-
}), s =
|
|
7180
|
+
}), s = ye.includes(e?.format) ? E(t) : null, a = /* @__PURE__ */ new Map(), i = s ? ((t) => {
|
|
7171
7181
|
const e = t.getPart("xl/workbook.xml");
|
|
7172
7182
|
if (!e) return null;
|
|
7173
7183
|
const n = new TextDecoder("utf-8").decode(e.data.subarray(0, 4096)).match(/<fileVersion\b([^>]*)\/?>/);
|
|
@@ -7178,19 +7188,19 @@ var dl = [
|
|
|
7178
7188
|
})(s) : null;
|
|
7179
7189
|
i && (e?.macroEnabled || delete i.codeName, a.set(Os, i));
|
|
7180
7190
|
const l = s ? ((t) => {
|
|
7181
|
-
const e =
|
|
7191
|
+
const e = Cl(t)?.match(/<calcPr\b[^>]*?\bcalcId="([^"]*)"/);
|
|
7182
7192
|
return e ? e[1] : null;
|
|
7183
7193
|
})(s) : null;
|
|
7184
7194
|
null !== l && a.set("calcId", l);
|
|
7185
7195
|
const c = s ? ((t) => {
|
|
7186
|
-
const e =
|
|
7196
|
+
const e = Cl(t);
|
|
7187
7197
|
if (!e) return null;
|
|
7188
7198
|
const n = e.lastIndexOf("<extLst>");
|
|
7189
7199
|
if (-1 === n) return null;
|
|
7190
7200
|
const o = e.indexOf("</extLst>", n);
|
|
7191
7201
|
if (-1 === o || !/^<\/extLst>\s*<\/workbook>/.test(e.slice(o))) return null;
|
|
7192
|
-
const r = e.slice(n + 8, o), s =
|
|
7193
|
-
for (const t of
|
|
7202
|
+
const r = e.slice(n + 8, o), s = wl(t), a = [];
|
|
7203
|
+
for (const t of bl(r)) {
|
|
7194
7204
|
const e = /^<ext\b[^>]*?\buri="([^"]*)"/.exec(t)?.[1] ?? "", n = [];
|
|
7195
7205
|
for (const e of t.matchAll(/\sr:id="([^"]*)"/g)) {
|
|
7196
7206
|
if (n.some((t) => t.id === e[1])) continue;
|
|
@@ -7212,13 +7222,13 @@ var dl = [
|
|
|
7212
7222
|
})(s) : null;
|
|
7213
7223
|
null !== c && a.set("workbookExts", c);
|
|
7214
7224
|
const d = s ? ((t) => {
|
|
7215
|
-
const e =
|
|
7225
|
+
const e = Sl(t);
|
|
7216
7226
|
if (!e) return null;
|
|
7217
7227
|
const n = /<externalReferences\b[^>]*>([\s\S]*?)<\/externalReferences>/.exec(e);
|
|
7218
7228
|
if (!n) return null;
|
|
7219
7229
|
const o = [...n[1].matchAll(/<externalReference\b[^>]*\sr:id="([^"]*)"/g)].map((t) => t[1]);
|
|
7220
7230
|
if (0 === o.length) return null;
|
|
7221
|
-
const r =
|
|
7231
|
+
const r = wl(t);
|
|
7222
7232
|
return r ? o.map((t) => {
|
|
7223
7233
|
const e = r.get(t);
|
|
7224
7234
|
return e && !e.external ? e.target : null;
|
|
@@ -7226,7 +7236,7 @@ var dl = [
|
|
|
7226
7236
|
})(s) : null;
|
|
7227
7237
|
d && a.set(Xs, d);
|
|
7228
7238
|
const m = s ? ((t) => {
|
|
7229
|
-
const e =
|
|
7239
|
+
const e = Sl(t), n = e ? wl(t) : null;
|
|
7230
7240
|
if (!e || !n) return null;
|
|
7231
7241
|
const o = /* @__PURE__ */ new Map();
|
|
7232
7242
|
for (const t of e.matchAll(/<sheet\b([^>]*)\/?>/g)) {
|
|
@@ -7255,7 +7265,7 @@ var dl = [
|
|
|
7255
7265
|
});
|
|
7256
7266
|
f.addPart("workbook", t, "/xl/workbook.xml"), await f.waitEmit(), f.addPart("propsCore", { model: t }), f.addPart("propsApp", { model: t }), t.getProperties().getCustom().length > 0 && f.addPart("propsCustom", { model: t });
|
|
7257
7267
|
let h = await f.build();
|
|
7258
|
-
await Qe.isWatermarked() && (h = await
|
|
7268
|
+
await Qe.isWatermarked() && (h = await vl(h));
|
|
7259
7269
|
const u = e?.progress?.onWarning;
|
|
7260
7270
|
if (p.length && u) {
|
|
7261
7271
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -7265,5 +7275,5 @@ var dl = [
|
|
|
7265
7275
|
}
|
|
7266
7276
|
}
|
|
7267
7277
|
return 0 === h.byteOffset && h.byteLength === h.buffer.byteLength ? h.buffer : h.slice().buffer;
|
|
7268
|
-
},
|
|
7269
|
-
export {
|
|
7278
|
+
}, Il = 1;
|
|
7279
|
+
export { Tl as writeXLSX };
|