@sheetxl/io-xlsx 0.8.0-beta.20 → 0.8.0-beta.21
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/{D2872f7aTugYxhht.mjs → BCQs67LTVZ1xG82R.mjs} +2 -2
- package/browser/esm/{CSOuRlSN9bhykqDr.mjs → B_Jfq-O7tght6ixL.mjs} +683 -679
- package/browser/esm/{C16bEh6IrUpJONhS.mjs → BoTT_U96McOdkuId.mjs} +2 -2
- package/browser/esm/{S4Uq85YdUb6O5Pz0.mjs → CGQXv_OxqwXL3F8q.mjs} +1 -1
- package/browser/esm/{D8CQKL3Y3CMFOPqD.mjs → CNAv3IL7hhyvzLaF.mjs} +300 -296
- package/browser/esm/{DpPFQ7-tBwVyjvWr.mjs → CROAqUhKnVtkbBSm.mjs} +1 -1
- package/browser/esm/{CPK1-z95jtLOfCXG.mjs → D74i1p_CJmHw8HKb.mjs} +2 -2
- package/browser/esm/{Bw35-W8cnzxxvqQy.mjs → DPz0IeW70Nh4n8Wz.mjs} +4 -4
- package/browser/esm/{D7ogsrtXfjU5NW7r.mjs → D_5T8KKyirVCR3RO.mjs} +2 -2
- package/browser/esm/{RFSuXvJ9sgsaA2LC.mjs → cG4z0eDMlE49HJvD.mjs} +4 -4
- package/browser/esm/{PgUWs0pPSCSFYJtU.mjs → f-Z5vnvNnzj-0ujR.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{CPhiu1T7tl-leKh2.mjs → Bl5eH7YPk64NxkkI.mjs} +2 -2
- package/node/esm/{BOAucs-qLpjtUOcZ.mjs → C0q_ulF7hl9zoVQ8.mjs} +1 -1
- package/node/esm/{D2vDZOgLcv-YiWnB.mjs → CT1rO7_YWIvsG9hs.mjs} +272 -268
- package/node/esm/{C6eSWtTkyDQKbQdT.mjs → CUPNuRm5G47rulaW.mjs} +2 -2
- package/node/esm/{BSHqfcsR9hY-JB30.mjs → CoNllGglhnzJ6EJ4.mjs} +1 -1
- package/node/esm/{Qn2Bv4QG3mOLiJHh.mjs → CqhoZ8-FRZjS3p-D.mjs} +445 -441
- package/node/esm/{DGuQIj077oygCTGu.mjs → TN8KqnRPY-7Ln4Ez.mjs} +2 -2
- package/node/esm/{DFw0ibBUmPyd-wey.mjs → ZNTwnevSmMslvfiW.mjs} +4 -4
- package/node/esm/index.mjs +4 -4
- package/package.json +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
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.21
|
|
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 { $ as t, $n as e, An as o, C as r, Ct as n, Dr as i, E as a, Fr as l, Gt as c, In as u, It as h, Jn as d, Kn as p, Ln as f, Lr as g, Lt as m, Mr as b, Nn as
|
|
7
|
+
import { $ as t, $n as e, An as o, C as r, Ct as n, Dr as i, E as a, Fr as l, Gt as c, In as u, It as h, Jn as d, Kn as p, Ln as f, Lr as g, Lt as m, Mr as b, Nn as y, Nt as x, Pn as v, Qn as w, Rn as T, Rt as S, Sr as k, St as C, T as A, Tr as E, Tt as I, Ut as P, Vn as O, Wt as D, Xn as N, Yn as _, Z as $, Zn as R, _ as M, _t as V, ar as L, br as j, ct as B, dn as F, dr as H, er as W, f as z, fn as X, fr as q, ft as U, gr as G, hr as K, ht as J, in as Z, ir as Q, it as Y, jn as tt, jt as et, lt as ot, mn as st, mt as rt, n as nt, nn as it, nt as at, o as lt, or as ct, ot as ut, p as ht, pt as dt, rn as pt, rr as ft, sr as gt, t as mt, tn as bt, tr as yt, ur as xt, ut as vt, vr as wt, vt as Tt, wt as St, xt as kt, yn as Ct, yr as At } from "./C0q_ulF7hl9zoVQ8.mjs";
|
|
8
8
|
import { BufferUtils as Et, CommonUtils as It, ExpectedError as Pt, OverlappingRange as Ot, RangeAxis as Dt } from "@sheetxl/utils";
|
|
9
|
-
import { AddressUtils as Nt, BufferUtils as _t, CommonUtils as $t, CoordUtils as Rt, FormulaError as Mt, FormulaText as
|
|
9
|
+
import { AddressUtils as Nt, BufferUtils as _t, CommonUtils as $t, CoordUtils as Rt, FormulaError as Mt, FormulaText as Vt, FunctionDeclarations as Lt, ICellStyle as jt, ICondition as Bt, IConditionalFormat as Ft, ICustomProperty as Ht, IFont as Wt, IRange as zt, ITextFrame as Xt, NumberFormat as qt, OutOfBoundsError as Ut, PersonCollection as Gt, ResourceCollection as Kt, RichDataRegistry as Jt, Scalar as Zt, Sort as Qt, Theme as Yt, Tuple as te, Workbook as ee, pivotCellFormatsOf as oe } from "@sheetxl/sdk";
|
|
10
10
|
import { BlobReader as se, Uint8ArrayReader as re, Uint8ArrayWriter as ne, ZipReader as ie } from "@zip.js/zip.js";
|
|
11
11
|
var ae = {
|
|
12
12
|
ascending: "ascending",
|
|
@@ -60,7 +60,7 @@ function le(t, e) {
|
|
|
60
60
|
continue;
|
|
61
61
|
}
|
|
62
62
|
const p = s.get(String(u.tableId)), f = p ? ce(p.columns, u.columnId) : null;
|
|
63
|
-
p && f ? (o.json = he(u, o.json,
|
|
63
|
+
p && f ? (o.json = he(u, o.json, Vt.structuredReference(p.name, f.name)), l.add(c), u.cachePath && e.markAbsorbed(u.cachePath)) : (e.warn("A slicer names no table; it was not imported.", "xlsx.slicer.cacheDefinition"), d.splice(t, 1));
|
|
64
64
|
}
|
|
65
65
|
delete u.slicers;
|
|
66
66
|
}
|
|
@@ -109,21 +109,21 @@ function he(t, e, o) {
|
|
|
109
109
|
const r = t.sortOrder ? ae[t.sortOrder] : void 0;
|
|
110
110
|
return r && "ascending" !== r && (s.sortOrder = r), t.crossFilter && "showItemsWithDataAtTop" !== t.crossFilter && (s.crossFilter = t.crossFilter), t.lockedPosition && (s.lockedPosition = !0), !1 === t.customListSort && (s.disabledCustomListSort = !0), t.cacheName && (s.cacheName = t.cacheName), t.startItem && (s.startItem = t.startItem), void 0 !== t.level && (s.level = t.level), t.uid && (s.uid = t.uid), s;
|
|
111
111
|
}
|
|
112
|
-
var de = "xl/richData/rdrichvaluestructure.xml", pe = "xl/richData/rdrichvalue.xml", fe = "xl/richData/rdarray.xml", ge = "xl/richData/rdsupportingpropertybagstructure.xml", me = "xl/richData/rdsupportingpropertybag.xml", be = "xl/richData/rdRichValueTypes.xml",
|
|
112
|
+
var de = "xl/richData/rdrichvaluestructure.xml", pe = "xl/richData/rdrichvalue.xml", fe = "xl/richData/rdarray.xml", ge = "xl/richData/rdsupportingpropertybagstructure.xml", me = "xl/richData/rdsupportingpropertybag.xml", be = "xl/richData/rdRichValueTypes.xml", ye = "xl/richData/richStyles.xml", xe = (t, e) => {
|
|
113
113
|
const o = [], s = t?.childNodes, r = s?.length ?? 0;
|
|
114
114
|
for (let t = 0; t < r; t++) {
|
|
115
115
|
const r = s.item(t);
|
|
116
116
|
1 !== r.nodeType || e && r.localName !== e || o.push(r);
|
|
117
117
|
}
|
|
118
118
|
return o;
|
|
119
|
-
}, ve = (t) =>
|
|
119
|
+
}, ve = (t) => xe(t, "k").map((t) => [t.getAttribute("n") ?? "", t.getAttribute("t") || null]), we = (t) => xe(t, "v").map((t) => ({
|
|
120
120
|
t: t.getAttribute("t") || null,
|
|
121
121
|
text: t.textContent ?? ""
|
|
122
122
|
})), Te = (t) => {
|
|
123
123
|
const e = /* @__PURE__ */ new Map();
|
|
124
|
-
for (const o of
|
|
124
|
+
for (const o of xe(t, "key")) {
|
|
125
125
|
const t = /* @__PURE__ */ new Map();
|
|
126
|
-
for (const e of
|
|
126
|
+
for (const e of xe(o, "flag")) t.set(e.getAttribute("name") ?? "", e.getAttribute("value") ?? "");
|
|
127
127
|
e.set(o.getAttribute("name") ?? "", t);
|
|
128
128
|
}
|
|
129
129
|
return e;
|
|
@@ -254,7 +254,7 @@ function $e(t) {
|
|
|
254
254
|
}
|
|
255
255
|
var Re = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Me = `-${Re}.0-9·̀-ͯ‿-⁀`;
|
|
256
256
|
new RegExp(`^[${Re}]$`, "u"), new RegExp(`^[${Me}]$`, "u"), new RegExp(`^[${Re}][${Me}]*$`, "u"), new RegExp(`^[${Me}]+$`, "u");
|
|
257
|
-
var
|
|
257
|
+
var Ve = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", Le = `-${Ve}.0-9·̀-ͯ‿-⁀`, je = (new RegExp(`^[${Ve}]$`, "u"), new RegExp(`^[${Le}]$`, "u"), new RegExp(`^[${Ve}][${Le}]*$`, "u"));
|
|
258
258
|
function Be(t) {
|
|
259
259
|
return t >= 65 && t <= 90 || 95 === t || t >= 97 && t <= 122 || t >= 192 && t <= 214 || t >= 216 && t <= 246 || t >= 248 && t <= 767 || t >= 880 && t <= 893 || t >= 895 && t <= 8191 || t >= 8204 && t <= 8205 || t >= 8304 && t <= 8591 || t >= 11264 && t <= 12271 || t >= 12289 && t <= 55295 || t >= 63744 && t <= 64975 || t >= 65008 && t <= 65533 || t >= 65536 && t <= 983039;
|
|
260
260
|
}
|
|
@@ -297,7 +297,7 @@ var Fe = function(t) {
|
|
|
297
297
|
38,
|
|
298
298
|
io
|
|
299
299
|
];
|
|
300
|
-
function
|
|
300
|
+
function yo(t, e, o) {
|
|
301
301
|
switch (e) {
|
|
302
302
|
case "xml":
|
|
303
303
|
o !== Ze && t.fail(`xml prefix must be bound to ${Ze}.`);
|
|
@@ -317,7 +317,7 @@ function xo(t, e, o) {
|
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
var
|
|
320
|
+
var xo, vo = (t) => Je.test(t), wo = (t) => qe.test(t), To = {
|
|
321
321
|
xmldecl: "xmlDeclHandler",
|
|
322
322
|
text: "textHandler",
|
|
323
323
|
processinginstruction: "piHandler",
|
|
@@ -345,7 +345,7 @@ var yo, vo = (t) => Je.test(t), wo = (t) => qe.test(t), To = {
|
|
|
345
345
|
};
|
|
346
346
|
const t = this.opt.additionalNamespaces;
|
|
347
347
|
null != t && (function(t, e) {
|
|
348
|
-
for (const o of Object.keys(e))
|
|
348
|
+
for (const o of Object.keys(e)) yo(t, o, e[o]);
|
|
349
349
|
}(this, t), Object.assign(this.ns, t));
|
|
350
350
|
} else this.nameStartCheck = We, this.nameCheck = ze, this.isName = wo, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
|
|
351
351
|
this.stateTable = [
|
|
@@ -940,10 +940,10 @@ var yo, vo = (t) => Je.test(t), wo = (t) => qe.test(t), To = {
|
|
|
940
940
|
};
|
|
941
941
|
if (this.attribList.push(r), this.attributeHandler?.(r), "xmlns" === o) {
|
|
942
942
|
const t = e.trim();
|
|
943
|
-
"1.0" === this.currentXMLVersion && "" === t && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[s] = t,
|
|
943
|
+
"1.0" === this.currentXMLVersion && "" === t && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[s] = t, yo(this, s, t);
|
|
944
944
|
} else if ("xmlns" === t) {
|
|
945
945
|
const t = e.trim();
|
|
946
|
-
this.topNS[""] = t,
|
|
946
|
+
this.topNS[""] = t, yo(this, "", t);
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
pushAttribPlain(t, e) {
|
|
@@ -1291,13 +1291,13 @@ var yo, vo = (t) => Je.test(t), wo = (t) => qe.test(t), To = {
|
|
|
1291
1291
|
...o
|
|
1292
1292
|
});
|
|
1293
1293
|
let r;
|
|
1294
|
-
e.onOpenTagStart && s.on(
|
|
1294
|
+
e.onOpenTagStart && s.on(xo.Events.OpenTagStart, e.onOpenTagStart), e.onOpenTag && s.on(xo.Events.OpenTag, e.onOpenTag), e.onCloseTag && s.on(xo.Events.CloseTag, e.onCloseTag), e.onAttribute && s.on(xo.Events.Attribute, e.onAttribute), e.onText && s.on(xo.Events.Text, e.onText), e.onError && s.on(xo.Events.Error, e.onError);
|
|
1295
1295
|
const n = e.onEnd;
|
|
1296
1296
|
if (n) {
|
|
1297
1297
|
const t = () => {
|
|
1298
1298
|
r = n();
|
|
1299
1299
|
};
|
|
1300
|
-
s.on(
|
|
1300
|
+
s.on(xo.Events.End, t);
|
|
1301
1301
|
}
|
|
1302
1302
|
for (;;) {
|
|
1303
1303
|
const { value: e, done: o } = await t.read();
|
|
@@ -1306,14 +1306,14 @@ var yo, vo = (t) => Je.test(t), wo = (t) => qe.test(t), To = {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
return s.close(), r;
|
|
1308
1308
|
};
|
|
1309
|
-
})(
|
|
1309
|
+
})(xo || (xo = {}));
|
|
1310
1310
|
var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t && "0" !== t && "off" !== t && "false" !== t && null, No = (t) => {
|
|
1311
1311
|
const e = parseInt(t);
|
|
1312
1312
|
return isNaN(e) ? null : e;
|
|
1313
1313
|
}, _o = (t) => {
|
|
1314
1314
|
const e = parseFloat(t);
|
|
1315
1315
|
return isNaN(e) ? null : e;
|
|
1316
|
-
}, $o = null, Ro = (t) => t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Mo = (t) => Ro(t).replace(/"/g, """),
|
|
1316
|
+
}, $o = null, Ro = (t) => t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Mo = (t) => Ro(t).replace(/"/g, """), Vo = class {
|
|
1317
1317
|
constructor() {
|
|
1318
1318
|
this._registeredVisitors = /* @__PURE__ */ new Map();
|
|
1319
1319
|
}
|
|
@@ -1342,7 +1342,7 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1342
1342
|
if (o = e(o), null == o) return;
|
|
1343
1343
|
}
|
|
1344
1344
|
return o;
|
|
1345
|
-
},
|
|
1345
|
+
}, y = {
|
|
1346
1346
|
getSource: () => d?.source ?? null,
|
|
1347
1347
|
setSource: (t) => {
|
|
1348
1348
|
d.source = t;
|
|
@@ -1352,7 +1352,7 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1352
1352
|
},
|
|
1353
1353
|
getFrom: () => l,
|
|
1354
1354
|
getAttribute: (t, e) => b(t, e) ?? null,
|
|
1355
|
-
hasAttribute: (t) => null !==
|
|
1355
|
+
hasAttribute: (t) => null !== y.getAttribute(t),
|
|
1356
1356
|
getParent: () => {
|
|
1357
1357
|
const t = u[u.length - 2];
|
|
1358
1358
|
return t.parent ?? t.source;
|
|
@@ -1403,7 +1403,7 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1403
1403
|
c = i?.visitor ?? null, a = e, l = t;
|
|
1404
1404
|
let b = !!m && null === m.to;
|
|
1405
1405
|
if (m && !b && m.scope) {
|
|
1406
|
-
const t = m.scope(
|
|
1406
|
+
const t = m.scope(y);
|
|
1407
1407
|
null === t ? b = !0 : t && (r.push(t), i.pushedScope = !0);
|
|
1408
1408
|
}
|
|
1409
1409
|
m && (0 === n.length ? (d = h, i.destination = d, i.pushedDestination = !0, u.push(d)) : b ? (d = null, i.destination = null) : m.transparent ? i.destination = d : (d = {
|
|
@@ -1411,8 +1411,8 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1411
1411
|
source: {},
|
|
1412
1412
|
parent: null
|
|
1413
1413
|
}, i.destination = d, i.pushedDestination = !0, u.push(d))), n.push(i), p = b;
|
|
1414
|
-
const
|
|
1415
|
-
void 0 !==
|
|
1414
|
+
const x = c?.openTag?.(y);
|
|
1415
|
+
void 0 !== x && (d.parent = x), m?.raw && !b && (f = [], g = i);
|
|
1416
1416
|
},
|
|
1417
1417
|
onCloseTag: (t) => {
|
|
1418
1418
|
let e = t.name;
|
|
@@ -1423,24 +1423,24 @@ var Do = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
|
|
|
1423
1423
|
if (n[n.length - 1] !== g) return f.push(`</${t.name}>`), n.pop(), i = n[n.length - 1] ?? null, a = i?.local ?? null, void (l = i?.tag ?? null);
|
|
1424
1424
|
m = f.join(""), f = null, g = null, b = !0;
|
|
1425
1425
|
}
|
|
1426
|
-
p || c?.closeTag?.(
|
|
1427
|
-
const
|
|
1428
|
-
i = n[n.length - 1] ?? null,
|
|
1429
|
-
const v =
|
|
1430
|
-
if (v &&
|
|
1426
|
+
p || c?.closeTag?.(y), b && (m = null);
|
|
1427
|
+
const x = n.pop() ?? null;
|
|
1428
|
+
i = n[n.length - 1] ?? null, x?.pushedScope && r.pop();
|
|
1429
|
+
const v = x?.destination;
|
|
1430
|
+
if (v && x.pushedDestination) {
|
|
1431
1431
|
u.pop(), d = u[u.length - 1] ?? h;
|
|
1432
|
-
const t =
|
|
1433
|
-
t && t.to && void 0 !== v.source && (Array.isArray(t.to) ? d.source.push ? d.source.push(v.source) : o?.(`Unable to parse array for ${t.from} at ${
|
|
1432
|
+
const t = x.visitor;
|
|
1433
|
+
t && t.to && void 0 !== v.source && (Array.isArray(t.to) ? d.source.push ? d.source.push(v.source) : o?.(`Unable to parse array for ${t.from} at ${y.getPath()}`) : v.key ? d.source[v.key] = v.source : "string" == typeof t.to && (d.source[t.to] = v.source));
|
|
1434
1434
|
} else v || (d = u[u.length - 1] ?? h);
|
|
1435
1435
|
a = i?.local ?? null, l = i?.tag ?? null, c = i?.visitor ?? null, p = !i?.destination;
|
|
1436
1436
|
},
|
|
1437
1437
|
onText: (t) => {
|
|
1438
|
-
f ? f.push(Ro(t)) : c?.text?.(t,
|
|
1438
|
+
f ? f.push(Ro(t)) : c?.text?.(t, y);
|
|
1439
1439
|
},
|
|
1440
1440
|
onEnd: e
|
|
1441
1441
|
};
|
|
1442
1442
|
}
|
|
1443
|
-
},
|
|
1443
|
+
}, Lo = `IFERROR(${S}(`, jo = Lo.toUpperCase(), Bo = m.toUpperCase(), Fo = { kind: "none" }, Ho = { kind: "spilled" }, Wo = (t, e) => {
|
|
1444
1444
|
if (34 !== t.charCodeAt(e)) return null;
|
|
1445
1445
|
let o = "", s = e + 1;
|
|
1446
1446
|
for (; s < t.length;) if (34 === t.charCodeAt(s)) {
|
|
@@ -1708,13 +1708,13 @@ var is = (t) => {
|
|
|
1708
1708
|
y: D(e("rowOff") ?? "0") ?? 0
|
|
1709
1709
|
};
|
|
1710
1710
|
}, as = "formulaDialect", ls = "isKnownFunction", cs = "date1904", us = "richStrings", hs = "defaultFont", ds = (o, s, r, n, i, a, u, h) => {
|
|
1711
|
-
const d = new
|
|
1711
|
+
const d = new Vo(), p = (t) => {
|
|
1712
1712
|
const e = t.getAttribute("dxfId", No);
|
|
1713
1713
|
if (null === e) return;
|
|
1714
1714
|
return n?.get(e) || (a?.(`A color filter or sort names a format that does not exist (dxfId '${e}').`), {});
|
|
1715
1715
|
};
|
|
1716
1716
|
let f = !1;
|
|
1717
|
-
const g = h?.get("parseInlineDxf"), m = h?.get(as), b = (t) => m && t ? m.readDetached(t) : t,
|
|
1717
|
+
const g = h?.get("parseInlineDxf"), m = h?.get(as), b = (t) => m && t ? m.readDetached(t) : t, y = new te.TransposedBuilder();
|
|
1718
1718
|
let v = null, w = "topLeft";
|
|
1719
1719
|
d.registerVisitor({
|
|
1720
1720
|
from: "autoFilter",
|
|
@@ -1772,7 +1772,10 @@ var is = (t) => {
|
|
|
1772
1772
|
n && (r.condition = n), s.style && (r.style = s.style), s.scale && (r.scale = s.scale), s.stopIfTrue && (r.stopIfTrue = !0), s.pivot && "number" == typeof s.priority && (r.pivotKey = s.priority), o.v = r, o.priority = s.priority, s.x14Id && (o.x14Id = s.x14Id), delete o.rule;
|
|
1773
1773
|
}
|
|
1774
1774
|
});
|
|
1775
|
-
const T = (t) => {
|
|
1775
|
+
const T = (t, e) => {
|
|
1776
|
+
const o = e.minLength ?? 10, s = e.maxLength ?? 90;
|
|
1777
|
+
0 === o ? delete t.minLength : t.minLength = o, 100 === s ? delete t.maxLength : t.maxLength = s;
|
|
1778
|
+
}, S = (t) => {
|
|
1776
1779
|
const e = t.conditions ?? [], o = [];
|
|
1777
1780
|
for (let t = 0; t < e.length; t++) {
|
|
1778
1781
|
const s = e[t], r = {};
|
|
@@ -1785,7 +1788,7 @@ var is = (t) => {
|
|
|
1785
1788
|
to: {},
|
|
1786
1789
|
openTag: (t) => {},
|
|
1787
1790
|
closeTag: (t) => {
|
|
1788
|
-
const e = t.getSource(), o = e.colors ?? [], s =
|
|
1791
|
+
const e = t.getSource(), o = e.colors ?? [], s = S(e);
|
|
1789
1792
|
for (let t = 0; t < s.length; t++) s[t].color = o[t];
|
|
1790
1793
|
t.getParent().scale = {
|
|
1791
1794
|
type: Ft.ScaleType.ColorScale,
|
|
@@ -1801,9 +1804,10 @@ var is = (t) => {
|
|
|
1801
1804
|
closeTag: (t) => {
|
|
1802
1805
|
const e = t.getSource(), o = {
|
|
1803
1806
|
type: Ft.ScaleType.DataBar,
|
|
1804
|
-
stops:
|
|
1807
|
+
stops: S(e),
|
|
1808
|
+
gradient: !0
|
|
1805
1809
|
}, s = e.colors?.[0];
|
|
1806
|
-
s && (o.color = s),
|
|
1810
|
+
s && (o.color = s), T(o, e), void 0 !== e.showValue && (o.showValue = e.showValue), t.getParent().scale = o;
|
|
1807
1811
|
}
|
|
1808
1812
|
}), d.registerVisitor({
|
|
1809
1813
|
from: "iconSet",
|
|
@@ -1814,7 +1818,7 @@ var is = (t) => {
|
|
|
1814
1818
|
closeTag: (t) => {
|
|
1815
1819
|
const e = t.getSource(), o = {
|
|
1816
1820
|
type: Ft.ScaleType.IconSet,
|
|
1817
|
-
stops:
|
|
1821
|
+
stops: S(e)
|
|
1818
1822
|
};
|
|
1819
1823
|
void 0 !== e.iconSet && (o.iconSet = e.iconSet), void 0 !== e.reverse && (o.reverse = e.reverse), void 0 !== e.showValue && (o.showValue = e.showValue), t.getParent().scale = o;
|
|
1820
1824
|
}
|
|
@@ -1894,7 +1898,7 @@ var is = (t) => {
|
|
|
1894
1898
|
e.operator = o.operator, e.param = o.param;
|
|
1895
1899
|
}
|
|
1896
1900
|
});
|
|
1897
|
-
const
|
|
1901
|
+
const C = {
|
|
1898
1902
|
from: "filters",
|
|
1899
1903
|
to: {},
|
|
1900
1904
|
openTag: (t) => {
|
|
@@ -1902,8 +1906,8 @@ var is = (t) => {
|
|
|
1902
1906
|
return e.selector = Bt.BuiltInSelectorNames.Display, e.operator = Bt.BuiltInOperatorNames.InSet, e.param = o, t.copyToObject(o, "blank", Do), t.copyToObject(o, "calendarType", $o), o;
|
|
1903
1907
|
}
|
|
1904
1908
|
};
|
|
1905
|
-
d.registerVisitor(
|
|
1906
|
-
const
|
|
1909
|
+
d.registerVisitor(C);
|
|
1910
|
+
const A = {
|
|
1907
1911
|
from: "filter",
|
|
1908
1912
|
openTag: (t) => {
|
|
1909
1913
|
const e = t.getParent();
|
|
@@ -1911,8 +1915,8 @@ var is = (t) => {
|
|
|
1911
1915
|
o || (o = [], e.items = o), o.push(t.getAttribute("val", $o));
|
|
1912
1916
|
}
|
|
1913
1917
|
};
|
|
1914
|
-
d.registerVisitor(
|
|
1915
|
-
const
|
|
1918
|
+
d.registerVisitor(A);
|
|
1919
|
+
const E = {
|
|
1916
1920
|
from: "dateGroupItem",
|
|
1917
1921
|
to: {},
|
|
1918
1922
|
openTag: (t) => {
|
|
@@ -1921,12 +1925,12 @@ var is = (t) => {
|
|
|
1921
1925
|
o || (o = [], e.dateGroups = o), o.push(t.getSource()), t.copyTo("group", $o, "dateTimeGrouping"), t.copyTo("day", No), t.copyTo("hour", No), t.copyTo("minute", No), t.copyTo("month", No), t.copyTo("second", No), t.copyTo("year", No);
|
|
1922
1926
|
}
|
|
1923
1927
|
};
|
|
1924
|
-
d.registerVisitor(
|
|
1925
|
-
const
|
|
1926
|
-
|
|
1928
|
+
d.registerVisitor(E);
|
|
1929
|
+
const I = /* @__PURE__ */ new Map();
|
|
1930
|
+
I.set("filterColumn", {
|
|
1927
1931
|
from: "filterColumn",
|
|
1928
1932
|
transparent: !0
|
|
1929
|
-
}),
|
|
1933
|
+
}), I.set("filters", C), I.set("filter", A), I.set("dateGroupItem", E), d.registerVisitor({
|
|
1930
1934
|
from: "customFilters",
|
|
1931
1935
|
openTag: (t) => {
|
|
1932
1936
|
const e = t.getParent(), o = t.getAttribute("and"), s = "and" === o || "1" === o, r = [];
|
|
@@ -1951,7 +1955,7 @@ var is = (t) => {
|
|
|
1951
1955
|
s && (o.operator = s.operator, o.param = s.param);
|
|
1952
1956
|
}
|
|
1953
1957
|
});
|
|
1954
|
-
let
|
|
1958
|
+
let O = {}, D = null;
|
|
1955
1959
|
d.registerVisitor({
|
|
1956
1960
|
from: "sortState",
|
|
1957
1961
|
to: {},
|
|
@@ -1960,16 +1964,16 @@ var is = (t) => {
|
|
|
1960
1964
|
let o = e.v;
|
|
1961
1965
|
if (!o) return;
|
|
1962
1966
|
const s = {};
|
|
1963
|
-
|
|
1967
|
+
O = {};
|
|
1964
1968
|
const r = t.getAttribute("caseSensitive", Do);
|
|
1965
|
-
null != r && (
|
|
1969
|
+
null != r && (O.collatorOptions = r ? Qt.CaseSensitiveOptions : Qt.CaseInsensitiveOptions);
|
|
1966
1970
|
const n = t.getAttribute("sortMethod");
|
|
1967
|
-
"stroke" !== n && "pinYin" !== n || (
|
|
1968
|
-
...
|
|
1971
|
+
"stroke" !== n && "pinYin" !== n || (O.collatorOptions = {
|
|
1972
|
+
...O.collatorOptions,
|
|
1969
1973
|
collation: "stroke" === n ? "stroke" : "pinyin"
|
|
1970
1974
|
}), t.getAttribute("columnSort", Do) && (s.axis = zt.Axis.Column);
|
|
1971
1975
|
const i = t.getAttribute("ref"), a = e.r;
|
|
1972
|
-
|
|
1976
|
+
D = i && a ? Nt.fastStringToRange(i) : null, D && (s.extent = { range: x(a, D) }), o.sort = s, t.setSource(e);
|
|
1973
1977
|
}
|
|
1974
1978
|
}), d.registerVisitor({
|
|
1975
1979
|
from: "sortCondition",
|
|
@@ -1985,10 +1989,10 @@ var is = (t) => {
|
|
|
1985
1989
|
let i = 0, a = null;
|
|
1986
1990
|
if (n) {
|
|
1987
1991
|
const t = Nt.fastStringToRange(n, ms), o = t.colStart, s = e.r, r = s.colStart;
|
|
1988
|
-
i = s ? o - r : o, s &&
|
|
1992
|
+
i = s ? o - r : o, s && D && (a = et(s, D, t));
|
|
1989
1993
|
}
|
|
1990
1994
|
s.extent && (s.extent.sorts ??= []).push(a);
|
|
1991
|
-
const l = { ...
|
|
1995
|
+
const l = { ...O }, c = st(t.getAttribute("sortBy"));
|
|
1992
1996
|
c && (l.sortOn = c);
|
|
1993
1997
|
const u = p(t);
|
|
1994
1998
|
u && (l.style = u), t.copyToObject(l, "iconSet", $o), t.copyToObject(l, "customList", $o), l.reverse = t.getAttribute("descending", Do) ?? !1;
|
|
@@ -1999,7 +2003,7 @@ var is = (t) => {
|
|
|
1999
2003
|
r.push(h);
|
|
2000
2004
|
}
|
|
2001
2005
|
});
|
|
2002
|
-
const
|
|
2006
|
+
const N = (t) => {
|
|
2003
2007
|
v = t.getSource(), w = "topLeft", t.copyTo("topLeft", $o, "topLeftCell");
|
|
2004
2008
|
const e = P(t.getAttribute("defaultGridColor")), o = t.getAttribute("colorId");
|
|
2005
2009
|
null === o || e || (t.getSource().gridLineColor = "index" + parseFloat(o)), t.copyTo("showZeros", Do), t.copyTo("showFormulas", Do), t.copyTo("zoomScale", No), t.copyTo("viewMode", $o, "view");
|
|
@@ -2014,7 +2018,7 @@ var is = (t) => {
|
|
|
2014
2018
|
from: "sheetView",
|
|
2015
2019
|
to: "view",
|
|
2016
2020
|
openTag: (t) => {
|
|
2017
|
-
|
|
2021
|
+
N(t);
|
|
2018
2022
|
},
|
|
2019
2023
|
closeTag: () => {
|
|
2020
2024
|
v = null;
|
|
@@ -2029,10 +2033,10 @@ var is = (t) => {
|
|
|
2029
2033
|
from: "customSheetView",
|
|
2030
2034
|
to: [],
|
|
2031
2035
|
openTag: (t) => {
|
|
2032
|
-
|
|
2036
|
+
_ = !0, N(t);
|
|
2033
2037
|
},
|
|
2034
2038
|
closeTag: () => {
|
|
2035
|
-
|
|
2039
|
+
_ = !1, v = null;
|
|
2036
2040
|
}
|
|
2037
2041
|
}), d.registerVisitor({
|
|
2038
2042
|
from: "selection",
|
|
@@ -2097,13 +2101,13 @@ var is = (t) => {
|
|
|
2097
2101
|
s && (o.tabColor = s);
|
|
2098
2102
|
}
|
|
2099
2103
|
});
|
|
2100
|
-
let
|
|
2101
|
-
const
|
|
2104
|
+
let _ = !1;
|
|
2105
|
+
const R = () => o.pageLayout ??= {};
|
|
2102
2106
|
d.registerVisitor({
|
|
2103
2107
|
from: "pageSetUpPr",
|
|
2104
2108
|
to: null,
|
|
2105
2109
|
openTag: (t) => {
|
|
2106
|
-
!0 === t.getAttribute("fitToPage", Do) && (
|
|
2110
|
+
!0 === t.getAttribute("fitToPage", Do) && (R().fitToPage = !0), !1 === t.getAttribute("autoPageBreaks", Do) && (R().hideAutoPageBreaks = !0);
|
|
2107
2111
|
}
|
|
2108
2112
|
}), d.registerVisitor({
|
|
2109
2113
|
from: "outlinePr",
|
|
@@ -2122,7 +2126,7 @@ var is = (t) => {
|
|
|
2122
2126
|
from: "pageMargins",
|
|
2123
2127
|
to: null,
|
|
2124
2128
|
openTag: (t) => {
|
|
2125
|
-
if (
|
|
2129
|
+
if (_) return;
|
|
2126
2130
|
const e = (e, o) => t.getAttribute(e, _o) ?? o, o = {
|
|
2127
2131
|
left: e("left", .7),
|
|
2128
2132
|
right: e("right", .7),
|
|
@@ -2131,14 +2135,14 @@ var is = (t) => {
|
|
|
2131
2135
|
header: e("header", .3),
|
|
2132
2136
|
footer: e("footer", .3)
|
|
2133
2137
|
};
|
|
2134
|
-
.7 === o.left && .7 === o.right && .75 === o.top && .75 === o.bottom && .3 === o.header && .3 === o.footer || (
|
|
2138
|
+
.7 === o.left && .7 === o.right && .75 === o.top && .75 === o.bottom && .3 === o.header && .3 === o.footer || (R().margins = o);
|
|
2135
2139
|
}
|
|
2136
2140
|
}), d.registerVisitor({
|
|
2137
2141
|
from: "pageSetup",
|
|
2138
2142
|
to: null,
|
|
2139
2143
|
openTag: (t) => {
|
|
2140
|
-
if (
|
|
2141
|
-
const e =
|
|
2144
|
+
if (_) return;
|
|
2145
|
+
const e = R(), o = (e) => t.getAttribute(e, No) ?? void 0, r = (e) => t.getAttribute(e, Do), n = t.getAttribute("orientation");
|
|
2142
2146
|
"landscape" !== n && "portrait" !== n || (e.orientation = n);
|
|
2143
2147
|
for (const t of [
|
|
2144
2148
|
"paperSize",
|
|
@@ -2168,49 +2172,49 @@ var is = (t) => {
|
|
|
2168
2172
|
from: "printOptions",
|
|
2169
2173
|
to: null,
|
|
2170
2174
|
openTag: (t) => {
|
|
2171
|
-
if (
|
|
2175
|
+
if (_) return;
|
|
2172
2176
|
const e = (e) => !0 === t.getAttribute(e, Do);
|
|
2173
|
-
e("horizontalCentered") && (
|
|
2177
|
+
e("horizontalCentered") && (R().centerHorizontally = !0), e("verticalCentered") && (R().centerVertically = !0), e("gridLines") && (R().printGridlines = !0), e("headings") && (R().printHeadings = !0);
|
|
2174
2178
|
}
|
|
2175
2179
|
}), d.registerVisitor({
|
|
2176
2180
|
from: "headerFooter",
|
|
2177
2181
|
to: {},
|
|
2178
2182
|
openTag: (t) => {
|
|
2179
|
-
if (
|
|
2183
|
+
if (_) return;
|
|
2180
2184
|
const e = {}, o = (e) => t.getAttribute(e, Do);
|
|
2181
|
-
!0 === o("differentOddEven") && (e.differentOddEven = !0), !0 === o("differentFirst") && (e.differentFirst = !0), !1 === o("scaleWithDoc") && (e.ignoreSheetScale = !0), !1 === o("alignWithMargins") && (e.ignoreSheetMargins = !0), Object.keys(e).length > 0 && (
|
|
2185
|
+
!0 === o("differentOddEven") && (e.differentOddEven = !0), !0 === o("differentFirst") && (e.differentFirst = !0), !1 === o("scaleWithDoc") && (e.ignoreSheetScale = !0), !1 === o("alignWithMargins") && (e.ignoreSheetMargins = !0), Object.keys(e).length > 0 && (R().headerFooter = e);
|
|
2182
2186
|
}
|
|
2183
2187
|
});
|
|
2184
2188
|
for (const t of dt) d.registerVisitor({
|
|
2185
2189
|
from: t,
|
|
2186
2190
|
to: {},
|
|
2187
2191
|
text: (e, o) => {
|
|
2188
|
-
if (
|
|
2189
|
-
const s =
|
|
2192
|
+
if (_) return;
|
|
2193
|
+
const s = R(), r = s.headerFooter ??= {};
|
|
2190
2194
|
r[t] = (r[t] ?? "") + l(e);
|
|
2191
2195
|
}
|
|
2192
2196
|
});
|
|
2193
|
-
let
|
|
2197
|
+
let W = "rowBreaks";
|
|
2194
2198
|
for (const [t, e] of [["rowBreaks", "rowBreaks"], ["colBreaks", "columnBreaks"]]) d.registerVisitor({
|
|
2195
2199
|
from: t,
|
|
2196
2200
|
to: {},
|
|
2197
2201
|
openTag: () => {
|
|
2198
|
-
|
|
2202
|
+
W = e;
|
|
2199
2203
|
}
|
|
2200
2204
|
});
|
|
2201
2205
|
d.registerVisitor({
|
|
2202
2206
|
from: "brk",
|
|
2203
2207
|
to: null,
|
|
2204
2208
|
openTag: (t) => {
|
|
2205
|
-
if (
|
|
2209
|
+
if (_) return;
|
|
2206
2210
|
const e = t.getAttribute("id", No);
|
|
2207
2211
|
if (null == e) return;
|
|
2208
2212
|
const o = { index: e }, s = t.getAttribute("min", No);
|
|
2209
2213
|
null != s && (o.min = s);
|
|
2210
2214
|
const r = t.getAttribute("max", No);
|
|
2211
2215
|
null != r && (o.max = r), !0 !== t.getAttribute("man", Do) && (o.automatic = !0), !0 === t.getAttribute("pt", Do) && (o.pivot = !0);
|
|
2212
|
-
const n =
|
|
2213
|
-
(n[
|
|
2216
|
+
const n = R();
|
|
2217
|
+
(n[W] ??= []).push(o);
|
|
2214
2218
|
}
|
|
2215
2219
|
}), d.registerVisitor({
|
|
2216
2220
|
from: "ignoredErrors",
|
|
@@ -2250,7 +2254,7 @@ var is = (t) => {
|
|
|
2250
2254
|
});
|
|
2251
2255
|
}
|
|
2252
2256
|
});
|
|
2253
|
-
const
|
|
2257
|
+
const z = {
|
|
2254
2258
|
from: "dataValidation",
|
|
2255
2259
|
to: [],
|
|
2256
2260
|
openTag: (t) => {
|
|
@@ -2273,7 +2277,7 @@ var is = (t) => {
|
|
|
2273
2277
|
o && (t.getAttribute("allowBlank", Do) && (o.includeBlanks = !0), e.v.condition = o), delete e.rule;
|
|
2274
2278
|
}
|
|
2275
2279
|
};
|
|
2276
|
-
d.registerVisitor(
|
|
2280
|
+
d.registerVisitor(z), d.registerVisitor({
|
|
2277
2281
|
from: "formula1",
|
|
2278
2282
|
to: {},
|
|
2279
2283
|
text: (t, e) => {
|
|
@@ -2297,7 +2301,7 @@ var is = (t) => {
|
|
|
2297
2301
|
t.getSource().resId = o;
|
|
2298
2302
|
}
|
|
2299
2303
|
});
|
|
2300
|
-
const
|
|
2304
|
+
const G = {
|
|
2301
2305
|
from: "slicer",
|
|
2302
2306
|
to: {},
|
|
2303
2307
|
openTag: (t) => {
|
|
@@ -2309,8 +2313,8 @@ var is = (t) => {
|
|
|
2309
2313
|
for (const t of n) r.slicers[t] = o[t];
|
|
2310
2314
|
}
|
|
2311
2315
|
};
|
|
2312
|
-
d.registerVisitor(
|
|
2313
|
-
const
|
|
2316
|
+
d.registerVisitor(G);
|
|
2317
|
+
const Z = {
|
|
2314
2318
|
from: "timelineRef",
|
|
2315
2319
|
to: {},
|
|
2316
2320
|
openTag: (t) => {
|
|
@@ -2320,7 +2324,7 @@ var is = (t) => {
|
|
|
2320
2324
|
r.slicers ??= {};
|
|
2321
2325
|
for (const t of Object.keys(o)) r.slicers[t] = o[t];
|
|
2322
2326
|
}
|
|
2323
|
-
},
|
|
2327
|
+
}, tt = (t, e) => ({
|
|
2324
2328
|
from: t,
|
|
2325
2329
|
to: {},
|
|
2326
2330
|
openTag: (t) => {
|
|
@@ -2332,8 +2336,8 @@ var is = (t) => {
|
|
|
2332
2336
|
closeTag: (t) => {
|
|
2333
2337
|
e(String(t.getSource() ?? ""), t);
|
|
2334
2338
|
}
|
|
2335
|
-
}),
|
|
2336
|
-
|
|
2339
|
+
}), ot = /* @__PURE__ */ new Map();
|
|
2340
|
+
ot.set("dataValidations", {
|
|
2337
2341
|
from: "dataValidations",
|
|
2338
2342
|
to: "validations",
|
|
2339
2343
|
openTag: (t) => {
|
|
@@ -2343,15 +2347,15 @@ var is = (t) => {
|
|
|
2343
2347
|
closeTag: (t) => {
|
|
2344
2348
|
0 === (t.getSource()?.length ?? 0) && t.setSource(void 0);
|
|
2345
2349
|
}
|
|
2346
|
-
}),
|
|
2347
|
-
...
|
|
2350
|
+
}), ot.set("dataValidation", {
|
|
2351
|
+
...z,
|
|
2348
2352
|
closeTag: (t) => {
|
|
2349
|
-
|
|
2353
|
+
z.closeTag(t);
|
|
2350
2354
|
const e = t.getSource();
|
|
2351
2355
|
e && !e.r && (t.warn("x14 dataValidation with no xm:sqref was dropped."), t.setSource(void 0));
|
|
2352
2356
|
}
|
|
2353
2357
|
});
|
|
2354
|
-
const
|
|
2358
|
+
const nt = (t) => ({
|
|
2355
2359
|
from: t,
|
|
2356
2360
|
to: {},
|
|
2357
2361
|
openTag: (e) => {
|
|
@@ -2361,18 +2365,18 @@ var is = (t) => {
|
|
|
2361
2365
|
});
|
|
2362
2366
|
}
|
|
2363
2367
|
});
|
|
2364
|
-
|
|
2368
|
+
ot.set("formula1", nt("formula1")), ot.set("formula2", nt("formula2")), ot.set("f", tt("f", (t, e) => {
|
|
2365
2369
|
const o = e.getParent(), s = o?.rule;
|
|
2366
2370
|
s && (s[o.key] = Y(b(t), s.type));
|
|
2367
|
-
})),
|
|
2371
|
+
})), ot.set("sqref", tt("sqref", (t, e) => {
|
|
2368
2372
|
const o = e.getParent(), s = t.trim();
|
|
2369
2373
|
o && s && (o.r = s.split(/\s+/).join(","));
|
|
2370
2374
|
}));
|
|
2371
|
-
const
|
|
2372
|
-
|
|
2375
|
+
const it = /* @__PURE__ */ new Map(), lt = [], ht = /* @__PURE__ */ new Map();
|
|
2376
|
+
ht.set("conditionalFormattings", {
|
|
2373
2377
|
from: "conditionalFormattings",
|
|
2374
2378
|
transparent: !0
|
|
2375
|
-
}),
|
|
2379
|
+
}), ht.set("conditionalFormatting", {
|
|
2376
2380
|
from: "conditionalFormatting",
|
|
2377
2381
|
to: {},
|
|
2378
2382
|
openTag: (t) => {
|
|
@@ -2382,10 +2386,10 @@ var is = (t) => {
|
|
|
2382
2386
|
const e = t.getSource(), o = e?.rules ?? [];
|
|
2383
2387
|
for (let t = 0; t < o.length; t++) {
|
|
2384
2388
|
const s = o[t];
|
|
2385
|
-
s.sqref = e.sqref, s.id ?
|
|
2389
|
+
s.sqref = e.sqref, s.id ? it.set(s.id, s) : lt.push(s);
|
|
2386
2390
|
}
|
|
2387
2391
|
}
|
|
2388
|
-
}),
|
|
2392
|
+
}), ht.set("cfRule", {
|
|
2389
2393
|
from: "cfRule",
|
|
2390
2394
|
to: {},
|
|
2391
2395
|
openTag: (t) => {
|
|
@@ -2395,10 +2399,10 @@ var is = (t) => {
|
|
|
2395
2399
|
const e = t.getSource();
|
|
2396
2400
|
e && t.getParent()?.rules?.push(e);
|
|
2397
2401
|
}
|
|
2398
|
-
}),
|
|
2402
|
+
}), ht.set("sqref", tt("sqref", (t, e) => {
|
|
2399
2403
|
const o = e.getParent(), s = t.trim();
|
|
2400
2404
|
o && s && (o.sqref = s);
|
|
2401
|
-
})),
|
|
2405
|
+
})), ht.set("dataBar", {
|
|
2402
2406
|
from: "dataBar",
|
|
2403
2407
|
to: {},
|
|
2404
2408
|
openTag: (t) => {
|
|
@@ -2407,7 +2411,7 @@ var is = (t) => {
|
|
|
2407
2411
|
closeTag: (t) => {
|
|
2408
2412
|
t.getParent().dataBar = t.getSource();
|
|
2409
2413
|
}
|
|
2410
|
-
}),
|
|
2414
|
+
}), ht.set("iconSet", {
|
|
2411
2415
|
from: "iconSet",
|
|
2412
2416
|
to: {},
|
|
2413
2417
|
openTag: (t) => {
|
|
@@ -2417,26 +2421,26 @@ var is = (t) => {
|
|
|
2417
2421
|
t.getParent().iconSet = t.getSource();
|
|
2418
2422
|
}
|
|
2419
2423
|
});
|
|
2420
|
-
const
|
|
2421
|
-
|
|
2424
|
+
const pt = /* @__PURE__ */ new Map();
|
|
2425
|
+
pt.set("f", tt("f", (t, e) => {
|
|
2422
2426
|
const o = e.getParent();
|
|
2423
2427
|
if (!o) return;
|
|
2424
2428
|
const s = t.trim(), r = Number(s);
|
|
2425
2429
|
o.value = s.length > 0 && Number.isFinite(r) ? r : b(t);
|
|
2426
|
-
})),
|
|
2430
|
+
})), ht.set("cfvo", {
|
|
2427
2431
|
from: "cfvo",
|
|
2428
2432
|
to: {},
|
|
2429
|
-
scope: () =>
|
|
2433
|
+
scope: () => pt,
|
|
2430
2434
|
openTag: (t) => {
|
|
2431
2435
|
const e = t.getParent();
|
|
2432
2436
|
e.conditions || (e.conditions = []);
|
|
2433
2437
|
const o = t.getSource();
|
|
2434
2438
|
e.conditions.push(o), t.copyTo("type", $o), !1 === t.getAttribute("gte", Do) && (o.exclusive = !0);
|
|
2435
2439
|
}
|
|
2436
|
-
}),
|
|
2440
|
+
}), ht.set("f", tt("f", (t, e) => {
|
|
2437
2441
|
const o = e.getParent();
|
|
2438
2442
|
o && (o.formulas ??= []).push(b(t));
|
|
2439
|
-
})),
|
|
2443
|
+
})), ht.set("dxf", {
|
|
2440
2444
|
from: "dxf",
|
|
2441
2445
|
to: {},
|
|
2442
2446
|
raw: !0,
|
|
@@ -2448,7 +2452,7 @@ var is = (t) => {
|
|
|
2448
2452
|
o && (e.style = o);
|
|
2449
2453
|
}
|
|
2450
2454
|
});
|
|
2451
|
-
const
|
|
2455
|
+
const mt = (t) => ({
|
|
2452
2456
|
from: t,
|
|
2453
2457
|
to: {},
|
|
2454
2458
|
openTag: (o) => {
|
|
@@ -2456,7 +2460,7 @@ var is = (t) => {
|
|
|
2456
2460
|
s && (o.getParent()[t] = s);
|
|
2457
2461
|
}
|
|
2458
2462
|
});
|
|
2459
|
-
|
|
2463
|
+
ht.set("borderColor", mt("borderColor")), ht.set("negativeFillColor", mt("negativeFillColor")), ht.set("negativeBorderColor", mt("negativeBorderColor")), ht.set("axisColor", mt("axisColor")), ht.set("cfIcon", {
|
|
2460
2464
|
from: "cfIcon",
|
|
2461
2465
|
to: {},
|
|
2462
2466
|
openTag: (t) => {
|
|
@@ -2469,23 +2473,23 @@ var is = (t) => {
|
|
|
2469
2473
|
});
|
|
2470
2474
|
}
|
|
2471
2475
|
});
|
|
2472
|
-
const
|
|
2473
|
-
|
|
2476
|
+
const bt = /* @__PURE__ */ new Map();
|
|
2477
|
+
bt.set("id", tt("id", (t, e) => {
|
|
2474
2478
|
const o = e.getParent(), s = t.trim();
|
|
2475
2479
|
o && s && (o.x14Id = s);
|
|
2476
2480
|
}));
|
|
2477
|
-
const
|
|
2478
|
-
|
|
2481
|
+
const yt = /* @__PURE__ */ new Map();
|
|
2482
|
+
yt.set("slicerList", {
|
|
2479
2483
|
from: "slicerList",
|
|
2480
2484
|
transparent: !0
|
|
2481
|
-
}),
|
|
2482
|
-
const
|
|
2483
|
-
|
|
2485
|
+
}), yt.set("slicer", G);
|
|
2486
|
+
const vt = /* @__PURE__ */ new Map();
|
|
2487
|
+
vt.set("timelineRefs", {
|
|
2484
2488
|
from: "timelineRefs",
|
|
2485
2489
|
transparent: !0
|
|
2486
|
-
}),
|
|
2487
|
-
const
|
|
2488
|
-
|
|
2490
|
+
}), vt.set("timelineRef", Z);
|
|
2491
|
+
const wt = /* @__PURE__ */ new Map();
|
|
2492
|
+
wt.set("sparklineGroups", {
|
|
2489
2493
|
from: "sparklineGroups",
|
|
2490
2494
|
to: "sparklineGroups",
|
|
2491
2495
|
openTag: (t) => {
|
|
@@ -2495,7 +2499,7 @@ var is = (t) => {
|
|
|
2495
2499
|
closeTag: (t) => {
|
|
2496
2500
|
0 === (t.getSource()?.length ?? 0) && t.setSource(void 0);
|
|
2497
2501
|
}
|
|
2498
|
-
}),
|
|
2502
|
+
}), wt.set("sparklineGroup", {
|
|
2499
2503
|
from: "sparklineGroup",
|
|
2500
2504
|
to: [],
|
|
2501
2505
|
openTag: (e) => {
|
|
@@ -2514,7 +2518,7 @@ var is = (t) => {
|
|
|
2514
2518
|
o || t.warn("A sparkline group with no sparklines was dropped.", { onceKey: "xlsx.sheet.sparklineGroup.empty" }), t.setSource(o ?? void 0);
|
|
2515
2519
|
}
|
|
2516
2520
|
});
|
|
2517
|
-
for (const t of $)
|
|
2521
|
+
for (const t of $) wt.set(t, {
|
|
2518
2522
|
from: t,
|
|
2519
2523
|
to: {},
|
|
2520
2524
|
openTag: (o) => {
|
|
@@ -2522,10 +2526,10 @@ var is = (t) => {
|
|
|
2522
2526
|
s && (o.getParent().properties[t] = s);
|
|
2523
2527
|
}
|
|
2524
2528
|
});
|
|
2525
|
-
|
|
2529
|
+
wt.set("sparklines", {
|
|
2526
2530
|
from: "sparklines",
|
|
2527
2531
|
transparent: !0
|
|
2528
|
-
}),
|
|
2532
|
+
}), wt.set("sparkline", {
|
|
2529
2533
|
from: "sparkline",
|
|
2530
2534
|
to: {},
|
|
2531
2535
|
openTag: (t) => {
|
|
@@ -2541,24 +2545,24 @@ var is = (t) => {
|
|
|
2541
2545
|
data: e.data ?? ""
|
|
2542
2546
|
}) : t.warn("A sparkline with no location was dropped.", { onceKey: "xlsx.sheet.sparkline.incomplete" });
|
|
2543
2547
|
}
|
|
2544
|
-
}),
|
|
2548
|
+
}), wt.set("f", tt("f", (t, e) => {
|
|
2545
2549
|
const o = e.getParent(), s = t.trim();
|
|
2546
2550
|
o && s && (o.isSparkline ? o.data = s : o.properties.dateRange = s);
|
|
2547
|
-
})),
|
|
2551
|
+
})), wt.set("sqref", tt("sqref", (t, e) => {
|
|
2548
2552
|
const o = e.getParent();
|
|
2549
2553
|
o?.isSparkline && (o.sqref = t);
|
|
2550
2554
|
}));
|
|
2551
|
-
const
|
|
2552
|
-
[k(q),
|
|
2553
|
-
[k(ct),
|
|
2554
|
-
[k(Q),
|
|
2555
|
-
[k(
|
|
2556
|
-
[k(ft),
|
|
2557
|
-
[k(
|
|
2558
|
-
[k(H),
|
|
2559
|
-
[k(K),
|
|
2560
|
-
[k(gt),
|
|
2561
|
-
]),
|
|
2555
|
+
const St = /* @__PURE__ */ new Map([
|
|
2556
|
+
[k(q), wt],
|
|
2557
|
+
[k(ct), ot],
|
|
2558
|
+
[k(Q), ht],
|
|
2559
|
+
[k(L), ht],
|
|
2560
|
+
[k(ft), bt],
|
|
2561
|
+
[k(xt), yt],
|
|
2562
|
+
[k(H), yt],
|
|
2563
|
+
[k(K), vt],
|
|
2564
|
+
[k(gt), I]
|
|
2565
|
+
]), kt = /* @__PURE__ */ new Set();
|
|
2562
2566
|
d.registerVisitor({
|
|
2563
2567
|
from: "extLst",
|
|
2564
2568
|
transparent: !0
|
|
@@ -2566,10 +2570,10 @@ var is = (t) => {
|
|
|
2566
2570
|
from: "ext",
|
|
2567
2571
|
transparent: !0,
|
|
2568
2572
|
scope: (t) => {
|
|
2569
|
-
const e = t.getAttribute("uri"), o = k(e), s =
|
|
2573
|
+
const e = t.getAttribute("uri"), o = k(e), s = St.get(o);
|
|
2570
2574
|
if (s) return s;
|
|
2571
|
-
if (!At.has(o) && !
|
|
2572
|
-
|
|
2575
|
+
if (!At.has(o) && !kt.has(o)) {
|
|
2576
|
+
kt.add(o);
|
|
2573
2577
|
const s = j[o];
|
|
2574
2578
|
t.warn(s ? `Extension content '${s}' (${e}) is not read; it will be lost on resave.` : `Unknown extension content (uri ${e}) is not read; it will be lost on resave.`);
|
|
2575
2579
|
}
|
|
@@ -2629,20 +2633,20 @@ var is = (t) => {
|
|
|
2629
2633
|
t.setSource(s(t.getAttribute("r:id"), "legacyDrawing") ?? void 0);
|
|
2630
2634
|
}
|
|
2631
2635
|
});
|
|
2632
|
-
let
|
|
2633
|
-
const
|
|
2636
|
+
let Et = null, It = !1;
|
|
2637
|
+
const Pt = /* @__PURE__ */ new Map(), Ot = {
|
|
2634
2638
|
from: "Fallback",
|
|
2635
2639
|
to: null
|
|
2636
|
-
},
|
|
2640
|
+
}, Dt = {
|
|
2637
2641
|
from: "Choice",
|
|
2638
2642
|
transparent: !0
|
|
2639
2643
|
};
|
|
2640
|
-
|
|
2644
|
+
Pt.set("Fallback", Ot), Pt.set("Choice", Dt), Pt.set("control", {
|
|
2641
2645
|
from: "control",
|
|
2642
2646
|
transparent: !0,
|
|
2643
2647
|
openTag: (t) => {
|
|
2644
2648
|
const e = t.getAttribute("name"), o = t.getAttribute("r:id"), r = o ? s(o, "formControl") : null;
|
|
2645
|
-
if (!r) return t.warn(`The form control '${e ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (
|
|
2649
|
+
if (!r) return t.warn(`The form control '${e ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (Et = null);
|
|
2646
2650
|
const n = r.json, i = parseInt(t.getAttribute("shapeId") ?? "", 10);
|
|
2647
2651
|
isNaN(i) || (n.shapeId = i);
|
|
2648
2652
|
const a = {
|
|
@@ -2665,29 +2669,29 @@ var is = (t) => {
|
|
|
2665
2669
|
json: n
|
|
2666
2670
|
}
|
|
2667
2671
|
};
|
|
2668
|
-
e && (a.content.name = e),
|
|
2672
|
+
e && (a.content.name = e), Et = {
|
|
2669
2673
|
movable: a,
|
|
2670
2674
|
control: n
|
|
2671
2675
|
};
|
|
2672
2676
|
},
|
|
2673
2677
|
closeTag: () => {
|
|
2674
|
-
|
|
2678
|
+
Et && (o.movables || (o.movables = []), o.movables.push(Et.movable), Et = null);
|
|
2675
2679
|
}
|
|
2676
|
-
}),
|
|
2680
|
+
}), Pt.set("controlPr", {
|
|
2677
2681
|
from: "controlPr",
|
|
2678
2682
|
transparent: !0,
|
|
2679
2683
|
raw: !0,
|
|
2680
2684
|
openTag: (t) => {
|
|
2681
|
-
if (!
|
|
2685
|
+
if (!Et) return;
|
|
2682
2686
|
const e = t.getFrom().attributes ?? {}, o = {};
|
|
2683
2687
|
for (const t in e) {
|
|
2684
2688
|
const s = e[t];
|
|
2685
2689
|
o[t] = "string" == typeof s ? s : s?.value ?? "";
|
|
2686
2690
|
}
|
|
2687
|
-
M(o,
|
|
2691
|
+
M(o, Et.control);
|
|
2688
2692
|
},
|
|
2689
2693
|
closeTag: (t) => {
|
|
2690
|
-
if (!
|
|
2694
|
+
if (!Et) return;
|
|
2691
2695
|
const e = ((t) => {
|
|
2692
2696
|
const e = /<(?:[\w.-]+:)?anchor\b([^>]*)>([\s\S]*?)<\/(?:[\w.-]+:)?anchor>/.exec(t);
|
|
2693
2697
|
if (!e) return null;
|
|
@@ -2701,24 +2705,24 @@ var is = (t) => {
|
|
|
2701
2705
|
rest: (t.slice(0, e.index) + t.slice(e.index + e[0].length)).trim()
|
|
2702
2706
|
};
|
|
2703
2707
|
})(t.getRawXml() ?? "");
|
|
2704
|
-
e ? (
|
|
2708
|
+
e ? (Et.movable.anchor = e.anchor, "twoCell" !== e.anchorType && (Et.movable.anchorType = e.anchorType), e.rest && (Et.control.xml = e.rest)) : It || (It = !0, t.warn("A form control has no anchor; it is placed at the top left of the sheet."));
|
|
2705
2709
|
}
|
|
2706
2710
|
});
|
|
2707
|
-
const
|
|
2711
|
+
const _t = {
|
|
2708
2712
|
from: "controls",
|
|
2709
2713
|
transparent: !0,
|
|
2710
|
-
scope: () =>
|
|
2714
|
+
scope: () => Pt
|
|
2711
2715
|
};
|
|
2712
|
-
d.registerVisitor(
|
|
2713
|
-
const
|
|
2714
|
-
["Choice",
|
|
2715
|
-
["Fallback",
|
|
2716
|
-
["controls",
|
|
2716
|
+
d.registerVisitor(_t);
|
|
2717
|
+
const $t = /* @__PURE__ */ new Map([
|
|
2718
|
+
["Choice", Dt],
|
|
2719
|
+
["Fallback", Ot],
|
|
2720
|
+
["controls", _t]
|
|
2717
2721
|
]);
|
|
2718
2722
|
d.registerVisitor({
|
|
2719
2723
|
from: "AlternateContent",
|
|
2720
2724
|
transparent: !0,
|
|
2721
|
-
scope: () =>
|
|
2725
|
+
scope: () => $t
|
|
2722
2726
|
}), d.registerVisitor({
|
|
2723
2727
|
from: "tableParts",
|
|
2724
2728
|
to: "tables",
|
|
@@ -2735,11 +2739,11 @@ var is = (t) => {
|
|
|
2735
2739
|
o ? t.setSource(o) : t.warn("A table part is missing; the table was not imported.", { onceKey: "xlsx.sheet.table.missing" });
|
|
2736
2740
|
}
|
|
2737
2741
|
});
|
|
2738
|
-
const
|
|
2739
|
-
e.conditions?.length && (t.stops =
|
|
2740
|
-
},
|
|
2741
|
-
e.conditions?.length && (t.stops =
|
|
2742
|
-
},
|
|
2742
|
+
const Rt = (t, e) => {
|
|
2743
|
+
e.conditions?.length && (t.stops = S(e)), T(t, e), e.gradient ?? 1 ? t.gradient = !0 : delete t.gradient, e.border && e.borderColor && (t.borderColor = e.borderColor), !e.negativeBarColorSameAsPositive && e.negativeFillColor && (t.negativeFillColor = e.negativeFillColor), !(e.negativeBarBorderColorSameAsPositive ?? 1) && e.negativeBorderColor && (t.negativeBorderColor = e.negativeBorderColor), e.axisColor && (t.axisColor = e.axisColor), "middle" !== e.axisPosition && "none" !== e.axisPosition || (t.axisPosition = e.axisPosition), "leftToRight" !== e.direction && "rightToLeft" !== e.direction || (t.direction = e.direction);
|
|
2744
|
+
}, Mt = (t, e) => {
|
|
2745
|
+
e.conditions?.length && (t.stops = S(e)), e.iconSet && e.iconSet !== t.iconSet && (t.iconSet = e.iconSet), e.icons?.length && (t.icon = e.icons), void 0 !== e.reverse && (t.reverse = e.reverse), void 0 !== e.showValue && (t.showValue = e.showValue);
|
|
2746
|
+
}, Vt = (t) => {
|
|
2743
2747
|
if (!t.sqref) return null;
|
|
2744
2748
|
const e = t.sqref.split(/\s+/).join(",");
|
|
2745
2749
|
if ("iconSet" === t.type) {
|
|
@@ -2748,7 +2752,7 @@ var is = (t) => {
|
|
|
2748
2752
|
type: Ft.ScaleType.IconSet,
|
|
2749
2753
|
stops: []
|
|
2750
2754
|
};
|
|
2751
|
-
return
|
|
2755
|
+
return Mt(o, t.iconSet), {
|
|
2752
2756
|
r: e,
|
|
2753
2757
|
v: { scale: o },
|
|
2754
2758
|
priority: t.priority
|
|
@@ -2774,16 +2778,16 @@ var is = (t) => {
|
|
|
2774
2778
|
const e = o[t], s = e.x14Id;
|
|
2775
2779
|
if (!s) continue;
|
|
2776
2780
|
delete e.x14Id;
|
|
2777
|
-
const r =
|
|
2781
|
+
const r = it.get(s);
|
|
2778
2782
|
if (!r) continue;
|
|
2779
|
-
|
|
2783
|
+
it.delete(s);
|
|
2780
2784
|
const n = e.v?.scale;
|
|
2781
|
-
r.dataBar && n?.type === Ft.ScaleType.DataBar ?
|
|
2785
|
+
r.dataBar && n?.type === Ft.ScaleType.DataBar ? Rt(n, r.dataBar) : r.iconSet && n?.type === Ft.ScaleType.IconSet && Mt(n, r.iconSet);
|
|
2782
2786
|
}
|
|
2783
|
-
const s = [...
|
|
2787
|
+
const s = [...it.values(), ...lt], r = /* @__PURE__ */ new Set();
|
|
2784
2788
|
let n = 0;
|
|
2785
2789
|
for (let t = 0; t < s.length; t++) {
|
|
2786
|
-
const i =
|
|
2790
|
+
const i = Vt(s[t]);
|
|
2787
2791
|
i ? (o || (o = [], e.conditionals = o), o.push(i)) : (r.add(s[t].type ?? "unknown"), n++);
|
|
2788
2792
|
}
|
|
2789
2793
|
if (n > 0) {
|
|
@@ -2821,7 +2825,7 @@ var is = (t) => {
|
|
|
2821
2825
|
to: "protection",
|
|
2822
2826
|
openTag: (t) => {
|
|
2823
2827
|
const e = t.getSource();
|
|
2824
|
-
for (const o of
|
|
2828
|
+
for (const o of V) {
|
|
2825
2829
|
const s = t.hasAttribute(o.attribute) ? t.getAttribute(o.attribute) : null;
|
|
2826
2830
|
e[o.key] = Tt(o, s);
|
|
2827
2831
|
}
|
|
@@ -2885,30 +2889,30 @@ var is = (t) => {
|
|
|
2885
2889
|
t.warn("'OLE Objects' are not supported.");
|
|
2886
2890
|
}
|
|
2887
2891
|
});
|
|
2888
|
-
let Lt = !1,
|
|
2889
|
-
const
|
|
2892
|
+
let Lt = !1, jt = !1, Ht = 0, Wt = "", Xt = "";
|
|
2893
|
+
const qt = (t) => {
|
|
2890
2894
|
const e = t.indexOf(":");
|
|
2891
2895
|
return -1 === e ? t : t.slice(e + 1);
|
|
2892
|
-
},
|
|
2893
|
-
return
|
|
2896
|
+
}, Ut = new os();
|
|
2897
|
+
return ys(y, o, d.createEventHandler(o, i, a), a, u, {
|
|
2894
2898
|
onOpenTag: (t) => {
|
|
2895
2899
|
Lt = !0;
|
|
2896
|
-
const e =
|
|
2897
|
-
"t" === e || "v" === e ? 0 ===
|
|
2900
|
+
const e = qt(t.name);
|
|
2901
|
+
"t" === e || "v" === e ? 0 === Ht && (jt = !0) : "rPh" === e || "phoneticPr" === e ? Ht++ : 0 === Ht && Ut.onOpenTag(e, t.attributes);
|
|
2898
2902
|
},
|
|
2899
2903
|
onText: (t) => {
|
|
2900
|
-
|
|
2904
|
+
jt && (Wt += t, Ut.onText(t));
|
|
2901
2905
|
},
|
|
2902
2906
|
onCloseTag: (t) => {
|
|
2903
|
-
const e =
|
|
2904
|
-
"t" === e || "v" === e ?
|
|
2907
|
+
const e = qt(t.name);
|
|
2908
|
+
"t" === e || "v" === e ? jt = !1 : "rPh" === e || "phoneticPr" === e ? Ht > 0 && Ht-- : Ut.onCloseTag(e);
|
|
2905
2909
|
},
|
|
2906
2910
|
onEnd: () => {
|
|
2907
2911
|
if (!Lt) return;
|
|
2908
|
-
const t =
|
|
2909
|
-
Lt = !1,
|
|
2910
|
-
const e = l(
|
|
2911
|
-
return
|
|
2912
|
+
const t = Ut.take();
|
|
2913
|
+
Lt = !1, jt = !1, Ht = 0;
|
|
2914
|
+
const e = l(Wt);
|
|
2915
|
+
return Wt = "", Xt = e, t ? {
|
|
2912
2916
|
t: "r",
|
|
2913
2917
|
v: {
|
|
2914
2918
|
type: "richText",
|
|
@@ -2917,7 +2921,7 @@ var is = (t) => {
|
|
|
2917
2921
|
} : r(e);
|
|
2918
2922
|
},
|
|
2919
2923
|
onError: (t) => {}
|
|
2920
|
-
}, h, r, () => f, () =>
|
|
2924
|
+
}, h, r, () => f, () => Xt);
|
|
2921
2925
|
}, ps = class {
|
|
2922
2926
|
static {
|
|
2923
2927
|
this.Collapsed = 1;
|
|
@@ -2956,15 +2960,15 @@ var is = (t) => {
|
|
|
2956
2960
|
colEnd: 0,
|
|
2957
2961
|
rowStart: 0,
|
|
2958
2962
|
rowEnd: 0
|
|
2959
|
-
}, bs = (t) => "1" === t || "true" === t,
|
|
2963
|
+
}, bs = (t) => "1" === t || "true" === t, ys = (t, e, o, s, r, n, i, a, l, c) => {
|
|
2960
2964
|
let u = !1;
|
|
2961
2965
|
const d = [], p = i?.get(us), f = i?.get(hs), g = /* @__PURE__ */ new Map();
|
|
2962
|
-
let m = !1, b = [],
|
|
2966
|
+
let m = !1, b = [], y = !1, x = null, v = null, w = null, S = null, k = null, C = null;
|
|
2963
2967
|
const A = i?.get("richData") ?? $t.EmptyArray;
|
|
2964
2968
|
let E = null, I = !1;
|
|
2965
2969
|
const P = Nt.normalizeA1ToR1C1, O = Rt.createConflatingRanges(), D = /* @__PURE__ */ new Map(), N = [], _ = [];
|
|
2966
2970
|
let $ = !1, R = !1, M = null;
|
|
2967
|
-
const
|
|
2971
|
+
const V = (t) => {
|
|
2968
2972
|
const e = (i?.get("metadata"))?.values;
|
|
2969
2973
|
if (!e) return;
|
|
2970
2974
|
const o = parseInt(t, 10);
|
|
@@ -2972,7 +2976,7 @@ var is = (t) => {
|
|
|
2972
2976
|
const s = e[o - 1]?.get("XLRICHVALUE");
|
|
2973
2977
|
return void 0 !== s?.richValueIndex ? A[s.richValueIndex] : void 0;
|
|
2974
2978
|
};
|
|
2975
|
-
let
|
|
2979
|
+
let L = !1;
|
|
2976
2980
|
const j = Rt.createConflatingRanges();
|
|
2977
2981
|
let B, F = !1, H = -1, W = -1, z = null, X = null;
|
|
2978
2982
|
const q = (t) => ({
|
|
@@ -2987,23 +2991,23 @@ var is = (t) => {
|
|
|
2987
2991
|
});
|
|
2988
2992
|
let U = null;
|
|
2989
2993
|
const G = [];
|
|
2990
|
-
let K = null, J = -2, Z = 0, Q = "", Y = "", tt = "", et = "", ot = "", st = "", rt = "", nt = "", it = "", at = "", lt = "", ct = "", ut = "", ht = "", dt = !0, pt = null, ft = !1, gt = !1, mt = !1, bt = null,
|
|
2991
|
-
const
|
|
2994
|
+
let K = null, J = -2, Z = 0, Q = "", Y = "", tt = "", et = "", ot = "", st = "", rt = "", nt = "", it = "", at = "", lt = "", ct = "", ut = "", ht = "", dt = !0, pt = null, ft = !1, gt = !1, mt = !1, bt = null, yt = 0;
|
|
2995
|
+
const xt = (t) => {
|
|
2992
2996
|
let s = t.name;
|
|
2993
2997
|
const a = s.indexOf(":");
|
|
2994
|
-
if (-1 !== a && (s = s.slice(a + 1)),
|
|
2998
|
+
if (-1 !== a && (s = s.slice(a + 1)), yt++, yt % 196608 == 0 && r?.(yt), X) {
|
|
2995
2999
|
const e = t.attributes;
|
|
2996
3000
|
switch (s) {
|
|
2997
3001
|
case "v":
|
|
2998
3002
|
m = !0;
|
|
2999
3003
|
break;
|
|
3000
3004
|
case "f":
|
|
3001
|
-
switch (
|
|
3005
|
+
switch (y = !0, e.t ?? null) {
|
|
3002
3006
|
case null:
|
|
3003
3007
|
case "normal": break;
|
|
3004
3008
|
case "shared":
|
|
3005
3009
|
const t = e.si;
|
|
3006
|
-
v = e.ref,
|
|
3010
|
+
v = e.ref, x = t;
|
|
3007
3011
|
break;
|
|
3008
3012
|
case "array":
|
|
3009
3013
|
v = e.ref, M = v;
|
|
@@ -3034,13 +3038,13 @@ var is = (t) => {
|
|
|
3034
3038
|
}
|
|
3035
3039
|
}
|
|
3036
3040
|
const t = e.ca;
|
|
3037
|
-
void 0 !== t && (
|
|
3041
|
+
void 0 !== t && (L = "1" === t);
|
|
3038
3042
|
break;
|
|
3039
3043
|
case "is":
|
|
3040
3044
|
F = !0;
|
|
3041
3045
|
return;
|
|
3042
3046
|
}
|
|
3043
|
-
F && !
|
|
3047
|
+
F && !y && n?.onOpenTag?.(t);
|
|
3044
3048
|
return;
|
|
3045
3049
|
}
|
|
3046
3050
|
if (u) {
|
|
@@ -3067,7 +3071,7 @@ var is = (t) => {
|
|
|
3067
3071
|
})(n);
|
|
3068
3072
|
const a = e.vm;
|
|
3069
3073
|
if (void 0 !== a) {
|
|
3070
|
-
const t =
|
|
3074
|
+
const t = V(a);
|
|
3071
3075
|
if (Mt.isError(t)) {
|
|
3072
3076
|
const e = t.getCode();
|
|
3073
3077
|
z = {
|
|
@@ -3115,7 +3119,7 @@ var is = (t) => {
|
|
|
3115
3119
|
}
|
|
3116
3120
|
}, wt = (e) => {
|
|
3117
3121
|
let s = e.name;
|
|
3118
|
-
if ("sheetData" === s && (gt = !1), !
|
|
3122
|
+
if ("sheetData" === s && (gt = !1), !y || "c" !== s && "f" !== s || (x && (S = D.get(x) ?? null), S && (B = ((t) => {
|
|
3119
3123
|
if (t.length < 11 || 104 != (32 | t.charCodeAt(0))) return;
|
|
3120
3124
|
if (!/^HYPERLINK\(/i.test(t)) return;
|
|
3121
3125
|
let e = 1, o = !1, s = 10;
|
|
@@ -3126,7 +3130,7 @@ var is = (t) => {
|
|
|
3126
3130
|
if (0 !== e || t.slice(s).trim().length > 0) return;
|
|
3127
3131
|
const r = /^HYPERLINK\(\s*"((?:[^"]|"")*)"\s*[,)]/i.exec(t);
|
|
3128
3132
|
return r ? r[1].replace(/""/g, "\"") : null;
|
|
3129
|
-
})(S[2]), O.append(H, W, S),
|
|
3133
|
+
})(S[2]), O.append(H, W, S), L && j.append(H, W)), null !== M && N.push([M, $ ? R ? "error" : "dynamic" : "fixed"]), y = !1, S = null, x = null, v = null, m = !1, L = !1, M = null, $ = !1, R = !1), X) {
|
|
3130
3134
|
const o = s.indexOf(":");
|
|
3131
3135
|
if (-1 !== o && (s = s.slice(o + 1)), F) if ("is" === s || "v" === s) {
|
|
3132
3136
|
const e = n?.onEnd?.();
|
|
@@ -3196,7 +3200,7 @@ var is = (t) => {
|
|
|
3196
3200
|
if ("#VALUE!" === r) {
|
|
3197
3201
|
const t = X.attributes.vm;
|
|
3198
3202
|
if (void 0 !== t) {
|
|
3199
|
-
const e =
|
|
3203
|
+
const e = V(t);
|
|
3200
3204
|
if (Mt.isError(e)) {
|
|
3201
3205
|
z = {
|
|
3202
3206
|
t: "e",
|
|
@@ -3227,30 +3231,30 @@ var is = (t) => {
|
|
|
3227
3231
|
}
|
|
3228
3232
|
null !== z && t.pushAt(H, W, void 0 === B || "number" != typeof z && "boolean" != typeof z ? z : q(z));
|
|
3229
3233
|
}
|
|
3230
|
-
const l = null !==
|
|
3231
|
-
if (
|
|
3232
|
-
if (k ===
|
|
3234
|
+
const l = null !== x;
|
|
3235
|
+
if (x) {
|
|
3236
|
+
if (k === x) S = C;
|
|
3233
3237
|
else {
|
|
3234
|
-
if (S = D.get(
|
|
3238
|
+
if (S = D.get(x) ?? null, !S) {
|
|
3235
3239
|
const t = [];
|
|
3236
3240
|
w = P(r, H, W, t), S = [
|
|
3237
3241
|
w,
|
|
3238
3242
|
t,
|
|
3239
3243
|
r
|
|
3240
|
-
], D.set(
|
|
3244
|
+
], D.set(x, S);
|
|
3241
3245
|
}
|
|
3242
|
-
k =
|
|
3246
|
+
k = x, C = S;
|
|
3243
3247
|
}
|
|
3244
|
-
|
|
3248
|
+
x = null;
|
|
3245
3249
|
}
|
|
3246
|
-
if (
|
|
3250
|
+
if (y) {
|
|
3247
3251
|
let t = r;
|
|
3248
3252
|
const e = l ? void 0 : i?.get(ls);
|
|
3249
3253
|
if (e) {
|
|
3250
3254
|
const o = ((t) => {
|
|
3251
|
-
if (t.length <
|
|
3252
|
-
if (t.slice(0,
|
|
3253
|
-
const e = Wo(t,
|
|
3255
|
+
if (t.length < Lo.length) return Fo;
|
|
3256
|
+
if (t.slice(0, Lo.length).toUpperCase() !== jo) return Fo;
|
|
3257
|
+
const e = Wo(t, Lo.length);
|
|
3254
3258
|
if (null === e) return Fo;
|
|
3255
3259
|
if (41 !== t.charCodeAt(e.end)) return Fo;
|
|
3256
3260
|
if (44 !== t.charCodeAt(e.end + 1)) return Fo;
|
|
@@ -3261,9 +3265,9 @@ var is = (t) => {
|
|
|
3261
3265
|
formula: o
|
|
3262
3266
|
};
|
|
3263
3267
|
})(r);
|
|
3264
|
-
"none" !== o.kind && (E ??= new Xo(e), "spilled" === o.kind ? I = E.placeholder(H, W) : E.anchor(H, W, o.formula) && (t = o.formula,
|
|
3268
|
+
"none" !== o.kind && (E ??= new Xo(e), "spilled" === o.kind ? I = E.placeholder(H, W) : E.anchor(H, W, o.formula) && (t = o.formula, L ||= ((t) => zo(t).some((t) => T(t) || !0 === Lt.get(t)?.getDeclaration().getReturnType()?.isVolatile()))(t)));
|
|
3265
3269
|
}
|
|
3266
|
-
if (I)
|
|
3270
|
+
if (I) L = !1;
|
|
3267
3271
|
else {
|
|
3268
3272
|
const e = [];
|
|
3269
3273
|
w = P(t, H, W, e), S = [
|
|
@@ -3311,14 +3315,14 @@ var is = (t) => {
|
|
|
3311
3315
|
attributes: It,
|
|
3312
3316
|
isSelfClosing: !1
|
|
3313
3317
|
}, Ot = Oo.NEED_MORE, Dt = Oo.NOT_HANDLED, _t = Oo.decodeText;
|
|
3314
|
-
let
|
|
3318
|
+
let Vt = !1;
|
|
3315
3319
|
const jt = (t, e, o, s) => {
|
|
3316
3320
|
for (;;) {
|
|
3317
3321
|
let r = 0;
|
|
3318
3322
|
for (; e < o && (32 === (r = t.charCodeAt(e)) || 9 === r || 10 === r || 13 === r);) e++;
|
|
3319
3323
|
if (e >= o) return Ot;
|
|
3320
|
-
if (62 === r) return
|
|
3321
|
-
if (47 === r) return e + 1 >= o ? Ot : 62 !== t.charCodeAt(e + 1) ? Dt : (
|
|
3324
|
+
if (62 === r) return Vt = !1, e + 1;
|
|
3325
|
+
if (47 === r) return e + 1 >= o ? Ot : 62 !== t.charCodeAt(e + 1) ? Dt : (Vt = !0, e + 2);
|
|
3322
3326
|
const n = e;
|
|
3323
3327
|
for (; e < o && 61 !== (r = t.charCodeAt(e));) {
|
|
3324
3328
|
if (62 === r || 47 === r || 32 === r || 9 === r || 10 === r || 13 === r) return Dt;
|
|
@@ -3457,7 +3461,7 @@ var is = (t) => {
|
|
|
3457
3461
|
const c = t.build();
|
|
3458
3462
|
c && (e.data = c.tuples), o?.onEnd?.();
|
|
3459
3463
|
},
|
|
3460
|
-
onOpenTag:
|
|
3464
|
+
onOpenTag: xt,
|
|
3461
3465
|
onCloseTag: wt,
|
|
3462
3466
|
onText: Tt,
|
|
3463
3467
|
elementScanners: [{
|
|
@@ -3470,7 +3474,7 @@ var is = (t) => {
|
|
|
3470
3474
|
const r = St.t;
|
|
3471
3475
|
if (void 0 === St.r || "str" === r || "inlineStr" === r) return Dt;
|
|
3472
3476
|
let n = !1, i = -1, a = -1, l = -1, c = -1, h = s;
|
|
3473
|
-
if (!
|
|
3477
|
+
if (!Vt) for (Ct.t = Ct.si = Ct.ref = Ct.ca = void 0;;) {
|
|
3474
3478
|
const e = t.indexOf("<", s);
|
|
3475
3479
|
if (-1 === e || e + 3 >= o) return Ot;
|
|
3476
3480
|
for (let o = s; o < e; o++) {
|
|
@@ -3486,7 +3490,7 @@ var is = (t) => {
|
|
|
3486
3490
|
if (102 === r && !n && -1 === l && (32 === u || 62 === u || 47 === u)) {
|
|
3487
3491
|
if (n = !0, s = jt(t, e + 2, o, 1), s < 0) return s;
|
|
3488
3492
|
if ("dataTable" === Ct.t) return Dt;
|
|
3489
|
-
if (
|
|
3493
|
+
if (Vt) continue;
|
|
3490
3494
|
const r = t.indexOf("<", s);
|
|
3491
3495
|
if (-1 === r || r + 3 >= o) return Ot;
|
|
3492
3496
|
if (!Bt(t, r, 102)) return Dt;
|
|
@@ -3502,7 +3506,7 @@ var is = (t) => {
|
|
|
3502
3506
|
}
|
|
3503
3507
|
return Dt;
|
|
3504
3508
|
}
|
|
3505
|
-
return
|
|
3509
|
+
return xt(kt), n && (xt(At), a > i && Tt(_t(t.slice(i, a))), wt(At)), -1 !== l && (xt(Et), c > l && Tt(_t(t.slice(l, c))), wt(Et)), wt(kt), h;
|
|
3506
3510
|
}
|
|
3507
3511
|
}, {
|
|
3508
3512
|
name: "row",
|
|
@@ -3511,20 +3515,20 @@ var is = (t) => {
|
|
|
3511
3515
|
if (!gt || u || null !== X) return Dt;
|
|
3512
3516
|
It.r = It.s = It.ht = It.hidden = It.collapsed = It.customHeight = It.customFormat = It.outlineLevel = void 0;
|
|
3513
3517
|
const s = jt(t, e + 4, o, 2);
|
|
3514
|
-
return s < 0 ? s :
|
|
3518
|
+
return s < 0 ? s : Vt || void 0 === It.r ? Dt : (xt(Pt), s);
|
|
3515
3519
|
}
|
|
3516
3520
|
}]
|
|
3517
3521
|
};
|
|
3518
|
-
},
|
|
3522
|
+
}, xs = /* @__PURE__ */ new Map([
|
|
3519
3523
|
["urn:schemas-microsoft-com:vml", "v"],
|
|
3520
3524
|
["urn:schemas-microsoft-com:office:office", "o"],
|
|
3521
3525
|
["urn:schemas-microsoft-com:office:excel", "x"]
|
|
3522
|
-
]), vs = [...
|
|
3526
|
+
]), vs = [...xs].map(([t, e]) => ` xmlns:${e}="${t}"`).join(""), ws = /<(\/?)([A-Za-z_][\w.-]*(?::[\w.-]+)?)((?:[^>"']|"[^"]*"|'[^']*')*?)(\/?)>/g, Ts = /(\s+)([A-Za-z_][\w.-]*(?::[\w.-]+)?)(\s*=\s*)("[^"]*"|'[^']*')/g, Ss = /\sxmlns(?::([\w.-]+))?\s*=\s*(?:"([^"]*)"|'([^']*)')/g;
|
|
3523
3527
|
function ks(t) {
|
|
3524
3528
|
if (!t || !((t) => {
|
|
3525
3529
|
let e;
|
|
3526
3530
|
for (Ss.lastIndex = 0; null !== (e = Ss.exec(t));) {
|
|
3527
|
-
const t =
|
|
3531
|
+
const t = xs.get(e[2] ?? e[3] ?? "");
|
|
3528
3532
|
if (t && t !== (e[1] ?? "")) return !0;
|
|
3529
3533
|
}
|
|
3530
3534
|
return !1;
|
|
@@ -3541,7 +3545,7 @@ function ks(t) {
|
|
|
3541
3545
|
const s = e[o].bindings.get(t);
|
|
3542
3546
|
if (void 0 !== s) return s;
|
|
3543
3547
|
}
|
|
3544
|
-
})(n, o), a = void 0 !== i ?
|
|
3548
|
+
})(n, o), a = void 0 !== i ? xs.get(i) : void 0;
|
|
3545
3549
|
return a ? `${a}:${-1 === r ? t : t.substring(r + 1)}` : null;
|
|
3546
3550
|
};
|
|
3547
3551
|
let s = !1, r = !1;
|
|
@@ -3556,14 +3560,14 @@ function ks(t) {
|
|
|
3556
3560
|
return o;
|
|
3557
3561
|
})(a);
|
|
3558
3562
|
c?.forEach((t, e) => {
|
|
3559
|
-
const o = [...
|
|
3563
|
+
const o = [...xs].find(([, t]) => t === e)?.[0];
|
|
3560
3564
|
o && o !== t && (s = !0);
|
|
3561
3565
|
});
|
|
3562
3566
|
const u = o(i, c, !1);
|
|
3563
3567
|
let h = a.replace(Ts, (t, e, s, r, n) => {
|
|
3564
3568
|
if ("xmlns" === s || s.startsWith("xmlns:")) {
|
|
3565
3569
|
const e = n.slice(1, -1);
|
|
3566
|
-
return
|
|
3570
|
+
return xs.has(e) ? "" : t;
|
|
3567
3571
|
}
|
|
3568
3572
|
const i = o(s, c, !0);
|
|
3569
3573
|
return i ? `${e}${i}${r}${n}` : t;
|
|
@@ -3750,7 +3754,7 @@ var Cs = {
|
|
|
3750
3754
|
}, Ms = (t, e, o, s) => {
|
|
3751
3755
|
let r = t;
|
|
3752
3756
|
const n = s?.numberFormat ?? e ?? 0;
|
|
3753
|
-
if (void 0 !== t.numberFormat &&
|
|
3757
|
+
if (void 0 !== t.numberFormat && Vs(t.numberFormat, n)) {
|
|
3754
3758
|
const { numberFormat: t, ...e } = r;
|
|
3755
3759
|
r = e;
|
|
3756
3760
|
}
|
|
@@ -3772,7 +3776,7 @@ var Cs = {
|
|
|
3772
3776
|
if (r === t) return t;
|
|
3773
3777
|
for (const t of Object.keys(r)) if (void 0 !== r[t] && ("named" !== t || r.named !== jt.BuiltInName.Normal)) return r;
|
|
3774
3778
|
return null;
|
|
3775
|
-
},
|
|
3779
|
+
}, Vs = (t, e) => t === e || qt.toBuiltInID(t) === qt.toBuiltInID(e), Ls = (t) => "object" == typeof t && null !== t && !Array.isArray(t), js = (t, e) => !(!Ls(t) || !Ls(e)) && ("solid" === t.patternType && "solid" === e.patternType ? t.foreground === e.foreground : _t.JSONStableStringify(t) === _t.JSONStableStringify(e)), Bs = (t, e) => {
|
|
3776
3780
|
let o = null;
|
|
3777
3781
|
const s = (e, s) => {
|
|
3778
3782
|
o ??= { ...t }, void 0 === s ? delete o[e] : o[e] = s;
|
|
@@ -3780,7 +3784,7 @@ var Cs = {
|
|
|
3780
3784
|
for (const o of Object.keys(t)) {
|
|
3781
3785
|
const r = t[o], n = e[o];
|
|
3782
3786
|
if (void 0 !== n && void 0 !== r) if ("fill" === o) js(r, n) && s(o);
|
|
3783
|
-
else if (
|
|
3787
|
+
else if (Ls(r) && Ls(n)) {
|
|
3784
3788
|
const t = Bs(r, n);
|
|
3785
3789
|
t !== r && s(o, Object.keys(t).some((e) => void 0 !== t[e]) ? t : void 0);
|
|
3786
3790
|
} else r === n && s(o);
|
|
@@ -3891,8 +3895,8 @@ var Cs = {
|
|
|
3891
3895
|
225
|
|
3892
3896
|
], Ys = /^xl\/worksheets\/[^/]+\.xml$/i, tr = (t) => "string" == typeof t ? t : (t?.runs ?? []).map((t) => t.text ?? "").join(""), er = async (t, e) => {
|
|
3893
3897
|
const { password: s, onVBA: n, profile: c, calcOnLoad: h = "auto", createWorkbookOptions: g = {}, ...m } = e ?? {};
|
|
3894
|
-
await
|
|
3895
|
-
const
|
|
3898
|
+
await Vt.load();
|
|
3899
|
+
const x = !!g.origin && "string" != typeof g.origin, T = c ? new Ce("function" == typeof c ? c : void 0) : null, S = [], k = (t, e, o) => {
|
|
3896
3900
|
S.push([
|
|
3897
3901
|
t,
|
|
3898
3902
|
e ?? "",
|
|
@@ -3900,12 +3904,12 @@ var Cs = {
|
|
|
3900
3904
|
]);
|
|
3901
3905
|
}, C = { onWarning: k }, I = e?.progress, P = I?.onProgress ? I.onProgress.bind(I) : void 0, D = t.byteLength;
|
|
3902
3906
|
let $ = 0, M = 0;
|
|
3903
|
-
const
|
|
3907
|
+
const V = P ? (t) => {
|
|
3904
3908
|
if ($ <= 0) return;
|
|
3905
3909
|
M += t;
|
|
3906
3910
|
const e = Math.min(D, Math.round(M / $ * D));
|
|
3907
3911
|
P(e, D);
|
|
3908
|
-
} : void 0,
|
|
3912
|
+
} : void 0, L = import("./ZNTwnevSmMslvfiW.mjs");
|
|
3909
3913
|
let j = null;
|
|
3910
3914
|
try {
|
|
3911
3915
|
j = new DOMParser();
|
|
@@ -3917,7 +3921,7 @@ var Cs = {
|
|
|
3917
3921
|
let F, H, X, q = null;
|
|
3918
3922
|
j || (q = import("@xmldom/xmldom"));
|
|
3919
3923
|
try {
|
|
3920
|
-
const [t, e] = await Promise.all([q,
|
|
3924
|
+
const [t, e] = await Promise.all([q, L]);
|
|
3921
3925
|
F = new e.DOMTransformer(), H = j ?? new t.DOMParser(), X = B ?? new t.XMLSerializer();
|
|
3922
3926
|
} catch (t) {
|
|
3923
3927
|
throw new Error("Unable to load XLSX parser.", { cause: t });
|
|
@@ -3992,11 +3996,11 @@ var Cs = {
|
|
|
3992
3996
|
}), o = await K.getTextStream("[Content_Types].xml");
|
|
3993
3997
|
if (!o) throw new Error("Error parsing content types: '[Content_Types].xml'");
|
|
3994
3998
|
try {
|
|
3995
|
-
await
|
|
3999
|
+
await xo.parseStream(o, t, { xmlns: !1 });
|
|
3996
4000
|
} catch (t) {
|
|
3997
4001
|
throw new Error("Error parsing content types: '[Content_Types].xml'", { cause: t });
|
|
3998
4002
|
}
|
|
3999
|
-
|
|
4003
|
+
x && await K.getBuffer("[Content_Types].xml");
|
|
4000
4004
|
}
|
|
4001
4005
|
T?.mark("content-types");
|
|
4002
4006
|
const s = e.sst, m = /* @__PURE__ */ new Set();
|
|
@@ -4013,7 +4017,7 @@ var Cs = {
|
|
|
4013
4017
|
}
|
|
4014
4018
|
}
|
|
4015
4019
|
if (0 === e.workbooks.length) throw new Pt("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
|
|
4016
|
-
const M = g?.resources ?? new Kt(),
|
|
4020
|
+
const M = g?.resources ?? new Kt(), L = M.beginPersist(), j = {}, B = /* @__PURE__ */ new Set(), X = /* @__PURE__ */ new Map();
|
|
4017
4021
|
X.set("parseInlineDxf", (t) => {
|
|
4018
4022
|
if (!t) return;
|
|
4019
4023
|
const e = H.parseFromString(`<dxf xmlns:x14="${G}" xmlns:xm="${wt}">${t}</dxf>`, "text/xml")?.documentElement;
|
|
@@ -4035,10 +4039,10 @@ var Cs = {
|
|
|
4035
4039
|
if ("External" === n.targetMode) {
|
|
4036
4040
|
if (!s) return n.target;
|
|
4037
4041
|
const t = M.add({ source: { external: n.target } });
|
|
4038
|
-
return t.addReference(j), B.add(t),
|
|
4042
|
+
return t.addReference(j), B.add(t), L.toResourceId(t);
|
|
4039
4043
|
}
|
|
4040
4044
|
const a = o.lastIndexOf("/"), l = o.substring(0, a + 1);
|
|
4041
|
-
i.startsWith("/") || (i = l + i), i =
|
|
4045
|
+
i.startsWith("/") || (i = l + i), i = yt(i);
|
|
4042
4046
|
const c = F?.getVisitorParamsState().get("dxfs");
|
|
4043
4047
|
let u = r.get(i);
|
|
4044
4048
|
if (!u) {
|
|
@@ -4049,9 +4053,9 @@ var Cs = {
|
|
|
4049
4053
|
const e = async () => {
|
|
4050
4054
|
const e = ds(t, (t, e) => "legacyDrawing" === e ? ut(t, i) : "formControl" === e ? dt(t, i) : "part" === e ? ft(t, i) : rt(t, i, "resource" === e) ?? null, Bt, c, () => {}, (t, e, o) => {
|
|
4051
4055
|
k(t, e ? `${e} (${i})` : i, o);
|
|
4052
|
-
}, void 0, X), o = await K.getTextStream(i,
|
|
4056
|
+
}, void 0, X), o = await K.getTextStream(i, V);
|
|
4053
4057
|
if (o) try {
|
|
4054
|
-
await
|
|
4058
|
+
await xo.parseStream(o, e, {
|
|
4055
4059
|
xmlns: !1,
|
|
4056
4060
|
lean: !0
|
|
4057
4061
|
});
|
|
@@ -4101,7 +4105,7 @@ var Cs = {
|
|
|
4101
4105
|
} else u = null;
|
|
4102
4106
|
} else u = s ? N(i, t, (t, e) => {
|
|
4103
4107
|
const o = M.add({ source: { buffer: t } });
|
|
4104
|
-
return o.addReference(j), B.add(o),
|
|
4108
|
+
return o.addReference(j), B.add(o), L.toResourceId(o);
|
|
4105
4109
|
}, At) : R(i, t, H, F, At);
|
|
4106
4110
|
}
|
|
4107
4111
|
return u;
|
|
@@ -4110,7 +4114,7 @@ var Cs = {
|
|
|
4110
4114
|
const o = st(e, J)?.get(t);
|
|
4111
4115
|
if (!o?.target || "External" === o.targetMode) return null;
|
|
4112
4116
|
let s = o.target;
|
|
4113
|
-
return s.startsWith("/") || (s = e.substring(0, e.lastIndexOf("/") + 1) + s),
|
|
4117
|
+
return s.startsWith("/") || (s = e.substring(0, e.lastIndexOf("/") + 1) + s), yt(s);
|
|
4114
4118
|
}, ct = (t, e, o, s) => {
|
|
4115
4119
|
const n = [], i = /* @__PURE__ */ new Map(), l = [];
|
|
4116
4120
|
o.forEach((t, o) => {
|
|
@@ -4265,7 +4269,7 @@ var Cs = {
|
|
|
4265
4269
|
const o = ft(e, a, t.type, n, i);
|
|
4266
4270
|
o && p.push(o);
|
|
4267
4271
|
}), p.length > 0 && (d.parts = p), et(a), d;
|
|
4268
|
-
}, gt = w("coreprops", e, t, H, F, C),
|
|
4272
|
+
}, gt = w("coreprops", e, t, H, F, C), xt = w("extprops", e, t, H, F, C), Tt = w("custprops", e, t, H, F, C);
|
|
4269
4273
|
Tt.forEach((t, e) => {
|
|
4270
4274
|
t?.custom && et(e);
|
|
4271
4275
|
});
|
|
@@ -4287,7 +4291,7 @@ var Cs = {
|
|
|
4287
4291
|
onWarning: k
|
|
4288
4292
|
}, _t = [], $t = /* @__PURE__ */ new Map();
|
|
4289
4293
|
if (X.set(us, $t), s) {
|
|
4290
|
-
const t = await K.getTextStream(s,
|
|
4294
|
+
const t = await K.getTextStream(s, V);
|
|
4291
4295
|
if (t) {
|
|
4292
4296
|
const e = ((t, e) => {
|
|
4293
4297
|
let o = !1, s = !1, r = 0, n = "";
|
|
@@ -4314,7 +4318,7 @@ var Cs = {
|
|
|
4314
4318
|
k(t, s);
|
|
4315
4319
|
});
|
|
4316
4320
|
try {
|
|
4317
|
-
await
|
|
4321
|
+
await xo.parseStream(t, e, { xmlns: !1 });
|
|
4318
4322
|
} catch (t) {
|
|
4319
4323
|
throw new Error(`Error parsing shared strings: '${s}'`, { cause: t });
|
|
4320
4324
|
}
|
|
@@ -4323,12 +4327,12 @@ var Cs = {
|
|
|
4323
4327
|
T?.mark("shared-strings");
|
|
4324
4328
|
let Rt = _t.length;
|
|
4325
4329
|
const Mt = /* @__PURE__ */ new Map();
|
|
4326
|
-
let
|
|
4330
|
+
let Vt = Rt;
|
|
4327
4331
|
const Bt = (t) => {
|
|
4328
4332
|
const e = Mt.get(t);
|
|
4329
4333
|
if (void 0 !== e) return e;
|
|
4330
|
-
const o =
|
|
4331
|
-
return Mt.set(t,
|
|
4334
|
+
const o = Vt;
|
|
4335
|
+
return Mt.set(t, Vt++), _t.push(t), o;
|
|
4332
4336
|
}, Ft = [];
|
|
4333
4337
|
e.slicersCache = Ft;
|
|
4334
4338
|
const Ht = K.getNames(), Wt = Ht.length;
|
|
@@ -4362,7 +4366,7 @@ var Cs = {
|
|
|
4362
4366
|
source: { buffer: t },
|
|
4363
4367
|
fetchedFrom: e
|
|
4364
4368
|
});
|
|
4365
|
-
return o.addReference(j), B.add(o),
|
|
4369
|
+
return o.addReference(j), B.add(o), L.toResourceId(o);
|
|
4366
4370
|
},
|
|
4367
4371
|
markAbsorbed: et
|
|
4368
4372
|
}, Jt = /* @__PURE__ */ new Map();
|
|
@@ -4371,29 +4375,29 @@ var Cs = {
|
|
|
4371
4375
|
const o = (o) => {
|
|
4372
4376
|
const s = t(o);
|
|
4373
4377
|
return s ? e.parseFromString(new TextDecoder().decode(s.content), "text/xml").documentElement ?? null : null;
|
|
4374
|
-
}, s =
|
|
4378
|
+
}, s = xe(o(de), "s").map((t) => ({
|
|
4375
4379
|
t: t.getAttribute("t") ?? "",
|
|
4376
4380
|
keys: ve(t)
|
|
4377
|
-
})), r =
|
|
4378
|
-
const e =
|
|
4381
|
+
})), r = xe(o(pe), "rv").map((t) => {
|
|
4382
|
+
const e = xe(t, "fb")[0];
|
|
4379
4383
|
return {
|
|
4380
4384
|
s: parseInt(t.getAttribute("s") ?? "-1", 10),
|
|
4381
|
-
values:
|
|
4385
|
+
values: xe(t, "v").map((t) => t.textContent ?? ""),
|
|
4382
4386
|
fb: e ? e.textContent ?? "" : null
|
|
4383
4387
|
};
|
|
4384
|
-
}), n =
|
|
4388
|
+
}), n = xe(o(fe), "a").map((t) => {
|
|
4385
4389
|
const e = we(t), o = parseInt(t.getAttribute("r") ?? "", 10), s = parseInt(t.getAttribute("c") ?? "", 10), r = o > 0 ? o : e.length;
|
|
4386
4390
|
return {
|
|
4387
4391
|
rows: r,
|
|
4388
4392
|
columns: s > 0 ? s : Math.max(1, Math.ceil(e.length / Math.max(1, r))),
|
|
4389
4393
|
items: e
|
|
4390
4394
|
};
|
|
4391
|
-
}), i =
|
|
4395
|
+
}), i = xe(o(ge), "s").map(ve), a = o(me), l = xe(xe(a, "spbArrays")[0], "a").map(we), c = xe(xe(a, "spbData")[0], "spb").map((t) => ({
|
|
4392
4396
|
s: parseInt(t.getAttribute("s") ?? "-1", 10),
|
|
4393
|
-
values:
|
|
4394
|
-
})), u = o(be), h = Te(
|
|
4395
|
-
for (const t of
|
|
4396
|
-
const p = o(
|
|
4397
|
+
values: xe(t, "v").map((t) => t.textContent ?? "")
|
|
4398
|
+
})), u = o(be), h = Te(xe(xe(u, "global")[0], "keyFlags")[0]), d = /* @__PURE__ */ new Map();
|
|
4399
|
+
for (const t of xe(xe(u, "types")[0], "type")) d.set(t.getAttribute("name") ?? "", Te(xe(t, "keyFlags")[0]));
|
|
4400
|
+
const p = o(ye), f = xe(xe(p, "dxfs")[0], "dxf").map((t) => xe(t, "numFmt")[0]?.getAttribute("formatCode") ?? null), g = xe(xe(p, "richProperties")[0], "rPr").map((t) => t.getAttribute("n") ?? "");
|
|
4397
4401
|
return {
|
|
4398
4402
|
structures: s,
|
|
4399
4403
|
values: r,
|
|
@@ -4403,9 +4407,9 @@ var Cs = {
|
|
|
4403
4407
|
bags: c,
|
|
4404
4408
|
globalKeyFlags: h,
|
|
4405
4409
|
typeKeyFlags: d,
|
|
4406
|
-
richStyles:
|
|
4410
|
+
richStyles: xe(xe(p, "richStyles")[0], "rSty").map((t) => {
|
|
4407
4411
|
const e = /* @__PURE__ */ new Map();
|
|
4408
|
-
for (const o of
|
|
4412
|
+
for (const o of xe(t, "rpv")) {
|
|
4409
4413
|
const t = g[parseInt(o.getAttribute("i") ?? "-1", 10)];
|
|
4410
4414
|
t && e.set(t, o.textContent ?? "");
|
|
4411
4415
|
}
|
|
@@ -4446,7 +4450,7 @@ var Cs = {
|
|
|
4446
4450
|
}, /* @__PURE__ */ new Map());
|
|
4447
4451
|
for (const t of s.keys()) o.add(t.toUpperCase());
|
|
4448
4452
|
} catch {}
|
|
4449
|
-
return (t) => o.has(t) ||
|
|
4453
|
+
return (t) => o.has(t) || Lt.has(t);
|
|
4450
4454
|
})(ne.entries().next().value?.[1]?.names, g.functions)), T?.mark("side-parts-json"), await Promise.all(Q);
|
|
4451
4455
|
{
|
|
4452
4456
|
const t = ne.entries().next().value?.[1], e = u(t?.names), o = t?.sheets ?? [];
|
|
@@ -4489,7 +4493,7 @@ var Cs = {
|
|
|
4489
4493
|
t.length > 0 && (r.custom = t);
|
|
4490
4494
|
}
|
|
4491
4495
|
return Object.keys(r).length > 0 ? r : void 0;
|
|
4492
|
-
})(gt.values().next().value?.properties,
|
|
4496
|
+
})(gt.values().next().value?.properties, xt.values().next().value?.properties, Tt.values().next().value?.custom, (t, e) => {
|
|
4493
4497
|
k(t, "docProps/custom.xml", e);
|
|
4494
4498
|
});
|
|
4495
4499
|
ae && (ie.properties = ae), ((t, e) => {
|
|
@@ -4651,7 +4655,7 @@ var Cs = {
|
|
|
4651
4655
|
ue && ue.length > 0 && (ie.people = ue);
|
|
4652
4656
|
const he = K.getEntry("xl/vbaProject.bin");
|
|
4653
4657
|
if (he) try {
|
|
4654
|
-
const { VBAProject: t } = await import("./
|
|
4658
|
+
const { VBAProject: t } = await import("./CUPNuRm5G47rulaW.mjs"), e = t.extract(he);
|
|
4655
4659
|
if (e) {
|
|
4656
4660
|
const o = /* @__PURE__ */ new Map();
|
|
4657
4661
|
for (const t of ie.sheets ?? []) {
|
|
@@ -4685,8 +4689,8 @@ var Cs = {
|
|
|
4685
4689
|
const Ee = new ee(Ae);
|
|
4686
4690
|
if (T?.mark("workbook-constructed"), B.forEach((t) => {
|
|
4687
4691
|
t.deleteReference(j);
|
|
4688
|
-
}),
|
|
4689
|
-
|
|
4692
|
+
}), L.endPersist(), x) {
|
|
4693
|
+
y(Ee);
|
|
4690
4694
|
const t = /* @__PURE__ */ new Map();
|
|
4691
4695
|
let e = 0;
|
|
4692
4696
|
for (const o of K.getNames()) {
|
|
@@ -4719,7 +4723,7 @@ var Cs = {
|
|
|
4719
4723
|
(t.length !== o.length || t.some((t, e) => t !== o[e])) && e.markStructuralChange(), o = t;
|
|
4720
4724
|
} });
|
|
4721
4725
|
Ee.addListeners({ onClose: () => {
|
|
4722
|
-
s(), r(),
|
|
4726
|
+
s(), r(), y(Ee);
|
|
4723
4727
|
} });
|
|
4724
4728
|
}
|
|
4725
4729
|
}
|