pptx-vue-viewer 2.20.6 → 2.20.7
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/CHANGELOG.md +7 -0
- package/dist/{AiChatPanel-By2zrvtM.js → AiChatPanel-BfxMA_YJ.js} +2 -2
- package/dist/AiChatPanel-BfxMA_YJ.js.br +0 -0
- package/dist/AiChatPanel-BfxMA_YJ.js.gz +0 -0
- package/dist/{AiChatPanel-keMhu04F.cjs → AiChatPanel-KZCAaLSl.cjs} +1 -1
- package/dist/AiChatPanel-KZCAaLSl.cjs.br +0 -0
- package/dist/AiChatPanel-KZCAaLSl.cjs.gz +0 -0
- package/dist/{dist-CgAwqAsy.cjs → dist-DsI6qtxB.cjs} +865 -818
- package/dist/dist-DsI6qtxB.cjs.br +0 -0
- package/dist/dist-DsI6qtxB.cjs.gz +0 -0
- package/dist/{dist-EsJChuVK.js → dist-OepfEldU.js} +827 -780
- package/dist/dist-OepfEldU.js.br +0 -0
- package/dist/dist-OepfEldU.js.gz +0 -0
- package/dist/gif-encoder-CexiIIlN.js +2 -0
- package/dist/gif-encoder-CexiIIlN.js.br +0 -0
- package/dist/gif-encoder-CexiIIlN.js.gz +0 -0
- package/dist/gif-encoder-Cw0zaosi.cjs +2 -0
- package/dist/gif-encoder-Cw0zaosi.cjs.br +0 -0
- package/dist/gif-encoder-Cw0zaosi.cjs.gz +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.js +2 -2
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/internals.cjs +1 -1
- package/dist/internals.cjs.br +0 -0
- package/dist/internals.cjs.gz +0 -0
- package/dist/internals.js +1 -1
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/{useViewerSettingsDialog-B9tk2_CH.cjs → useViewerSettingsDialog-D6HmvWmd.cjs} +5 -5
- package/dist/useViewerSettingsDialog-D6HmvWmd.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-D6HmvWmd.cjs.gz +0 -0
- package/dist/{useViewerSettingsDialog-Da6prs5L.js → useViewerSettingsDialog-DTD_qfS_.js} +5 -5
- package/dist/useViewerSettingsDialog-DTD_qfS_.js.br +0 -0
- package/dist/useViewerSettingsDialog-DTD_qfS_.js.gz +0 -0
- package/dist/viewer/index.cjs +1 -1
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-CyDv_jdL.js → viewer-Dv8MPYcv.js} +4 -4
- package/dist/viewer-Dv8MPYcv.js.br +0 -0
- package/dist/viewer-Dv8MPYcv.js.gz +0 -0
- package/dist/{viewer-D7G2pmff.cjs → viewer-X9g5bNdQ.cjs} +3 -3
- package/dist/viewer-X9g5bNdQ.cjs.br +0 -0
- package/dist/{viewer-D7G2pmff.cjs.gz → viewer-X9g5bNdQ.cjs.gz} +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-By2zrvtM.js.br +0 -0
- package/dist/AiChatPanel-By2zrvtM.js.gz +0 -0
- package/dist/AiChatPanel-keMhu04F.cjs.br +0 -0
- package/dist/AiChatPanel-keMhu04F.cjs.gz +0 -0
- package/dist/dist-CgAwqAsy.cjs.br +0 -0
- package/dist/dist-CgAwqAsy.cjs.gz +0 -0
- package/dist/dist-EsJChuVK.js.br +0 -0
- package/dist/dist-EsJChuVK.js.gz +0 -0
- package/dist/gif-encoder-9D9f_1CU.cjs +0 -2
- package/dist/gif-encoder-9D9f_1CU.cjs.br +0 -0
- package/dist/gif-encoder-9D9f_1CU.cjs.gz +0 -0
- package/dist/gif-encoder-DVKtWQip.js +0 -2
- package/dist/gif-encoder-DVKtWQip.js.br +0 -0
- package/dist/gif-encoder-DVKtWQip.js.gz +0 -0
- package/dist/useViewerSettingsDialog-B9tk2_CH.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-B9tk2_CH.cjs.gz +0 -0
- package/dist/useViewerSettingsDialog-Da6prs5L.js.br +0 -0
- package/dist/useViewerSettingsDialog-Da6prs5L.js.gz +0 -0
- package/dist/viewer-CyDv_jdL.js.br +0 -0
- package/dist/viewer-CyDv_jdL.js.gz +0 -0
- package/dist/viewer-D7G2pmff.cjs.br +0 -0
|
@@ -6591,7 +6591,7 @@ async function xr(e) {
|
|
|
6591
6591
|
var br = class {
|
|
6592
6592
|
constructor() {}
|
|
6593
6593
|
static async create(e) {
|
|
6594
|
-
const t = await xr(e), n = new
|
|
6594
|
+
const t = await xr(e), n = new d$(), r = await n.load(t);
|
|
6595
6595
|
return {
|
|
6596
6596
|
handler: n,
|
|
6597
6597
|
data: r,
|
|
@@ -22473,7 +22473,7 @@ function Wa(e, t) {
|
|
|
22473
22473
|
const s = ko(a("a:shade"));
|
|
22474
22474
|
void 0 !== s && (r *= s, i *= s, o *= s);
|
|
22475
22475
|
const l = ko(a("a:tint"));
|
|
22476
|
-
void 0 !== l && (r
|
|
22476
|
+
void 0 !== l && (r = 255 - (255 - r) * l, i = 255 - (255 - i) * l, o = 255 - (255 - o) * l);
|
|
22477
22477
|
if ([
|
|
22478
22478
|
"a:hue",
|
|
22479
22479
|
"a:hueMod",
|
|
@@ -26291,7 +26291,7 @@ function hp(e, t) {
|
|
|
26291
26291
|
const t = e.replace(/[-{}]/g, "");
|
|
26292
26292
|
if (32 !== t.length) throw new Error(`Invalid GUID length: expected 32 hex chars, got ${t.length}`);
|
|
26293
26293
|
const n = /* @__PURE__ */ new Uint8Array(16);
|
|
26294
|
-
for (let e = 0; e < 16; e++) n[e] = parseInt(t.substring(2 * e, 2 * e + 2), 16);
|
|
26294
|
+
for (let e = 0; e < 16; e++) n[15 - e] = parseInt(t.substring(2 * e, 2 * e + 2), 16);
|
|
26295
26295
|
return n;
|
|
26296
26296
|
}(t), r = new Uint8Array(e);
|
|
26297
26297
|
for (let t = 0; t < 32; t++) r[t] = e[t] ^ n[t % 16];
|
|
@@ -47106,7 +47106,7 @@ var DM = class e extends TM {
|
|
|
47106
47106
|
placeholders: this.extractPlaceholderList(s)
|
|
47107
47107
|
};
|
|
47108
47108
|
l.clrMap = DI(i["p:clrMap"]);
|
|
47109
|
-
const c =
|
|
47109
|
+
const c = HB(i["p:hf"]);
|
|
47110
47110
|
return c && (l.headerFooter = c), l;
|
|
47111
47111
|
} catch (e) {
|
|
47112
47112
|
console.warn("Failed to parse handout master:", e);
|
|
@@ -47125,7 +47125,7 @@ var DM = class e extends TM {
|
|
|
47125
47125
|
placeholders: this.extractPlaceholderList(s)
|
|
47126
47126
|
};
|
|
47127
47127
|
l.clrMap = DI(i["p:clrMap"]);
|
|
47128
|
-
const c =
|
|
47128
|
+
const c = HB(i["p:hf"]);
|
|
47129
47129
|
return c && (l.headerFooter = c), l;
|
|
47130
47130
|
} catch (e) {
|
|
47131
47131
|
console.warn("Failed to parse notes master:", e);
|
|
@@ -47158,7 +47158,7 @@ var DM = class e extends TM {
|
|
|
47158
47158
|
const e = String(d).trim().toLowerCase();
|
|
47159
47159
|
o.userDrawn = "1" === e || "true" === e;
|
|
47160
47160
|
}
|
|
47161
|
-
const p =
|
|
47161
|
+
const p = HB(i["p:hf"]);
|
|
47162
47162
|
p && (o.headerFooter = p);
|
|
47163
47163
|
const u = i["p:clrMapOvr"];
|
|
47164
47164
|
if (u && void 0 === u["a:masterClrMapping"]) {
|
|
@@ -47419,7 +47419,6 @@ var GM = class extends XM {
|
|
|
47419
47419
|
}
|
|
47420
47420
|
findSourceSlidePath(e) {
|
|
47421
47421
|
if (e && this.slideMap.has(e) && e.startsWith("ppt/slides/slide")) return e;
|
|
47422
|
-
for (const e of this.slideMap.keys()) if (e.startsWith("ppt/slides/slide")) return e;
|
|
47423
47422
|
}
|
|
47424
47423
|
async loadSlideRelationships(e, t) {
|
|
47425
47424
|
await this.loadPartRelationships(e, t);
|
|
@@ -48928,19 +48927,21 @@ var xF = class extends fF {
|
|
|
48928
48927
|
const n = ud(t, "p:nvSpPr", "p:nvPr") ?? ud(t, "p:nvPicPr", "p:nvPr") ?? ud(t, "p:nvGraphicFramePr", "p:nvPr");
|
|
48929
48928
|
return this.readPlaceholderInfoFromNvPr(n);
|
|
48930
48929
|
}
|
|
48931
|
-
|
|
48932
|
-
|
|
48933
|
-
|
|
48934
|
-
|
|
48935
|
-
|
|
48936
|
-
|
|
48937
|
-
...this.ensureArray(
|
|
48930
|
+
isUntouchedPlaceholderPrompt(e) {
|
|
48931
|
+
return "text" === e.type && !(e.text && e.text.trim().length > 0) && !e.textSegments?.some((e) => e.text.trim().length > 0);
|
|
48932
|
+
}
|
|
48933
|
+
extractPlaceholderSlotsFromSpTree(e) {
|
|
48934
|
+
if (!e) return [];
|
|
48935
|
+
const t = [], n = [
|
|
48936
|
+
...this.ensureArray(e["p:sp"]),
|
|
48937
|
+
...this.ensureArray(e["p:pic"]),
|
|
48938
|
+
...this.ensureArray(e["p:graphicFrame"])
|
|
48938
48939
|
];
|
|
48939
|
-
for (const e of
|
|
48940
|
-
const
|
|
48940
|
+
for (const e of n) {
|
|
48941
|
+
const n = ud(e, "p:nvSpPr", "p:nvPr") ?? ud(e, "p:nvPicPr", "p:nvPr") ?? ud(e, "p:nvGraphicFramePr", "p:nvPr"), r = this.readPlaceholderInfoFromNvPr(n);
|
|
48941
48942
|
if (!r) continue;
|
|
48942
48943
|
const o = e["p:spPr"]?.["a:xfrm"], a = o?.["a:off"], s = o?.["a:ext"], l = a ? Number(a["@_x"] || 0) : 0, c = a ? Number(a["@_y"] || 0) : 0, d = s ? Number(s["@_cx"] || 0) : 0, p = s ? Number(s["@_cy"] || 0) : 0;
|
|
48943
|
-
|
|
48944
|
+
t.push({
|
|
48944
48945
|
phInfo: r,
|
|
48945
48946
|
xEmu: l,
|
|
48946
48947
|
yEmu: c,
|
|
@@ -48949,10 +48950,50 @@ var xF = class extends fF {
|
|
|
48949
48950
|
shapeXml: e
|
|
48950
48951
|
});
|
|
48951
48952
|
}
|
|
48952
|
-
return
|
|
48953
|
+
return t;
|
|
48954
|
+
}
|
|
48955
|
+
resolveMasterPathForNewLayout(e) {
|
|
48956
|
+
const t = this.slideRelsMap.get(e);
|
|
48957
|
+
if (t) {
|
|
48958
|
+
for (const [, n] of t.entries()) if (n.includes("slideMaster")) {
|
|
48959
|
+
const t = e.substring(0, e.lastIndexOf("/") + 1);
|
|
48960
|
+
if (n.startsWith("..")) {
|
|
48961
|
+
const e = (t + n).split("/"), r = [];
|
|
48962
|
+
for (const t of e) ".." === t ? r.pop() : t && "." !== t && r.push(t);
|
|
48963
|
+
return r.join("/");
|
|
48964
|
+
}
|
|
48965
|
+
return `ppt/${jl(n)}`;
|
|
48966
|
+
}
|
|
48967
|
+
}
|
|
48968
|
+
}
|
|
48969
|
+
findMasterSlotForLayoutSlot(e, t) {
|
|
48970
|
+
if (void 0 !== t.idx) {
|
|
48971
|
+
const n = e.find((e) => e.phInfo.idx === t.idx);
|
|
48972
|
+
if (n) return n;
|
|
48973
|
+
}
|
|
48974
|
+
if (!t.type) return;
|
|
48975
|
+
const n = "ctrtitle" === t.type ? "title" : "subtitle" === t.type ? "body" : t.type;
|
|
48976
|
+
return e.find((e) => e.phInfo.type === t.type || e.phInfo.type === n);
|
|
48977
|
+
}
|
|
48978
|
+
extractLayoutPlaceholders(e, t) {
|
|
48979
|
+
const n = ud(e, "p:sldLayout", "p:cSld", "p:spTree"), r = this.extractPlaceholderSlotsFromSpTree(n);
|
|
48980
|
+
if (0 === r.length || !t) return r;
|
|
48981
|
+
if (!r.some((e) => e.cxEmu <= 0 || e.cyEmu <= 0)) return r;
|
|
48982
|
+
const i = this.resolveMasterPathForNewLayout(t), o = ud(i ? this.masterXmlMap.get(i) : void 0, "p:sldMaster", "p:cSld", "p:spTree"), a = this.extractPlaceholderSlotsFromSpTree(o);
|
|
48983
|
+
return 0 === a.length ? r : r.map((e) => {
|
|
48984
|
+
if (e.cxEmu > 0 && e.cyEmu > 0) return e;
|
|
48985
|
+
const t = this.findMasterSlotForLayoutSlot(a, e.phInfo);
|
|
48986
|
+
return !t || t.cxEmu <= 0 || t.cyEmu <= 0 ? e : {
|
|
48987
|
+
...e,
|
|
48988
|
+
xEmu: t.xEmu,
|
|
48989
|
+
yEmu: t.yEmu,
|
|
48990
|
+
cxEmu: t.cxEmu,
|
|
48991
|
+
cyEmu: t.cyEmu
|
|
48992
|
+
};
|
|
48993
|
+
});
|
|
48953
48994
|
}
|
|
48954
48995
|
remapElementsToNewLayout(e, t, n) {
|
|
48955
|
-
const r = this.extractLayoutPlaceholders(t).map((e) => ({
|
|
48996
|
+
const r = this.extractLayoutPlaceholders(t, n).map((e) => ({
|
|
48956
48997
|
...e,
|
|
48957
48998
|
matched: !1
|
|
48958
48999
|
})), i = [];
|
|
@@ -48975,7 +49016,7 @@ var xF = class extends fF {
|
|
|
48975
49016
|
rawXml: ma(t.rawXml)
|
|
48976
49017
|
};
|
|
48977
49018
|
n.cxEmu > 0 && n.cyEmu > 0 && (e.x = Math.round(n.xEmu / Za), e.y = Math.round(n.yEmu / Za), e.width = Math.round(n.cxEmu / Za), e.height = Math.round(n.cyEmu / Za)), e.rawXml && n.cxEmu > 0 && n.cyEmu > 0 && aI(e.rawXml, n.xEmu, n.yEmu, n.cxEmu, n.cyEmu), e.rawXml && oI(e.rawXml, n.phInfo), i.push(e);
|
|
48978
|
-
} else i.push(t);
|
|
49019
|
+
} else this.isUntouchedPlaceholderPrompt(t) || i.push(t);
|
|
48979
49020
|
}
|
|
48980
49021
|
let o = 0;
|
|
48981
49022
|
for (const e of r) {
|
|
@@ -53940,7 +53981,12 @@ var hB = class extends lB {
|
|
|
53940
53981
|
});
|
|
53941
53982
|
o.length !== i.length && (r.Relationship = o, this.zip.file(e, this.builder.build(n)));
|
|
53942
53983
|
}
|
|
53943
|
-
}, fB =
|
|
53984
|
+
}, fB = /* @__PURE__ */ new Set([
|
|
53985
|
+
"dt",
|
|
53986
|
+
"ftr",
|
|
53987
|
+
"hdr",
|
|
53988
|
+
"sldnum"
|
|
53989
|
+
]), gB = class e extends mB {
|
|
53944
53990
|
parseMediaData(e, t) {
|
|
53945
53991
|
return this.mediaDataParser.parseMediaData(e, t);
|
|
53946
53992
|
}
|
|
@@ -54062,13 +54108,14 @@ var hB = class extends lB {
|
|
|
54062
54108
|
const n = e.type === t.type || "ctrtitle" === e.type && "title" === t.type || "subtitle" === e.type && "body" === t.type;
|
|
54063
54109
|
if ((e.idx ?? "0") !== (t.idx ?? "0")) return !1;
|
|
54064
54110
|
if (e.type && t.type && !n) return !1;
|
|
54111
|
+
if (e.type && fB.has(e.type) && !t.type || t.type && fB.has(t.type) && !e.type) return !1;
|
|
54065
54112
|
return !((void 0 === e.idx || void 0 === t.idx) && e.type && !t.type);
|
|
54066
54113
|
}
|
|
54067
54114
|
};
|
|
54068
|
-
function
|
|
54115
|
+
function yB(e) {
|
|
54069
54116
|
if (void 0 !== e) return "0" !== String(e) && "false" !== String(e).toLowerCase();
|
|
54070
54117
|
}
|
|
54071
|
-
var
|
|
54118
|
+
var xB = class e extends gB {
|
|
54072
54119
|
async parseSlideZoomElement(t, n, r) {
|
|
54073
54120
|
try {
|
|
54074
54121
|
const i = t["pslz:sldZmObj"], o = i?.["pslz:zmPr"], s = (o?.["p166:spPr"])?.["a:xfrm"], l = s?.["a:off"], c = s?.["a:ext"], d = this.findSlideIndexByNumericId(i?.["@_sldId"]);
|
|
@@ -54090,8 +54137,8 @@ var yB = class e extends fB {
|
|
|
54090
54137
|
width: Number(c["@_cx"] ?? 0) / g,
|
|
54091
54138
|
height: Number(c["@_cy"] ?? 0) / g,
|
|
54092
54139
|
rotation: void 0 !== s?.["@_rot"] ? Number(s["@_rot"]) / 6e4 : void 0,
|
|
54093
|
-
flipHorizontal:
|
|
54094
|
-
flipVertical:
|
|
54140
|
+
flipHorizontal: yB(s?.["@_flipH"]),
|
|
54141
|
+
flipVertical: yB(s?.["@_flipV"]),
|
|
54095
54142
|
imagePath: m,
|
|
54096
54143
|
imageData: f,
|
|
54097
54144
|
rawXml: t
|
|
@@ -54105,10 +54152,10 @@ var yB = class e extends fB {
|
|
|
54105
54152
|
return r.findIndex((e) => String(e["@_id"] ?? "").trim() === i);
|
|
54106
54153
|
}
|
|
54107
54154
|
};
|
|
54108
|
-
function
|
|
54155
|
+
function bB(e) {
|
|
54109
54156
|
if (void 0 !== e) return "0" !== String(e) && "false" !== String(e).toLowerCase();
|
|
54110
54157
|
}
|
|
54111
|
-
var
|
|
54158
|
+
var TB = class e extends xB {
|
|
54112
54159
|
async parseSectionZoomElement(t, n, r) {
|
|
54113
54160
|
try {
|
|
54114
54161
|
const i = t["psezm:sectionZmObj"], o = String(i?.["@_sectionId"] ?? "").trim(), a = Gv(this.presentationData, this.xmlLookupService).orderedSections.find((e) => e.id === o), s = this.findSlideIndexByNumericId(a?.slideIds[0]), l = i?.["psezm:zmPr"], d = (l?.["p166:spPr"])?.["a:xfrm"], p = d?.["a:off"], u = d?.["a:ext"];
|
|
@@ -54131,8 +54178,8 @@ var bB = class e extends yB {
|
|
|
54131
54178
|
width: Number(u["@_cx"] ?? 0) / x,
|
|
54132
54179
|
height: Number(u["@_cy"] ?? 0) / x,
|
|
54133
54180
|
rotation: void 0 !== d?.["@_rot"] ? Number(d["@_rot"]) / 6e4 : void 0,
|
|
54134
|
-
flipHorizontal:
|
|
54135
|
-
flipVertical:
|
|
54181
|
+
flipHorizontal: bB(d?.["@_flipH"]),
|
|
54182
|
+
flipVertical: bB(d?.["@_flipV"]),
|
|
54136
54183
|
imagePath: g,
|
|
54137
54184
|
imageData: y,
|
|
54138
54185
|
rawXml: t
|
|
@@ -54141,7 +54188,7 @@ var bB = class e extends yB {
|
|
|
54141
54188
|
return console.warn("Skipping malformed section Zoom element:", e), null;
|
|
54142
54189
|
}
|
|
54143
54190
|
}
|
|
54144
|
-
},
|
|
54191
|
+
}, SB = class e extends TB {
|
|
54145
54192
|
async parseSummaryZoomElement(t, n, r) {
|
|
54146
54193
|
try {
|
|
54147
54194
|
const i = Gv(this.presentationData, this.xmlLookupService), o = this.ensureArray(t["psuz:summaryZmObj"]), a = [];
|
|
@@ -54202,7 +54249,7 @@ var bB = class e extends yB {
|
|
|
54202
54249
|
const t = Number(e);
|
|
54203
54250
|
return Number.isFinite(t) ? t : void 0;
|
|
54204
54251
|
}
|
|
54205
|
-
},
|
|
54252
|
+
}, wB = class extends SB {
|
|
54206
54253
|
findPlaceholderInShapeTree(e, t) {
|
|
54207
54254
|
if (!e) return;
|
|
54208
54255
|
const n = this.ensureArray(e["p:sp"]);
|
|
@@ -54299,7 +54346,7 @@ var bB = class e extends yB {
|
|
|
54299
54346
|
}
|
|
54300
54347
|
return n;
|
|
54301
54348
|
}
|
|
54302
|
-
},
|
|
54349
|
+
}, vB = /* @__PURE__ */ new Set([
|
|
54303
54350
|
"l",
|
|
54304
54351
|
"t",
|
|
54305
54352
|
"cd2",
|
|
@@ -54310,13 +54357,13 @@ var bB = class e extends yB {
|
|
|
54310
54357
|
"5cd8",
|
|
54311
54358
|
"7cd8"
|
|
54312
54359
|
]);
|
|
54313
|
-
function
|
|
54360
|
+
function CB(e, t, n) {
|
|
54314
54361
|
const r = e.trim();
|
|
54315
54362
|
if (!r) return;
|
|
54316
54363
|
const i = r.split(/\s+/);
|
|
54317
54364
|
for (let e = 1; e < i.length; e++) {
|
|
54318
54365
|
const t = i[e];
|
|
54319
|
-
if ("" !== t && !Number.isFinite(Number(t)) && !n.has(t) && !
|
|
54366
|
+
if ("" !== t && !Number.isFinite(Number(t)) && !n.has(t) && !vB.has(t)) return;
|
|
54320
54367
|
}
|
|
54321
54368
|
const o = Dn([{
|
|
54322
54369
|
name: t,
|
|
@@ -54327,7 +54374,7 @@ function vB(e, t, n) {
|
|
|
54327
54374
|
}, new Map(n)).get(t);
|
|
54328
54375
|
return void 0 !== o && Number.isFinite(o) ? o : void 0;
|
|
54329
54376
|
}
|
|
54330
|
-
var
|
|
54377
|
+
var _B = class e extends wB {
|
|
54331
54378
|
parseGeometryAdjustments(e) {
|
|
54332
54379
|
if (!e) return;
|
|
54333
54380
|
const t = this.ensureArray(e?.["a:avLst"]?.["a:gd"]);
|
|
@@ -54346,7 +54393,7 @@ var CB = class e extends SB {
|
|
|
54346
54393
|
if (o) {
|
|
54347
54394
|
const e = Number.parseInt(o[1], 10);
|
|
54348
54395
|
Number.isFinite(e) && (i = e);
|
|
54349
|
-
} else i =
|
|
54396
|
+
} else i = CB(n, t, r);
|
|
54350
54397
|
}
|
|
54351
54398
|
void 0 !== i && (n[t] = i, r.set(t, i));
|
|
54352
54399
|
}
|
|
@@ -54539,7 +54586,7 @@ var CB = class e extends SB {
|
|
|
54539
54586
|
extractShapeStyle(e, t) {
|
|
54540
54587
|
return this.shapeStyleExtractor.extractShapeStyle(e, t);
|
|
54541
54588
|
}
|
|
54542
|
-
},
|
|
54589
|
+
}, kB = class e extends _B {
|
|
54543
54590
|
async parseShapeWithImageFill(t, n, r) {
|
|
54544
54591
|
try {
|
|
54545
54592
|
const i = od(t, "p:spPr"), o = this.extractPlaceholderInfo(ud(t, "p:nvSpPr", "p:nvPr")), a = o ? this.findPlaceholderContext(r, o) : void 0, s = a?.shape?.["p:spPr"] || a?.picture?.["p:spPr"], l = this.mergeXmlObjects(s, i), c = l?.["a:xfrm"] || i?.["a:xfrm"] || s?.["a:xfrm"];
|
|
@@ -54615,7 +54662,7 @@ var CB = class e extends SB {
|
|
|
54615
54662
|
const t = String(e ?? "").trim().toLowerCase();
|
|
54616
54663
|
if (0 !== t.length && "horz" !== t) return "vert" === t ? "vertical" : "vert270" === t ? "vertical270" : "eavert" === t ? "eaVert" : "wordartvert" === t ? "wordArtVert" : "wordartvertrtl" === t ? "wordArtVertRtl" : "mongolianvert" === t ? "mongolianVert" : void 0;
|
|
54617
54664
|
}
|
|
54618
|
-
},
|
|
54665
|
+
}, PB = class extends kB {
|
|
54619
54666
|
applyPlaceholderBodyDefaults(e, t) {
|
|
54620
54667
|
if (void 0 === e.bodyInsetLeft && void 0 !== t.bodyInsetLeft && (e.bodyInsetLeft = t.bodyInsetLeft), void 0 === e.bodyInsetTop && void 0 !== t.bodyInsetTop && (e.bodyInsetTop = t.bodyInsetTop), void 0 === e.bodyInsetRight && void 0 !== t.bodyInsetRight && (e.bodyInsetRight = t.bodyInsetRight), void 0 === e.bodyInsetBottom && void 0 !== t.bodyInsetBottom && (e.bodyInsetBottom = t.bodyInsetBottom), void 0 === e.vAlign && t.textAnchor) {
|
|
54621
54668
|
const n = this.textVerticalAlignFromDrawingValue(t.textAnchor);
|
|
@@ -54657,7 +54704,7 @@ var CB = class e extends SB {
|
|
|
54657
54704
|
}
|
|
54658
54705
|
void 0 === e.paragraphMarginLeft && void 0 !== t.marginLeft && (e.paragraphMarginLeft = t.marginLeft), void 0 === e.paragraphIndent && void 0 !== t.indent && (e.paragraphIndent = t.indent), void 0 === e.lineSpacing && void 0 === e.lineSpacingExactPt && (void 0 !== t.lineSpacing ? e.lineSpacing = t.lineSpacing : void 0 !== t.lineSpacingExactPt && (e.lineSpacingExactPt = t.lineSpacingExactPt)), void 0 === e.paragraphSpacingBefore && void 0 !== t.spaceBefore && (e.paragraphSpacingBefore = t.spaceBefore), void 0 === e.paragraphSpacingAfter && void 0 !== t.spaceAfter && (e.paragraphSpacingAfter = t.spaceAfter), void 0 === e.align && void 0 !== t.alignment && (e.align = t.alignment);
|
|
54659
54706
|
}
|
|
54660
|
-
},
|
|
54707
|
+
}, LB = class extends PB {
|
|
54661
54708
|
resolveParagraphBulletInfo(e, t, n, r, i = !1, o, a) {
|
|
54662
54709
|
if (!e) return null;
|
|
54663
54710
|
const s = e["a:pPr"];
|
|
@@ -54772,7 +54819,7 @@ var CB = class e extends SB {
|
|
|
54772
54819
|
formatAutoNumber(e, t) {
|
|
54773
54820
|
return `${Fb(e, t)} `;
|
|
54774
54821
|
}
|
|
54775
|
-
},
|
|
54822
|
+
}, AB = class e extends LB {
|
|
54776
54823
|
parseShapeLocks(e) {
|
|
54777
54824
|
if (!e) return;
|
|
54778
54825
|
const t = {};
|
|
@@ -54911,7 +54958,7 @@ var CB = class e extends SB {
|
|
|
54911
54958
|
selectAlternateContentBranch(e) {
|
|
54912
54959
|
return Nm(e);
|
|
54913
54960
|
}
|
|
54914
|
-
},
|
|
54961
|
+
}, IB = class e extends AB {
|
|
54915
54962
|
withoutDefaultRunProperties(e) {
|
|
54916
54963
|
if (!e || "object" != typeof e) return;
|
|
54917
54964
|
const t = { ...e };
|
|
@@ -55043,7 +55090,7 @@ var CB = class e extends SB {
|
|
|
55043
55090
|
}
|
|
55044
55091
|
};
|
|
55045
55092
|
}
|
|
55046
|
-
},
|
|
55093
|
+
}, MB = /* @__PURE__ */ new Set([
|
|
55047
55094
|
"a:r",
|
|
55048
55095
|
"a:fld",
|
|
55049
55096
|
"a:t",
|
|
@@ -55052,7 +55099,7 @@ var CB = class e extends SB {
|
|
|
55052
55099
|
"m:oMath",
|
|
55053
55100
|
"mc:AlternateContent",
|
|
55054
55101
|
"a:br"
|
|
55055
|
-
]),
|
|
55102
|
+
]), FB = class extends IB {
|
|
55056
55103
|
collectShapeParagraphContent(e, t, n, r, i, o) {
|
|
55057
55104
|
const a = [], s = [];
|
|
55058
55105
|
let l;
|
|
@@ -55134,7 +55181,7 @@ var CB = class e extends SB {
|
|
|
55134
55181
|
for (const e of r) y(e);
|
|
55135
55182
|
const i = this.ensureArray(t["a:fld"]);
|
|
55136
55183
|
for (const e of i) x(e);
|
|
55137
|
-
}, { entries: S, authored: w } = iT(e,
|
|
55184
|
+
}, { entries: S, authored: w } = iT(e, MB, (e) => this.ensureArray(e)), v = this.ensureArray(e["a:r"]).length, C = this.ensureArray(e["a:br"]).length, _ = !w && v > 1 && C > 0;
|
|
55138
55185
|
let k = 0;
|
|
55139
55186
|
for (const [t, n] of S) switch (t) {
|
|
55140
55187
|
case "a:r":
|
|
@@ -55271,7 +55318,7 @@ var CB = class e extends SB {
|
|
|
55271
55318
|
};
|
|
55272
55319
|
}
|
|
55273
55320
|
}
|
|
55274
|
-
},
|
|
55321
|
+
}, RB = class e extends FB {
|
|
55275
55322
|
parseShape(t, n, r) {
|
|
55276
55323
|
try {
|
|
55277
55324
|
const i = t["p:spPr"], o = r ? this.slideRelsMap.get(r) : void 0, a = this.extractPlaceholderInfo(t?.["p:nvSpPr"]?.["p:nvPr"]), s = r && a ? this.findPlaceholderContext(r, a) : void 0, l = s?.shape?.["p:spPr"] || s?.picture?.["p:spPr"], c = i ? {
|
|
@@ -55401,19 +55448,19 @@ var CB = class e extends SB {
|
|
|
55401
55448
|
return console.warn(`[pptx] Skipping shape element (${n}):`, e), null;
|
|
55402
55449
|
}
|
|
55403
55450
|
}
|
|
55404
|
-
},
|
|
55405
|
-
function
|
|
55451
|
+
}, DB = -2147483648, NB = 2147483647;
|
|
55452
|
+
function BB(e) {
|
|
55406
55453
|
const t = parseInt(String(e ?? ""), 10);
|
|
55407
|
-
return Number.isFinite(t) ? t <
|
|
55454
|
+
return Number.isFinite(t) ? t < DB ? DB : t > NB ? NB : t : 0;
|
|
55408
55455
|
}
|
|
55409
|
-
var
|
|
55456
|
+
var OB = class e extends RB {
|
|
55410
55457
|
async parsePicture(t, n, r) {
|
|
55411
55458
|
try {
|
|
55412
55459
|
const i = t["p:spPr"], o = this.extractPlaceholderInfo(t?.["p:nvPicPr"]?.["p:nvPr"]), a = o ? this.findPlaceholderContext(r, o) : void 0, s = a?.picture?.["p:spPr"] || a?.shape?.["p:spPr"], l = this.mergeXmlObjects(s, i), c = l?.["a:xfrm"] || i?.["a:xfrm"] || s?.["a:xfrm"];
|
|
55413
55460
|
if (!c) return null;
|
|
55414
55461
|
const d = od(c, "a:off"), p = od(c, "a:ext");
|
|
55415
55462
|
if (!d || !p) return null;
|
|
55416
|
-
const u = Math.round(
|
|
55463
|
+
const u = Math.round(BB(cd(d, "x")) / e.EMU_PER_PX), h = Math.round(BB(cd(d, "y")) / e.EMU_PER_PX), m = Math.round(BB(cd(p, "cx")) / e.EMU_PER_PX), f = Math.round(BB(cd(p, "cy")) / e.EMU_PER_PX), g = c["@_rot"] ? BB(c["@_rot"]) / 6e4 : void 0, y = c["@_skewX"] ? BB(c["@_skewX"]) / 6e4 : void 0, x = c["@_skewY"] ? BB(c["@_skewY"]) / 6e4 : void 0, { flipHorizontal: b, flipVertical: T } = this.readFlipState(c), S = t?.["p:nvPicPr"]?.["p:nvPr"], w = Jx(S, this.externalRelsMap.get(r));
|
|
55417
55464
|
if (w) {
|
|
55418
55465
|
this.compatibilityService.inspectMediaReferenceCompatibility(w.kind, r, n);
|
|
55419
55466
|
const e = w.relationshipId;
|
|
@@ -55523,7 +55570,7 @@ var BB = class e extends FB {
|
|
|
55523
55570
|
return console.warn(`[pptx] Skipping picture element (${n}):`, e), null;
|
|
55524
55571
|
}
|
|
55525
55572
|
}
|
|
55526
|
-
},
|
|
55573
|
+
}, EB = class e extends OB {
|
|
55527
55574
|
static ELEMENT_TAGS = /* @__PURE__ */ new Set([
|
|
55528
55575
|
"p:sp",
|
|
55529
55576
|
"p:pic",
|
|
@@ -55746,7 +55793,7 @@ var BB = class e extends FB {
|
|
|
55746
55793
|
parseGroupShapeAsGroup(e, t, n, r, i) {
|
|
55747
55794
|
throw new Error("parseGroupShapeAsGroup not yet initialised");
|
|
55748
55795
|
}
|
|
55749
|
-
},
|
|
55796
|
+
}, jB = class e extends EB {
|
|
55750
55797
|
async parseGroupShape(t, n, r, i, o = 0) {
|
|
55751
55798
|
if (o > 32) return this.compatibilityService.reportWarning({
|
|
55752
55799
|
code: "group-depth-exceeded",
|
|
@@ -55841,7 +55888,7 @@ var BB = class e extends FB {
|
|
|
55841
55888
|
extractGradientFillColor(e) {
|
|
55842
55889
|
return this.colorStyleCodec.extractGradientFillColor(e);
|
|
55843
55890
|
}
|
|
55844
|
-
},
|
|
55891
|
+
}, $B = class extends jB {
|
|
55845
55892
|
parseConnectorTextBody(e, t) {
|
|
55846
55893
|
if (!e) return null;
|
|
55847
55894
|
const n = this.ensureArray(e["a:p"]);
|
|
@@ -55897,12 +55944,12 @@ var BB = class e extends FB {
|
|
|
55897
55944
|
const i = t ? `${t}-` : "";
|
|
55898
55945
|
return this.parseSpTreeChildren(n, t, r, "p:spTree", i);
|
|
55899
55946
|
}
|
|
55900
|
-
},
|
|
55947
|
+
}, zB = {
|
|
55901
55948
|
bg1: "lt1",
|
|
55902
55949
|
tx1: "dk1",
|
|
55903
55950
|
bg2: "lt2",
|
|
55904
55951
|
tx2: "dk2"
|
|
55905
|
-
},
|
|
55952
|
+
}, XB = class extends $B {
|
|
55906
55953
|
reResolveGradientWithPhClr(e, t) {
|
|
55907
55954
|
throw new Error("reResolveGradientWithPhClr not yet initialised");
|
|
55908
55955
|
}
|
|
@@ -55942,7 +55989,7 @@ var BB = class e extends FB {
|
|
|
55942
55989
|
return this.themeColorMap[t] || this.getDefaultSchemeColorMap()[t];
|
|
55943
55990
|
}
|
|
55944
55991
|
} else {
|
|
55945
|
-
const e =
|
|
55992
|
+
const e = zB[t];
|
|
55946
55993
|
if (e) return this.themeColorMap[e] || this.themeColorMap[n(t)] || this.getDefaultSchemeColorMap()[n(t)];
|
|
55947
55994
|
}
|
|
55948
55995
|
return this.themeColorMap[n(t)] || this.getDefaultSchemeColorMap()[n(t)];
|
|
@@ -56011,7 +56058,7 @@ var BB = class e extends FB {
|
|
|
56011
56058
|
parseColorChoice(e, t) {
|
|
56012
56059
|
return this.colorStyleCodec.parseColorChoice(e, t);
|
|
56013
56060
|
}
|
|
56014
|
-
},
|
|
56061
|
+
}, UB = class extends XB {
|
|
56015
56062
|
async extractBackgroundImage(e, t, n = "p:sld") {
|
|
56016
56063
|
try {
|
|
56017
56064
|
const r = cd(ud(e, n, "p:cSld", "p:bg", "p:bgPr", "a:blipFill", "a:blip"), "r:embed");
|
|
@@ -56187,7 +56234,7 @@ var BB = class e extends FB {
|
|
|
56187
56234
|
}
|
|
56188
56235
|
}
|
|
56189
56236
|
}
|
|
56190
|
-
},
|
|
56237
|
+
}, GB = class extends UB {
|
|
56191
56238
|
async getLayoutBackgroundGradient(e) {
|
|
56192
56239
|
const t = this.slideRelsMap.get(e);
|
|
56193
56240
|
if (t) {
|
|
@@ -56364,7 +56411,7 @@ var BB = class e extends FB {
|
|
|
56364
56411
|
notesCSldName: y
|
|
56365
56412
|
};
|
|
56366
56413
|
}
|
|
56367
|
-
},
|
|
56414
|
+
}, WB = class e extends GB {
|
|
56368
56415
|
parsePlaceholderLevelStyle(t) {
|
|
56369
56416
|
if (!t) return null;
|
|
56370
56417
|
const n = {}, r = String(t["@_algn"] || "").trim().toLowerCase();
|
|
@@ -56433,7 +56480,7 @@ var BB = class e extends FB {
|
|
|
56433
56480
|
}
|
|
56434
56481
|
return Object.keys(n).length > 0 ? n : null;
|
|
56435
56482
|
}
|
|
56436
|
-
},
|
|
56483
|
+
}, VB = class e extends WB {
|
|
56437
56484
|
extractPlaceholderDefaultsFromShape(t) {
|
|
56438
56485
|
const r = t["p:nvSpPr"]?.["p:nvPr"]?.["p:ph"];
|
|
56439
56486
|
if (!r) return null;
|
|
@@ -56509,12 +56556,12 @@ var BB = class e extends FB {
|
|
|
56509
56556
|
return a;
|
|
56510
56557
|
}
|
|
56511
56558
|
};
|
|
56512
|
-
function
|
|
56559
|
+
function HB(e) {
|
|
56513
56560
|
if (!e) return;
|
|
56514
56561
|
const t = {};
|
|
56515
56562
|
return void 0 !== e["@_hdr"] && (t.hasHeader = "0" !== String(e["@_hdr"])), void 0 !== e["@_ftr"] && (t.hasFooter = "0" !== String(e["@_ftr"])), void 0 !== e["@_dt"] && (t.hasDateTime = "0" !== String(e["@_dt"])), void 0 !== e["@_sldNum"] && (t.hasSlideNumber = "0" !== String(e["@_sldNum"])), Object.keys(t).length > 0 ? t : void 0;
|
|
56516
56563
|
}
|
|
56517
|
-
var
|
|
56564
|
+
var qB = class extends VB {
|
|
56518
56565
|
parseTextListStyle(e) {
|
|
56519
56566
|
if (!e) return;
|
|
56520
56567
|
const t = {}, n = this.parsePlaceholderLevelStyle(e["a:defPPr"]);
|
|
@@ -56545,7 +56592,7 @@ var HB = class extends WB {
|
|
|
56545
56592
|
if (!n) continue;
|
|
56546
56593
|
const r = this.parseMasterTxStyles(n);
|
|
56547
56594
|
r && (t.txStyles = r, this.masterTxStylesCache.set(t.path, r));
|
|
56548
|
-
const i =
|
|
56595
|
+
const i = HB(n["p:hf"]);
|
|
56549
56596
|
i && (t.headerFooter = i);
|
|
56550
56597
|
} catch (e) {
|
|
56551
56598
|
console.warn("Failed to parse master txStyles:", e);
|
|
@@ -56637,7 +56684,7 @@ var HB = class extends WB {
|
|
|
56637
56684
|
return console.warn("Failed to parse master:", e), [];
|
|
56638
56685
|
}
|
|
56639
56686
|
}
|
|
56640
|
-
},
|
|
56687
|
+
}, YB = class extends qB {
|
|
56641
56688
|
async enrichMasterPartElements(e, t) {
|
|
56642
56689
|
if (!e) return;
|
|
56643
56690
|
const n = e.path;
|
|
@@ -56700,7 +56747,7 @@ var HB = class extends WB {
|
|
|
56700
56747
|
r || (r = /* @__PURE__ */ new Map(), ak.set(e, r)), r.set(t, n);
|
|
56701
56748
|
})(this, e, i);
|
|
56702
56749
|
}
|
|
56703
|
-
},
|
|
56750
|
+
}, ZB = class extends YB {
|
|
56704
56751
|
async getLayoutElements(e) {
|
|
56705
56752
|
const t = this.slideRelsMap.get(e);
|
|
56706
56753
|
if (!t) return [];
|
|
@@ -56780,7 +56827,7 @@ var HB = class extends WB {
|
|
|
56780
56827
|
return console.warn("Failed to parse layout:", e), [];
|
|
56781
56828
|
}
|
|
56782
56829
|
}
|
|
56783
|
-
},
|
|
56830
|
+
}, KB = class extends ZB {
|
|
56784
56831
|
layoutPreviewCache = /* @__PURE__ */ new Map();
|
|
56785
56832
|
async getLayoutPreview(e) {
|
|
56786
56833
|
const t = this.layoutPreviewCache.get(e);
|
|
@@ -56822,14 +56869,14 @@ var HB = class extends WB {
|
|
|
56822
56869
|
const r = this.resolveMasterPathForLayout(e), i = r ? this.masterXmlMap.get(r) : void 0, o = this.parseBackgroundColor(od(ud(i, "p:sldMaster", "p:cSld"), "p:bg"));
|
|
56823
56870
|
return o ? { backgroundColor: o } : {};
|
|
56824
56871
|
}
|
|
56825
|
-
},
|
|
56872
|
+
}, JB = [
|
|
56826
56873
|
"a:solidFill",
|
|
56827
56874
|
"a:gradFill",
|
|
56828
56875
|
"a:pattFill",
|
|
56829
56876
|
"a:noFill",
|
|
56830
56877
|
"a:grpFill"
|
|
56831
56878
|
];
|
|
56832
|
-
function
|
|
56879
|
+
function QB(e, t) {
|
|
56833
56880
|
if (!e) return [];
|
|
56834
56881
|
const n = new RegExp(`<${t.replace(":", "\\:")}\\b[^>]*>`), r = new RegExp(`</${t.replace(":", "\\:")}\\s*>`), i = n.exec(e);
|
|
56835
56882
|
if (!i) return [];
|
|
@@ -56840,7 +56887,7 @@ function JB(e, t) {
|
|
|
56840
56887
|
for (; null !== (d = c.exec(s));) l.push(`a:${d[1]}`);
|
|
56841
56888
|
return l;
|
|
56842
56889
|
}
|
|
56843
|
-
var
|
|
56890
|
+
var eO = class e extends KB {
|
|
56844
56891
|
buildFillStyleEntry(e, t) {
|
|
56845
56892
|
switch (e) {
|
|
56846
56893
|
case "a:solidFill": return {
|
|
@@ -56896,11 +56943,11 @@ var QB = class e extends ZB {
|
|
|
56896
56943
|
const t = e[i], o = n[i][t];
|
|
56897
56944
|
o && (r.push(this.buildFillStyleEntry(i, o)), e[i] = t + 1);
|
|
56898
56945
|
}
|
|
56899
|
-
for (const t of
|
|
56946
|
+
for (const t of JB) for (; e[t] < n[t].length;) r.push(this.buildFillStyleEntry(t, n[t][e[t]])), e[t] += 1;
|
|
56900
56947
|
return r;
|
|
56901
56948
|
}
|
|
56902
56949
|
const r = [];
|
|
56903
|
-
for (const e of
|
|
56950
|
+
for (const e of JB) for (const t of n[e]) r.push(this.buildFillStyleEntry(e, t));
|
|
56904
56951
|
return r;
|
|
56905
56952
|
}
|
|
56906
56953
|
parseFillStyleList(e, t) {
|
|
@@ -57008,9 +57055,9 @@ var QB = class e extends ZB {
|
|
|
57008
57055
|
return i;
|
|
57009
57056
|
});
|
|
57010
57057
|
}
|
|
57011
|
-
},
|
|
57058
|
+
}, tO = class extends eO {
|
|
57012
57059
|
parseFormatScheme(e, t) {
|
|
57013
|
-
const n = String(e["@_name"] || "").trim() || void 0, r =
|
|
57060
|
+
const n = String(e["@_name"] || "").trim() || void 0, r = QB(t, "a:fillStyleLst"), i = QB(t, "a:bgFillStyleLst"), o = e["a:fillStyleLst"], a = this.parseFillStyleList(o, r), s = e["a:lnStyleLst"], l = this.parseLineStyleList(s), c = e["a:effectStyleLst"], d = this.parseEffectStyleList(c), p = e["a:bgFillStyleLst"];
|
|
57014
57061
|
return {
|
|
57015
57062
|
name: n,
|
|
57016
57063
|
fillStyles: a,
|
|
@@ -57099,7 +57146,7 @@ var QB = class e extends ZB {
|
|
|
57099
57146
|
return console.warn(`Failed to load theme override at ${n}:`, e), null;
|
|
57100
57147
|
}
|
|
57101
57148
|
}
|
|
57102
|
-
},
|
|
57149
|
+
}, nO = class extends tO {
|
|
57103
57150
|
resolveThemeEffectRef(e, t) {
|
|
57104
57151
|
const n = parseInt(String(e["@_idx"] || "0"), 10);
|
|
57105
57152
|
Number.isFinite(n) && n > 0 && (t.effectRefIdx = n);
|
|
@@ -57162,7 +57209,7 @@ var QB = class e extends ZB {
|
|
|
57162
57209
|
}
|
|
57163
57210
|
}
|
|
57164
57211
|
};
|
|
57165
|
-
var
|
|
57212
|
+
var rO = class extends nO {
|
|
57166
57213
|
async resolvePrimaryThemePath() {
|
|
57167
57214
|
const e = this.zip.file(/^ppt\/slideMasters\/slideMaster\d+\.xml$/);
|
|
57168
57215
|
if (!e || 0 === e.length) return;
|
|
@@ -57376,7 +57423,7 @@ var nO = class extends tO {
|
|
|
57376
57423
|
const t = await this.resolvePrimaryThemePath(), n = t ? e.find((e) => e.name === t) ?? e[0] : e[0], r = await this.parseThemePart(n.name);
|
|
57377
57424
|
r && (this.themeColorMap = r.colorMap, this.themeFontMap = r.fontMap, r.formatScheme && (this.themeFormatScheme = r.formatScheme)), await this.applySlideMasterColorMap(this.getDefaultSchemeColorMap()), await this.loadPerMasterThemes(), this.globalThemeColorMapSnapshot = { ...this.themeColorMap }, this.globalThemeFontMapSnapshot = { ...this.themeFontMap }, this.globalThemeFormatSchemeSnapshot = this.themeFormatScheme;
|
|
57378
57425
|
}
|
|
57379
|
-
},
|
|
57426
|
+
}, iO = class extends rO {
|
|
57380
57427
|
async getPrimaryThemeXml() {
|
|
57381
57428
|
const e = this.zip.file(/^ppt\/theme\/theme\d+\.xml$/);
|
|
57382
57429
|
if (!e || 0 === e.length) return;
|
|
@@ -57438,7 +57485,7 @@ var nO = class extends tO {
|
|
|
57438
57485
|
async applyTheme(e, t, n) {
|
|
57439
57486
|
await this.updateThemeColorScheme(e), await this.updateThemeFontScheme(t), n && await this.updateThemeName(n);
|
|
57440
57487
|
}
|
|
57441
|
-
},
|
|
57488
|
+
}, oO = class e extends iO {
|
|
57442
57489
|
async extractModernSlideComments(t) {
|
|
57443
57490
|
try {
|
|
57444
57491
|
const n = `${t.replace("slides/", "slides/_rels/")}.rels`, r = await this.zip.file(n)?.async("string");
|
|
@@ -57564,7 +57611,7 @@ var nO = class extends tO {
|
|
|
57564
57611
|
const t = e.split(/\s+/).map((e) => e.trim()).filter((e) => e.length > 0);
|
|
57565
57612
|
return 0 === t.length ? "U" : t.slice(0, 2).map((e) => e[0].toUpperCase()).join("");
|
|
57566
57613
|
}
|
|
57567
|
-
},
|
|
57614
|
+
}, aO = class extends oO {
|
|
57568
57615
|
async readXmlPartByRelationshipId(e, t) {
|
|
57569
57616
|
const n = String(t || "").trim();
|
|
57570
57617
|
if (0 === n.length) return;
|
|
@@ -57696,14 +57743,14 @@ var nO = class extends tO {
|
|
|
57696
57743
|
return n ? n.startsWith("#") ? n : `#${n}` : void 0;
|
|
57697
57744
|
}
|
|
57698
57745
|
};
|
|
57699
|
-
function
|
|
57746
|
+
function sO(e, t) {
|
|
57700
57747
|
for (const n of e ?? []) {
|
|
57701
57748
|
n.endParaRPr && (n.endParaStyle = t(n.endParaRPr));
|
|
57702
57749
|
for (const e of n.items) "run" === e.kind && e.run.rPr ? e.run.style = t(e.run.rPr) : "field" !== e.kind && "break" !== e.kind || !e.rPr || (e.style = t(e.rPr));
|
|
57703
57750
|
}
|
|
57704
57751
|
return e;
|
|
57705
57752
|
}
|
|
57706
|
-
var
|
|
57753
|
+
var lO = class e extends aO {
|
|
57707
57754
|
reportIncompleteSmartArtRelationships(e, t, n) {
|
|
57708
57755
|
const r = [
|
|
57709
57756
|
["dm", t?.dataRelId],
|
|
@@ -57881,7 +57928,7 @@ var sO = class e extends oO {
|
|
|
57881
57928
|
fontSize: n,
|
|
57882
57929
|
fontColor: r
|
|
57883
57930
|
};
|
|
57884
|
-
}(C, this.drawingShapeStyleDeps()), A = C ?
|
|
57931
|
+
}(C, this.drawingShapeStyleDeps()), A = C ? sO(jc({ "dgm:t": C }), (e) => this.extractTextRunStyle(e, void 0, void 0, !1)) : void 0, I = A ? $c(A) : k, M = A ? Bd({
|
|
57885
57932
|
id: String(e["@_modelId"] || `dsp-${t}`),
|
|
57886
57933
|
text: I ?? "",
|
|
57887
57934
|
paragraphs: A
|
|
@@ -57923,7 +57970,7 @@ var sO = class e extends oO {
|
|
|
57923
57970
|
};
|
|
57924
57971
|
}
|
|
57925
57972
|
};
|
|
57926
|
-
async function
|
|
57973
|
+
async function cO(e, t, n) {
|
|
57927
57974
|
const r = e.filter((e) => e.fillBlipEmbedId && !e.fillImageUrl);
|
|
57928
57975
|
if (0 === r.length) return;
|
|
57929
57976
|
const i = t.replace(/\/[^/]+$/u, ""), o = t.split("/").pop() ?? "", a = await n.readText(`${i}/_rels/${o}.rels`);
|
|
@@ -57947,7 +57994,7 @@ async function lO(e, t, n) {
|
|
|
57947
57994
|
o && (e.fillImageUrl = o);
|
|
57948
57995
|
}
|
|
57949
57996
|
}
|
|
57950
|
-
async function
|
|
57997
|
+
async function dO(e, t) {
|
|
57951
57998
|
const n = await t.readText(e);
|
|
57952
57999
|
if (!n) return [];
|
|
57953
58000
|
try {
|
|
@@ -57983,12 +58030,12 @@ async function cO(e, t) {
|
|
|
57983
58030
|
}
|
|
57984
58031
|
a.push(i);
|
|
57985
58032
|
}
|
|
57986
|
-
}), await
|
|
58033
|
+
}), await cO(a, e, t), a;
|
|
57987
58034
|
} catch {
|
|
57988
58035
|
return [];
|
|
57989
58036
|
}
|
|
57990
58037
|
}
|
|
57991
|
-
var
|
|
58038
|
+
var pO = {
|
|
57992
58039
|
list: "list",
|
|
57993
58040
|
process: "process",
|
|
57994
58041
|
cycle: "cycle",
|
|
@@ -57996,7 +58043,7 @@ var dO = {
|
|
|
57996
58043
|
relationship: "relationship",
|
|
57997
58044
|
matrix: "matrix",
|
|
57998
58045
|
pyramid: "pyramid"
|
|
57999
|
-
},
|
|
58046
|
+
}, uO = [
|
|
58000
58047
|
[/hier|org/u, "hierarchy"],
|
|
58001
58048
|
[/cycle|radial|circular/u, "cycle"],
|
|
58002
58049
|
[/process|flow|chevron|arrow|equation/u, "process"],
|
|
@@ -58009,7 +58056,7 @@ var dO = {
|
|
|
58009
58056
|
[/target/u, "target"],
|
|
58010
58057
|
[/list/u, "list"]
|
|
58011
58058
|
];
|
|
58012
|
-
var
|
|
58059
|
+
var hO = class e extends lO {
|
|
58013
58060
|
async getSmartArtDataForGraphicFrame(e, t) {
|
|
58014
58061
|
const n = this.xmlLookupService.getChildByLocalName(this.xmlLookupService.getChildByLocalName(t, "graphic"), "graphicData");
|
|
58015
58062
|
if (!this.xmlLookupService.getChildByLocalName(n, "relIds")) return;
|
|
@@ -58033,7 +58080,7 @@ var uO = class e extends sO {
|
|
|
58033
58080
|
if (0 === t.length) return null;
|
|
58034
58081
|
const n = String(e?.["@_type"] || "").trim() || void 0, r = [];
|
|
58035
58082
|
this.collectLocalTextValues(e, "t", r);
|
|
58036
|
-
const i =
|
|
58083
|
+
const i = sO(jc(e), (e) => this.extractTextRunStyle(e, void 0, void 0, !1)), o = zc(i), a = i ? $c(i) : r.join(""), s = this.extractSmartArtNodeStyle(e);
|
|
58037
58084
|
return {
|
|
58038
58085
|
id: t,
|
|
58039
58086
|
text: a,
|
|
@@ -58068,12 +58115,12 @@ var uO = class e extends sO {
|
|
|
58068
58115
|
};
|
|
58069
58116
|
}(f, (e) => this.compatibilityService.getXmlLocalName(e)), y = this.xmlLookupService.getChildrenArrayByLocalName(this.xmlLookupService.getChildByLocalName(f, "catLst"), "cat").map((e) => String(e?.["@_type"] || "")), x = function(e, t) {
|
|
58070
58117
|
for (const e of t) {
|
|
58071
|
-
const t =
|
|
58118
|
+
const t = pO[e.trim().toLowerCase()];
|
|
58072
58119
|
if (t) return t;
|
|
58073
58120
|
}
|
|
58074
58121
|
const n = e.toLowerCase();
|
|
58075
58122
|
if (n.length > 0) {
|
|
58076
|
-
for (const [e, t] of
|
|
58123
|
+
for (const [e, t] of uO) if (e.test(n)) return t;
|
|
58077
58124
|
}
|
|
58078
58125
|
}(String(f?.["@_uniqueId"] || ""), y), b = this.parseSmartArtChrome(a), T = r?.colorsRelId ?? "", S = await this.parseSmartArtColorTransform(e, T), w = this.xmlLookupService.getChildByLocalName(a, "extLst"), v = this.xmlLookupService.getChildrenArrayByLocalName(w, "ext").map((e) => this.xmlLookupService.getChildByLocalName(e, "dataModelExt")).find(Boolean), C = String(v?.["@_relId"] || "").trim(), _ = await this.resolveSmartArtDrawingPart(e, i, C), k = _ ? await this.parseSmartArtDrawingShapesFromPath(_.path) : [], P = _?.relId, L = r?.styleRelId ?? "", A = await this.parseSmartArtQuickStyle(e, L);
|
|
58079
58126
|
return {
|
|
@@ -58126,7 +58173,7 @@ var uO = class e extends sO {
|
|
|
58126
58173
|
}
|
|
58127
58174
|
}
|
|
58128
58175
|
async parseSmartArtDrawingShapesFromPath(e) {
|
|
58129
|
-
return
|
|
58176
|
+
return dO(e, this.drawingBlipDeps());
|
|
58130
58177
|
}
|
|
58131
58178
|
drawingBlipDeps() {
|
|
58132
58179
|
return {
|
|
@@ -58141,7 +58188,7 @@ var uO = class e extends sO {
|
|
|
58141
58188
|
getImageData: (e) => this.getImageData(e)
|
|
58142
58189
|
};
|
|
58143
58190
|
}
|
|
58144
|
-
},
|
|
58191
|
+
}, mO = class extends hO {
|
|
58145
58192
|
detectChartType(e) {
|
|
58146
58193
|
if (!e) return "unknown";
|
|
58147
58194
|
const t = {
|
|
@@ -58215,19 +58262,19 @@ var uO = class e extends sO {
|
|
|
58215
58262
|
return r.length > 0 ? r[0] : "Series";
|
|
58216
58263
|
}
|
|
58217
58264
|
};
|
|
58218
|
-
function
|
|
58265
|
+
function fO(e) {
|
|
58219
58266
|
if (!e) return;
|
|
58220
58267
|
const t = e["@_val"];
|
|
58221
58268
|
return null == t || "" === t || "0" !== t && "false" !== t;
|
|
58222
58269
|
}
|
|
58223
|
-
function
|
|
58270
|
+
function gO(e) {
|
|
58224
58271
|
if (!e) return;
|
|
58225
58272
|
const t = e["@_val"];
|
|
58226
58273
|
if (null == t || "" === t) return;
|
|
58227
58274
|
const n = Number.parseFloat(String(t));
|
|
58228
58275
|
return Number.isFinite(n) ? n : void 0;
|
|
58229
58276
|
}
|
|
58230
|
-
var
|
|
58277
|
+
var yO = class extends mO {
|
|
58231
58278
|
parsePlotVisOnly(e) {
|
|
58232
58279
|
if (!e) return;
|
|
58233
58280
|
const t = this.xmlLookupService.getChildByLocalName(e, "plotVisOnly");
|
|
@@ -58254,16 +58301,16 @@ var gO = class extends hO {
|
|
|
58254
58301
|
const e = String(o);
|
|
58255
58302
|
"auto" !== e && "cust" !== e && "percent" !== e && "pos" !== e && "val" !== e || (r.splitType = e);
|
|
58256
58303
|
}
|
|
58257
|
-
const a =
|
|
58304
|
+
const a = gO(this.xmlLookupService.getChildByLocalName(e, "splitPos"));
|
|
58258
58305
|
void 0 !== a && (r.splitPos = a);
|
|
58259
|
-
const s =
|
|
58306
|
+
const s = gO(this.xmlLookupService.getChildByLocalName(e, "secondPieSize"));
|
|
58260
58307
|
void 0 !== s && (r.secondPieSize = s);
|
|
58261
|
-
const l =
|
|
58308
|
+
const l = gO(this.xmlLookupService.getChildByLocalName(e, "gapWidth"));
|
|
58262
58309
|
void 0 !== l && (r.gapWidth = l);
|
|
58263
58310
|
this.xmlLookupService.getChildrenArrayByLocalName(e, "serLines").length > 0 && (r.serLines = !0);
|
|
58264
58311
|
const c = this.xmlLookupService.getChildByLocalName(e, "custSplit");
|
|
58265
58312
|
if (c) {
|
|
58266
|
-
const e = this.xmlLookupService.getChildrenArrayByLocalName(c, "secondPiePt").map((e) =>
|
|
58313
|
+
const e = this.xmlLookupService.getChildrenArrayByLocalName(c, "secondPiePt").map((e) => gO(e)).filter((e) => void 0 !== e && Number.isFinite(e));
|
|
58267
58314
|
e.length > 0 && (r.custSplit = e);
|
|
58268
58315
|
}
|
|
58269
58316
|
return r;
|
|
@@ -58272,29 +58319,29 @@ var gO = class extends hO {
|
|
|
58272
58319
|
if (!e) return;
|
|
58273
58320
|
const t = this.xmlLookupService.getChildByLocalName(e, "view3D");
|
|
58274
58321
|
if (!t) return;
|
|
58275
|
-
const n = {}, r =
|
|
58322
|
+
const n = {}, r = gO(this.xmlLookupService.getChildByLocalName(t, "rotX"));
|
|
58276
58323
|
void 0 !== r && (n.rotX = r);
|
|
58277
|
-
const i =
|
|
58324
|
+
const i = gO(this.xmlLookupService.getChildByLocalName(t, "rotY"));
|
|
58278
58325
|
void 0 !== i && (n.rotY = i);
|
|
58279
|
-
const o =
|
|
58326
|
+
const o = gO(this.xmlLookupService.getChildByLocalName(t, "depthPercent"));
|
|
58280
58327
|
void 0 !== o && (n.depthPercent = o);
|
|
58281
|
-
const a =
|
|
58328
|
+
const a = gO(this.xmlLookupService.getChildByLocalName(t, "perspective"));
|
|
58282
58329
|
void 0 !== a && (n.perspective = a);
|
|
58283
|
-
const s =
|
|
58330
|
+
const s = gO(this.xmlLookupService.getChildByLocalName(t, "hPercent"));
|
|
58284
58331
|
void 0 !== s && (n.hPercent = s);
|
|
58285
|
-
const l =
|
|
58332
|
+
const l = fO(this.xmlLookupService.getChildByLocalName(t, "rAngAx"));
|
|
58286
58333
|
return void 0 !== l && (n.rAngAx = l), Object.keys(n).length > 0 ? n : void 0;
|
|
58287
58334
|
}
|
|
58288
58335
|
parseChartChrome(e) {
|
|
58289
58336
|
if (!e) return;
|
|
58290
|
-
const t = {}, n =
|
|
58337
|
+
const t = {}, n = fO(this.xmlLookupService.getChildByLocalName(e, "autoTitleDeleted"));
|
|
58291
58338
|
void 0 !== n && (t.autoTitleDeleted = n);
|
|
58292
58339
|
const i = this.xmlLookupService.getChildByLocalName(e, "dispBlanksAs")?.["@_val"];
|
|
58293
58340
|
if (null != i) {
|
|
58294
58341
|
const e = String(i);
|
|
58295
58342
|
"gap" !== e && "zero" !== e && "span" !== e || (t.dispBlanksAs = e);
|
|
58296
58343
|
}
|
|
58297
|
-
const o =
|
|
58344
|
+
const o = fO(this.xmlLookupService.getChildByLocalName(e, "showDLblsOverMax"));
|
|
58298
58345
|
return void 0 !== o && (t.showDLblsOverMax = o), Object.keys(t).length > 0 ? t : void 0;
|
|
58299
58346
|
}
|
|
58300
58347
|
parseUserShapesXml(e) {
|
|
@@ -58313,7 +58360,7 @@ var gO = class extends hO {
|
|
|
58313
58360
|
for (const [e, r] of Object.entries(t)) e.startsWith("@_") && null != r && (n[e.slice(2)] = String(r));
|
|
58314
58361
|
return Object.keys(n).length > 0 ? n : void 0;
|
|
58315
58362
|
}
|
|
58316
|
-
},
|
|
58363
|
+
}, xO = class extends yO {
|
|
58317
58364
|
async parseChartExternalData(e, t) {
|
|
58318
58365
|
if (!e) return;
|
|
58319
58366
|
const n = this.xmlLookupService.getChildByLocalName(e, "externalData");
|
|
@@ -58418,7 +58465,7 @@ var gO = class extends hO {
|
|
|
58418
58465
|
return [];
|
|
58419
58466
|
}
|
|
58420
58467
|
}
|
|
58421
|
-
},
|
|
58468
|
+
}, bO = class extends xO {
|
|
58422
58469
|
async parseChartColorStyle(e) {
|
|
58423
58470
|
try {
|
|
58424
58471
|
const t = (await this.readChartRels(e)).find((e) => e.type.includes("chartColorStyle") || e.type.includes("chartColor"));
|
|
@@ -58467,14 +58514,14 @@ var gO = class extends hO {
|
|
|
58467
58514
|
const n = this.themeColorMap[t];
|
|
58468
58515
|
return n ? n.startsWith("#") ? n : `#${n}` : void 0;
|
|
58469
58516
|
}
|
|
58470
|
-
},
|
|
58517
|
+
}, TO = /* @__PURE__ */ new Set([
|
|
58471
58518
|
"none",
|
|
58472
58519
|
"line",
|
|
58473
58520
|
"lineMarker",
|
|
58474
58521
|
"marker",
|
|
58475
58522
|
"smooth",
|
|
58476
58523
|
"smoothMarker"
|
|
58477
|
-
]),
|
|
58524
|
+
]), SO = class extends bO {
|
|
58478
58525
|
async getChartDataForGraphicFrame(e, t) {
|
|
58479
58526
|
const n = this.xmlLookupService.getChildByLocalName(this.xmlLookupService.getChildByLocalName(t, "graphic"), "graphicData"), r = this.xmlLookupService.getChildByLocalName(n, "chart"), i = String(r?.["@_r:id"] || "").trim();
|
|
58480
58527
|
if (0 === i.length) return;
|
|
@@ -58517,7 +58564,7 @@ var gO = class extends hO {
|
|
|
58517
58564
|
const e = String(v["@_val"]).trim();
|
|
58518
58565
|
w = "stacked" === e ? "stacked" : "percentStacked" === e ? "percentStacked" : "clustered";
|
|
58519
58566
|
}
|
|
58520
|
-
const C = this.parseChartBoolVal(m, "varyColors"), _ = this.parseChartNumberVal(m, "firstSliceAng"), k = this.parseChartNumberVal(m, "holeSize"), P = this.parseChartNumberVal(m, "gapWidth"), L = this.parseChartNumberVal(m, "overlap"), A = this.xmlLookupService.getChildByLocalName(m, "scatterStyle"), I = String(A?.["@_val"] ?? "").trim(), M =
|
|
58567
|
+
const C = this.parseChartBoolVal(m, "varyColors"), _ = this.parseChartNumberVal(m, "firstSliceAng"), k = this.parseChartNumberVal(m, "holeSize"), P = this.parseChartNumberVal(m, "gapWidth"), L = this.parseChartNumberVal(m, "overlap"), A = this.xmlLookupService.getChildByLocalName(m, "scatterStyle"), I = String(A?.["@_val"] ?? "").trim(), M = TO.has(I) ? I : void 0;
|
|
58521
58568
|
let F;
|
|
58522
58569
|
const R = this.xmlLookupService.getChildByLocalName(m, "barDir");
|
|
58523
58570
|
void 0 !== R?.["@_val"] && (F = "bar" === String(R["@_val"]).trim() ? "bar" : "col");
|
|
@@ -58810,7 +58857,7 @@ var gO = class extends hO {
|
|
|
58810
58857
|
...v ? { protection: v } : {}
|
|
58811
58858
|
};
|
|
58812
58859
|
}
|
|
58813
|
-
},
|
|
58860
|
+
}, wO = class extends SO {
|
|
58814
58861
|
parseEditorAnimations(e) {
|
|
58815
58862
|
return this.editorAnimationService.parseEditorAnimations(e);
|
|
58816
58863
|
}
|
|
@@ -58907,7 +58954,7 @@ var gO = class extends hO {
|
|
|
58907
58954
|
return a && (o.lang = a), void 0 !== i["@_invalStChars"] && (o.invalStChars = i["@_invalStChars"]), void 0 !== i["@_invalEndChars"] && (o.invalEndChars = i["@_invalEndChars"]), o;
|
|
58908
58955
|
}(this.presentationData ?? void 0);
|
|
58909
58956
|
}
|
|
58910
|
-
},
|
|
58957
|
+
}, vO = class extends wO {
|
|
58911
58958
|
async getEmbeddedFonts(e) {
|
|
58912
58959
|
if (!e || 0 === e.fonts.length) return [];
|
|
58913
58960
|
const t = await this.loadPresentationFontRels();
|
|
@@ -59059,7 +59106,7 @@ var gO = class extends hO {
|
|
|
59059
59106
|
}
|
|
59060
59107
|
}
|
|
59061
59108
|
}
|
|
59062
|
-
},
|
|
59109
|
+
}, CO = class e extends vO {
|
|
59063
59110
|
isZipContainer(e) {
|
|
59064
59111
|
const t = new Uint8Array(e);
|
|
59065
59112
|
return !(t.byteLength < 4) && 80 === t[0] && 75 === t[1] && (3 === t[2] && 4 === t[3] || 5 === t[2] && 6 === t[3] || 7 === t[2] && 8 === t[3]);
|
|
@@ -59250,7 +59297,7 @@ var gO = class extends hO {
|
|
|
59250
59297
|
parseSlideActiveXControls: (e) => this.parseSlideActiveXControls(e)
|
|
59251
59298
|
}) : [];
|
|
59252
59299
|
}
|
|
59253
|
-
},
|
|
59300
|
+
}, _O = class extends CO {
|
|
59254
59301
|
async buildLoadData(e, t, n) {
|
|
59255
59302
|
const r = this.extractHeaderFooter(), i = await this.parsePresentationProperties(), o = await this.parseViewProperties();
|
|
59256
59303
|
this.loadedViewProperties = o;
|
|
@@ -59483,7 +59530,7 @@ var gO = class extends hO {
|
|
|
59483
59530
|
};
|
|
59484
59531
|
return r.rawXml && this.extractBackgroundColor(r.rawXml) || p && (u.backgroundColor = p), n[e] = u, u;
|
|
59485
59532
|
}
|
|
59486
|
-
},
|
|
59533
|
+
}, kO = class e extends _O {
|
|
59487
59534
|
constructor(n = new bv()) {
|
|
59488
59535
|
super(), this.dependencyFactory = n, this.zip = new t.default(), this.parser = this.dependencyFactory.createParser(), this.builder = this.dependencyFactory.createBuilder(), this.elementXmlBuilder = new ta({
|
|
59489
59536
|
emuPerPx: e.EMU_PER_PX,
|
|
@@ -59573,12 +59620,12 @@ var gO = class extends hO {
|
|
|
59573
59620
|
});
|
|
59574
59621
|
this.xmlLookupService = i.xmlLookupService, this.compatibilityService = i.compatibilityService, this.slideLoaderService = i.slideLoaderService, this.templateBackgroundService = i.templateBackgroundService, this.slideTransitionService = i.slideTransitionService, this.editorAnimationService = i.editorAnimationService, this.nativeAnimationService = i.nativeAnimationService, this.animationWriteService = i.animationWriteService, this.documentPropertiesUpdater = i.documentPropertiesUpdater;
|
|
59575
59622
|
}
|
|
59576
|
-
},
|
|
59623
|
+
}, PO = class extends kO {}, LO = class extends Error {
|
|
59577
59624
|
constructor(e) {
|
|
59578
59625
|
super(e), this.name = "PptParseError";
|
|
59579
59626
|
}
|
|
59580
59627
|
};
|
|
59581
|
-
function
|
|
59628
|
+
function AO(e, t) {
|
|
59582
59629
|
if (t < 0 || t + 8 > e.byteLength) return;
|
|
59583
59630
|
const n = e.getUint16(t, !0);
|
|
59584
59631
|
return {
|
|
@@ -59590,50 +59637,50 @@ function LO(e, t) {
|
|
|
59590
59637
|
dataOffset: t + 8
|
|
59591
59638
|
};
|
|
59592
59639
|
}
|
|
59593
|
-
function
|
|
59594
|
-
const n =
|
|
59595
|
-
if (!n) throw new
|
|
59640
|
+
function IO(e, t) {
|
|
59641
|
+
const n = AO(e, t);
|
|
59642
|
+
if (!n) throw new LO(`Record header out of bounds at offset ${t}`);
|
|
59596
59643
|
return n;
|
|
59597
59644
|
}
|
|
59598
|
-
function
|
|
59645
|
+
function MO(e) {
|
|
59599
59646
|
return 15 === e.recVer;
|
|
59600
59647
|
}
|
|
59601
|
-
function*
|
|
59648
|
+
function* FO(e, t, n) {
|
|
59602
59649
|
let r = t;
|
|
59603
59650
|
const i = Math.min(n, e.byteLength);
|
|
59604
59651
|
for (; r + 8 <= i;) {
|
|
59605
|
-
const t =
|
|
59652
|
+
const t = AO(e, r);
|
|
59606
59653
|
if (!t) return;
|
|
59607
59654
|
if (t.dataOffset + t.recLen > i) return;
|
|
59608
59655
|
yield t, r = t.dataOffset + t.recLen;
|
|
59609
59656
|
}
|
|
59610
59657
|
}
|
|
59611
|
-
function*
|
|
59612
|
-
yield*
|
|
59613
|
-
}
|
|
59614
|
-
function RO(e, t, n, r) {
|
|
59615
|
-
for (const i of FO(e, t)) if (i.recType === n && void 0 === r) return i;
|
|
59658
|
+
function* RO(e, t) {
|
|
59659
|
+
yield* FO(e, t.dataOffset, t.dataOffset + t.recLen);
|
|
59616
59660
|
}
|
|
59617
59661
|
function DO(e, t, n, r) {
|
|
59618
|
-
for (const i of
|
|
59662
|
+
for (const i of RO(e, t)) if (i.recType === n && void 0 === r) return i;
|
|
59663
|
+
}
|
|
59664
|
+
function NO(e, t, n, r) {
|
|
59665
|
+
for (const i of RO(e, t)) {
|
|
59619
59666
|
if (i.recType === n && void 0 === r) return i;
|
|
59620
|
-
if (
|
|
59621
|
-
const t =
|
|
59667
|
+
if (MO(i)) {
|
|
59668
|
+
const t = NO(e, i, n, r);
|
|
59622
59669
|
if (t) return t;
|
|
59623
59670
|
}
|
|
59624
59671
|
}
|
|
59625
59672
|
}
|
|
59626
|
-
var
|
|
59627
|
-
function
|
|
59673
|
+
var BO = 1e3, OO = 1001, EO = 1006, jO = 1007, $O = 1010, zO = 1011, XO = 1016, UO = 1035, GO = 1036, WO = 2005, VO = 2032, HO = 3011, qO = 3998, YO = 3999, ZO = 4e3, KO = 4001, JO = 4003, QO = 4008, eE = 4080, tE = 4085, nE = 4086, rE = 4023, iE = 6002, oE = 61441, aE = 61442, sE = 61443, lE = 61444, cE = 61447, dE = 61449, pE = 61450, uE = 61451, hE = 61453, mE = 61455, fE = 61456, gE = 61457, yE = 61464, xE = 61719, bE = 61466, TE = 61467, SE = 61468, wE = 61469, vE = 61470, CE = 61471, _E = 61481, kE = 61482, PE = 0, LE = 6;
|
|
59674
|
+
function AE(e) {
|
|
59628
59675
|
return Math.round(1587.5 * e);
|
|
59629
59676
|
}
|
|
59630
|
-
var
|
|
59677
|
+
var IE = class extends Error {
|
|
59631
59678
|
isEncrypted = !0;
|
|
59632
59679
|
constructor(e = "This is a password-protected PowerPoint 97-2003 (.ppt) file. Encrypted .ppt files are not supported.") {
|
|
59633
59680
|
super(e), this.name = "EncryptedPptError";
|
|
59634
59681
|
}
|
|
59635
59682
|
};
|
|
59636
|
-
var
|
|
59683
|
+
var ME = 0, FE = 1, RE = 2, DE = 3, NE = 4, BE = 5, OE = 6, EE = 7, jE = [
|
|
59637
59684
|
"FFFFFF",
|
|
59638
59685
|
"000000",
|
|
59639
59686
|
"808080",
|
|
@@ -59643,38 +59690,38 @@ var IE = 0, ME = 1, FE = 2, RE = 3, DE = 4, NE = 5, BE = 6, OE = 7, EE = [
|
|
|
59643
59690
|
"009999",
|
|
59644
59691
|
"99CC00"
|
|
59645
59692
|
];
|
|
59646
|
-
function
|
|
59693
|
+
function $E(e, t, n) {
|
|
59647
59694
|
return [
|
|
59648
59695
|
e,
|
|
59649
59696
|
t,
|
|
59650
59697
|
n
|
|
59651
59698
|
].map((e) => (255 & e).toString(16).padStart(2, "0").toUpperCase()).join("");
|
|
59652
59699
|
}
|
|
59653
|
-
function
|
|
59700
|
+
function zE(e, t) {
|
|
59654
59701
|
const n = [];
|
|
59655
59702
|
for (let r = 0; r < 8 && 4 * (r + 1) <= t.recLen; r++) {
|
|
59656
59703
|
const i = e.getUint32(t.dataOffset + 4 * r, !0);
|
|
59657
|
-
n.push(
|
|
59704
|
+
n.push($E(255 & i, i >>> 8 & 255, i >>> 16 & 255));
|
|
59658
59705
|
}
|
|
59659
|
-
for (; n.length < 8;) n.push(
|
|
59706
|
+
for (; n.length < 8;) n.push(jE[n.length]);
|
|
59660
59707
|
return n;
|
|
59661
59708
|
}
|
|
59662
|
-
function
|
|
59663
|
-
for (const n of
|
|
59709
|
+
function XE(e, t) {
|
|
59710
|
+
for (const n of RO(e, t)) if (n.recType === VO && 1 === n.recInstance) return zE(e, n);
|
|
59664
59711
|
}
|
|
59665
|
-
function
|
|
59666
|
-
return 254 === r ?
|
|
59712
|
+
function UE(e, t, n, r, i) {
|
|
59713
|
+
return 254 === r ? $E(e, t, n) : 255 !== r ? r < i.length ? i[7 & r] : $E(e, t, n) : void 0;
|
|
59667
59714
|
}
|
|
59668
|
-
function
|
|
59715
|
+
function GE(e, t) {
|
|
59669
59716
|
const n = e >>> 24 & 255;
|
|
59670
|
-
if (8 & n) return t[7 & e] ??
|
|
59671
|
-
if (16 & n) return 240 === (255 & e) ? t[
|
|
59672
|
-
return
|
|
59717
|
+
if (8 & n) return t[7 & e] ?? jE[7 & e];
|
|
59718
|
+
if (16 & n) return 240 === (255 & e) ? t[NE] : t[FE];
|
|
59719
|
+
return $E(255 & e, e >>> 8 & 255, e >>> 16 & 255);
|
|
59673
59720
|
}
|
|
59674
|
-
function
|
|
59675
|
-
const n =
|
|
59676
|
-
if (n.recType !==
|
|
59677
|
-
if (28 !== n.recLen && 32 !== n.recLen) throw new
|
|
59721
|
+
function WE(e, t) {
|
|
59722
|
+
const n = IO(e, t);
|
|
59723
|
+
if (n.recType !== tE) throw new LO(`Expected UserEditAtom at offset ${t}, found recType 0x${n.recType.toString(16)}`);
|
|
59724
|
+
if (28 !== n.recLen && 32 !== n.recLen) throw new LO(`UserEditAtom has invalid length ${n.recLen}`);
|
|
59678
59725
|
const r = n.dataOffset;
|
|
59679
59726
|
return {
|
|
59680
59727
|
offsetLastEdit: e.getUint32(r + 8, !0),
|
|
@@ -59683,9 +59730,9 @@ function GE(e, t) {
|
|
|
59683
59730
|
encryptSessionPersistIdRef: 32 === n.recLen ? e.getUint32(r + 28, !0) : void 0
|
|
59684
59731
|
};
|
|
59685
59732
|
}
|
|
59686
|
-
function
|
|
59687
|
-
const n =
|
|
59688
|
-
if (n.recType !==
|
|
59733
|
+
function VE(e, t) {
|
|
59734
|
+
const n = IO(e, t);
|
|
59735
|
+
if (n.recType !== iE) throw new LO(`Expected PersistDirectoryAtom at offset ${t}, found recType 0x${n.recType.toString(16)}`);
|
|
59689
59736
|
const r = [];
|
|
59690
59737
|
let i = n.dataOffset;
|
|
59691
59738
|
const o = n.dataOffset + n.recLen;
|
|
@@ -59696,49 +59743,49 @@ function WE(e, t) {
|
|
|
59696
59743
|
}
|
|
59697
59744
|
return r;
|
|
59698
59745
|
}
|
|
59699
|
-
var
|
|
59700
|
-
[
|
|
59746
|
+
var HE = /* @__PURE__ */ new Map([
|
|
59747
|
+
[bE, {
|
|
59701
59748
|
extension: "emf",
|
|
59702
59749
|
isMetafile: !0,
|
|
59703
59750
|
singleUidInstance: 980
|
|
59704
59751
|
}],
|
|
59705
|
-
[
|
|
59752
|
+
[TE, {
|
|
59706
59753
|
extension: "wmf",
|
|
59707
59754
|
isMetafile: !0,
|
|
59708
59755
|
singleUidInstance: 534
|
|
59709
59756
|
}],
|
|
59710
|
-
[
|
|
59757
|
+
[SE, {
|
|
59711
59758
|
extension: "pict",
|
|
59712
59759
|
isMetafile: !0,
|
|
59713
59760
|
singleUidInstance: 1346
|
|
59714
59761
|
}],
|
|
59715
|
-
[
|
|
59762
|
+
[wE, {
|
|
59716
59763
|
extension: "jpg",
|
|
59717
59764
|
isMetafile: !1,
|
|
59718
59765
|
singleUidInstance: 1130
|
|
59719
59766
|
}],
|
|
59720
|
-
[
|
|
59767
|
+
[vE, {
|
|
59721
59768
|
extension: "png",
|
|
59722
59769
|
isMetafile: !1,
|
|
59723
59770
|
singleUidInstance: 1760
|
|
59724
59771
|
}],
|
|
59725
|
-
[
|
|
59772
|
+
[CE, {
|
|
59726
59773
|
extension: "bmp",
|
|
59727
59774
|
isMetafile: !1,
|
|
59728
59775
|
singleUidInstance: 1960
|
|
59729
59776
|
}],
|
|
59730
|
-
[
|
|
59777
|
+
[_E, {
|
|
59731
59778
|
extension: "tiff",
|
|
59732
59779
|
isMetafile: !1,
|
|
59733
59780
|
singleUidInstance: 1764
|
|
59734
59781
|
}],
|
|
59735
|
-
[
|
|
59782
|
+
[kE, {
|
|
59736
59783
|
extension: "jpg",
|
|
59737
59784
|
isMetafile: !1,
|
|
59738
59785
|
singleUidInstance: 1762
|
|
59739
59786
|
}]
|
|
59740
59787
|
]);
|
|
59741
|
-
function
|
|
59788
|
+
function qE(e) {
|
|
59742
59789
|
if (e.length < 40) return e;
|
|
59743
59790
|
const t = new DataView(e.buffer, e.byteOffset, e.byteLength), n = t.getUint32(0, !0), r = t.getUint16(14, !0), i = t.getUint32(16, !0);
|
|
59744
59791
|
let o = t.getUint32(32, !0);
|
|
@@ -59748,8 +59795,8 @@ function HE(e) {
|
|
|
59748
59795
|
const s = new Uint8Array(14 + e.length), l = new DataView(s.buffer);
|
|
59749
59796
|
return s[0] = 66, s[1] = 77, l.setUint32(2, s.length, !0), l.setUint32(10, a, !0), s.set(e, 14), s;
|
|
59750
59797
|
}
|
|
59751
|
-
async function
|
|
59752
|
-
const r =
|
|
59798
|
+
async function YE(e, t, n) {
|
|
59799
|
+
const r = HE.get(n.recType);
|
|
59753
59800
|
if (!r) return;
|
|
59754
59801
|
const i = n.recInstance === r.singleUidInstance ? 1 : 2;
|
|
59755
59802
|
let o = n.dataOffset + 16 * i;
|
|
@@ -59779,15 +59826,15 @@ async function qE(e, t, n) {
|
|
|
59779
59826
|
}
|
|
59780
59827
|
if (o += 1, o > a) return;
|
|
59781
59828
|
const s = t.subarray(o, a);
|
|
59782
|
-
return n.recType ===
|
|
59829
|
+
return n.recType === CE ? {
|
|
59783
59830
|
extension: "bmp",
|
|
59784
|
-
bytes:
|
|
59831
|
+
bytes: qE(s)
|
|
59785
59832
|
} : {
|
|
59786
59833
|
extension: r.extension,
|
|
59787
59834
|
bytes: s.slice()
|
|
59788
59835
|
};
|
|
59789
59836
|
}
|
|
59790
|
-
var
|
|
59837
|
+
var ZE = class {
|
|
59791
59838
|
constructor(e, t, n) {
|
|
59792
59839
|
this.view = e, this.end = n, this.pos = t;
|
|
59793
59840
|
}
|
|
@@ -59821,22 +59868,22 @@ var YE = class {
|
|
|
59821
59868
|
skip(e) {
|
|
59822
59869
|
this.pos += e;
|
|
59823
59870
|
}
|
|
59824
|
-
},
|
|
59871
|
+
}, KE = {
|
|
59825
59872
|
0: "l",
|
|
59826
59873
|
1: "ctr",
|
|
59827
59874
|
2: "r",
|
|
59828
59875
|
3: "just"
|
|
59829
59876
|
};
|
|
59830
|
-
function
|
|
59877
|
+
function JE(e, t, n) {
|
|
59831
59878
|
if (!e.canRead(4)) return !1;
|
|
59832
59879
|
const r = e.u32(), i = (e) => 0 !== (r & e);
|
|
59833
59880
|
try {
|
|
59834
59881
|
let o = 0;
|
|
59835
59882
|
if (15 & r && (o = e.u16(), i(1) && (n.hasBullet = !!(1 & o))), i(128) && (n.bulletChar = String.fromCharCode(e.u16())), i(16) && (n.bulletFontRef = e.u16()), i(64) && e.i16(), i(32)) {
|
|
59836
59883
|
const [r, i, o, a] = e.bytes4();
|
|
59837
|
-
n.bulletColorRgb =
|
|
59884
|
+
n.bulletColorRgb = UE(r, i, o, a, t);
|
|
59838
59885
|
}
|
|
59839
|
-
if (i(2048) && (n.align =
|
|
59886
|
+
if (i(2048) && (n.align = KE[e.u16()]), i(4096) && e.i16(), i(8192) && e.i16(), i(16384) && e.i16(), i(256) && (n.leftMarginMu = e.u16()), i(1024) && (n.indentMu = e.u16()), i(32768) && e.u16(), i(1048576)) {
|
|
59840
59887
|
const t = e.u16();
|
|
59841
59888
|
e.skip(4 * t);
|
|
59842
59889
|
}
|
|
@@ -59846,7 +59893,7 @@ function KE(e, t, n) {
|
|
|
59846
59893
|
}
|
|
59847
59894
|
return !0;
|
|
59848
59895
|
}
|
|
59849
|
-
function
|
|
59896
|
+
function QE(e, t, n) {
|
|
59850
59897
|
if (!e.canRead(4)) return !1;
|
|
59851
59898
|
const r = e.u32(), i = (e) => 0 !== (r & e);
|
|
59852
59899
|
try {
|
|
@@ -59860,7 +59907,7 @@ function JE(e, t, n) {
|
|
|
59860
59907
|
}
|
|
59861
59908
|
if (i(8388608) && e.u16(), i(131072) && (n.sizePt = e.i16()), i(262144)) {
|
|
59862
59909
|
const [r, i, o, a] = e.bytes4();
|
|
59863
|
-
n.colorRgb =
|
|
59910
|
+
n.colorRgb = UE(r, i, o, a, t);
|
|
59864
59911
|
}
|
|
59865
59912
|
i(524288) && e.i16();
|
|
59866
59913
|
} catch {
|
|
@@ -59868,37 +59915,37 @@ function JE(e, t, n) {
|
|
|
59868
59915
|
}
|
|
59869
59916
|
return !0;
|
|
59870
59917
|
}
|
|
59871
|
-
function
|
|
59872
|
-
const i = new
|
|
59918
|
+
function ej(e, t, n, r) {
|
|
59919
|
+
const i = new ZE(e, t, n), o = {
|
|
59873
59920
|
count: 0,
|
|
59874
59921
|
indentLevel: 0
|
|
59875
59922
|
};
|
|
59876
|
-
if (
|
|
59923
|
+
if (JE(i, r, o)) return {
|
|
59877
59924
|
props: o,
|
|
59878
59925
|
next: i.pos
|
|
59879
59926
|
};
|
|
59880
59927
|
}
|
|
59881
|
-
function
|
|
59882
|
-
const i = new
|
|
59883
|
-
if (
|
|
59928
|
+
function tj(e, t, n, r) {
|
|
59929
|
+
const i = new ZE(e, t, n), o = { count: 0 };
|
|
59930
|
+
if (QE(i, r, o)) return {
|
|
59884
59931
|
props: o,
|
|
59885
59932
|
next: i.pos
|
|
59886
59933
|
};
|
|
59887
59934
|
}
|
|
59888
|
-
function
|
|
59889
|
-
const o = new
|
|
59935
|
+
function nj(e, t, n, r, i) {
|
|
59936
|
+
const o = new ZE(e, t, t + n), a = r + 1, s = [], l = [];
|
|
59890
59937
|
let c = 0;
|
|
59891
59938
|
for (; c < a && o.canRead(6);) {
|
|
59892
59939
|
const e = o.u32(), t = {
|
|
59893
59940
|
count: e,
|
|
59894
59941
|
indentLevel: o.u16()
|
|
59895
59942
|
};
|
|
59896
|
-
if (!
|
|
59943
|
+
if (!JE(o, i, t)) break;
|
|
59897
59944
|
s.push(t), c += e;
|
|
59898
59945
|
}
|
|
59899
59946
|
for (c = 0; c < a && o.canRead(8);) {
|
|
59900
59947
|
const e = o.u32(), t = { count: e };
|
|
59901
|
-
if (!
|
|
59948
|
+
if (!QE(o, i, t)) break;
|
|
59902
59949
|
l.push(t), c += e;
|
|
59903
59950
|
}
|
|
59904
59951
|
return {
|
|
@@ -59906,7 +59953,7 @@ function tj(e, t, n, r, i) {
|
|
|
59906
59953
|
charRuns: l
|
|
59907
59954
|
};
|
|
59908
59955
|
}
|
|
59909
|
-
var
|
|
59956
|
+
var rj = {
|
|
59910
59957
|
128: 8364,
|
|
59911
59958
|
130: 8218,
|
|
59912
59959
|
131: 402,
|
|
@@ -59935,43 +59982,43 @@ var nj = {
|
|
|
59935
59982
|
158: 382,
|
|
59936
59983
|
159: 376
|
|
59937
59984
|
};
|
|
59938
|
-
function
|
|
59985
|
+
function ij(e, t, n) {
|
|
59939
59986
|
let r = "";
|
|
59940
59987
|
for (let i = 0; i < n; i++) {
|
|
59941
59988
|
const n = e.getUint8(t + i);
|
|
59942
|
-
r += String.fromCharCode(
|
|
59989
|
+
r += String.fromCharCode(rj[n] ?? n);
|
|
59943
59990
|
}
|
|
59944
59991
|
return r;
|
|
59945
59992
|
}
|
|
59946
|
-
function
|
|
59993
|
+
function oj(e, t, n) {
|
|
59947
59994
|
let r = "";
|
|
59948
59995
|
for (let i = 0; i + 1 < n; i += 2) r += String.fromCharCode(e.getUint16(t + i, !0));
|
|
59949
59996
|
return r;
|
|
59950
59997
|
}
|
|
59951
|
-
function
|
|
59998
|
+
function aj(e, t, n, r) {
|
|
59952
59999
|
const i = [];
|
|
59953
60000
|
let o;
|
|
59954
|
-
for (const a of
|
|
60001
|
+
for (const a of FO(e, t, n)) a.recType === YO ? (o = {
|
|
59955
60002
|
textType: a.recLen >= 4 ? e.getUint32(a.dataOffset, !0) : 0,
|
|
59956
60003
|
text: ""
|
|
59957
|
-
}, i.push(o)) : a.recType ===
|
|
60004
|
+
}, i.push(o)) : a.recType === ZO && o ? o.text = oj(e, a.dataOffset, a.recLen) : a.recType === QO && o ? o.text = ij(e, a.dataOffset, a.recLen) : a.recType === KO && o && (o.styles = nj(e, a.dataOffset, a.recLen, o.text.length, r));
|
|
59958
60005
|
return i;
|
|
59959
60006
|
}
|
|
59960
|
-
function
|
|
60007
|
+
function sj(e, t, n) {
|
|
59961
60008
|
const r = /* @__PURE__ */ new Map();
|
|
59962
60009
|
let i, o;
|
|
59963
60010
|
const a = (t) => {
|
|
59964
|
-
void 0 !== i && void 0 !== o && r.set(i,
|
|
60011
|
+
void 0 !== i && void 0 !== o && r.set(i, aj(e, o, t, n));
|
|
59965
60012
|
}, s = t.dataOffset + t.recLen;
|
|
59966
|
-
for (const n of
|
|
60013
|
+
for (const n of FO(e, t.dataOffset, s)) n.recType === zO && n.recLen >= 4 && (a(n.headerOffset), i = e.getUint32(n.dataOffset, !0), o = n.dataOffset + n.recLen);
|
|
59967
60014
|
return a(s), r;
|
|
59968
60015
|
}
|
|
59969
|
-
function
|
|
60016
|
+
function lj(e, t) {
|
|
59970
60017
|
let n = 0;
|
|
59971
60018
|
for (const r of e) if (n += r.count, t < n) return r;
|
|
59972
60019
|
return e[e.length - 1];
|
|
59973
60020
|
}
|
|
59974
|
-
function
|
|
60021
|
+
function cj(e, t, n) {
|
|
59975
60022
|
if (0 === e.length) return [{
|
|
59976
60023
|
start: t,
|
|
59977
60024
|
end: n,
|
|
@@ -60002,14 +60049,14 @@ function lj(e, t, n) {
|
|
|
60002
60049
|
}
|
|
60003
60050
|
return r;
|
|
60004
60051
|
}
|
|
60005
|
-
function
|
|
60052
|
+
function dj(e, t, n) {
|
|
60006
60053
|
const r = { text: e };
|
|
60007
60054
|
return t ? (void 0 !== t.bold && (r.bold = t.bold), void 0 !== t.italic && (r.italic = t.italic), void 0 !== t.underline && (r.underline = t.underline), void 0 !== t.sizePt && (r.sizePt = t.sizePt), void 0 !== t.colorRgb && (r.colorRgb = t.colorRgb), void 0 !== t.fontRef && n[t.fontRef] && (r.fontName = n[t.fontRef]), r) : r;
|
|
60008
60055
|
}
|
|
60009
|
-
function
|
|
60010
|
-
t && (e.indentLevel = t.indentLevel, void 0 !== t.align && (e.align = t.align), void 0 !== t.hasBullet && (e.hasBullet = t.hasBullet), void 0 !== t.bulletChar && (e.bulletChar = t.bulletChar), void 0 !== t.bulletColorRgb && (e.bulletColorRgb = t.bulletColorRgb), void 0 !== t.bulletFontRef && n[t.bulletFontRef] && (e.bulletFontName = n[t.bulletFontRef]), void 0 !== t.leftMarginMu && (e.marginLeftEmu =
|
|
60056
|
+
function pj(e, t, n) {
|
|
60057
|
+
t && (e.indentLevel = t.indentLevel, void 0 !== t.align && (e.align = t.align), void 0 !== t.hasBullet && (e.hasBullet = t.hasBullet), void 0 !== t.bulletChar && (e.bulletChar = t.bulletChar), void 0 !== t.bulletColorRgb && (e.bulletColorRgb = t.bulletColorRgb), void 0 !== t.bulletFontRef && n[t.bulletFontRef] && (e.bulletFontName = n[t.bulletFontRef]), void 0 !== t.leftMarginMu && (e.marginLeftEmu = AE(t.leftMarginMu)), void 0 !== t.indentMu && (e.indentEmu = AE(t.indentMu)));
|
|
60011
60058
|
}
|
|
60012
|
-
function
|
|
60059
|
+
function uj(e, t) {
|
|
60013
60060
|
const n = e.text.replace(/\r\n/g, "\r").replace(/\n/g, "\r").split("\r"), r = e.styles?.paragraphRuns ?? [], i = e.styles?.charRuns ?? [], o = [];
|
|
60014
60061
|
let a = 0;
|
|
60015
60062
|
for (const e of n) {
|
|
@@ -60017,10 +60064,10 @@ function pj(e, t) {
|
|
|
60017
60064
|
indentLevel: 0,
|
|
60018
60065
|
runs: []
|
|
60019
60066
|
};
|
|
60020
|
-
|
|
60021
|
-
for (const r of
|
|
60067
|
+
pj(n, lj(r, a), t);
|
|
60068
|
+
for (const r of cj(i, a, a + e.length)) {
|
|
60022
60069
|
const i = e.slice(r.start - a, r.end - a);
|
|
60023
|
-
i.length > 0 && n.runs.push(
|
|
60070
|
+
i.length > 0 && n.runs.push(dj(i, r.props, t));
|
|
60024
60071
|
}
|
|
60025
60072
|
0 === n.runs.length && e.length > 0 && n.runs.push({ text: e }), o.push(n), a += e.length + 1;
|
|
60026
60073
|
}
|
|
@@ -60029,7 +60076,7 @@ function pj(e, t) {
|
|
|
60029
60076
|
paragraphs: o
|
|
60030
60077
|
};
|
|
60031
60078
|
}
|
|
60032
|
-
var
|
|
60079
|
+
var hj = /* @__PURE__ */ new Map([
|
|
60033
60080
|
[20, "line"],
|
|
60034
60081
|
[32, "straightConnector1"],
|
|
60035
60082
|
[33, "bentConnector2"],
|
|
@@ -60040,7 +60087,7 @@ var uj = /* @__PURE__ */ new Map([
|
|
|
60040
60087
|
[38, "curvedConnector3"],
|
|
60041
60088
|
[39, "curvedConnector4"],
|
|
60042
60089
|
[40, "curvedConnector5"]
|
|
60043
|
-
]),
|
|
60090
|
+
]), mj = /* @__PURE__ */ new Map([
|
|
60044
60091
|
[1, "rect"],
|
|
60045
60092
|
[2, "roundRect"],
|
|
60046
60093
|
[3, "ellipse"],
|
|
@@ -60175,11 +60222,11 @@ var uj = /* @__PURE__ */ new Map([
|
|
|
60175
60222
|
[200, "actionButtonMovie"],
|
|
60176
60223
|
[202, "rect"]
|
|
60177
60224
|
]);
|
|
60178
|
-
function
|
|
60179
|
-
return
|
|
60225
|
+
function fj(e) {
|
|
60226
|
+
return hj.get(e) ?? mj.get(e) ?? "rect";
|
|
60180
60227
|
}
|
|
60181
|
-
var
|
|
60182
|
-
function
|
|
60228
|
+
var gj = 4, yj = 260, xj = 385, bj = 447, Tj = 448, Sj = 459, wj = 462, vj = 464, Cj = 465, _j = 511, kj = 896;
|
|
60229
|
+
function Pj(e, t, n) {
|
|
60183
60230
|
const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = n.recInstance, a = n.dataOffset + 6 * o;
|
|
60184
60231
|
if (a > n.dataOffset + n.recLen) return {
|
|
60185
60232
|
values: r,
|
|
@@ -60204,10 +60251,10 @@ function kj(e, t, n) {
|
|
|
60204
60251
|
complex: i
|
|
60205
60252
|
};
|
|
60206
60253
|
}
|
|
60207
|
-
function
|
|
60254
|
+
function Lj(e, t, n) {
|
|
60208
60255
|
if (void 0 !== e && 0 !== (e & n)) return 0 !== (e & t);
|
|
60209
60256
|
}
|
|
60210
|
-
var
|
|
60257
|
+
var Aj = {
|
|
60211
60258
|
0: "solid",
|
|
60212
60259
|
1: "dash",
|
|
60213
60260
|
2: "dot",
|
|
@@ -60220,80 +60267,80 @@ var Lj = {
|
|
|
60220
60267
|
9: "lgDashDot",
|
|
60221
60268
|
10: "lgDashDotDot"
|
|
60222
60269
|
};
|
|
60223
|
-
var
|
|
60270
|
+
var Ij = {
|
|
60224
60271
|
1: "triangle",
|
|
60225
60272
|
2: "stealth",
|
|
60226
60273
|
3: "diamond",
|
|
60227
60274
|
4: "oval",
|
|
60228
60275
|
5: "arrow"
|
|
60229
60276
|
};
|
|
60230
|
-
function
|
|
60231
|
-
if (void 0 !== e && 0 !== e) return
|
|
60277
|
+
function Mj(e) {
|
|
60278
|
+
if (void 0 !== e && 0 !== e) return Ij[e] ?? "triangle";
|
|
60232
60279
|
}
|
|
60233
|
-
function
|
|
60280
|
+
function Fj(e, t, n, r) {
|
|
60234
60281
|
return {
|
|
60235
|
-
x:
|
|
60236
|
-
y:
|
|
60237
|
-
w:
|
|
60238
|
-
h:
|
|
60282
|
+
x: AE(t),
|
|
60283
|
+
y: AE(e),
|
|
60284
|
+
w: AE(n - t),
|
|
60285
|
+
h: AE(r - e)
|
|
60239
60286
|
};
|
|
60240
60287
|
}
|
|
60241
|
-
function
|
|
60288
|
+
function Rj(e, t) {
|
|
60242
60289
|
return 8 === t.recLen ? function(e, t) {
|
|
60243
|
-
return
|
|
60290
|
+
return Fj(e.getInt16(t, !0), e.getInt16(t + 2, !0), e.getInt16(t + 4, !0), e.getInt16(t + 6, !0));
|
|
60244
60291
|
}(e, t.dataOffset) : 16 === t.recLen ? function(e, t) {
|
|
60245
|
-
return
|
|
60292
|
+
return Fj(e.getInt32(t, !0), e.getInt32(t + 4, !0), e.getInt32(t + 8, !0), e.getInt32(t + 12, !0));
|
|
60246
60293
|
}(e, t.dataOffset) : void 0;
|
|
60247
60294
|
}
|
|
60248
|
-
function
|
|
60295
|
+
function Dj(e, t) {
|
|
60249
60296
|
if (16 !== t.recLen) return;
|
|
60250
60297
|
const n = e.getInt32(t.dataOffset, !0);
|
|
60251
|
-
return
|
|
60298
|
+
return Fj(e.getInt32(t.dataOffset + 4, !0), n, e.getInt32(t.dataOffset + 8, !0), e.getInt32(t.dataOffset + 12, !0));
|
|
60252
60299
|
}
|
|
60253
|
-
function
|
|
60254
|
-
const n =
|
|
60300
|
+
function Nj(e, t) {
|
|
60301
|
+
const n = Lj(e.values.get(_j), 8, 524288);
|
|
60255
60302
|
if (!1 === n) return { kind: "noLine" };
|
|
60256
|
-
const r = e.values.get(
|
|
60303
|
+
const r = e.values.get(Tj), i = e.values.get(Sj);
|
|
60257
60304
|
if (!0 !== n && void 0 === r && void 0 === i) return;
|
|
60258
60305
|
const o = {
|
|
60259
60306
|
kind: "line",
|
|
60260
|
-
rgb: void 0 !== r ?
|
|
60307
|
+
rgb: void 0 !== r ? GE(r, t) : t[1],
|
|
60261
60308
|
widthEmu: i ?? 9525
|
|
60262
60309
|
}, a = function(e) {
|
|
60263
|
-
if (void 0 !== e && 0 !== e) return
|
|
60264
|
-
}(e.values.get(
|
|
60310
|
+
if (void 0 !== e && 0 !== e) return Aj[e];
|
|
60311
|
+
}(e.values.get(wj));
|
|
60265
60312
|
a && (o.dash = a);
|
|
60266
|
-
const s =
|
|
60313
|
+
const s = Mj(e.values.get(vj));
|
|
60267
60314
|
s && (o.headArrow = s);
|
|
60268
|
-
const l =
|
|
60315
|
+
const l = Mj(e.values.get(Cj));
|
|
60269
60316
|
return l && (o.tailArrow = l), o;
|
|
60270
60317
|
}
|
|
60271
|
-
var
|
|
60318
|
+
var Bj = {
|
|
60272
60319
|
13: "title",
|
|
60273
60320
|
14: "body",
|
|
60274
60321
|
15: "ctrTitle",
|
|
60275
60322
|
16: "subTitle"
|
|
60276
60323
|
};
|
|
60277
|
-
function
|
|
60324
|
+
function Oj(e, t) {
|
|
60278
60325
|
const n = t.dataOffset, r = t.dataOffset + t.recLen, i = function(e, t, n) {
|
|
60279
|
-
for (const r of
|
|
60326
|
+
for (const r of FO(e, t, n)) if (r.recType === qO && r.recLen >= 4) return e.getInt32(r.dataOffset, !0);
|
|
60280
60327
|
}(e.view, n, r);
|
|
60281
60328
|
if (void 0 !== i && e.rawOutlineText) {
|
|
60282
60329
|
const t = e.rawOutlineText[i];
|
|
60283
|
-
if (t) return
|
|
60330
|
+
if (t) return uj(t, e.fonts);
|
|
60284
60331
|
}
|
|
60285
|
-
const o =
|
|
60286
|
-
if (0 !== o.length) return
|
|
60332
|
+
const o = aj(e.view, n, r, e.scheme);
|
|
60333
|
+
if (0 !== o.length) return uj(o[0], e.fonts);
|
|
60287
60334
|
}
|
|
60288
|
-
function
|
|
60289
|
-
const n =
|
|
60335
|
+
function Ej(e, t) {
|
|
60336
|
+
const n = DO(e.view, t, pE);
|
|
60290
60337
|
if (!n || n.recLen < 8) return;
|
|
60291
60338
|
const r = n.recInstance, i = e.view.getUint32(n.dataOffset + 4, !0);
|
|
60292
60339
|
if (8 & i) return;
|
|
60293
|
-
const o =
|
|
60340
|
+
const o = DO(e.view, t, uE), a = o ? Pj(e.view, e.data, o) : {
|
|
60294
60341
|
values: /* @__PURE__ */ new Map(),
|
|
60295
60342
|
complex: /* @__PURE__ */ new Map()
|
|
60296
|
-
}, s =
|
|
60343
|
+
}, s = DO(e.view, t, fE), l = DO(e.view, t, mE), c = s ? Rj(e.view, s) : l ? Dj(e.view, l) : void 0, d = a.complex.get(kj), p = d ? function(e) {
|
|
60297
60344
|
let t = "";
|
|
60298
60345
|
for (let n = 0; n + 1 < e.length; n += 2) {
|
|
60299
60346
|
const r = e[n] | e[n + 1] << 8;
|
|
@@ -60301,9 +60348,9 @@ function Oj(e, t) {
|
|
|
60301
60348
|
t += String.fromCharCode(r);
|
|
60302
60349
|
}
|
|
60303
60350
|
return t;
|
|
60304
|
-
}(d) : void 0, u = a.values.get(
|
|
60351
|
+
}(d) : void 0, u = a.values.get(gj), h = void 0 !== u ? ((m = u) > 2147483647 ? m - 4294967296 : m) / 65536 : void 0;
|
|
60305
60352
|
var m;
|
|
60306
|
-
const f = !!(64 & i) || void 0, g = !!(128 & i) || void 0, y = a.values.get(
|
|
60353
|
+
const f = !!(64 & i) || void 0, g = !!(128 & i) || void 0, y = a.values.get(yj);
|
|
60307
60354
|
if (void 0 !== y && y > 0) return {
|
|
60308
60355
|
kind: "picture",
|
|
60309
60356
|
pictureIndex: y - 1,
|
|
@@ -60315,20 +60362,20 @@ function Oj(e, t) {
|
|
|
60315
60362
|
};
|
|
60316
60363
|
const x = {
|
|
60317
60364
|
kind: "shape",
|
|
60318
|
-
preset:
|
|
60319
|
-
isConnector:
|
|
60365
|
+
preset: fj(r),
|
|
60366
|
+
isConnector: hj.has(r),
|
|
60320
60367
|
name: p,
|
|
60321
60368
|
anchor: c,
|
|
60322
60369
|
rotationDeg: h,
|
|
60323
60370
|
flipH: f,
|
|
60324
60371
|
flipV: g
|
|
60325
60372
|
}, b = function(e, t, n) {
|
|
60326
|
-
const r =
|
|
60373
|
+
const r = Lj(e.values.get(bj), 16, 1048576);
|
|
60327
60374
|
if (!1 === r) return { kind: "none" };
|
|
60328
|
-
const i = e.values.get(
|
|
60375
|
+
const i = e.values.get(xj);
|
|
60329
60376
|
return void 0 !== i ? {
|
|
60330
60377
|
kind: "solid",
|
|
60331
|
-
rgb:
|
|
60378
|
+
rgb: GE(i, t)
|
|
60332
60379
|
} : !0 === r ? {
|
|
60333
60380
|
kind: "solid",
|
|
60334
60381
|
rgb: t[4]
|
|
@@ -60337,37 +60384,37 @@ function Oj(e, t) {
|
|
|
60337
60384
|
}(n) ? { kind: "none" } : void 0;
|
|
60338
60385
|
}(a, e.scheme, r);
|
|
60339
60386
|
b && (x.fill = b);
|
|
60340
|
-
const T =
|
|
60387
|
+
const T = Nj(a, e.scheme);
|
|
60341
60388
|
T && (x.line = T);
|
|
60342
|
-
const S =
|
|
60389
|
+
const S = DO(e.view, t, gE);
|
|
60343
60390
|
if (S) {
|
|
60344
60391
|
const t = function(e, t) {
|
|
60345
|
-
const n =
|
|
60392
|
+
const n = DO(e.view, t, HO);
|
|
60346
60393
|
if (!n || n.recLen < 5) return;
|
|
60347
|
-
return
|
|
60394
|
+
return Bj[e.view.getUint8(n.dataOffset + 4)];
|
|
60348
60395
|
}(e, S);
|
|
60349
60396
|
t && (x.placeholderType = t);
|
|
60350
60397
|
}
|
|
60351
|
-
const w =
|
|
60398
|
+
const w = DO(e.view, t, hE);
|
|
60352
60399
|
if (w) {
|
|
60353
|
-
const t =
|
|
60400
|
+
const t = Oj(e, w);
|
|
60354
60401
|
t && t.paragraphs.some((e) => e.runs.length > 0) && (x.text = t);
|
|
60355
60402
|
}
|
|
60356
60403
|
return 1024 & i ? void 0 : x;
|
|
60357
60404
|
}
|
|
60358
|
-
function
|
|
60405
|
+
function jj(e, t) {
|
|
60359
60406
|
const n = [];
|
|
60360
60407
|
let r, i = !0;
|
|
60361
|
-
for (const o of
|
|
60362
|
-
else if (o.recType ===
|
|
60363
|
-
const t = Oj(e, o);
|
|
60364
|
-
t && n.push(t);
|
|
60365
|
-
} else if (o.recType === aE) {
|
|
60408
|
+
for (const o of RO(e.view, t)) if (o.recType === lE && i) r = o, i = !1;
|
|
60409
|
+
else if (o.recType === lE) {
|
|
60366
60410
|
const t = Ej(e, o);
|
|
60367
60411
|
t && n.push(t);
|
|
60412
|
+
} else if (o.recType === sE) {
|
|
60413
|
+
const t = jj(e, o);
|
|
60414
|
+
t && n.push(t);
|
|
60368
60415
|
}
|
|
60369
60416
|
if (!r) return;
|
|
60370
|
-
const o =
|
|
60417
|
+
const o = DO(e.view, r, dE), a = DO(e.view, r, fE), s = DO(e.view, r, mE), l = a ? Rj(e.view, a) : s ? Dj(e.view, s) : void 0, c = o && o.recLen >= 16 ? Dj(e.view, o) : void 0;
|
|
60371
60418
|
return 0 !== n.length ? {
|
|
60372
60419
|
kind: "group",
|
|
60373
60420
|
anchor: l,
|
|
@@ -60380,55 +60427,55 @@ function Ej(e, t) {
|
|
|
60380
60427
|
children: n
|
|
60381
60428
|
} : void 0;
|
|
60382
60429
|
}
|
|
60383
|
-
function
|
|
60384
|
-
const n = { shapes: [] }, r =
|
|
60430
|
+
function $j(e, t) {
|
|
60431
|
+
const n = { shapes: [] }, r = DO(e.view, t, sE);
|
|
60385
60432
|
if (!r) return n;
|
|
60386
60433
|
let i = !0;
|
|
60387
|
-
for (const t of
|
|
60434
|
+
for (const t of RO(e.view, r)) if (t.recType === lE) {
|
|
60388
60435
|
if (i) {
|
|
60389
60436
|
i = !1;
|
|
60390
60437
|
continue;
|
|
60391
60438
|
}
|
|
60392
|
-
const r =
|
|
60439
|
+
const r = zj(e, t);
|
|
60393
60440
|
if (void 0 !== r) {
|
|
60394
60441
|
n.backgroundRgb = r;
|
|
60395
60442
|
continue;
|
|
60396
60443
|
}
|
|
60397
|
-
const o =
|
|
60444
|
+
const o = Ej(e, t);
|
|
60398
60445
|
o && n.shapes.push(o);
|
|
60399
|
-
} else if (t.recType ===
|
|
60400
|
-
const r =
|
|
60446
|
+
} else if (t.recType === sE) {
|
|
60447
|
+
const r = jj(e, t);
|
|
60401
60448
|
r && n.shapes.push(r);
|
|
60402
|
-
} else
|
|
60449
|
+
} else MO(t);
|
|
60403
60450
|
return n;
|
|
60404
60451
|
}
|
|
60405
|
-
function
|
|
60406
|
-
const n =
|
|
60452
|
+
function zj(e, t) {
|
|
60453
|
+
const n = DO(e.view, t, pE);
|
|
60407
60454
|
if (!n || n.recLen < 8) return;
|
|
60408
60455
|
const r = e.view.getUint32(n.dataOffset + 4, !0);
|
|
60409
60456
|
if (!(1024 & r) || 1 & r) return;
|
|
60410
|
-
const i =
|
|
60457
|
+
const i = DO(e.view, t, uE);
|
|
60411
60458
|
if (!i) return e.scheme[0];
|
|
60412
|
-
const o =
|
|
60413
|
-
return void 0 !== o ?
|
|
60459
|
+
const o = Pj(e.view, e.data, i).values.get(xj);
|
|
60460
|
+
return void 0 !== o ? GE(o, e.scheme) : e.scheme[0];
|
|
60414
60461
|
}
|
|
60415
|
-
function
|
|
60462
|
+
function Xj(e, t) {
|
|
60416
60463
|
const { view: n, data: r, fonts: i } = e;
|
|
60417
60464
|
let o = !0, a = !0, s = !0;
|
|
60418
|
-
const l =
|
|
60465
|
+
const l = DO(n, t, jO);
|
|
60419
60466
|
if (l && l.recLen >= 24) {
|
|
60420
60467
|
const e = n.getUint16(l.dataOffset + 20, !0);
|
|
60421
60468
|
s = !!(1 & e), a = !!(2 & e), o = !!(4 & e);
|
|
60422
60469
|
}
|
|
60423
|
-
const c =
|
|
60470
|
+
const c = XE(n, t), d = a ? e.masterScheme : c ?? e.masterScheme, p = {
|
|
60424
60471
|
followMasterBackground: o,
|
|
60425
60472
|
followMasterObjects: s,
|
|
60426
60473
|
shapes: []
|
|
60427
|
-
}, u =
|
|
60474
|
+
}, u = DO(n, t, GO);
|
|
60428
60475
|
if (u) {
|
|
60429
|
-
const t =
|
|
60476
|
+
const t = NO(n, u, aE);
|
|
60430
60477
|
if (t) {
|
|
60431
|
-
const o =
|
|
60478
|
+
const o = $j({
|
|
60432
60479
|
view: n,
|
|
60433
60480
|
data: r,
|
|
60434
60481
|
scheme: d,
|
|
@@ -60440,85 +60487,85 @@ function zj(e, t) {
|
|
|
60440
60487
|
}
|
|
60441
60488
|
return p;
|
|
60442
60489
|
}
|
|
60443
|
-
function
|
|
60490
|
+
function Uj(e, t, n, r) {
|
|
60444
60491
|
const i = [], o = t.dataOffset + t.recLen;
|
|
60445
60492
|
if (t.recLen < 2) return i;
|
|
60446
60493
|
const a = e.getUint16(t.dataOffset, !0);
|
|
60447
60494
|
let s = t.dataOffset + 2;
|
|
60448
60495
|
for (let l = 0; l < a && l < 10 && s < o; l++) {
|
|
60449
60496
|
t.recInstance >= 5 && (s += 2);
|
|
60450
|
-
const a =
|
|
60497
|
+
const a = ej(e, s, o, n);
|
|
60451
60498
|
if (!a) break;
|
|
60452
60499
|
s = a.next;
|
|
60453
|
-
const l =
|
|
60500
|
+
const l = tj(e, s, o, n);
|
|
60454
60501
|
if (!l) break;
|
|
60455
60502
|
s = l.next;
|
|
60456
60503
|
const c = {};
|
|
60457
|
-
void 0 !== l.props.sizePt && (c.sizePt = l.props.sizePt), void 0 !== l.props.bold && (c.bold = l.props.bold), void 0 !== l.props.colorRgb && (c.colorRgb = l.props.colorRgb), void 0 !== l.props.fontRef && r[l.props.fontRef] && (c.fontName = r[l.props.fontRef]), void 0 !== a.props.align && (c.align = a.props.align), void 0 !== a.props.hasBullet && (c.hasBullet = a.props.hasBullet), void 0 !== a.props.bulletChar && (c.bulletChar = a.props.bulletChar), void 0 !== a.props.bulletFontRef && r[a.props.bulletFontRef] && (c.bulletFontName = r[a.props.bulletFontRef]), void 0 !== a.props.leftMarginMu && (c.marginLeftEmu =
|
|
60504
|
+
void 0 !== l.props.sizePt && (c.sizePt = l.props.sizePt), void 0 !== l.props.bold && (c.bold = l.props.bold), void 0 !== l.props.colorRgb && (c.colorRgb = l.props.colorRgb), void 0 !== l.props.fontRef && r[l.props.fontRef] && (c.fontName = r[l.props.fontRef]), void 0 !== a.props.align && (c.align = a.props.align), void 0 !== a.props.hasBullet && (c.hasBullet = a.props.hasBullet), void 0 !== a.props.bulletChar && (c.bulletChar = a.props.bulletChar), void 0 !== a.props.bulletFontRef && r[a.props.bulletFontRef] && (c.bulletFontName = r[a.props.bulletFontRef]), void 0 !== a.props.leftMarginMu && (c.marginLeftEmu = AE(a.props.leftMarginMu)), void 0 !== a.props.indentMu && (c.indentEmu = AE(a.props.indentMu)), i.push(c);
|
|
60458
60505
|
}
|
|
60459
60506
|
return i;
|
|
60460
60507
|
}
|
|
60461
|
-
function
|
|
60508
|
+
function Gj(e, t) {
|
|
60462
60509
|
const n = [];
|
|
60463
|
-
for (const r of
|
|
60510
|
+
for (const r of RO(e, t)) r.recType === zO && r.recLen >= 4 && n.push(e.getUint32(r.dataOffset, !0));
|
|
60464
60511
|
return n;
|
|
60465
60512
|
}
|
|
60466
|
-
async function
|
|
60513
|
+
async function Wj(e) {
|
|
60467
60514
|
const t = e.powerPointDocument, n = new DataView(t.buffer, t.byteOffset, t.byteLength), { currentEdit: r, directory: i } = function(e, t) {
|
|
60468
60515
|
const n = [], r = /* @__PURE__ */ new Set();
|
|
60469
60516
|
let i = t;
|
|
60470
60517
|
for (; 0 !== i;) {
|
|
60471
|
-
if (r.has(i)) throw new
|
|
60518
|
+
if (r.has(i)) throw new LO(`Circular UserEditAtom chain at offset ${i}`);
|
|
60472
60519
|
r.add(i);
|
|
60473
|
-
const t =
|
|
60520
|
+
const t = WE(e, i);
|
|
60474
60521
|
n.push(t), i = t.offsetLastEdit;
|
|
60475
60522
|
}
|
|
60476
|
-
if (0 === n.length) throw new
|
|
60523
|
+
if (0 === n.length) throw new LO("No UserEditAtom found");
|
|
60477
60524
|
const o = /* @__PURE__ */ new Map();
|
|
60478
|
-
for (let t = n.length - 1; t >= 0; t--) for (const [r, i] of
|
|
60525
|
+
for (let t = n.length - 1; t >= 0; t--) for (const [r, i] of VE(e, n[t].offsetPersistDirectory)) o.set(r, i);
|
|
60479
60526
|
return {
|
|
60480
60527
|
currentEdit: n[0],
|
|
60481
60528
|
directory: o
|
|
60482
60529
|
};
|
|
60483
60530
|
}(n, e.offsetToCurrentEdit);
|
|
60484
|
-
if (void 0 !== r.encryptSessionPersistIdRef && 0 !== r.encryptSessionPersistIdRef) throw new
|
|
60531
|
+
if (void 0 !== r.encryptSessionPersistIdRef && 0 !== r.encryptSessionPersistIdRef) throw new IE();
|
|
60485
60532
|
const o = i.get(r.docPersistIdRef);
|
|
60486
|
-
if (void 0 === o) throw new
|
|
60487
|
-
const a =
|
|
60488
|
-
if (a.recType !==
|
|
60533
|
+
if (void 0 === o) throw new LO("DocumentContainer persist object not found");
|
|
60534
|
+
const a = IO(n, o);
|
|
60535
|
+
if (a.recType !== BO) throw new LO(`Persist id ${r.docPersistIdRef} is not a DocumentContainer`);
|
|
60489
60536
|
let s = 9144e3, l = 6858e3;
|
|
60490
|
-
const c =
|
|
60491
|
-
c && c.recLen >= 40 && (s =
|
|
60537
|
+
const c = DO(n, a, OO);
|
|
60538
|
+
c && c.recLen >= 40 && (s = AE(n.getInt32(c.dataOffset, !0)), l = AE(n.getInt32(c.dataOffset + 4, !0)));
|
|
60492
60539
|
const d = function(e, t) {
|
|
60493
|
-
const n = [], r =
|
|
60540
|
+
const n = [], r = DO(e, t, $O);
|
|
60494
60541
|
if (!r) return n;
|
|
60495
|
-
const i =
|
|
60542
|
+
const i = NO(e, r, WO);
|
|
60496
60543
|
if (!i) return n;
|
|
60497
|
-
for (const t of
|
|
60498
|
-
const r =
|
|
60544
|
+
for (const t of RO(e, i)) if (t.recType === rE) {
|
|
60545
|
+
const r = oj(e, t.dataOffset, Math.min(64, t.recLen)), i = r.indexOf("\0");
|
|
60499
60546
|
n.push(i >= 0 ? r.slice(0, i) : r);
|
|
60500
60547
|
}
|
|
60501
60548
|
return n;
|
|
60502
60549
|
}(n, a);
|
|
60503
60550
|
let p;
|
|
60504
|
-
for (const e of
|
|
60505
|
-
p =
|
|
60551
|
+
for (const e of RO(n, a)) if (e.recType === eE && 1 === e.recInstance) {
|
|
60552
|
+
p = Gj(n, e)[0];
|
|
60506
60553
|
break;
|
|
60507
60554
|
}
|
|
60508
|
-
const u =
|
|
60555
|
+
const u = XE(n, a) ?? jE;
|
|
60509
60556
|
let h, m = u, f = [], g = [], y = [];
|
|
60510
60557
|
const x = void 0 !== p ? i.get(p) : void 0;
|
|
60511
60558
|
if (void 0 !== x) {
|
|
60512
|
-
const e =
|
|
60513
|
-
if (e.recType ===
|
|
60559
|
+
const e = IO(n, x);
|
|
60560
|
+
if (e.recType === XO) {
|
|
60514
60561
|
const r = function(e, t, n, r, i) {
|
|
60515
|
-
const o =
|
|
60562
|
+
const o = XE(e, i), a = o ?? r;
|
|
60516
60563
|
let s, l = [];
|
|
60517
|
-
const c =
|
|
60564
|
+
const c = DO(e, i, GO);
|
|
60518
60565
|
if (c) {
|
|
60519
|
-
const r =
|
|
60566
|
+
const r = NO(e, c, aE);
|
|
60520
60567
|
if (r) {
|
|
60521
|
-
const i =
|
|
60568
|
+
const i = $j({
|
|
60522
60569
|
view: e,
|
|
60523
60570
|
data: t,
|
|
60524
60571
|
scheme: a,
|
|
@@ -60538,7 +60585,7 @@ async function Gj(e) {
|
|
|
60538
60585
|
r.scheme && (m = r.scheme), h = r.backgroundRgb, f = r.shapes;
|
|
60539
60586
|
const i = function(e, t, n, r) {
|
|
60540
60587
|
let i = [], o = [];
|
|
60541
|
-
for (const a of
|
|
60588
|
+
for (const a of RO(e, t)) a.recType === JO && (0 === a.recInstance && 0 === i.length ? i = Uj(e, a, n, r) : 1 === a.recInstance && 0 === o.length && (o = Uj(e, a, n, r)));
|
|
60542
60589
|
return {
|
|
60543
60590
|
titleStyles: i,
|
|
60544
60591
|
bodyStyles: o
|
|
@@ -60548,12 +60595,12 @@ async function Gj(e) {
|
|
|
60548
60595
|
}
|
|
60549
60596
|
}
|
|
60550
60597
|
const { persistIds: b, outline: T } = function(e, t, n, r) {
|
|
60551
|
-
for (const n of
|
|
60552
|
-
persistIds:
|
|
60553
|
-
outline:
|
|
60598
|
+
for (const n of RO(e, t)) if (n.recType === eE && 0 === n.recInstance) return {
|
|
60599
|
+
persistIds: Gj(e, n),
|
|
60600
|
+
outline: sj(e, n, r)
|
|
60554
60601
|
};
|
|
60555
60602
|
const i = [];
|
|
60556
|
-
for (const [t, r] of n)
|
|
60603
|
+
for (const [t, r] of n) IO(e, r).recType === EO && i.push(t);
|
|
60557
60604
|
return i.sort((e, t) => e - t), {
|
|
60558
60605
|
persistIds: i,
|
|
60559
60606
|
outline: /* @__PURE__ */ new Map()
|
|
@@ -60562,8 +60609,8 @@ async function Gj(e) {
|
|
|
60562
60609
|
for (const e of b) {
|
|
60563
60610
|
const r = i.get(e);
|
|
60564
60611
|
if (void 0 === r) continue;
|
|
60565
|
-
const o =
|
|
60566
|
-
o.recType ===
|
|
60612
|
+
const o = IO(n, r);
|
|
60613
|
+
o.recType === EO && S.push(Xj({
|
|
60567
60614
|
view: n,
|
|
60568
60615
|
data: t,
|
|
60569
60616
|
fonts: d,
|
|
@@ -60572,13 +60619,13 @@ async function Gj(e) {
|
|
|
60572
60619
|
}, o));
|
|
60573
60620
|
}
|
|
60574
60621
|
const w = function(e, t) {
|
|
60575
|
-
const n =
|
|
60576
|
-
if (n) return
|
|
60622
|
+
const n = DO(e, t, UO);
|
|
60623
|
+
if (n) return NO(e, n, oE);
|
|
60577
60624
|
}(n, a), v = await async function(e, t) {
|
|
60578
60625
|
if (!e) return [];
|
|
60579
60626
|
const n = new DataView(e.buffer, e.byteOffset, e.byteLength), r = /* @__PURE__ */ new Map(), i = [];
|
|
60580
|
-
for (const t of
|
|
60581
|
-
const o = await
|
|
60627
|
+
for (const t of FO(n, 0, e.length)) if (t.recType >= yE && t.recType <= xE) {
|
|
60628
|
+
const o = await YE(n, e, t);
|
|
60582
60629
|
r.set(t.headerOffset, o), i.push(o);
|
|
60583
60630
|
}
|
|
60584
60631
|
if (!t) return i;
|
|
@@ -60586,14 +60633,14 @@ async function Gj(e) {
|
|
|
60586
60633
|
let s = t.rec.dataOffset;
|
|
60587
60634
|
const l = t.rec.dataOffset + t.rec.recLen;
|
|
60588
60635
|
for (; s + 8 <= l;) {
|
|
60589
|
-
const e =
|
|
60636
|
+
const e = AO(a, s);
|
|
60590
60637
|
if (!e || e.dataOffset + e.recLen > l) break;
|
|
60591
|
-
if (e.recType ===
|
|
60638
|
+
if (e.recType === cE && e.recLen >= 36) {
|
|
60592
60639
|
const t = a.getUint32(e.dataOffset + 28, !0);
|
|
60593
60640
|
o.push(r.get(t) ?? i[o.length]);
|
|
60594
|
-
} else if (e.recType >=
|
|
60641
|
+
} else if (e.recType >= yE && e.recType <= xE) {
|
|
60595
60642
|
const t = new Uint8Array(a.buffer, a.byteOffset, a.byteLength);
|
|
60596
|
-
o.push(await
|
|
60643
|
+
o.push(await YE(a, t, e));
|
|
60597
60644
|
}
|
|
60598
60645
|
s = e.dataOffset + e.recLen;
|
|
60599
60646
|
}
|
|
@@ -60618,7 +60665,7 @@ async function Gj(e) {
|
|
|
60618
60665
|
})
|
|
60619
60666
|
};
|
|
60620
60667
|
}
|
|
60621
|
-
function
|
|
60668
|
+
function Vj(e) {
|
|
60622
60669
|
const t = e.text.split(String.fromCharCode(11)), n = function(e) {
|
|
60623
60670
|
const t = ["lang=\"en-US\""];
|
|
60624
60671
|
void 0 !== e.sizePt && t.push(`sz="${Math.round(100 * e.sizePt)}"`), e.bold && t.push("b=\"1\""), e.italic && t.push("i=\"1\""), e.underline && t.push("u=\"sng\""), t.push("dirty=\"0\"");
|
|
@@ -60627,7 +60674,7 @@ function Wj(e) {
|
|
|
60627
60674
|
}(e);
|
|
60628
60675
|
return t.map((e) => `<a:r>${n}<a:t>${cn(e)}</a:t></a:r>`).join("<a:br/>");
|
|
60629
60676
|
}
|
|
60630
|
-
function
|
|
60677
|
+
function Hj(e) {
|
|
60631
60678
|
const t = [];
|
|
60632
60679
|
e.indentLevel > 0 && t.push(`lvl="${Math.min(e.indentLevel, 8)}"`), void 0 !== e.marginLeftEmu && t.push(`marL="${hn(e.marginLeftEmu)}"`), void 0 !== e.indentEmu && t.push(`indent="${-Math.abs(hn(e.indentEmu))}"`), void 0 !== e.align && t.push(`algn="${e.align}"`);
|
|
60633
60680
|
let n = "";
|
|
@@ -60635,12 +60682,12 @@ function Vj(e) {
|
|
|
60635
60682
|
const r = t.length > 0 ? ` ${t.join(" ")}` : "";
|
|
60636
60683
|
return n.length > 0 ? `<a:pPr${r}>${n}</a:pPr>` : `<a:pPr${r}/>`;
|
|
60637
60684
|
}
|
|
60638
|
-
function
|
|
60639
|
-
const t = [
|
|
60640
|
-
for (const n of e.runs) t.push(
|
|
60685
|
+
function qj(e) {
|
|
60686
|
+
const t = [Hj(e)];
|
|
60687
|
+
for (const n of e.runs) t.push(Vj(n));
|
|
60641
60688
|
return 0 === e.runs.length && t.push("<a:endParaRPr lang=\"en-US\"/>"), `<a:p>${t.join("")}</a:p>`;
|
|
60642
60689
|
}
|
|
60643
|
-
function
|
|
60690
|
+
function Yj(e, t = "") {
|
|
60644
60691
|
const n = e.anchor ?? {
|
|
60645
60692
|
x: 0,
|
|
60646
60693
|
y: 0,
|
|
@@ -60650,40 +60697,40 @@ function qj(e, t = "") {
|
|
|
60650
60697
|
void 0 !== e.rotationDeg && 0 !== e.rotationDeg && r.push(`rot="${Math.round(6e4 * e.rotationDeg)}"`), e.flipH && r.push("flipH=\"1\""), e.flipV && r.push("flipV=\"1\"");
|
|
60651
60698
|
return `<a:xfrm${r.length > 0 ? ` ${r.join(" ")}` : ""}><a:off x="${hn(n.x)}" y="${hn(n.y)}"/><a:ext cx="${Math.max(0, hn(n.w))}" cy="${Math.max(0, hn(n.h))}"/>${t}</a:xfrm>`;
|
|
60652
60699
|
}
|
|
60653
|
-
function
|
|
60700
|
+
function Zj(e) {
|
|
60654
60701
|
return e.fill ? "solid" === e.fill.kind ? un(e.fill.rgb) : "<a:noFill/>" : "";
|
|
60655
60702
|
}
|
|
60656
|
-
function
|
|
60703
|
+
function Kj(e) {
|
|
60657
60704
|
if (!e.line) return "";
|
|
60658
60705
|
if ("noLine" === e.line.kind) return "<a:ln><a:noFill/></a:ln>";
|
|
60659
60706
|
const t = e.line;
|
|
60660
60707
|
let n = un(t.rgb);
|
|
60661
60708
|
return t.dash && (n += `<a:prstDash val="${t.dash}"/>`), t.headArrow && (n += `<a:headEnd type="${t.headArrow}"/>`), t.tailArrow && (n += `<a:tailEnd type="${t.tailArrow}"/>`), `<a:ln w="${Math.max(0, hn(t.widthEmu))}">${n}</a:ln>`;
|
|
60662
60709
|
}
|
|
60663
|
-
function
|
|
60710
|
+
function Jj(e, t) {
|
|
60664
60711
|
const n = t.nextId(), r = cn(e.name ?? `Shape ${n}`), i = e.placeholderType ? `<p:ph type="${e.placeholderType}"/>` : "";
|
|
60665
60712
|
var o;
|
|
60666
|
-
return `<p:sp>${`<p:nvSpPr><p:cNvPr id="${n}" name="${r}"/><p:cNvSpPr${e.text && !e.placeholderType ? " txBox=\"1\"" : ""}/><p:nvPr>${i}</p:nvPr></p:nvSpPr>`}${`<p:spPr>${
|
|
60713
|
+
return `<p:sp>${`<p:nvSpPr><p:cNvPr id="${n}" name="${r}"/><p:cNvSpPr${e.text && !e.placeholderType ? " txBox=\"1\"" : ""}/><p:nvPr>${i}</p:nvPr></p:nvSpPr>`}${`<p:spPr>${Yj(e)}<a:prstGeom prst="${e.preset}"><a:avLst/></a:prstGeom>${Zj(e)}${Kj(e)}</p:spPr>`}${e.text ? `<p:txBody>${(o = e.text).textType === PE || o.textType === LE ? "<a:bodyPr wrap=\"square\" anchor=\"ctr\"><a:normAutofit/></a:bodyPr>" : "<a:bodyPr wrap=\"square\"><a:normAutofit/></a:bodyPr>"}<a:lstStyle/>${o.paragraphs.map(qj).join("")}</p:txBody>` : "<p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:endParaRPr lang=\"en-US\"/></a:p></p:txBody>"}</p:sp>`;
|
|
60667
60714
|
}
|
|
60668
|
-
function
|
|
60715
|
+
function Qj(e, t) {
|
|
60669
60716
|
return "picture" === e.kind ? function(e, t) {
|
|
60670
60717
|
const n = t.mediaRel(e.pictureIndex);
|
|
60671
60718
|
if (!n) return "";
|
|
60672
60719
|
const r = t.nextId();
|
|
60673
|
-
return `<p:pic><p:nvPicPr><p:cNvPr id="${r}" name="${cn(e.name ?? `Picture ${r}`)}"/><p:cNvPicPr/><p:nvPr/></p:nvPicPr><p:blipFill><a:blip r:embed="${n.relId}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill><p:spPr>${
|
|
60720
|
+
return `<p:pic><p:nvPicPr><p:cNvPr id="${r}" name="${cn(e.name ?? `Picture ${r}`)}"/><p:cNvPicPr/><p:nvPr/></p:nvPicPr><p:blipFill><a:blip r:embed="${n.relId}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill><p:spPr>${Yj(e)}<a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr></p:pic>`;
|
|
60674
60721
|
}(e, t) : "group" === e.kind ? function(e, t) {
|
|
60675
60722
|
const n = t.nextId(), r = e.anchor ?? e.childRect, i = e.childRect, o = `<a:chOff x="${hn(i.x)}" y="${hn(i.y)}"/><a:chExt cx="${Math.max(0, hn(i.w))}" cy="${Math.max(0, hn(i.h))}"/>`;
|
|
60676
|
-
return `<p:grpSp><p:nvGrpSpPr><p:cNvPr id="${n}" name="Group ${n}"/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr>${
|
|
60723
|
+
return `<p:grpSp><p:nvGrpSpPr><p:cNvPr id="${n}" name="Group ${n}"/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr>${Yj({
|
|
60677
60724
|
...e,
|
|
60678
60725
|
anchor: r
|
|
60679
|
-
}, o)}</p:grpSpPr>${e.children.map((e) =>
|
|
60726
|
+
}, o)}</p:grpSpPr>${e.children.map((e) => Qj(e, t)).join("")}</p:grpSp>`;
|
|
60680
60727
|
}(e, t) : e.isConnector && !e.text ? function(e, t) {
|
|
60681
60728
|
const n = t.nextId();
|
|
60682
|
-
return `<p:cxnSp><p:nvCxnSpPr><p:cNvPr id="${n}" name="${cn(e.name ?? `Connector ${n}`)}"/><p:cNvCxnSpPr/><p:nvPr/></p:nvCxnSpPr><p:spPr>${
|
|
60683
|
-
}(e, t) :
|
|
60729
|
+
return `<p:cxnSp><p:nvCxnSpPr><p:cNvPr id="${n}" name="${cn(e.name ?? `Connector ${n}`)}"/><p:cNvCxnSpPr/><p:nvPr/></p:nvCxnSpPr><p:spPr>${Yj(e)}<a:prstGeom prst="${e.preset}"><a:avLst/></a:prstGeom>${Zj(e)}${Kj(e)}</p:spPr></p:cxnSp>`;
|
|
60730
|
+
}(e, t) : Jj(e, t);
|
|
60684
60731
|
}
|
|
60685
|
-
var
|
|
60686
|
-
function
|
|
60732
|
+
var e$ = "xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:p=\"http://schemas.openxmlformats.org/presentationml/2006/main\"";
|
|
60733
|
+
function t$(e, t, n) {
|
|
60687
60734
|
const r = [];
|
|
60688
60735
|
void 0 !== t.marginLeftEmu && r.push(`marL="${hn(t.marginLeftEmu)}"`), void 0 !== t.indentEmu && r.push(`indent="${-Math.abs(hn(t.indentEmu))}"`), r.push(`algn="${t.align ?? "l"}"`);
|
|
60689
60736
|
let i = "";
|
|
@@ -60691,12 +60738,12 @@ function e$(e, t, n) {
|
|
|
60691
60738
|
const o = `<a:defRPr sz="${Math.round(100 * (t.sizePt ?? n))}" kern="1200"${t.bold ? " b=\"1\"" : ""}>${void 0 !== t.colorRgb ? un(t.colorRgb) : "<a:solidFill><a:schemeClr val=\"tx1\"/></a:solidFill>"}${void 0 !== t.fontName ? `<a:latin typeface="${cn(t.fontName)}"/>` : "<a:latin typeface=\"+mn-lt\"/>"}</a:defRPr>`;
|
|
60692
60739
|
return `<a:${e} ${r.join(" ")}>${i}${o}</a:${e}>`;
|
|
60693
60740
|
}
|
|
60694
|
-
function
|
|
60741
|
+
function n$(e, t) {
|
|
60695
60742
|
const n = [], r = Math.max(1, Math.min(e.length, 9));
|
|
60696
|
-
for (let i = 0; i < r; i++) n.push(
|
|
60743
|
+
for (let i = 0; i < r; i++) n.push(t$(`lvl${i + 1}pPr`, e[i] ?? {}, t));
|
|
60697
60744
|
return n.join("");
|
|
60698
60745
|
}
|
|
60699
|
-
var
|
|
60746
|
+
var r$ = {
|
|
60700
60747
|
png: "image/png",
|
|
60701
60748
|
jpg: "image/jpeg",
|
|
60702
60749
|
bmp: "image/bmp",
|
|
@@ -60705,17 +60752,17 @@ var n$ = {
|
|
|
60705
60752
|
emf: "image/x-emf",
|
|
60706
60753
|
wmf: "image/x-wmf",
|
|
60707
60754
|
pict: "image/x-pict"
|
|
60708
|
-
},
|
|
60709
|
-
function
|
|
60755
|
+
}, i$ = "xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:p=\"http://schemas.openxmlformats.org/presentationml/2006/main\"";
|
|
60756
|
+
function o$(e) {
|
|
60710
60757
|
const t = [], n = (e) => {
|
|
60711
60758
|
for (const r of e) "picture" === r.kind ? t.push(r.pictureIndex) : "group" === r.kind && n(r.children);
|
|
60712
60759
|
};
|
|
60713
60760
|
return n(e.shapes), t;
|
|
60714
60761
|
}
|
|
60715
|
-
async function
|
|
60762
|
+
async function a$(e) {
|
|
60716
60763
|
const n = new t.default(), r = { fileNumbers: /* @__PURE__ */ new Map() };
|
|
60717
60764
|
let i = 0;
|
|
60718
|
-
for (const t of e.slides) for (const n of
|
|
60765
|
+
for (const t of e.slides) for (const n of o$(t)) {
|
|
60719
60766
|
const t = e.pictures[n];
|
|
60720
60767
|
t && t.bytes.length > 0 && !r.fileNumbers.has(n) && r.fileNumbers.set(n, ++i);
|
|
60721
60768
|
}
|
|
@@ -60729,27 +60776,27 @@ async function o$(e) {
|
|
|
60729
60776
|
const t = e.pictures[r];
|
|
60730
60777
|
t && n.add(t.extension);
|
|
60731
60778
|
}
|
|
60732
|
-
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>\n <Default Extension="xml" ContentType="application/xml"/>\n${[...n].map((e) => ` <Default Extension="${e}" ContentType="${
|
|
60779
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>\n <Default Extension="xml" ContentType="application/xml"/>\n${[...n].map((e) => ` <Default Extension="${e}" ContentType="${r$[e] ?? "application/octet-stream"}"/>`).join("\n")}\n <Override PartName="/ppt/presentation.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml"/>\n <Override PartName="/ppt/slideMasters/slideMaster1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"/>\n <Override PartName="/ppt/slideLayouts/slideLayout1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"/>\n${e.slides.map((e, t) => ` <Override PartName="/ppt/slides/slide${t + 1}.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"/>`).join("\n")}\n <Override PartName="/ppt/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>\n <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>\n <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>\n</Types>`;
|
|
60733
60780
|
}(e, r)), n.file("_rels/.rels", "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\" Target=\"ppt/presentation.xml\"/>\n <Relationship Id=\"rId2\" Type=\"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties\" Target=\"docProps/core.xml\"/>\n <Relationship Id=\"rId3\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties\" Target=\"docProps/app.xml\"/>\n</Relationships>"), n.file("ppt/presentation.xml", function(e) {
|
|
60734
60781
|
const t = e.slides.map((e, t) => ` <p:sldId id="${256 + t}" r:id="rId${3 + t}"/>`).join("\n");
|
|
60735
|
-
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:presentation ${
|
|
60782
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:presentation ${i$}>\n <p:sldMasterIdLst><p:sldMasterId id="2147483648" r:id="rId1"/></p:sldMasterIdLst>\n${e.slides.length > 0 ? ` <p:sldIdLst>\n${t}\n </p:sldIdLst>\n` : ""} <p:sldSz cx="${e.widthEmu}" cy="${e.heightEmu}"/>\n <p:notesSz cx="${e.heightEmu}" cy="${e.widthEmu}"/>\n</p:presentation>`;
|
|
60736
60783
|
}(e)), n.file("ppt/_rels/presentation.xml.rels", function(e) {
|
|
60737
60784
|
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" Target="slideMasters/slideMaster1.xml"/>\n <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/>\n${e.slides.map((e, t) => ` <Relationship Id="rId${3 + t}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slides/slide${t + 1}.xml"/>`).join("\n")}\n</Relationships>`;
|
|
60738
60785
|
}(e));
|
|
60739
60786
|
let o = 2;
|
|
60740
60787
|
return n.file("ppt/slideMasters/slideMaster1.xml", function(e, t) {
|
|
60741
|
-
const n = e.masterBackgroundRgb ?? e.scheme[
|
|
60742
|
-
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:sldMaster ${
|
|
60788
|
+
const n = e.masterBackgroundRgb ?? e.scheme[ME], r = e.masterShapes.map((e) => Qj(e, t)).join("");
|
|
60789
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:sldMaster ${e$}>\n <p:cSld>\n <p:bg><p:bgPr>${un(n)}<a:effectLst/></p:bgPr></p:bg>\n <p:spTree>\n <p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>\n <p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>\n ${r}\n </p:spTree>\n </p:cSld>\n <p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/>\n <p:sldLayoutIdLst>\n <p:sldLayoutId id="2147483649" r:id="rId1"/>\n </p:sldLayoutIdLst>\n <p:txStyles>\n <p:titleStyle>${n$(e.titleStyles, 44)}</p:titleStyle>\n <p:bodyStyle>${n$(e.bodyStyles, 32)}</p:bodyStyle>\n <p:otherStyle><a:defPPr><a:defRPr lang="en-US"/></a:defPPr></p:otherStyle>\n </p:txStyles>\n</p:sldMaster>`;
|
|
60743
60790
|
}(e, {
|
|
60744
60791
|
nextId: () => o++,
|
|
60745
60792
|
mediaRel: () => {}
|
|
60746
|
-
})), n.file("ppt/slideMasters/_rels/slideMaster1.xml.rels", "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout\" Target=\"../slideLayouts/slideLayout1.xml\"/>\n <Relationship Id=\"rId2\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\" Target=\"../theme/theme1.xml\"/>\n</Relationships>"), n.file("ppt/slideLayouts/slideLayout1.xml", `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:sldLayout ${
|
|
60793
|
+
})), n.file("ppt/slideMasters/_rels/slideMaster1.xml.rels", "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout\" Target=\"../slideLayouts/slideLayout1.xml\"/>\n <Relationship Id=\"rId2\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme\" Target=\"../theme/theme1.xml\"/>\n</Relationships>"), n.file("ppt/slideLayouts/slideLayout1.xml", `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:sldLayout ${e$} type="blank" preserve="1">\n <p:cSld name="Blank">\n <p:spTree>\n <p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>\n <p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>\n </p:spTree>\n </p:cSld>\n <p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr>\n</p:sldLayout>`), n.file("ppt/slideLayouts/_rels/slideLayout1.xml.rels", "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster\" Target=\"../slideMasters/slideMaster1.xml\"/>\n</Relationships>"), n.file("ppt/theme/theme1.xml", function(e) {
|
|
60747
60794
|
const t = e.scheme, n = e.fonts[0] ?? "Arial", r = e.fonts[0] ?? "Arial", i = (e, t) => `<a:${e}><a:srgbClr val="${t}"/></a:${e}>`;
|
|
60748
|
-
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Imported PPT Theme">\n <a:themeElements>\n <a:clrScheme name="Imported PPT">\n ${i("dk1", t[
|
|
60795
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Imported PPT Theme">\n <a:themeElements>\n <a:clrScheme name="Imported PPT">\n ${i("dk1", t[FE])}\n ${i("lt1", t[ME])}\n ${i("dk2", t[DE])}\n ${i("lt2", t[RE])}\n ${i("accent1", t[NE])}\n ${i("accent2", t[BE])}\n ${i("accent3", t[OE])}\n ${i("accent4", t[EE])}\n ${i("accent5", t[BE])}\n ${i("accent6", t[OE])}\n ${i("hlink", t[OE])}\n ${i("folHlink", t[EE])}\n </a:clrScheme>\n <a:fontScheme name="Imported PPT">\n <a:majorFont><a:latin typeface="${cn(n)}"/><a:ea typeface=""/><a:cs typeface=""/></a:majorFont>\n <a:minorFont><a:latin typeface="${cn(r)}"/><a:ea typeface=""/><a:cs typeface=""/></a:minorFont>\n </a:fontScheme>\n <a:fmtScheme name="Imported PPT">\n <a:fillStyleLst>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n </a:fillStyleLst>\n <a:lnStyleLst>\n <a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>\n <a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>\n <a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>\n </a:lnStyleLst>\n <a:effectStyleLst>\n <a:effectStyle><a:effectLst/></a:effectStyle>\n <a:effectStyle><a:effectLst/></a:effectStyle>\n <a:effectStyle><a:effectLst/></a:effectStyle>\n </a:effectStyleLst>\n <a:bgFillStyleLst>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n <a:solidFill><a:schemeClr val="phClr"/></a:solidFill>\n </a:bgFillStyleLst>\n </a:fmtScheme>\n </a:themeElements>\n <a:objectDefaults/>\n <a:extraClrSchemeLst/>\n</a:theme>`;
|
|
60749
60796
|
}(e)), e.slides.forEach((t, i) => {
|
|
60750
60797
|
const o = /* @__PURE__ */ new Map(), a = [];
|
|
60751
60798
|
let s = 1;
|
|
60752
|
-
for (const n of
|
|
60799
|
+
for (const n of o$(t)) {
|
|
60753
60800
|
const t = r.fileNumbers.get(n);
|
|
60754
60801
|
if (void 0 === t || o.has(n)) continue;
|
|
60755
60802
|
const i = "rId" + ++s;
|
|
@@ -60765,24 +60812,24 @@ async function o$(e) {
|
|
|
60765
60812
|
const t = n.get(e);
|
|
60766
60813
|
return t ? { relId: t } : void 0;
|
|
60767
60814
|
}
|
|
60768
|
-
}, o = t.shapes.map((e) =>
|
|
60769
|
-
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:sld ${
|
|
60815
|
+
}, o = t.shapes.map((e) => Qj(e, i)).join(""), a = t.followMasterBackground ? void 0 : t.backgroundRgb ?? e.scheme[ME], s = a ? `<p:bg><p:bgPr>${un(a)}<a:effectLst/></p:bgPr></p:bg>` : "";
|
|
60816
|
+
return `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<p:sld ${i$}${t.followMasterObjects ? "" : " showMasterSp=\"0\""}>\n <p:cSld>\n ${s}\n <p:spTree>\n <p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>\n <p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>\n ${o}\n </p:spTree>\n </p:cSld>\n <p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr>\n</p:sld>`;
|
|
60770
60817
|
}(e, t, o)), n.file(`ppt/slides/_rels/slide${i + 1}.xml.rels`, `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout" Target="../slideLayouts/slideLayout1.xml"/>\n${a.join("\n")}\n</Relationships>`);
|
|
60771
60818
|
}), n.file("docProps/core.xml", "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<cp:coreProperties xmlns:cp=\"http://schemas.openxmlformats.org/package/2006/metadata/core-properties\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:dcterms=\"http://purl.org/dc/terms/\" xmlns:dcmitype=\"http://purl.org/dc/dcmitype/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n <dc:title></dc:title>\n <dc:creator>pptx-viewer ppt import</dc:creator>\n</cp:coreProperties>"), n.file("docProps/app.xml", `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">\n <Application>pptx-viewer ppt import</Application>\n <Slides>${e.slides.length}</Slides>\n</Properties>`), n.generateAsync({ type: "arraybuffer" });
|
|
60772
60819
|
}
|
|
60773
|
-
var
|
|
60774
|
-
async function
|
|
60820
|
+
var s$ = "PowerPoint Document";
|
|
60821
|
+
async function l$(e) {
|
|
60775
60822
|
const t = e.getStream("Current User");
|
|
60776
|
-
if (!t) throw new
|
|
60823
|
+
if (!t) throw new LO("Legacy .ppt file is missing the \"Current User\" stream");
|
|
60777
60824
|
const n = function(e) {
|
|
60778
|
-
const t = new DataView(e.buffer, e.byteOffset, e.byteLength), n =
|
|
60779
|
-
if (n.recType !==
|
|
60825
|
+
const t = new DataView(e.buffer, e.byteOffset, e.byteLength), n = IO(t, 0);
|
|
60826
|
+
if (n.recType !== nE) throw new LO(`Current User stream does not start with a CurrentUserAtom (recType 0x${n.recType.toString(16)})`);
|
|
60780
60827
|
const r = n.dataOffset;
|
|
60781
|
-
if (r + 16 > t.byteLength) throw new
|
|
60828
|
+
if (r + 16 > t.byteLength) throw new LO("CurrentUserAtom is truncated");
|
|
60782
60829
|
const i = t.getUint32(r, !0);
|
|
60783
|
-
if (20 !== i) throw new
|
|
60830
|
+
if (20 !== i) throw new LO(`CurrentUserAtom size field is 0x${i.toString(16)}, expected 0x14`);
|
|
60784
60831
|
const o = t.getUint32(r + 4, !0), a = t.getUint32(r + 8, !0), s = t.getUint16(r + 12, !0), l = 4090610911 === o;
|
|
60785
|
-
if (!l && 3817979999 !== o) throw new
|
|
60832
|
+
if (!l && 3817979999 !== o) throw new LO(`Unknown CurrentUserAtom headerToken 0x${o.toString(16)}`);
|
|
60786
60833
|
let c = "";
|
|
60787
60834
|
const d = r + 24;
|
|
60788
60835
|
for (let e = 0; e < s && d + e < t.byteLength; e++) c += String.fromCharCode(t.getUint8(d + e));
|
|
@@ -60792,19 +60839,19 @@ async function s$(e) {
|
|
|
60792
60839
|
userName: c
|
|
60793
60840
|
};
|
|
60794
60841
|
}(t);
|
|
60795
|
-
if (n.isEncrypted) throw new
|
|
60796
|
-
const r = e.getStream(
|
|
60797
|
-
if (!r) throw new
|
|
60798
|
-
return
|
|
60842
|
+
if (n.isEncrypted) throw new IE();
|
|
60843
|
+
const r = e.getStream(s$);
|
|
60844
|
+
if (!r) throw new LO("Legacy .ppt file is missing the \"PowerPoint Document\" stream");
|
|
60845
|
+
return a$(await Wj({
|
|
60799
60846
|
powerPointDocument: r,
|
|
60800
60847
|
pictures: e.getStream("Pictures"),
|
|
60801
60848
|
offsetToCurrentEdit: n.offsetToCurrentEdit
|
|
60802
60849
|
}));
|
|
60803
60850
|
}
|
|
60804
|
-
var
|
|
60851
|
+
var c$ = class {
|
|
60805
60852
|
runtime;
|
|
60806
60853
|
constructor(e = {}) {
|
|
60807
|
-
e.runtime ? this.runtime = e.runtime : e.runtimeFactory ? this.runtime = e.runtimeFactory.createRuntime() : this.runtime = new
|
|
60854
|
+
e.runtime ? this.runtime = e.runtime : e.runtimeFactory ? this.runtime = e.runtimeFactory.createRuntime() : this.runtime = new PO();
|
|
60808
60855
|
}
|
|
60809
60856
|
dispose() {
|
|
60810
60857
|
this.runtime.dispose();
|
|
@@ -60863,9 +60910,9 @@ var l$ = class {
|
|
|
60863
60910
|
n = void 0;
|
|
60864
60911
|
}
|
|
60865
60912
|
if (n && function(e) {
|
|
60866
|
-
return e.entries.some((e) => e.name ===
|
|
60913
|
+
return e.entries.some((e) => e.name === s$);
|
|
60867
60914
|
}(n)) {
|
|
60868
|
-
const e = await
|
|
60915
|
+
const e = await l$(n);
|
|
60869
60916
|
return this.runtime.load(e, t);
|
|
60870
60917
|
}
|
|
60871
60918
|
if (!t.password) throw new Bp("This presentation is encrypted. Provide a password via options.password to open it.");
|
|
@@ -60908,7 +60955,7 @@ var l$ = class {
|
|
|
60908
60955
|
async exportSlides(e, t) {
|
|
60909
60956
|
return this.runtime.exportSlides(e, t);
|
|
60910
60957
|
}
|
|
60911
|
-
},
|
|
60958
|
+
}, d$ = class extends c$ {
|
|
60912
60959
|
static async createBlank(e) {
|
|
60913
60960
|
return br.create(e);
|
|
60914
60961
|
}
|
|
@@ -60926,13 +60973,13 @@ var l$ = class {
|
|
|
60926
60973
|
});
|
|
60927
60974
|
return Qt(await super.load(r, t), n);
|
|
60928
60975
|
}
|
|
60929
|
-
},
|
|
60976
|
+
}, p$ = /* @__PURE__ */ new Set([
|
|
60930
60977
|
"rawXml",
|
|
60931
60978
|
"locks",
|
|
60932
60979
|
"actionClick",
|
|
60933
60980
|
"actionHover",
|
|
60934
60981
|
"adjustmentHandles"
|
|
60935
|
-
]),
|
|
60982
|
+
]), u$ = [
|
|
60936
60983
|
"backgroundColor",
|
|
60937
60984
|
"backgroundImage",
|
|
60938
60985
|
"backgroundGradient",
|
|
@@ -60943,22 +60990,22 @@ var l$ = class {
|
|
|
60943
60990
|
"sectionName",
|
|
60944
60991
|
"sectionId"
|
|
60945
60992
|
];
|
|
60946
|
-
function
|
|
60993
|
+
function h$(e, t) {
|
|
60947
60994
|
return e === t || null === e && null === t || null !== e && null !== t && typeof e == typeof t && "object" == typeof e && JSON.stringify(e) === JSON.stringify(t);
|
|
60948
60995
|
}
|
|
60949
|
-
function
|
|
60996
|
+
function m$(e) {
|
|
60950
60997
|
const t = /* @__PURE__ */ new Map();
|
|
60951
|
-
for (const n of e) if (t.set(n.id, n), "group" === n.type && n.children) for (const [e, r] of
|
|
60998
|
+
for (const n of e) if (t.set(n.id, n), "group" === n.type && n.children) for (const [e, r] of m$(n.children)) t.set(e, r);
|
|
60952
60999
|
return t;
|
|
60953
61000
|
}
|
|
60954
|
-
function
|
|
60955
|
-
const n = e, r = t, i = new Set(
|
|
61001
|
+
function f$(e, t) {
|
|
61002
|
+
const n = e, r = t, i = new Set(p$);
|
|
60956
61003
|
return i.add("type"), "group" === e.type && "group" === t.type && i.add("children"), function(e, t, n, r) {
|
|
60957
61004
|
const i = [], o = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
|
|
60958
61005
|
for (const n of o) {
|
|
60959
61006
|
if (r.has(n)) continue;
|
|
60960
61007
|
const o = n, a = e[n], s = t[n];
|
|
60961
|
-
|
|
61008
|
+
h$(a, s) || i.push({
|
|
60962
61009
|
property: o,
|
|
60963
61010
|
oldValue: a,
|
|
60964
61011
|
newValue: s
|
|
@@ -60967,20 +61014,20 @@ function m$(e, t) {
|
|
|
60967
61014
|
return i;
|
|
60968
61015
|
}(n, r, 0, i);
|
|
60969
61016
|
}
|
|
60970
|
-
function
|
|
61017
|
+
function g$(e) {
|
|
60971
61018
|
return e.map((e) => e.id);
|
|
60972
61019
|
}
|
|
60973
|
-
function
|
|
61020
|
+
function y$(e, t, n = 0) {
|
|
60974
61021
|
const r = [], i = [];
|
|
60975
|
-
for (const n of
|
|
61022
|
+
for (const n of u$) {
|
|
60976
61023
|
const r = e[n], o = t[n];
|
|
60977
|
-
|
|
61024
|
+
h$(r, o) || i.push({
|
|
60978
61025
|
property: `slide.${n}`,
|
|
60979
61026
|
oldValue: r,
|
|
60980
61027
|
newValue: o
|
|
60981
61028
|
});
|
|
60982
61029
|
}
|
|
60983
|
-
const o =
|
|
61030
|
+
const o = m$(e.elements), a = m$(t.elements), s = new Set(g$(e.elements)), l = new Set(g$(t.elements));
|
|
60984
61031
|
for (const e of o.keys()) s.add(e);
|
|
60985
61032
|
for (const e of a.keys()) l.add(e);
|
|
60986
61033
|
for (const [e, t] of o) a.has(e) || r.push({
|
|
@@ -60996,7 +61043,7 @@ function g$(e, t, n = 0) {
|
|
|
60996
61043
|
for (const [e, t] of o) {
|
|
60997
61044
|
const n = a.get(e);
|
|
60998
61045
|
if (!n) continue;
|
|
60999
|
-
const i =
|
|
61046
|
+
const i = f$(t, n);
|
|
61000
61047
|
i.length > 0 && r.push({
|
|
61001
61048
|
elementId: e,
|
|
61002
61049
|
elementType: t.type,
|
|
@@ -61016,7 +61063,7 @@ function g$(e, t, n = 0) {
|
|
|
61016
61063
|
changes: r
|
|
61017
61064
|
};
|
|
61018
61065
|
}
|
|
61019
|
-
function
|
|
61066
|
+
function x$(e, t) {
|
|
61020
61067
|
const n = [], r = /* @__PURE__ */ new Map();
|
|
61021
61068
|
for (let t = 0; t < e.slides.length; t++) r.set(e.slides[t].id, t);
|
|
61022
61069
|
const i = /* @__PURE__ */ new Map();
|
|
@@ -61040,7 +61087,7 @@ function y$(e, t) {
|
|
|
61040
61087
|
for (let r = 0; r < e.slides.length; r++) {
|
|
61041
61088
|
const o = e.slides[r], a = i.get(o.id);
|
|
61042
61089
|
if (void 0 === a) continue;
|
|
61043
|
-
const s =
|
|
61090
|
+
const s = y$(o, t.slides[a], r);
|
|
61044
61091
|
s.changes && s.changes.length > 0 && n.push(s);
|
|
61045
61092
|
}
|
|
61046
61093
|
const o = function(e, t) {
|
|
@@ -61089,21 +61136,21 @@ function y$(e, t) {
|
|
|
61089
61136
|
});
|
|
61090
61137
|
if (e.fontScheme && t.fontScheme) {
|
|
61091
61138
|
const r = e.fontScheme, i = t.fontScheme;
|
|
61092
|
-
|
|
61139
|
+
h$(r.majorFont, i.majorFont) || n.push({
|
|
61093
61140
|
property: "theme.fontScheme.majorFont",
|
|
61094
61141
|
oldValue: r.majorFont,
|
|
61095
61142
|
newValue: i.majorFont
|
|
61096
|
-
}),
|
|
61143
|
+
}), h$(r.minorFont, i.minorFont) || n.push({
|
|
61097
61144
|
property: "theme.fontScheme.minorFont",
|
|
61098
61145
|
oldValue: r.minorFont,
|
|
61099
61146
|
newValue: i.minorFont
|
|
61100
61147
|
});
|
|
61101
|
-
} else
|
|
61148
|
+
} else h$(e.fontScheme, t.fontScheme) || n.push({
|
|
61102
61149
|
property: "theme.fontScheme",
|
|
61103
61150
|
oldValue: e.fontScheme,
|
|
61104
61151
|
newValue: t.fontScheme
|
|
61105
61152
|
});
|
|
61106
|
-
return
|
|
61153
|
+
return h$(e.formatScheme, t.formatScheme) || n.push({
|
|
61107
61154
|
property: "theme.formatScheme",
|
|
61108
61155
|
oldValue: e.formatScheme ? "(present)" : void 0,
|
|
61109
61156
|
newValue: t.formatScheme ? "(present)" : void 0
|
|
@@ -61127,7 +61174,7 @@ function y$(e, t) {
|
|
|
61127
61174
|
"contentStatus"
|
|
61128
61175
|
]) {
|
|
61129
61176
|
const t = r[e], o = i[e];
|
|
61130
|
-
|
|
61177
|
+
h$(t, o) || n.push({
|
|
61131
61178
|
property: `coreProperties.${e}`,
|
|
61132
61179
|
oldValue: t,
|
|
61133
61180
|
newValue: o
|
|
@@ -61149,7 +61196,7 @@ function y$(e, t) {
|
|
|
61149
61196
|
"template"
|
|
61150
61197
|
]) {
|
|
61151
61198
|
const t = a[e], r = s[e];
|
|
61152
|
-
|
|
61199
|
+
h$(t, r) || n.push({
|
|
61153
61200
|
property: `appProperties.${e}`,
|
|
61154
61201
|
oldValue: t,
|
|
61155
61202
|
newValue: r
|
|
@@ -61187,37 +61234,37 @@ function y$(e, t) {
|
|
|
61187
61234
|
}
|
|
61188
61235
|
};
|
|
61189
61236
|
}
|
|
61190
|
-
function
|
|
61237
|
+
function b$(e) {
|
|
61191
61238
|
const t = /* @__PURE__ */ new Set();
|
|
61192
|
-
for (const n of e) if (t.add(n.id), "group" === n.type && n.children) for (const e of
|
|
61239
|
+
for (const n of e) if (t.add(n.id), "group" === n.type && n.children) for (const e of b$(n.children)) t.add(e);
|
|
61193
61240
|
return t;
|
|
61194
61241
|
}
|
|
61195
|
-
function
|
|
61242
|
+
function T$(e, t) {
|
|
61196
61243
|
if (!t.has(e)) return e;
|
|
61197
61244
|
let n = 1, r = `${e}_m${n}`;
|
|
61198
61245
|
for (; t.has(r);) n++, r = `${e}_m${n}`;
|
|
61199
61246
|
return r;
|
|
61200
61247
|
}
|
|
61201
|
-
function
|
|
61248
|
+
function S$(e, t) {
|
|
61202
61249
|
let n = t, r = `rId${n}`;
|
|
61203
61250
|
for (; e.has(r);) n++, r = `rId${n}`;
|
|
61204
61251
|
return r;
|
|
61205
61252
|
}
|
|
61206
|
-
function
|
|
61253
|
+
function w$(e, t, n) {
|
|
61207
61254
|
for (const r of e) {
|
|
61208
61255
|
if (t.has(r.id)) {
|
|
61209
|
-
const e =
|
|
61256
|
+
const e = v$(r.id, t);
|
|
61210
61257
|
n.set(r.id, e), r.id = e, t.add(e);
|
|
61211
61258
|
} else t.add(r.id);
|
|
61212
|
-
"group" === r.type && r.children &&
|
|
61259
|
+
"group" === r.type && r.children && w$(r.children, t, n);
|
|
61213
61260
|
}
|
|
61214
61261
|
}
|
|
61215
|
-
function
|
|
61262
|
+
function v$(e, t) {
|
|
61216
61263
|
let n = 1, r = `${e}_m${n}`;
|
|
61217
61264
|
for (; t.has(r);) n++, r = `${e}_m${n}`;
|
|
61218
61265
|
return r;
|
|
61219
61266
|
}
|
|
61220
|
-
function
|
|
61267
|
+
function C$(e, t) {
|
|
61221
61268
|
for (const n of e) {
|
|
61222
61269
|
if ("connector" === n.type && n.shapeStyle) {
|
|
61223
61270
|
const e = n.shapeStyle;
|
|
@@ -61230,16 +61277,16 @@ function v$(e, t) {
|
|
|
61230
61277
|
n && (e.connectorEndConnection.shapeId = n);
|
|
61231
61278
|
}
|
|
61232
61279
|
}
|
|
61233
|
-
"group" === n.type && n.children &&
|
|
61280
|
+
"group" === n.type && n.children && C$(n.children, t);
|
|
61234
61281
|
}
|
|
61235
61282
|
}
|
|
61236
|
-
function
|
|
61283
|
+
function _$(e, t) {
|
|
61237
61284
|
if (e.animations) for (const n of e.animations) {
|
|
61238
61285
|
const e = t.get(n.elementId);
|
|
61239
61286
|
e && (n.elementId = e);
|
|
61240
61287
|
}
|
|
61241
61288
|
}
|
|
61242
|
-
function
|
|
61289
|
+
function k$(e, t, n) {
|
|
61243
61290
|
const r = (n?.slideIndices ?? t.slides.map((e, t) => t)).filter((e) => e >= 0 && e < t.slides.length);
|
|
61244
61291
|
if (0 === r.length) return 0;
|
|
61245
61292
|
const i = r.map((e) => ua(t.slides[e])), o = function(e) {
|
|
@@ -61252,26 +61299,26 @@ function _$(e, t, n) {
|
|
|
61252
61299
|
return t;
|
|
61253
61300
|
}(e.slides), s = function(e) {
|
|
61254
61301
|
const t = /* @__PURE__ */ new Set();
|
|
61255
|
-
for (const n of e) for (const e of
|
|
61302
|
+
for (const n of e) for (const e of b$(n.elements)) t.add(e);
|
|
61256
61303
|
return t;
|
|
61257
61304
|
}(e.slides), l = Math.min(Math.max(0, n?.insertAt ?? e.slides.length), e.slides.length);
|
|
61258
61305
|
let c = e.slides.length + 2;
|
|
61259
61306
|
for (const e of i) {
|
|
61260
|
-
const t =
|
|
61307
|
+
const t = T$(e.id, o);
|
|
61261
61308
|
o.add(t), e.id = t;
|
|
61262
|
-
const n =
|
|
61309
|
+
const n = S$(a, c);
|
|
61263
61310
|
a.add(n), e.rId = n, c++;
|
|
61264
61311
|
const r = /* @__PURE__ */ new Map();
|
|
61265
|
-
|
|
61312
|
+
w$(e.elements, s, r), r.size > 0 && (C$(e.elements, r), _$(e, r)), e.isDirty = !0;
|
|
61266
61313
|
}
|
|
61267
61314
|
e.slides.splice(l, 0, ...i);
|
|
61268
61315
|
for (let t = 0; t < e.slides.length; t++) e.slides[t].slideNumber = t + 1;
|
|
61269
61316
|
return n?.keepSourceTheme && t.themeColorMap && (e.themeColorMap = { ...t.themeColorMap }, t.theme && (e.theme = "function" == typeof structuredClone ? structuredClone(t.theme) : JSON.parse(JSON.stringify(t.theme)))), i.length;
|
|
61270
61317
|
}
|
|
61271
|
-
var
|
|
61272
|
-
function
|
|
61318
|
+
var P$ = 0;
|
|
61319
|
+
function L$(e, t, n) {
|
|
61273
61320
|
e.sections || (e.sections = []);
|
|
61274
|
-
const r = (
|
|
61321
|
+
const r = (P$ += 1, `sec_${Date.now().toString(36)}_${P$}`), i = {
|
|
61275
61322
|
id: r,
|
|
61276
61323
|
name: t,
|
|
61277
61324
|
slideIds: n.filter((t) => t >= 0 && t < e.slides.length).map((t) => e.slides[t].id)
|
|
@@ -61280,14 +61327,14 @@ function P$(e, t, n) {
|
|
|
61280
61327
|
for (const i of n) i >= 0 && i < e.slides.length && (e.slides[i].sectionName = t, e.slides[i].sectionId = r);
|
|
61281
61328
|
return i;
|
|
61282
61329
|
}
|
|
61283
|
-
function
|
|
61330
|
+
function A$(e, t) {
|
|
61284
61331
|
if (!e.sections) return !1;
|
|
61285
61332
|
const n = e.sections.findIndex((e) => e.id === t);
|
|
61286
61333
|
if (-1 === n) return !1;
|
|
61287
61334
|
for (const n of e.slides) n.sectionId === t && (n.sectionName = void 0, n.sectionId = void 0);
|
|
61288
61335
|
return e.sections.splice(n, 1), !0;
|
|
61289
61336
|
}
|
|
61290
|
-
function
|
|
61337
|
+
function I$(e, t) {
|
|
61291
61338
|
if (!e.sections) return;
|
|
61292
61339
|
const n = /* @__PURE__ */ new Map();
|
|
61293
61340
|
for (const t of e.sections) n.set(t.id, t);
|
|
@@ -61298,12 +61345,12 @@ function A$(e, t) {
|
|
|
61298
61345
|
}
|
|
61299
61346
|
e.sections = r;
|
|
61300
61347
|
}
|
|
61301
|
-
function
|
|
61348
|
+
function M$(e, t) {
|
|
61302
61349
|
if (!e.sections || t < 0 || t >= e.slides.length) return;
|
|
61303
61350
|
const n = e.slides[t];
|
|
61304
61351
|
return n.sectionId ? e.sections.find((e) => e.id === n.sectionId) : void 0;
|
|
61305
61352
|
}
|
|
61306
|
-
function
|
|
61353
|
+
function F$(e, t, n) {
|
|
61307
61354
|
if (!e.sections) return !1;
|
|
61308
61355
|
const r = e.sections.find((e) => e.id === n);
|
|
61309
61356
|
if (!r) return !1;
|
|
@@ -61318,8 +61365,8 @@ function M$(e, t, n) {
|
|
|
61318
61365
|
}
|
|
61319
61366
|
return !0;
|
|
61320
61367
|
}
|
|
61321
|
-
var
|
|
61322
|
-
function
|
|
61368
|
+
var R$ = /\{\{([^{}]+)\}\}/g, D$ = /^\s*#each\s+([\w.]+)\s*$/, N$ = /^\s*\/each\s*$/, B$ = /^\s*#if\s+(!?[\w.]+)\s*$/, O$ = /^\s*\/if\s*$/;
|
|
61369
|
+
function E$(e, t) {
|
|
61323
61370
|
const n = t.trim().split(".");
|
|
61324
61371
|
let r = e;
|
|
61325
61372
|
for (const e of n) {
|
|
@@ -61328,7 +61375,7 @@ function O$(e, t) {
|
|
|
61328
61375
|
}
|
|
61329
61376
|
return r;
|
|
61330
61377
|
}
|
|
61331
|
-
function
|
|
61378
|
+
function j$(e, t) {
|
|
61332
61379
|
const n = t.startsWith("!"), r = function(e) {
|
|
61333
61380
|
if (null == e) return !1;
|
|
61334
61381
|
if ("boolean" == typeof e) return e;
|
|
@@ -61336,29 +61383,29 @@ function E$(e, t) {
|
|
|
61336
61383
|
if ("string" == typeof e) return e.length > 0;
|
|
61337
61384
|
if (Array.isArray(e)) return e.length > 0;
|
|
61338
61385
|
return !0;
|
|
61339
|
-
}(
|
|
61386
|
+
}(E$(e, n ? t.slice(1).trim() : t.trim()));
|
|
61340
61387
|
return n ? !r : r;
|
|
61341
61388
|
}
|
|
61342
|
-
function
|
|
61343
|
-
let n =
|
|
61344
|
-
return n = n.replace(
|
|
61389
|
+
function $$(e, t) {
|
|
61390
|
+
let n = z$(e, t);
|
|
61391
|
+
return n = n.replace(R$, (e, n) => {
|
|
61345
61392
|
const r = n.trim();
|
|
61346
|
-
if (
|
|
61347
|
-
const i =
|
|
61393
|
+
if (D$.test(r) || N$.test(r) || B$.test(r) || O$.test(r)) return e;
|
|
61394
|
+
const i = E$(t, r);
|
|
61348
61395
|
return void 0 === i ? e : "string" == typeof i || "number" == typeof i || "boolean" == typeof i ? String(i) : e;
|
|
61349
61396
|
}), n;
|
|
61350
61397
|
}
|
|
61351
|
-
function
|
|
61398
|
+
function z$(e, t) {
|
|
61352
61399
|
let n = e, r = 0;
|
|
61353
61400
|
for (; r++ < 100;) {
|
|
61354
61401
|
const e = /\{\{\s*#if\s+(!?[\w.]+)\s*\}\}((?:(?!\{\{\s*#if\s)(?!\{\{\s*\/if\s*\}\}).)*?)\{\{\s*\/if\s*\}\}/s.exec(n);
|
|
61355
61402
|
if (!e) break;
|
|
61356
|
-
const r = e[1].trim(), i = e[2], o =
|
|
61403
|
+
const r = e[1].trim(), i = e[2], o = j$(t, r);
|
|
61357
61404
|
n = n.slice(0, e.index) + (o ? i : "") + n.slice(e.index + e[0].length);
|
|
61358
61405
|
}
|
|
61359
61406
|
return n;
|
|
61360
61407
|
}
|
|
61361
|
-
function
|
|
61408
|
+
function X$(e, t) {
|
|
61362
61409
|
if (0 === e.length) return;
|
|
61363
61410
|
const n = [], r = [];
|
|
61364
61411
|
for (let t = 0; t < e.length; t++) {
|
|
@@ -61370,17 +61417,17 @@ function z$(e, t) {
|
|
|
61370
61417
|
localOffset: e
|
|
61371
61418
|
}), n.push(o[e]);
|
|
61372
61419
|
}
|
|
61373
|
-
const i = n.join(""), o =
|
|
61420
|
+
const i = n.join(""), o = z$(i, t);
|
|
61374
61421
|
if (o !== i) return function(e, t, n) {
|
|
61375
61422
|
let r = !1;
|
|
61376
61423
|
for (const t of e) t.isParagraphBreak || (r ? t.text = "" : (t.text = n, r = !0));
|
|
61377
|
-
}(e, 0, o), void
|
|
61378
|
-
|
|
61424
|
+
}(e, 0, o), void X$(e, t);
|
|
61425
|
+
R$.lastIndex = 0;
|
|
61379
61426
|
const a = [];
|
|
61380
61427
|
let s;
|
|
61381
|
-
for (; null !== (s =
|
|
61428
|
+
for (; null !== (s = R$.exec(i));) {
|
|
61382
61429
|
const e = s[1].trim();
|
|
61383
|
-
|
|
61430
|
+
D$.test(e) || N$.test(e) || B$.test(e) || O$.test(e) || a.push({
|
|
61384
61431
|
start: s.index,
|
|
61385
61432
|
end: s.index + s[0].length,
|
|
61386
61433
|
key: e,
|
|
@@ -61388,7 +61435,7 @@ function z$(e, t) {
|
|
|
61388
61435
|
});
|
|
61389
61436
|
}
|
|
61390
61437
|
if (0 !== a.length) for (let n = a.length - 1; n >= 0; n--) {
|
|
61391
|
-
const i = a[n], o =
|
|
61438
|
+
const i = a[n], o = E$(t, i.key);
|
|
61392
61439
|
if (void 0 === o) continue;
|
|
61393
61440
|
if ("string" != typeof o && "number" != typeof o && "boolean" != typeof o) continue;
|
|
61394
61441
|
const s = String(o), l = r[i.start], c = r[i.end - 1];
|
|
@@ -61404,25 +61451,25 @@ function z$(e, t) {
|
|
|
61404
61451
|
}
|
|
61405
61452
|
}
|
|
61406
61453
|
}
|
|
61407
|
-
function
|
|
61454
|
+
function U$(e, t) {
|
|
61408
61455
|
for (const n of e) {
|
|
61409
|
-
if ("group" === n.type && "children" in n &&
|
|
61456
|
+
if ("group" === n.type && "children" in n && U$(n.children, t), "table" === n.type && "tableData" in n) {
|
|
61410
61457
|
const e = n;
|
|
61411
|
-
if (e.tableData?.rows) for (const n of e.tableData.rows) for (const e of n.cells) e.text =
|
|
61458
|
+
if (e.tableData?.rows) for (const n of e.tableData.rows) for (const e of n.cells) e.text = $$(e.text, t);
|
|
61412
61459
|
continue;
|
|
61413
61460
|
}
|
|
61414
61461
|
if (!wt(n)) continue;
|
|
61415
61462
|
const e = n.textSegments;
|
|
61416
|
-
e && e.length > 0 ? (
|
|
61463
|
+
e && e.length > 0 ? (X$(e, t), n.text = e.filter((e) => !e.isParagraphBreak).map((e) => e.text).join("")) : n.text && (n.text = $$(n.text, t));
|
|
61417
61464
|
}
|
|
61418
61465
|
}
|
|
61419
|
-
function
|
|
61466
|
+
function G$(e, t) {
|
|
61420
61467
|
let n;
|
|
61421
|
-
for (
|
|
61468
|
+
for (R$.lastIndex = 0; null !== (n = R$.exec(e));) t.add(n[1].trim());
|
|
61422
61469
|
}
|
|
61423
|
-
function
|
|
61470
|
+
function W$(e) {
|
|
61424
61471
|
for (const t of e.elements) {
|
|
61425
|
-
const e =
|
|
61472
|
+
const e = H$(t);
|
|
61426
61473
|
if (e) {
|
|
61427
61474
|
const t = /\{\{\s*#each\s+([\w.]+)\s*\}\}/.exec(e);
|
|
61428
61475
|
if (t) return t[1];
|
|
@@ -61430,31 +61477,31 @@ function G$(e) {
|
|
|
61430
61477
|
}
|
|
61431
61478
|
return null;
|
|
61432
61479
|
}
|
|
61433
|
-
function
|
|
61480
|
+
function V$(e) {
|
|
61434
61481
|
for (const t of e.elements) {
|
|
61435
|
-
const e =
|
|
61482
|
+
const e = H$(t);
|
|
61436
61483
|
if (e && /\{\{\s*\/each\s*\}\}/.test(e)) return !0;
|
|
61437
61484
|
}
|
|
61438
61485
|
return !1;
|
|
61439
61486
|
}
|
|
61440
|
-
function
|
|
61487
|
+
function H$(e) {
|
|
61441
61488
|
if (wt(e)) return e.textSegments && e.textSegments.length > 0 ? e.textSegments.filter((e) => !e.isParagraphBreak).map((e) => e.text ?? "").join("") : e.text ?? null;
|
|
61442
61489
|
if ("group" === e.type && "children" in e) {
|
|
61443
61490
|
const t = e.children;
|
|
61444
61491
|
for (const e of t) {
|
|
61445
|
-
const t =
|
|
61492
|
+
const t = H$(e);
|
|
61446
61493
|
if (t) return t;
|
|
61447
61494
|
}
|
|
61448
61495
|
}
|
|
61449
61496
|
return null;
|
|
61450
61497
|
}
|
|
61451
|
-
function H$(e) {
|
|
61452
|
-
for (const t of e.elements) q$(t);
|
|
61453
|
-
}
|
|
61454
61498
|
function q$(e) {
|
|
61499
|
+
for (const t of e.elements) Y$(t);
|
|
61500
|
+
}
|
|
61501
|
+
function Y$(e) {
|
|
61455
61502
|
if ("group" === e.type && "children" in e) {
|
|
61456
61503
|
const t = e.children;
|
|
61457
|
-
for (const e of t)
|
|
61504
|
+
for (const e of t) Y$(e);
|
|
61458
61505
|
}
|
|
61459
61506
|
if (!wt(e)) return;
|
|
61460
61507
|
const t = e.textSegments;
|
|
@@ -61463,7 +61510,7 @@ function q$(e) {
|
|
|
61463
61510
|
e.text = t.filter((e) => !e.isParagraphBreak).map((e) => e.text).join("");
|
|
61464
61511
|
} else e.text && (e.text = e.text.replace(/\{\{\s*#each\s+[\w.]+\s*\}\}/g, "").replace(/\{\{\s*\/each\s*\}\}/g, ""));
|
|
61465
61512
|
}
|
|
61466
|
-
function
|
|
61513
|
+
function Z$(e) {
|
|
61467
61514
|
const t = /* @__PURE__ */ new Set();
|
|
61468
61515
|
function n(e) {
|
|
61469
61516
|
if ("group" === e.type && "children" in e) {
|
|
@@ -61472,33 +61519,33 @@ function Y$(e) {
|
|
|
61472
61519
|
}
|
|
61473
61520
|
if ("table" === e.type && "tableData" in e) {
|
|
61474
61521
|
const n = e;
|
|
61475
|
-
if (n.tableData?.rows) for (const e of n.tableData.rows) for (const n of e.cells)
|
|
61522
|
+
if (n.tableData?.rows) for (const e of n.tableData.rows) for (const n of e.cells) G$(n.text, t);
|
|
61476
61523
|
return;
|
|
61477
61524
|
}
|
|
61478
61525
|
if (!wt(e)) return;
|
|
61479
61526
|
const r = e.textSegments;
|
|
61480
|
-
if (r && r.length > 0)
|
|
61481
|
-
else e.text &&
|
|
61527
|
+
if (r && r.length > 0) G$(r.filter((e) => !e.isParagraphBreak).map((e) => e.text ?? "").join(""), t);
|
|
61528
|
+
else e.text && G$(e.text, t);
|
|
61482
61529
|
}
|
|
61483
61530
|
for (const t of e.slides) for (const e of t.elements) n(e);
|
|
61484
61531
|
return Array.from(t);
|
|
61485
61532
|
}
|
|
61486
|
-
function
|
|
61533
|
+
function K$(e, t) {
|
|
61487
61534
|
e.slides = function(e, t) {
|
|
61488
61535
|
const n = [];
|
|
61489
61536
|
let r = 0;
|
|
61490
61537
|
for (; r < e.length;) {
|
|
61491
|
-
const i =
|
|
61538
|
+
const i = W$(e[r]);
|
|
61492
61539
|
if (!i) {
|
|
61493
61540
|
n.push(e[r]), r++;
|
|
61494
61541
|
continue;
|
|
61495
61542
|
}
|
|
61496
61543
|
const o = [];
|
|
61497
61544
|
let a = -1;
|
|
61498
|
-
if (
|
|
61545
|
+
if (V$(e[r])) o.push(e[r]), a = r;
|
|
61499
61546
|
else {
|
|
61500
61547
|
o.push(e[r]);
|
|
61501
|
-
for (let t = r + 1; t < e.length; t++) if (o.push(e[t]),
|
|
61548
|
+
for (let t = r + 1; t < e.length; t++) if (o.push(e[t]), V$(e[t])) {
|
|
61502
61549
|
a = t;
|
|
61503
61550
|
break;
|
|
61504
61551
|
}
|
|
@@ -61507,7 +61554,7 @@ function Z$(e, t) {
|
|
|
61507
61554
|
n.push(e[r]), r++;
|
|
61508
61555
|
continue;
|
|
61509
61556
|
}
|
|
61510
|
-
const s =
|
|
61557
|
+
const s = E$(t, i), l = Array.isArray(s) ? s : [];
|
|
61511
61558
|
for (const e of l) {
|
|
61512
61559
|
const r = {
|
|
61513
61560
|
...t,
|
|
@@ -61515,67 +61562,67 @@ function Z$(e, t) {
|
|
|
61515
61562
|
};
|
|
61516
61563
|
for (const e of o) {
|
|
61517
61564
|
const t = ua(e);
|
|
61518
|
-
t.slideNumber = n.length + 1, t.id = `slide${t.slideNumber}`, t.rId = `rId${t.slideNumber + 1}`,
|
|
61565
|
+
t.slideNumber = n.length + 1, t.id = `slide${t.slideNumber}`, t.rId = `rId${t.slideNumber + 1}`, q$(t), U$(t.elements, r), t.notes && (t.notes = $$(t.notes, r)), t.notesSegments && t.notesSegments.length > 0 && (X$(t.notesSegments, r), t.notes = t.notesSegments.filter((e) => !e.isParagraphBreak).map((e) => e.text).join("")), n.push(t);
|
|
61519
61566
|
}
|
|
61520
61567
|
}
|
|
61521
61568
|
r = a + 1;
|
|
61522
61569
|
}
|
|
61523
61570
|
return n;
|
|
61524
61571
|
}(e.slides, t);
|
|
61525
|
-
for (const n of e.slides)
|
|
61526
|
-
}
|
|
61527
|
-
var K$ = 0;
|
|
61528
|
-
function J$(e) {
|
|
61529
|
-
return K$ += 1, `${e}_clone_${Date.now().toString(36)}_${K$}`;
|
|
61572
|
+
for (const n of e.slides) U$(n.elements, t), n.notes && (n.notes = $$(n.notes, t)), n.notesSegments && n.notesSegments.length > 0 && (X$(n.notesSegments, t), n.notes = n.notesSegments.filter((e) => !e.isParagraphBreak).map((e) => e.text).join(""));
|
|
61530
61573
|
}
|
|
61574
|
+
var J$ = 0;
|
|
61531
61575
|
function Q$(e) {
|
|
61576
|
+
return J$ += 1, `${e}_clone_${Date.now().toString(36)}_${J$}`;
|
|
61577
|
+
}
|
|
61578
|
+
function ez(e) {
|
|
61532
61579
|
const t = "text" === e.type ? "txt" : "shape" === e.type ? "shp" : "connector" === e.type ? "cxn" : "image" === e.type || "picture" === e.type ? "img" : "table" === e.type ? "tbl" : "chart" === e.type ? "cht" : "media" === e.type ? "med" : "group" === e.type ? "grp" : e.type, n = {
|
|
61533
61580
|
...e,
|
|
61534
|
-
id:
|
|
61581
|
+
id: Q$(t)
|
|
61535
61582
|
};
|
|
61536
|
-
return "group" === n.type && "children" in n && (n.children = n.children.map((e) =>
|
|
61537
|
-
}
|
|
61538
|
-
function ez(e) {
|
|
61539
|
-
return Q$(pa(e));
|
|
61583
|
+
return "group" === n.type && "children" in n && (n.children = n.children.map((e) => ez(e))), n;
|
|
61540
61584
|
}
|
|
61541
61585
|
function tz(e) {
|
|
61542
|
-
|
|
61586
|
+
return ez(pa(e));
|
|
61543
61587
|
}
|
|
61544
|
-
function nz(e
|
|
61545
|
-
if (
|
|
61588
|
+
function nz(e) {
|
|
61589
|
+
if (!e.chartData) throw new Error("Chart element has no chartData. Cannot perform chart operations on an uninitialised chart.");
|
|
61546
61590
|
}
|
|
61547
61591
|
function rz(e, t) {
|
|
61548
|
-
|
|
61592
|
+
if (nz(e), t < 0 || t >= e.chartData.series.length) throw new RangeError(`Series index ${t} is out of range. Chart has ${e.chartData.series.length} series (indices 0–${e.chartData.series.length - 1}).`);
|
|
61549
61593
|
}
|
|
61550
61594
|
function iz(e, t) {
|
|
61551
|
-
|
|
61595
|
+
nz(e), e.chartData.chartType = t;
|
|
61596
|
+
}
|
|
61597
|
+
function oz(e, t) {
|
|
61598
|
+
nz(e), e.chartData.series.push({
|
|
61552
61599
|
name: t.name,
|
|
61553
61600
|
values: t.values,
|
|
61554
61601
|
color: t.color
|
|
61555
61602
|
});
|
|
61556
61603
|
}
|
|
61557
|
-
function oz(e, t) {
|
|
61558
|
-
nz(e, t), e.chartData.series.splice(t, 1);
|
|
61559
|
-
}
|
|
61560
61604
|
function az(e, t) {
|
|
61561
|
-
|
|
61605
|
+
rz(e, t), e.chartData.series.splice(t, 1);
|
|
61562
61606
|
}
|
|
61563
|
-
function sz(e, t
|
|
61564
|
-
nz(e
|
|
61607
|
+
function sz(e, t) {
|
|
61608
|
+
nz(e), e.chartData.categories = t;
|
|
61565
61609
|
}
|
|
61566
|
-
function lz(e, t) {
|
|
61567
|
-
|
|
61610
|
+
function lz(e, t, n) {
|
|
61611
|
+
rz(e, t), e.chartData.series[t].values = n;
|
|
61568
61612
|
}
|
|
61569
61613
|
function cz(e, t) {
|
|
61570
|
-
|
|
61614
|
+
nz(e), e.chartData.title = t;
|
|
61571
61615
|
}
|
|
61572
61616
|
function dz(e, t) {
|
|
61573
|
-
|
|
61617
|
+
nz(e), e.chartData.grouping = t;
|
|
61618
|
+
}
|
|
61619
|
+
function pz(e, t) {
|
|
61620
|
+
nz(e);
|
|
61574
61621
|
const n = e.chartData.style ??= {};
|
|
61575
61622
|
void 0 !== t.show && (n.hasLegend = t.show), void 0 !== t.position && (n.legendPosition = t.position, void 0 === n.hasLegend && (n.hasLegend = !0));
|
|
61576
61623
|
}
|
|
61577
|
-
function
|
|
61578
|
-
|
|
61624
|
+
function uz(e, t) {
|
|
61625
|
+
nz(e);
|
|
61579
61626
|
const n = e.chartData.style ??= {};
|
|
61580
61627
|
void 0 !== t.show && (n.hasDataLabels = t.show);
|
|
61581
61628
|
const r = [
|
|
@@ -61591,8 +61638,8 @@ function pz(e, t) {
|
|
|
61591
61638
|
void 0 !== t.position && (e.position = t.position || void 0), void 0 === n.hasDataLabels && (n.hasDataLabels = !0);
|
|
61592
61639
|
}
|
|
61593
61640
|
}
|
|
61594
|
-
function
|
|
61595
|
-
|
|
61641
|
+
function hz(e, t, n) {
|
|
61642
|
+
nz(e);
|
|
61596
61643
|
const r = e.chartData.axes ??= [];
|
|
61597
61644
|
let i = r.find((e) => e.axisType === t);
|
|
61598
61645
|
i || (i = { axisType: t }, r.push(i)), void 0 !== n.min && (i.min = n.min ?? void 0), void 0 !== n.max && (i.max = n.max ?? void 0), void 0 !== n.majorUnit && (i.majorUnit = n.majorUnit ?? void 0), void 0 !== n.minorUnit && (i.minorUnit = n.minorUnit ?? void 0), void 0 !== n.orientation && (i.orientation = n.orientation ?? void 0), void 0 !== n.numberFormat && (i.numFmt = n.numberFormat ? {
|
|
@@ -61600,28 +61647,28 @@ function uz(e, t, n) {
|
|
|
61600
61647
|
sourceLinked: !1
|
|
61601
61648
|
} : void 0), void 0 !== n.tickLabelPosition && (i.tickLblPos = n.tickLabelPosition), void 0 !== n.title && (i.titleText = n.title ?? ""), void 0 !== n.majorGridlines && (i.majorGridlines = n.majorGridlines), void 0 !== n.minorGridlines && (i.minorGridlines = n.minorGridlines), void 0 !== n.displayUnits && (i.displayUnits = n.displayUnits ?? void 0), void 0 !== n.displayUnitsValue && (i.displayUnitsValue = n.displayUnitsValue ?? void 0), void 0 !== n.displayUnitsLabel && (i.displayUnitsLabel = n.displayUnitsLabel);
|
|
61602
61649
|
}
|
|
61603
|
-
function
|
|
61604
|
-
|
|
61650
|
+
function mz(e, t) {
|
|
61651
|
+
nz(e);
|
|
61605
61652
|
const n = e.chartData.axes ??= [];
|
|
61606
61653
|
let r = n.find((e) => e.axisType === t);
|
|
61607
61654
|
return r || (r = { axisType: t }, n.push(r)), r;
|
|
61608
61655
|
}
|
|
61609
|
-
function
|
|
61610
|
-
const r =
|
|
61656
|
+
function fz(e, t, n) {
|
|
61657
|
+
const r = mz(e, t);
|
|
61611
61658
|
r.logScale = n.enabled, n.enabled ? r.logBase = n.base ?? r.logBase ?? 10 : r.logBase = void 0;
|
|
61612
61659
|
}
|
|
61613
|
-
function
|
|
61614
|
-
const r =
|
|
61660
|
+
function gz(e, t, n) {
|
|
61661
|
+
const r = mz(e, t);
|
|
61615
61662
|
void 0 !== n.fontFamily && (r.fontFamily = n.fontFamily ?? void 0), void 0 !== n.fontSize && (r.fontSize = n.fontSize ?? void 0), void 0 !== n.fontBold && (r.fontBold = n.fontBold), void 0 !== n.fontColor && (r.fontColor = n.fontColor ?? void 0);
|
|
61616
61663
|
}
|
|
61617
|
-
function
|
|
61618
|
-
const i =
|
|
61664
|
+
function yz(e, t, n, r) {
|
|
61665
|
+
const i = mz(e, t), o = "major" === n ? "majorGridlinesSpPr" : "minorGridlinesSpPr", a = "major" === n ? "majorGridlines" : "minorGridlines", s = { ...i[o] ?? {} };
|
|
61619
61666
|
void 0 !== r.color && (s.strokeColor = r.color ?? void 0), void 0 !== r.width && (s.strokeWidth = r.width ?? void 0), void 0 !== r.dashStyle && (s.strokeDashStyle = r.dashStyle ?? void 0);
|
|
61620
61667
|
const l = void 0 !== s.strokeColor || void 0 !== s.strokeWidth || void 0 !== s.strokeDashStyle || void 0 !== s.fillColor;
|
|
61621
61668
|
i[o] = l ? s : void 0, l && (i[a] = !0);
|
|
61622
61669
|
}
|
|
61623
|
-
function
|
|
61624
|
-
|
|
61670
|
+
function xz(e, t, n) {
|
|
61671
|
+
rz(e, t);
|
|
61625
61672
|
const r = e.chartData.series[t];
|
|
61626
61673
|
if (null === n) return void (r.marker = void 0);
|
|
61627
61674
|
const i = r.marker;
|
|
@@ -61636,19 +61683,19 @@ function yz(e, t, n) {
|
|
|
61636
61683
|
fillColor: o.fillColor
|
|
61637
61684
|
}), r.marker = a;
|
|
61638
61685
|
}
|
|
61639
|
-
function
|
|
61640
|
-
|
|
61686
|
+
function bz(e, t, n) {
|
|
61687
|
+
rz(e, t);
|
|
61641
61688
|
const r = e.chartData;
|
|
61642
61689
|
r.series[t].seriesChartType = n ?? void 0;
|
|
61643
61690
|
new Set(r.series.map((e) => e.seriesChartType ?? r.chartType).filter((e) => "combo" !== e)).size > 1 && (r.chartType = "combo");
|
|
61644
61691
|
}
|
|
61645
|
-
function
|
|
61692
|
+
function Tz(e, t) {
|
|
61646
61693
|
const n = e.dataPoints ??= [];
|
|
61647
61694
|
let r = n.find((e) => e.idx === t);
|
|
61648
61695
|
return r || (r = { idx: t }, n.push(r), n.sort((e, t) => e.idx - t.idx)), r;
|
|
61649
61696
|
}
|
|
61650
|
-
function
|
|
61651
|
-
|
|
61697
|
+
function Sz(e, t, n, r) {
|
|
61698
|
+
rz(e, t);
|
|
61652
61699
|
const i = e.chartData.series[t];
|
|
61653
61700
|
if (null === r) {
|
|
61654
61701
|
const e = i.dataPoints?.find((e) => e.idx === n);
|
|
@@ -61656,34 +61703,34 @@ function Tz(e, t, n, r) {
|
|
|
61656
61703
|
e.spPr && (e.spPr = {
|
|
61657
61704
|
...e.spPr,
|
|
61658
61705
|
fillColor: void 0
|
|
61659
|
-
}, void 0 === e.spPr.fillColor && void 0 === e.spPr.strokeColor && void 0 === e.spPr.strokeWidth && void 0 === e.spPr.strokeDashStyle && (e.spPr = void 0)),
|
|
61706
|
+
}, void 0 === e.spPr.fillColor && void 0 === e.spPr.strokeColor && void 0 === e.spPr.strokeWidth && void 0 === e.spPr.strokeDashStyle && (e.spPr = void 0)), _z(i, n);
|
|
61660
61707
|
return;
|
|
61661
61708
|
}
|
|
61662
|
-
const o =
|
|
61709
|
+
const o = Tz(i, n);
|
|
61663
61710
|
o.spPr = {
|
|
61664
61711
|
...o.spPr ?? {},
|
|
61665
61712
|
fillColor: r
|
|
61666
61713
|
};
|
|
61667
61714
|
}
|
|
61668
|
-
function
|
|
61669
|
-
|
|
61715
|
+
function wz(e, t, n, r) {
|
|
61716
|
+
rz(e, t);
|
|
61670
61717
|
const i = e.chartData.series[t];
|
|
61671
61718
|
if (null === r) {
|
|
61672
61719
|
const e = i.dataPoints?.find((e) => e.idx === n);
|
|
61673
|
-
e && (e.explosion = void 0,
|
|
61720
|
+
e && (e.explosion = void 0, _z(i, n));
|
|
61674
61721
|
return;
|
|
61675
61722
|
}
|
|
61676
|
-
|
|
61723
|
+
Tz(i, n).explosion = r;
|
|
61677
61724
|
}
|
|
61678
|
-
function
|
|
61679
|
-
|
|
61725
|
+
function vz(e, t, n, r) {
|
|
61726
|
+
rz(e, t);
|
|
61680
61727
|
const i = e.chartData.series[t];
|
|
61681
61728
|
if (null === r) {
|
|
61682
61729
|
const e = i.dataPoints?.find((e) => e.idx === n);
|
|
61683
|
-
e && (e.marker = void 0,
|
|
61730
|
+
e && (e.marker = void 0, _z(i, n));
|
|
61684
61731
|
return;
|
|
61685
61732
|
}
|
|
61686
|
-
const o =
|
|
61733
|
+
const o = Tz(i, n), a = o.marker, s = {
|
|
61687
61734
|
symbol: r.symbol ?? a?.symbol ?? "circle",
|
|
61688
61735
|
size: r.size ?? a?.size,
|
|
61689
61736
|
spPr: a?.spPr ? { ...a.spPr } : void 0
|
|
@@ -61693,8 +61740,8 @@ function wz(e, t, n, r) {
|
|
|
61693
61740
|
fillColor: r.fillColor
|
|
61694
61741
|
}), o.marker = s;
|
|
61695
61742
|
}
|
|
61696
|
-
function
|
|
61697
|
-
|
|
61743
|
+
function Cz(e, t, n, r) {
|
|
61744
|
+
rz(e, t);
|
|
61698
61745
|
const i = e.chartData.series[t];
|
|
61699
61746
|
if (null === r) {
|
|
61700
61747
|
if (!i.dataLabels) return;
|
|
@@ -61707,13 +61754,13 @@ function vz(e, t, n, r) {
|
|
|
61707
61754
|
void 0 !== t.showValue && (e.showVal = t.showValue), void 0 !== t.showCategory && (e.showCatName = t.showCategory), void 0 !== t.showSeriesName && (e.showSerName = t.showSeriesName), void 0 !== t.showPercent && (e.showPercent = t.showPercent), void 0 !== t.showLegendKey && (e.showLegendKey = t.showLegendKey), void 0 !== t.position && (e.position = t.position), void 0 !== t.text && (e.text = "" === t.text ? void 0 : t.text);
|
|
61708
61755
|
}(a, r);
|
|
61709
61756
|
}
|
|
61710
|
-
function
|
|
61757
|
+
function _z(e, t) {
|
|
61711
61758
|
if (!e.dataPoints) return;
|
|
61712
61759
|
const n = e.dataPoints.find((e) => e.idx === t);
|
|
61713
61760
|
if (!n) return;
|
|
61714
61761
|
void 0 === n.spPr && void 0 === n.explosion && void 0 === n.invertIfNegative && void 0 === n.marker && (e.dataPoints = e.dataPoints.filter((e) => e.idx !== t), 0 === e.dataPoints.length && (e.dataPoints = void 0));
|
|
61715
61762
|
}
|
|
61716
|
-
function
|
|
61763
|
+
function kz(e, t) {
|
|
61717
61764
|
const n = t.toLowerCase(), r = e.layoutOptions?.find((e) => e.name.toLowerCase() === n);
|
|
61718
61765
|
if (r) return r;
|
|
61719
61766
|
if (e.slideMasters) for (const r of e.slideMasters) {
|
|
@@ -61724,19 +61771,19 @@ function _z(e, t) {
|
|
|
61724
61771
|
};
|
|
61725
61772
|
}
|
|
61726
61773
|
}
|
|
61727
|
-
function
|
|
61774
|
+
function Pz(e, t) {
|
|
61728
61775
|
const n = e.layoutOptions?.find((e) => e.type === t);
|
|
61729
61776
|
if (n) return n;
|
|
61730
61777
|
}
|
|
61731
|
-
function
|
|
61778
|
+
function Lz(e, t, n) {
|
|
61732
61779
|
if (!t || "" === t.trim()) throw new Error("newShapeType must be a non-empty string");
|
|
61733
61780
|
e.shapeType = t, e.shapeAdjustments = void 0 !== n ? { ...n } : void 0, e.pathData = void 0, e.pathWidth = void 0, e.pathHeight = void 0, e.customGeometryPaths = void 0, e.adjustmentHandles = void 0;
|
|
61734
61781
|
}
|
|
61735
|
-
function
|
|
61782
|
+
function Az(e, t, n, r) {
|
|
61736
61783
|
if (!t || "" === t.trim()) throw new Error("svgPath must be a non-empty string");
|
|
61737
61784
|
e.shapeType = void 0, e.shapeAdjustments = void 0, e.adjustmentHandles = void 0, e.pathData = t, e.pathWidth = n, e.pathHeight = r, e.customGeometryPaths = void 0;
|
|
61738
61785
|
}
|
|
61739
|
-
function
|
|
61786
|
+
function Iz(e, t, n = {}) {
|
|
61740
61787
|
if (!t) {
|
|
61741
61788
|
const { locks: t, ...n } = e;
|
|
61742
61789
|
return n;
|
|
@@ -61752,7 +61799,7 @@ function Az(e, t, n = {}) {
|
|
|
61752
61799
|
locks: r
|
|
61753
61800
|
};
|
|
61754
61801
|
}
|
|
61755
|
-
var
|
|
61802
|
+
var Mz = class e {
|
|
61756
61803
|
_chartType;
|
|
61757
61804
|
_input;
|
|
61758
61805
|
_options = {};
|
|
@@ -61797,7 +61844,7 @@ var Iz = class e {
|
|
|
61797
61844
|
return or(this._chartType, this._input, this._options);
|
|
61798
61845
|
}
|
|
61799
61846
|
};
|
|
61800
|
-
var
|
|
61847
|
+
var Fz = {
|
|
61801
61848
|
OFFICE: {
|
|
61802
61849
|
name: "Office Theme",
|
|
61803
61850
|
colors: {
|
|
@@ -61967,27 +62014,27 @@ var Mz = {
|
|
|
61967
62014
|
}
|
|
61968
62015
|
}
|
|
61969
62016
|
};
|
|
61970
|
-
function
|
|
61971
|
-
return
|
|
62017
|
+
function Rz(e) {
|
|
62018
|
+
return Fz[e];
|
|
61972
62019
|
}
|
|
61973
|
-
var
|
|
62020
|
+
var Dz = [
|
|
61974
62021
|
"parse",
|
|
61975
62022
|
"preserve",
|
|
61976
62023
|
"edit",
|
|
61977
62024
|
"serialize"
|
|
61978
62025
|
];
|
|
61979
|
-
function
|
|
62026
|
+
function Nz(e, t, n = Dz) {
|
|
61980
62027
|
return {
|
|
61981
62028
|
test: e,
|
|
61982
62029
|
anchors: t,
|
|
61983
62030
|
facets: n
|
|
61984
62031
|
};
|
|
61985
62032
|
}
|
|
61986
|
-
var
|
|
61987
|
-
function
|
|
61988
|
-
for (const n of e)
|
|
62033
|
+
var Bz = {};
|
|
62034
|
+
function Oz(e, t) {
|
|
62035
|
+
for (const n of e) Bz[n] = t;
|
|
61989
62036
|
}
|
|
61990
|
-
|
|
62037
|
+
Oz([
|
|
61991
62038
|
"chart:complexType:CT_DispUnits",
|
|
61992
62039
|
"chart:complexType:CT_DispUnitsLbl",
|
|
61993
62040
|
"chart:element:dispUnits",
|
|
@@ -61998,19 +62045,19 @@ Bz([
|
|
|
61998
62045
|
edit: "partial",
|
|
61999
62046
|
serialize: "partial",
|
|
62000
62047
|
note: "Display units and common label fields are typed; rich text and unmodeled formatting are preserved.",
|
|
62001
|
-
evidence: [
|
|
62002
|
-
}),
|
|
62048
|
+
evidence: [Nz("src/core/utils/chart-axis-dispunits-serializer.test.ts", ["edits label text, layout, and shape properties in schema order", "retains extension and unmodeled XML during a dirty write"])]
|
|
62049
|
+
}), Oz(["chart:element:builtInUnit", "chart:element:custUnit"], {
|
|
62003
62050
|
parse: "native",
|
|
62004
62051
|
preserve: "native",
|
|
62005
62052
|
edit: "native",
|
|
62006
62053
|
serialize: "native",
|
|
62007
62054
|
note: "Typed and validated built-in or custom chart display units.",
|
|
62008
|
-
evidence: [
|
|
62055
|
+
evidence: [Nz("src/core/utils/chart-axis-dispunits-serializer.test.ts", [
|
|
62009
62056
|
"writes a built-in unit",
|
|
62010
62057
|
"writes a custom unit divisor",
|
|
62011
62058
|
"validates custom and built-in unit values"
|
|
62012
62059
|
])]
|
|
62013
|
-
}),
|
|
62060
|
+
}), Oz([
|
|
62014
62061
|
"drawing:complexType:CT_InnerShadowEffect",
|
|
62015
62062
|
"drawing:complexType:CT_ReflectionEffect",
|
|
62016
62063
|
"drawing:complexType:CT_SoftEdgesEffect",
|
|
@@ -62023,12 +62070,12 @@ Bz([
|
|
|
62023
62070
|
edit: "partial",
|
|
62024
62071
|
serialize: "partial",
|
|
62025
62072
|
note: "Common secondary-effect fields are typed with lossless color-transform and extension preservation.",
|
|
62026
|
-
evidence: [
|
|
62073
|
+
evidence: [Nz("src/core/core/builders/effect-list-roundtrip.test.ts", [
|
|
62027
62074
|
"extracts inner shadow, soft edge, and reflection independently of prefix",
|
|
62028
62075
|
"surgically edits modeled effects without dropping transforms or extensions",
|
|
62029
62076
|
"emits reflection fixed percentages within their schema bounds"
|
|
62030
62077
|
])]
|
|
62031
|
-
}),
|
|
62078
|
+
}), Oz([
|
|
62032
62079
|
"diagram:complexType:CT_DiagramDefinition",
|
|
62033
62080
|
"diagram:complexType:CT_LayoutNode",
|
|
62034
62081
|
"diagram:element:layoutDef",
|
|
@@ -62039,8 +62086,8 @@ Bz([
|
|
|
62039
62086
|
edit: "partial",
|
|
62040
62087
|
serialize: "partial",
|
|
62041
62088
|
note: "Definition metadata and layout-node identity are typed; algorithms and constraints are preserved.",
|
|
62042
|
-
evidence: [
|
|
62043
|
-
}),
|
|
62089
|
+
evidence: [Nz("src/core/utils/smartart-layout-definition.test.ts", ["parses CT_DiagramDefinition and recursive CT_LayoutNode with arbitrary prefixes", "surgically edits typed fields and preserves algorithms, unknown data, and extLst"])]
|
|
62090
|
+
}), Oz([
|
|
62044
62091
|
"diagram:complexType:CT_Categories",
|
|
62045
62092
|
"diagram:complexType:CT_Category",
|
|
62046
62093
|
"diagram:complexType:CT_Description",
|
|
@@ -62067,8 +62114,8 @@ Bz([
|
|
|
62067
62114
|
edit: "native",
|
|
62068
62115
|
serialize: "native",
|
|
62069
62116
|
note: "Typed and validated DiagramML definition metadata.",
|
|
62070
|
-
evidence: [
|
|
62071
|
-
}),
|
|
62117
|
+
evidence: [Nz("src/core/utils/smartart-layout-definition.test.ts", ["rejects invalid required values and unsigned integer facets"]), Nz("src/core/utils/smartart-definition-metadata.test.ts", ["validates required values, unsigned priorities, and CT_Colors enums"])]
|
|
62118
|
+
}), Oz([
|
|
62072
62119
|
"chart:complexType:CT_PrintSettings",
|
|
62073
62120
|
"chart:complexType:CT_HeaderFooter",
|
|
62074
62121
|
"chart:complexType:CT_PageMargins",
|
|
@@ -62085,12 +62132,12 @@ Bz([
|
|
|
62085
62132
|
edit: "native",
|
|
62086
62133
|
serialize: "native",
|
|
62087
62134
|
note: "Classic ChartML print settings are typed, validated, schema-ordered, and losslessly editable.",
|
|
62088
|
-
evidence: [
|
|
62135
|
+
evidence: [Nz("src/core/utils/chart-print-settings.test.ts", [
|
|
62089
62136
|
"parses all CT_PrintSettings members independently of namespace prefix",
|
|
62090
62137
|
"applies edits in schema order while preserving foreign content",
|
|
62091
62138
|
"validates schema numeric ranges and enum values on serialization"
|
|
62092
|
-
]),
|
|
62093
|
-
}),
|
|
62139
|
+
]), Nz("src/__tests__/integration/chart-print-settings-roundtrip.test.ts", ["loads, edits, saves, and reloads print settings without losing extensions"])]
|
|
62140
|
+
}), Oz([
|
|
62094
62141
|
"diagram:complexType:CT_DiagramDefinitionHeader",
|
|
62095
62142
|
"diagram:complexType:CT_DiagramDefinitionHeaderLst",
|
|
62096
62143
|
"diagram:complexType:CT_StyleDefinitionHeader",
|
|
@@ -62117,12 +62164,12 @@ Bz([
|
|
|
62117
62164
|
edit: "native",
|
|
62118
62165
|
serialize: "native",
|
|
62119
62166
|
note: "Diagram definition header catalogs are typed, validated, prefix-independent, and preserve foreign XML.",
|
|
62120
|
-
evidence: [
|
|
62167
|
+
evidence: [Nz("src/core/utils/smartart-definition-header.test.ts", [
|
|
62121
62168
|
"parses and serializes the %s family prefix-independently",
|
|
62122
62169
|
"validates required members and XML Schema integer ranges",
|
|
62123
62170
|
"creates a namespace-complete standalone header catalog"
|
|
62124
62171
|
])]
|
|
62125
|
-
}),
|
|
62172
|
+
}), Oz([
|
|
62126
62173
|
"chart:complexType:CT_Protection",
|
|
62127
62174
|
"chart:element:protection",
|
|
62128
62175
|
"chart:element:chartObject",
|
|
@@ -62136,31 +62183,31 @@ Bz([
|
|
|
62136
62183
|
edit: "native",
|
|
62137
62184
|
serialize: "native",
|
|
62138
62185
|
note: "Classic ChartML protection is typed with exact CT_Boolean defaults, ordering, and ChartEx guards.",
|
|
62139
|
-
evidence: [
|
|
62186
|
+
evidence: [Nz("src/core/utils/chart-protection.test.ts", [
|
|
62140
62187
|
"parses prefixed CT_Boolean values and the omitted-val true default",
|
|
62141
62188
|
"edits and orders known children while preserving foreign markup",
|
|
62142
62189
|
"does not parse or emit classic protection in a cx chart space"
|
|
62143
|
-
]),
|
|
62190
|
+
]), Nz("src/__tests__/integration/chart-protection-roundtrip.test.ts", ["loads, edits, saves, and reloads protection without losing foreign markup"])]
|
|
62144
62191
|
});
|
|
62145
|
-
var
|
|
62146
|
-
function
|
|
62147
|
-
for (const n of e)
|
|
62192
|
+
var Ez = Bz, jz = {};
|
|
62193
|
+
function $z(e, t) {
|
|
62194
|
+
for (const n of e) jz[n] = t;
|
|
62148
62195
|
}
|
|
62149
|
-
|
|
62196
|
+
$z(["drawing:complexType:CT_SRgbColor", "drawing:element:srgbClr"], {
|
|
62150
62197
|
parse: "native",
|
|
62151
62198
|
preserve: "native",
|
|
62152
62199
|
edit: "native",
|
|
62153
62200
|
serialize: "native",
|
|
62154
62201
|
note: "Typed sRGB parsing, transforms, opacity, editing, and canonical serialization.",
|
|
62155
|
-
evidence: [
|
|
62156
|
-
}),
|
|
62202
|
+
evidence: [Nz("src/core/color/color-parser-spec.test.ts", ["applies transform children on sRGB color"]), Nz("src/core/utils/color-xml-preservation.test.ts", ["round-trips: user edit drops the schemeClr, emits srgb"])]
|
|
62203
|
+
}), $z(["drawing:complexType:CT_SchemeColor", "drawing:element:schemeClr"], {
|
|
62157
62204
|
parse: "partial",
|
|
62158
62205
|
preserve: "passthrough",
|
|
62159
62206
|
edit: "partial",
|
|
62160
62207
|
serialize: "partial",
|
|
62161
62208
|
note: "Theme resolution and transforms are supported; edits serialize as canonical sRGB.",
|
|
62162
|
-
evidence: [
|
|
62163
|
-
}),
|
|
62209
|
+
evidence: [Nz("src/core/color/color-parser-spec.test.ts", ["applies transforms on scheme color"]), Nz("src/core/utils/color-xml-preservation.test.ts", ["round-trips: parse a:schemeClr → save → re-parse yields same XML"])]
|
|
62210
|
+
}), $z([
|
|
62164
62211
|
"drawing:complexType:CT_SolidColorFillProperties",
|
|
62165
62212
|
"drawing:element:solidFill",
|
|
62166
62213
|
"drawing:group:EG_ColorChoice"
|
|
@@ -62170,8 +62217,8 @@ jz(["drawing:complexType:CT_SRgbColor", "drawing:element:srgbClr"], {
|
|
|
62170
62217
|
edit: "partial",
|
|
62171
62218
|
serialize: "partial",
|
|
62172
62219
|
note: "Common color choices are typed while uncommon color metadata is preserved.",
|
|
62173
|
-
evidence: [
|
|
62174
|
-
}),
|
|
62220
|
+
evidence: [Nz("src/core/core/builders/drawing-fill-roundtrip.test.ts", ["preserves gradient extensions, unknown markup, and attributes in schema order", "replaces modeled pattern children but retains extension markup"])]
|
|
62221
|
+
}), $z([
|
|
62175
62222
|
"presentation:complexType:CT_CustomShow",
|
|
62176
62223
|
"presentation:complexType:CT_CustomShowId",
|
|
62177
62224
|
"presentation:complexType:CT_CustomShowList",
|
|
@@ -62183,15 +62230,15 @@ jz(["drawing:complexType:CT_SRgbColor", "drawing:element:srgbClr"], {
|
|
|
62183
62230
|
edit: "native",
|
|
62184
62231
|
serialize: "native",
|
|
62185
62232
|
note: "Typed custom-show collections with relationship and extension preservation.",
|
|
62186
|
-
evidence: [
|
|
62187
|
-
}),
|
|
62233
|
+
evidence: [Nz("src/__tests__/integration/presentation-collections-roundtrip.test.ts", ["creates, loads, edits, and clears custom shows and sections"])]
|
|
62234
|
+
}), $z(["diagram:complexType:CT_RelIds", "diagram:element:relIds"], {
|
|
62188
62235
|
parse: "native",
|
|
62189
62236
|
preserve: "native",
|
|
62190
62237
|
edit: "native",
|
|
62191
62238
|
serialize: "native",
|
|
62192
62239
|
note: "Typed SmartArt relationship IDs with prefix-independent surgical round-trip support.",
|
|
62193
|
-
evidence: [
|
|
62194
|
-
}),
|
|
62240
|
+
evidence: [Nz("src/core/utils/diagram-relationship-ids.test.ts", ["parses Strict markup with arbitrary namespace prefixes", "updates typed ids while preserving unknown and extension markup"])]
|
|
62241
|
+
}), $z([
|
|
62195
62242
|
"chart:complexType:CT_DLbl",
|
|
62196
62243
|
"chart:complexType:CT_DLbls",
|
|
62197
62244
|
"chart:element:dLbl",
|
|
@@ -62202,12 +62249,12 @@ jz(["drawing:complexType:CT_SRgbColor", "drawing:element:srgbClr"], {
|
|
|
62202
62249
|
edit: "partial",
|
|
62203
62250
|
serialize: "partial",
|
|
62204
62251
|
note: "Common data-label options are typed; rich text, layout, and shape properties are preserved.",
|
|
62205
|
-
evidence: [
|
|
62252
|
+
evidence: [Nz("src/core/utils/chart-data-label-parser.test.ts", ["parses common CT_DLbl fields and XML boolean lexical forms", "parses common CT_DLbls options"], ["parse"]), Nz("src/core/utils/chart-data-labels-serializer.test.ts", ["preserves dLbl overrides, unknown children, leader lines, and extLst"], [
|
|
62206
62253
|
"preserve",
|
|
62207
62254
|
"edit",
|
|
62208
62255
|
"serialize"
|
|
62209
62256
|
])]
|
|
62210
|
-
}),
|
|
62257
|
+
}), $z([
|
|
62211
62258
|
"chart:complexType:CT_DLblPos",
|
|
62212
62259
|
"chart:simpleType:ST_DLblPos",
|
|
62213
62260
|
"chart:element:dLblPos",
|
|
@@ -62226,17 +62273,17 @@ jz(["drawing:complexType:CT_SRgbColor", "drawing:element:srgbClr"], {
|
|
|
62226
62273
|
edit: "native",
|
|
62227
62274
|
serialize: "native",
|
|
62228
62275
|
note: "Typed and validated classic ChartML data-label option support.",
|
|
62229
|
-
evidence: [
|
|
62276
|
+
evidence: [Nz("src/core/utils/chart-data-label-parser.test.ts", ["rejects invalid unsigned indexes and label-position enum values"], ["parse"]), Nz("src/core/utils/chart-data-labels-serializer.test.ts", ["writes bubble, separator, and leader-line options", "validates dLblPos before serialization"], [
|
|
62230
62277
|
"preserve",
|
|
62231
62278
|
"edit",
|
|
62232
62279
|
"serialize"
|
|
62233
62280
|
])]
|
|
62234
62281
|
});
|
|
62235
|
-
var
|
|
62236
|
-
function
|
|
62237
|
-
for (const n of e)
|
|
62282
|
+
var zz = jz, Xz = {};
|
|
62283
|
+
function Uz(e, t) {
|
|
62284
|
+
for (const n of e) Xz[n] = t;
|
|
62238
62285
|
}
|
|
62239
|
-
|
|
62286
|
+
Uz([
|
|
62240
62287
|
"presentation:complexType:CT_Comment",
|
|
62241
62288
|
"presentation:complexType:CT_CommentAuthor",
|
|
62242
62289
|
"presentation:complexType:CT_CommentAuthorList",
|
|
@@ -62251,8 +62298,8 @@ Xz([
|
|
|
62251
62298
|
edit: "native",
|
|
62252
62299
|
serialize: "native",
|
|
62253
62300
|
note: "Typed legacy comments and authors with package wiring and lossless raw XML preservation.",
|
|
62254
|
-
evidence: [
|
|
62255
|
-
}),
|
|
62301
|
+
evidence: [Nz("src/__tests__/integration/comments-roundtrip.test.ts", ["preserves extensions while typed fields are edited and emits Strict namespaces", "deletes comment parts, authors, relationships, and overrides explicitly"])]
|
|
62302
|
+
}), Uz([
|
|
62256
62303
|
"chart:complexType:CT_Trendline",
|
|
62257
62304
|
"chart:complexType:CT_TrendlineLbl",
|
|
62258
62305
|
"chart:element:trendline",
|
|
@@ -62263,12 +62310,12 @@ Xz([
|
|
|
62263
62310
|
edit: "partial",
|
|
62264
62311
|
serialize: "partial",
|
|
62265
62312
|
note: "Common trendline and label fields are typed; rich shape and text content is preserved.",
|
|
62266
|
-
evidence: [
|
|
62313
|
+
evidence: [Nz("src/core/utils/chart-advanced-parser.test.ts", ["parses name, explicit false booleans, and typed label properties"], ["parse"]), Nz("src/core/utils/chart-trendline-serializer.test.ts", ["writes a typed label in schema order and preserves unmodeled label content"], [
|
|
62267
62314
|
"preserve",
|
|
62268
62315
|
"edit",
|
|
62269
62316
|
"serialize"
|
|
62270
62317
|
])]
|
|
62271
|
-
}),
|
|
62318
|
+
}), Uz([
|
|
62272
62319
|
"chart:complexType:CT_TrendlineType",
|
|
62273
62320
|
"chart:simpleType:ST_TrendlineType",
|
|
62274
62321
|
"chart:simpleType:ST_Order",
|
|
@@ -62285,23 +62332,23 @@ Xz([
|
|
|
62285
62332
|
edit: "native",
|
|
62286
62333
|
serialize: "native",
|
|
62287
62334
|
note: "Typed and validated classic ChartML trendline option support.",
|
|
62288
|
-
evidence: [
|
|
62335
|
+
evidence: [Nz("src/core/utils/chart-advanced-parser.test.ts", ["parses polynomial trendline with order", "parses displayRSq and displayEq flags"], ["parse"]), Nz("src/core/utils/chart-trendline-serializer.test.ts", ["rejects values outside the schema facets"], [
|
|
62289
62336
|
"preserve",
|
|
62290
62337
|
"edit",
|
|
62291
62338
|
"serialize"
|
|
62292
62339
|
])]
|
|
62293
|
-
}),
|
|
62340
|
+
}), Uz(["chart:complexType:CT_ErrBars", "chart:element:errBars"], {
|
|
62294
62341
|
parse: "partial",
|
|
62295
62342
|
preserve: "native",
|
|
62296
62343
|
edit: "partial",
|
|
62297
62344
|
serialize: "partial",
|
|
62298
62345
|
note: "Common error-bar options and line color are typed; uncommon shape metadata is preserved.",
|
|
62299
|
-
evidence: [
|
|
62346
|
+
evidence: [Nz("src/core/utils/chart-advanced-parser.test.ts", ["parses basic error bars with fixedVal type"], ["parse"]), Nz("src/core/utils/chart-errbars-serializer.test.ts", ["edits end caps and line color while preserving extensions"], [
|
|
62300
62347
|
"preserve",
|
|
62301
62348
|
"edit",
|
|
62302
62349
|
"serialize"
|
|
62303
62350
|
])]
|
|
62304
|
-
}),
|
|
62351
|
+
}), Uz([
|
|
62305
62352
|
"chart:complexType:CT_ErrDir",
|
|
62306
62353
|
"chart:complexType:CT_ErrBarType",
|
|
62307
62354
|
"chart:complexType:CT_ErrValType",
|
|
@@ -62315,12 +62362,12 @@ Xz([
|
|
|
62315
62362
|
edit: "native",
|
|
62316
62363
|
serialize: "native",
|
|
62317
62364
|
note: "Typed classic ChartML error-bar enum and end-cap support.",
|
|
62318
|
-
evidence: [
|
|
62365
|
+
evidence: [Nz("src/core/utils/chart-advanced-parser.test.ts", ["parses explicit end-cap false and line color"], ["parse"]), Nz("src/core/utils/chart-errbars-serializer.test.ts", ["writes direction, bar type, value type, and value before cat/val"], [
|
|
62319
62366
|
"preserve",
|
|
62320
62367
|
"edit",
|
|
62321
62368
|
"serialize"
|
|
62322
62369
|
])]
|
|
62323
|
-
}),
|
|
62370
|
+
}), Uz([
|
|
62324
62371
|
"drawing:complexType:CT_GradientFillProperties",
|
|
62325
62372
|
"drawing:complexType:CT_GradientStop",
|
|
62326
62373
|
"drawing:complexType:CT_GradientStopList",
|
|
@@ -62335,17 +62382,17 @@ Xz([
|
|
|
62335
62382
|
edit: "partial",
|
|
62336
62383
|
serialize: "partial",
|
|
62337
62384
|
note: "Common gradient and pattern fields are typed with lossless unknown XML preservation.",
|
|
62338
|
-
evidence: [
|
|
62385
|
+
evidence: [Nz("src/core/core/builders/drawing-fill-roundtrip.test.ts", [
|
|
62339
62386
|
"parses gradient structure independently of the authored prefix",
|
|
62340
62387
|
"preserves gradient extensions, unknown markup, and attributes in schema order",
|
|
62341
62388
|
"serializes an edited gradient stop instead of stale preserved color XML"
|
|
62342
62389
|
])]
|
|
62343
62390
|
});
|
|
62344
|
-
var
|
|
62345
|
-
function
|
|
62346
|
-
for (const n of e)
|
|
62391
|
+
var Gz = Xz, Wz = {};
|
|
62392
|
+
function Vz(e, t) {
|
|
62393
|
+
for (const n of e) Wz[n] = t;
|
|
62347
62394
|
}
|
|
62348
|
-
|
|
62395
|
+
Vz([
|
|
62349
62396
|
"diagram:complexType:CT_DataModel",
|
|
62350
62397
|
"diagram:complexType:CT_Pt",
|
|
62351
62398
|
"diagram:complexType:CT_PtList",
|
|
@@ -62362,12 +62409,12 @@ Wz([
|
|
|
62362
62409
|
edit: "partial",
|
|
62363
62410
|
serialize: "partial",
|
|
62364
62411
|
note: "Core SmartArt point and connection identifiers are typed; unknown data-model XML is preserved.",
|
|
62365
|
-
evidence: [
|
|
62412
|
+
evidence: [Nz("src/core/core/runtime/smartart-data-model-attributes.test.ts", [
|
|
62366
62413
|
"parses core identifiers and relationships",
|
|
62367
62414
|
"edits typed attributes while preserving unknown XML and extLst",
|
|
62368
62415
|
"accepts a valid core point and connection graph"
|
|
62369
62416
|
])]
|
|
62370
|
-
}),
|
|
62417
|
+
}), Vz([
|
|
62371
62418
|
"drawing:complexType:CT_EffectList",
|
|
62372
62419
|
"drawing:complexType:CT_GlowEffect",
|
|
62373
62420
|
"drawing:complexType:CT_OuterShadowEffect",
|
|
@@ -62380,8 +62427,8 @@ Wz([
|
|
|
62380
62427
|
edit: "partial",
|
|
62381
62428
|
serialize: "partial",
|
|
62382
62429
|
note: "Outer shadow and glow are typed with lossless effect-list and color-transform preservation.",
|
|
62383
|
-
evidence: [
|
|
62384
|
-
}),
|
|
62430
|
+
evidence: [Nz("src/core/core/builders/effect-list-roundtrip.test.ts", ["extracts outer shadow and glow from an alternate DrawingML prefix", "surgically edits modeled effects without dropping transforms or extensions"])]
|
|
62431
|
+
}), Vz([
|
|
62385
62432
|
"diagram:complexType:CT_Constraint",
|
|
62386
62433
|
"diagram:complexType:CT_Constraints",
|
|
62387
62434
|
"diagram:complexType:CT_NumericRule",
|
|
@@ -62410,18 +62457,18 @@ Wz([
|
|
|
62410
62457
|
edit: "native",
|
|
62411
62458
|
serialize: "native",
|
|
62412
62459
|
note: "Diagram layout constraints and numeric rules are typed with enum validation and XML Schema double semantics.",
|
|
62413
|
-
evidence: [
|
|
62460
|
+
evidence: [Nz("src/core/utils/smartart-constraint-rules.test.ts", [
|
|
62414
62461
|
"parses arbitrary prefixes and XML Schema double lexical values",
|
|
62415
62462
|
"applies typed edits while preserving foreign attributes and extensions",
|
|
62416
62463
|
"validates required schema enums without rejecting valid non-finite doubles",
|
|
62417
62464
|
"round-trips constraints through the editable layout-definition model"
|
|
62418
62465
|
])]
|
|
62419
62466
|
});
|
|
62420
|
-
var
|
|
62421
|
-
function
|
|
62422
|
-
for (const n of e)
|
|
62467
|
+
var Hz = Wz, qz = {};
|
|
62468
|
+
function Yz(e, t) {
|
|
62469
|
+
for (const n of e) qz[n] = t;
|
|
62423
62470
|
}
|
|
62424
|
-
|
|
62471
|
+
Yz([
|
|
62425
62472
|
"drawing:complexType:CT_BlurEffect",
|
|
62426
62473
|
"drawing:complexType:CT_EffectContainer",
|
|
62427
62474
|
"drawing:complexType:CT_PresetShadowEffect",
|
|
@@ -62435,12 +62482,12 @@ qz([
|
|
|
62435
62482
|
edit: "partial",
|
|
62436
62483
|
serialize: "partial",
|
|
62437
62484
|
note: "Effect DAG structure, blur, and preset shadow are typed with lossless primitive XML preservation.",
|
|
62438
|
-
evidence: [
|
|
62485
|
+
evidence: [Nz("src/core/core/builders/effect-dag-primitives.test.ts", [
|
|
62439
62486
|
"parses namespace-prefix-independent blur and preset shadow children",
|
|
62440
62487
|
"overlays typed edits while preserving unknown XML and color transforms",
|
|
62441
62488
|
"does not expose invalid simple-type values as editable typed fields"
|
|
62442
62489
|
])]
|
|
62443
|
-
}),
|
|
62490
|
+
}), Yz([
|
|
62444
62491
|
"chart:complexType:CT_LblAlgn",
|
|
62445
62492
|
"chart:complexType:CT_LblOffset",
|
|
62446
62493
|
"chart:complexType:CT_TickMark",
|
|
@@ -62461,8 +62508,8 @@ qz([
|
|
|
62461
62508
|
edit: "native",
|
|
62462
62509
|
serialize: "native",
|
|
62463
62510
|
note: "Typed and validated classic ChartML axis label controls.",
|
|
62464
|
-
evidence: [
|
|
62465
|
-
}),
|
|
62511
|
+
evidence: [Nz("src/__tests__/integration/chart-axis-label-roundtrip.test.ts", ["generates, parses, edits, and dirty-saves category-axis label controls"])]
|
|
62512
|
+
}), Yz([
|
|
62466
62513
|
"diagram:complexType:CT_CTStyleLabel",
|
|
62467
62514
|
"diagram:complexType:CT_ColorTransform",
|
|
62468
62515
|
"diagram:complexType:CT_Colors",
|
|
@@ -62483,20 +62530,20 @@ qz([
|
|
|
62483
62530
|
edit: "partial",
|
|
62484
62531
|
serialize: "partial",
|
|
62485
62532
|
note: "Style and color-definition metadata are typed; complex style and color-choice payloads are preserved.",
|
|
62486
|
-
evidence: [
|
|
62487
|
-
}),
|
|
62533
|
+
evidence: [Nz("src/__tests__/integration/smartart-style-definition-save.test.ts", ["round-trips typed quick-style edits without replacing the style payload", "round-trips typed color-definition metadata and retains color choices"])]
|
|
62534
|
+
}), Yz(["diagram:attribute:meth", "diagram:attribute:hueDir"], {
|
|
62488
62535
|
parse: "native",
|
|
62489
62536
|
preserve: "native",
|
|
62490
62537
|
edit: "native",
|
|
62491
62538
|
serialize: "native",
|
|
62492
62539
|
note: "Typed DiagramML color-list method and hue-direction metadata.",
|
|
62493
|
-
evidence: [
|
|
62540
|
+
evidence: [Nz("src/core/utils/smartart-definition-metadata.test.ts", ["parses all CT_Colors application metadata on CT_CTStyleLabel", "validates required values, unsigned priorities, and CT_Colors enums"])]
|
|
62494
62541
|
});
|
|
62495
|
-
var
|
|
62496
|
-
function
|
|
62497
|
-
for (const n of e)
|
|
62542
|
+
var Zz = qz, Kz = {};
|
|
62543
|
+
function Jz(e, t) {
|
|
62544
|
+
for (const n of e) Kz[n] = t;
|
|
62498
62545
|
}
|
|
62499
|
-
|
|
62546
|
+
Jz([
|
|
62500
62547
|
"presentation:complexType:CT_EmbeddedFontList",
|
|
62501
62548
|
"presentation:complexType:CT_EmbeddedFontListEntry",
|
|
62502
62549
|
"presentation:complexType:CT_EmbeddedFontDataId",
|
|
@@ -62513,13 +62560,13 @@ Kz([
|
|
|
62513
62560
|
edit: "native",
|
|
62514
62561
|
serialize: "native",
|
|
62515
62562
|
note: "Typed embedded-font descriptors and relationship variants with package cleanup.",
|
|
62516
|
-
evidence: [
|
|
62563
|
+
evidence: [Nz("src/core/utils/embedded-font-list.test.ts", [
|
|
62517
62564
|
"parses alternate prefixes and every embedded font variant",
|
|
62518
62565
|
"edits and removes variants while retaining unknown XML in schema order",
|
|
62519
62566
|
"validates required entries, typefaces, and relationship identifiers",
|
|
62520
62567
|
"inserts the list at the CT_Presentation schema position and removes it"
|
|
62521
|
-
]),
|
|
62522
|
-
}),
|
|
62568
|
+
]), Nz("src/__tests__/integration/embedded-font-list-roundtrip.test.ts", ["loads unresolved variants, edits metadata, and preserves unknown XML", "removes the list, font relationships, and font parts together"])]
|
|
62569
|
+
}), Jz([
|
|
62523
62570
|
"chart:complexType:CT_PivotSource",
|
|
62524
62571
|
"chart:complexType:CT_UnsignedInt",
|
|
62525
62572
|
"chart:element:pivotSource",
|
|
@@ -62530,14 +62577,14 @@ Kz([
|
|
|
62530
62577
|
edit: "native",
|
|
62531
62578
|
serialize: "native",
|
|
62532
62579
|
note: "Typed and validated pivot-source metadata with ordered chart-space serialization.",
|
|
62533
|
-
evidence: [
|
|
62580
|
+
evidence: [Nz("src/core/utils/chart-pivot-source.test.ts", [
|
|
62534
62581
|
"parses required prefix-independent name and unsigned format ID",
|
|
62535
62582
|
"round trips edits while preserving extensions and foreign markup",
|
|
62536
62583
|
"validates required values on serialization",
|
|
62537
62584
|
"inserts before protection and chart and supports explicit removal",
|
|
62538
62585
|
"serializes pivot metadata for a newly generated chart part"
|
|
62539
62586
|
])]
|
|
62540
|
-
}),
|
|
62587
|
+
}), Jz([
|
|
62541
62588
|
"drawing:complexType:CT_AudioCD",
|
|
62542
62589
|
"drawing:complexType:CT_AudioCDTime",
|
|
62543
62590
|
"drawing:complexType:CT_AudioFile",
|
|
@@ -62554,13 +62601,13 @@ Kz([
|
|
|
62554
62601
|
edit: "native",
|
|
62555
62602
|
serialize: "native",
|
|
62556
62603
|
note: "Typed DrawingML audio-file and Audio CD timing metadata.",
|
|
62557
|
-
evidence: [
|
|
62604
|
+
evidence: [Nz("src/core/utils/drawing-media-reference.test.ts", [
|
|
62558
62605
|
"parses arbitrary element and relationship prefixes",
|
|
62559
62606
|
"serializes dirty Audio CD positions while preserving extensions",
|
|
62560
62607
|
"validates Audio CD track and time bounds",
|
|
62561
62608
|
"edits audioFile content type without flattening prefixes or extensions"
|
|
62562
|
-
]),
|
|
62563
|
-
}),
|
|
62609
|
+
]), Nz("src/__tests__/integration/drawing-audio-metadata-roundtrip.test.ts", ["authors and reloads an Audio CD reference without a media relationship"])]
|
|
62610
|
+
}), Jz([
|
|
62564
62611
|
"diagram:complexType:CT_Algorithm",
|
|
62565
62612
|
"diagram:complexType:CT_Parameter",
|
|
62566
62613
|
"diagram:element:alg",
|
|
@@ -62575,18 +62622,18 @@ Kz([
|
|
|
62575
62622
|
edit: "partial",
|
|
62576
62623
|
serialize: "partial",
|
|
62577
62624
|
note: "Algorithm and parameter structure is typed; schema enum unions remain string-valued.",
|
|
62578
|
-
evidence: [
|
|
62625
|
+
evidence: [Nz("src/core/utils/smartart-layout-definition.test.ts", [
|
|
62579
62626
|
"parses CT_DiagramDefinition and recursive CT_LayoutNode with arbitrary prefixes",
|
|
62580
62627
|
"surgically edits typed fields and preserves algorithms, unknown data, and extLst",
|
|
62581
62628
|
"creates and removes CT_Algorithm in CT_LayoutNode schema order",
|
|
62582
62629
|
"rejects invalid required values and unsigned integer facets"
|
|
62583
62630
|
])]
|
|
62584
62631
|
});
|
|
62585
|
-
var
|
|
62586
|
-
function
|
|
62587
|
-
for (const n of e)
|
|
62632
|
+
var Qz = Kz, eX = {};
|
|
62633
|
+
function tX(e, t) {
|
|
62634
|
+
for (const n of e) eX[n] = t;
|
|
62588
62635
|
}
|
|
62589
|
-
|
|
62636
|
+
tX([
|
|
62590
62637
|
"presentation:complexType:CT_Kinsoku",
|
|
62591
62638
|
"presentation:element:kinsoku",
|
|
62592
62639
|
"presentation:attribute:invalStChars",
|
|
@@ -62597,12 +62644,12 @@ eX([
|
|
|
62597
62644
|
edit: "native",
|
|
62598
62645
|
serialize: "native",
|
|
62599
62646
|
note: "Typed and validated East Asian line-break settings with ordered presentation edits.",
|
|
62600
|
-
evidence: [
|
|
62647
|
+
evidence: [Nz("src/core/utils/activex-kinsoku-parser.test.ts", [
|
|
62601
62648
|
"parses all attributes together",
|
|
62602
62649
|
"rejects a new p:kinsoku without both required character lists",
|
|
62603
62650
|
"preserves existing p:kinsoku attributes not in the kinsoku object"
|
|
62604
|
-
]),
|
|
62605
|
-
}),
|
|
62651
|
+
]), Nz("src/__tests__/integration/kinsoku-roundtrip.test.ts", ["loads an alternate prefix, edits values, and preserves unknown XML", "removes kinsoku without disturbing adjacent presentation children"])]
|
|
62652
|
+
}), tX([
|
|
62606
62653
|
"drawing:complexType:CT_DashStopList",
|
|
62607
62654
|
"drawing:complexType:CT_DashStop",
|
|
62608
62655
|
"drawing:element:custDash",
|
|
@@ -62615,13 +62662,13 @@ eX([
|
|
|
62615
62662
|
edit: "native",
|
|
62616
62663
|
serialize: "native",
|
|
62617
62664
|
note: "Validated DrawingML custom dash percentages shared by shape and connector writers.",
|
|
62618
|
-
evidence: [
|
|
62665
|
+
evidence: [Nz("src/core/utils/drawing-line-dash.test.ts", [
|
|
62619
62666
|
"parses arbitrary prefixes and preserves dash-stop payloads",
|
|
62620
62667
|
"round-trips unchanged XML and edits values without losing unknown data",
|
|
62621
62668
|
"rejects invalid stops and removes arbitrary-prefixed dash choices",
|
|
62622
62669
|
"inserts custom dash before line joins and extensions"
|
|
62623
62670
|
])]
|
|
62624
|
-
}),
|
|
62671
|
+
}), tX([
|
|
62625
62672
|
"chart:complexType:CT_PivotFmts",
|
|
62626
62673
|
"chart:complexType:CT_PivotFmt",
|
|
62627
62674
|
"chart:element:pivotFmts",
|
|
@@ -62633,12 +62680,12 @@ eX([
|
|
|
62633
62680
|
edit: "partial",
|
|
62634
62681
|
serialize: "partial",
|
|
62635
62682
|
note: "Pivot indexes are typed; DrawingML formatting children remain editable raw XML.",
|
|
62636
|
-
evidence: [
|
|
62683
|
+
evidence: [Nz("src/core/utils/chart-pivot-formats.test.ts", [
|
|
62637
62684
|
"parses, edits, serializes, and reparses typed pivot formats",
|
|
62638
62685
|
"inserts in chart schema order and supports removal",
|
|
62639
62686
|
"rejects invalid indexes and empty collections"
|
|
62640
|
-
]),
|
|
62641
|
-
}),
|
|
62687
|
+
]), Nz("src/__tests__/integration/chart-protection-roundtrip.test.ts", ["loads, edits, saves, and reloads pivot formats without losing extensions"])]
|
|
62688
|
+
}), tX([
|
|
62642
62689
|
"diagram:complexType:CT_Choose",
|
|
62643
62690
|
"diagram:complexType:CT_ForEach",
|
|
62644
62691
|
"diagram:complexType:CT_Otherwise",
|
|
@@ -62667,25 +62714,25 @@ eX([
|
|
|
62667
62714
|
edit: "partial",
|
|
62668
62715
|
serialize: "partial",
|
|
62669
62716
|
note: "Iterator and condition data is typed; nested layout actions and enum unions remain raw.",
|
|
62670
|
-
evidence: [
|
|
62717
|
+
evidence: [Nz("src/core/utils/smartart-layout-definition.test.ts", [
|
|
62671
62718
|
"parses CT_DiagramDefinition and recursive CT_LayoutNode with arbitrary prefixes",
|
|
62672
62719
|
"surgically edits typed fields and preserves algorithms, unknown data, and extLst",
|
|
62673
62720
|
"creates and removes typed forEach and choose branches",
|
|
62674
62721
|
"rejects invalid required values and unsigned integer facets"
|
|
62675
62722
|
])]
|
|
62676
62723
|
});
|
|
62677
|
-
var
|
|
62678
|
-
function
|
|
62679
|
-
for (const n of e)
|
|
62724
|
+
var nX = eX, rX = {};
|
|
62725
|
+
function iX(e, t) {
|
|
62726
|
+
for (const n of e) rX[n] = t;
|
|
62680
62727
|
}
|
|
62681
|
-
|
|
62728
|
+
iX(["presentation:complexType:CT_SlideTransition", "presentation:element:transition"], {
|
|
62682
62729
|
parse: "partial",
|
|
62683
62730
|
preserve: "native",
|
|
62684
62731
|
edit: "partial",
|
|
62685
62732
|
serialize: "partial",
|
|
62686
62733
|
note: "Transition timing, speed, effects, and sound actions are typed; extension effects remain partial.",
|
|
62687
|
-
evidence: [
|
|
62688
|
-
}),
|
|
62734
|
+
evidence: [Nz("src/__tests__/integration/slide-transition-conformance-roundtrip.test.ts", ["generates and reloads typed speed, timing, and start-sound options", "preserves unknown transition markup through a dirty edit and reload"])]
|
|
62735
|
+
}), iX([
|
|
62689
62736
|
"presentation:complexType:CT_TransitionSoundAction",
|
|
62690
62737
|
"presentation:complexType:CT_TransitionStartSoundAction",
|
|
62691
62738
|
"presentation:simpleType:ST_TransitionSpeed",
|
|
@@ -62698,8 +62745,8 @@ rX(["presentation:complexType:CT_SlideTransition", "presentation:element:transit
|
|
|
62698
62745
|
edit: "native",
|
|
62699
62746
|
serialize: "native",
|
|
62700
62747
|
note: "Typed and validated transition speed and sound-action support.",
|
|
62701
|
-
evidence: [
|
|
62702
|
-
}),
|
|
62748
|
+
evidence: [Nz("src/__tests__/integration/slide-transition-conformance-roundtrip.test.ts", ["generates and reloads typed speed, timing, and start-sound options"])]
|
|
62749
|
+
}), iX([
|
|
62703
62750
|
"drawing:complexType:CT_Backdrop",
|
|
62704
62751
|
"drawing:complexType:CT_Camera",
|
|
62705
62752
|
"drawing:complexType:CT_EmbeddedWAVAudioFile",
|
|
@@ -62719,19 +62766,19 @@ rX(["presentation:complexType:CT_SlideTransition", "presentation:element:transit
|
|
|
62719
62766
|
edit: "native",
|
|
62720
62767
|
serialize: "native",
|
|
62721
62768
|
note: "Typed scene geometry or embedded transition sound with lossless unknown XML preservation.",
|
|
62722
|
-
evidence: [
|
|
62769
|
+
evidence: [Nz("src/core/utils/text-body-scene3d.test.ts", [
|
|
62723
62770
|
"parses all typed camera, light-rig, and backdrop fields with alternate prefixes",
|
|
62724
62771
|
"applies edits while preserving prefixes, unknown attributes, and extLst",
|
|
62725
62772
|
"creates a schema-ordered scene and complete backdrop from typed data"
|
|
62726
|
-
]),
|
|
62727
|
-
}),
|
|
62773
|
+
]), Nz("src/__tests__/integration/slide-transition-conformance-roundtrip.test.ts", ["generates and reloads typed speed, timing, and start-sound options"])]
|
|
62774
|
+
}), iX(["chart:complexType:CT_DTable", "chart:element:dTable"], {
|
|
62728
62775
|
parse: "partial",
|
|
62729
62776
|
preserve: "native",
|
|
62730
62777
|
edit: "partial",
|
|
62731
62778
|
serialize: "partial",
|
|
62732
62779
|
note: "Data-table visibility options are typed; shape and text formatting remain preserved XML.",
|
|
62733
|
-
evidence: [
|
|
62734
|
-
}),
|
|
62780
|
+
evidence: [Nz("src/__tests__/integration/chart-data-table-roundtrip.test.ts", ["generates, parses, edits, and removes c:dTable through save cycles"])]
|
|
62781
|
+
}), iX([
|
|
62735
62782
|
"chart:element:showHorzBorder",
|
|
62736
62783
|
"chart:element:showVertBorder",
|
|
62737
62784
|
"chart:element:showOutline",
|
|
@@ -62742,8 +62789,8 @@ rX(["presentation:complexType:CT_SlideTransition", "presentation:element:transit
|
|
|
62742
62789
|
edit: "native",
|
|
62743
62790
|
serialize: "native",
|
|
62744
62791
|
note: "Typed ChartML CT_Boolean data-table option support.",
|
|
62745
|
-
evidence: [
|
|
62746
|
-
}),
|
|
62792
|
+
evidence: [Nz("src/__tests__/integration/chart-data-table-roundtrip.test.ts", ["generates, parses, edits, and removes c:dTable through save cycles"])]
|
|
62793
|
+
}), iX([
|
|
62747
62794
|
"presentation:complexType:CT_PrintProperties",
|
|
62748
62795
|
"presentation:simpleType:ST_PrintColorMode",
|
|
62749
62796
|
"presentation:simpleType:ST_PrintWhat",
|
|
@@ -62759,17 +62806,17 @@ rX(["presentation:complexType:CT_SlideTransition", "presentation:element:transit
|
|
|
62759
62806
|
edit: "native",
|
|
62760
62807
|
serialize: "native",
|
|
62761
62808
|
note: "Presentation print properties are typed, validated, schema-ordered, and losslessly editable.",
|
|
62762
|
-
evidence: [
|
|
62809
|
+
evidence: [Nz("src/core/core/runtime/pptx-print-properties.test.ts", [
|
|
62763
62810
|
"parses every CT_PrintProperties attribute and XML boolean spelling",
|
|
62764
62811
|
"edits and removes known attributes while preserving unknown data and extLst",
|
|
62765
62812
|
"rejects invalid runtime enum values and handout counts"
|
|
62766
|
-
]),
|
|
62813
|
+
]), Nz("src/__tests__/integration/presentation-print-properties-roundtrip.test.ts", ["loads an alternate prefix, edits all attributes, and preserves extensions", "removes p:prnPr when printProperties is null"])]
|
|
62767
62814
|
});
|
|
62768
|
-
var
|
|
62769
|
-
function
|
|
62770
|
-
for (const n of e)
|
|
62815
|
+
var oX = rX, aX = {};
|
|
62816
|
+
function sX(e, t) {
|
|
62817
|
+
for (const n of e) aX[n] = t;
|
|
62771
62818
|
}
|
|
62772
|
-
|
|
62819
|
+
sX([
|
|
62773
62820
|
"presentation:complexType:CT_CommonViewProperties",
|
|
62774
62821
|
"presentation:complexType:CT_CommonSlideViewProperties",
|
|
62775
62822
|
"presentation:complexType:CT_Guide",
|
|
@@ -62785,12 +62832,12 @@ aX([
|
|
|
62785
62832
|
edit: "native",
|
|
62786
62833
|
serialize: "native",
|
|
62787
62834
|
note: "Common view geometry, guide lists, and grid spacing are typed, validated, and prefix-independent.",
|
|
62788
|
-
evidence: [
|
|
62835
|
+
evidence: [Nz("src/core/core/runtime/pptx-view-props-geometry.test.ts", [
|
|
62789
62836
|
"parses Strict markup by local name with common-view nesting",
|
|
62790
62837
|
"applies typed edits over raw custom-prefix XML and preserves extensions",
|
|
62791
62838
|
"rejects invalid generated dimensions and ratios"
|
|
62792
62839
|
])]
|
|
62793
|
-
}),
|
|
62840
|
+
}), sX([
|
|
62794
62841
|
"drawing:complexType:CT_ColorChangeEffect",
|
|
62795
62842
|
"drawing:complexType:CT_ColorReplaceEffect",
|
|
62796
62843
|
"drawing:complexType:CT_DuotoneEffect",
|
|
@@ -62805,12 +62852,12 @@ aX([
|
|
|
62805
62852
|
edit: "partial",
|
|
62806
62853
|
serialize: "partial",
|
|
62807
62854
|
note: "Image color choices and transforms round-trip losslessly; edited colors serialize through canonical sRGB choices.",
|
|
62808
|
-
evidence: [
|
|
62855
|
+
evidence: [Nz("src/core/core/runtime/image-color-effects.test.ts", [
|
|
62809
62856
|
"parses all five primitives independently of namespace prefix",
|
|
62810
62857
|
"round-trips untouched color choices, transforms, extensions, and prefixes",
|
|
62811
62858
|
"merges edits while retaining unknown XML and schema-last extLst"
|
|
62812
62859
|
])]
|
|
62813
|
-
}),
|
|
62860
|
+
}), sX([
|
|
62814
62861
|
"drawing:complexType:CT_GrayscaleEffect",
|
|
62815
62862
|
"drawing:complexType:CT_BiLevelEffect",
|
|
62816
62863
|
"drawing:element:grayscl",
|
|
@@ -62821,12 +62868,12 @@ aX([
|
|
|
62821
62868
|
edit: "native",
|
|
62822
62869
|
serialize: "native",
|
|
62823
62870
|
note: "Grayscale and validated bi-level image effects are typed with foreign XML preservation.",
|
|
62824
|
-
evidence: [
|
|
62871
|
+
evidence: [Nz("src/core/core/runtime/image-color-effects.test.ts", [
|
|
62825
62872
|
"parses all five primitives independently of namespace prefix",
|
|
62826
62873
|
"merges edits while retaining unknown XML and schema-last extLst",
|
|
62827
62874
|
"inserts newly authored effects before extLst and removes cleared effects"
|
|
62828
62875
|
])]
|
|
62829
|
-
}),
|
|
62876
|
+
}), sX([
|
|
62830
62877
|
"chart:complexType:CT_Marker",
|
|
62831
62878
|
"chart:complexType:CT_DPt",
|
|
62832
62879
|
"chart:element:marker",
|
|
@@ -62837,8 +62884,8 @@ aX([
|
|
|
62837
62884
|
edit: "partial",
|
|
62838
62885
|
serialize: "partial",
|
|
62839
62886
|
note: "Marker and data-point fields are typed while shape, picture, and extension payloads remain losslessly preserved.",
|
|
62840
|
-
evidence: [
|
|
62841
|
-
}),
|
|
62887
|
+
evidence: [Nz("src/__tests__/integration/chart-marker-datapoint-roundtrip.test.ts", ["generates, parses, edits, and dirty-saves marker and bubble properties"])]
|
|
62888
|
+
}), sX([
|
|
62842
62889
|
"chart:complexType:CT_MarkerSize",
|
|
62843
62890
|
"chart:complexType:CT_MarkerStyle",
|
|
62844
62891
|
"chart:simpleType:ST_MarkerSize",
|
|
@@ -62849,8 +62896,8 @@ aX([
|
|
|
62849
62896
|
edit: "native",
|
|
62850
62897
|
serialize: "native",
|
|
62851
62898
|
note: "Chart marker styles and sizes are typed and schema-range validated.",
|
|
62852
|
-
evidence: [
|
|
62853
|
-
}),
|
|
62899
|
+
evidence: [Nz("src/core/utils/chart-marker-serializer.test.ts", ["updates an existing marker in place", "rejects marker sizes outside the ST_MarkerSize range"]), Nz("src/core/utils/chart-datapoint-serializer.test.ts", ["writes marker and bubble3D in CT_DPt schema order while preserving extensions"])]
|
|
62900
|
+
}), sX([
|
|
62854
62901
|
"drawing:complexType:CT_AlphaBiLevelEffect",
|
|
62855
62902
|
"drawing:complexType:CT_AlphaCeilingEffect",
|
|
62856
62903
|
"drawing:complexType:CT_AlphaFloorEffect",
|
|
@@ -62869,12 +62916,12 @@ aX([
|
|
|
62869
62916
|
edit: "native",
|
|
62870
62917
|
serialize: "native",
|
|
62871
62918
|
note: "Fixed and leaf alpha effects are typed with Strict and Transitional lexical support and schema validation.",
|
|
62872
|
-
evidence: [
|
|
62919
|
+
evidence: [Nz("src/core/core/runtime/image-alpha-effects.test.ts", [
|
|
62873
62920
|
"parses strict percentages and the default alphaModFix amount",
|
|
62874
62921
|
"edits known values while retaining unknown attributes",
|
|
62875
62922
|
"does not serialize out-of-range fixed percentages"
|
|
62876
|
-
]),
|
|
62877
|
-
}),
|
|
62923
|
+
]), Nz("src/core/core/builders/effect-dag-primitives.test.ts", ["parses and edits a signed coordinate while preserving foreign attributes", "does not expose a coordinate outside the ST_Coordinate bounds"])]
|
|
62924
|
+
}), sX([
|
|
62878
62925
|
"drawing:complexType:CT_AlphaInverseEffect",
|
|
62879
62926
|
"drawing:complexType:CT_AlphaModulateEffect",
|
|
62880
62927
|
"drawing:element:alphaInv",
|
|
@@ -62885,13 +62932,13 @@ aX([
|
|
|
62885
62932
|
edit: "partial",
|
|
62886
62933
|
serialize: "partial",
|
|
62887
62934
|
note: "Alpha inverse colors and modulation containers are editable while nested effect payloads remain preserved XML.",
|
|
62888
|
-
evidence: [
|
|
62935
|
+
evidence: [Nz("src/core/core/runtime/image-alpha-effects.test.ts", [
|
|
62889
62936
|
"parses arbitrary prefixes and preserves every alpha payload",
|
|
62890
62937
|
"edits known values while retaining unknown attributes",
|
|
62891
62938
|
"does not create alphaMod without its required cont child"
|
|
62892
62939
|
])]
|
|
62893
62940
|
});
|
|
62894
|
-
var
|
|
62941
|
+
var lX = aX, cX = [
|
|
62895
62942
|
"chart:attribute:alignWithMargins",
|
|
62896
62943
|
"chart:attribute:b",
|
|
62897
62944
|
"chart:attribute:blackAndWhite",
|
|
@@ -65088,7 +65135,7 @@ var sX = oX, lX = [
|
|
|
65088
65135
|
"presentation:simpleType:ST_TransitionSideDirectionType",
|
|
65089
65136
|
"presentation:simpleType:ST_TransitionSpeed",
|
|
65090
65137
|
"presentation:simpleType:ST_ViewType"
|
|
65091
|
-
],
|
|
65138
|
+
], dX = [
|
|
65092
65139
|
"chart:attribute:alignWithMargins",
|
|
65093
65140
|
"chart:attribute:b",
|
|
65094
65141
|
"chart:attribute:blackAndWhite",
|
|
@@ -67327,29 +67374,29 @@ var sX = oX, lX = [
|
|
|
67327
67374
|
"presentation:simpleType:ST_WebColorType",
|
|
67328
67375
|
"presentation:simpleType:ST_WebEncoding",
|
|
67329
67376
|
"presentation:simpleType:ST_WebScreenSize"
|
|
67330
|
-
],
|
|
67377
|
+
], pX = [.../* @__PURE__ */ new Set([...cX, ...dX])], uX = {
|
|
67331
67378
|
parse: "unassessed",
|
|
67332
67379
|
preserve: "unassessed",
|
|
67333
67380
|
edit: "unassessed",
|
|
67334
67381
|
serialize: "unassessed",
|
|
67335
67382
|
evidence: []
|
|
67336
|
-
},
|
|
67337
|
-
|
|
67338
|
-
...
|
|
67339
|
-
...
|
|
67340
|
-
...
|
|
67341
|
-
...
|
|
67342
|
-
...
|
|
67343
|
-
...
|
|
67344
|
-
...
|
|
67345
|
-
...
|
|
67383
|
+
}, hX = {
|
|
67384
|
+
...zz,
|
|
67385
|
+
...Gz,
|
|
67386
|
+
...Hz,
|
|
67387
|
+
...oX,
|
|
67388
|
+
...Ez,
|
|
67389
|
+
...Zz,
|
|
67390
|
+
...lX,
|
|
67391
|
+
...Qz,
|
|
67392
|
+
...nX,
|
|
67346
67393
|
"chart:complexType:CT_ManualLayout": {
|
|
67347
67394
|
parse: "native",
|
|
67348
67395
|
preserve: "native",
|
|
67349
67396
|
edit: "native",
|
|
67350
67397
|
serialize: "native",
|
|
67351
67398
|
note: "Typed title, plot-area, and legend manual layout support.",
|
|
67352
|
-
evidence: [
|
|
67399
|
+
evidence: [Nz("src/core/utils/chart-axis-parser.test.ts", ["parses display-unit label text, manual layout, and shape properties"], ["parse"]), Nz("src/core/utils/chart-axis-dispunits-serializer.test.ts", ["edits label text, layout, and shape properties in schema order"], [
|
|
67353
67400
|
"preserve",
|
|
67354
67401
|
"edit",
|
|
67355
67402
|
"serialize"
|
|
@@ -67362,9 +67409,9 @@ var sX = oX, lX = [
|
|
|
67362
67409
|
serialize: "native",
|
|
67363
67410
|
note: "Manual layout and its CT_ManualLayout extension list round-trip through the typed model (the extLst is captured on parse and re-emitted as the trailing child on a dirty write, so an edit no longer drops it). The layout wrapper is retained verbatim.",
|
|
67364
67411
|
evidence: [
|
|
67365
|
-
|
|
67366
|
-
|
|
67367
|
-
|
|
67412
|
+
Nz("src/core/utils/chart-axis-parser.test.ts", ["parses display-unit label text, manual layout, and shape properties"], ["parse"]),
|
|
67413
|
+
Nz("src/core/utils/chart-layout.test.ts", ["parses the typed manual-layout fields"], ["parse"]),
|
|
67414
|
+
Nz("src/core/utils/chart-layout.test.ts", ["round-trips the manual layout extension list through the typed model"], [
|
|
67368
67415
|
"preserve",
|
|
67369
67416
|
"edit",
|
|
67370
67417
|
"serialize"
|
|
@@ -67377,7 +67424,7 @@ var sX = oX, lX = [
|
|
|
67377
67424
|
edit: "partial",
|
|
67378
67425
|
serialize: "partial",
|
|
67379
67426
|
note: "Display options are typed; series and extensions have separate capability entries.",
|
|
67380
|
-
evidence: [
|
|
67427
|
+
evidence: [Nz("src/core/utils/chart-bubble-options.test.ts", ["parses Strict and Transitional values plus defaults", "preserves unknown attributes and follows CT_BubbleChart order"])]
|
|
67381
67428
|
},
|
|
67382
67429
|
"chart:complexType:CT_LegendEntry": {
|
|
67383
67430
|
parse: "partial",
|
|
@@ -67385,7 +67432,7 @@ var sX = oX, lX = [
|
|
|
67385
67432
|
edit: "partial",
|
|
67386
67433
|
serialize: "partial",
|
|
67387
67434
|
note: "Index, delete, and common txPr defaults are typed; extensions remain passthrough.",
|
|
67388
|
-
evidence: [
|
|
67435
|
+
evidence: [Nz("src/core/utils/chart-legend-entry.test.ts", ["parses delete values and the CT_Boolean default", "edits an entry while preserving its extension list"])]
|
|
67389
67436
|
},
|
|
67390
67437
|
"chart:group:EG_LegendEntryData": {
|
|
67391
67438
|
parse: "partial",
|
|
@@ -67393,7 +67440,7 @@ var sX = oX, lX = [
|
|
|
67393
67440
|
edit: "partial",
|
|
67394
67441
|
serialize: "partial",
|
|
67395
67442
|
note: "Common text defaults are typed; the full DrawingML text body remains passthrough.",
|
|
67396
|
-
evidence: [
|
|
67443
|
+
evidence: [Nz("src/core/utils/chart-legend-entry.test.ts", ["parses common DrawingML text defaults", "adds a hidden entry to a newly created legend"])]
|
|
67397
67444
|
},
|
|
67398
67445
|
"chart:complexType:CT_UpDownBars": {
|
|
67399
67446
|
parse: "partial",
|
|
@@ -67401,7 +67448,7 @@ var sX = oX, lX = [
|
|
|
67401
67448
|
edit: "partial",
|
|
67402
67449
|
serialize: "partial",
|
|
67403
67450
|
note: "Gap width and common up/down bar shape properties are typed; extensions are passthrough.",
|
|
67404
|
-
evidence: [
|
|
67451
|
+
evidence: [Nz("src/core/utils/chart-up-down-bars.test.ts", ["parses gap width and both shape-property branches", "updates formatting while preserving unsupported children"])]
|
|
67405
67452
|
},
|
|
67406
67453
|
"chart:complexType:CT_UpDownBar": {
|
|
67407
67454
|
parse: "partial",
|
|
@@ -67409,7 +67456,7 @@ var sX = oX, lX = [
|
|
|
67409
67456
|
edit: "partial",
|
|
67410
67457
|
serialize: "partial",
|
|
67411
67458
|
note: "Common fill and line properties are typed; other DrawingML shape properties are passthrough.",
|
|
67412
|
-
evidence: [
|
|
67459
|
+
evidence: [Nz("src/core/utils/chart-up-down-bars.test.ts", ["updates formatting while preserving unsupported children", "emits up/down bars for a generated line chart"])]
|
|
67413
67460
|
},
|
|
67414
67461
|
"presentation:complexType:CT_ControlList": {
|
|
67415
67462
|
parse: "native",
|
|
@@ -67417,7 +67464,7 @@ var sX = oX, lX = [
|
|
|
67417
67464
|
edit: "native",
|
|
67418
67465
|
serialize: "native",
|
|
67419
67466
|
note: "The `p:controls` container round-trips: controls can be parsed, added, removed, and reordered.",
|
|
67420
|
-
evidence: [
|
|
67467
|
+
evidence: [Nz("src/core/utils/activex-serializer.test.ts", [
|
|
67421
67468
|
"round-trips typed ActiveX controls through parse and serialize",
|
|
67422
67469
|
"drops the controls container when no controls remain",
|
|
67423
67470
|
"keeps the controls container ahead of the extension list"
|
|
@@ -67429,7 +67476,7 @@ var sX = oX, lX = [
|
|
|
67429
67476
|
edit: "native",
|
|
67430
67477
|
serialize: "native",
|
|
67431
67478
|
note: "The `p:controls` container round-trips: controls can be parsed, added, removed, and reordered.",
|
|
67432
|
-
evidence: [
|
|
67479
|
+
evidence: [Nz("src/core/utils/activex-serializer.test.ts", ["round-trips typed ActiveX controls through parse and serialize", "drops the controls container when no controls remain"])]
|
|
67433
67480
|
},
|
|
67434
67481
|
"presentation:complexType:CT_Control": {
|
|
67435
67482
|
parse: "partial",
|
|
@@ -67437,7 +67484,7 @@ var sX = oX, lX = [
|
|
|
67437
67484
|
edit: "partial",
|
|
67438
67485
|
serialize: "partial",
|
|
67439
67486
|
note: "The r:id, name, and spid attributes are typed and editable; the placeholder pic and extLst children are preserved as passthrough. Not rendered by any binding.",
|
|
67440
|
-
evidence: [
|
|
67487
|
+
evidence: [Nz("src/core/utils/activex-serializer.test.ts", [
|
|
67441
67488
|
"round-trips typed ActiveX controls through parse and serialize",
|
|
67442
67489
|
"preserves the placeholder pic child during a typed write",
|
|
67443
67490
|
"serializes edited control attributes back into the slide"
|
|
@@ -67449,7 +67496,7 @@ var sX = oX, lX = [
|
|
|
67449
67496
|
edit: "partial",
|
|
67450
67497
|
serialize: "partial",
|
|
67451
67498
|
note: "The r:id, name, and spid attributes are typed and editable; the placeholder pic and extLst children are preserved as passthrough. Not rendered by any binding.",
|
|
67452
|
-
evidence: [
|
|
67499
|
+
evidence: [Nz("src/core/utils/activex-serializer.test.ts", [
|
|
67453
67500
|
"preserves the placeholder pic child during a typed write",
|
|
67454
67501
|
"serializes edited control attributes back into the slide",
|
|
67455
67502
|
"emits a bare control node when only a relationship id is known"
|
|
@@ -67467,33 +67514,33 @@ for (const e of [
|
|
|
67467
67514
|
"chart:element:bubbleScale",
|
|
67468
67515
|
"chart:element:showNegBubbles",
|
|
67469
67516
|
"chart:element:sizeRepresents"
|
|
67470
|
-
])
|
|
67517
|
+
]) hX[e] = {
|
|
67471
67518
|
parse: "native",
|
|
67472
67519
|
preserve: "native",
|
|
67473
67520
|
edit: "native",
|
|
67474
67521
|
serialize: "native",
|
|
67475
67522
|
note: "Typed classic bubble-chart option support.",
|
|
67476
|
-
evidence: [
|
|
67523
|
+
evidence: [Nz("src/core/utils/chart-bubble-options.test.ts", [
|
|
67477
67524
|
"parses Strict and Transitional values plus defaults",
|
|
67478
67525
|
"preserves unknown attributes and follows CT_BubbleChart order",
|
|
67479
67526
|
"rejects an out-of-range scale",
|
|
67480
67527
|
"emits options for a generated bubble chart"
|
|
67481
67528
|
])]
|
|
67482
67529
|
};
|
|
67483
|
-
var
|
|
67484
|
-
for (const e of Object.keys(
|
|
67485
|
-
|
|
67486
|
-
const [t, n, r] = e.split(":"), i =
|
|
67530
|
+
var mX = new Set(cX), fX = new Set(dX), gX = new Set(pX);
|
|
67531
|
+
for (const e of Object.keys(hX)) if (!gX.has(e)) throw new Error(`OpenXML coverage override does not match the schema inventory: ${e}`);
|
|
67532
|
+
pX.map((e) => {
|
|
67533
|
+
const [t, n, r] = e.split(":"), i = mX.has(e), o = fX.has(e);
|
|
67487
67534
|
return {
|
|
67488
67535
|
id: e,
|
|
67489
67536
|
vocabulary: t,
|
|
67490
67537
|
kind: n,
|
|
67491
67538
|
name: r,
|
|
67492
67539
|
conformance: i && o ? "both" : i ? "strict" : "transitional",
|
|
67493
|
-
...
|
|
67540
|
+
...hX[e] ?? uX
|
|
67494
67541
|
};
|
|
67495
67542
|
});
|
|
67496
|
-
var
|
|
67543
|
+
var yX = {
|
|
67497
67544
|
"image/png": "png",
|
|
67498
67545
|
"image/jpeg": "jpg",
|
|
67499
67546
|
"image/jpg": "jpg",
|
|
@@ -67503,7 +67550,7 @@ var gX = {
|
|
|
67503
67550
|
"image/bmp": "bmp",
|
|
67504
67551
|
"image/tiff": "tiff"
|
|
67505
67552
|
};
|
|
67506
|
-
var
|
|
67553
|
+
var xX = class {
|
|
67507
67554
|
constructor(e, t, n) {
|
|
67508
67555
|
this.folderName = t, this.fs = n, this.resolvedMediaDir = `${e}/${this.folderName}`;
|
|
67509
67556
|
}
|
|
@@ -67522,7 +67569,7 @@ var yX = class {
|
|
|
67522
67569
|
const n = function(e) {
|
|
67523
67570
|
const t = e.match(/^data:([^;]+);base64,(.+)$/s);
|
|
67524
67571
|
if (!t) throw new Error("Invalid data URL format");
|
|
67525
|
-
const n = t[1].toLowerCase(), r =
|
|
67572
|
+
const n = t[1].toLowerCase(), r = yX[n] ?? function(e) {
|
|
67526
67573
|
const t = e.split("/");
|
|
67527
67574
|
return 2 === t.length ? t[1].replace(/[^a-z0-9]/g, "") : "bin";
|
|
67528
67575
|
}(n), i = t[2], o = atob(i), a = new Uint8Array(o.length);
|
|
@@ -67549,19 +67596,19 @@ var yX = class {
|
|
|
67549
67596
|
this.initialized || (this.fs && await this.fs.createFolder(this.resolvedMediaDir), this.initialized = !0);
|
|
67550
67597
|
}
|
|
67551
67598
|
};
|
|
67552
|
-
function
|
|
67599
|
+
function bX(e) {
|
|
67553
67600
|
return null == e ? "" : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
67554
67601
|
}
|
|
67555
|
-
var
|
|
67602
|
+
var TX = [
|
|
67556
67603
|
"http://",
|
|
67557
67604
|
"https://",
|
|
67558
67605
|
"mailto:",
|
|
67559
67606
|
"tel:",
|
|
67560
67607
|
"#"
|
|
67561
67608
|
];
|
|
67562
|
-
var
|
|
67609
|
+
var SX = class {
|
|
67563
67610
|
constructor(e, t, n) {
|
|
67564
|
-
this.outputDir = e, this.options = t, this.fs = n, this.mediaContext = new
|
|
67611
|
+
this.outputDir = e, this.options = t, this.fs = n, this.mediaContext = new xX(e, t.mediaFolderName, n);
|
|
67565
67612
|
}
|
|
67566
67613
|
outputDir;
|
|
67567
67614
|
options;
|
|
@@ -67579,7 +67626,7 @@ var TX = class {
|
|
|
67579
67626
|
if (!this.fs) throw new Error("FileSystemAdapter is required for writing output files. Provide one via the constructor or use convert() without outputPath.");
|
|
67580
67627
|
await this.fs.writeFile(t, e);
|
|
67581
67628
|
}
|
|
67582
|
-
},
|
|
67629
|
+
}, wX = class {
|
|
67583
67630
|
supportedTypes = ["chart"];
|
|
67584
67631
|
async process(e, t) {
|
|
67585
67632
|
if ("chart" !== e.type) return null;
|
|
@@ -67683,7 +67730,7 @@ var TX = class {
|
|
|
67683
67730
|
humanizeType(e) {
|
|
67684
67731
|
return e.replace(/([a-z])([A-Z0-9])/g, "$1 $2").replace(/^./, (e) => e.toUpperCase());
|
|
67685
67732
|
}
|
|
67686
|
-
},
|
|
67733
|
+
}, vX = class {
|
|
67687
67734
|
processors = /* @__PURE__ */ new Map();
|
|
67688
67735
|
register(e) {
|
|
67689
67736
|
for (const t of e.supportedTypes) this.processors.set(t, e);
|
|
@@ -67705,7 +67752,7 @@ var TX = class {
|
|
|
67705
67752
|
if (void 0 !== e.targetSlideIndex) return `\n\n*${`Jump to slide ${e.targetSlideIndex + 1}`}*`;
|
|
67706
67753
|
return e.action ? `\n\n*${e.action}*` : "";
|
|
67707
67754
|
}
|
|
67708
|
-
},
|
|
67755
|
+
}, CX = class {
|
|
67709
67756
|
supportedTypes = [
|
|
67710
67757
|
"zoom",
|
|
67711
67758
|
"contentPart",
|
|
@@ -67750,7 +67797,7 @@ var TX = class {
|
|
|
67750
67797
|
renderContentPart(e) {
|
|
67751
67798
|
return e.inkStrokes && e.inkStrokes.length > 0 ? `*[Ink Content: ${e.inkStrokes.length} stroke${1 === e.inkStrokes.length ? "" : "s"}]*` : "*[Content Part]*";
|
|
67752
67799
|
}
|
|
67753
|
-
},
|
|
67800
|
+
}, _X = class {
|
|
67754
67801
|
supportedTypes = ["group"];
|
|
67755
67802
|
async process(e, t) {
|
|
67756
67803
|
if ("group" !== e.type) return null;
|
|
@@ -67759,7 +67806,7 @@ var TX = class {
|
|
|
67759
67806
|
const r = await t.processElements(n.children);
|
|
67760
67807
|
return 0 === r.length ? null : r.join("\n\n");
|
|
67761
67808
|
}
|
|
67762
|
-
},
|
|
67809
|
+
}, kX = class {
|
|
67763
67810
|
supportedTypes = ["image", "picture"];
|
|
67764
67811
|
async process(e, t) {
|
|
67765
67812
|
if (!bt(e)) return null;
|
|
@@ -67768,7 +67815,7 @@ var TX = class {
|
|
|
67768
67815
|
const e = Boolean(n.imageData), r = n.imageData ? n.imageData.substring(0, 80) : "undefined", i = `Image extraction failed on slide ${t.slideNumber}: id="${n.id}", imagePath="${n.imagePath ?? "unknown"}", hasImageData=${e}, imageDataPreview="${r}", hasSvgData=${Boolean(n.svgData)}`;
|
|
67769
67816
|
return console.error(`[image-processor] ${i}`), `> **[Image extraction failed]** ${n.id} (slide ${t.slideNumber})`;
|
|
67770
67817
|
}
|
|
67771
|
-
const o =
|
|
67818
|
+
const o = bX(r), a = bX(i);
|
|
67772
67819
|
if (t.semanticMode) return ``;
|
|
67773
67820
|
if (t.layoutScale) return `<img src="${a}" alt="${o}" style="max-width:100%;height:auto">`;
|
|
67774
67821
|
const s = this.computeDisplaySize(e.width, e.height);
|
|
@@ -67797,7 +67844,7 @@ var TX = class {
|
|
|
67797
67844
|
const t = e.replace(/&#x[0-9A-Fa-f]+;/g, " ").replace(/&#\d+;/g, " ").replace(/&[a-zA-Z]+;/g, " ").replace(/[\r\n]+/g, " ").replace(/\s+/g, " ").trim();
|
|
67798
67845
|
return t.length <= 100 ? t : `${t.slice(0, 100).trimEnd()}…`;
|
|
67799
67846
|
}
|
|
67800
|
-
},
|
|
67847
|
+
}, PX = class {
|
|
67801
67848
|
supportedTypes = ["ink"];
|
|
67802
67849
|
async process(e, t) {
|
|
67803
67850
|
if ("ink" !== e.type) return null;
|
|
@@ -67812,7 +67859,7 @@ var TX = class {
|
|
|
67812
67859
|
}
|
|
67813
67860
|
return `*[Ink Drawing: ${r.join(" | ")}]*`;
|
|
67814
67861
|
}
|
|
67815
|
-
},
|
|
67862
|
+
}, LX = class {
|
|
67816
67863
|
supportedTypes = ["media"];
|
|
67817
67864
|
async process(e, t) {
|
|
67818
67865
|
if ("media" !== e.type) return null;
|
|
@@ -67839,7 +67886,7 @@ var TX = class {
|
|
|
67839
67886
|
const t = Math.floor(e / 60), n = Math.round(e % 60);
|
|
67840
67887
|
return `${t}:${String(n).padStart(2, "0")}`;
|
|
67841
67888
|
}
|
|
67842
|
-
},
|
|
67889
|
+
}, AX = class {
|
|
67843
67890
|
supportedTypes = ["ole"];
|
|
67844
67891
|
async process(e, t) {
|
|
67845
67892
|
if ("ole" !== e.type) return null;
|
|
@@ -67852,27 +67899,27 @@ var TX = class {
|
|
|
67852
67899
|
} catch {}
|
|
67853
67900
|
return i.join("\n\n");
|
|
67854
67901
|
}
|
|
67855
|
-
},
|
|
67902
|
+
}, IX = /* @__PURE__ */ new Set([
|
|
67856
67903
|
"process",
|
|
67857
67904
|
"cycle",
|
|
67858
67905
|
"timeline"
|
|
67859
|
-
]),
|
|
67906
|
+
]), MX = /* @__PURE__ */ new Set([
|
|
67860
67907
|
"hierarchy",
|
|
67861
67908
|
"pyramid",
|
|
67862
67909
|
"funnel"
|
|
67863
|
-
]),
|
|
67910
|
+
]), FX = /* @__PURE__ */ new Set([
|
|
67864
67911
|
"list",
|
|
67865
67912
|
"matrix",
|
|
67866
67913
|
"gear",
|
|
67867
67914
|
"target"
|
|
67868
|
-
]),
|
|
67915
|
+
]), RX = class {
|
|
67869
67916
|
supportedTypes = ["smartArt"];
|
|
67870
67917
|
async process(e, t) {
|
|
67871
67918
|
if ("smartArt" !== e.type) return null;
|
|
67872
67919
|
const n = e.smartArtData;
|
|
67873
67920
|
if (!n || 0 === n.nodes.length) return "*[SmartArt: no nodes]*";
|
|
67874
67921
|
const r = this.resolveRoots(n.nodes), i = n.resolvedLayoutType ?? "unknown", o = [`*[SmartArt: ${i}]*`];
|
|
67875
|
-
return
|
|
67922
|
+
return MX.has(i) ? o.push(this.renderNestedList(r, 0)) : IX.has(i) ? o.push(this.renderOrderedSequence(r)) : FX.has(i) ? o.push(this.renderBulletList(r)) : "relationship" === i ? o.push(this.renderRelationshipText(r)) : o.push(this.renderBulletList(r)), o.join("\n\n");
|
|
67876
67923
|
}
|
|
67877
67924
|
resolveRoots(e) {
|
|
67878
67925
|
if (e.some((e) => Array.isArray(e.children) && e.children.length > 0)) return e;
|
|
@@ -67910,7 +67957,7 @@ var TX = class {
|
|
|
67910
67957
|
for (const n of e) t.push(n), n.children && n.children.length > 0 && t.push(...this.flattenNodes(n.children));
|
|
67911
67958
|
return t;
|
|
67912
67959
|
}
|
|
67913
|
-
},
|
|
67960
|
+
}, DX = /* @__PURE__ */ new Set([
|
|
67914
67961
|
"black",
|
|
67915
67962
|
"silver",
|
|
67916
67963
|
"gray",
|
|
@@ -67934,12 +67981,12 @@ var TX = class {
|
|
|
67934
67981
|
"initial",
|
|
67935
67982
|
"unset"
|
|
67936
67983
|
]);
|
|
67937
|
-
function
|
|
67984
|
+
function NX(e) {
|
|
67938
67985
|
if ("string" != typeof e) return;
|
|
67939
67986
|
const t = e.trim();
|
|
67940
|
-
return 0 !== t.length && (/^#[0-9a-f]{3,8}$/i.test(t) ||
|
|
67987
|
+
return 0 !== t.length && (/^#[0-9a-f]{3,8}$/i.test(t) || DX.has(t.toLowerCase())) ? t : void 0;
|
|
67941
67988
|
}
|
|
67942
|
-
var
|
|
67989
|
+
var BX = class {
|
|
67943
67990
|
supportedTypes = ["table"];
|
|
67944
67991
|
async process(e, t) {
|
|
67945
67992
|
if ("table" !== e.type) return null;
|
|
@@ -67970,12 +68017,12 @@ var NX = class {
|
|
|
67970
68017
|
const i = [];
|
|
67971
68018
|
t > 1 && i.push(` colspan="${t}"`), n > 1 && i.push(` rowspan="${n}"`);
|
|
67972
68019
|
const o = this.buildCellCss(e.style, r);
|
|
67973
|
-
return o && i.push(` style="${
|
|
68020
|
+
return o && i.push(` style="${bX(o)}"`), i.join("");
|
|
67974
68021
|
}
|
|
67975
68022
|
buildCellCss(e, t) {
|
|
67976
|
-
const n = [], r =
|
|
68023
|
+
const n = [], r = NX(e?.backgroundColor);
|
|
67977
68024
|
r && n.push(`background:${r}`), e?.align && /^[a-zA-Z]+$/.test(e.align) && n.push(`text-align:${e.align}`), e?.vAlign && /^[a-zA-Z]+$/.test(e.vAlign) && n.push(`vertical-align:${e.vAlign}`), e?.fontSize && n.push(`font-size:${Math.round(e.fontSize)}px`);
|
|
67978
|
-
const i =
|
|
68025
|
+
const i = NX(e?.color);
|
|
67979
68026
|
i && n.push(`color:${i}`), (e?.bold || t) && n.push("font-weight:bold"), e?.italic && n.push("font-style:italic");
|
|
67980
68027
|
const o = this.buildBorderCss(e);
|
|
67981
68028
|
o && n.push(o);
|
|
@@ -67984,15 +68031,15 @@ var NX = class {
|
|
|
67984
68031
|
}
|
|
67985
68032
|
buildBorderCss(e) {
|
|
67986
68033
|
if (!e) return "";
|
|
67987
|
-
const t = [], n =
|
|
68034
|
+
const t = [], n = NX(e.borderTopColor);
|
|
67988
68035
|
e.borderTopWidth && n && t.push(`border-top:${Math.round(e.borderTopWidth)}px solid ${n}`);
|
|
67989
|
-
const r =
|
|
68036
|
+
const r = NX(e.borderBottomColor);
|
|
67990
68037
|
e.borderBottomWidth && r && t.push(`border-bottom:${Math.round(e.borderBottomWidth)}px solid ${r}`);
|
|
67991
|
-
const i =
|
|
68038
|
+
const i = NX(e.borderLeftColor);
|
|
67992
68039
|
e.borderLeftWidth && i && t.push(`border-left:${Math.round(e.borderLeftWidth)}px solid ${i}`);
|
|
67993
|
-
const o =
|
|
68040
|
+
const o = NX(e.borderRightColor);
|
|
67994
68041
|
e.borderRightWidth && o && t.push(`border-right:${Math.round(e.borderRightWidth)}px solid ${o}`);
|
|
67995
|
-
const a =
|
|
68042
|
+
const a = NX(e.borderColor);
|
|
67996
68043
|
return 0 === t.length && a ? `border:1px solid ${a}` : t.join(";");
|
|
67997
68044
|
}
|
|
67998
68045
|
buildPaddingCss(e) {
|
|
@@ -68012,7 +68059,7 @@ var NX = class {
|
|
|
68012
68059
|
const t = this.escapeHtml(r.text);
|
|
68013
68060
|
if (!t) continue;
|
|
68014
68061
|
const i = this.buildRunCss(r, e.style);
|
|
68015
|
-
i ? n.push(`<span style="${
|
|
68062
|
+
i ? n.push(`<span style="${bX(i)}">${t}</span>`) : n.push(t);
|
|
68016
68063
|
}
|
|
68017
68064
|
return n.join("");
|
|
68018
68065
|
}
|
|
@@ -68027,7 +68074,7 @@ var NX = class {
|
|
|
68027
68074
|
e && r.push(`font-family:${e}`);
|
|
68028
68075
|
}
|
|
68029
68076
|
if (n.fontSize && n.fontSize !== t?.fontSize && r.push(`font-size:${Math.round(n.fontSize)}px`), n.color && n.color !== t?.color) {
|
|
68030
|
-
const e =
|
|
68077
|
+
const e = NX(n.color);
|
|
68031
68078
|
e && r.push(`color:${e}`);
|
|
68032
68079
|
}
|
|
68033
68080
|
return n.bold && !t?.bold && r.push("font-weight:bold"), n.italic && !t?.italic && r.push("font-style:italic"), n.underline && r.push("text-decoration:underline"), n.strikethrough && r.push("text-decoration:line-through"), r.join(";");
|
|
@@ -68092,9 +68139,9 @@ var NX = class {
|
|
|
68092
68139
|
escapeMarkdownTableCell(e) {
|
|
68093
68140
|
return e.replace(/\\/g, "\\\\").replace(/\|/g, "\\|").replace(/\n+/g, " ").trim();
|
|
68094
68141
|
}
|
|
68095
|
-
},
|
|
68096
|
-
function
|
|
68097
|
-
const a = n?.bodyInsetLeft ? n.bodyInsetLeft * o : Math.round(r *
|
|
68142
|
+
}, OX = .06;
|
|
68143
|
+
function EX(e, t, n, r, i, o = 1) {
|
|
68144
|
+
const a = n?.bodyInsetLeft ? n.bodyInsetLeft * o : Math.round(r * OX), s = n?.bodyInsetRight ? n.bodyInsetRight * o : Math.round(r * OX), l = n?.bodyInsetTop ? n.bodyInsetTop * o : Math.round(i * OX), c = n?.bodyInsetBottom ? n.bodyInsetBottom * o : Math.round(i * OX), d = r - a - s;
|
|
68098
68145
|
if (d <= 0) return;
|
|
68099
68146
|
const u = function(e, t, n, r) {
|
|
68100
68147
|
const i = [];
|
|
@@ -68102,7 +68149,7 @@ function OX(e, t, n, r, i, o = 1) {
|
|
|
68102
68149
|
const t = o[0]?.style?.align;
|
|
68103
68150
|
let a = [], s = 0, l = 0;
|
|
68104
68151
|
for (const c of o) {
|
|
68105
|
-
e.font =
|
|
68152
|
+
e.font = jX(c.style, r);
|
|
68106
68153
|
const o = 1.2 * ((c.style.fontSize ?? 18) * r), d = c.text.split(/(?<=\s)(?=\S)|(?<=\S)(?=\s)/);
|
|
68107
68154
|
for (const r of d) {
|
|
68108
68155
|
if (!r) continue;
|
|
@@ -68156,15 +68203,15 @@ function OX(e, t, n, r, i, o = 1) {
|
|
|
68156
68203
|
const r = t.align ?? n?.align ?? "left";
|
|
68157
68204
|
let i;
|
|
68158
68205
|
i = "center" === r ? a + (d - t.width) / 2 : "right" === r ? a + d - t.width : a;
|
|
68159
|
-
for (const n of t.runs) e.font =
|
|
68206
|
+
for (const n of t.runs) e.font = jX(n.style, o), e.fillStyle = n.style.color ?? "#000000", e.fillText(n.text, i, g), i += n.measuredWidth;
|
|
68160
68207
|
g += .3 * t.height;
|
|
68161
68208
|
}
|
|
68162
68209
|
}
|
|
68163
|
-
function
|
|
68210
|
+
function jX(e, t) {
|
|
68164
68211
|
const n = (e.fontSize ?? 18) * t, r = e.bold ? "bold" : "normal";
|
|
68165
68212
|
return `${e.italic ? "italic" : "normal"} ${r} ${n}px ${e.fontFamily ? yf(e.fontFamily) : "sans-serif"}`;
|
|
68166
68213
|
}
|
|
68167
|
-
function
|
|
68214
|
+
function $X(e) {
|
|
68168
68215
|
const t = e.shapeStyle;
|
|
68169
68216
|
if (!t) return null;
|
|
68170
68217
|
if (!function(e) {
|
|
@@ -68174,7 +68221,7 @@ function jX(e) {
|
|
|
68174
68221
|
if ("image" === e.fillMode) return Boolean(e.fillImageUrl);
|
|
68175
68222
|
if (e.fillColor && "transparent" !== e.fillColor) return !0;
|
|
68176
68223
|
return !1;
|
|
68177
|
-
}(t) && !
|
|
68224
|
+
}(t) && !UX(t)) return null;
|
|
68178
68225
|
let n = Math.round(e.width), r = Math.round(e.height);
|
|
68179
68226
|
if (n < 4 || r < 4) return null;
|
|
68180
68227
|
const i = (e.textSegments?.length ?? 0) > 0 ? 800 : 400;
|
|
@@ -68206,11 +68253,11 @@ function jX(e) {
|
|
|
68206
68253
|
void 0 !== t.fillOpacity && t.fillOpacity < 1 && (e.globalAlpha = t.fillOpacity);
|
|
68207
68254
|
}(s, t, n, r), e.pathData) {
|
|
68208
68255
|
const i = n / ((e.pathWidth ?? n) || 1), o = r / ((e.pathHeight ?? r) || 1), a = new Path2D(e.pathData);
|
|
68209
|
-
s.save(), s.scale(i, o), s.fill(a),
|
|
68210
|
-
} else
|
|
68211
|
-
return s.globalAlpha = 1, e.textSegments?.length &&
|
|
68256
|
+
s.save(), s.scale(i, o), s.fill(a), UX(t) && (XX(s, t), s.stroke(a)), s.restore();
|
|
68257
|
+
} else zX(s, e.shapeType, n, r), s.fill(), UX(t) && (XX(s, t), zX(s, e.shapeType, n, r), s.stroke());
|
|
68258
|
+
return s.globalAlpha = 1, e.textSegments?.length && EX(s, e.textSegments, e.textStyle, n, r, o), a.toDataURL("image/png");
|
|
68212
68259
|
}
|
|
68213
|
-
function
|
|
68260
|
+
function zX(e, t, n, r) {
|
|
68214
68261
|
e.beginPath();
|
|
68215
68262
|
switch (t ?? "rect") {
|
|
68216
68263
|
case "ellipse":
|
|
@@ -68224,13 +68271,13 @@ function $X(e, t, n, r) {
|
|
|
68224
68271
|
default: e.rect(0, 0, n, r);
|
|
68225
68272
|
}
|
|
68226
68273
|
}
|
|
68227
|
-
function
|
|
68274
|
+
function XX(e, t) {
|
|
68228
68275
|
e.strokeStyle = t.strokeColor ?? "#000000", e.lineWidth = t.strokeWidth ?? 1, void 0 !== t.strokeOpacity && t.strokeOpacity < 1 && (e.globalAlpha = t.strokeOpacity);
|
|
68229
68276
|
}
|
|
68230
|
-
function
|
|
68277
|
+
function UX(e) {
|
|
68231
68278
|
return Boolean(e.strokeColor) && "transparent" !== e.strokeColor && (e.strokeWidth ?? 0) > 0;
|
|
68232
68279
|
}
|
|
68233
|
-
var
|
|
68280
|
+
var GX = class {
|
|
68234
68281
|
constructor(e) {
|
|
68235
68282
|
this.textRenderer = e;
|
|
68236
68283
|
}
|
|
@@ -68268,7 +68315,7 @@ var UX = class {
|
|
|
68268
68315
|
const e = n.text?.trim();
|
|
68269
68316
|
if (e) {
|
|
68270
68317
|
const t = n.textStyle?.align;
|
|
68271
|
-
t && "left" !== t ? r.push(`<p align="${
|
|
68318
|
+
t && "left" !== t ? r.push(`<p align="${bX(t)}">${bX(e)}</p>`) : r.push(e);
|
|
68272
68319
|
}
|
|
68273
68320
|
}
|
|
68274
68321
|
const a = n.textStyle?.textWarpPreset;
|
|
@@ -68286,7 +68333,7 @@ var UX = class {
|
|
|
68286
68333
|
r.add(e);
|
|
68287
68334
|
try {
|
|
68288
68335
|
const r = await t.mediaContext.saveImage(e, `slide${t.slideNumber}-bullet`);
|
|
68289
|
-
n.push(`<img src="${
|
|
68336
|
+
n.push(`<img src="${bX(r)}" alt="Bullet image">`);
|
|
68290
68337
|
} catch {}
|
|
68291
68338
|
}
|
|
68292
68339
|
}
|
|
@@ -68299,7 +68346,7 @@ var UX = class {
|
|
|
68299
68346
|
if (!n.fillImageUrl.startsWith("data:")) return null;
|
|
68300
68347
|
try {
|
|
68301
68348
|
const e = await t.mediaContext.saveImage(n.fillImageUrl, `slide${t.slideNumber}-shapefill`);
|
|
68302
|
-
return t.semanticMode ? `` : `<img src="${
|
|
68349
|
+
return t.semanticMode ? `` : `<img src="${bX(e)}" alt="Shape fill">`;
|
|
68303
68350
|
} catch {
|
|
68304
68351
|
return null;
|
|
68305
68352
|
}
|
|
@@ -68308,7 +68355,7 @@ var UX = class {
|
|
|
68308
68355
|
const i = e;
|
|
68309
68356
|
if (!i.shapeStyle || !i.width || !i.height) return null;
|
|
68310
68357
|
try {
|
|
68311
|
-
const e =
|
|
68358
|
+
const e = $X({
|
|
68312
68359
|
width: i.width,
|
|
68313
68360
|
height: i.height,
|
|
68314
68361
|
shapeType: i.shapeType,
|
|
@@ -68322,9 +68369,9 @@ var UX = class {
|
|
|
68322
68369
|
if (!e) return null;
|
|
68323
68370
|
const o = await t.mediaContext.saveImage(e, `slide${t.slideNumber}-shape`);
|
|
68324
68371
|
if (t.semanticMode) return ``;
|
|
68325
|
-
if (t.layoutScale) return `<img src="${
|
|
68372
|
+
if (t.layoutScale) return `<img src="${bX(o)}" alt="Shape" style="max-width:100%;height:auto">`;
|
|
68326
68373
|
const a = this.computeDisplaySize(i.width, i.height);
|
|
68327
|
-
return `<img src="${
|
|
68374
|
+
return `<img src="${bX(o)}" alt="Shape" width="${a.w}" height="${a.h}">`;
|
|
68328
68375
|
} catch {
|
|
68329
68376
|
return null;
|
|
68330
68377
|
}
|
|
@@ -68348,7 +68395,7 @@ var UX = class {
|
|
|
68348
68395
|
h: Math.round(t * r)
|
|
68349
68396
|
};
|
|
68350
68397
|
}
|
|
68351
|
-
},
|
|
68398
|
+
}, WX = class {
|
|
68352
68399
|
constructor(e) {
|
|
68353
68400
|
this.textRenderer = e;
|
|
68354
68401
|
}
|
|
@@ -68422,9 +68469,9 @@ var UX = class {
|
|
|
68422
68469
|
"onClick" !== i && r.push(i.replace(/([A-Z])/g, " $1").trim().toLowerCase()), "number" == typeof e.repeatCount && e.repeatCount > 1 && r.push(`repeat: ${e.repeatCount}x`), e.autoReverse && r.push("auto-reverse"), e.buildType && r.push(`build: ${e.buildType}`);
|
|
68423
68470
|
return `${t}: ${n}${r.length > 0 ? ` (${r.join(", ")})` : ""}`;
|
|
68424
68471
|
}
|
|
68425
|
-
},
|
|
68472
|
+
}, VX = class {
|
|
68426
68473
|
constructor(e, t, n) {
|
|
68427
|
-
this.registry = e, this.mediaContext = t, this.textRenderer = n, this.metadataRenderer = new
|
|
68474
|
+
this.registry = e, this.mediaContext = t, this.textRenderer = n, this.metadataRenderer = new WX(n);
|
|
68428
68475
|
}
|
|
68429
68476
|
registry;
|
|
68430
68477
|
mediaContext;
|
|
@@ -68472,7 +68519,7 @@ var UX = class {
|
|
|
68472
68519
|
}
|
|
68473
68520
|
async renderBackgroundHtml(e, t) {
|
|
68474
68521
|
if (e.backgroundImage && e.backgroundImage.startsWith("data:")) try {
|
|
68475
|
-
return `<img src="${
|
|
68522
|
+
return `<img src="${bX(await t.mediaContext.saveImage(e.backgroundImage, `slide${e.slideNumber}-bg`))}" alt="Slide background" style="width:100%;height:100%;object-fit:cover">`;
|
|
68476
68523
|
} catch {
|
|
68477
68524
|
return;
|
|
68478
68525
|
}
|
|
@@ -68532,7 +68579,7 @@ var UX = class {
|
|
|
68532
68579
|
});
|
|
68533
68580
|
}
|
|
68534
68581
|
};
|
|
68535
|
-
function
|
|
68582
|
+
function HX(e, t, n) {
|
|
68536
68583
|
const r = function(e, t) {
|
|
68537
68584
|
if (!e || "object" != typeof e) return;
|
|
68538
68585
|
const n = e[t];
|
|
@@ -68543,7 +68590,7 @@ function VX(e, t, n) {
|
|
|
68543
68590
|
const i = n?.[t], o = i?.marginLeft ?? 0, a = i?.indent ?? 0, s = Math.max(0, o + Math.max(a, 0));
|
|
68544
68591
|
return s <= 0 ? 0 : Math.max(0, Math.round(s / 24));
|
|
68545
68592
|
}
|
|
68546
|
-
function
|
|
68593
|
+
function qX(e, t) {
|
|
68547
68594
|
if (e.autoNumType) {
|
|
68548
68595
|
const n = e.autoNumStartAt ?? 1, r = e.paragraphIndex ?? t;
|
|
68549
68596
|
return function(e, t) {
|
|
@@ -68587,7 +68634,7 @@ function HX(e, t) {
|
|
|
68587
68634
|
}
|
|
68588
68635
|
return "-";
|
|
68589
68636
|
}
|
|
68590
|
-
var
|
|
68637
|
+
var YX = [
|
|
68591
68638
|
"mono",
|
|
68592
68639
|
"courier",
|
|
68593
68640
|
"consolas",
|
|
@@ -68611,11 +68658,11 @@ var qX = [
|
|
|
68611
68658
|
"lucida console",
|
|
68612
68659
|
"fixedsys"
|
|
68613
68660
|
];
|
|
68614
|
-
var
|
|
68661
|
+
var ZX = /* @__PURE__ */ new Set([
|
|
68615
68662
|
"m:rPr",
|
|
68616
68663
|
"m:ctrlPr",
|
|
68617
68664
|
"m:argPr"
|
|
68618
|
-
]),
|
|
68665
|
+
]), KX = class {
|
|
68619
68666
|
convert(e) {
|
|
68620
68667
|
return this.renderNode(e).replace(/\s+/g, " ").trim() || this.collectText(e).replace(/\s+/g, " ").trim();
|
|
68621
68668
|
}
|
|
@@ -68633,7 +68680,7 @@ var YX = /* @__PURE__ */ new Set([
|
|
|
68633
68680
|
for (const [e, r] of Object.entries(t)) {
|
|
68634
68681
|
if (e.startsWith("@_")) continue;
|
|
68635
68682
|
const t = kn(e);
|
|
68636
|
-
if (
|
|
68683
|
+
if (ZX.has(t)) continue;
|
|
68637
68684
|
const i = Array.isArray(r) ? r : [r];
|
|
68638
68685
|
for (const e of i) n += this.renderElement(t, e);
|
|
68639
68686
|
}
|
|
@@ -68790,8 +68837,8 @@ var YX = /* @__PURE__ */ new Set([
|
|
|
68790
68837
|
const r = e[t];
|
|
68791
68838
|
return "string" == typeof r ? r : null;
|
|
68792
68839
|
}
|
|
68793
|
-
},
|
|
68794
|
-
ommlConverter = new
|
|
68840
|
+
}, JX = class {
|
|
68841
|
+
ommlConverter = new KX();
|
|
68795
68842
|
render(e, t = {}) {
|
|
68796
68843
|
if (0 === e.length) return "";
|
|
68797
68844
|
const n = this.groupParagraphs(e).map((e) => this.renderParagraph(e, t)).filter((e) => e.text.length > 0);
|
|
@@ -68843,7 +68890,7 @@ var YX = /* @__PURE__ */ new Set([
|
|
|
68843
68890
|
if (!t.disableLists && !t.inlineMode) {
|
|
68844
68891
|
const r = e.segments.find((e) => Boolean(e.bulletInfo))?.bulletInfo;
|
|
68845
68892
|
if (r && !r.none) {
|
|
68846
|
-
const i =
|
|
68893
|
+
const i = HX(r, e.index, t.paragraphIndents), o = qX(r, e.index), a = r.autoNumType && /^\d+[.)]\s/.test(n) ? "" : `${o} `;
|
|
68847
68894
|
if (t.htmlFormatting) return {
|
|
68848
68895
|
text: `<div style="padding-left:${1.5 * i}em">${a}${n}</div>`,
|
|
68849
68896
|
isListItem: !0
|
|
@@ -68876,13 +68923,13 @@ var YX = /* @__PURE__ */ new Set([
|
|
|
68876
68923
|
if ("all" === e.style.textCaps && (i = i.toUpperCase()), !r && function(e) {
|
|
68877
68924
|
if (e.style.hyperlink) return !1;
|
|
68878
68925
|
const t = e.style.fontFamily?.toLowerCase() ?? "";
|
|
68879
|
-
return
|
|
68880
|
-
}(e) && (i = this.wrapCode(i)), e.style.strikethrough && (i = r ? `<s>${i}</s>` : `~~${i}~~`), e.style.bold && e.style.italic ? i = r ? `<strong><em>${i}</em></strong>` : `***${i}***` : (e.style.bold && (i = r ? `<strong>${i}</strong>` : `**${i}**`), e.style.italic && (i = r ? `<em>${i}</em>` : `*${i}*`)), e.style.underline && (i = `<u>${i}</u>`), e.style.baseline && e.style.baseline > 0 && (i = `<sup>${i}</sup>`), e.style.baseline && e.style.baseline < 0 && (i = `<sub>${i}</sub>`), "small" === e.style.textCaps && (i = `<span style="font-variant:small-caps">${i}</span>`), e.style.hyperlink) if (r) i = `<a href="${
|
|
68926
|
+
return YX.some((e) => t.includes(e));
|
|
68927
|
+
}(e) && (i = this.wrapCode(i)), e.style.strikethrough && (i = r ? `<s>${i}</s>` : `~~${i}~~`), e.style.bold && e.style.italic ? i = r ? `<strong><em>${i}</em></strong>` : `***${i}***` : (e.style.bold && (i = r ? `<strong>${i}</strong>` : `**${i}**`), e.style.italic && (i = r ? `<em>${i}</em>` : `*${i}*`)), e.style.underline && (i = `<u>${i}</u>`), e.style.baseline && e.style.baseline > 0 && (i = `<sup>${i}</sup>`), e.style.baseline && e.style.baseline < 0 && (i = `<sub>${i}</sub>`), "small" === e.style.textCaps && (i = `<span style="font-variant:small-caps">${i}</span>`), e.style.hyperlink) if (r) i = `<a href="${bX(function(e) {
|
|
68881
68928
|
if ("string" != typeof e) return "#";
|
|
68882
68929
|
const t = e.trim();
|
|
68883
68930
|
if (0 === t.length) return "#";
|
|
68884
68931
|
const n = t.toLowerCase();
|
|
68885
|
-
for (const e of
|
|
68932
|
+
for (const e of TX) if (n.startsWith(e)) return t;
|
|
68886
68933
|
return "#";
|
|
68887
68934
|
}(e.style.hyperlink))}">${i}</a>`;
|
|
68888
68935
|
else i = `[${i}](${this.renderLinkDestination(e.style.hyperlink)}${e.style.hyperlinkTooltip ? ` "${this.escapeLinkTitle(e.style.hyperlinkTooltip)}"` : ""})`;
|
|
@@ -68913,14 +68960,14 @@ var YX = /* @__PURE__ */ new Set([
|
|
|
68913
68960
|
escapeHtml(e) {
|
|
68914
68961
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
68915
68962
|
}
|
|
68916
|
-
},
|
|
68963
|
+
}, QX = class extends SX {
|
|
68917
68964
|
textRenderer;
|
|
68918
68965
|
registry;
|
|
68919
68966
|
slideProcessor;
|
|
68920
68967
|
convertedSlides = 0;
|
|
68921
68968
|
totalSlides = 0;
|
|
68922
68969
|
constructor(e, t, n) {
|
|
68923
|
-
super(e, t, n), this.textRenderer = new
|
|
68970
|
+
super(e, t, n), this.textRenderer = new JX(), this.registry = new vX(), this.registerProcessors(), this.slideProcessor = new VX(this.registry, this.mediaContext, this.textRenderer);
|
|
68924
68971
|
}
|
|
68925
68972
|
get imagesExtracted() {
|
|
68926
68973
|
return this.mediaContext.totalImages;
|
|
@@ -68955,7 +69002,7 @@ var YX = /* @__PURE__ */ new Set([
|
|
|
68955
69002
|
return s && (a = `${a}\n\n---\n\n${s}`), a = a.endsWith("\n") ? a : `${a}\n`, this.options.outputPath && await this.writeOutput(a, this.options.outputPath), a;
|
|
68956
69003
|
}
|
|
68957
69004
|
registerProcessors() {
|
|
68958
|
-
this.registry.register(new
|
|
69005
|
+
this.registry.register(new GX(this.textRenderer)), this.registry.register(new kX()), this.registry.register(new BX()), this.registry.register(new wX()), this.registry.register(new RX()), this.registry.register(new _X()), this.registry.register(new LX()), this.registry.register(new AX()), this.registry.register(new PX()), this.registry.register(new CX());
|
|
68959
69006
|
}
|
|
68960
69007
|
buildPptxFrontMatter(e) {
|
|
68961
69008
|
const t = {
|
|
@@ -69005,7 +69052,7 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69005
69052
|
}), Object.defineProperty(exports, "ChartBuilder", {
|
|
69006
69053
|
enumerable: !0,
|
|
69007
69054
|
get: function() {
|
|
69008
|
-
return
|
|
69055
|
+
return Mz;
|
|
69009
69056
|
}
|
|
69010
69057
|
}), Object.defineProperty(exports, "DEFAULT_COLOR_MAP", {
|
|
69011
69058
|
enumerable: !0,
|
|
@@ -69050,12 +69097,12 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69050
69097
|
}), Object.defineProperty(exports, "PptxHandler", {
|
|
69051
69098
|
enumerable: !0,
|
|
69052
69099
|
get: function() {
|
|
69053
|
-
return
|
|
69100
|
+
return d$;
|
|
69054
69101
|
}
|
|
69055
69102
|
}), Object.defineProperty(exports, "PptxMarkdownConverter", {
|
|
69056
69103
|
enumerable: !0,
|
|
69057
69104
|
get: function() {
|
|
69058
|
-
return
|
|
69105
|
+
return QX;
|
|
69059
69106
|
}
|
|
69060
69107
|
}), Object.defineProperty(exports, "SWITCHABLE_LAYOUT_TYPES", {
|
|
69061
69108
|
enumerable: !0,
|
|
@@ -69085,17 +69132,17 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69085
69132
|
}), Object.defineProperty(exports, "ThemePresets", {
|
|
69086
69133
|
enumerable: !0,
|
|
69087
69134
|
get: function() {
|
|
69088
|
-
return
|
|
69135
|
+
return Fz;
|
|
69089
69136
|
}
|
|
69090
69137
|
}), Object.defineProperty(exports, "addChartSeries", {
|
|
69091
69138
|
enumerable: !0,
|
|
69092
69139
|
get: function() {
|
|
69093
|
-
return
|
|
69140
|
+
return oz;
|
|
69094
69141
|
}
|
|
69095
69142
|
}), Object.defineProperty(exports, "addSection", {
|
|
69096
69143
|
enumerable: !0,
|
|
69097
69144
|
get: function() {
|
|
69098
|
-
return
|
|
69145
|
+
return L$;
|
|
69099
69146
|
}
|
|
69100
69147
|
}), Object.defineProperty(exports, "addSmartArtNode", {
|
|
69101
69148
|
enumerable: !0,
|
|
@@ -69120,7 +69167,7 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69120
69167
|
}), Object.defineProperty(exports, "applyTemplate", {
|
|
69121
69168
|
enumerable: !0,
|
|
69122
69169
|
get: function() {
|
|
69123
|
-
return
|
|
69170
|
+
return K$;
|
|
69124
69171
|
}
|
|
69125
69172
|
}), Object.defineProperty(exports, "applyThemeOverrideToSlide", {
|
|
69126
69173
|
enumerable: !0,
|
|
@@ -69285,12 +69332,12 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69285
69332
|
}), Object.defineProperty(exports, "diffPresentations", {
|
|
69286
69333
|
enumerable: !0,
|
|
69287
69334
|
get: function() {
|
|
69288
|
-
return
|
|
69335
|
+
return x$;
|
|
69289
69336
|
}
|
|
69290
69337
|
}), Object.defineProperty(exports, "duplicateElement", {
|
|
69291
69338
|
enumerable: !0,
|
|
69292
69339
|
get: function() {
|
|
69293
|
-
return
|
|
69340
|
+
return tz;
|
|
69294
69341
|
}
|
|
69295
69342
|
}), Object.defineProperty(exports, "elementActionToPptxAction", {
|
|
69296
69343
|
enumerable: !0,
|
|
@@ -69310,17 +69357,17 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69310
69357
|
}), Object.defineProperty(exports, "findLayoutByName", {
|
|
69311
69358
|
enumerable: !0,
|
|
69312
69359
|
get: function() {
|
|
69313
|
-
return
|
|
69360
|
+
return kz;
|
|
69314
69361
|
}
|
|
69315
69362
|
}), Object.defineProperty(exports, "findLayoutByType", {
|
|
69316
69363
|
enumerable: !0,
|
|
69317
69364
|
get: function() {
|
|
69318
|
-
return
|
|
69365
|
+
return Pz;
|
|
69319
69366
|
}
|
|
69320
69367
|
}), Object.defineProperty(exports, "findPlaceholders", {
|
|
69321
69368
|
enumerable: !0,
|
|
69322
69369
|
get: function() {
|
|
69323
|
-
return
|
|
69370
|
+
return Z$;
|
|
69324
69371
|
}
|
|
69325
69372
|
}), Object.defineProperty(exports, "formatAutoNumberMarker", {
|
|
69326
69373
|
enumerable: !0,
|
|
@@ -69370,7 +69417,7 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69370
69417
|
}), Object.defineProperty(exports, "getSectionForSlide", {
|
|
69371
69418
|
enumerable: !0,
|
|
69372
69419
|
get: function() {
|
|
69373
|
-
return
|
|
69420
|
+
return M$;
|
|
69374
69421
|
}
|
|
69375
69422
|
}), Object.defineProperty(exports, "getShapeClipPath", {
|
|
69376
69423
|
enumerable: !0,
|
|
@@ -69395,7 +69442,7 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69395
69442
|
}), Object.defineProperty(exports, "getThemePreset", {
|
|
69396
69443
|
enumerable: !0,
|
|
69397
69444
|
get: function() {
|
|
69398
|
-
return
|
|
69445
|
+
return Rz;
|
|
69399
69446
|
}
|
|
69400
69447
|
}), Object.defineProperty(exports, "groupElements", {
|
|
69401
69448
|
enumerable: !0,
|
|
@@ -69455,12 +69502,12 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69455
69502
|
}), Object.defineProperty(exports, "mergePresentation", {
|
|
69456
69503
|
enumerable: !0,
|
|
69457
69504
|
get: function() {
|
|
69458
|
-
return
|
|
69505
|
+
return k$;
|
|
69459
69506
|
}
|
|
69460
69507
|
}), Object.defineProperty(exports, "moveSlidesToSection", {
|
|
69461
69508
|
enumerable: !0,
|
|
69462
69509
|
get: function() {
|
|
69463
|
-
return
|
|
69510
|
+
return F$;
|
|
69464
69511
|
}
|
|
69465
69512
|
}), Object.defineProperty(exports, "normalizeStShapeType", {
|
|
69466
69513
|
enumerable: !0,
|
|
@@ -69520,12 +69567,12 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69520
69567
|
}), Object.defineProperty(exports, "removeChartSeries", {
|
|
69521
69568
|
enumerable: !0,
|
|
69522
69569
|
get: function() {
|
|
69523
|
-
return
|
|
69570
|
+
return az;
|
|
69524
69571
|
}
|
|
69525
69572
|
}), Object.defineProperty(exports, "removeSection", {
|
|
69526
69573
|
enumerable: !0,
|
|
69527
69574
|
get: function() {
|
|
69528
|
-
return
|
|
69575
|
+
return A$;
|
|
69529
69576
|
}
|
|
69530
69577
|
}), Object.defineProperty(exports, "removeSmartArtNode", {
|
|
69531
69578
|
enumerable: !0,
|
|
@@ -69535,7 +69582,7 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69535
69582
|
}), Object.defineProperty(exports, "reorderSections", {
|
|
69536
69583
|
enumerable: !0,
|
|
69537
69584
|
get: function() {
|
|
69538
|
-
return
|
|
69585
|
+
return I$;
|
|
69539
69586
|
}
|
|
69540
69587
|
}), Object.defineProperty(exports, "reorderSmartArtNode", {
|
|
69541
69588
|
enumerable: !0,
|
|
@@ -69550,12 +69597,12 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69550
69597
|
}), Object.defineProperty(exports, "replaceShapeGeometry", {
|
|
69551
69598
|
enumerable: !0,
|
|
69552
69599
|
get: function() {
|
|
69553
|
-
return
|
|
69600
|
+
return Lz;
|
|
69554
69601
|
}
|
|
69555
69602
|
}), Object.defineProperty(exports, "replaceWithCustomGeometry", {
|
|
69556
69603
|
enumerable: !0,
|
|
69557
69604
|
get: function() {
|
|
69558
|
-
return
|
|
69605
|
+
return Az;
|
|
69559
69606
|
}
|
|
69560
69607
|
}), Object.defineProperty(exports, "resolveCoordinate", {
|
|
69561
69608
|
enumerable: !0,
|
|
@@ -69570,87 +69617,87 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69570
69617
|
}), Object.defineProperty(exports, "setChartAxis", {
|
|
69571
69618
|
enumerable: !0,
|
|
69572
69619
|
get: function() {
|
|
69573
|
-
return
|
|
69620
|
+
return hz;
|
|
69574
69621
|
}
|
|
69575
69622
|
}), Object.defineProperty(exports, "setChartAxisGridlineStyle", {
|
|
69576
69623
|
enumerable: !0,
|
|
69577
69624
|
get: function() {
|
|
69578
|
-
return
|
|
69625
|
+
return yz;
|
|
69579
69626
|
}
|
|
69580
69627
|
}), Object.defineProperty(exports, "setChartAxisLogScale", {
|
|
69581
69628
|
enumerable: !0,
|
|
69582
69629
|
get: function() {
|
|
69583
|
-
return
|
|
69630
|
+
return fz;
|
|
69584
69631
|
}
|
|
69585
69632
|
}), Object.defineProperty(exports, "setChartAxisTitleStyle", {
|
|
69586
69633
|
enumerable: !0,
|
|
69587
69634
|
get: function() {
|
|
69588
|
-
return
|
|
69635
|
+
return gz;
|
|
69589
69636
|
}
|
|
69590
69637
|
}), Object.defineProperty(exports, "setChartCategories", {
|
|
69591
69638
|
enumerable: !0,
|
|
69592
69639
|
get: function() {
|
|
69593
|
-
return
|
|
69640
|
+
return sz;
|
|
69594
69641
|
}
|
|
69595
69642
|
}), Object.defineProperty(exports, "setChartDataLabels", {
|
|
69596
69643
|
enumerable: !0,
|
|
69597
69644
|
get: function() {
|
|
69598
|
-
return
|
|
69645
|
+
return uz;
|
|
69599
69646
|
}
|
|
69600
69647
|
}), Object.defineProperty(exports, "setChartDataPointExplosion", {
|
|
69601
69648
|
enumerable: !0,
|
|
69602
69649
|
get: function() {
|
|
69603
|
-
return
|
|
69650
|
+
return wz;
|
|
69604
69651
|
}
|
|
69605
69652
|
}), Object.defineProperty(exports, "setChartDataPointFill", {
|
|
69606
69653
|
enumerable: !0,
|
|
69607
69654
|
get: function() {
|
|
69608
|
-
return
|
|
69655
|
+
return Sz;
|
|
69609
69656
|
}
|
|
69610
69657
|
}), Object.defineProperty(exports, "setChartDataPointLabel", {
|
|
69611
69658
|
enumerable: !0,
|
|
69612
69659
|
get: function() {
|
|
69613
|
-
return
|
|
69660
|
+
return Cz;
|
|
69614
69661
|
}
|
|
69615
69662
|
}), Object.defineProperty(exports, "setChartDataPointMarker", {
|
|
69616
69663
|
enumerable: !0,
|
|
69617
69664
|
get: function() {
|
|
69618
|
-
return
|
|
69665
|
+
return vz;
|
|
69619
69666
|
}
|
|
69620
69667
|
}), Object.defineProperty(exports, "setChartGrouping", {
|
|
69621
69668
|
enumerable: !0,
|
|
69622
69669
|
get: function() {
|
|
69623
|
-
return
|
|
69670
|
+
return dz;
|
|
69624
69671
|
}
|
|
69625
69672
|
}), Object.defineProperty(exports, "setChartLegend", {
|
|
69626
69673
|
enumerable: !0,
|
|
69627
69674
|
get: function() {
|
|
69628
|
-
return
|
|
69675
|
+
return pz;
|
|
69629
69676
|
}
|
|
69630
69677
|
}), Object.defineProperty(exports, "setChartSeriesChartType", {
|
|
69631
69678
|
enumerable: !0,
|
|
69632
69679
|
get: function() {
|
|
69633
|
-
return
|
|
69680
|
+
return bz;
|
|
69634
69681
|
}
|
|
69635
69682
|
}), Object.defineProperty(exports, "setChartSeriesMarker", {
|
|
69636
69683
|
enumerable: !0,
|
|
69637
69684
|
get: function() {
|
|
69638
|
-
return
|
|
69685
|
+
return xz;
|
|
69639
69686
|
}
|
|
69640
69687
|
}), Object.defineProperty(exports, "setChartTitle", {
|
|
69641
69688
|
enumerable: !0,
|
|
69642
69689
|
get: function() {
|
|
69643
|
-
return
|
|
69690
|
+
return cz;
|
|
69644
69691
|
}
|
|
69645
69692
|
}), Object.defineProperty(exports, "setChartType", {
|
|
69646
69693
|
enumerable: !0,
|
|
69647
69694
|
get: function() {
|
|
69648
|
-
return
|
|
69695
|
+
return iz;
|
|
69649
69696
|
}
|
|
69650
69697
|
}), Object.defineProperty(exports, "setElementLocked", {
|
|
69651
69698
|
enumerable: !0,
|
|
69652
69699
|
get: function() {
|
|
69653
|
-
return
|
|
69700
|
+
return Iz;
|
|
69654
69701
|
}
|
|
69655
69702
|
}), Object.defineProperty(exports, "setSmartArtNodeStyle", {
|
|
69656
69703
|
enumerable: !0,
|
|
@@ -69685,7 +69732,7 @@ Object.defineProperty(exports, "COLOR_MAP_ALIAS_KEYS", {
|
|
|
69685
69732
|
}), Object.defineProperty(exports, "updateChartSeriesValues", {
|
|
69686
69733
|
enumerable: !0,
|
|
69687
69734
|
get: function() {
|
|
69688
|
-
return
|
|
69735
|
+
return lz;
|
|
69689
69736
|
}
|
|
69690
69737
|
}), Object.defineProperty(exports, "updateSmartArtNodeText", {
|
|
69691
69738
|
enumerable: !0,
|