@sheetxl/io-xlsx 0.8.0-beta.5 → 0.8.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{DtBN3UOzNJjYBwJ6.cjs → 17tMBnuyu4YIxixh.cjs} +1 -1
- package/browser/cjs/BxU-OlZIQViQl7gX.cjs +1 -0
- package/browser/cjs/DHKWtqZ0vQfXrbq1.cjs +2 -0
- package/browser/cjs/DpZr07y7ifaZGvJ9.cjs +5 -0
- package/browser/cjs/{DULsYP_GcPGLVYSE.cjs → MqKQ_B5qRARrRbO4.cjs} +16 -3
- package/browser/cjs/index.cjs +1 -1
- package/browser/cjs/{DOTve1YXP86VW8ln.cjs → qb-YQ8mGwpogSP08.cjs} +1 -1
- package/browser/esm/{B9qJ5NSreEcSeTPX.mjs → 96C1ntelYWh7kQtW.mjs} +1 -1
- package/browser/esm/{B1yJJD4hEJtoWKFg.mjs → B0E-_6m23g4BDnX6.mjs} +2 -2
- package/browser/esm/{BcWQ-WWSh4k_BbiQ.mjs → B3cYXnqV2Zjaw6Jp.mjs} +4 -4
- package/browser/esm/{BIfJ7hj1nXfdThAg.mjs → BLEHoDT0SLbo8OO2.mjs} +1236 -1150
- package/browser/esm/{DZcQYS8AC3Q4KMNZ.mjs → BYENv_UE3Hv5ghGD.mjs} +599 -597
- package/browser/esm/{EvN99eSJ3aoJPumL.mjs → CGgjL7wM5WHZA6Dt.mjs} +2 -2
- package/browser/esm/{Cka8nUQmzdu2avsT.mjs → D01fs7vrCLlmdHoW.mjs} +899 -795
- package/browser/esm/{DJsvdO0gLkETZXLX.mjs → DdTgGiFy8nAZTQ0d.mjs} +2 -2
- package/browser/esm/{VMf5ikEX-Pl2qTh8.mjs → FwrsLfi1iEAQGIjj.mjs} +246 -154
- package/browser/esm/{CEbxib7xV2WuS-D3.mjs → gicSNvWtBLkvLsIw.mjs} +3 -3
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{CCD-nLdFzaQd6BuH.mjs → k-aEFzUZ8aU9FPf4.mjs} +1 -1
- package/node/esm/{CT9_4oNvQhBAW0fh.mjs → B-g20MoPHbZFapp8.mjs} +1652 -1545
- package/node/esm/{BJHtwV9ss8ol7zme.mjs → Bu9QkKpBW4G2ULAg.mjs} +177 -83
- package/node/esm/{CwK9xIdlW4XaFkip.mjs → CHl-WFsto0oTmBtB.mjs} +380 -288
- package/node/esm/{DqkQZkjIOnAGH7ah.mjs → Co5_sjvEk9d-x9gx.mjs} +576 -574
- package/node/esm/{DmlGXhQHqcwqLA05.mjs → D-l0hqYTXUIEFoTg.mjs} +2 -2
- package/node/esm/{CRjza0eYeRMSvbQf.mjs → DWF_5NYPdrlTVvHi.mjs} +1 -1
- package/node/esm/{CsrSCSuGVvpk7uBv.mjs → ZWSOYqmTKEmEOz2u.mjs} +2 -2
- package/node/esm/{C0lFi5Rstdk8y5VR.mjs → am47EU_k1uSVm7yW.mjs} +2 -2
- package/node/esm/index.mjs +4 -4
- package/package.json +3 -3
- package/types/src/reader/domVisitors/CommentVisitor.d.ts +7 -2
- package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts +4 -0
- package/types/src/reader/domVisitors/ThreadedCommentVisitor.d.ts +9 -0
- package/types/src/utils/VmlNoteShapes.d.ts +82 -22
- package/types/src/writer/emitters/CommentsEmitter.d.ts +9 -3
- package/types/src/writer/emitters/ThreadedCommentsEmitter.d.ts +7 -1
- package/browser/cjs/C8oC1tPbhgR0Dqtx.cjs +0 -2
- package/browser/cjs/CUhvQ38mNlw3YIEp.cjs +0 -5
- package/browser/cjs/sNZR19Wk-XQ2xZ9E.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
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.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { a as t, c as e, g as s, i as r, m as o, o as i, p as n, r as a, s as l, t as c } from "./
|
|
8
|
-
import { b as u,
|
|
7
|
+
import { a as t, c as e, g as s, i as r, m as o, o as i, p as n, r as a, s as l, t as c } from "./D-l0hqYTXUIEFoTg.mjs";
|
|
8
|
+
import { b as u, h, y as p } from "./CHl-WFsto0oTmBtB.mjs";
|
|
9
9
|
import { CommonUtils as d } from "@sheetxl/utils";
|
|
10
10
|
import { AddressUtils as g, FormulaError as m, IBorders as b, ICondition as f, IEffect as A, IFill as y, IFont as v, IRange as N, IStyle as F, ITextFrame as C, Sort as w, Tuple as P } from "@sheetxl/sdk";
|
|
11
11
|
var S = class {
|
|
@@ -208,7 +208,7 @@ var S = class {
|
|
|
208
208
|
const r = {};
|
|
209
209
|
return s[this.jsonKey] = r, r;
|
|
210
210
|
}
|
|
211
|
-
},
|
|
211
|
+
}, U = class {
|
|
212
212
|
visit(t, e, s) {}
|
|
213
213
|
getStroke(t, e) {
|
|
214
214
|
const s = t.evaluate("ln", e);
|
|
@@ -324,7 +324,7 @@ var S = class {
|
|
|
324
324
|
s.hasAttribute("flip") && (a.mirror = s.getAttribute("flip")), Object.keys(a).length > 0 && (o.tile = a);
|
|
325
325
|
const l = e.evaluate("path", s);
|
|
326
326
|
if (l) {
|
|
327
|
-
l.hasAttribute("path") && (o.gradientType =
|
|
327
|
+
l.hasAttribute("path") && (o.gradientType = z(l.getAttribute("path")));
|
|
328
328
|
const t = e.evaluate("fillToRect", l);
|
|
329
329
|
t && (o.focus = this.getRect(t));
|
|
330
330
|
}
|
|
@@ -415,12 +415,12 @@ var S = class {
|
|
|
415
415
|
const o = e.getAttribute("val");
|
|
416
416
|
return o ? ` ${s} ${!o || parseFloat(o) / r}` : ` ${s}`;
|
|
417
417
|
}
|
|
418
|
-
},
|
|
418
|
+
}, z = (t) => "circle" === t ? "radial" : t, X = (t) => {
|
|
419
419
|
if ("rnd" === t) return "round";
|
|
420
420
|
if ("flat" === t) return "butt";
|
|
421
421
|
if ("sq" === t) return "square";
|
|
422
422
|
throw new Error("Invalid lineCap type: " + t);
|
|
423
|
-
}, W = class extends
|
|
423
|
+
}, W = class extends U {
|
|
424
424
|
visit(t, e, s) {
|
|
425
425
|
try {
|
|
426
426
|
const r = t.evaluate("xfrm", e);
|
|
@@ -492,7 +492,7 @@ var S = class {
|
|
|
492
492
|
const i = {};
|
|
493
493
|
i.fill = o, s.strokeNegative = i;
|
|
494
494
|
}
|
|
495
|
-
}, $ = class extends
|
|
495
|
+
}, $ = class extends U {
|
|
496
496
|
constructor(t = "text") {
|
|
497
497
|
super(), this._jsonKey = t;
|
|
498
498
|
}
|
|
@@ -678,13 +678,17 @@ var S = class {
|
|
|
678
678
|
auto: "auto",
|
|
679
679
|
autoNoTable: "automaticExceptTables",
|
|
680
680
|
manual: "manual"
|
|
681
|
-
},
|
|
681
|
+
}, Z = class {
|
|
682
682
|
visit(t, e, s) {
|
|
683
683
|
if (!e) return;
|
|
684
684
|
let r = t.evaluate("*/cNvPr", e);
|
|
685
685
|
return r.item && (r = r.item(0)), r && (t.copyFromAttribute(r, "name", s), t.copyFromAttribute(r, "descr", s, "description"), t.copyFromAttribute(r, "hidden", s, "hidden", t.BOOLEAN_COPY), t.copyFromAttribute(r, "id", s)), s;
|
|
686
686
|
}
|
|
687
|
-
|
|
687
|
+
setContent(t, e) {
|
|
688
|
+
const s = t;
|
|
689
|
+
void 0 !== s.name && (e.name = s.name, delete s.name), void 0 !== s.description && (e.description = s.description, delete s.description), t.content = e;
|
|
690
|
+
}
|
|
691
|
+
}, Q = class extends Z {
|
|
688
692
|
visit(t, e, s) {
|
|
689
693
|
if (!e) return;
|
|
690
694
|
if (t.getPath().includes("Fallback") && s.content) {
|
|
@@ -708,23 +712,53 @@ var S = class {
|
|
|
708
712
|
xml: t.serializeElement(e) ?? void 0,
|
|
709
713
|
sourceId: void 0 === n || isNaN(n) ? void 0 : n
|
|
710
714
|
};
|
|
711
|
-
return s
|
|
715
|
+
return this.setContent(s, {
|
|
712
716
|
type: "sp",
|
|
713
717
|
json: a
|
|
714
|
-
}, a;
|
|
718
|
+
}), a;
|
|
715
719
|
}
|
|
716
720
|
}, tt = "richTypes", et = "richData";
|
|
717
|
-
|
|
718
|
-
const
|
|
721
|
+
var st = (t) => {
|
|
722
|
+
const e = t.getAttribute("val");
|
|
723
|
+
return "0" !== e && "false" !== e;
|
|
724
|
+
}, rt = {
|
|
725
|
+
1: "serif",
|
|
726
|
+
2: "sans-serif",
|
|
727
|
+
3: "monospace",
|
|
728
|
+
4: "cursive",
|
|
729
|
+
5: "fantasy"
|
|
730
|
+
};
|
|
731
|
+
function ot(t) {
|
|
732
|
+
const e = {}, s = t.childNodes;
|
|
719
733
|
for (let t = 0; t < s.length; t++) {
|
|
720
734
|
const r = s.item(t);
|
|
721
735
|
if (1 === r.nodeType) switch (r.localName) {
|
|
722
736
|
case "b":
|
|
723
|
-
e.
|
|
737
|
+
e.weight = st(r) ? 700 : 400;
|
|
724
738
|
break;
|
|
725
739
|
case "i":
|
|
726
|
-
e.
|
|
740
|
+
e.style = st(r) ? v.Style.Italic : v.Style.Normal;
|
|
741
|
+
break;
|
|
742
|
+
case "strike":
|
|
743
|
+
e.strike = st(r);
|
|
744
|
+
break;
|
|
745
|
+
case "outline":
|
|
746
|
+
e.outline = st(r);
|
|
747
|
+
break;
|
|
748
|
+
case "shadow":
|
|
749
|
+
e.shadow = st(r);
|
|
750
|
+
break;
|
|
751
|
+
case "extend":
|
|
752
|
+
e.extend = st(r);
|
|
753
|
+
break;
|
|
754
|
+
case "u":
|
|
755
|
+
e.underline = r.getAttribute("val") || v.UnderlineStyle.Single;
|
|
727
756
|
break;
|
|
757
|
+
case "vertAlign": {
|
|
758
|
+
const t = r.getAttribute("val");
|
|
759
|
+
"superscript" === t ? e.verticalAlign = v.VerticalAlignment.Super : "subscript" === t ? e.verticalAlign = v.VerticalAlignment.Sub : "baseline" === t && (e.verticalAlign = v.VerticalAlignment.Baseline);
|
|
760
|
+
break;
|
|
761
|
+
}
|
|
728
762
|
case "sz": {
|
|
729
763
|
const t = parseFloat(r.getAttribute("val") ?? "");
|
|
730
764
|
isNaN(t) || (e.size = t);
|
|
@@ -732,18 +766,39 @@ function st(t, e) {
|
|
|
732
766
|
}
|
|
733
767
|
case "rFont": {
|
|
734
768
|
const t = r.getAttribute("val");
|
|
735
|
-
t && (e.
|
|
769
|
+
t && (e.family = t);
|
|
770
|
+
break;
|
|
771
|
+
}
|
|
772
|
+
case "family": {
|
|
773
|
+
const t = rt[r.getAttribute("val") ?? ""];
|
|
774
|
+
t && (e.fallbacks = [t]);
|
|
775
|
+
break;
|
|
776
|
+
}
|
|
777
|
+
case "charset": {
|
|
778
|
+
const t = parseInt(r.getAttribute("val") ?? "", 10);
|
|
779
|
+
isNaN(t) || (e.charset = t);
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
782
|
+
case "scheme": {
|
|
783
|
+
const t = r.getAttribute("val");
|
|
784
|
+
t && (e.scheme = t);
|
|
736
785
|
break;
|
|
737
786
|
}
|
|
738
787
|
case "color": {
|
|
739
788
|
const t = r.getAttribute("rgb");
|
|
740
|
-
t && (
|
|
789
|
+
if (t && !r.hasAttribute("theme")) {
|
|
790
|
+
e.color = "#" + (8 === t.length ? t.substring(2) : t).toUpperCase();
|
|
791
|
+
break;
|
|
792
|
+
}
|
|
793
|
+
const s = n((t) => r.getAttribute(t));
|
|
794
|
+
s && (e.color = s);
|
|
741
795
|
break;
|
|
742
796
|
}
|
|
743
797
|
}
|
|
744
798
|
}
|
|
799
|
+
return Object.keys(e).length > 0 ? e : null;
|
|
745
800
|
}
|
|
746
|
-
var
|
|
801
|
+
var it = class {
|
|
747
802
|
visit(t, e, s) {
|
|
748
803
|
if (!e) return;
|
|
749
804
|
const r = e.childNodes, o = r.length;
|
|
@@ -758,7 +813,7 @@ var rt = class {
|
|
|
758
813
|
t.copyFromAttribute(e, "Target", r, "target"), t.copyFromAttribute(e, "Type", r, "type"), t.copyFromAttribute(e, "TargetMode", r, "targetMode");
|
|
759
814
|
s[e.getAttribute("Id")] = r;
|
|
760
815
|
}
|
|
761
|
-
},
|
|
816
|
+
}, nt = class {
|
|
762
817
|
visit(t, e, s) {
|
|
763
818
|
const r = [], o = e.childNodes, i = o.length;
|
|
764
819
|
for (let e = 0; e < i; e++) {
|
|
@@ -775,7 +830,7 @@ var rt = class {
|
|
|
775
830
|
value: e.textContent || ""
|
|
776
831
|
};
|
|
777
832
|
}
|
|
778
|
-
},
|
|
833
|
+
}, at = class {
|
|
779
834
|
visit(t, e, s) {
|
|
780
835
|
const r = [], o = e.childNodes, i = o.length;
|
|
781
836
|
for (let e = 0; e < i; e++) {
|
|
@@ -792,7 +847,7 @@ var rt = class {
|
|
|
792
847
|
value: e.textContent || ""
|
|
793
848
|
};
|
|
794
849
|
}
|
|
795
|
-
},
|
|
850
|
+
}, lt = class {
|
|
796
851
|
visit(t, e, s) {
|
|
797
852
|
return B(t, e, s, "roundedCorners", "roundedCorners"), E(t, e, s, ".//AlternateContent/Fallback/style", "styleId"), t.getVisitorParamsState().set("types", []), t.getVisitorParamsState().set("axes", /* @__PURE__ */ new Map()), s.range = null, s;
|
|
798
853
|
}
|
|
@@ -822,17 +877,17 @@ var rt = class {
|
|
|
822
877
|
for (let t = 0; t < d; t++) p[t + ""] = h[t];
|
|
823
878
|
p.length = d, t.getVisitorParamsState().delete("types"), t.getVisitorParamsState().delete("axes"), t.getVisitorParamsState().delete("series");
|
|
824
879
|
}
|
|
825
|
-
},
|
|
880
|
+
}, ct = class {
|
|
826
881
|
visit(t, e, s) {
|
|
827
882
|
let r = {};
|
|
828
883
|
return s.plotArea = r, r;
|
|
829
884
|
}
|
|
830
|
-
},
|
|
885
|
+
}, ut = W, ht = class extends G {
|
|
831
886
|
parseType(t, e, s) {
|
|
832
887
|
const r = t.getValAttrAsString("barDir", e);
|
|
833
888
|
r && (s.type = "col" === r ? "column" : "bar");
|
|
834
889
|
}
|
|
835
|
-
},
|
|
890
|
+
}, pt = G, dt = class {
|
|
836
891
|
constructor(t) {
|
|
837
892
|
this.jsonKey = t;
|
|
838
893
|
}
|
|
@@ -848,7 +903,7 @@ var rt = class {
|
|
|
848
903
|
const r = t.evaluate("numFmt", e);
|
|
849
904
|
r && (s.formatCode = r.getAttribute("formatCode"), r.hasAttribute("sourceLinked") && (s.sourceLinked = "1" === r.getAttribute("sourceLinked")));
|
|
850
905
|
}
|
|
851
|
-
},
|
|
906
|
+
}, gt = class {
|
|
852
907
|
visit(t, e, s) {
|
|
853
908
|
const r = {};
|
|
854
909
|
E(t, e, r, "explosion", "explosion");
|
|
@@ -897,7 +952,7 @@ var rt = class {
|
|
|
897
952
|
}
|
|
898
953
|
}
|
|
899
954
|
}
|
|
900
|
-
},
|
|
955
|
+
}, mt = class {
|
|
901
956
|
DataPointVisitor() {}
|
|
902
957
|
visit(t, e, s) {
|
|
903
958
|
let r = t.getFromPath(s, "points"), o = null;
|
|
@@ -905,7 +960,7 @@ var rt = class {
|
|
|
905
960
|
let i = {}, n = t.getValAttrAsString("idx", e);
|
|
906
961
|
return null !== n && (o[n] = i), B(t, e, i, "bubble3D", "bubble3D"), E(t, e, i, "explosion", "explosion"), K(t, e, i), i;
|
|
907
962
|
}
|
|
908
|
-
},
|
|
963
|
+
}, bt = class {
|
|
909
964
|
visit(t, e, s) {
|
|
910
965
|
const r = e.parentNode.localName;
|
|
911
966
|
if ("ser" === r || "dPt" === r) {
|
|
@@ -916,7 +971,7 @@ var rt = class {
|
|
|
916
971
|
}
|
|
917
972
|
return null;
|
|
918
973
|
}
|
|
919
|
-
},
|
|
974
|
+
}, ft = class {
|
|
920
975
|
visit(t, e, s) {
|
|
921
976
|
let r = {};
|
|
922
977
|
this.parseScaling(t, e, r), R(t, e, r, "majorUnit", "majorUnits"), R(t, e, r, "minorUnit", "minorUnits"), B(t, e, r, "delete", "shown"), this.parseOrientation(t, e, r), this.parseNumFormat(t, e, r), _(t, e, r, "majorTickMark", "majorTickMarks"), _(t, e, r, "minorTickMark", "minorTickMarks"), _(t, e, r, "crosses", "crosses"), R(t, e, r, "crossesAt", "crosses"), _(t, e, r, "crossBetween", "crossBetween"), this.parseLabelAlign(t, e, r), E(t, e, r, "lblOffset", "labelOffset"), _(t, e, r, "tickLblPos", "labelPosition");
|
|
@@ -965,7 +1020,7 @@ var rt = class {
|
|
|
965
1020
|
const a = t.evaluate("majorGridlines", e);
|
|
966
1021
|
t.setToPath(s, "gridLinesMajor.shown", null !== a);
|
|
967
1022
|
}
|
|
968
|
-
},
|
|
1023
|
+
}, At = $, yt = class {
|
|
969
1024
|
visit(t, e, s) {
|
|
970
1025
|
const r = t.getVisitorParamsState().get("series");
|
|
971
1026
|
let o = t.getValAttrAsInteger("idx", e), i = null !== o ? r[o] : void 0;
|
|
@@ -977,19 +1032,19 @@ var rt = class {
|
|
|
977
1032
|
}
|
|
978
1033
|
return s;
|
|
979
1034
|
}
|
|
980
|
-
},
|
|
1035
|
+
}, vt = class {
|
|
981
1036
|
visit(t, e, s) {
|
|
982
1037
|
const r = {};
|
|
983
1038
|
return B(t, e, r, "overlay", "overlay"), _(t, e, r, "legendPos", "position"), s.legend = r, r;
|
|
984
1039
|
}
|
|
985
|
-
},
|
|
1040
|
+
}, Nt = class extends W {
|
|
986
1041
|
visit(t, e, s) {
|
|
987
1042
|
const r = this.getFill(t, e);
|
|
988
1043
|
Object.keys(r).length > 0 && (s.fillNegative = r);
|
|
989
1044
|
const o = this.getStroke(t, e);
|
|
990
1045
|
return Object.keys(o).length > 0 && (s.strokeNegative = o), s;
|
|
991
1046
|
}
|
|
992
|
-
},
|
|
1047
|
+
}, Ft = class extends $ {
|
|
993
1048
|
constructor(t = "title") {
|
|
994
1049
|
super(t);
|
|
995
1050
|
}
|
|
@@ -1016,7 +1071,7 @@ var rt = class {
|
|
|
1016
1071
|
null !== t && (s.rotation = parseInt(t), delete s.title.rotation);
|
|
1017
1072
|
}
|
|
1018
1073
|
}
|
|
1019
|
-
},
|
|
1074
|
+
}, Ct = class {
|
|
1020
1075
|
visit(t, e, s) {
|
|
1021
1076
|
const r = t.evaluate("manualLayout", e);
|
|
1022
1077
|
if (r) {
|
|
@@ -1025,11 +1080,11 @@ var rt = class {
|
|
|
1025
1080
|
}
|
|
1026
1081
|
return s;
|
|
1027
1082
|
}
|
|
1028
|
-
},
|
|
1083
|
+
}, wt = class {
|
|
1029
1084
|
visit(t, e, s) {
|
|
1030
1085
|
return s.name = e.getAttribute("name"), s;
|
|
1031
1086
|
}
|
|
1032
|
-
},
|
|
1087
|
+
}, Pt = class extends U {
|
|
1033
1088
|
visit(t, e, s) {
|
|
1034
1089
|
const r = {};
|
|
1035
1090
|
r.name = e.getAttribute("name");
|
|
@@ -1044,7 +1099,7 @@ var rt = class {
|
|
|
1044
1099
|
}
|
|
1045
1100
|
return Object.keys(r).length > 0 && (s.colors = r), r;
|
|
1046
1101
|
}
|
|
1047
|
-
},
|
|
1102
|
+
}, St = class {
|
|
1048
1103
|
visit(t, e, s) {
|
|
1049
1104
|
const r = {};
|
|
1050
1105
|
r.name = e.getAttribute("name");
|
|
@@ -1062,7 +1117,7 @@ var rt = class {
|
|
|
1062
1117
|
const i = r.getAttribute("panose");
|
|
1063
1118
|
return i && (s.fallbacks = [v.getPanoseFallback(i)]), s;
|
|
1064
1119
|
}
|
|
1065
|
-
},
|
|
1120
|
+
}, xt = class extends U {
|
|
1066
1121
|
visit(t, e, s) {
|
|
1067
1122
|
const r = this.parseFillList(t, e, "fillStyleLst"), o = this.parseLnList(t, e, "lnStyleLst"), i = this.parseEffectStyleList(t, e, "effectStyleLst"), n = this.parseFillList(t, e, "bgFillStyleLst");
|
|
1068
1123
|
if (r && o && i && n) return s.fillStyleLst = r, s.lnStyleLst = o, s.effectStyleLst = i, void (s.bgFillStyleLst = n);
|
|
@@ -1124,7 +1179,7 @@ var rt = class {
|
|
|
1124
1179
|
}
|
|
1125
1180
|
return o;
|
|
1126
1181
|
}
|
|
1127
|
-
},
|
|
1182
|
+
}, Tt = class {
|
|
1128
1183
|
visit(t, e, s) {
|
|
1129
1184
|
if (!e) return;
|
|
1130
1185
|
const r = {}, o = e.getAttribute("r:id");
|
|
@@ -1134,7 +1189,7 @@ var rt = class {
|
|
|
1134
1189
|
}
|
|
1135
1190
|
return t.copyFromAttribute(e, "tooltip", r, "screenTip"), t.copyFromAttribute(e, "history", r, "history", t.BOOLEAN_COPY), t.copyFromAttribute(e, "tgtFrame", r, "target"), s.hyperlink = r, r;
|
|
1136
1191
|
}
|
|
1137
|
-
},
|
|
1192
|
+
}, Ot = class {
|
|
1138
1193
|
visit(t, e, s) {
|
|
1139
1194
|
if (!e) return;
|
|
1140
1195
|
const r = {}, o = [];
|
|
@@ -1259,7 +1314,7 @@ var rt = class {
|
|
|
1259
1314
|
}
|
|
1260
1315
|
return s;
|
|
1261
1316
|
}
|
|
1262
|
-
},
|
|
1317
|
+
}, kt = class {
|
|
1263
1318
|
visit(e, s, r) {
|
|
1264
1319
|
if (!s) return;
|
|
1265
1320
|
const o = s.getAttribute("ref"), i = {};
|
|
@@ -1299,7 +1354,7 @@ var rt = class {
|
|
|
1299
1354
|
}
|
|
1300
1355
|
}
|
|
1301
1356
|
}
|
|
1302
|
-
},
|
|
1357
|
+
}, Vt = class extends H {
|
|
1303
1358
|
visit(t, e, s) {
|
|
1304
1359
|
this.processNumFmts(t, t.evaluate("numFmts", e), null), t.getVisitorParamsState().set("colorsToProcess", /* @__PURE__ */ new Set());
|
|
1305
1360
|
const r = {
|
|
@@ -1557,7 +1612,7 @@ var rt = class {
|
|
|
1557
1612
|
}
|
|
1558
1613
|
}
|
|
1559
1614
|
afterVisit(t, e, s) {}
|
|
1560
|
-
},
|
|
1615
|
+
}, It = class extends H {
|
|
1561
1616
|
visit(t, e, s) {
|
|
1562
1617
|
return this.processSheetRefs(t, t.evaluate("sheets", e), s), this.processExternalReferences(t, t.evaluate("externalReferences", e), s), this.processBookViews(t, t.evaluate("bookViews", e), s), this.processDefinedNames(t, t.evaluate("definedNames", e), s), this.processCalcPr(t, t.evaluate("calcPr", e), s), this.processPivotCaches(t, t.evaluate("pivotCaches", e), s), this.processWorkbookProtection(t, t.evaluate("workbookProtection", e), s), this.processWorkbookPr(t, t.evaluate("workbookPr", e), s), s;
|
|
1563
1618
|
}
|
|
@@ -1570,7 +1625,7 @@ var rt = class {
|
|
|
1570
1625
|
if (!e) return;
|
|
1571
1626
|
const r = {};
|
|
1572
1627
|
this.processPassword(t, e, r, "workbook", "password"), this.processPassword(t, e, r, "revisions", "revisionsPassword");
|
|
1573
|
-
for (const t of
|
|
1628
|
+
for (const t of p) r[t.key] = u(t, e.getAttribute(t.attribute));
|
|
1574
1629
|
return s.protection = r, s;
|
|
1575
1630
|
}
|
|
1576
1631
|
processCalcPr(t, e, s) {
|
|
@@ -1661,7 +1716,7 @@ var rt = class {
|
|
|
1661
1716
|
e && (t.copyFromAttribute(e, "date1904", s, "date1904", t.BOOLEAN_COPY), t.copyFromAttribute(e, "codeName", s, "codeName"), t.copyFromAttribute(e, "updateLinks", s, "updateLinks"));
|
|
1662
1717
|
}
|
|
1663
1718
|
afterVisit(t, e, s) {}
|
|
1664
|
-
},
|
|
1719
|
+
}, Lt = class {
|
|
1665
1720
|
visit(t, e, s) {
|
|
1666
1721
|
const r = {};
|
|
1667
1722
|
return t.copyFromAttribute(e, "ref", s, "r"), t.getVisitorParamsState().set("ref", s.r), s.v = r, t.copyFromAttribute(e, "name", r), t.copyFromAttribute(e, "displayName", r), t.copyFromAttribute(e, "headerRowCount", r, "headerRowCount", t.INT_COPY), t.copyFromAttribute(e, "totalsRowCount", r, "totalsRowCount", t.INT_COPY), this.processTableColumns(t, e, r), this.processTableStyleInfo(t, e, r), t.copyFromAttribute(e, "id", r), t.copyFromAttribute(e, "comment", r, "description"), t.copyFromAttribute(e, "connectionId", r, "connectionId", t.INT_COPY), t.copyFromAttribute(e, "tableType", r), t.copyFromAttribute(e, "published", r, "published", t.BOOLEAN_COPY), t.copyFromAttribute(e, "insertRow", r, "insertRow", t.BOOLEAN_COPY), t.copyFromAttribute(e, "insertRowShift", r, "insertRowShift", t.BOOLEAN_COPY), r.totalsRowShown = "0" !== e.getAttribute("totalsRowShown"), r;
|
|
@@ -1713,7 +1768,7 @@ var rt = class {
|
|
|
1713
1768
|
}
|
|
1714
1769
|
o.length > 0 && (s.columns = o);
|
|
1715
1770
|
}
|
|
1716
|
-
},
|
|
1771
|
+
}, _t = class {
|
|
1717
1772
|
visit(t, e, s) {
|
|
1718
1773
|
const r = t.getVisitorParamsState().get("ref");
|
|
1719
1774
|
if (r) {
|
|
@@ -1722,7 +1777,7 @@ var rt = class {
|
|
|
1722
1777
|
}
|
|
1723
1778
|
return t.copyFromAttribute(e, "altText", s), t.copyFromAttribute(e, "altTextSummary", s), s;
|
|
1724
1779
|
}
|
|
1725
|
-
},
|
|
1780
|
+
}, Bt = class {
|
|
1726
1781
|
visit(t, e, s) {
|
|
1727
1782
|
const r = e.childNodes, o = r.length;
|
|
1728
1783
|
let i = null;
|
|
@@ -1831,13 +1886,13 @@ var rt = class {
|
|
|
1831
1886
|
const e = this._findChild(t, "alternateUrls");
|
|
1832
1887
|
return e ? this._findChild(e, "absoluteUrl")?.getAttribute("r:id") ?? null : null;
|
|
1833
1888
|
}
|
|
1834
|
-
},
|
|
1889
|
+
}, Et = class {
|
|
1835
1890
|
visit(t, e, s) {
|
|
1836
1891
|
t.copyFromAttribute(e, "name", s), t.copyFromAttribute(e, "sourceName", s);
|
|
1837
1892
|
const r = t.evaluate("*/tableSlicerCache", e);
|
|
1838
1893
|
return r ? (t.copyFromAttribute(r, "tableId", s), t.copyFromAttribute(r, "column", s, "columnId"), t.copyFromAttribute(r, "crossFilter", s), s) : (t.warn("A slicer names no table; it was not imported.", { onceKey: "xlsx.slicer.cacheDefinition" }), s);
|
|
1839
1894
|
}
|
|
1840
|
-
},
|
|
1895
|
+
}, Rt = class {
|
|
1841
1896
|
visit(t, e, s) {
|
|
1842
1897
|
let r = s.slicers;
|
|
1843
1898
|
r || (r = {}, s.slicers = r);
|
|
@@ -1859,11 +1914,11 @@ var rt = class {
|
|
|
1859
1914
|
}
|
|
1860
1915
|
t.copyFromAttribute(e, "caption", r), t.copyFromAttribute(e, "startItem", r, "startItem", t.INT_COPY), t.copyFromAttribute(e, "columnCount", r, "columnCount", t.INT_COPY), t.copyFromAttribute(e, "showCaption", r, "showCaption", t.BOOLEAN_COPY), t.copyFromAttribute(e, "level", r, "level", t.INT_COPY), t.copyFromAttribute(e, "style", r), t.copyFromAttribute(e, "locked", r, "locked", t.BOOLEAN_COPY), t.copyFromAttribute(e, "rowHeight", r, "rowHeight", t.INT_COPY);
|
|
1861
1916
|
}
|
|
1862
|
-
},
|
|
1917
|
+
}, jt = class {
|
|
1863
1918
|
visit(t, e, s) {
|
|
1864
1919
|
return s;
|
|
1865
1920
|
}
|
|
1866
|
-
},
|
|
1921
|
+
}, Dt = class {
|
|
1867
1922
|
visit(t, e, s) {
|
|
1868
1923
|
if (!e) return;
|
|
1869
1924
|
const r = {};
|
|
@@ -1887,7 +1942,7 @@ var rt = class {
|
|
|
1887
1942
|
};
|
|
1888
1943
|
return t.evaluate("col", e) && (o.c = parseInt(t.evaluate("col", e).textContent)), t.evaluate("row", e) && (o.r = parseInt(t.evaluate("row", e).textContent)), t.evaluate("colOff", e) && (o.x = l(t.evaluate("colOff", e).textContent)), t.evaluate("rowOff", e) && (o.y = l(t.evaluate("rowOff", e).textContent)), "from" === r ? s.tl = o : s.br = o, s;
|
|
1889
1944
|
}
|
|
1890
|
-
},
|
|
1945
|
+
}, Yt = class extends Z {
|
|
1891
1946
|
visit(t, e, s) {
|
|
1892
1947
|
if (!e) return;
|
|
1893
1948
|
s = super.visit(t, e, s);
|
|
@@ -1925,9 +1980,9 @@ var rt = class {
|
|
|
1925
1980
|
t.warn(`Unable to read a graphic frame: ${e?.message ?? e}`, { onceKey: "xlsx.drawing.graphicFrame" });
|
|
1926
1981
|
}
|
|
1927
1982
|
}
|
|
1928
|
-
return o && (s
|
|
1983
|
+
return o && this.setContent(s, o), o;
|
|
1929
1984
|
}
|
|
1930
|
-
},
|
|
1985
|
+
}, Mt = Q, Ut = class extends Z {
|
|
1931
1986
|
visit(t, e, s) {
|
|
1932
1987
|
if (!e) return;
|
|
1933
1988
|
const r = super.visit(t, e, s), o = t.evaluate("nvPicPr/cNvPicPr", e);
|
|
@@ -1947,32 +2002,34 @@ var rt = class {
|
|
|
1947
2002
|
if (e = i.getAttribute("r:embed") ?? i.getAttribute("embed"), e || (e = i.getAttribute("r:link") ?? i.getAttribute("link")), !e) return void t.warn("A picture names no image; it was not imported.", { onceKey: "xlsx.drawing.picture.noRel" });
|
|
1948
2003
|
n = t.getRef(e, !0);
|
|
1949
2004
|
}
|
|
1950
|
-
|
|
2005
|
+
const a = { resId: n };
|
|
2006
|
+
return this.setContent(s, {
|
|
1951
2007
|
type: "picture",
|
|
1952
|
-
json:
|
|
1953
|
-
}, r;
|
|
2008
|
+
json: a
|
|
2009
|
+
}), r;
|
|
1954
2010
|
}
|
|
1955
|
-
},
|
|
2011
|
+
}, zt = class extends Q {
|
|
1956
2012
|
visit(t, e, s) {
|
|
1957
2013
|
if (!e) return;
|
|
2014
|
+
const r = s;
|
|
1958
2015
|
s = super.visit(t, e, s);
|
|
1959
|
-
const
|
|
1960
|
-
if (
|
|
1961
|
-
const e = t.evaluate("grpSpLocks",
|
|
2016
|
+
const o = t.evaluate("nvGrpSpPr/cNvGrpSpPr", e);
|
|
2017
|
+
if (o) {
|
|
2018
|
+
const e = t.evaluate("grpSpLocks", o);
|
|
1962
2019
|
if (e) {
|
|
1963
2020
|
e.hasAttribute("noChangeAspect") && (s.lockAspect = "1" === e.getAttribute("noChangeAspect"));
|
|
1964
2021
|
const t = {};
|
|
1965
2022
|
Object.keys(t).length > 0 && (s.locks = t);
|
|
1966
2023
|
}
|
|
1967
2024
|
}
|
|
1968
|
-
t.warn(`Unable to import '${
|
|
1969
|
-
const
|
|
2025
|
+
t.warn(`Unable to import '${r.content?.name}', group shapes are not supported.`);
|
|
2026
|
+
const i = {};
|
|
1970
2027
|
return s.content = {
|
|
1971
2028
|
type: "grpSp",
|
|
1972
|
-
json:
|
|
1973
|
-
},
|
|
2029
|
+
json: i
|
|
2030
|
+
}, i;
|
|
1974
2031
|
}
|
|
1975
|
-
},
|
|
2032
|
+
}, Xt = class extends Q {
|
|
1976
2033
|
visit(t, e, s) {
|
|
1977
2034
|
if (!e) return;
|
|
1978
2035
|
s = super.visit(t, e, s);
|
|
@@ -1997,7 +2054,7 @@ var rt = class {
|
|
|
1997
2054
|
json: a
|
|
1998
2055
|
}, a;
|
|
1999
2056
|
}
|
|
2000
|
-
},
|
|
2057
|
+
}, Wt = class {
|
|
2001
2058
|
visit(t, e, s) {
|
|
2002
2059
|
const r = [], o = /* @__PURE__ */ new Map(), i = {
|
|
2003
2060
|
cells: [],
|
|
@@ -2104,7 +2161,7 @@ var rt = class {
|
|
|
2104
2161
|
}
|
|
2105
2162
|
return s;
|
|
2106
2163
|
}
|
|
2107
|
-
},
|
|
2164
|
+
}, Gt = class {
|
|
2108
2165
|
visit(t, e, s) {
|
|
2109
2166
|
let r = t.getVisitorParamsState().get(tt);
|
|
2110
2167
|
r || (r = [], t.getVisitorParamsState().set(tt, r));
|
|
@@ -2131,7 +2188,7 @@ var rt = class {
|
|
|
2131
2188
|
}
|
|
2132
2189
|
}
|
|
2133
2190
|
}
|
|
2134
|
-
},
|
|
2191
|
+
}, Kt = class {
|
|
2135
2192
|
visit(t, e, s) {
|
|
2136
2193
|
let r = t.getVisitorParamsState().get("richTypes");
|
|
2137
2194
|
if (!r) return void t.warn("RichValueFound but not type.");
|
|
@@ -2173,7 +2230,7 @@ var rt = class {
|
|
|
2173
2230
|
}
|
|
2174
2231
|
}
|
|
2175
2232
|
}
|
|
2176
|
-
},
|
|
2233
|
+
}, $t = class {
|
|
2177
2234
|
visit(t, e, s) {
|
|
2178
2235
|
if (!e) return;
|
|
2179
2236
|
const r = [];
|
|
@@ -2192,7 +2249,7 @@ var rt = class {
|
|
|
2192
2249
|
}
|
|
2193
2250
|
}
|
|
2194
2251
|
}
|
|
2195
|
-
},
|
|
2252
|
+
}, Ht = class {
|
|
2196
2253
|
visit(t, e, s) {
|
|
2197
2254
|
if (!e) return;
|
|
2198
2255
|
const r = e.getAttribute("ref");
|
|
@@ -2215,9 +2272,15 @@ var rt = class {
|
|
|
2215
2272
|
const t = { text: "" }, r = o.childNodes;
|
|
2216
2273
|
for (let e = 0; e < r.length; e++) {
|
|
2217
2274
|
const s = r.item(e);
|
|
2218
|
-
1 === s.nodeType
|
|
2275
|
+
if (1 === s.nodeType) {
|
|
2276
|
+
if ("t" === s.localName) t.text += s.textContent ?? "";
|
|
2277
|
+
else if ("rPr" === s.localName) {
|
|
2278
|
+
const e = ot(s);
|
|
2279
|
+
e && (t.font = e);
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2219
2282
|
}
|
|
2220
|
-
|
|
2283
|
+
t.font && (s = !1), e.push(t);
|
|
2221
2284
|
}
|
|
2222
2285
|
}
|
|
2223
2286
|
}
|
|
@@ -2227,24 +2290,55 @@ var rt = class {
|
|
|
2227
2290
|
v: o
|
|
2228
2291
|
}), o;
|
|
2229
2292
|
}
|
|
2230
|
-
},
|
|
2293
|
+
}, qt = class {
|
|
2231
2294
|
visit(t, e, s) {
|
|
2232
2295
|
if (!e) return;
|
|
2233
2296
|
const r = [];
|
|
2234
2297
|
return s.comments = r, r;
|
|
2235
2298
|
}
|
|
2236
|
-
},
|
|
2299
|
+
}, Jt = class {
|
|
2237
2300
|
visit(e, s, r) {
|
|
2238
2301
|
if (!s) return;
|
|
2239
2302
|
const i = {};
|
|
2240
2303
|
e.copyFromAttribute(s, "id", i, "id", o);
|
|
2241
2304
|
const n = s.getAttribute("ref");
|
|
2242
|
-
|
|
2305
|
+
e.copyFromAttribute(s, "personId", i, "personId", o), e.copyFromAttribute(s, "parentId", i, "parentId", o);
|
|
2306
|
+
const a = s.getAttribute("dT");
|
|
2307
|
+
a && (i.dt = function(t) {
|
|
2308
|
+
const e = /^(.*T\d{2}:\d{2}:\d{2})(?:\.(\d+))?(Z|[+-]\d{2}:?\d{2})?$/i.exec(t.trim());
|
|
2309
|
+
if (!e) return t;
|
|
2310
|
+
const [, s, r, o] = e;
|
|
2311
|
+
return `${s}${r ? `.${(r + "00").substring(0, 3)}` : ""}${o ?? "Z"}`;
|
|
2312
|
+
}(a)), s.hasAttribute("done") && (i.done = t(s.getAttribute("done")));
|
|
2313
|
+
const l = function(t) {
|
|
2314
|
+
let e;
|
|
2315
|
+
const s = t.childNodes;
|
|
2316
|
+
for (let t = 0; t < s.length; t++) {
|
|
2317
|
+
const r = s.item(t);
|
|
2318
|
+
if (1 !== r.nodeType || "mentions" !== r.localName) continue;
|
|
2319
|
+
const i = r.childNodes;
|
|
2320
|
+
for (let t = 0; t < i.length; t++) {
|
|
2321
|
+
const s = i.item(t);
|
|
2322
|
+
if (1 !== s.nodeType || "mention" !== s.localName) continue;
|
|
2323
|
+
const r = s.getAttribute("mentionId"), n = s.getAttribute("mentionpersonId");
|
|
2324
|
+
if (!r || !n) continue;
|
|
2325
|
+
const a = {
|
|
2326
|
+
id: o(r),
|
|
2327
|
+
personId: o(n)
|
|
2328
|
+
}, l = parseInt(s.getAttribute("startIndex") ?? "", 10);
|
|
2329
|
+
isNaN(l) || (a.startIndex = l);
|
|
2330
|
+
const c = parseInt(s.getAttribute("length") ?? "", 10);
|
|
2331
|
+
isNaN(c) || (a.length = c), (e ??= []).push(a);
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
return e;
|
|
2335
|
+
}(s);
|
|
2336
|
+
return l && (i.mentions = l), r.push({
|
|
2243
2337
|
r: n,
|
|
2244
2338
|
v: i
|
|
2245
2339
|
}), i;
|
|
2246
2340
|
}
|
|
2247
|
-
},
|
|
2341
|
+
}, Zt = class {
|
|
2248
2342
|
visit(t, e, s) {
|
|
2249
2343
|
const r = [], i = e.childNodes, n = i.length;
|
|
2250
2344
|
for (let e = 0; e < n; e++) {
|
|
@@ -2256,20 +2350,20 @@ var rt = class {
|
|
|
2256
2350
|
}
|
|
2257
2351
|
return r.length > 0 && (s.persons = r), r;
|
|
2258
2352
|
}
|
|
2259
|
-
},
|
|
2353
|
+
}, Qt = class {
|
|
2260
2354
|
constructor(t, e) {
|
|
2261
2355
|
this.path = t, this.visitor = e;
|
|
2262
2356
|
}
|
|
2263
|
-
},
|
|
2357
|
+
}, te = class {
|
|
2264
2358
|
constructor() {
|
|
2265
|
-
this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new
|
|
2359
|
+
this.visitorsByXmlTagName = /* @__PURE__ */ new Map(), this.scopedVisitorsByXmlTagName = /* @__PURE__ */ new Map(), this.visitorParamsState = null, this.registerVisitor("Relationships", new it()), this.registerVisitor("cp:coreProperties", new nt()), this.registerVisitor("Properties", new at()), this.registerVisitor("spPr", new ut()), this.registerVisitor("txBody", new At()), this.registerVisitor("txPr", new At()), this.registerVisitor("c:chartSpace", new lt()), this.registerVisitor("c:plotArea", new ct()), this.registerVisitor("c:barChart", new ht()), this.registerVisitor("c:doughnutChart", new pt()), this.registerVisitor("c:lineChart", new pt()), this.registerVisitor("c:ofPieType", new pt()), this.registerVisitor("c:pieChart", new pt()), this.registerVisitor("c:scatterChart", new pt()), this.registerVisitor("c:barChart", new dt("dataLabels"), "dLbls"), this.registerVisitor("c:doughnutChart", new dt("dataLabels"), "dLbls"), this.registerVisitor("c:lineChart", new dt("dataLabels"), "dLbls"), this.registerVisitor("c:ofPieType", new dt("dataLabels"), "dLbls"), this.registerVisitor("c:pieChart", new dt("dataLabels"), "dLbls"), this.registerVisitor("c:scatterChart", new dt("dataLabels"), "dLbls"), this.registerVisitor("c:ser", new gt()), this.registerVisitor("c:dPt", new mt()), this.registerVisitor("c:marker", new bt()), this.registerVisitor("c:catAx", new ft()), this.registerVisitor("c:valAx", new ft()), this.registerVisitor("c:dateAx", new ft()), this.registerVisitor("c:majorGridlines", new M("gridLinesMajor")), this.registerVisitor("c:minorGridlines", new M("gridLinesMinor")), this.registerVisitor("c:chartSpace", null, "txPr"), this.registerVisitor("c:catAx", new At("labels.text"), "txPr"), this.registerVisitor("c:valAx", new At("labels.text"), "txPr"), this.registerVisitor("c:dateAx", new At("labels.text"), "txPr"), this.registerVisitor("c:legend", new vt()), this.registerVisitor("c:legend", new At("labels.text"), "txPr"), this.registerVisitor("c:legendEntry", new yt()), this.registerVisitor("c:ser", new Nt(), "extLst/ext/invertSolidFillFmt/spPr"), this.registerVisitor("c:ser", new dt("labels"), "dLbls"), this.registerVisitor("c:dLbl", new dt("points")), this.registerVisitor("c:title", new Ft()), this.registerVisitor("c:title", null, "tx/rich"), this.registerVisitor("c:title", null, "txPr"), this.registerVisitor("c:layout", new Ct()), this.registerVisitor("c:dispUnits", new M("dispUnits")), this.registerVisitor("c:dispUnitsLbl", new Ft("displayUnitsLabel")), this.registerVisitor("c:dispUnitsLbl", new At(), "tx/rich"), this.registerVisitor("a:theme", new wt()), this.registerVisitor("a:theme", new Pt(), "themeElements/clrScheme"), this.registerVisitor("a:theme", new St(), "themeElements/fontScheme"), this.registerVisitor("a:theme", new xt(), "themeElements/fmtScheme"), this.registerVisitor("autoFilter", new Ot()), this.registerVisitor("sortState", new kt()), this.registerVisitor("s:workbook", new It()), this.registerVisitor("styleSheet", new Vt()), this.registerVisitor("x14:table", new _t()), this.registerVisitor("table", new Lt()), this.registerVisitor("externalLink", new Bt()), this.registerVisitor("hlinkClick", new Tt()), this.registerVisitor("wsDr", new jt()), this.registerVisitor("twoCellAnchor", new Dt()), this.registerVisitor("oneCellAnchor", new Dt()), this.registerVisitor("absoluteAnchor", new Dt()), this.registerVisitor("graphicFrame", new Yt()), this.registerVisitor("sp", new Mt()), this.registerVisitor("grpSp", new zt()), this.registerVisitor("cxnSp", new Xt()), this.registerVisitor("pic", new Ut()), this.registerVisitor("metadata", new Wt()), this.registerVisitor("rvStructures", new Gt()), this.registerVisitor("rvData", new Kt()), this.registerVisitor("comments", new $t()), this.registerVisitor("comment", new Ht()), this.registerVisitor("ThreadedComments", new qt()), this.registerVisitor("threadedComment", new Jt()), this.registerVisitor("threadedComment", new At("content"), "text"), this.registerVisitor("personList", new Zt()), this.registerVisitor("slicerCacheDefinition", new Et()), this.registerVisitor("slicers", new Rt());
|
|
2266
2360
|
}
|
|
2267
2361
|
registerVisitor(t, e, s = null) {
|
|
2268
2362
|
-1 === t.indexOf(":") && (t = "*:" + t);
|
|
2269
2363
|
const r = t.split(":"), o = r.length > 1 ? r[1] : r[0];
|
|
2270
2364
|
if (!s) return this.visitorsByXmlTagName.set(o, e), void this.visitorsByXmlTagName.set(t, e);
|
|
2271
2365
|
let i = this.scopedVisitorsByXmlTagName.get(o);
|
|
2272
|
-
i || (i = [], this.scopedVisitorsByXmlTagName.set(o, i), this.scopedVisitorsByXmlTagName.set(t, i)), i.push(new
|
|
2366
|
+
i || (i = [], this.scopedVisitorsByXmlTagName.set(o, i), this.scopedVisitorsByXmlTagName.set(t, i)), i.push(new Qt(s, e));
|
|
2273
2367
|
}
|
|
2274
2368
|
parseDxf(t, e = "", s = d.EmptyObject) {
|
|
2275
2369
|
this.visitorParamsState || (this.visitorParamsState = /* @__PURE__ */ new Map());
|
|
@@ -2277,7 +2371,7 @@ var rt = class {
|
|
|
2277
2371
|
r.set("processingDXFs", !0);
|
|
2278
2372
|
try {
|
|
2279
2373
|
const r = new V(null, this, "/dxf", t, {}, e, s), o = {};
|
|
2280
|
-
return new
|
|
2374
|
+
return new Vt().processDXF(r, t, o), o;
|
|
2281
2375
|
} finally {
|
|
2282
2376
|
void 0 === o ? r.delete("processingDXFs") : r.set("processingDXFs", o);
|
|
2283
2377
|
}
|
|
@@ -2353,4 +2447,4 @@ var rt = class {
|
|
|
2353
2447
|
return a;
|
|
2354
2448
|
}
|
|
2355
2449
|
};
|
|
2356
|
-
export {
|
|
2450
|
+
export { te as DOMTransformer, V as ExecutionContext, a as NumberUtils, I as VisitorUtils };
|