@editora/plugins 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CodePlugin.native-Bwf25lLX.js → CodePlugin.native-CKJo7IFG.js} +8 -8
- package/dist/{CodePlugin.native-Cpp4u3Jl.mjs → CodePlugin.native-D8gGxB8i.mjs} +59 -60
- package/dist/a11y-checker.cjs.js +1 -1
- package/dist/a11y-checker.esm.js +18 -18
- package/dist/anchor.cjs.js +6 -6
- package/dist/anchor.esm.js +57 -57
- package/dist/blockquote.cjs.js +1 -1
- package/dist/blockquote.esm.js +31 -31
- package/dist/capitalization.cjs.js +1 -1
- package/dist/capitalization.esm.js +25 -25
- package/dist/checklist.cjs.js +1 -1
- package/dist/checklist.esm.js +30 -30
- package/dist/code.cjs.js +1 -1
- package/dist/code.esm.js +1 -1
- package/dist/collaboration.cjs.js +8 -8
- package/dist/collaboration.esm.js +1279 -1169
- package/dist/comments.cjs.js +1 -1
- package/dist/comments.esm.js +1 -1
- package/dist/direction.cjs.js +1 -1
- package/dist/direction.esm.js +26 -26
- package/dist/document-manager.cjs.js +1 -1
- package/dist/document-manager.esm.js +1 -1
- package/dist/{documentManager-yjRBab4v.mjs → documentManager-BL98a7YZ.mjs} +402 -404
- package/dist/{documentManager-BDz6tovy.js → documentManager-r8t7yZEd.js} +9 -9
- package/dist/enterprise.cjs.js +1 -1
- package/dist/enterprise.esm.js +1 -1
- package/dist/font-family.cjs.js +1 -1
- package/dist/font-family.esm.js +26 -26
- package/dist/{index-Bm1eqYHh.mjs → index-B-VitI3v.mjs} +23 -22
- package/dist/{index-CoflqYuK.js → index-D5xugkYA.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/preview.cjs.js +3 -3
- package/dist/preview.esm.js +48 -51
- package/dist/purify.es-B6PsRpEV.js +3 -0
- package/dist/purify.es-DmCsrgBd.mjs +1480 -0
- package/dist/sanitizeHtml-CDoBlNTk.js +1 -0
- package/dist/sanitizeHtml-CtLy8um-.mjs +16 -0
- package/dist/spell-check.cjs.js +2 -2
- package/dist/spell-check.esm.js +19 -19
- package/dist/table.cjs.js +14 -14
- package/dist/table.esm.js +158 -150
- package/dist/template.cjs.js +20 -21
- package/dist/template.esm.js +176 -724
- package/package.json +6 -4
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { g as
|
|
1
|
+
import { g as sc, a as oc, b as ic } from "./index-B-VitI3v.mjs";
|
|
2
|
+
import { p as ys } from "./sanitizeHtml-CtLy8um-.mjs";
|
|
2
3
|
var wr = { exports: {} };
|
|
3
4
|
var fs;
|
|
4
|
-
function
|
|
5
|
-
return fs || (fs = 1, (function(bt,
|
|
5
|
+
function ac() {
|
|
6
|
+
return fs || (fs = 1, (function(bt, _t) {
|
|
6
7
|
(function(ot, mt) {
|
|
7
8
|
bt.exports = mt();
|
|
8
9
|
})(globalThis, (() => (() => {
|
|
@@ -5232,7 +5233,7 @@ Actual: ` + T.attribValue);
|
|
|
5232
5233
|
};
|
|
5233
5234
|
var xt = {};
|
|
5234
5235
|
return (() => {
|
|
5235
|
-
ct.r(xt), ct.d(xt, { AbstractNumbering: () => dr, Alignment: () => A, AlignmentAttributes: () => c, AlignmentType: () => h, Attributes: () => l, BaseEmphasisMark: () => ft, BaseXmlComponent: () => z, Body: () => gn, Bookmark: () => Vr, BookmarkEnd: () => Xr, BookmarkStart: () => $r, Border: () => q, BorderElement: () => U, BorderStyle: () => u, Column: () =>
|
|
5236
|
+
ct.r(xt), ct.d(xt, { AbstractNumbering: () => dr, Alignment: () => A, AlignmentAttributes: () => c, AlignmentType: () => h, Attributes: () => l, BaseEmphasisMark: () => ft, BaseXmlComponent: () => z, Body: () => gn, Bookmark: () => Vr, BookmarkEnd: () => Xr, BookmarkStart: () => $r, Border: () => q, BorderElement: () => U, BorderStyle: () => u, Column: () => Mo, ColumnAttributes: () => wn, ColumnBreak: () => To, Columns: () => Jr, ColumnsAttributes: () => Yr, Comment: () => Br, CommentRangeEnd: () => vo, CommentRangeStart: () => xo, CommentReference: () => _o, Comments: () => Mr, ConcreteHyperlink: () => Ge, ConcreteNumbering: () => fr, DeletedTextRun: () => qa, DocGridAttributes: () => Qr, Document: () => ss, DocumentAttributes: () => Qt, DocumentBackground: () => bn, DocumentBackgroundAttributes: () => yn, DocumentDefaults: () => es, DocumentGrid: () => tn, DocumentGridType: () => De, DotEmphasisMark: () => Ft, Drawing: () => Pr, DropCapType: () => $e, EMPTY_OBJECT: () => P, EmphasisMark: () => Tt, EmphasisMarkType: () => C, ExternalHyperlink: () => Gr, File: () => ss, FootNoteReferenceRunAttributes: () => os, FootNotes: () => $n, Footer: () => ja, FooterWrapper: () => ar, FootnoteReference: () => is, FootnoteReferenceRun: () => Ka, FrameAnchorType: () => Xe, FrameProperties: () => _n, FramePropertiesAttributes: () => vn, FrameWrap: () => qe, GridSpan: () => Bn, Header: () => Wa, HeaderFooterReference: () => xe, HeaderFooterReferenceType: () => Wt, HeaderFooterType: () => ae, HeaderWrapper: () => ur, HeadingLevel: () => Ne, HeightRule: () => ir, HorizontalPosition: () => Ar, HorizontalPositionAlign: () => E, HorizontalPositionRelativeFrom: () => me, HpsMeasureElement: () => Q, HyperlinkType: () => ke, IgnoreIfEmptyXmlComponent: () => a, ImageRun: () => ho, ImportDotx: () => ec, ImportedRootElementAttributes: () => N, ImportedXmlComponent: () => S, Indent: () => V, InitializableXmlComponent: () => y, InsertedTextRun: () => Ga, InternalHyperlink: () => Oo, LeaderType: () => Ce, Level: () => Xn, LevelBase: () => pr, LevelForOverride: () => aa, LevelFormat: () => Ut, LevelOverride: () => qn, LevelSuffix: () => hr, LineNumberAttributes: () => en, LineNumberRestartFormat: () => Pe, LineNumberType: () => rn, LineRuleType: () => Jt, Math: () => jo, MathAccentCharacter: () => An, MathAngledBrackets: () => wi, MathBase: () => Mt, MathCurlyBrackets: () => gi, MathDegree: () => On, MathDenominator: () => En, MathFraction: () => Vo, MathFunction: () => ui, MathFunctionName: () => Ln, MathFunctionProperties: () => Dn, MathIntegral: () => ti, MathLimitLocation: () => Sn, MathNAryProperties: () => Ze, MathNumerator: () => Tn, MathPreSubSuperScript: () => si, MathPreSubSuperScriptProperties: () => Cn, MathRadical: () => ci, MathRadicalProperties: () => kn, MathRoundBrackets: () => fi, MathRun: () => Go, MathSquareBrackets: () => mi, MathSubScript: () => ri, MathSubScriptElement: () => te, MathSubScriptProperties: () => Rn, MathSubSuperScript: () => ni, MathSubSuperScriptProperties: () => Nn, MathSum: () => Qo, MathSuperScript: () => ei, MathSuperScriptElement: () => ee, MathSuperScriptProperties: () => In, Media: () => lr, NumberFormat: () => M, NumberProperties: () => Ke, NumberValueElement: () => lt, Numbering: () => Zn, OnOffElement: () => B, OutlineLevel: () => qr, OverlapType: () => sr, Packer: () => cs, PageBorderDisplay: () => Fe, PageBorderOffsetFrom: () => Be, PageBorderZOrder: () => Me, PageBorders: () => sn, PageBreak: () => Eo, PageBreakBefore: () => Hr, PageMargin: () => an, PageMarginAttributes: () => on, PageNumber: () => D, PageNumberSeparator: () => Ue, PageNumberType: () => un, PageNumberTypeAttributes: () => cn, PageOrientation: () => ce, PageReference: () => Po, PageSize: () => hn, PageSizeAttributes: () => ln, PageTextDirection: () => pn, PageTextDirectionType: () => He, Paragraph: () => jt, ParagraphProperties: () => qt, ParagraphPropertiesDefaults: () => Qn, PrettifyType: () => gr, RelativeHorizontalPosition: () => rr, RelativeVerticalPosition: () => nr, Run: () => Bt, RunFonts: () => Z, RunProperties: () => Et, RunPropertiesChange: () => Rt, RunPropertiesDefaults: () => ts, SectionProperties: () => mn, SectionType: () => ze, SectionTypeAttributes: () => dn, SequentialIdentifier: () => fo, Shading: () => it, ShadingType: () => b, SimpleField: () => Fr, SimpleMailMergeField: () => wo, SimplePos: () => _r, SpaceType: () => d, Spacing: () => zr, StringContainer: () => at, StringEnumValueElement: () => rt, StringValueElement: () => G, Style: () => ue, StyleForCharacter: () => de, StyleForParagraph: () => pe, StyleLevel: () => za, Styles: () => Ae, SymbolRun: () => vs, TDirection: () => Mn, Tab: () => mo, TabAttributes: () => jr, TabStop: () => Wr, TabStopItem: () => Kr, TabStopPosition: () => Oe, TabStopType: () => ie, Table: () => Ii, TableAnchorType: () => er, TableBorders: () => tr, TableCell: () => Qe, TableCellBorders: () => Fn, TableFloatOptionsAttributes: () => Un, TableFloatProperties: () => Hn, TableLayout: () => zn, TableLayoutType: () => or, TableOfContents: () => Ha, TableProperties: () => Wn, TableRow: () => Ri, TableRowHeight: () => Kn, TableRowHeightAttributes: () => jn, TableRowProperties: () => Gn, TableWidthElement: () => Vt, TextDirection: () => Ye, TextRun: () => Yt, TextWrappingSide: () => we, TextWrappingType: () => Xt, ThematicBreak: () => F, Type: () => fn, Underline: () => It, UnderlineType: () => x, VerticalAlign: () => Le, VerticalAlignAttributes: () => Zr, VerticalAlignElement: () => Ve, VerticalMerge: () => Je, VerticalMergeType: () => he, VerticalPosition: () => Sr, VerticalPositionAlign: () => O, VerticalPositionRelativeFrom: () => ge, WORKAROUND: () => Fa, WORKAROUND2: () => ta, WORKAROUND3: () => _, WORKAROUND4: () => oi, WidthType: () => re, WrapNone: () => We, WrapSquare: () => Rr, WrapTight: () => Nr, WrapTopAndBottom: () => Cr, XmlAttributeComponent: () => i, XmlComponent: () => r, convertInchesToTwip: () => Ct.convertInchesToTwip, convertMillimetersToTwip: () => Ct.convertMillimetersToTwip, convertToXmlComponent: () => I, dateTimeValue: () => Ct.dateTimeValue, decimalNumber: () => Ct.decimalNumber, eighthPointMeasureValue: () => Ct.eighthPointMeasureValue, hexColorValue: () => Ct.hexColorValue, hpsMeasureValue: () => Ct.hpsMeasureValue, longHexNumber: () => Ct.longHexNumber, measurementOrPercentValue: () => Ct.measurementOrPercentValue, percentageValue: () => Ct.percentageValue, pointMeasureValue: () => Ct.pointMeasureValue, positiveUniversalMeasureValue: () => Ct.positiveUniversalMeasureValue, sectionMarginDefaults: () => Gt, sectionPageSizeDefaults: () => ve, shortHexNumber: () => Ct.shortHexNumber, signedHpsMeasureValue: () => Ct.signedHpsMeasureValue, signedTwipsMeasureValue: () => Ct.signedTwipsMeasureValue, twipsMeasureValue: () => Ct.twipsMeasureValue, uCharHexNumber: () => Ct.uCharHexNumber, uniqueId: () => Ct.uniqueId, uniqueNumericId: () => Ct.uniqueNumericId, universalMeasureValue: () => Ct.universalMeasureValue, unsignedDecimalNumber: () => Ct.unsignedDecimalNumber });
|
|
5236
5237
|
class z {
|
|
5237
5238
|
constructor(t) {
|
|
5238
5239
|
this.rootKey = t;
|
|
@@ -5608,17 +5609,17 @@ Actual: ` + T.attribValue);
|
|
|
5608
5609
|
super(t);
|
|
5609
5610
|
}
|
|
5610
5611
|
}
|
|
5611
|
-
class
|
|
5612
|
+
class xs extends i {
|
|
5612
5613
|
constructor() {
|
|
5613
5614
|
super(...arguments), this.xmlKeys = { char: "w:char", symbolfont: "w:font" };
|
|
5614
5615
|
}
|
|
5615
5616
|
}
|
|
5616
5617
|
class vr extends r {
|
|
5617
5618
|
constructor(t = "", f = "Wingdings") {
|
|
5618
|
-
super("w:sym"), this.root.push(new
|
|
5619
|
+
super("w:sym"), this.root.push(new xs({ char: t, symbolfont: f }));
|
|
5619
5620
|
}
|
|
5620
5621
|
}
|
|
5621
|
-
class
|
|
5622
|
+
class vs extends Bt {
|
|
5622
5623
|
constructor(t) {
|
|
5623
5624
|
if (typeof t == "string") return super({}), this.root.push(new vr(t)), this;
|
|
5624
5625
|
super(t), this.root.push(new vr(t.char, t.symbolfont));
|
|
@@ -5630,14 +5631,14 @@ Actual: ` + T.attribValue);
|
|
|
5630
5631
|
})(me || (me = {})), (function(e) {
|
|
5631
5632
|
e.BOTTOM_MARGIN = "bottomMargin", e.INSIDE_MARGIN = "insideMargin", e.LINE = "line", e.MARGIN = "margin", e.OUTSIDE_MARGIN = "outsideMargin", e.PAGE = "page", e.PARAGRAPH = "paragraph", e.TOP_MARGIN = "topMargin";
|
|
5632
5633
|
})(ge || (ge = {}));
|
|
5633
|
-
class
|
|
5634
|
+
class _s extends i {
|
|
5634
5635
|
constructor() {
|
|
5635
5636
|
super(...arguments), this.xmlKeys = { x: "x", y: "y" };
|
|
5636
5637
|
}
|
|
5637
5638
|
}
|
|
5638
5639
|
class _r extends r {
|
|
5639
5640
|
constructor() {
|
|
5640
|
-
super("wp:simplePos"), this.root.push(new
|
|
5641
|
+
super("wp:simplePos"), this.root.push(new _s({ x: 0, y: 0 }));
|
|
5641
5642
|
}
|
|
5642
5643
|
}
|
|
5643
5644
|
class Er extends r {
|
|
@@ -5650,178 +5651,178 @@ Actual: ` + T.attribValue);
|
|
|
5650
5651
|
super("wp:posOffset"), this.root.push(t.toString());
|
|
5651
5652
|
}
|
|
5652
5653
|
}
|
|
5653
|
-
class
|
|
5654
|
+
class Es extends i {
|
|
5654
5655
|
constructor() {
|
|
5655
5656
|
super(...arguments), this.xmlKeys = { relativeFrom: "relativeFrom" };
|
|
5656
5657
|
}
|
|
5657
5658
|
}
|
|
5658
5659
|
class Ar extends r {
|
|
5659
5660
|
constructor(t) {
|
|
5660
|
-
if (super("wp:positionH"), this.root.push(new
|
|
5661
|
+
if (super("wp:positionH"), this.root.push(new Es({ relativeFrom: t.relative || me.PAGE })), t.align) this.root.push(new Er(t.align));
|
|
5661
5662
|
else {
|
|
5662
5663
|
if (t.offset === void 0) throw new Error("There is no configuration provided for floating position (Align or offset)");
|
|
5663
5664
|
this.root.push(new Tr(t.offset));
|
|
5664
5665
|
}
|
|
5665
5666
|
}
|
|
5666
5667
|
}
|
|
5667
|
-
class
|
|
5668
|
+
class Ts extends i {
|
|
5668
5669
|
constructor() {
|
|
5669
5670
|
super(...arguments), this.xmlKeys = { relativeFrom: "relativeFrom" };
|
|
5670
5671
|
}
|
|
5671
5672
|
}
|
|
5672
5673
|
class Sr extends r {
|
|
5673
5674
|
constructor(t) {
|
|
5674
|
-
if (super("wp:positionV"), this.root.push(new
|
|
5675
|
+
if (super("wp:positionV"), this.root.push(new Ts({ relativeFrom: t.relative || ge.PAGE })), t.align) this.root.push(new Er(t.align));
|
|
5675
5676
|
else {
|
|
5676
5677
|
if (t.offset === void 0) throw new Error("There is no configuration provided for floating position (Align or offset)");
|
|
5677
5678
|
this.root.push(new Tr(t.offset));
|
|
5678
5679
|
}
|
|
5679
5680
|
}
|
|
5680
5681
|
}
|
|
5681
|
-
class
|
|
5682
|
+
class As extends i {
|
|
5682
5683
|
constructor() {
|
|
5683
5684
|
super(...arguments), this.xmlKeys = { uri: "uri" };
|
|
5684
5685
|
}
|
|
5685
5686
|
}
|
|
5686
|
-
class
|
|
5687
|
+
class Ss extends i {
|
|
5687
5688
|
constructor() {
|
|
5688
5689
|
super(...arguments), this.xmlKeys = { embed: "r:embed", cstate: "cstate" };
|
|
5689
5690
|
}
|
|
5690
5691
|
}
|
|
5691
|
-
class
|
|
5692
|
+
class Is extends r {
|
|
5692
5693
|
constructor(t) {
|
|
5693
|
-
super("a:blip"), this.root.push(new
|
|
5694
|
+
super("a:blip"), this.root.push(new Ss({ embed: `rId{${t.fileName}}`, cstate: "none" }));
|
|
5694
5695
|
}
|
|
5695
5696
|
}
|
|
5696
|
-
class
|
|
5697
|
+
class Rs extends r {
|
|
5697
5698
|
constructor() {
|
|
5698
5699
|
super("a:srcRect");
|
|
5699
5700
|
}
|
|
5700
5701
|
}
|
|
5701
|
-
class
|
|
5702
|
+
class Ns extends r {
|
|
5702
5703
|
constructor() {
|
|
5703
5704
|
super("a:fillRect");
|
|
5704
5705
|
}
|
|
5705
5706
|
}
|
|
5706
|
-
class
|
|
5707
|
+
class Cs extends r {
|
|
5707
5708
|
constructor() {
|
|
5708
|
-
super("a:stretch"), this.root.push(new
|
|
5709
|
+
super("a:stretch"), this.root.push(new Ns());
|
|
5709
5710
|
}
|
|
5710
5711
|
}
|
|
5711
|
-
class
|
|
5712
|
+
class Os extends r {
|
|
5712
5713
|
constructor(t) {
|
|
5713
|
-
super("pic:blipFill"), this.root.push(new
|
|
5714
|
+
super("pic:blipFill"), this.root.push(new Is(t)), this.root.push(new Rs()), this.root.push(new Cs());
|
|
5714
5715
|
}
|
|
5715
5716
|
}
|
|
5716
|
-
class
|
|
5717
|
+
class ks extends i {
|
|
5717
5718
|
constructor() {
|
|
5718
5719
|
super(...arguments), this.xmlKeys = { noChangeAspect: "noChangeAspect", noChangeArrowheads: "noChangeArrowheads" };
|
|
5719
5720
|
}
|
|
5720
5721
|
}
|
|
5721
|
-
class
|
|
5722
|
+
class Ls extends r {
|
|
5722
5723
|
constructor() {
|
|
5723
|
-
super("a:picLocks"), this.root.push(new
|
|
5724
|
+
super("a:picLocks"), this.root.push(new ks({ noChangeAspect: 1, noChangeArrowheads: 1 }));
|
|
5724
5725
|
}
|
|
5725
5726
|
}
|
|
5726
|
-
class
|
|
5727
|
+
class Ds extends r {
|
|
5727
5728
|
constructor() {
|
|
5728
|
-
super("pic:cNvPicPr"), this.root.push(new
|
|
5729
|
+
super("pic:cNvPicPr"), this.root.push(new Ls());
|
|
5729
5730
|
}
|
|
5730
5731
|
}
|
|
5731
|
-
class
|
|
5732
|
+
class Ps extends i {
|
|
5732
5733
|
constructor() {
|
|
5733
5734
|
super(...arguments), this.xmlKeys = { id: "id", name: "name", descr: "descr" };
|
|
5734
5735
|
}
|
|
5735
5736
|
}
|
|
5736
|
-
class
|
|
5737
|
+
class Fs extends r {
|
|
5737
5738
|
constructor() {
|
|
5738
|
-
super("pic:cNvPr"), this.root.push(new
|
|
5739
|
+
super("pic:cNvPr"), this.root.push(new Ps({ id: 0, name: "", descr: "" }));
|
|
5739
5740
|
}
|
|
5740
5741
|
}
|
|
5741
|
-
class
|
|
5742
|
+
class Bs extends r {
|
|
5742
5743
|
constructor() {
|
|
5743
|
-
super("pic:nvPicPr"), this.root.push(new
|
|
5744
|
+
super("pic:nvPicPr"), this.root.push(new Fs()), this.root.push(new Ds());
|
|
5744
5745
|
}
|
|
5745
5746
|
}
|
|
5746
|
-
class
|
|
5747
|
+
class Ms extends i {
|
|
5747
5748
|
constructor() {
|
|
5748
5749
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns:pic" };
|
|
5749
5750
|
}
|
|
5750
5751
|
}
|
|
5751
|
-
class
|
|
5752
|
+
class Us extends i {
|
|
5752
5753
|
constructor() {
|
|
5753
5754
|
super(...arguments), this.xmlKeys = { cx: "cx", cy: "cy" };
|
|
5754
5755
|
}
|
|
5755
5756
|
}
|
|
5756
|
-
class
|
|
5757
|
+
class Hs extends r {
|
|
5757
5758
|
constructor(t, f) {
|
|
5758
|
-
super("a:ext"), this.attributes = new
|
|
5759
|
+
super("a:ext"), this.attributes = new Us({ cx: t, cy: f }), this.root.push(this.attributes);
|
|
5759
5760
|
}
|
|
5760
5761
|
}
|
|
5761
|
-
class
|
|
5762
|
+
class zs extends i {
|
|
5762
5763
|
constructor() {
|
|
5763
5764
|
super(...arguments), this.xmlKeys = { x: "x", y: "y" };
|
|
5764
5765
|
}
|
|
5765
5766
|
}
|
|
5766
|
-
class
|
|
5767
|
+
class Ws extends r {
|
|
5767
5768
|
constructor() {
|
|
5768
|
-
super("a:off"), this.root.push(new
|
|
5769
|
+
super("a:off"), this.root.push(new zs({ x: 0, y: 0 }));
|
|
5769
5770
|
}
|
|
5770
5771
|
}
|
|
5771
|
-
class
|
|
5772
|
+
class js extends i {
|
|
5772
5773
|
constructor() {
|
|
5773
5774
|
super(...arguments), this.xmlKeys = { flipVertical: "flipV", flipHorizontal: "flipH", rotation: "rot" };
|
|
5774
5775
|
}
|
|
5775
5776
|
}
|
|
5776
|
-
class
|
|
5777
|
+
class Ks extends r {
|
|
5777
5778
|
constructor(t) {
|
|
5778
5779
|
var f, H;
|
|
5779
|
-
super("a:xfrm"), this.root.push(new
|
|
5780
|
+
super("a:xfrm"), this.root.push(new js({ flipVertical: (f = t.flip) === null || f === void 0 ? void 0 : f.vertical, flipHorizontal: (H = t.flip) === null || H === void 0 ? void 0 : H.horizontal, rotation: t.rotation })), this.extents = new Hs(t.emus.x, t.emus.y), this.root.push(new Ws()), this.root.push(this.extents);
|
|
5780
5781
|
}
|
|
5781
5782
|
}
|
|
5782
|
-
class
|
|
5783
|
+
class Gs extends r {
|
|
5783
5784
|
constructor() {
|
|
5784
5785
|
super("a:avLst");
|
|
5785
5786
|
}
|
|
5786
5787
|
}
|
|
5787
|
-
class
|
|
5788
|
+
class Vs extends i {
|
|
5788
5789
|
constructor() {
|
|
5789
5790
|
super(...arguments), this.xmlKeys = { prst: "prst" };
|
|
5790
5791
|
}
|
|
5791
5792
|
}
|
|
5792
|
-
class
|
|
5793
|
+
class $s extends r {
|
|
5793
5794
|
constructor() {
|
|
5794
|
-
super("a:prstGeom"), this.root.push(new
|
|
5795
|
+
super("a:prstGeom"), this.root.push(new Vs({ prst: "rect" })), this.root.push(new Gs());
|
|
5795
5796
|
}
|
|
5796
5797
|
}
|
|
5797
|
-
class
|
|
5798
|
+
class Xs extends i {
|
|
5798
5799
|
constructor() {
|
|
5799
5800
|
super(...arguments), this.xmlKeys = { bwMode: "bwMode" };
|
|
5800
5801
|
}
|
|
5801
5802
|
}
|
|
5802
|
-
class
|
|
5803
|
+
class qs extends r {
|
|
5803
5804
|
constructor(t) {
|
|
5804
|
-
super("pic:spPr"), this.root.push(new
|
|
5805
|
+
super("pic:spPr"), this.root.push(new Xs({ bwMode: "auto" })), this.form = new Ks(t), this.root.push(this.form), this.root.push(new $s());
|
|
5805
5806
|
}
|
|
5806
5807
|
}
|
|
5807
|
-
class
|
|
5808
|
+
class Zs extends r {
|
|
5808
5809
|
constructor(t, f) {
|
|
5809
|
-
super("pic:pic"), this.root.push(new
|
|
5810
|
+
super("pic:pic"), this.root.push(new Ms({ xmlns: "http://schemas.openxmlformats.org/drawingml/2006/picture" })), this.root.push(new Bs()), this.root.push(new Os(t)), this.root.push(new qs(f));
|
|
5810
5811
|
}
|
|
5811
5812
|
}
|
|
5812
|
-
class
|
|
5813
|
+
class Ys extends r {
|
|
5813
5814
|
constructor(t, f) {
|
|
5814
|
-
super("a:graphicData"), this.root.push(new
|
|
5815
|
+
super("a:graphicData"), this.root.push(new As({ uri: "http://schemas.openxmlformats.org/drawingml/2006/picture" })), this.pic = new Zs(t, f), this.root.push(this.pic);
|
|
5815
5816
|
}
|
|
5816
5817
|
}
|
|
5817
|
-
class
|
|
5818
|
+
class Js extends i {
|
|
5818
5819
|
constructor() {
|
|
5819
5820
|
super(...arguments), this.xmlKeys = { a: "xmlns:a" };
|
|
5820
5821
|
}
|
|
5821
5822
|
}
|
|
5822
5823
|
class Ir extends r {
|
|
5823
5824
|
constructor(t, f) {
|
|
5824
|
-
super("a:graphic"), this.root.push(new
|
|
5825
|
+
super("a:graphic"), this.root.push(new Js({ a: "http://schemas.openxmlformats.org/drawingml/2006/main" })), this.data = new Ys(t, f), this.root.push(this.data);
|
|
5825
5826
|
}
|
|
5826
5827
|
}
|
|
5827
5828
|
(function(e) {
|
|
@@ -5834,91 +5835,91 @@ Actual: ` + T.attribValue);
|
|
|
5834
5835
|
super("wp:wrapNone");
|
|
5835
5836
|
}
|
|
5836
5837
|
}
|
|
5837
|
-
class
|
|
5838
|
+
class Qs extends i {
|
|
5838
5839
|
constructor() {
|
|
5839
5840
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB", distL: "distL", distR: "distR", wrapText: "wrapText" };
|
|
5840
5841
|
}
|
|
5841
5842
|
}
|
|
5842
5843
|
class Rr extends r {
|
|
5843
5844
|
constructor(t, f = { top: 0, bottom: 0, left: 0, right: 0 }) {
|
|
5844
|
-
super("wp:wrapSquare"), this.root.push(new
|
|
5845
|
+
super("wp:wrapSquare"), this.root.push(new Qs({ wrapText: t.side || we.BOTH_SIDES, distT: f.top, distB: f.bottom, distL: f.left, distR: f.right }));
|
|
5845
5846
|
}
|
|
5846
5847
|
}
|
|
5847
|
-
class
|
|
5848
|
+
class to extends i {
|
|
5848
5849
|
constructor() {
|
|
5849
5850
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB" };
|
|
5850
5851
|
}
|
|
5851
5852
|
}
|
|
5852
5853
|
class Nr extends r {
|
|
5853
5854
|
constructor(t = { top: 0, bottom: 0 }) {
|
|
5854
|
-
super("wp:wrapTight"), this.root.push(new
|
|
5855
|
+
super("wp:wrapTight"), this.root.push(new to({ distT: t.top, distB: t.bottom }));
|
|
5855
5856
|
}
|
|
5856
5857
|
}
|
|
5857
|
-
class
|
|
5858
|
+
class eo extends i {
|
|
5858
5859
|
constructor() {
|
|
5859
5860
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB" };
|
|
5860
5861
|
}
|
|
5861
5862
|
}
|
|
5862
5863
|
class Cr extends r {
|
|
5863
5864
|
constructor(t = { top: 0, bottom: 0 }) {
|
|
5864
|
-
super("wp:wrapTopAndBottom"), this.root.push(new
|
|
5865
|
+
super("wp:wrapTopAndBottom"), this.root.push(new eo({ distT: t.top, distB: t.bottom }));
|
|
5865
5866
|
}
|
|
5866
5867
|
}
|
|
5867
|
-
class
|
|
5868
|
+
class ro extends i {
|
|
5868
5869
|
constructor() {
|
|
5869
5870
|
super(...arguments), this.xmlKeys = { id: "id", name: "name", description: "descr", title: "title" };
|
|
5870
5871
|
}
|
|
5871
5872
|
}
|
|
5872
5873
|
class Or extends r {
|
|
5873
5874
|
constructor({ name: t, description: f, title: H } = { name: "", description: "", title: "" }) {
|
|
5874
|
-
super("wp:docPr"), this.root.push(new
|
|
5875
|
+
super("wp:docPr"), this.root.push(new ro({ id: (0, Ot.NY)(), name: t, description: f, title: H }));
|
|
5875
5876
|
}
|
|
5876
5877
|
}
|
|
5877
|
-
class
|
|
5878
|
+
class no extends i {
|
|
5878
5879
|
constructor() {
|
|
5879
5880
|
super(...arguments), this.xmlKeys = { b: "b", l: "l", r: "r", t: "t" };
|
|
5880
5881
|
}
|
|
5881
5882
|
}
|
|
5882
5883
|
class kr extends r {
|
|
5883
5884
|
constructor() {
|
|
5884
|
-
super("wp:effectExtent"), this.root.push(new
|
|
5885
|
+
super("wp:effectExtent"), this.root.push(new no({ b: 0, l: 0, r: 0, t: 0 }));
|
|
5885
5886
|
}
|
|
5886
5887
|
}
|
|
5887
|
-
class
|
|
5888
|
+
class so extends i {
|
|
5888
5889
|
constructor() {
|
|
5889
5890
|
super(...arguments), this.xmlKeys = { cx: "cx", cy: "cy" };
|
|
5890
5891
|
}
|
|
5891
5892
|
}
|
|
5892
5893
|
class Lr extends r {
|
|
5893
5894
|
constructor(t, f) {
|
|
5894
|
-
super("wp:extent"), this.attributes = new
|
|
5895
|
+
super("wp:extent"), this.attributes = new so({ cx: t, cy: f }), this.root.push(this.attributes);
|
|
5895
5896
|
}
|
|
5896
5897
|
}
|
|
5897
|
-
class
|
|
5898
|
+
class oo extends i {
|
|
5898
5899
|
constructor() {
|
|
5899
5900
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns:a", noChangeAspect: "noChangeAspect" };
|
|
5900
5901
|
}
|
|
5901
5902
|
}
|
|
5902
|
-
class
|
|
5903
|
+
class io extends r {
|
|
5903
5904
|
constructor() {
|
|
5904
|
-
super("a:graphicFrameLocks"), this.root.push(new
|
|
5905
|
+
super("a:graphicFrameLocks"), this.root.push(new oo({ xmlns: "http://schemas.openxmlformats.org/drawingml/2006/main", noChangeAspect: 1 }));
|
|
5905
5906
|
}
|
|
5906
5907
|
}
|
|
5907
5908
|
class Dr extends r {
|
|
5908
5909
|
constructor() {
|
|
5909
|
-
super("wp:cNvGraphicFramePr"), this.root.push(new
|
|
5910
|
+
super("wp:cNvGraphicFramePr"), this.root.push(new io());
|
|
5910
5911
|
}
|
|
5911
5912
|
}
|
|
5912
|
-
class
|
|
5913
|
+
class ao extends i {
|
|
5913
5914
|
constructor() {
|
|
5914
5915
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB", distL: "distL", distR: "distR", allowOverlap: "allowOverlap", behindDoc: "behindDoc", layoutInCell: "layoutInCell", locked: "locked", relativeHeight: "relativeHeight", simplePos: "simplePos" };
|
|
5915
5916
|
}
|
|
5916
5917
|
}
|
|
5917
|
-
class
|
|
5918
|
+
class co extends r {
|
|
5918
5919
|
constructor(t, f, H) {
|
|
5919
5920
|
super("wp:anchor");
|
|
5920
5921
|
const J = Object.assign({ allowOverlap: !0, behindDocument: !1, lockAnchor: !1, layoutInCell: !0, verticalPosition: {}, horizontalPosition: {} }, H.floating);
|
|
5921
|
-
if (this.root.push(new
|
|
5922
|
+
if (this.root.push(new ao({ distT: J.margins && J.margins.top || 0, distB: J.margins && J.margins.bottom || 0, distL: J.margins && J.margins.left || 0, distR: J.margins && J.margins.right || 0, simplePos: "0", allowOverlap: J.allowOverlap === !0 ? "1" : "0", behindDoc: J.behindDocument === !0 ? "1" : "0", locked: J.lockAnchor === !0 ? "1" : "0", layoutInCell: J.layoutInCell === !0 ? "1" : "0", relativeHeight: J.zIndex ? J.zIndex : f.emus.y })), this.root.push(new _r()), this.root.push(new Ar(J.horizontalPosition)), this.root.push(new Sr(J.verticalPosition)), this.root.push(new Lr(f.emus.x, f.emus.y)), this.root.push(new kr()), H.floating !== void 0 && H.floating.wrap !== void 0) switch (H.floating.wrap.type) {
|
|
5922
5923
|
case Xt.SQUARE:
|
|
5923
5924
|
this.root.push(new Rr(H.floating.wrap, H.floating.margins));
|
|
5924
5925
|
break;
|
|
@@ -5936,22 +5937,22 @@ Actual: ` + T.attribValue);
|
|
|
5936
5937
|
this.root.push(new Or(H.docProperties)), this.root.push(new Dr()), this.root.push(new Ir(t, f));
|
|
5937
5938
|
}
|
|
5938
5939
|
}
|
|
5939
|
-
class
|
|
5940
|
+
class uo extends i {
|
|
5940
5941
|
constructor() {
|
|
5941
5942
|
super(...arguments), this.xmlKeys = { distT: "distT", distB: "distB", distL: "distL", distR: "distR" };
|
|
5942
5943
|
}
|
|
5943
5944
|
}
|
|
5944
|
-
class
|
|
5945
|
+
class lo extends r {
|
|
5945
5946
|
constructor({ mediaData: t, transform: f, docProperties: H }) {
|
|
5946
|
-
super("wp:inline"), this.root.push(new
|
|
5947
|
+
super("wp:inline"), this.root.push(new uo({ distT: 0, distB: 0, distL: 0, distR: 0 })), this.extent = new Lr(f.emus.x, f.emus.y), this.graphic = new Ir(t, f), this.root.push(this.extent), this.root.push(new kr()), this.root.push(new Or(H)), this.root.push(new Dr()), this.root.push(this.graphic);
|
|
5947
5948
|
}
|
|
5948
5949
|
}
|
|
5949
5950
|
class Pr extends r {
|
|
5950
5951
|
constructor(t, f = {}) {
|
|
5951
|
-
super("w:drawing"), f.floating ? this.root.push(new
|
|
5952
|
+
super("w:drawing"), f.floating ? this.root.push(new co(t, t.transformation, f)) : (this.inline = new lo({ mediaData: t, transform: t.transformation, docProperties: f.docProperties }), this.root.push(this.inline));
|
|
5952
5953
|
}
|
|
5953
5954
|
}
|
|
5954
|
-
class
|
|
5955
|
+
class ho extends Bt {
|
|
5955
5956
|
constructor(t) {
|
|
5956
5957
|
super({}), this.key = `${(0, Ot.EL)()}.png`;
|
|
5957
5958
|
const f = typeof t.data == "string" ? this.convertDataURIToBinary(t.data) : t.data;
|
|
@@ -5970,37 +5971,37 @@ Actual: ` + T.attribValue);
|
|
|
5970
5971
|
return new (ct(8764)).Buffer(t, "base64");
|
|
5971
5972
|
}
|
|
5972
5973
|
}
|
|
5973
|
-
class
|
|
5974
|
+
class po extends r {
|
|
5974
5975
|
constructor(t) {
|
|
5975
5976
|
super("w:instrText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push(`SEQ ${t}`);
|
|
5976
5977
|
}
|
|
5977
5978
|
}
|
|
5978
|
-
class
|
|
5979
|
+
class fo extends Bt {
|
|
5979
5980
|
constructor(t) {
|
|
5980
|
-
super({}), this.root.push(new T(!0)), this.root.push(new
|
|
5981
|
+
super({}), this.root.push(new T(!0)), this.root.push(new po(t)), this.root.push(new o()), this.root.push(new v());
|
|
5981
5982
|
}
|
|
5982
5983
|
}
|
|
5983
|
-
class
|
|
5984
|
+
class mo extends r {
|
|
5984
5985
|
constructor() {
|
|
5985
5986
|
super("w:tab");
|
|
5986
5987
|
}
|
|
5987
5988
|
}
|
|
5988
|
-
class
|
|
5989
|
+
class go extends i {
|
|
5989
5990
|
constructor() {
|
|
5990
5991
|
super(...arguments), this.xmlKeys = { instr: "w:instr" };
|
|
5991
5992
|
}
|
|
5992
5993
|
}
|
|
5993
5994
|
class Fr extends r {
|
|
5994
5995
|
constructor(t, f) {
|
|
5995
|
-
super("w:fldSimple"), this.root.push(new
|
|
5996
|
+
super("w:fldSimple"), this.root.push(new go({ instr: t })), f !== void 0 && this.root.push(new Yt(f));
|
|
5996
5997
|
}
|
|
5997
5998
|
}
|
|
5998
|
-
class
|
|
5999
|
+
class wo extends Fr {
|
|
5999
6000
|
constructor(t) {
|
|
6000
6001
|
super(` MERGEFIELD ${t} `, `«${t}»`);
|
|
6001
6002
|
}
|
|
6002
6003
|
}
|
|
6003
|
-
class
|
|
6004
|
+
class yo extends i {
|
|
6004
6005
|
constructor() {
|
|
6005
6006
|
super(...arguments), this.xmlKeys = { id: "w:id", initials: "w:initials", author: "w:author", date: "w:date" };
|
|
6006
6007
|
}
|
|
@@ -6010,34 +6011,34 @@ Actual: ` + T.attribValue);
|
|
|
6010
6011
|
super(...arguments), this.xmlKeys = { id: "w:id" };
|
|
6011
6012
|
}
|
|
6012
6013
|
}
|
|
6013
|
-
class
|
|
6014
|
+
class bo extends i {
|
|
6014
6015
|
constructor() {
|
|
6015
6016
|
super(...arguments), this.xmlKeys = { "xmlns:cx": "xmlns:cx", "xmlns:cx1": "xmlns:cx1", "xmlns:cx2": "xmlns:cx2", "xmlns:cx3": "xmlns:cx3", "xmlns:cx4": "xmlns:cx4", "xmlns:cx5": "xmlns:cx5", "xmlns:cx6": "xmlns:cx6", "xmlns:cx7": "xmlns:cx7", "xmlns:cx8": "xmlns:cx8", "xmlns:mc": "xmlns:mc", "xmlns:aink": "xmlns:aink", "xmlns:am3d": "xmlns:am3d", "xmlns:o": "xmlns:o", "xmlns:r": "xmlns:r", "xmlns:m": "xmlns:m", "xmlns:v": "xmlns:v", "xmlns:wp14": "xmlns:wp14", "xmlns:wp": "xmlns:wp", "xmlns:w10": "xmlns:w10", "xmlns:w": "xmlns:w", "xmlns:w14": "xmlns:w14", "xmlns:w15": "xmlns:w15", "xmlns:w16cex": "xmlns:w16cex", "xmlns:w16cid": "xmlns:w16cid", "xmlns:w16": "xmlns:w16", "xmlns:w16sdtdh": "xmlns:w16sdtdh", "xmlns:w16se": "xmlns:w16se", "xmlns:wpg": "xmlns:wpg", "xmlns:wpi": "xmlns:wpi", "xmlns:wne": "xmlns:wne", "xmlns:wps": "xmlns:wps" };
|
|
6016
6017
|
}
|
|
6017
6018
|
}
|
|
6018
|
-
class
|
|
6019
|
+
class xo extends r {
|
|
6019
6020
|
constructor(t) {
|
|
6020
6021
|
super("w:commentRangeStart"), this.root.push(new je({ id: t }));
|
|
6021
6022
|
}
|
|
6022
6023
|
}
|
|
6023
|
-
class
|
|
6024
|
+
class vo extends r {
|
|
6024
6025
|
constructor(t) {
|
|
6025
6026
|
super("w:commentRangeEnd"), this.root.push(new je({ id: t }));
|
|
6026
6027
|
}
|
|
6027
6028
|
}
|
|
6028
|
-
class
|
|
6029
|
+
class _o extends r {
|
|
6029
6030
|
constructor(t) {
|
|
6030
6031
|
super("w:commentReference"), this.root.push(new je({ id: t }));
|
|
6031
6032
|
}
|
|
6032
6033
|
}
|
|
6033
6034
|
class Br extends r {
|
|
6034
6035
|
constructor({ id: t, initials: f, author: H, date: J = /* @__PURE__ */ new Date(), text: tt }) {
|
|
6035
|
-
super("w:comment"), this.root.push(new
|
|
6036
|
+
super("w:comment"), this.root.push(new yo({ id: t, initials: f, author: H, date: J.toISOString() })), this.root.push(new jt({ children: [new Yt(tt)] }));
|
|
6036
6037
|
}
|
|
6037
6038
|
}
|
|
6038
6039
|
class Mr extends r {
|
|
6039
6040
|
constructor({ children: t }) {
|
|
6040
|
-
super("w:comments"), this.root.push(new
|
|
6041
|
+
super("w:comments"), this.root.push(new bo({ "xmlns:cx": "http://schemas.microsoft.com/office/drawing/2014/chartex", "xmlns:cx1": "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex", "xmlns:cx2": "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex", "xmlns:cx3": "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex", "xmlns:cx4": "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex", "xmlns:cx5": "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex", "xmlns:cx6": "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex", "xmlns:cx7": "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex", "xmlns:cx8": "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex", "xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006", "xmlns:aink": "http://schemas.microsoft.com/office/drawing/2016/ink", "xmlns:am3d": "http://schemas.microsoft.com/office/drawing/2017/model3d", "xmlns:o": "urn:schemas-microsoft-com:office:office", "xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships", "xmlns:m": "http://schemas.openxmlformats.org/officeDocument/2006/math", "xmlns:v": "urn:schemas-microsoft-com:vml", "xmlns:wp14": "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", "xmlns:wp": "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", "xmlns:w10": "urn:schemas-microsoft-com:office:word", "xmlns:w": "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "xmlns:w14": "http://schemas.microsoft.com/office/word/2010/wordml", "xmlns:w15": "http://schemas.microsoft.com/office/word/2012/wordml", "xmlns:w16cex": "http://schemas.microsoft.com/office/word/2018/wordml/cex", "xmlns:w16cid": "http://schemas.microsoft.com/office/word/2016/wordml/cid", "xmlns:w16": "http://schemas.microsoft.com/office/word/2018/wordml", "xmlns:w16sdtdh": "http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash", "xmlns:w16se": "http://schemas.microsoft.com/office/word/2015/wordml/symex", "xmlns:wpg": "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", "xmlns:wpi": "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", "xmlns:wne": "http://schemas.microsoft.com/office/word/2006/wordml", "xmlns:wps": "http://schemas.microsoft.com/office/word/2010/wordprocessingShape" }));
|
|
6041
6042
|
for (const f of t) this.root.push(new Br(f));
|
|
6042
6043
|
}
|
|
6043
6044
|
}
|
|
@@ -6049,12 +6050,12 @@ Actual: ` + T.attribValue);
|
|
|
6049
6050
|
super("w:br"), this.root.push(new l({ type: t }));
|
|
6050
6051
|
}
|
|
6051
6052
|
}
|
|
6052
|
-
class
|
|
6053
|
+
class Eo extends Bt {
|
|
6053
6054
|
constructor() {
|
|
6054
6055
|
super({}), this.root.push(new Ur(ye.PAGE));
|
|
6055
6056
|
}
|
|
6056
6057
|
}
|
|
6057
|
-
class
|
|
6058
|
+
class To extends Bt {
|
|
6058
6059
|
constructor() {
|
|
6059
6060
|
super({}), this.root.push(new Ur(ye.COLUMN));
|
|
6060
6061
|
}
|
|
@@ -6067,14 +6068,14 @@ Actual: ` + T.attribValue);
|
|
|
6067
6068
|
(function(e) {
|
|
6068
6069
|
e.AT_LEAST = "atLeast", e.EXACTLY = "exactly", e.EXACT = "exact", e.AUTO = "auto";
|
|
6069
6070
|
})(Jt || (Jt = {}));
|
|
6070
|
-
class
|
|
6071
|
+
class Ao extends i {
|
|
6071
6072
|
constructor() {
|
|
6072
6073
|
super(...arguments), this.xmlKeys = { after: "w:after", before: "w:before", line: "w:line", lineRule: "w:lineRule" };
|
|
6073
6074
|
}
|
|
6074
6075
|
}
|
|
6075
6076
|
class zr extends r {
|
|
6076
6077
|
constructor(t) {
|
|
6077
|
-
super("w:spacing"), this.root.push(new
|
|
6078
|
+
super("w:spacing"), this.root.push(new Ao(t));
|
|
6078
6079
|
}
|
|
6079
6080
|
}
|
|
6080
6081
|
(function(e) {
|
|
@@ -6110,21 +6111,21 @@ Actual: ` + T.attribValue);
|
|
|
6110
6111
|
}
|
|
6111
6112
|
class Ke extends r {
|
|
6112
6113
|
constructor(t, f) {
|
|
6113
|
-
super("w:numPr"), this.root.push(new
|
|
6114
|
+
super("w:numPr"), this.root.push(new So(f)), this.root.push(new Io(t));
|
|
6114
6115
|
}
|
|
6115
6116
|
}
|
|
6116
|
-
class
|
|
6117
|
+
class So extends r {
|
|
6117
6118
|
constructor(t) {
|
|
6118
6119
|
if (super("w:ilvl"), t > 9) throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");
|
|
6119
6120
|
this.root.push(new l({ val: t }));
|
|
6120
6121
|
}
|
|
6121
6122
|
}
|
|
6122
|
-
class
|
|
6123
|
+
class Io extends r {
|
|
6123
6124
|
constructor(t) {
|
|
6124
6125
|
super("w:numId"), this.root.push(new l({ val: typeof t == "string" ? `{${t}}` : t }));
|
|
6125
6126
|
}
|
|
6126
6127
|
}
|
|
6127
|
-
class
|
|
6128
|
+
class Ro extends i {
|
|
6128
6129
|
constructor() {
|
|
6129
6130
|
super(...arguments), this.xmlKeys = { id: "Id", type: "Type", target: "Target", targetMode: "TargetMode" };
|
|
6130
6131
|
}
|
|
@@ -6132,12 +6133,12 @@ Actual: ` + T.attribValue);
|
|
|
6132
6133
|
(function(e) {
|
|
6133
6134
|
e.EXTERNAL = "External";
|
|
6134
6135
|
})(be || (be = {}));
|
|
6135
|
-
class
|
|
6136
|
+
class No extends r {
|
|
6136
6137
|
constructor(t, f, H, J) {
|
|
6137
|
-
super("Relationship"), this.root.push(new
|
|
6138
|
+
super("Relationship"), this.root.push(new Ro({ id: t, type: f, target: H, targetMode: J }));
|
|
6138
6139
|
}
|
|
6139
6140
|
}
|
|
6140
|
-
class
|
|
6141
|
+
class Co extends i {
|
|
6141
6142
|
constructor() {
|
|
6142
6143
|
super(...arguments), this.xmlKeys = { id: "r:id", history: "w:history", anchor: "w:anchor" };
|
|
6143
6144
|
}
|
|
@@ -6148,13 +6149,13 @@ Actual: ` + T.attribValue);
|
|
|
6148
6149
|
class Ge extends r {
|
|
6149
6150
|
constructor(t, f, H) {
|
|
6150
6151
|
super("w:hyperlink"), this.linkId = f;
|
|
6151
|
-
const J = { history: 1, anchor: H || void 0, id: H ? void 0 : `rId${this.linkId}` }, tt = new
|
|
6152
|
+
const J = { history: 1, anchor: H || void 0, id: H ? void 0 : `rId${this.linkId}` }, tt = new Co(J);
|
|
6152
6153
|
this.root.push(tt), t.forEach(((ut) => {
|
|
6153
6154
|
this.root.push(ut);
|
|
6154
6155
|
}));
|
|
6155
6156
|
}
|
|
6156
6157
|
}
|
|
6157
|
-
class
|
|
6158
|
+
class Oo extends Ge {
|
|
6158
6159
|
constructor(t) {
|
|
6159
6160
|
super(t.children, (0, Ot.EL)(), t.anchor);
|
|
6160
6161
|
}
|
|
@@ -6164,12 +6165,12 @@ Actual: ` + T.attribValue);
|
|
|
6164
6165
|
super("w:externalHyperlink"), this.options = t;
|
|
6165
6166
|
}
|
|
6166
6167
|
}
|
|
6167
|
-
class
|
|
6168
|
+
class ko extends i {
|
|
6168
6169
|
constructor() {
|
|
6169
6170
|
super(...arguments), this.xmlKeys = { id: "w:id", name: "w:name" };
|
|
6170
6171
|
}
|
|
6171
6172
|
}
|
|
6172
|
-
class
|
|
6173
|
+
class Lo extends i {
|
|
6173
6174
|
constructor() {
|
|
6174
6175
|
super(...arguments), this.xmlKeys = { id: "w:id" };
|
|
6175
6176
|
}
|
|
@@ -6183,14 +6184,14 @@ Actual: ` + T.attribValue);
|
|
|
6183
6184
|
class $r extends r {
|
|
6184
6185
|
constructor(t, f) {
|
|
6185
6186
|
super("w:bookmarkStart");
|
|
6186
|
-
const H = new
|
|
6187
|
+
const H = new ko({ name: t, id: f });
|
|
6187
6188
|
this.root.push(H);
|
|
6188
6189
|
}
|
|
6189
6190
|
}
|
|
6190
6191
|
class Xr extends r {
|
|
6191
6192
|
constructor(t) {
|
|
6192
6193
|
super("w:bookmarkEnd");
|
|
6193
|
-
const f = new
|
|
6194
|
+
const f = new Lo({ id: t });
|
|
6194
6195
|
this.root.push(f);
|
|
6195
6196
|
}
|
|
6196
6197
|
}
|
|
@@ -6199,16 +6200,16 @@ Actual: ` + T.attribValue);
|
|
|
6199
6200
|
super("w:outlineLvl"), this.level = t, this.root.push(new l({ val: t }));
|
|
6200
6201
|
}
|
|
6201
6202
|
}
|
|
6202
|
-
class
|
|
6203
|
+
class Do extends r {
|
|
6203
6204
|
constructor(t, f = {}) {
|
|
6204
6205
|
super("w:instrText"), this.root.push(new L({ space: d.PRESERVE }));
|
|
6205
6206
|
let H = `PAGEREF ${t}`;
|
|
6206
6207
|
f.hyperlink && (H = `${H} \\h`), f.useRelativePosition && (H = `${H} \\p`), this.root.push(H);
|
|
6207
6208
|
}
|
|
6208
6209
|
}
|
|
6209
|
-
class
|
|
6210
|
+
class Po extends Bt {
|
|
6210
6211
|
constructor(t, f = {}) {
|
|
6211
|
-
super({ children: [new T(!0), new
|
|
6212
|
+
super({ children: [new T(!0), new Do(t, f), new v()] });
|
|
6212
6213
|
}
|
|
6213
6214
|
}
|
|
6214
6215
|
(function(e) {
|
|
@@ -6227,7 +6228,7 @@ Actual: ` + T.attribValue);
|
|
|
6227
6228
|
(function(e) {
|
|
6228
6229
|
e.DEFAULT = "default", e.FIRST = "first", e.EVEN = "even";
|
|
6229
6230
|
})(Wt || (Wt = {}));
|
|
6230
|
-
class
|
|
6231
|
+
class Fo extends i {
|
|
6231
6232
|
constructor() {
|
|
6232
6233
|
super(...arguments), this.xmlKeys = { type: "w:type", id: "r:id" };
|
|
6233
6234
|
}
|
|
@@ -6237,7 +6238,7 @@ Actual: ` + T.attribValue);
|
|
|
6237
6238
|
})(ae || (ae = {}));
|
|
6238
6239
|
class xe extends r {
|
|
6239
6240
|
constructor(t, f) {
|
|
6240
|
-
super(t), this.root.push(new
|
|
6241
|
+
super(t), this.root.push(new Fo({ type: f.type || Wt.DEFAULT, id: `rId${f.id}` }));
|
|
6241
6242
|
}
|
|
6242
6243
|
}
|
|
6243
6244
|
class Yr extends i {
|
|
@@ -6335,14 +6336,14 @@ Actual: ` + T.attribValue);
|
|
|
6335
6336
|
(function(e) {
|
|
6336
6337
|
e.LEFT_TO_RIGHT_TOP_TO_BOTTOM = "lrTb", e.TOP_TO_BOTTOM_RIGHT_TO_LEFT = "tbRl";
|
|
6337
6338
|
})(He || (He = {}));
|
|
6338
|
-
class
|
|
6339
|
+
class Bo extends i {
|
|
6339
6340
|
constructor() {
|
|
6340
6341
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6341
6342
|
}
|
|
6342
6343
|
}
|
|
6343
6344
|
class pn extends r {
|
|
6344
6345
|
constructor(t) {
|
|
6345
|
-
super("w:textDirection"), this.root.push(new
|
|
6346
|
+
super("w:textDirection"), this.root.push(new Bo({ val: t }));
|
|
6346
6347
|
}
|
|
6347
6348
|
}
|
|
6348
6349
|
(function(e) {
|
|
@@ -6360,8 +6361,8 @@ Actual: ` + T.attribValue);
|
|
|
6360
6361
|
}
|
|
6361
6362
|
const Gt = { TOP: "1in", RIGHT: "1in", BOTTOM: "1in", LEFT: "1in", HEADER: 708, FOOTER: 708, GUTTER: 0 }, ve = { WIDTH: 11906, HEIGHT: 16838, ORIENTATION: ce.PORTRAIT };
|
|
6362
6363
|
class mn extends r {
|
|
6363
|
-
constructor({ page: { size: { width: t = ve.WIDTH, height: f = ve.HEIGHT, orientation: H = ve.ORIENTATION } = {}, margin: { top: J = Gt.TOP, right: tt = Gt.RIGHT, bottom: ut = Gt.BOTTOM, left: dt = Gt.LEFT, header:
|
|
6364
|
-
super("w:sectPr"), this.addHeaderFooterGroup(ae.HEADER,
|
|
6364
|
+
constructor({ page: { size: { width: t = ve.WIDTH, height: f = ve.HEIGHT, orientation: H = ve.ORIENTATION } = {}, margin: { top: J = Gt.TOP, right: tt = Gt.RIGHT, bottom: ut = Gt.BOTTOM, left: dt = Gt.LEFT, header: vt = Gt.HEADER, footer: pt = Gt.FOOTER, gutter: gt = Gt.GUTTER } = {}, pageNumbers: Lt = {}, borders: St, textDirection: Dt } = {}, grid: { linePitch: zt = 360, charSpace: Pt, type: Kt } = {}, headerWrapperGroup: rc = {}, footerWrapperGroup: nc = {}, lineNumbers: us, titlePage: ls, verticalAlign: hs, column: ps, type: ds } = {}) {
|
|
6365
|
+
super("w:sectPr"), this.addHeaderFooterGroup(ae.HEADER, rc), this.addHeaderFooterGroup(ae.FOOTER, nc), ds && this.root.push(new fn(ds)), this.root.push(new hn(t, f, H)), this.root.push(new an(J, tt, ut, dt, vt, pt, gt)), St && this.root.push(new sn(St)), us && this.root.push(new rn(us)), this.root.push(new un(Lt)), ps && this.root.push(new Jr(ps)), hs && this.root.push(new Ve(hs)), ls !== void 0 && this.root.push(new B("w:titlePg", ls)), Dt && this.root.push(new pn(Dt)), this.root.push(new tn(zt, Pt, Kt));
|
|
6365
6366
|
}
|
|
6366
6367
|
addHeaderFooterGroup(t, f) {
|
|
6367
6368
|
f.default && this.root.push(new xe(t, { type: Wt.DEFAULT, id: f.default.View.ReferenceId })), f.first && this.root.push(new xe(t, { type: Wt.FIRST, id: f.first.View.ReferenceId })), f.even && this.root.push(new xe(t, { type: Wt.EVEN, id: f.even.View.ReferenceId }));
|
|
@@ -6391,7 +6392,7 @@ Actual: ` + T.attribValue);
|
|
|
6391
6392
|
super(...arguments), this.xmlKeys = { width: "w:w", space: "w:space" };
|
|
6392
6393
|
}
|
|
6393
6394
|
}
|
|
6394
|
-
class
|
|
6395
|
+
class Mo extends r {
|
|
6395
6396
|
constructor({ width: t, space: f }) {
|
|
6396
6397
|
super("w:col"), this.root.push(new wn({ width: (0, n.Jd)(t), space: f === void 0 ? void 0 : (0, n.Jd)(f) }));
|
|
6397
6398
|
}
|
|
@@ -6411,7 +6412,7 @@ Actual: ` + T.attribValue);
|
|
|
6411
6412
|
super("w:background"), this.root.push(new yn({ color: t.color === void 0 ? void 0 : (0, n.dg)(t.color), themeColor: t.themeColor, themeShade: t.themeShade === void 0 ? void 0 : (0, n.xD)(t.themeShade), themeTint: t.themeTint === void 0 ? void 0 : (0, n.xD)(t.themeTint) }));
|
|
6412
6413
|
}
|
|
6413
6414
|
}
|
|
6414
|
-
class
|
|
6415
|
+
class Uo extends r {
|
|
6415
6416
|
constructor(t) {
|
|
6416
6417
|
super("w:document"), this.root.push(new Qt({ wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", o: "urn:schemas-microsoft-com:office:office", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", m: "http://schemas.openxmlformats.org/officeDocument/2006/math", v: "urn:schemas-microsoft-com:vml", wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", w10: "urn:schemas-microsoft-com:office:word", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", cx: "http://schemas.microsoft.com/office/drawing/2014/chartex", cx1: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex", cx2: "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex", cx3: "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex", cx4: "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex", cx5: "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex", cx6: "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex", cx7: "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex", cx8: "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex", aink: "http://schemas.microsoft.com/office/drawing/2016/ink", am3d: "http://schemas.microsoft.com/office/drawing/2017/model3d", w16cex: "http://schemas.microsoft.com/office/word/2018/wordml/cex", w16cid: "http://schemas.microsoft.com/office/word/2016/wordml/cid", w16: "http://schemas.microsoft.com/office/word/2018/wordml", w16sdtdh: "http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash", w16se: "http://schemas.microsoft.com/office/word/2015/wordml/symex", Ignorable: "w14 w15 wp14" })), this.body = new gn(), t.background && this.root.push(new bn(t.background)), this.root.push(this.body);
|
|
6417
6418
|
}
|
|
@@ -6422,20 +6423,20 @@ Actual: ` + T.attribValue);
|
|
|
6422
6423
|
return this.body;
|
|
6423
6424
|
}
|
|
6424
6425
|
}
|
|
6425
|
-
class
|
|
6426
|
+
class Ho extends i {
|
|
6426
6427
|
constructor() {
|
|
6427
6428
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns" };
|
|
6428
6429
|
}
|
|
6429
6430
|
}
|
|
6430
6431
|
class le extends r {
|
|
6431
6432
|
constructor() {
|
|
6432
|
-
super("Relationships"), this.root.push(new
|
|
6433
|
+
super("Relationships"), this.root.push(new Ho({ xmlns: "http://schemas.openxmlformats.org/package/2006/relationships" }));
|
|
6433
6434
|
}
|
|
6434
6435
|
addRelationship(t) {
|
|
6435
6436
|
this.root.push(t);
|
|
6436
6437
|
}
|
|
6437
6438
|
createRelationship(t, f, H, J) {
|
|
6438
|
-
const tt = new
|
|
6439
|
+
const tt = new No(`rId${t}`, f, H, J);
|
|
6439
6440
|
return this.addRelationship(tt), tt;
|
|
6440
6441
|
}
|
|
6441
6442
|
get RelationshipCount() {
|
|
@@ -6444,7 +6445,7 @@ Actual: ` + T.attribValue);
|
|
|
6444
6445
|
}
|
|
6445
6446
|
class xn {
|
|
6446
6447
|
constructor(t) {
|
|
6447
|
-
this.document = new
|
|
6448
|
+
this.document = new Uo(t), this.relationships = new le();
|
|
6448
6449
|
}
|
|
6449
6450
|
get View() {
|
|
6450
6451
|
return this.document;
|
|
@@ -6453,14 +6454,14 @@ Actual: ` + T.attribValue);
|
|
|
6453
6454
|
return this.relationships;
|
|
6454
6455
|
}
|
|
6455
6456
|
}
|
|
6456
|
-
class
|
|
6457
|
+
class zo extends i {
|
|
6457
6458
|
constructor() {
|
|
6458
6459
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6459
6460
|
}
|
|
6460
6461
|
}
|
|
6461
|
-
class
|
|
6462
|
+
class Wo extends r {
|
|
6462
6463
|
constructor() {
|
|
6463
|
-
super("w:wordWrap"), this.root.push(new
|
|
6464
|
+
super("w:wordWrap"), this.root.push(new zo({ val: 0 }));
|
|
6464
6465
|
}
|
|
6465
6466
|
}
|
|
6466
6467
|
var $e, Xe, qe;
|
|
@@ -6486,7 +6487,7 @@ Actual: ` + T.attribValue);
|
|
|
6486
6487
|
constructor(t) {
|
|
6487
6488
|
var f, H;
|
|
6488
6489
|
if (super("w:pPr"), this.numberingReferences = [], !t) return this;
|
|
6489
|
-
t.heading && this.push(new ue(t.heading)), t.bullet && this.push(new ue("ListParagraph")), t.numbering && (t.style || t.heading || t.numbering.custom || this.push(new ue("ListParagraph"))), t.style && this.push(new ue(t.style)), t.keepNext !== void 0 && this.push(new B("w:keepNext", t.keepNext)), t.keepLines !== void 0 && this.push(new B("w:keepLines", t.keepLines)), t.pageBreakBefore && this.push(new Hr()), t.frame && this.push(new _n(t.frame)), t.widowControl !== void 0 && this.push(new B("w:widowControl", t.widowControl)), t.bullet && this.push(new Ke(1, t.bullet.level)), t.numbering && (this.numberingReferences.push({ reference: t.numbering.reference, instance: (f = t.numbering.instance) !== null && f !== void 0 ? f : 0 }), this.push(new Ke(`${t.numbering.reference}-${(H = t.numbering.instance) !== null && H !== void 0 ? H : 0}`, t.numbering.level))), t.border && this.push(new q(t.border)), t.thematicBreak && this.push(new F()), t.shading && this.push(new it(t.shading)), t.wordWrap && this.push(new
|
|
6490
|
+
t.heading && this.push(new ue(t.heading)), t.bullet && this.push(new ue("ListParagraph")), t.numbering && (t.style || t.heading || t.numbering.custom || this.push(new ue("ListParagraph"))), t.style && this.push(new ue(t.style)), t.keepNext !== void 0 && this.push(new B("w:keepNext", t.keepNext)), t.keepLines !== void 0 && this.push(new B("w:keepLines", t.keepLines)), t.pageBreakBefore && this.push(new Hr()), t.frame && this.push(new _n(t.frame)), t.widowControl !== void 0 && this.push(new B("w:widowControl", t.widowControl)), t.bullet && this.push(new Ke(1, t.bullet.level)), t.numbering && (this.numberingReferences.push({ reference: t.numbering.reference, instance: (f = t.numbering.instance) !== null && f !== void 0 ? f : 0 }), this.push(new Ke(`${t.numbering.reference}-${(H = t.numbering.instance) !== null && H !== void 0 ? H : 0}`, t.numbering.level))), t.border && this.push(new q(t.border)), t.thematicBreak && this.push(new F()), t.shading && this.push(new it(t.shading)), t.wordWrap && this.push(new Wo());
|
|
6490
6491
|
const J = [...t.rightTabStop ? [{ type: ie.RIGHT, position: t.rightTabStop }] : [], ...t.tabStops ? t.tabStops : [], ...t.leftTabStop ? [{ type: ie.LEFT, position: t.leftTabStop }] : []];
|
|
6491
6492
|
J.length > 0 && this.push(new Wr(J)), t.bidirectional !== void 0 && this.push(new B("w:bidi", t.bidirectional)), t.spacing && this.push(new zr(t.spacing)), t.indent && this.push(new V(t.indent)), t.contextualSpacing !== void 0 && this.push(new B("w:contextualSpacing", t.contextualSpacing)), t.alignment && this.push(new A(t.alignment)), t.outlineLevel !== void 0 && this.push(new qr(t.outlineLevel)), t.suppressLineNumbers !== void 0 && this.push(new B("w:suppressLineNumbers", t.suppressLineNumbers));
|
|
6492
6493
|
}
|
|
@@ -6518,20 +6519,20 @@ Actual: ` + T.attribValue);
|
|
|
6518
6519
|
return this.root.splice(1, 0, t), this;
|
|
6519
6520
|
}
|
|
6520
6521
|
}
|
|
6521
|
-
class
|
|
6522
|
+
class jo extends r {
|
|
6522
6523
|
constructor(t) {
|
|
6523
6524
|
super("m:oMath");
|
|
6524
6525
|
for (const f of t.children) this.root.push(f);
|
|
6525
6526
|
}
|
|
6526
6527
|
}
|
|
6527
|
-
class
|
|
6528
|
+
class Ko extends r {
|
|
6528
6529
|
constructor(t) {
|
|
6529
6530
|
super("m:t"), this.root.push(t);
|
|
6530
6531
|
}
|
|
6531
6532
|
}
|
|
6532
|
-
class
|
|
6533
|
+
class Go extends r {
|
|
6533
6534
|
constructor(t) {
|
|
6534
|
-
super("m:r"), this.root.push(new
|
|
6535
|
+
super("m:r"), this.root.push(new Ko(t));
|
|
6535
6536
|
}
|
|
6536
6537
|
}
|
|
6537
6538
|
class En extends r {
|
|
@@ -6546,19 +6547,19 @@ Actual: ` + T.attribValue);
|
|
|
6546
6547
|
for (const f of t) this.root.push(f);
|
|
6547
6548
|
}
|
|
6548
6549
|
}
|
|
6549
|
-
class
|
|
6550
|
+
class Vo extends r {
|
|
6550
6551
|
constructor(t) {
|
|
6551
6552
|
super("m:f"), this.root.push(new Tn(t.numerator)), this.root.push(new En(t.denominator));
|
|
6552
6553
|
}
|
|
6553
6554
|
}
|
|
6554
|
-
class
|
|
6555
|
+
class $o extends i {
|
|
6555
6556
|
constructor() {
|
|
6556
6557
|
super(...arguments), this.xmlKeys = { accent: "m:val" };
|
|
6557
6558
|
}
|
|
6558
6559
|
}
|
|
6559
6560
|
class An extends r {
|
|
6560
6561
|
constructor(t) {
|
|
6561
|
-
super("m:chr"), this.root.push(new
|
|
6562
|
+
super("m:chr"), this.root.push(new $o({ accent: t }));
|
|
6562
6563
|
}
|
|
6563
6564
|
}
|
|
6564
6565
|
class Mt extends r {
|
|
@@ -6567,39 +6568,39 @@ Actual: ` + T.attribValue);
|
|
|
6567
6568
|
for (const f of t) this.root.push(f);
|
|
6568
6569
|
}
|
|
6569
6570
|
}
|
|
6570
|
-
class
|
|
6571
|
+
class Xo extends i {
|
|
6571
6572
|
constructor() {
|
|
6572
6573
|
super(...arguments), this.xmlKeys = { value: "m:val" };
|
|
6573
6574
|
}
|
|
6574
6575
|
}
|
|
6575
6576
|
class Sn extends r {
|
|
6576
6577
|
constructor() {
|
|
6577
|
-
super("m:limLoc"), this.root.push(new
|
|
6578
|
+
super("m:limLoc"), this.root.push(new Xo({ value: "undOvr" }));
|
|
6578
6579
|
}
|
|
6579
6580
|
}
|
|
6580
|
-
class
|
|
6581
|
+
class qo extends i {
|
|
6581
6582
|
constructor() {
|
|
6582
6583
|
super(...arguments), this.xmlKeys = { hide: "m:val" };
|
|
6583
6584
|
}
|
|
6584
6585
|
}
|
|
6585
|
-
class
|
|
6586
|
+
class Zo extends r {
|
|
6586
6587
|
constructor() {
|
|
6587
|
-
super("m:subHide"), this.root.push(new
|
|
6588
|
+
super("m:subHide"), this.root.push(new qo({ hide: 1 }));
|
|
6588
6589
|
}
|
|
6589
6590
|
}
|
|
6590
|
-
class
|
|
6591
|
+
class Yo extends i {
|
|
6591
6592
|
constructor() {
|
|
6592
6593
|
super(...arguments), this.xmlKeys = { hide: "m:val" };
|
|
6593
6594
|
}
|
|
6594
6595
|
}
|
|
6595
|
-
class
|
|
6596
|
+
class Jo extends r {
|
|
6596
6597
|
constructor() {
|
|
6597
|
-
super("m:supHide"), this.root.push(new
|
|
6598
|
+
super("m:supHide"), this.root.push(new Yo({ hide: 1 }));
|
|
6598
6599
|
}
|
|
6599
6600
|
}
|
|
6600
6601
|
class Ze extends r {
|
|
6601
6602
|
constructor(t, f, H) {
|
|
6602
|
-
super("m:naryPr"), t && this.root.push(new An(t)), this.root.push(new Sn()), f || this.root.push(new
|
|
6603
|
+
super("m:naryPr"), t && this.root.push(new An(t)), this.root.push(new Sn()), f || this.root.push(new Jo()), H || this.root.push(new Zo());
|
|
6603
6604
|
}
|
|
6604
6605
|
}
|
|
6605
6606
|
class te extends r {
|
|
@@ -6614,12 +6615,12 @@ Actual: ` + T.attribValue);
|
|
|
6614
6615
|
for (const f of t) this.root.push(f);
|
|
6615
6616
|
}
|
|
6616
6617
|
}
|
|
6617
|
-
class
|
|
6618
|
+
class Qo extends r {
|
|
6618
6619
|
constructor(t) {
|
|
6619
6620
|
super("m:nary"), this.root.push(new Ze("∑", !!t.superScript, !!t.subScript)), t.subScript && this.root.push(new te(t.subScript)), t.superScript && this.root.push(new ee(t.superScript)), this.root.push(new Mt(t.children));
|
|
6620
6621
|
}
|
|
6621
6622
|
}
|
|
6622
|
-
class
|
|
6623
|
+
class ti extends r {
|
|
6623
6624
|
constructor(t) {
|
|
6624
6625
|
super("m:nary"), this.root.push(new Ze("", !!t.superScript, !!t.subScript)), t.subScript && this.root.push(new te(t.subScript)), t.superScript && this.root.push(new ee(t.superScript)), this.root.push(new Mt(t.children));
|
|
6625
6626
|
}
|
|
@@ -6629,7 +6630,7 @@ Actual: ` + T.attribValue);
|
|
|
6629
6630
|
super("m:sSupPr");
|
|
6630
6631
|
}
|
|
6631
6632
|
}
|
|
6632
|
-
class
|
|
6633
|
+
class ei extends r {
|
|
6633
6634
|
constructor(t) {
|
|
6634
6635
|
super("m:sSup"), this.root.push(new In()), this.root.push(new Mt(t.children)), this.root.push(new ee(t.superScript));
|
|
6635
6636
|
}
|
|
@@ -6639,7 +6640,7 @@ Actual: ` + T.attribValue);
|
|
|
6639
6640
|
super("m:sSubPr");
|
|
6640
6641
|
}
|
|
6641
6642
|
}
|
|
6642
|
-
class
|
|
6643
|
+
class ri extends r {
|
|
6643
6644
|
constructor(t) {
|
|
6644
6645
|
super("m:sSub"), this.root.push(new Rn()), this.root.push(new Mt(t.children)), this.root.push(new te(t.subScript));
|
|
6645
6646
|
}
|
|
@@ -6649,7 +6650,7 @@ Actual: ` + T.attribValue);
|
|
|
6649
6650
|
super("m:sSubSupPr");
|
|
6650
6651
|
}
|
|
6651
6652
|
}
|
|
6652
|
-
class
|
|
6653
|
+
class ni extends r {
|
|
6653
6654
|
constructor(t) {
|
|
6654
6655
|
super("m:sSubSup"), this.root.push(new Nn()), this.root.push(new Mt(t.children)), this.root.push(new te(t.subScript)), this.root.push(new ee(t.superScript));
|
|
6655
6656
|
}
|
|
@@ -6659,33 +6660,33 @@ Actual: ` + T.attribValue);
|
|
|
6659
6660
|
super("m:sPrePr");
|
|
6660
6661
|
}
|
|
6661
6662
|
}
|
|
6662
|
-
class
|
|
6663
|
+
class si extends r {
|
|
6663
6664
|
constructor(t) {
|
|
6664
6665
|
super("m:sPre"), this.root.push(new Cn()), this.root.push(new Mt(t.children)), this.root.push(new te(t.subScript)), this.root.push(new ee(t.superScript));
|
|
6665
6666
|
}
|
|
6666
6667
|
}
|
|
6667
|
-
const
|
|
6668
|
+
const oi = "";
|
|
6668
6669
|
class On extends r {
|
|
6669
6670
|
constructor(t) {
|
|
6670
6671
|
if (super("m:deg"), t) for (const f of t) this.root.push(f);
|
|
6671
6672
|
}
|
|
6672
6673
|
}
|
|
6673
|
-
class
|
|
6674
|
+
class ii extends i {
|
|
6674
6675
|
constructor() {
|
|
6675
6676
|
super(...arguments), this.xmlKeys = { hide: "m:val" };
|
|
6676
6677
|
}
|
|
6677
6678
|
}
|
|
6678
|
-
class
|
|
6679
|
+
class ai extends r {
|
|
6679
6680
|
constructor() {
|
|
6680
|
-
super("m:degHide"), this.root.push(new
|
|
6681
|
+
super("m:degHide"), this.root.push(new ii({ hide: 1 }));
|
|
6681
6682
|
}
|
|
6682
6683
|
}
|
|
6683
6684
|
class kn extends r {
|
|
6684
6685
|
constructor(t) {
|
|
6685
|
-
super("m:radPr"), t || this.root.push(new
|
|
6686
|
+
super("m:radPr"), t || this.root.push(new ai());
|
|
6686
6687
|
}
|
|
6687
6688
|
}
|
|
6688
|
-
class
|
|
6689
|
+
class ci extends r {
|
|
6689
6690
|
constructor(t) {
|
|
6690
6691
|
super("m:rad"), this.root.push(new kn(!!t.degree)), this.root.push(new On(t.degree)), this.root.push(new Mt(t.children));
|
|
6691
6692
|
}
|
|
@@ -6701,77 +6702,77 @@ Actual: ` + T.attribValue);
|
|
|
6701
6702
|
super("m:funcPr");
|
|
6702
6703
|
}
|
|
6703
6704
|
}
|
|
6704
|
-
class
|
|
6705
|
+
class ui extends r {
|
|
6705
6706
|
constructor(t) {
|
|
6706
6707
|
super("m:func"), this.root.push(new Dn()), this.root.push(new Ln(t.name)), this.root.push(new Mt(t.children));
|
|
6707
6708
|
}
|
|
6708
6709
|
}
|
|
6709
|
-
class
|
|
6710
|
+
class li extends i {
|
|
6710
6711
|
constructor() {
|
|
6711
6712
|
super(...arguments), this.xmlKeys = { character: "m:val" };
|
|
6712
6713
|
}
|
|
6713
6714
|
}
|
|
6714
|
-
class
|
|
6715
|
+
class hi extends r {
|
|
6715
6716
|
constructor(t) {
|
|
6716
|
-
super("m:begChr"), this.root.push(new
|
|
6717
|
+
super("m:begChr"), this.root.push(new li({ character: t }));
|
|
6717
6718
|
}
|
|
6718
6719
|
}
|
|
6719
|
-
class
|
|
6720
|
+
class pi extends i {
|
|
6720
6721
|
constructor() {
|
|
6721
6722
|
super(...arguments), this.xmlKeys = { character: "m:val" };
|
|
6722
6723
|
}
|
|
6723
6724
|
}
|
|
6724
|
-
class
|
|
6725
|
+
class di extends r {
|
|
6725
6726
|
constructor(t) {
|
|
6726
|
-
super("m:endChr"), this.root.push(new
|
|
6727
|
+
super("m:endChr"), this.root.push(new pi({ character: t }));
|
|
6727
6728
|
}
|
|
6728
6729
|
}
|
|
6729
6730
|
class _e extends r {
|
|
6730
6731
|
constructor(t) {
|
|
6731
|
-
super("m:dPr"), t && (this.root.push(new
|
|
6732
|
+
super("m:dPr"), t && (this.root.push(new hi(t.beginningCharacter)), this.root.push(new di(t.endingCharacter)));
|
|
6732
6733
|
}
|
|
6733
6734
|
}
|
|
6734
|
-
class
|
|
6735
|
+
class fi extends r {
|
|
6735
6736
|
constructor(t) {
|
|
6736
6737
|
super("m:d"), this.root.push(new _e()), this.root.push(new Mt(t.children));
|
|
6737
6738
|
}
|
|
6738
6739
|
}
|
|
6739
|
-
class
|
|
6740
|
+
class mi extends r {
|
|
6740
6741
|
constructor(t) {
|
|
6741
6742
|
super("m:d"), this.root.push(new _e({ beginningCharacter: "[", endingCharacter: "]" })), this.root.push(new Mt(t.children));
|
|
6742
6743
|
}
|
|
6743
6744
|
}
|
|
6744
|
-
class
|
|
6745
|
+
class gi extends r {
|
|
6745
6746
|
constructor(t) {
|
|
6746
6747
|
super("m:d"), this.root.push(new _e({ beginningCharacter: "{", endingCharacter: "}" })), this.root.push(new Mt(t.children));
|
|
6747
6748
|
}
|
|
6748
6749
|
}
|
|
6749
|
-
class
|
|
6750
|
+
class wi extends r {
|
|
6750
6751
|
constructor(t) {
|
|
6751
6752
|
super("m:d"), this.root.push(new _e({ beginningCharacter: "〈", endingCharacter: "〉" })), this.root.push(new Mt(t.children));
|
|
6752
6753
|
}
|
|
6753
6754
|
}
|
|
6754
|
-
class
|
|
6755
|
+
class yi extends r {
|
|
6755
6756
|
constructor(t) {
|
|
6756
6757
|
super("w:tblGrid");
|
|
6757
|
-
for (const f of t) this.root.push(new
|
|
6758
|
+
for (const f of t) this.root.push(new xi(f));
|
|
6758
6759
|
}
|
|
6759
6760
|
}
|
|
6760
|
-
class
|
|
6761
|
+
class bi extends i {
|
|
6761
6762
|
constructor() {
|
|
6762
6763
|
super(...arguments), this.xmlKeys = { w: "w:w" };
|
|
6763
6764
|
}
|
|
6764
6765
|
}
|
|
6765
|
-
class
|
|
6766
|
+
class xi extends r {
|
|
6766
6767
|
constructor(t) {
|
|
6767
|
-
super("w:gridCol"), t !== void 0 && this.root.push(new
|
|
6768
|
+
super("w:gridCol"), t !== void 0 && this.root.push(new bi({ w: (0, n.Jd)(t) }));
|
|
6768
6769
|
}
|
|
6769
6770
|
}
|
|
6770
6771
|
var re, Ee, he, Ye;
|
|
6771
6772
|
(function(e) {
|
|
6772
6773
|
e.AUTO = "auto", e.DXA = "dxa", e.NIL = "nil", e.PERCENTAGE = "pct";
|
|
6773
6774
|
})(re || (re = {}));
|
|
6774
|
-
class
|
|
6775
|
+
class vi extends i {
|
|
6775
6776
|
constructor() {
|
|
6776
6777
|
super(...arguments), this.xmlKeys = { type: "w:type", size: "w:w" };
|
|
6777
6778
|
}
|
|
@@ -6780,7 +6781,7 @@ Actual: ` + T.attribValue);
|
|
|
6780
6781
|
constructor(t, { type: f = re.AUTO, size: H }) {
|
|
6781
6782
|
super(t);
|
|
6782
6783
|
let J = H;
|
|
6783
|
-
f === re.PERCENTAGE && typeof H == "number" && (J = `${H}%`), this.root.push(new
|
|
6784
|
+
f === re.PERCENTAGE && typeof H == "number" && (J = `${H}%`), this.root.push(new vi({ type: f, size: (0, n.aB)(J) }));
|
|
6784
6785
|
}
|
|
6785
6786
|
}
|
|
6786
6787
|
(function(e) {
|
|
@@ -6796,50 +6797,50 @@ Actual: ` + T.attribValue);
|
|
|
6796
6797
|
super("w:tcBorders"), t.top && this.root.push(new U("w:top", t.top)), t.start && this.root.push(new U("w:start", t.start)), t.left && this.root.push(new U("w:left", t.left)), t.bottom && this.root.push(new U("w:bottom", t.bottom)), t.end && this.root.push(new U("w:end", t.end)), t.right && this.root.push(new U("w:right", t.right));
|
|
6797
6798
|
}
|
|
6798
6799
|
}
|
|
6799
|
-
class
|
|
6800
|
+
class _i extends i {
|
|
6800
6801
|
constructor() {
|
|
6801
6802
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6802
6803
|
}
|
|
6803
6804
|
}
|
|
6804
6805
|
class Bn extends r {
|
|
6805
6806
|
constructor(t) {
|
|
6806
|
-
super("w:gridSpan"), this.root.push(new
|
|
6807
|
+
super("w:gridSpan"), this.root.push(new _i({ val: (0, n.vH)(t) }));
|
|
6807
6808
|
}
|
|
6808
6809
|
}
|
|
6809
6810
|
(function(e) {
|
|
6810
6811
|
e.CONTINUE = "continue", e.RESTART = "restart";
|
|
6811
6812
|
})(he || (he = {}));
|
|
6812
|
-
class
|
|
6813
|
+
class Ei extends i {
|
|
6813
6814
|
constructor() {
|
|
6814
6815
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6815
6816
|
}
|
|
6816
6817
|
}
|
|
6817
6818
|
class Je extends r {
|
|
6818
6819
|
constructor(t) {
|
|
6819
|
-
super("w:vMerge"), this.root.push(new
|
|
6820
|
+
super("w:vMerge"), this.root.push(new Ei({ val: t }));
|
|
6820
6821
|
}
|
|
6821
6822
|
}
|
|
6822
6823
|
(function(e) {
|
|
6823
6824
|
e.BOTTOM_TO_TOP_LEFT_TO_RIGHT = "btLr", e.LEFT_TO_RIGHT_TOP_TO_BOTTOM = "lrTb", e.TOP_TO_BOTTOM_RIGHT_TO_LEFT = "tbRl";
|
|
6824
6825
|
})(Ye || (Ye = {}));
|
|
6825
|
-
class
|
|
6826
|
+
class Ti extends i {
|
|
6826
6827
|
constructor() {
|
|
6827
6828
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
6828
6829
|
}
|
|
6829
6830
|
}
|
|
6830
6831
|
class Mn extends r {
|
|
6831
6832
|
constructor(t) {
|
|
6832
|
-
super("w:textDirection"), this.root.push(new
|
|
6833
|
+
super("w:textDirection"), this.root.push(new Ti({ val: t }));
|
|
6833
6834
|
}
|
|
6834
6835
|
}
|
|
6835
|
-
class
|
|
6836
|
+
class Ai extends a {
|
|
6836
6837
|
constructor(t) {
|
|
6837
6838
|
super("w:tcPr"), t.width && this.root.push(new Vt("w:tcW", t.width)), t.columnSpan && this.root.push(new Bn(t.columnSpan)), t.verticalMerge ? this.root.push(new Je(t.verticalMerge)) : t.rowSpan && t.rowSpan > 1 && this.root.push(new Je(he.RESTART)), t.borders && this.root.push(new Fn(t.borders)), t.shading && this.root.push(new it(t.shading)), t.margins && this.root.push(new Pn(Ee.TABLE_CELL, t.margins)), t.textDirection && this.root.push(new Mn(t.textDirection)), t.verticalAlign && this.root.push(new Ve(t.verticalAlign));
|
|
6838
6839
|
}
|
|
6839
6840
|
}
|
|
6840
6841
|
class Qe extends r {
|
|
6841
6842
|
constructor(t) {
|
|
6842
|
-
super("w:tc"), this.options = t, this.root.push(new
|
|
6843
|
+
super("w:tc"), this.options = t, this.root.push(new Ai(t));
|
|
6843
6844
|
for (const f of t.children) this.root.push(f);
|
|
6844
6845
|
}
|
|
6845
6846
|
prepForXml(t) {
|
|
@@ -6870,7 +6871,7 @@ Actual: ` + T.attribValue);
|
|
|
6870
6871
|
}
|
|
6871
6872
|
class Hn extends r {
|
|
6872
6873
|
constructor(t) {
|
|
6873
|
-
var { leftFromText: f, rightFromText: H, topFromText: J, bottomFromText: tt, absoluteHorizontalPosition: ut, absoluteVerticalPosition: dt } = t,
|
|
6874
|
+
var { leftFromText: f, rightFromText: H, topFromText: J, bottomFromText: tt, absoluteHorizontalPosition: ut, absoluteVerticalPosition: dt } = t, vt = (function(pt, gt) {
|
|
6874
6875
|
var Lt = {};
|
|
6875
6876
|
for (var St in pt) Object.prototype.hasOwnProperty.call(pt, St) && gt.indexOf(St) < 0 && (Lt[St] = pt[St]);
|
|
6876
6877
|
if (pt != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
@@ -6879,20 +6880,20 @@ Actual: ` + T.attribValue);
|
|
|
6879
6880
|
}
|
|
6880
6881
|
return Lt;
|
|
6881
6882
|
})(t, ["leftFromText", "rightFromText", "topFromText", "bottomFromText", "absoluteHorizontalPosition", "absoluteVerticalPosition"]);
|
|
6882
|
-
super("w:tblpPr"), this.root.push(new Un(Object.assign({ leftFromText: f === void 0 ? void 0 : (0, n.Jd)(f), rightFromText: H === void 0 ? void 0 : (0, n.Jd)(H), topFromText: J === void 0 ? void 0 : (0, n.Jd)(J), bottomFromText: tt === void 0 ? void 0 : (0, n.Jd)(tt), absoluteHorizontalPosition: ut === void 0 ? void 0 : (0, n.xb)(ut), absoluteVerticalPosition: dt === void 0 ? void 0 : (0, n.xb)(dt) },
|
|
6883
|
+
super("w:tblpPr"), this.root.push(new Un(Object.assign({ leftFromText: f === void 0 ? void 0 : (0, n.Jd)(f), rightFromText: H === void 0 ? void 0 : (0, n.Jd)(H), topFromText: J === void 0 ? void 0 : (0, n.Jd)(J), bottomFromText: tt === void 0 ? void 0 : (0, n.Jd)(tt), absoluteHorizontalPosition: ut === void 0 ? void 0 : (0, n.xb)(ut), absoluteVerticalPosition: dt === void 0 ? void 0 : (0, n.xb)(dt) }, vt))), vt.overlap && this.root.push(new rt("w:tblOverlap", vt.overlap));
|
|
6883
6884
|
}
|
|
6884
6885
|
}
|
|
6885
6886
|
(function(e) {
|
|
6886
6887
|
e.AUTOFIT = "autofit", e.FIXED = "fixed";
|
|
6887
6888
|
})(or || (or = {}));
|
|
6888
|
-
class
|
|
6889
|
+
class Si extends i {
|
|
6889
6890
|
constructor() {
|
|
6890
6891
|
super(...arguments), this.xmlKeys = { type: "w:type" };
|
|
6891
6892
|
}
|
|
6892
6893
|
}
|
|
6893
6894
|
class zn extends r {
|
|
6894
6895
|
constructor(t) {
|
|
6895
|
-
super("w:tblLayout"), this.root.push(new
|
|
6896
|
+
super("w:tblLayout"), this.root.push(new Si({ type: t }));
|
|
6896
6897
|
}
|
|
6897
6898
|
}
|
|
6898
6899
|
class Wn extends a {
|
|
@@ -6900,9 +6901,9 @@ Actual: ` + T.attribValue);
|
|
|
6900
6901
|
super("w:tblPr"), t.style && this.root.push(new G("w:tblStyle", t.style)), t.float && this.root.push(new Hn(t.float)), t.visuallyRightToLeft !== void 0 && this.root.push(new B("w:bidiVisual", t.visuallyRightToLeft)), t.width && this.root.push(new Vt("w:tblW", t.width)), t.alignment && this.root.push(new A(t.alignment)), t.indent && this.root.push(new Vt("w:tblInd", t.indent)), t.borders && this.root.push(new tr(t.borders)), t.shading && this.root.push(new it(t.shading)), t.layout && this.root.push(new zn(t.layout)), t.cellMargin && this.root.push(new Pn(Ee.TABLE, t.cellMargin));
|
|
6901
6902
|
}
|
|
6902
6903
|
}
|
|
6903
|
-
class
|
|
6904
|
-
constructor({ rows: t, width: f, columnWidths: H = Array(Math.max(...t.map(((St) => St.CellCount)))).fill(100), margins: J, indent: tt, float: ut, layout: dt, style:
|
|
6905
|
-
super("w:tbl"), this.root.push(new Wn({ borders: pt ?? {}, width: f ?? { size: 100 }, indent: tt, float: ut, layout: dt, style:
|
|
6904
|
+
class Ii extends r {
|
|
6905
|
+
constructor({ rows: t, width: f, columnWidths: H = Array(Math.max(...t.map(((St) => St.CellCount)))).fill(100), margins: J, indent: tt, float: ut, layout: dt, style: vt, borders: pt, alignment: gt, visuallyRightToLeft: Lt }) {
|
|
6906
|
+
super("w:tbl"), this.root.push(new Wn({ borders: pt ?? {}, width: f ?? { size: 100 }, indent: tt, float: ut, layout: dt, style: vt, alignment: gt, cellMargin: J, visuallyRightToLeft: Lt })), this.root.push(new yi(H));
|
|
6906
6907
|
for (const St of t) this.root.push(St);
|
|
6907
6908
|
t.forEach(((St, Dt) => {
|
|
6908
6909
|
if (Dt === t.length - 1) return;
|
|
@@ -6935,7 +6936,7 @@ Actual: ` + T.attribValue);
|
|
|
6935
6936
|
super("w:trPr"), t.cantSplit !== void 0 && this.root.push(new B("w:cantSplit", t.cantSplit)), t.tableHeader !== void 0 && this.root.push(new B("w:tblHeader", t.tableHeader)), t.height && this.root.push(new Kn(t.height.value, t.height.rule));
|
|
6936
6937
|
}
|
|
6937
6938
|
}
|
|
6938
|
-
class
|
|
6939
|
+
class Ri extends r {
|
|
6939
6940
|
constructor(t) {
|
|
6940
6941
|
super("w:tr"), this.options = t, this.root.push(new Gn(t));
|
|
6941
6942
|
for (const f of t.children) this.root.push(f);
|
|
@@ -6973,44 +6974,44 @@ Actual: ` + T.attribValue);
|
|
|
6973
6974
|
return J - 1;
|
|
6974
6975
|
}
|
|
6975
6976
|
}
|
|
6976
|
-
class
|
|
6977
|
+
class Ni extends i {
|
|
6977
6978
|
constructor() {
|
|
6978
6979
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns", vt: "xmlns:vt" };
|
|
6979
6980
|
}
|
|
6980
6981
|
}
|
|
6981
|
-
class
|
|
6982
|
+
class Ci extends r {
|
|
6982
6983
|
constructor() {
|
|
6983
|
-
super("Properties"), this.root.push(new
|
|
6984
|
+
super("Properties"), this.root.push(new Ni({ xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties", vt: "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes" }));
|
|
6984
6985
|
}
|
|
6985
6986
|
}
|
|
6986
|
-
class
|
|
6987
|
+
class Oi extends i {
|
|
6987
6988
|
constructor() {
|
|
6988
6989
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns" };
|
|
6989
6990
|
}
|
|
6990
6991
|
}
|
|
6991
|
-
class
|
|
6992
|
+
class ki extends i {
|
|
6992
6993
|
constructor() {
|
|
6993
6994
|
super(...arguments), this.xmlKeys = { contentType: "ContentType", extension: "Extension" };
|
|
6994
6995
|
}
|
|
6995
6996
|
}
|
|
6996
6997
|
class Zt extends r {
|
|
6997
6998
|
constructor(t, f) {
|
|
6998
|
-
super("Default"), this.root.push(new
|
|
6999
|
+
super("Default"), this.root.push(new ki({ contentType: t, extension: f }));
|
|
6999
7000
|
}
|
|
7000
7001
|
}
|
|
7001
|
-
class
|
|
7002
|
+
class Li extends i {
|
|
7002
7003
|
constructor() {
|
|
7003
7004
|
super(...arguments), this.xmlKeys = { contentType: "ContentType", partName: "PartName" };
|
|
7004
7005
|
}
|
|
7005
7006
|
}
|
|
7006
7007
|
class Ht extends r {
|
|
7007
7008
|
constructor(t, f) {
|
|
7008
|
-
super("Override"), this.root.push(new
|
|
7009
|
+
super("Override"), this.root.push(new Li({ contentType: t, partName: f }));
|
|
7009
7010
|
}
|
|
7010
7011
|
}
|
|
7011
|
-
class
|
|
7012
|
+
class Di extends r {
|
|
7012
7013
|
constructor() {
|
|
7013
|
-
super("Types"), this.root.push(new
|
|
7014
|
+
super("Types"), this.root.push(new Oi({ xmlns: "http://schemas.openxmlformats.org/package/2006/content-types" })), this.root.push(new Zt("image/png", "png")), this.root.push(new Zt("image/jpeg", "jpeg")), this.root.push(new Zt("image/jpeg", "jpg")), this.root.push(new Zt("image/bmp", "bmp")), this.root.push(new Zt("image/gif", "gif")), this.root.push(new Zt("application/vnd.openxmlformats-package.relationships+xml", "rels")), this.root.push(new Zt("application/xml", "xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml", "/word/document.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml", "/word/styles.xml")), this.root.push(new Ht("application/vnd.openxmlformats-package.core-properties+xml", "/docProps/core.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.custom-properties+xml", "/docProps/custom.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.extended-properties+xml", "/docProps/app.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml", "/word/numbering.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml", "/word/footnotes.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml", "/word/settings.xml")), this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml", "/word/comments.xml"));
|
|
7014
7015
|
}
|
|
7015
7016
|
addFooter(t) {
|
|
7016
7017
|
this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml", `/word/footer${t}.xml`));
|
|
@@ -7019,7 +7020,7 @@ Actual: ` + T.attribValue);
|
|
|
7019
7020
|
this.root.push(new Ht("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml", `/word/header${t}.xml`));
|
|
7020
7021
|
}
|
|
7021
7022
|
}
|
|
7022
|
-
class
|
|
7023
|
+
class Pi extends r {
|
|
7023
7024
|
constructor(t) {
|
|
7024
7025
|
super("cp:coreProperties"), this.root.push(new Qt({ cp: "http://schemas.openxmlformats.org/package/2006/metadata/core-properties", dc: "http://purl.org/dc/elements/1.1/", dcterms: "http://purl.org/dc/terms/", dcmitype: "http://purl.org/dc/dcmitype/", xsi: "http://www.w3.org/2001/XMLSchema-instance" })), t.title && this.root.push(new at("dc:title", t.title)), t.subject && this.root.push(new at("dc:subject", t.subject)), t.creator && this.root.push(new at("dc:creator", t.creator)), t.keywords && this.root.push(new at("cp:keywords", t.keywords)), t.description && this.root.push(new at("dc:description", t.description)), t.lastModifiedBy && this.root.push(new at("cp:lastModifiedBy", t.lastModifiedBy)), t.revision && this.root.push(new at("cp:revision", String(t.revision))), this.root.push(new Vn("dcterms:created")), this.root.push(new Vn("dcterms:modified"));
|
|
7025
7026
|
}
|
|
@@ -7029,46 +7030,46 @@ Actual: ` + T.attribValue);
|
|
|
7029
7030
|
super(t), this.root.push(new Qt({ type: "dcterms:W3CDTF" })), this.root.push((0, n.sF)(/* @__PURE__ */ new Date()));
|
|
7030
7031
|
}
|
|
7031
7032
|
}
|
|
7032
|
-
class
|
|
7033
|
+
class Fi extends i {
|
|
7033
7034
|
constructor() {
|
|
7034
7035
|
super(...arguments), this.xmlKeys = { xmlns: "xmlns", vt: "xmlns:vt" };
|
|
7035
7036
|
}
|
|
7036
7037
|
}
|
|
7037
|
-
class
|
|
7038
|
+
class Bi extends i {
|
|
7038
7039
|
constructor() {
|
|
7039
7040
|
super(...arguments), this.xmlKeys = { fmtid: "fmtid", pid: "pid", name: "name" };
|
|
7040
7041
|
}
|
|
7041
7042
|
}
|
|
7042
|
-
class
|
|
7043
|
+
class Mi extends r {
|
|
7043
7044
|
constructor(t, f) {
|
|
7044
|
-
super("property"), this.root.push(new
|
|
7045
|
+
super("property"), this.root.push(new Bi({ fmtid: "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}", pid: t.toString(), name: f.name })), this.root.push(new Ui(f.value));
|
|
7045
7046
|
}
|
|
7046
7047
|
}
|
|
7047
|
-
class
|
|
7048
|
+
class Ui extends r {
|
|
7048
7049
|
constructor(t) {
|
|
7049
7050
|
super("vt:lpwstr"), this.root.push(t);
|
|
7050
7051
|
}
|
|
7051
7052
|
}
|
|
7052
|
-
class
|
|
7053
|
+
class Hi extends r {
|
|
7053
7054
|
constructor(t) {
|
|
7054
|
-
super("Properties"), this.properties = [], this.root.push(new
|
|
7055
|
+
super("Properties"), this.properties = [], this.root.push(new Fi({ xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/custom-properties", vt: "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes" })), this.nextId = 2;
|
|
7055
7056
|
for (const f of t) this.addCustomProperty(f);
|
|
7056
7057
|
}
|
|
7057
7058
|
prepForXml(t) {
|
|
7058
7059
|
return this.properties.forEach(((f) => this.root.push(f))), super.prepForXml(t);
|
|
7059
7060
|
}
|
|
7060
7061
|
addCustomProperty(t) {
|
|
7061
|
-
this.properties.push(new
|
|
7062
|
+
this.properties.push(new Mi(this.nextId++, t));
|
|
7062
7063
|
}
|
|
7063
7064
|
}
|
|
7064
|
-
class
|
|
7065
|
+
class zi extends i {
|
|
7065
7066
|
constructor() {
|
|
7066
7067
|
super(...arguments), this.xmlKeys = { wpc: "xmlns:wpc", mc: "xmlns:mc", o: "xmlns:o", r: "xmlns:r", m: "xmlns:m", v: "xmlns:v", wp14: "xmlns:wp14", wp: "xmlns:wp", w10: "xmlns:w10", w: "xmlns:w", w14: "xmlns:w14", w15: "xmlns:w15", wpg: "xmlns:wpg", wpi: "xmlns:wpi", wne: "xmlns:wne", wps: "xmlns:wps", cp: "xmlns:cp", dc: "xmlns:dc", dcterms: "xmlns:dcterms", dcmitype: "xmlns:dcmitype", xsi: "xmlns:xsi", type: "xsi:type" };
|
|
7067
7068
|
}
|
|
7068
7069
|
}
|
|
7069
|
-
class
|
|
7070
|
+
class Wi extends y {
|
|
7070
7071
|
constructor(t, f) {
|
|
7071
|
-
super("w:ftr", f), this.refId = t, f || this.root.push(new
|
|
7072
|
+
super("w:ftr", f), this.refId = t, f || this.root.push(new zi({ wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", o: "urn:schemas-microsoft-com:office:office", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", m: "http://schemas.openxmlformats.org/officeDocument/2006/math", v: "urn:schemas-microsoft-com:vml", wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", w10: "urn:schemas-microsoft-com:office:word", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape" }));
|
|
7072
7073
|
}
|
|
7073
7074
|
get ReferenceId() {
|
|
7074
7075
|
return this.refId;
|
|
@@ -7079,7 +7080,7 @@ Actual: ` + T.attribValue);
|
|
|
7079
7080
|
}
|
|
7080
7081
|
class ar {
|
|
7081
7082
|
constructor(t, f, H) {
|
|
7082
|
-
this.media = t, this.footer = new
|
|
7083
|
+
this.media = t, this.footer = new Wi(f, H), this.relationships = new le();
|
|
7083
7084
|
}
|
|
7084
7085
|
add(t) {
|
|
7085
7086
|
this.footer.add(t);
|
|
@@ -7097,19 +7098,19 @@ Actual: ` + T.attribValue);
|
|
|
7097
7098
|
return this.media;
|
|
7098
7099
|
}
|
|
7099
7100
|
}
|
|
7100
|
-
class
|
|
7101
|
+
class ji extends i {
|
|
7101
7102
|
constructor() {
|
|
7102
7103
|
super(...arguments), this.xmlKeys = { type: "w:type", id: "w:id" };
|
|
7103
7104
|
}
|
|
7104
7105
|
}
|
|
7105
|
-
class
|
|
7106
|
+
class Ki extends r {
|
|
7106
7107
|
constructor() {
|
|
7107
7108
|
super("w:footnoteRef");
|
|
7108
7109
|
}
|
|
7109
7110
|
}
|
|
7110
|
-
class
|
|
7111
|
+
class Gi extends Bt {
|
|
7111
7112
|
constructor() {
|
|
7112
|
-
super({ style: "FootnoteReference" }), this.root.push(new
|
|
7113
|
+
super({ style: "FootnoteReference" }), this.root.push(new Ki());
|
|
7113
7114
|
}
|
|
7114
7115
|
}
|
|
7115
7116
|
(function(e) {
|
|
@@ -7117,44 +7118,44 @@ Actual: ` + T.attribValue);
|
|
|
7117
7118
|
})(Te || (Te = {}));
|
|
7118
7119
|
class cr extends r {
|
|
7119
7120
|
constructor(t) {
|
|
7120
|
-
super("w:footnote"), this.root.push(new
|
|
7121
|
+
super("w:footnote"), this.root.push(new ji({ type: t.type, id: t.id }));
|
|
7121
7122
|
for (let f = 0; f < t.children.length; f++) {
|
|
7122
7123
|
const H = t.children[f];
|
|
7123
|
-
f === 0 && H.addRunToFront(new
|
|
7124
|
+
f === 0 && H.addRunToFront(new Gi()), this.root.push(H);
|
|
7124
7125
|
}
|
|
7125
7126
|
}
|
|
7126
7127
|
}
|
|
7127
|
-
class
|
|
7128
|
+
class Vi extends r {
|
|
7128
7129
|
constructor() {
|
|
7129
7130
|
super("w:continuationSeparator");
|
|
7130
7131
|
}
|
|
7131
7132
|
}
|
|
7132
|
-
class
|
|
7133
|
+
class $i extends Bt {
|
|
7133
7134
|
constructor() {
|
|
7134
|
-
super({}), this.root.push(new
|
|
7135
|
+
super({}), this.root.push(new Vi());
|
|
7135
7136
|
}
|
|
7136
7137
|
}
|
|
7137
|
-
class
|
|
7138
|
+
class Xi extends r {
|
|
7138
7139
|
constructor() {
|
|
7139
7140
|
super("w:separator");
|
|
7140
7141
|
}
|
|
7141
7142
|
}
|
|
7142
|
-
class
|
|
7143
|
+
class qi extends Bt {
|
|
7143
7144
|
constructor() {
|
|
7144
|
-
super({}), this.root.push(new
|
|
7145
|
+
super({}), this.root.push(new Xi());
|
|
7145
7146
|
}
|
|
7146
7147
|
}
|
|
7147
|
-
class
|
|
7148
|
+
class Zi extends i {
|
|
7148
7149
|
constructor() {
|
|
7149
7150
|
super(...arguments), this.xmlKeys = { wpc: "xmlns:wpc", mc: "xmlns:mc", o: "xmlns:o", r: "xmlns:r", m: "xmlns:m", v: "xmlns:v", wp14: "xmlns:wp14", wp: "xmlns:wp", w10: "xmlns:w10", w: "xmlns:w", w14: "xmlns:w14", w15: "xmlns:w15", wpg: "xmlns:wpg", wpi: "xmlns:wpi", wne: "xmlns:wne", wps: "xmlns:wps", Ignorable: "mc:Ignorable" };
|
|
7150
7151
|
}
|
|
7151
7152
|
}
|
|
7152
7153
|
class $n extends r {
|
|
7153
7154
|
constructor() {
|
|
7154
|
-
super("w:footnotes"), this.root.push(new
|
|
7155
|
-
const t = new cr({ id: -1, type: Te.SEPERATOR, children: [new jt({ spacing: { after: 0, line: 240, lineRule: Jt.AUTO }, children: [new
|
|
7155
|
+
super("w:footnotes"), this.root.push(new Zi({ wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", o: "urn:schemas-microsoft-com:office:office", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", m: "http://schemas.openxmlformats.org/officeDocument/2006/math", v: "urn:schemas-microsoft-com:vml", wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", w10: "urn:schemas-microsoft-com:office:word", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", Ignorable: "w14 w15 wp14" }));
|
|
7156
|
+
const t = new cr({ id: -1, type: Te.SEPERATOR, children: [new jt({ spacing: { after: 0, line: 240, lineRule: Jt.AUTO }, children: [new qi()] })] });
|
|
7156
7157
|
this.root.push(t);
|
|
7157
|
-
const f = new cr({ id: 0, type: Te.CONTINUATION_SEPERATOR, children: [new jt({ spacing: { after: 0, line: 240, lineRule: Jt.AUTO }, children: [new
|
|
7158
|
+
const f = new cr({ id: 0, type: Te.CONTINUATION_SEPERATOR, children: [new jt({ spacing: { after: 0, line: 240, lineRule: Jt.AUTO }, children: [new $i()] })] });
|
|
7158
7159
|
this.root.push(f);
|
|
7159
7160
|
}
|
|
7160
7161
|
createFootNote(t, f) {
|
|
@@ -7162,7 +7163,7 @@ Actual: ` + T.attribValue);
|
|
|
7162
7163
|
this.root.push(H);
|
|
7163
7164
|
}
|
|
7164
7165
|
}
|
|
7165
|
-
class
|
|
7166
|
+
class Yi {
|
|
7166
7167
|
constructor() {
|
|
7167
7168
|
this.footnotess = new $n(), this.relationships = new le();
|
|
7168
7169
|
}
|
|
@@ -7173,14 +7174,14 @@ Actual: ` + T.attribValue);
|
|
|
7173
7174
|
return this.relationships;
|
|
7174
7175
|
}
|
|
7175
7176
|
}
|
|
7176
|
-
class
|
|
7177
|
+
class Ji extends i {
|
|
7177
7178
|
constructor() {
|
|
7178
7179
|
super(...arguments), this.xmlKeys = { wpc: "xmlns:wpc", mc: "xmlns:mc", o: "xmlns:o", r: "xmlns:r", m: "xmlns:m", v: "xmlns:v", wp14: "xmlns:wp14", wp: "xmlns:wp", w10: "xmlns:w10", w: "xmlns:w", w14: "xmlns:w14", w15: "xmlns:w15", wpg: "xmlns:wpg", wpi: "xmlns:wpi", wne: "xmlns:wne", wps: "xmlns:wps", cp: "xmlns:cp", dc: "xmlns:dc", dcterms: "xmlns:dcterms", dcmitype: "xmlns:dcmitype", xsi: "xmlns:xsi", type: "xsi:type", cx: "xmlns:cx", cx1: "xmlns:cx1", cx2: "xmlns:cx2", cx3: "xmlns:cx3", cx4: "xmlns:cx4", cx5: "xmlns:cx5", cx6: "xmlns:cx6", cx7: "xmlns:cx7", cx8: "xmlns:cx8", w16cid: "xmlns:w16cid", w16se: "xmlns:w16se" };
|
|
7179
7180
|
}
|
|
7180
7181
|
}
|
|
7181
|
-
class
|
|
7182
|
+
class Qi extends y {
|
|
7182
7183
|
constructor(t, f) {
|
|
7183
|
-
super("w:hdr", f), this.refId = t, f || this.root.push(new
|
|
7184
|
+
super("w:hdr", f), this.refId = t, f || this.root.push(new Ji({ wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", o: "urn:schemas-microsoft-com:office:office", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", m: "http://schemas.openxmlformats.org/officeDocument/2006/math", v: "urn:schemas-microsoft-com:vml", wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", w10: "urn:schemas-microsoft-com:office:word", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", cx: "http://schemas.microsoft.com/office/drawing/2014/chartex", cx1: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex", cx2: "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex", cx3: "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex", cx4: "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex", cx5: "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex", cx6: "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex", cx7: "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex", cx8: "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex", w16cid: "http://schemas.microsoft.com/office/word/2016/wordml/cid", w16se: "http://schemas.microsoft.com/office/word/2015/wordml/symex" }));
|
|
7184
7185
|
}
|
|
7185
7186
|
get ReferenceId() {
|
|
7186
7187
|
return this.refId;
|
|
@@ -7191,7 +7192,7 @@ Actual: ` + T.attribValue);
|
|
|
7191
7192
|
}
|
|
7192
7193
|
class ur {
|
|
7193
7194
|
constructor(t, f, H) {
|
|
7194
|
-
this.media = t, this.header = new
|
|
7195
|
+
this.media = t, this.header = new Qi(f, H), this.relationships = new le();
|
|
7195
7196
|
}
|
|
7196
7197
|
add(t) {
|
|
7197
7198
|
return this.header.add(t), this;
|
|
@@ -7228,27 +7229,27 @@ Actual: ` + T.attribValue);
|
|
|
7228
7229
|
return typeof atob == "function" ? new Uint8Array(atob(t.substring(H)).split("").map(((J) => J.charCodeAt(0)))) : new (ct(8764)).Buffer(t, "base64");
|
|
7229
7230
|
}
|
|
7230
7231
|
}
|
|
7231
|
-
const
|
|
7232
|
+
const ta = "";
|
|
7232
7233
|
var Ut, hr;
|
|
7233
7234
|
(function(e) {
|
|
7234
7235
|
e.DECIMAL = "decimal", e.UPPER_ROMAN = "upperRoman", e.LOWER_ROMAN = "lowerRoman", e.UPPER_LETTER = "upperLetter", e.LOWER_LETTER = "lowerLetter", e.ORDINAL = "ordinal", e.CARDINAL_TEXT = "cardinalText", e.ORDINAL_TEXT = "ordinalText", e.HEX = "hex", e.CHICAGO = "chicago", e.IDEOGRAPH__DIGITAL = "ideographDigital", e.JAPANESE_COUNTING = "japaneseCounting", e.AIUEO = "aiueo", e.IROHA = "iroha", e.DECIMAL_FULL_WIDTH = "decimalFullWidth", e.DECIMAL_HALF_WIDTH = "decimalHalfWidth", e.JAPANESE_LEGAL = "japaneseLegal", e.JAPANESE_DIGITAL_TEN_THOUSAND = "japaneseDigitalTenThousand", e.DECIMAL_ENCLOSED_CIRCLE = "decimalEnclosedCircle", e.DECIMAL_FULL_WIDTH2 = "decimalFullWidth2", e.AIUEO_FULL_WIDTH = "aiueoFullWidth", e.IROHA_FULL_WIDTH = "irohaFullWidth", e.DECIMAL_ZERO = "decimalZero", e.BULLET = "bullet", e.GANADA = "ganada", e.CHOSUNG = "chosung", e.DECIMAL_ENCLOSED_FULLSTOP = "decimalEnclosedFullstop", e.DECIMAL_ENCLOSED_PARENTHESES = "decimalEnclosedParen", e.DECIMAL_ENCLOSED_CIRCLE_CHINESE = "decimalEnclosedCircleChinese", e.IDEOGRAPH_ENCLOSED_CIRCLE = "ideographEnclosedCircle", e.IDEOGRAPH_TRADITIONAL = "ideographTraditional", e.IDEOGRAPH_ZODIAC = "ideographZodiac", e.IDEOGRAPH_ZODIAC_TRADITIONAL = "ideographZodiacTraditional", e.TAIWANESE_COUNTING = "taiwaneseCounting", e.IDEOGRAPH_LEGAL_TRADITIONAL = "ideographLegalTraditional", e.TAIWANESE_COUNTING_THOUSAND = "taiwaneseCountingThousand", e.TAIWANESE_DIGITAL = "taiwaneseDigital", e.CHINESE_COUNTING = "chineseCounting", e.CHINESE_LEGAL_SIMPLIFIED = "chineseLegalSimplified", e.CHINESE_COUNTING_THOUSAND = "chineseCountingThousand", e.KOREAN_DIGITAL = "koreanDigital", e.KOREAN_COUNTING = "koreanCounting", e.KOREAN_LEGAL = "koreanLegal", e.KOREAN_DIGITAL2 = "koreanDigital2", e.VIETNAMESE_COUNTING = "vietnameseCounting", e.RUSSIAN_LOWER = "russianLower", e.RUSSIAN_UPPER = "russianUpper", e.NONE = "none", e.NUMBER_IN_DASH = "numberInDash", e.HEBREW1 = "hebrew1", e.HEBREW2 = "hebrew2", e.ARABIC_ALPHA = "arabicAlpha", e.ARABIC_ABJAD = "arabicAbjad", e.HINDI_VOWELS = "hindiVowels", e.HINDI_CONSONANTS = "hindiConsonants", e.HINDI_NUMBERS = "hindiNumbers", e.HINDI_COUNTING = "hindiCounting", e.THAI_LETTERS = "thaiLetters", e.THAI_NUMBERS = "thaiNumbers", e.THAI_COUNTING = "thaiCounting", e.BAHT_TEXT = "bahtText", e.DOLLAR_TEXT = "dollarText", e.CUSTOM = "custom";
|
|
7235
7236
|
})(Ut || (Ut = {}));
|
|
7236
|
-
class
|
|
7237
|
+
class ea extends i {
|
|
7237
7238
|
constructor() {
|
|
7238
7239
|
super(...arguments), this.xmlKeys = { ilvl: "w:ilvl", tentative: "w15:tentative" };
|
|
7239
7240
|
}
|
|
7240
7241
|
}
|
|
7241
|
-
class
|
|
7242
|
+
class ra extends r {
|
|
7242
7243
|
constructor(t) {
|
|
7243
7244
|
super("w:numFmt"), this.root.push(new l({ val: t }));
|
|
7244
7245
|
}
|
|
7245
7246
|
}
|
|
7246
|
-
class
|
|
7247
|
+
class na extends r {
|
|
7247
7248
|
constructor(t) {
|
|
7248
7249
|
super("w:lvlText"), this.root.push(new l({ val: t }));
|
|
7249
7250
|
}
|
|
7250
7251
|
}
|
|
7251
|
-
class
|
|
7252
|
+
class sa extends r {
|
|
7252
7253
|
constructor(t) {
|
|
7253
7254
|
super("w:lvlJc"), this.root.push(new l({ val: t }));
|
|
7254
7255
|
}
|
|
@@ -7256,75 +7257,75 @@ Actual: ` + T.attribValue);
|
|
|
7256
7257
|
(function(e) {
|
|
7257
7258
|
e.NOTHING = "nothing", e.SPACE = "space", e.TAB = "tab";
|
|
7258
7259
|
})(hr || (hr = {}));
|
|
7259
|
-
class
|
|
7260
|
+
class oa extends r {
|
|
7260
7261
|
constructor(t) {
|
|
7261
7262
|
super("w:suff"), this.root.push(new l({ val: t }));
|
|
7262
7263
|
}
|
|
7263
7264
|
}
|
|
7264
|
-
class
|
|
7265
|
+
class ia extends r {
|
|
7265
7266
|
constructor() {
|
|
7266
7267
|
super("w:isLgl");
|
|
7267
7268
|
}
|
|
7268
7269
|
}
|
|
7269
7270
|
class pr extends r {
|
|
7270
|
-
constructor({ level: t, format: f, text: H, alignment: J = h.START, start: tt = 1, style: ut, suffix: dt, isLegalNumberingStyle:
|
|
7271
|
-
if (super("w:lvl"), this.root.push(new lt("w:start", (0, n.vH)(tt))), f && this.root.push(new
|
|
7272
|
-
this.root.push(new
|
|
7271
|
+
constructor({ level: t, format: f, text: H, alignment: J = h.START, start: tt = 1, style: ut, suffix: dt, isLegalNumberingStyle: vt }) {
|
|
7272
|
+
if (super("w:lvl"), this.root.push(new lt("w:start", (0, n.vH)(tt))), f && this.root.push(new ra(f)), dt && this.root.push(new oa(dt)), vt && this.root.push(new ia()), H && this.root.push(new na(H)), this.root.push(new sa(J)), this.paragraphProperties = new qt(ut && ut.paragraph), this.runProperties = new Et(ut && ut.run), this.root.push(this.paragraphProperties), this.root.push(this.runProperties), t > 9) throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");
|
|
7273
|
+
this.root.push(new ea({ ilvl: (0, n.vH)(t), tentative: 1 }));
|
|
7273
7274
|
}
|
|
7274
7275
|
}
|
|
7275
7276
|
class Xn extends pr {
|
|
7276
7277
|
}
|
|
7277
|
-
class
|
|
7278
|
+
class aa extends pr {
|
|
7278
7279
|
}
|
|
7279
|
-
class
|
|
7280
|
+
class ca extends r {
|
|
7280
7281
|
constructor(t) {
|
|
7281
7282
|
super("w:multiLevelType"), this.root.push(new l({ val: t }));
|
|
7282
7283
|
}
|
|
7283
7284
|
}
|
|
7284
|
-
class
|
|
7285
|
+
class ua extends i {
|
|
7285
7286
|
constructor() {
|
|
7286
7287
|
super(...arguments), this.xmlKeys = { abstractNumId: "w:abstractNumId", restartNumberingAfterBreak: "w15:restartNumberingAfterBreak" };
|
|
7287
7288
|
}
|
|
7288
7289
|
}
|
|
7289
7290
|
class dr extends r {
|
|
7290
7291
|
constructor(t, f) {
|
|
7291
|
-
super("w:abstractNum"), this.root.push(new
|
|
7292
|
+
super("w:abstractNum"), this.root.push(new ua({ abstractNumId: (0, n.vH)(t), restartNumberingAfterBreak: 0 })), this.root.push(new ca("hybridMultilevel")), this.id = t;
|
|
7292
7293
|
for (const H of f) this.root.push(new Xn(H));
|
|
7293
7294
|
}
|
|
7294
7295
|
}
|
|
7295
|
-
class
|
|
7296
|
+
class la extends r {
|
|
7296
7297
|
constructor(t) {
|
|
7297
7298
|
super("w:abstractNumId"), this.root.push(new l({ val: t }));
|
|
7298
7299
|
}
|
|
7299
7300
|
}
|
|
7300
|
-
class
|
|
7301
|
+
class ha extends i {
|
|
7301
7302
|
constructor() {
|
|
7302
7303
|
super(...arguments), this.xmlKeys = { numId: "w:numId" };
|
|
7303
7304
|
}
|
|
7304
7305
|
}
|
|
7305
7306
|
class fr extends r {
|
|
7306
7307
|
constructor(t) {
|
|
7307
|
-
super("w:num"), this.numId = t.numId, this.reference = t.reference, this.instance = t.instance, this.root.push(new
|
|
7308
|
+
super("w:num"), this.numId = t.numId, this.reference = t.reference, this.instance = t.instance, this.root.push(new ha({ numId: (0, n.vH)(t.numId) })), this.root.push(new la((0, n.vH)(t.abstractNumId))), t.overrideLevel && this.root.push(new qn(t.overrideLevel.num, t.overrideLevel.start));
|
|
7308
7309
|
}
|
|
7309
7310
|
}
|
|
7310
|
-
class
|
|
7311
|
+
class pa extends i {
|
|
7311
7312
|
constructor() {
|
|
7312
7313
|
super(...arguments), this.xmlKeys = { ilvl: "w:ilvl" };
|
|
7313
7314
|
}
|
|
7314
7315
|
}
|
|
7315
7316
|
class qn extends r {
|
|
7316
7317
|
constructor(t, f) {
|
|
7317
|
-
super("w:lvlOverride"), this.root.push(new
|
|
7318
|
+
super("w:lvlOverride"), this.root.push(new pa({ ilvl: t })), f !== void 0 && this.root.push(new fa(f));
|
|
7318
7319
|
}
|
|
7319
7320
|
}
|
|
7320
|
-
class
|
|
7321
|
+
class da extends i {
|
|
7321
7322
|
constructor() {
|
|
7322
7323
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
7323
7324
|
}
|
|
7324
7325
|
}
|
|
7325
|
-
class
|
|
7326
|
+
class fa extends r {
|
|
7326
7327
|
constructor(t) {
|
|
7327
|
-
super("w:startOverride"), this.root.push(new
|
|
7328
|
+
super("w:startOverride"), this.root.push(new da({ val: t }));
|
|
7328
7329
|
}
|
|
7329
7330
|
}
|
|
7330
7331
|
class Zn extends r {
|
|
@@ -7354,30 +7355,30 @@ Actual: ` + T.attribValue);
|
|
|
7354
7355
|
return Array.from(this.referenceConfigMap.values());
|
|
7355
7356
|
}
|
|
7356
7357
|
}
|
|
7357
|
-
class
|
|
7358
|
+
class ma extends i {
|
|
7358
7359
|
constructor() {
|
|
7359
7360
|
super(...arguments), this.xmlKeys = { version: "w:val", name: "w:name", uri: "w:uri" };
|
|
7360
7361
|
}
|
|
7361
7362
|
}
|
|
7362
|
-
class
|
|
7363
|
+
class ga extends r {
|
|
7363
7364
|
constructor(t) {
|
|
7364
|
-
super("w:compatSetting"), this.root.push(new
|
|
7365
|
+
super("w:compatSetting"), this.root.push(new ma({ version: t, uri: "http://schemas.microsoft.com/office/word", name: "compatibilityMode" }));
|
|
7365
7366
|
}
|
|
7366
7367
|
}
|
|
7367
|
-
class
|
|
7368
|
+
class wa extends r {
|
|
7368
7369
|
constructor(t) {
|
|
7369
|
-
super("w:compat"), t.version && this.root.push(new
|
|
7370
|
+
super("w:compat"), t.version && this.root.push(new ga(t.version)), t.useSingleBorderforContiguousCells && this.root.push(new B("w:useSingleBorderforContiguousCells", t.useSingleBorderforContiguousCells)), t.wordPerfectJustification && this.root.push(new B("w:wpJustification", t.wordPerfectJustification)), t.noTabStopForHangingIndent && this.root.push(new B("w:noTabHangInd", t.noTabStopForHangingIndent)), t.noLeading && this.root.push(new B("w:noLeading", t.noLeading)), t.spaceForUnderline && this.root.push(new B("w:spaceForUL", t.spaceForUnderline)), t.noColumnBalance && this.root.push(new B("w:noColumnBalance", t.noColumnBalance)), t.balanceSingleByteDoubleByteWidth && this.root.push(new B("w:balanceSingleByteDoubleByteWidth", t.balanceSingleByteDoubleByteWidth)), t.noExtraLineSpacing && this.root.push(new B("w:noExtraLineSpacing", t.noExtraLineSpacing)), t.doNotLeaveBackslashAlone && this.root.push(new B("w:doNotLeaveBackslashAlone", t.doNotLeaveBackslashAlone)), t.underlineTrailingSpaces && this.root.push(new B("w:ulTrailSpace", t.underlineTrailingSpaces)), t.doNotExpandShiftReturn && this.root.push(new B("w:doNotExpandShiftReturn", t.doNotExpandShiftReturn)), t.spacingInWholePoints && this.root.push(new B("w:spacingInWholePoints", t.spacingInWholePoints)), t.lineWrapLikeWord6 && this.root.push(new B("w:lineWrapLikeWord6", t.lineWrapLikeWord6)), t.printBodyTextBeforeHeader && this.root.push(new B("w:printBodyTextBeforeHeader", t.printBodyTextBeforeHeader)), t.printColorsBlack && this.root.push(new B("w:printColBlack", t.printColorsBlack)), t.spaceWidth && this.root.push(new B("w:wpSpaceWidth", t.spaceWidth)), t.showBreaksInFrames && this.root.push(new B("w:showBreaksInFrames", t.showBreaksInFrames)), t.subFontBySize && this.root.push(new B("w:subFontBySize", t.subFontBySize)), t.suppressBottomSpacing && this.root.push(new B("w:suppressBottomSpacing", t.suppressBottomSpacing)), t.suppressTopSpacing && this.root.push(new B("w:suppressTopSpacing", t.suppressTopSpacing)), t.suppressSpacingAtTopOfPage && this.root.push(new B("w:suppressSpacingAtTopOfPage", t.suppressSpacingAtTopOfPage)), t.suppressTopSpacingWP && this.root.push(new B("w:suppressTopSpacingWP", t.suppressTopSpacingWP)), t.suppressSpBfAfterPgBrk && this.root.push(new B("w:suppressSpBfAfterPgBrk", t.suppressSpBfAfterPgBrk)), t.swapBordersFacingPages && this.root.push(new B("w:swapBordersFacingPages", t.swapBordersFacingPages)), t.convertMailMergeEsc && this.root.push(new B("w:convMailMergeEsc", t.convertMailMergeEsc)), t.truncateFontHeightsLikeWP6 && this.root.push(new B("w:truncateFontHeightsLikeWP6", t.truncateFontHeightsLikeWP6)), t.macWordSmallCaps && this.root.push(new B("w:mwSmallCaps", t.macWordSmallCaps)), t.usePrinterMetrics && this.root.push(new B("w:usePrinterMetrics", t.usePrinterMetrics)), t.doNotSuppressParagraphBorders && this.root.push(new B("w:doNotSuppressParagraphBorders", t.doNotSuppressParagraphBorders)), t.wrapTrailSpaces && this.root.push(new B("w:wrapTrailSpaces", t.wrapTrailSpaces)), t.footnoteLayoutLikeWW8 && this.root.push(new B("w:footnoteLayoutLikeWW8", t.footnoteLayoutLikeWW8)), t.shapeLayoutLikeWW8 && this.root.push(new B("w:shapeLayoutLikeWW8", t.shapeLayoutLikeWW8)), t.alignTablesRowByRow && this.root.push(new B("w:alignTablesRowByRow", t.alignTablesRowByRow)), t.forgetLastTabAlignment && this.root.push(new B("w:forgetLastTabAlignment", t.forgetLastTabAlignment)), t.adjustLineHeightInTable && this.root.push(new B("w:adjustLineHeightInTable", t.adjustLineHeightInTable)), t.autoSpaceLikeWord95 && this.root.push(new B("w:autoSpaceLikeWord95", t.autoSpaceLikeWord95)), t.noSpaceRaiseLower && this.root.push(new B("w:noSpaceRaiseLower", t.noSpaceRaiseLower)), t.doNotUseHTMLParagraphAutoSpacing && this.root.push(new B("w:doNotUseHTMLParagraphAutoSpacing", t.doNotUseHTMLParagraphAutoSpacing)), t.layoutRawTableWidth && this.root.push(new B("w:layoutRawTableWidth", t.layoutRawTableWidth)), t.layoutTableRowsApart && this.root.push(new B("w:layoutTableRowsApart", t.layoutTableRowsApart)), t.useWord97LineBreakRules && this.root.push(new B("w:useWord97LineBreakRules", t.useWord97LineBreakRules)), t.doNotBreakWrappedTables && this.root.push(new B("w:doNotBreakWrappedTables", t.doNotBreakWrappedTables)), t.doNotSnapToGridInCell && this.root.push(new B("w:doNotSnapToGridInCell", t.doNotSnapToGridInCell)), t.selectFieldWithFirstOrLastCharacter && this.root.push(new B("w:selectFldWithFirstOrLastChar", t.selectFieldWithFirstOrLastCharacter)), t.applyBreakingRules && this.root.push(new B("w:applyBreakingRules", t.applyBreakingRules)), t.doNotWrapTextWithPunctuation && this.root.push(new B("w:doNotWrapTextWithPunct", t.doNotWrapTextWithPunctuation)), t.doNotUseEastAsianBreakRules && this.root.push(new B("w:doNotUseEastAsianBreakRules", t.doNotUseEastAsianBreakRules)), t.useWord2002TableStyleRules && this.root.push(new B("w:useWord2002TableStyleRules", t.useWord2002TableStyleRules)), t.growAutofit && this.root.push(new B("w:growAutofit", t.growAutofit)), t.useFELayout && this.root.push(new B("w:useFELayout", t.useFELayout)), t.useNormalStyleForList && this.root.push(new B("w:useNormalStyleForList", t.useNormalStyleForList)), t.doNotUseIndentAsNumberingTabStop && this.root.push(new B("w:doNotUseIndentAsNumberingTabStop", t.doNotUseIndentAsNumberingTabStop)), t.useAlternateEastAsianLineBreakRules && this.root.push(new B("w:useAltKinsokuLineBreakRules", t.useAlternateEastAsianLineBreakRules)), t.allowSpaceOfSameStyleInTable && this.root.push(new B("w:allowSpaceOfSameStyleInTable", t.allowSpaceOfSameStyleInTable)), t.doNotSuppressIndentation && this.root.push(new B("w:doNotSuppressIndentation", t.doNotSuppressIndentation)), t.doNotAutofitConstrainedTables && this.root.push(new B("w:doNotAutofitConstrainedTables", t.doNotAutofitConstrainedTables)), t.autofitToFirstFixedWidthCell && this.root.push(new B("w:autofitToFirstFixedWidthCell", t.autofitToFirstFixedWidthCell)), t.underlineTabInNumberingList && this.root.push(new B("w:underlineTabInNumList", t.underlineTabInNumberingList)), t.displayHangulFixedWidth && this.root.push(new B("w:displayHangulFixedWidth", t.displayHangulFixedWidth)), t.splitPgBreakAndParaMark && this.root.push(new B("w:splitPgBreakAndParaMark", t.splitPgBreakAndParaMark)), t.doNotVerticallyAlignCellWithSp && this.root.push(new B("w:doNotVertAlignCellWithSp", t.doNotVerticallyAlignCellWithSp)), t.doNotBreakConstrainedForcedTable && this.root.push(new B("w:doNotBreakConstrainedForcedTable", t.doNotBreakConstrainedForcedTable)), t.ignoreVerticalAlignmentInTextboxes && this.root.push(new B("w:doNotVertAlignInTxbx", t.ignoreVerticalAlignmentInTextboxes)), t.useAnsiKerningPairs && this.root.push(new B("w:useAnsiKerningPairs", t.useAnsiKerningPairs)), t.cachedColumnBalance && this.root.push(new B("w:cachedColBalance", t.cachedColumnBalance));
|
|
7370
7371
|
}
|
|
7371
7372
|
}
|
|
7372
|
-
class
|
|
7373
|
+
class ya extends i {
|
|
7373
7374
|
constructor() {
|
|
7374
7375
|
super(...arguments), this.xmlKeys = { wpc: "xmlns:wpc", mc: "xmlns:mc", o: "xmlns:o", r: "xmlns:r", m: "xmlns:m", v: "xmlns:v", wp14: "xmlns:wp14", wp: "xmlns:wp", w10: "xmlns:w10", w: "xmlns:w", w14: "xmlns:w14", w15: "xmlns:w15", wpg: "xmlns:wpg", wpi: "xmlns:wpi", wne: "xmlns:wne", wps: "xmlns:wps", Ignorable: "mc:Ignorable" };
|
|
7375
7376
|
}
|
|
7376
7377
|
}
|
|
7377
|
-
class
|
|
7378
|
+
class ba extends r {
|
|
7378
7379
|
constructor(t) {
|
|
7379
7380
|
var f, H, J, tt;
|
|
7380
|
-
super("w:settings"), this.root.push(new
|
|
7381
|
+
super("w:settings"), this.root.push(new ya({ wpc: "http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas", mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", o: "urn:schemas-microsoft-com:office:office", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", m: "http://schemas.openxmlformats.org/officeDocument/2006/math", v: "urn:schemas-microsoft-com:vml", wp14: "http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing", wp: "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", w10: "urn:schemas-microsoft-com:office:word", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", wpg: "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wne: "http://schemas.microsoft.com/office/word/2006/wordml", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", Ignorable: "w14 w15 wp14" })), this.root.push(new B("w:displayBackgroundShape", !0)), t.trackRevisions !== void 0 && this.root.push(new B("w:trackRevisions", t.trackRevisions)), t.evenAndOddHeaders !== void 0 && this.root.push(new B("w:evenAndOddHeaders", t.evenAndOddHeaders)), t.updateFields !== void 0 && this.root.push(new B("w:updateFields", t.updateFields)), this.root.push(new wa(Object.assign(Object.assign({}, (f = t.compatibility) !== null && f !== void 0 ? f : {}), { version: (tt = (J = (H = t.compatibility) === null || H === void 0 ? void 0 : H.version) !== null && J !== void 0 ? J : t.compatibilityModeVersion) !== null && tt !== void 0 ? tt : 15 })));
|
|
7381
7382
|
}
|
|
7382
7383
|
}
|
|
7383
7384
|
class Yn extends i {
|
|
@@ -7385,24 +7386,24 @@ Actual: ` + T.attribValue);
|
|
|
7385
7386
|
super(...arguments), this.xmlKeys = { val: "w:val" };
|
|
7386
7387
|
}
|
|
7387
7388
|
}
|
|
7388
|
-
class
|
|
7389
|
+
class xa extends r {
|
|
7389
7390
|
constructor(t) {
|
|
7390
7391
|
super("w:name"), this.root.push(new Yn({ val: t }));
|
|
7391
7392
|
}
|
|
7392
7393
|
}
|
|
7393
|
-
class
|
|
7394
|
+
class va extends r {
|
|
7394
7395
|
constructor(t) {
|
|
7395
7396
|
super("w:uiPriority"), this.root.push(new Yn({ val: (0, n.vH)(t) }));
|
|
7396
7397
|
}
|
|
7397
7398
|
}
|
|
7398
|
-
class
|
|
7399
|
+
class _a extends i {
|
|
7399
7400
|
constructor() {
|
|
7400
7401
|
super(...arguments), this.xmlKeys = { type: "w:type", styleId: "w:styleId", default: "w:default", customStyle: "w:customStyle" };
|
|
7401
7402
|
}
|
|
7402
7403
|
}
|
|
7403
7404
|
class Jn extends r {
|
|
7404
7405
|
constructor(t, f) {
|
|
7405
|
-
super("w:style"), this.root.push(new
|
|
7406
|
+
super("w:style"), this.root.push(new _a(t)), f.name && this.root.push(new xa(f.name)), f.basedOn && this.root.push(new G("w:basedOn", f.basedOn)), f.next && this.root.push(new G("w:next", f.next)), f.link && this.root.push(new G("w:link", f.link)), f.uiPriority !== void 0 && this.root.push(new va(f.uiPriority)), f.semiHidden !== void 0 && this.root.push(new B("w:semiHidden", f.semiHidden)), f.unhideWhenUsed !== void 0 && this.root.push(new B("w:unhideWhenUsed", f.unhideWhenUsed)), f.quickFormat !== void 0 && this.root.push(new B("w:qFormat", f.quickFormat));
|
|
7406
7407
|
}
|
|
7407
7408
|
}
|
|
7408
7409
|
class pe extends Jn {
|
|
@@ -7420,67 +7421,67 @@ Actual: ` + T.attribValue);
|
|
|
7420
7421
|
super(Object.assign(Object.assign({}, t), { basedOn: "Normal", next: "Normal", quickFormat: !0 }));
|
|
7421
7422
|
}
|
|
7422
7423
|
}
|
|
7423
|
-
class
|
|
7424
|
+
class Ea extends $t {
|
|
7424
7425
|
constructor(t) {
|
|
7425
7426
|
super(Object.assign(Object.assign({}, t), { id: "Title", name: "Title" }));
|
|
7426
7427
|
}
|
|
7427
7428
|
}
|
|
7428
|
-
class
|
|
7429
|
+
class Ta extends $t {
|
|
7429
7430
|
constructor(t) {
|
|
7430
7431
|
super(Object.assign(Object.assign({}, t), { id: "Heading1", name: "Heading 1" }));
|
|
7431
7432
|
}
|
|
7432
7433
|
}
|
|
7433
|
-
class
|
|
7434
|
+
class Aa extends $t {
|
|
7434
7435
|
constructor(t) {
|
|
7435
7436
|
super(Object.assign(Object.assign({}, t), { id: "Heading2", name: "Heading 2" }));
|
|
7436
7437
|
}
|
|
7437
7438
|
}
|
|
7438
|
-
class
|
|
7439
|
+
class Sa extends $t {
|
|
7439
7440
|
constructor(t) {
|
|
7440
7441
|
super(Object.assign(Object.assign({}, t), { id: "Heading3", name: "Heading 3" }));
|
|
7441
7442
|
}
|
|
7442
7443
|
}
|
|
7443
|
-
class
|
|
7444
|
+
class Ia extends $t {
|
|
7444
7445
|
constructor(t) {
|
|
7445
7446
|
super(Object.assign(Object.assign({}, t), { id: "Heading4", name: "Heading 4" }));
|
|
7446
7447
|
}
|
|
7447
7448
|
}
|
|
7448
|
-
class
|
|
7449
|
+
class Ra extends $t {
|
|
7449
7450
|
constructor(t) {
|
|
7450
7451
|
super(Object.assign(Object.assign({}, t), { id: "Heading5", name: "Heading 5" }));
|
|
7451
7452
|
}
|
|
7452
7453
|
}
|
|
7453
|
-
class
|
|
7454
|
+
class Na extends $t {
|
|
7454
7455
|
constructor(t) {
|
|
7455
7456
|
super(Object.assign(Object.assign({}, t), { id: "Heading6", name: "Heading 6" }));
|
|
7456
7457
|
}
|
|
7457
7458
|
}
|
|
7458
|
-
class
|
|
7459
|
+
class Ca extends $t {
|
|
7459
7460
|
constructor(t) {
|
|
7460
7461
|
super(Object.assign(Object.assign({}, t), { id: "Strong", name: "Strong" }));
|
|
7461
7462
|
}
|
|
7462
7463
|
}
|
|
7463
|
-
class
|
|
7464
|
+
class Oa extends pe {
|
|
7464
7465
|
constructor(t) {
|
|
7465
7466
|
super(Object.assign(Object.assign({}, t), { id: "ListParagraph", name: "List Paragraph", basedOn: "Normal", quickFormat: !0 }));
|
|
7466
7467
|
}
|
|
7467
7468
|
}
|
|
7468
|
-
class
|
|
7469
|
+
class ka extends pe {
|
|
7469
7470
|
constructor(t) {
|
|
7470
7471
|
super(Object.assign(Object.assign({}, t), { id: "FootnoteText", name: "footnote text", link: "FootnoteTextChar", basedOn: "Normal", uiPriority: 99, semiHidden: !0, unhideWhenUsed: !0, paragraph: { spacing: { after: 0, line: 240, lineRule: Jt.AUTO } }, run: { size: 20 } }));
|
|
7471
7472
|
}
|
|
7472
7473
|
}
|
|
7473
|
-
class
|
|
7474
|
+
class La extends de {
|
|
7474
7475
|
constructor(t) {
|
|
7475
7476
|
super(Object.assign(Object.assign({}, t), { id: "FootnoteReference", name: "footnote reference", basedOn: "DefaultParagraphFont", semiHidden: !0, run: { superScript: !0 } }));
|
|
7476
7477
|
}
|
|
7477
7478
|
}
|
|
7478
|
-
class
|
|
7479
|
+
class Da extends de {
|
|
7479
7480
|
constructor(t) {
|
|
7480
7481
|
super(Object.assign(Object.assign({}, t), { id: "FootnoteTextChar", name: "Footnote Text Char", basedOn: "DefaultParagraphFont", link: "FootnoteText", semiHidden: !0, run: { size: 20 } }));
|
|
7481
7482
|
}
|
|
7482
7483
|
}
|
|
7483
|
-
class
|
|
7484
|
+
class Pa extends de {
|
|
7484
7485
|
constructor(t) {
|
|
7485
7486
|
super(Object.assign(Object.assign({}, t), { id: "Hyperlink", name: "Hyperlink", basedOn: "DefaultParagraphFont", run: { color: "0563C1", underline: { type: x.SINGLE } } }));
|
|
7486
7487
|
}
|
|
@@ -7520,13 +7521,13 @@ Actual: ` + T.attribValue);
|
|
|
7520
7521
|
class ns {
|
|
7521
7522
|
newInstance(t = {}) {
|
|
7522
7523
|
var f;
|
|
7523
|
-
return { initialStyles: new Qt({ mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", Ignorable: "w14 w15" }), importedStyles: [new es((f = t.document) !== null && f !== void 0 ? f : {}), new
|
|
7524
|
+
return { initialStyles: new Qt({ mc: "http://schemas.openxmlformats.org/markup-compatibility/2006", r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships", w: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", w14: "http://schemas.microsoft.com/office/word/2010/wordml", w15: "http://schemas.microsoft.com/office/word/2012/wordml", Ignorable: "w14 w15" }), importedStyles: [new es((f = t.document) !== null && f !== void 0 ? f : {}), new Ea(Object.assign({ run: { size: 56 } }, t.title)), new Ta(Object.assign({ run: { color: "2E74B5", size: 32 } }, t.heading1)), new Aa(Object.assign({ run: { color: "2E74B5", size: 26 } }, t.heading2)), new Sa(Object.assign({ run: { color: "1F4D78", size: 24 } }, t.heading3)), new Ia(Object.assign({ run: { color: "2E74B5", italics: !0 } }, t.heading4)), new Ra(Object.assign({ run: { color: "2E74B5" } }, t.heading5)), new Na(Object.assign({ run: { color: "1F4D78" } }, t.heading6)), new Ca(Object.assign({ run: { bold: !0 } }, t.strong)), new Oa(t.listParagraph || {}), new Pa(t.hyperlink || {}), new La(t.footnoteReference || {}), new ka(t.footnoteText || {}), new Da(t.footnoteTextChar || {})] };
|
|
7524
7525
|
}
|
|
7525
7526
|
}
|
|
7526
7527
|
class ss {
|
|
7527
7528
|
constructor(t, f = {}) {
|
|
7528
|
-
var H, J, tt, ut, dt,
|
|
7529
|
-
if (this.currentRelationshipId = 1, this.headers = [], this.footers = [], this.coreProperties = new
|
|
7529
|
+
var H, J, tt, ut, dt, vt, pt;
|
|
7530
|
+
if (this.currentRelationshipId = 1, this.headers = [], this.footers = [], this.coreProperties = new Pi(Object.assign(Object.assign({}, t), { creator: (H = t.creator) !== null && H !== void 0 ? H : "Un-named", revision: (J = t.revision) !== null && J !== void 0 ? J : 1, lastModifiedBy: (tt = t.lastModifiedBy) !== null && tt !== void 0 ? tt : "Un-named" })), this.numbering = new Zn(t.numbering ? t.numbering : { config: [] }), this.comments = new Mr((ut = t.comments) !== null && ut !== void 0 ? ut : { children: [] }), this.fileRelationships = new le(), this.customProperties = new Hi((dt = t.customProperties) !== null && dt !== void 0 ? dt : []), this.appProperties = new Ci(), this.footnotesWrapper = new Yi(), this.contentTypes = new Di(), this.documentWrapper = new xn({ background: t.background }), this.settings = new ba({ compatibilityModeVersion: t.compatabilityModeVersion, compatibility: t.compatibility, evenAndOddHeaders: !!t.evenAndOddHeaderAndFooters, trackRevisions: (vt = t.features) === null || vt === void 0 ? void 0 : vt.trackRevisions, updateFields: (pt = t.features) === null || pt === void 0 ? void 0 : pt.updateFields }), this.media = f.template && f.template.media ? f.template.media : new lr(), f.template && (this.currentRelationshipId = f.template.currentRelationshipId + 1), f.template && t.externalStyles) throw Error("can not use both template and external styles");
|
|
7530
7531
|
if (f.template && f.template.styles) {
|
|
7531
7532
|
const gt = new rs();
|
|
7532
7533
|
this.styles = gt.newInstance(f.template.styles);
|
|
@@ -7611,44 +7612,44 @@ Actual: ` + T.attribValue);
|
|
|
7611
7612
|
return this.comments;
|
|
7612
7613
|
}
|
|
7613
7614
|
}
|
|
7614
|
-
const
|
|
7615
|
-
class
|
|
7615
|
+
const Fa = "";
|
|
7616
|
+
class Ba extends r {
|
|
7616
7617
|
constructor(t = {}) {
|
|
7617
7618
|
super("w:instrText"), this.properties = t, this.root.push(new L({ space: d.PRESERVE }));
|
|
7618
7619
|
let f = "TOC";
|
|
7619
7620
|
this.properties.captionLabel && (f = `${f} \\a "${this.properties.captionLabel}"`), this.properties.entriesFromBookmark && (f = `${f} \\b "${this.properties.entriesFromBookmark}"`), this.properties.captionLabelIncludingNumbers && (f = `${f} \\c "${this.properties.captionLabelIncludingNumbers}"`), this.properties.sequenceAndPageNumbersSeparator && (f = `${f} \\d "${this.properties.sequenceAndPageNumbersSeparator}"`), this.properties.tcFieldIdentifier && (f = `${f} \\f "${this.properties.tcFieldIdentifier}"`), this.properties.hyperlink && (f = `${f} \\h`), this.properties.tcFieldLevelRange && (f = `${f} \\l "${this.properties.tcFieldLevelRange}"`), this.properties.pageNumbersEntryLevelsRange && (f = `${f} \\n "${this.properties.pageNumbersEntryLevelsRange}"`), this.properties.headingStyleRange && (f = `${f} \\o "${this.properties.headingStyleRange}"`), this.properties.entryAndPageNumberSeparator && (f = `${f} \\p "${this.properties.entryAndPageNumberSeparator}"`), this.properties.seqFieldIdentifierForPrefix && (f = `${f} \\s "${this.properties.seqFieldIdentifierForPrefix}"`), this.properties.stylesWithLevels && this.properties.stylesWithLevels.length && (f = `${f} \\t "${this.properties.stylesWithLevels.map(((H) => `${H.styleName},${H.level}`)).join(",")}"`), this.properties.useAppliedParagraphOutlineLevel && (f = `${f} \\u`), this.properties.preserveTabInEntries && (f = `${f} \\w`), this.properties.preserveNewLineInEntries && (f = `${f} \\x`), this.properties.hideTabAndPageNumbersInWebView && (f = `${f} \\z`), this.root.push(f);
|
|
7620
7621
|
}
|
|
7621
7622
|
}
|
|
7622
|
-
class
|
|
7623
|
+
class Ma extends r {
|
|
7623
7624
|
constructor() {
|
|
7624
7625
|
super("w:sdtContent");
|
|
7625
7626
|
}
|
|
7626
7627
|
}
|
|
7627
|
-
class
|
|
7628
|
+
class Ua extends r {
|
|
7628
7629
|
constructor(t) {
|
|
7629
7630
|
super("w:sdtPr"), this.root.push(new G("w:alias", t));
|
|
7630
7631
|
}
|
|
7631
7632
|
}
|
|
7632
|
-
class
|
|
7633
|
+
class Ha extends r {
|
|
7633
7634
|
constructor(t = "Table of Contents", f) {
|
|
7634
|
-
super("w:sdt"), this.root.push(new
|
|
7635
|
-
const H = new
|
|
7635
|
+
super("w:sdt"), this.root.push(new Ua(t));
|
|
7636
|
+
const H = new Ma(), J = new jt({ children: [new Bt({ children: [new T(!0), new Ba(f), new o()] })] });
|
|
7636
7637
|
H.addChildElement(J);
|
|
7637
7638
|
const tt = new jt({ children: [new Bt({ children: [new v()] })] });
|
|
7638
7639
|
H.addChildElement(tt), this.root.push(H);
|
|
7639
7640
|
}
|
|
7640
7641
|
}
|
|
7641
|
-
class
|
|
7642
|
+
class za {
|
|
7642
7643
|
constructor(t, f) {
|
|
7643
7644
|
this.styleName = t, this.level = f;
|
|
7644
7645
|
}
|
|
7645
7646
|
}
|
|
7646
|
-
class
|
|
7647
|
+
class Wa {
|
|
7647
7648
|
constructor(t = { children: [] }) {
|
|
7648
7649
|
this.options = t;
|
|
7649
7650
|
}
|
|
7650
7651
|
}
|
|
7651
|
-
class
|
|
7652
|
+
class ja {
|
|
7652
7653
|
constructor(t = { children: [] }) {
|
|
7653
7654
|
this.options = t;
|
|
7654
7655
|
}
|
|
@@ -7663,27 +7664,27 @@ Actual: ` + T.attribValue);
|
|
|
7663
7664
|
super("w:footnoteReference"), this.root.push(new os({ id: t }));
|
|
7664
7665
|
}
|
|
7665
7666
|
}
|
|
7666
|
-
class
|
|
7667
|
+
class Ka extends Bt {
|
|
7667
7668
|
constructor(t) {
|
|
7668
7669
|
super({ style: "FootnoteReference" }), this.root.push(new is(t));
|
|
7669
7670
|
}
|
|
7670
7671
|
}
|
|
7671
|
-
class
|
|
7672
|
+
class Ga extends r {
|
|
7672
7673
|
constructor(t) {
|
|
7673
7674
|
super("w:ins"), this.root.push(new wt({ id: t.id, author: t.author, date: t.date })), this.addChildElement(new Yt(t));
|
|
7674
7675
|
}
|
|
7675
7676
|
}
|
|
7676
|
-
class
|
|
7677
|
+
class Va extends r {
|
|
7677
7678
|
constructor() {
|
|
7678
7679
|
super("w:delInstrText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push("PAGE");
|
|
7679
7680
|
}
|
|
7680
7681
|
}
|
|
7681
|
-
class
|
|
7682
|
+
class $a extends r {
|
|
7682
7683
|
constructor() {
|
|
7683
7684
|
super("w:delInstrText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push("NUMPAGES");
|
|
7684
7685
|
}
|
|
7685
7686
|
}
|
|
7686
|
-
class
|
|
7687
|
+
class Xa extends r {
|
|
7687
7688
|
constructor() {
|
|
7688
7689
|
super("w:delInstrText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push("SECTIONPAGES");
|
|
7689
7690
|
}
|
|
@@ -7693,23 +7694,23 @@ Actual: ` + T.attribValue);
|
|
|
7693
7694
|
super("w:delText"), this.root.push(new L({ space: d.PRESERVE })), this.root.push(t);
|
|
7694
7695
|
}
|
|
7695
7696
|
}
|
|
7696
|
-
class
|
|
7697
|
+
class qa extends r {
|
|
7697
7698
|
constructor(t) {
|
|
7698
|
-
super("w:del"), this.root.push(new wt({ id: t.id, author: t.author, date: t.date })), this.deletedTextRunWrapper = new
|
|
7699
|
+
super("w:del"), this.root.push(new wt({ id: t.id, author: t.author, date: t.date })), this.deletedTextRunWrapper = new Za(t), this.addChildElement(this.deletedTextRunWrapper);
|
|
7699
7700
|
}
|
|
7700
7701
|
}
|
|
7701
|
-
class
|
|
7702
|
+
class Za extends r {
|
|
7702
7703
|
constructor(t) {
|
|
7703
7704
|
if (super("w:r"), this.root.push(new Et(t)), t.children) for (const f of t.children) if (typeof f != "string") this.root.push(f);
|
|
7704
7705
|
else switch (f) {
|
|
7705
7706
|
case D.CURRENT:
|
|
7706
|
-
this.root.push(new T()), this.root.push(new
|
|
7707
|
+
this.root.push(new T()), this.root.push(new Va()), this.root.push(new o()), this.root.push(new v());
|
|
7707
7708
|
break;
|
|
7708
7709
|
case D.TOTAL_PAGES:
|
|
7709
|
-
this.root.push(new T()), this.root.push(new
|
|
7710
|
+
this.root.push(new T()), this.root.push(new $a()), this.root.push(new o()), this.root.push(new v());
|
|
7710
7711
|
break;
|
|
7711
7712
|
case D.TOTAL_PAGES_IN_SECTION:
|
|
7712
|
-
this.root.push(new T()), this.root.push(new
|
|
7713
|
+
this.root.push(new T()), this.root.push(new Xa()), this.root.push(new o()), this.root.push(new v());
|
|
7713
7714
|
break;
|
|
7714
7715
|
default:
|
|
7715
7716
|
this.root.push(new as(f));
|
|
@@ -7719,14 +7720,14 @@ Actual: ` + T.attribValue);
|
|
|
7719
7720
|
}
|
|
7720
7721
|
}
|
|
7721
7722
|
var mr = ct(6085), kt = ct(3479);
|
|
7722
|
-
class
|
|
7723
|
+
class Ya {
|
|
7723
7724
|
format(t, f = {}) {
|
|
7724
7725
|
const H = t.prepForXml(f);
|
|
7725
7726
|
if (H) return H;
|
|
7726
7727
|
throw Error("XMLComponent did not format correctly");
|
|
7727
7728
|
}
|
|
7728
7729
|
}
|
|
7729
|
-
class
|
|
7730
|
+
class Ja {
|
|
7730
7731
|
replace(t, f, H) {
|
|
7731
7732
|
let J = t;
|
|
7732
7733
|
return f.forEach(((tt, ut) => {
|
|
@@ -7737,7 +7738,7 @@ Actual: ` + T.attribValue);
|
|
|
7737
7738
|
return f.Array.filter(((H) => t.search(`{${H.fileName}}`) > 0));
|
|
7738
7739
|
}
|
|
7739
7740
|
}
|
|
7740
|
-
class
|
|
7741
|
+
class Qa {
|
|
7741
7742
|
replace(t, f) {
|
|
7742
7743
|
let H = t;
|
|
7743
7744
|
for (const J of f) H = H.replace(new RegExp(`{${J.reference}-${J.instance}}`, "g"), J.numId.toString());
|
|
@@ -7748,25 +7749,25 @@ Actual: ` + T.attribValue);
|
|
|
7748
7749
|
return new (f || (f = Promise))((function(J, tt) {
|
|
7749
7750
|
function ut(pt) {
|
|
7750
7751
|
try {
|
|
7751
|
-
|
|
7752
|
+
vt(H.next(pt));
|
|
7752
7753
|
} catch (gt) {
|
|
7753
7754
|
tt(gt);
|
|
7754
7755
|
}
|
|
7755
7756
|
}
|
|
7756
7757
|
function dt(pt) {
|
|
7757
7758
|
try {
|
|
7758
|
-
|
|
7759
|
+
vt(H.throw(pt));
|
|
7759
7760
|
} catch (gt) {
|
|
7760
7761
|
tt(gt);
|
|
7761
7762
|
}
|
|
7762
7763
|
}
|
|
7763
|
-
function
|
|
7764
|
+
function vt(pt) {
|
|
7764
7765
|
var gt;
|
|
7765
7766
|
pt.done ? J(pt.value) : (gt = pt.value, gt instanceof f ? gt : new f((function(Lt) {
|
|
7766
7767
|
Lt(gt);
|
|
7767
7768
|
}))).then(ut, dt);
|
|
7768
7769
|
}
|
|
7769
|
-
|
|
7770
|
+
vt((H = H.apply(e, [])).next());
|
|
7770
7771
|
}));
|
|
7771
7772
|
};
|
|
7772
7773
|
(function(e) {
|
|
@@ -7799,7 +7800,7 @@ Actual: ` + T.attribValue);
|
|
|
7799
7800
|
}
|
|
7800
7801
|
cs.compiler = new class {
|
|
7801
7802
|
constructor() {
|
|
7802
|
-
this.formatter = new
|
|
7803
|
+
this.formatter = new Ya(), this.imageReplacer = new Ja(), this.numberingReplacer = new Qa();
|
|
7803
7804
|
}
|
|
7804
7805
|
compile(e, t) {
|
|
7805
7806
|
const f = new mr(), H = this.xmlifyFile(e, t), J = new Map(Object.entries(H));
|
|
@@ -7823,19 +7824,19 @@ Actual: ` + T.attribValue);
|
|
|
7823
7824
|
return this.numberingReplacer.replace(tt, e.Numbering.ConcreteNumbering);
|
|
7824
7825
|
})(), path: "word/styles.xml" }, Properties: { data: kt(this.formatter.format(e.CoreProperties, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "docProps/core.xml" }, Numbering: { data: kt(this.formatter.format(e.Numbering, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "word/numbering.xml" }, FileRelationships: { data: kt(this.formatter.format(e.FileRelationships, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: "_rels/.rels" }, HeaderRelationships: e.Headers.map(((tt, ut) => {
|
|
7825
7826
|
const dt = kt(this.formatter.format(tt.View, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } });
|
|
7826
|
-
return this.imageReplacer.getMediaData(dt, e.Media).forEach(((
|
|
7827
|
-
tt.Relationships.createRelationship(pt, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${
|
|
7827
|
+
return this.imageReplacer.getMediaData(dt, e.Media).forEach(((vt, pt) => {
|
|
7828
|
+
tt.Relationships.createRelationship(pt, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${vt.fileName}`);
|
|
7828
7829
|
})), { data: kt(this.formatter.format(tt.Relationships, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: `word/_rels/header${ut + 1}.xml.rels` };
|
|
7829
7830
|
})), FooterRelationships: e.Footers.map(((tt, ut) => {
|
|
7830
7831
|
const dt = kt(this.formatter.format(tt.View, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } });
|
|
7831
|
-
return this.imageReplacer.getMediaData(dt, e.Media).forEach(((
|
|
7832
|
-
tt.Relationships.createRelationship(pt, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${
|
|
7832
|
+
return this.imageReplacer.getMediaData(dt, e.Media).forEach(((vt, pt) => {
|
|
7833
|
+
tt.Relationships.createRelationship(pt, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${vt.fileName}`);
|
|
7833
7834
|
})), { data: kt(this.formatter.format(tt.Relationships, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: `word/_rels/footer${ut + 1}.xml.rels` };
|
|
7834
7835
|
})), Headers: e.Headers.map(((tt, ut) => {
|
|
7835
|
-
const dt = kt(this.formatter.format(tt.View, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }),
|
|
7836
|
+
const dt = kt(this.formatter.format(tt.View, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), vt = this.imageReplacer.getMediaData(dt, e.Media), pt = this.imageReplacer.replace(dt, vt, 0);
|
|
7836
7837
|
return { data: this.numberingReplacer.replace(pt, e.Numbering.ConcreteNumbering), path: `word/header${ut + 1}.xml` };
|
|
7837
7838
|
})), Footers: e.Footers.map(((tt, ut) => {
|
|
7838
|
-
const dt = kt(this.formatter.format(tt.View, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }),
|
|
7839
|
+
const dt = kt(this.formatter.format(tt.View, { viewWrapper: tt, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), vt = this.imageReplacer.getMediaData(dt, e.Media), pt = this.imageReplacer.replace(dt, vt, 0);
|
|
7839
7840
|
return { data: this.numberingReplacer.replace(pt, e.Numbering.ConcreteNumbering), path: `word/footer${ut + 1}.xml` };
|
|
7840
7841
|
})), ContentTypes: { data: kt(this.formatter.format(e.ContentTypes, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: "[Content_Types].xml" }, CustomProperties: { data: kt(this.formatter.format(e.CustomProperties, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "docProps/custom.xml" }, AppProperties: { data: kt(this.formatter.format(e.AppProperties, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "docProps/app.xml" }, FootNotes: { data: kt(this.formatter.format(e.FootNotes.View, { viewWrapper: e.FootNotes, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: "word/footnotes.xml" }, FootNotesRelationships: { data: kt(this.formatter.format(e.FootNotes.Relationships, { viewWrapper: e.FootNotes, file: e }), { indent: t, declaration: { encoding: "UTF-8" } }), path: "word/_rels/footnotes.xml.rels" }, Settings: { data: kt(this.formatter.format(e.Settings, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "word/settings.xml" }, Comments: { data: kt(this.formatter.format(e.Comments, { viewWrapper: e.Document, file: e }), { indent: t, declaration: { standalone: "yes", encoding: "UTF-8" } }), path: "word/comments.xml" } };
|
|
7841
7842
|
}
|
|
@@ -7844,33 +7845,33 @@ Actual: ` + T.attribValue);
|
|
|
7844
7845
|
return new (f || (f = Promise))((function(J, tt) {
|
|
7845
7846
|
function ut(pt) {
|
|
7846
7847
|
try {
|
|
7847
|
-
|
|
7848
|
+
vt(H.next(pt));
|
|
7848
7849
|
} catch (gt) {
|
|
7849
7850
|
tt(gt);
|
|
7850
7851
|
}
|
|
7851
7852
|
}
|
|
7852
7853
|
function dt(pt) {
|
|
7853
7854
|
try {
|
|
7854
|
-
|
|
7855
|
+
vt(H.throw(pt));
|
|
7855
7856
|
} catch (gt) {
|
|
7856
7857
|
tt(gt);
|
|
7857
7858
|
}
|
|
7858
7859
|
}
|
|
7859
|
-
function
|
|
7860
|
+
function vt(pt) {
|
|
7860
7861
|
var gt;
|
|
7861
7862
|
pt.done ? J(pt.value) : (gt = pt.value, gt instanceof f ? gt : new f((function(Lt) {
|
|
7862
7863
|
Lt(gt);
|
|
7863
7864
|
}))).then(ut, dt);
|
|
7864
7865
|
}
|
|
7865
|
-
|
|
7866
|
+
vt((H = H.apply(e, [])).next());
|
|
7866
7867
|
}));
|
|
7867
7868
|
};
|
|
7868
|
-
const
|
|
7869
|
+
const tc = { "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header": "header", "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer": "footer", "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image": "image", "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink": "hyperlink" };
|
|
7869
7870
|
var Ie;
|
|
7870
7871
|
(function(e) {
|
|
7871
7872
|
e.HEADER = "header", e.FOOTER = "footer", e.IMAGE = "image", e.HYPERLINK = "hyperlink";
|
|
7872
7873
|
})(Ie || (Ie = {}));
|
|
7873
|
-
class
|
|
7874
|
+
class ec {
|
|
7874
7875
|
extract(t) {
|
|
7875
7876
|
return oe(this, void 0, void 0, (function* () {
|
|
7876
7877
|
const f = yield mr.loadAsync(t), H = yield f.files["word/document.xml"].async("text"), J = yield f.files["word/_rels/document.xml.rels"].async("text"), tt = this.extractDocumentRefs(H), ut = this.findReferenceFiles(J), dt = new lr();
|
|
@@ -7879,12 +7880,12 @@ Actual: ` + T.attribValue);
|
|
|
7879
7880
|
}
|
|
7880
7881
|
createFooters(t, f, H, J, tt) {
|
|
7881
7882
|
return oe(this, void 0, void 0, (function* () {
|
|
7882
|
-
const ut = f.footers.map(((dt,
|
|
7883
|
+
const ut = f.footers.map(((dt, vt) => oe(this, void 0, void 0, (function* () {
|
|
7883
7884
|
const pt = H.find(((Pt) => Pt.id === dt.id));
|
|
7884
7885
|
if (pt === null || !pt) throw new Error(`Can not find target file for id ${dt.id}`);
|
|
7885
7886
|
const gt = yield t.files[`word/${pt.target}`].async("text"), Lt = (0, g.xml2js)(gt, { compact: !1, captureSpacesBetweenElements: !0 });
|
|
7886
7887
|
if (!Lt.elements) return;
|
|
7887
|
-
const St = Lt.elements.reduce(((Pt, Kt) => Kt.name === "w:ftr" ? Kt : Pt)), Dt = I(St), zt = new ar(J, tt +
|
|
7888
|
+
const St = Lt.elements.reduce(((Pt, Kt) => Kt.name === "w:ftr" ? Kt : Pt)), Dt = I(St), zt = new ar(J, tt + vt, Dt);
|
|
7888
7889
|
return yield this.addRelationshipToWrapper(pt, t, zt, J), { type: dt.type, footer: zt };
|
|
7889
7890
|
})))).filter(((dt) => !!dt));
|
|
7890
7891
|
return Promise.all(ut);
|
|
@@ -7892,12 +7893,12 @@ Actual: ` + T.attribValue);
|
|
|
7892
7893
|
}
|
|
7893
7894
|
createHeaders(t, f, H, J, tt) {
|
|
7894
7895
|
return oe(this, void 0, void 0, (function* () {
|
|
7895
|
-
const ut = f.headers.map(((dt,
|
|
7896
|
+
const ut = f.headers.map(((dt, vt) => oe(this, void 0, void 0, (function* () {
|
|
7896
7897
|
const pt = H.find(((Pt) => Pt.id === dt.id));
|
|
7897
7898
|
if (pt === null || !pt) throw new Error(`Can not find target file for id ${dt.id}`);
|
|
7898
7899
|
const gt = yield t.files[`word/${pt.target}`].async("text"), Lt = (0, g.xml2js)(gt, { compact: !1, captureSpacesBetweenElements: !0 });
|
|
7899
7900
|
if (!Lt.elements) return;
|
|
7900
|
-
const St = Lt.elements.reduce(((Pt, Kt) => Kt.name === "w:hdr" ? Kt : Pt)), Dt = I(St), zt = new ur(J, tt +
|
|
7901
|
+
const St = Lt.elements.reduce(((Pt, Kt) => Kt.name === "w:hdr" ? Kt : Pt)), Dt = I(St), zt = new ur(J, tt + vt, Dt);
|
|
7901
7902
|
return yield this.addRelationshipToWrapper(pt, t, zt, J), { type: dt.type, header: zt };
|
|
7902
7903
|
})))).filter(((dt) => !!dt));
|
|
7903
7904
|
return Promise.all(ut);
|
|
@@ -7907,33 +7908,33 @@ Actual: ` + T.attribValue);
|
|
|
7907
7908
|
return oe(this, void 0, void 0, (function* () {
|
|
7908
7909
|
const tt = f.files[`word/_rels/${t.target}.rels`];
|
|
7909
7910
|
if (!tt) return;
|
|
7910
|
-
const ut = yield tt.async("text"), dt = this.findReferenceFiles(ut).filter(((pt) => pt.type === Ie.IMAGE)),
|
|
7911
|
+
const ut = yield tt.async("text"), dt = this.findReferenceFiles(ut).filter(((pt) => pt.type === Ie.IMAGE)), vt = this.findReferenceFiles(ut).filter(((pt) => pt.type === Ie.HYPERLINK));
|
|
7911
7912
|
for (const pt of dt) {
|
|
7912
7913
|
const gt = mr.support.arraybuffer ? "arraybuffer" : "nodebuffer", Lt = yield f.files[`word/${pt.target}`].async(gt), St = J.addMedia(Lt, { width: 100, height: 100 });
|
|
7913
7914
|
H.Relationships.createRelationship(pt.id, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", `media/${St.fileName}`);
|
|
7914
7915
|
}
|
|
7915
|
-
for (const pt of
|
|
7916
|
+
for (const pt of vt) H.Relationships.createRelationship(pt.id, "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", pt.target, be.EXTERNAL);
|
|
7916
7917
|
}));
|
|
7917
7918
|
}
|
|
7918
7919
|
findReferenceFiles(t) {
|
|
7919
7920
|
const f = (0, g.xml2js)(t, { compact: !0 });
|
|
7920
7921
|
return (Array.isArray(f.Relationships.Relationship) ? f.Relationships.Relationship : [f.Relationships.Relationship]).map(((H) => {
|
|
7921
7922
|
if (H._attributes === void 0) throw Error("relationship element has no attributes");
|
|
7922
|
-
return { id: this.parseRefId(H._attributes.Id), type:
|
|
7923
|
+
return { id: this.parseRefId(H._attributes.Id), type: tc[H._attributes.Type], target: H._attributes.Target };
|
|
7923
7924
|
})).filter(((H) => H.type !== null));
|
|
7924
7925
|
}
|
|
7925
7926
|
extractDocumentRefs(t) {
|
|
7926
7927
|
const f = (0, g.xml2js)(t, { compact: !0 })["w:document"]["w:body"]["w:sectPr"], H = f["w:headerReference"];
|
|
7927
7928
|
let J;
|
|
7928
7929
|
J = H === void 0 ? [] : Array.isArray(H) ? H : [H];
|
|
7929
|
-
const tt = J.map(((
|
|
7930
|
-
if (
|
|
7931
|
-
return { type:
|
|
7930
|
+
const tt = J.map(((vt) => {
|
|
7931
|
+
if (vt._attributes === void 0) throw Error("header reference element has no attributes");
|
|
7932
|
+
return { type: vt._attributes["w:type"], id: this.parseRefId(vt._attributes["r:id"]) };
|
|
7932
7933
|
})), ut = f["w:footerReference"];
|
|
7933
7934
|
let dt;
|
|
7934
|
-
return dt = ut === void 0 ? [] : Array.isArray(ut) ? ut : [ut], { headers: tt, footers: dt.map(((
|
|
7935
|
-
if (
|
|
7936
|
-
return { type:
|
|
7935
|
+
return dt = ut === void 0 ? [] : Array.isArray(ut) ? ut : [ut], { headers: tt, footers: dt.map(((vt) => {
|
|
7936
|
+
if (vt._attributes === void 0) throw Error("footer reference element has no attributes");
|
|
7937
|
+
return { type: vt._attributes["w:type"], id: this.parseRefId(vt._attributes["r:id"]) };
|
|
7937
7938
|
})) };
|
|
7938
7939
|
}
|
|
7939
7940
|
checkIfTitlePageIsDefined(t) {
|
|
@@ -7950,24 +7951,24 @@ Actual: ` + T.attribValue);
|
|
|
7950
7951
|
})()));
|
|
7951
7952
|
})(wr)), wr.exports;
|
|
7952
7953
|
}
|
|
7953
|
-
var Nt =
|
|
7954
|
+
var Nt = ac();
|
|
7954
7955
|
let yr = null, br = null, xr = null;
|
|
7955
|
-
async function
|
|
7956
|
+
async function cc() {
|
|
7956
7957
|
return yr || (yr = import("./index-Di1ZqIDs.mjs").then((bt) => bt.i)), yr;
|
|
7957
7958
|
}
|
|
7958
|
-
async function
|
|
7959
|
+
async function uc() {
|
|
7959
7960
|
return br || (br = import("./jspdf.es.min-BCzHIwvz.mjs").then((bt) => bt.j)), br;
|
|
7960
7961
|
}
|
|
7961
|
-
async function
|
|
7962
|
+
async function lc() {
|
|
7962
7963
|
return xr || (xr = import("./html2canvas.esm-BWVIUcAF.mjs")), xr;
|
|
7963
7964
|
}
|
|
7964
|
-
async function
|
|
7965
|
-
const
|
|
7965
|
+
async function _c(bt) {
|
|
7966
|
+
const _t = await cc();
|
|
7966
7967
|
return new Promise((ot, mt) => {
|
|
7967
7968
|
const ct = new FileReader();
|
|
7968
7969
|
ct.onload = async (xt) => {
|
|
7969
7970
|
try {
|
|
7970
|
-
const z = xt.target?.result, P = await
|
|
7971
|
+
const z = xt.target?.result, P = await _t.convertToHtml({ arrayBuffer: z });
|
|
7971
7972
|
ot(P.value);
|
|
7972
7973
|
} catch (z) {
|
|
7973
7974
|
mt(new Error(`Failed to import Word document: ${z}`));
|
|
@@ -7975,10 +7976,10 @@ async function xc(bt) {
|
|
|
7975
7976
|
}, ct.onerror = () => mt(new Error("Failed to read file")), ct.readAsArrayBuffer(bt);
|
|
7976
7977
|
});
|
|
7977
7978
|
}
|
|
7978
|
-
async function
|
|
7979
|
-
const mt =
|
|
7979
|
+
async function Ec(bt, _t = "document.docx") {
|
|
7980
|
+
const mt = sc().useClientSideFallback ?? !0;
|
|
7980
7981
|
try {
|
|
7981
|
-
const ct =
|
|
7982
|
+
const ct = oc("exportWord"), xt = ic(), z = await fetch(ct, {
|
|
7982
7983
|
method: "POST",
|
|
7983
7984
|
headers: {
|
|
7984
7985
|
"Content-Type": "application/json",
|
|
@@ -7986,7 +7987,7 @@ async function vc(bt, vt = "document.docx") {
|
|
|
7986
7987
|
},
|
|
7987
7988
|
body: JSON.stringify({
|
|
7988
7989
|
htmlContent: bt,
|
|
7989
|
-
filename:
|
|
7990
|
+
filename: _t
|
|
7990
7991
|
})
|
|
7991
7992
|
});
|
|
7992
7993
|
if (!z.ok) {
|
|
@@ -7994,13 +7995,13 @@ async function vc(bt, vt = "document.docx") {
|
|
|
7994
7995
|
throw new Error(r.error || "Failed to export document");
|
|
7995
7996
|
}
|
|
7996
7997
|
const P = await z.blob();
|
|
7997
|
-
ws(P,
|
|
7998
|
+
ws(P, _t);
|
|
7998
7999
|
} catch (ct) {
|
|
7999
8000
|
if (mt) {
|
|
8000
8001
|
console.warn("API export failed, falling back to client-side generation:", ct);
|
|
8001
8002
|
try {
|
|
8002
|
-
const xt =
|
|
8003
|
-
ws(z,
|
|
8003
|
+
const xt = hc(bt), z = await Nt.Packer.toBlob(xt);
|
|
8004
|
+
ws(z, _t), console.info("✅ Document exported successfully using client-side generation");
|
|
8004
8005
|
} catch (xt) {
|
|
8005
8006
|
throw new Error(`Failed to export to Word (both API and client-side): ${xt}`);
|
|
8006
8007
|
}
|
|
@@ -8008,9 +8009,9 @@ async function vc(bt, vt = "document.docx") {
|
|
|
8008
8009
|
throw new Error(`Failed to export to Word via API: ${ct}`);
|
|
8009
8010
|
}
|
|
8010
8011
|
}
|
|
8011
|
-
async function
|
|
8012
|
+
async function Tc(bt, _t = "document.pdf", ot) {
|
|
8012
8013
|
try {
|
|
8013
|
-
const ct = (await
|
|
8014
|
+
const ct = (await uc()).default, xt = new ct({
|
|
8014
8015
|
orientation: "portrait",
|
|
8015
8016
|
unit: "mm",
|
|
8016
8017
|
format: "a4"
|
|
@@ -8019,7 +8020,7 @@ async function _c(bt, vt = "document.pdf", ot) {
|
|
|
8019
8020
|
const l = ot.style.position, g = ot.style.overflow, I = ot.style.height, p = ot.style.maxHeight;
|
|
8020
8021
|
ot.style.position = "relative", ot.style.overflow = "visible", ot.style.height = "auto", ot.style.maxHeight = "none", ot.offsetHeight;
|
|
8021
8022
|
try {
|
|
8022
|
-
const N = (await
|
|
8023
|
+
const N = (await lc()).default, _ = await N(ot, {
|
|
8023
8024
|
scale: 2,
|
|
8024
8025
|
// High quality rendering
|
|
8025
8026
|
useCORS: !0,
|
|
@@ -8062,25 +8063,23 @@ async function _c(bt, vt = "document.pdf", ot) {
|
|
|
8062
8063
|
throw ot.style.position = l, ot.style.overflow = g, ot.style.height = I, ot.style.maxHeight = p, S;
|
|
8063
8064
|
}
|
|
8064
8065
|
} else {
|
|
8065
|
-
const l =
|
|
8066
|
+
const l = bc(bt).split(`
|
|
8066
8067
|
`);
|
|
8067
8068
|
let g = z;
|
|
8068
8069
|
l.forEach((I) => {
|
|
8069
8070
|
g > r - z && (xt.addPage(), g = z), xt.text(I, z, g), g += 7;
|
|
8070
8071
|
});
|
|
8071
8072
|
}
|
|
8072
|
-
xt.save(
|
|
8073
|
+
xt.save(_t);
|
|
8073
8074
|
} catch (mt) {
|
|
8074
8075
|
throw new Error(`Failed to export to PDF: ${mt}`);
|
|
8075
8076
|
}
|
|
8076
8077
|
}
|
|
8077
|
-
function
|
|
8078
|
-
const
|
|
8079
|
-
|
|
8080
|
-
const ot = [];
|
|
8081
|
-
return Array.from(vt.children).forEach((mt) => {
|
|
8078
|
+
function hc(bt) {
|
|
8079
|
+
const _t = ys(bt), ot = [];
|
|
8080
|
+
return Array.from(_t.children).forEach((mt) => {
|
|
8082
8081
|
const ct = mt.tagName;
|
|
8083
|
-
ct.match(/^H[1-6]$/) ? ot.push(
|
|
8082
|
+
ct.match(/^H[1-6]$/) ? ot.push(pc(mt)) : ct === "P" ? ot.push(ms(mt)) : ct === "TABLE" ? ot.push(wc(mt)) : ct === "UL" || ct === "OL" ? ot.push(...yc(mt, ct === "OL")) : ct === "BLOCKQUOTE" ? ot.push(dc(mt)) : ct === "PRE" || ct === "CODE" ? ot.push(fc(mt)) : ct === "HR" ? ot.push(mc()) : mt.textContent?.trim() && ot.push(ms(mt));
|
|
8084
8083
|
}), ot.length === 0 && ot.push(new Nt.Paragraph({ children: [new Nt.TextRun({ text: "" })] })), new Nt.Document({
|
|
8085
8084
|
sections: [{
|
|
8086
8085
|
properties: {},
|
|
@@ -8088,8 +8087,8 @@ function lc(bt) {
|
|
|
8088
8087
|
}]
|
|
8089
8088
|
});
|
|
8090
8089
|
}
|
|
8091
|
-
function
|
|
8092
|
-
const
|
|
8090
|
+
function pc(bt) {
|
|
8091
|
+
const _t = parseInt(bt.tagName.charAt(1)), ot = fe(bt), mt = bs(bt), ct = {
|
|
8093
8092
|
1: 32,
|
|
8094
8093
|
// 16pt
|
|
8095
8094
|
2: 28,
|
|
@@ -8107,12 +8106,12 @@ function hc(bt) {
|
|
|
8107
8106
|
children: ot.map((xt) => {
|
|
8108
8107
|
const z = new Nt.TextRun({
|
|
8109
8108
|
text: xt.text,
|
|
8110
|
-
bold: xt.bold ||
|
|
8109
|
+
bold: xt.bold || _t <= 3,
|
|
8111
8110
|
// H1-H3 are bold by default
|
|
8112
8111
|
italics: xt.italic,
|
|
8113
8112
|
underline: xt.underline ? {} : void 0,
|
|
8114
8113
|
color: xt.color,
|
|
8115
|
-
size: ct[
|
|
8114
|
+
size: ct[_t],
|
|
8116
8115
|
font: xt.font
|
|
8117
8116
|
});
|
|
8118
8117
|
return xt.link ? new Nt.TextRun({
|
|
@@ -8120,15 +8119,15 @@ function hc(bt) {
|
|
|
8120
8119
|
style: "Hyperlink"
|
|
8121
8120
|
}) : z;
|
|
8122
8121
|
}),
|
|
8123
|
-
heading: `Heading${
|
|
8122
|
+
heading: `Heading${_t}`,
|
|
8124
8123
|
alignment: mt,
|
|
8125
8124
|
spacing: { before: 240, after: 120 }
|
|
8126
8125
|
});
|
|
8127
8126
|
}
|
|
8128
8127
|
function ms(bt) {
|
|
8129
|
-
const
|
|
8128
|
+
const _t = fe(bt), ot = bs(bt), mt = gc(bt);
|
|
8130
8129
|
return new Nt.Paragraph({
|
|
8131
|
-
children:
|
|
8130
|
+
children: _t.map((ct) => {
|
|
8132
8131
|
const xt = {
|
|
8133
8132
|
text: ct.text,
|
|
8134
8133
|
bold: ct.bold,
|
|
@@ -8146,10 +8145,10 @@ function ms(bt) {
|
|
|
8146
8145
|
indent: mt
|
|
8147
8146
|
});
|
|
8148
8147
|
}
|
|
8149
|
-
function
|
|
8150
|
-
const
|
|
8148
|
+
function dc(bt) {
|
|
8149
|
+
const _t = fe(bt);
|
|
8151
8150
|
return new Nt.Paragraph({
|
|
8152
|
-
children:
|
|
8151
|
+
children: _t.map((ot) => new Nt.TextRun({
|
|
8153
8152
|
text: ot.text,
|
|
8154
8153
|
bold: ot.bold,
|
|
8155
8154
|
italics: ot.italic || !0,
|
|
@@ -8170,12 +8169,12 @@ function pc(bt) {
|
|
|
8170
8169
|
}
|
|
8171
8170
|
});
|
|
8172
8171
|
}
|
|
8173
|
-
function
|
|
8174
|
-
const
|
|
8172
|
+
function fc(bt) {
|
|
8173
|
+
const _t = bt.textContent || "";
|
|
8175
8174
|
return new Nt.Paragraph({
|
|
8176
8175
|
children: [
|
|
8177
8176
|
new Nt.TextRun({
|
|
8178
|
-
text:
|
|
8177
|
+
text: _t,
|
|
8179
8178
|
font: "Courier New",
|
|
8180
8179
|
size: 20
|
|
8181
8180
|
// 10pt
|
|
@@ -8191,7 +8190,7 @@ function dc(bt) {
|
|
|
8191
8190
|
spacing: { before: 120, after: 120 }
|
|
8192
8191
|
});
|
|
8193
8192
|
}
|
|
8194
|
-
function
|
|
8193
|
+
function mc() {
|
|
8195
8194
|
return new Nt.Paragraph({
|
|
8196
8195
|
children: [new Nt.TextRun({ text: "" })],
|
|
8197
8196
|
border: {
|
|
@@ -8206,11 +8205,11 @@ function fc() {
|
|
|
8206
8205
|
});
|
|
8207
8206
|
}
|
|
8208
8207
|
function fe(bt) {
|
|
8209
|
-
const
|
|
8208
|
+
const _t = [];
|
|
8210
8209
|
function ot(mt, ct = {}) {
|
|
8211
8210
|
if (mt.nodeType === Node.TEXT_NODE) {
|
|
8212
8211
|
const xt = mt.textContent || "";
|
|
8213
|
-
(xt.trim() || xt.includes(" ")) &&
|
|
8212
|
+
(xt.trim() || xt.includes(" ")) && _t.push({
|
|
8214
8213
|
text: xt,
|
|
8215
8214
|
...ct
|
|
8216
8215
|
});
|
|
@@ -8221,7 +8220,7 @@ function fe(bt) {
|
|
|
8221
8220
|
a && (z.link = a, z.color = "0563C1", z.underline = !0);
|
|
8222
8221
|
}
|
|
8223
8222
|
if (P === "BR") {
|
|
8224
|
-
|
|
8223
|
+
_t.push({ text: `
|
|
8225
8224
|
`, ...ct });
|
|
8226
8225
|
return;
|
|
8227
8226
|
}
|
|
@@ -8234,16 +8233,16 @@ function fe(bt) {
|
|
|
8234
8233
|
r.fontFamily && (z.font = r.fontFamily.replace(/['"]/g, "").split(",")[0].trim()), Array.from(xt.childNodes).forEach((a) => ot(a, z));
|
|
8235
8234
|
}
|
|
8236
8235
|
}
|
|
8237
|
-
return Array.from(bt.childNodes).forEach((mt) => ot(mt)),
|
|
8236
|
+
return Array.from(bt.childNodes).forEach((mt) => ot(mt)), _t.length === 0 && bt.textContent?.trim() && _t.push({ text: bt.textContent.trim() }), _t;
|
|
8238
8237
|
}
|
|
8239
|
-
function
|
|
8238
|
+
function bs(bt) {
|
|
8240
8239
|
const ot = bt.style.textAlign;
|
|
8241
8240
|
if (ot === "center") return "center";
|
|
8242
8241
|
if (ot === "right") return "right";
|
|
8243
8242
|
if (ot === "justify") return "justify";
|
|
8244
8243
|
if (ot === "left") return "left";
|
|
8245
8244
|
}
|
|
8246
|
-
function
|
|
8245
|
+
function gc(bt) {
|
|
8247
8246
|
const ot = bt.style, mt = {};
|
|
8248
8247
|
if (ot.marginLeft || ot.paddingLeft) {
|
|
8249
8248
|
const ct = parseInt(ot.marginLeft || ot.paddingLeft);
|
|
@@ -8258,9 +8257,9 @@ function mc(bt) {
|
|
|
8258
8257
|
function gs(bt) {
|
|
8259
8258
|
if (bt.startsWith("#"))
|
|
8260
8259
|
return bt.substring(1).toUpperCase();
|
|
8261
|
-
const
|
|
8262
|
-
if (
|
|
8263
|
-
const mt = parseInt(
|
|
8260
|
+
const _t = bt.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);
|
|
8261
|
+
if (_t) {
|
|
8262
|
+
const mt = parseInt(_t[1]), ct = parseInt(_t[2]), xt = parseInt(_t[3]);
|
|
8264
8263
|
return (mt << 16 | ct << 8 | xt).toString(16).padStart(6, "0").toUpperCase();
|
|
8265
8264
|
}
|
|
8266
8265
|
return {
|
|
@@ -8276,8 +8275,8 @@ function gs(bt) {
|
|
|
8276
8275
|
grey: "808080"
|
|
8277
8276
|
}[bt.toLowerCase()] || "000000";
|
|
8278
8277
|
}
|
|
8279
|
-
function
|
|
8280
|
-
const
|
|
8278
|
+
function wc(bt) {
|
|
8279
|
+
const _t = [];
|
|
8281
8280
|
return bt.querySelectorAll("tr").forEach((mt) => {
|
|
8282
8281
|
const ct = [];
|
|
8283
8282
|
mt.querySelectorAll("td, th").forEach((z) => {
|
|
@@ -8310,9 +8309,9 @@ function gc(bt) {
|
|
|
8310
8309
|
} : void 0
|
|
8311
8310
|
})
|
|
8312
8311
|
);
|
|
8313
|
-
}),
|
|
8312
|
+
}), _t.push(new Nt.TableRow({ children: ct }));
|
|
8314
8313
|
}), new Nt.Table({
|
|
8315
|
-
rows:
|
|
8314
|
+
rows: _t,
|
|
8316
8315
|
width: {
|
|
8317
8316
|
size: 100,
|
|
8318
8317
|
type: "pct"
|
|
@@ -8320,10 +8319,10 @@ function gc(bt) {
|
|
|
8320
8319
|
}
|
|
8321
8320
|
});
|
|
8322
8321
|
}
|
|
8323
|
-
function
|
|
8322
|
+
function yc(bt, _t = !1) {
|
|
8324
8323
|
const ot = [];
|
|
8325
8324
|
return bt.querySelectorAll("li").forEach((ct, xt) => {
|
|
8326
|
-
const z = fe(ct), P =
|
|
8325
|
+
const z = fe(ct), P = _t ? `${xt + 1}.` : "•";
|
|
8327
8326
|
ot.push(
|
|
8328
8327
|
new Nt.Paragraph({
|
|
8329
8328
|
children: [
|
|
@@ -8353,17 +8352,16 @@ function wc(bt, vt = !1) {
|
|
|
8353
8352
|
);
|
|
8354
8353
|
}), ot;
|
|
8355
8354
|
}
|
|
8356
|
-
function
|
|
8357
|
-
|
|
8358
|
-
return vt.innerHTML = bt, vt.textContent || vt.innerText || "";
|
|
8355
|
+
function bc(bt) {
|
|
8356
|
+
return ys(bt).textContent || "";
|
|
8359
8357
|
}
|
|
8360
|
-
function ws(bt,
|
|
8358
|
+
function ws(bt, _t) {
|
|
8361
8359
|
const ot = URL.createObjectURL(bt), mt = document.createElement("a");
|
|
8362
|
-
mt.href = ot, mt.download =
|
|
8360
|
+
mt.href = ot, mt.download = _t, document.body.appendChild(mt), mt.click(), document.body.removeChild(mt), URL.revokeObjectURL(ot);
|
|
8363
8361
|
}
|
|
8364
8362
|
export {
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8363
|
+
Tc as exportToPdf,
|
|
8364
|
+
Ec as exportToWord,
|
|
8365
|
+
hc as htmlToDocx,
|
|
8366
|
+
_c as importFromWord
|
|
8369
8367
|
};
|