ooxml-core 1.50.2 → 1.51.1
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/README.md +11 -0
- package/dist/{PptxHandler-PVQW47CY.mjs → PptxHandler-6GRVJRHP.mjs} +2 -2
- package/dist/PptxHandler-E6QYPF7X.mjs +8 -0
- package/dist/PptxHandler-UNQVCIGM.cjs +17 -0
- package/dist/PresentationBuilder-DVDJSV5R.mjs +8 -0
- package/dist/PresentationBuilder-F5UWRF6H.cjs +25 -0
- package/dist/{PresentationBuilder-ZOOVSBPR.mjs → PresentationBuilder-T6YKWPF7.mjs} +2 -2
- package/dist/automation/index.cjs +5806 -4494
- package/dist/automation/index.mjs +5806 -4494
- package/dist/chunk-25IJEN7R.cjs +36 -0
- package/dist/chunk-25JN3ZQM.mjs +58 -0
- package/dist/{chunk-7XYVFUB3.cjs → chunk-2IO523MM.cjs} +1 -0
- package/dist/{chunk-53KMIHYN.mjs → chunk-4LUZHBTT.mjs} +83 -31
- package/dist/chunk-554UZLPS.mjs +237 -0
- package/dist/{chunk-VLKUMQGT.mjs → chunk-63RAF3TS.mjs} +1 -1
- package/dist/{chunk-7UM5IFPR.mjs → chunk-6IUYKP77.mjs} +1 -1
- package/dist/{chunk-VK2G4BGX.mjs → chunk-BIMV5FVL.mjs} +481 -193
- package/dist/{chunk-CODMW5KF.cjs → chunk-CVUMILG3.cjs} +1 -0
- package/dist/{chunk-NBMXEVHL.mjs → chunk-FX6WL42B.mjs} +1 -0
- package/dist/chunk-GI4Y6BBX.mjs +21 -0
- package/dist/{chunk-MX2GFMZS.mjs → chunk-GZL4ERW3.mjs} +1 -1
- package/dist/chunk-HWL2AGLD.cjs +98 -0
- package/dist/chunk-HZAB3YDO.cjs +234 -0
- package/dist/chunk-IDATIFCG.mjs +226 -0
- package/dist/chunk-LO55N7VL.cjs +247 -0
- package/dist/{chunk-FFLU4LUQ.cjs → chunk-LUBPW5NP.cjs} +1629 -1609
- package/dist/chunk-MUNEIE2J.cjs +62 -0
- package/dist/{chunk-ZCKEKP7N.mjs → chunk-RYUADJV6.mjs} +4 -4
- package/dist/chunk-TOBK5FC4.mjs +88 -0
- package/dist/chunk-UV4LMGVZ.mjs +31 -0
- package/dist/{chunk-O3YGBYGZ.mjs → chunk-VRVHM6TJ.mjs} +1 -0
- package/dist/chunk-W7LVJC32.cjs +25 -0
- package/dist/chunk-WAZ7T2BL.cjs +169 -0
- package/dist/{chunk-3OKY56UM.mjs → chunk-YX33WEKS.mjs} +411 -391
- package/dist/docx/auto-number-fields.d.ts +22 -0
- package/dist/docx/auto-number-fields.d.ts.map +1 -0
- package/dist/docx/block-parser.d.ts.map +1 -1
- package/dist/docx/character-styles.d.ts.map +1 -1
- package/dist/docx/clipboard/css.d.ts +21 -0
- package/dist/docx/clipboard/css.d.ts.map +1 -0
- package/dist/docx/clipboard/html-tokens.d.ts +38 -0
- package/dist/docx/clipboard/html-tokens.d.ts.map +1 -0
- package/dist/docx/clipboard/index.d.ts +6 -0
- package/dist/docx/clipboard/index.d.ts.map +1 -0
- package/dist/docx/clipboard/word-fields.d.ts +13 -0
- package/dist/docx/clipboard/word-fields.d.ts.map +1 -0
- package/dist/docx/clipboard/word-fragment.d.ts +14 -0
- package/dist/docx/clipboard/word-fragment.d.ts.map +1 -0
- package/dist/docx/clipboard/word-html.d.ts +22 -0
- package/dist/docx/clipboard/word-html.d.ts.map +1 -0
- package/dist/docx/clipboard/word-list-scan.d.ts +25 -0
- package/dist/docx/clipboard/word-list-scan.d.ts.map +1 -0
- package/dist/docx/clipboard/word-lists.d.ts +13 -0
- package/dist/docx/clipboard/word-lists.d.ts.map +1 -0
- package/dist/docx/clipboard/word-runs.d.ts +18 -0
- package/dist/docx/clipboard/word-runs.d.ts.map +1 -0
- package/dist/docx/clipboard/word-styles.d.ts +35 -0
- package/dist/docx/clipboard/word-styles.d.ts.map +1 -0
- package/dist/docx/compare/build.d.ts +48 -0
- package/dist/docx/compare/build.d.ts.map +1 -0
- package/dist/docx/compare/compare.d.ts +18 -0
- package/dist/docx/compare/compare.d.ts.map +1 -0
- package/dist/docx/compare/context.d.ts +42 -0
- package/dist/docx/compare/context.d.ts.map +1 -0
- package/dist/docx/compare/diff.d.ts +20 -0
- package/dist/docx/compare/diff.d.ts.map +1 -0
- package/dist/docx/compare/index.d.ts +4 -0
- package/dist/docx/compare/index.d.ts.map +1 -0
- package/dist/docx/compare/slide.d.ts +9 -0
- package/dist/docx/compare/slide.d.ts.map +1 -0
- package/dist/docx/compare/spans.d.ts +13 -0
- package/dist/docx/compare/spans.d.ts.map +1 -0
- package/dist/docx/compare/story.d.ts +7 -0
- package/dist/docx/compare/story.d.ts.map +1 -0
- package/dist/docx/compare/table.d.ts +23 -0
- package/dist/docx/compare/table.d.ts.map +1 -0
- package/dist/docx/compare/tokens.d.ts +50 -0
- package/dist/docx/compare/tokens.d.ts.map +1 -0
- package/dist/docx/compare/types.d.ts +51 -0
- package/dist/docx/compare/types.d.ts.map +1 -0
- package/dist/docx/compatibility.d.ts +46 -0
- package/dist/docx/compatibility.d.ts.map +1 -0
- package/dist/docx/computed-fields.d.ts +39 -0
- package/dist/docx/computed-fields.d.ts.map +1 -0
- package/dist/docx/doc-property-field.d.ts +17 -0
- package/dist/docx/doc-property-field.d.ts.map +1 -0
- package/dist/docx/document-parts.d.ts +2 -0
- package/dist/docx/document-parts.d.ts.map +1 -1
- package/dist/docx/drawing-wrap.d.ts +21 -0
- package/dist/docx/drawing-wrap.d.ts.map +1 -0
- package/dist/docx/drawing.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +3965 -2313
- package/dist/docx/embedded.mjs +3965 -2313
- package/dist/docx/field-format.d.ts +45 -0
- package/dist/docx/field-format.d.ts.map +1 -0
- package/dist/docx/field-result-spans.d.ts +62 -0
- package/dist/docx/field-result-spans.d.ts.map +1 -0
- package/dist/docx/field-runs.d.ts.map +1 -1
- package/dist/docx/field-stories.d.ts +9 -0
- package/dist/docx/field-stories.d.ts.map +1 -0
- package/dist/docx/find-stories.d.ts +27 -0
- package/dist/docx/find-stories.d.ts.map +1 -0
- package/dist/docx/highlight.d.ts +19 -0
- package/dist/docx/highlight.d.ts.map +1 -1
- package/dist/docx/hyperlink.d.ts +7 -0
- package/dist/docx/hyperlink.d.ts.map +1 -1
- package/dist/docx/index.cjs +7359 -3476
- package/dist/docx/index.d.ts +13 -1
- package/dist/docx/index.d.ts.map +1 -1
- package/dist/docx/index.mjs +7327 -3476
- package/dist/docx/inline-model.d.ts +21 -0
- package/dist/docx/inline-model.d.ts.map +1 -1
- package/dist/docx/inline-slots.d.ts.map +1 -1
- package/dist/docx/inspect-document.d.ts +21 -0
- package/dist/docx/inspect-document.d.ts.map +1 -0
- package/dist/docx/kinsoku-settings.d.ts +9 -0
- package/dist/docx/kinsoku-settings.d.ts.map +1 -0
- package/dist/docx/layout/adapt-table-floating.d.ts +11 -0
- package/dist/docx/layout/adapt-table-floating.d.ts.map +1 -0
- package/dist/docx/layout/adapt-table.d.ts.map +1 -1
- package/dist/docx/layout/adapter.d.ts.map +1 -1
- package/dist/docx/layout/computed-field-runs.d.ts +8 -0
- package/dist/docx/layout/computed-field-runs.d.ts.map +1 -0
- package/dist/docx/layout/floats.d.ts +3 -1
- package/dist/docx/layout/floats.d.ts.map +1 -1
- package/dist/docx/layout/flow-floating-table.d.ts +13 -0
- package/dist/docx/layout/flow-floating-table.d.ts.map +1 -0
- package/dist/docx/layout/flow-table.d.ts +1 -1
- package/dist/docx/layout/flow-table.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +2280 -941
- package/dist/docx/layout/index.mjs +2276 -942
- package/dist/docx/layout/input.d.ts +50 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/layout/layout.d.ts.map +1 -1
- package/dist/docx/layout/page-cursor.d.ts.map +1 -1
- package/dist/docx/layout/page-flow.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-layout.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-tokens.d.ts +6 -0
- package/dist/docx/layout/paragraph-tokens.d.ts.map +1 -1
- package/dist/docx/layout/result.d.ts +12 -0
- package/dist/docx/layout/result.d.ts.map +1 -1
- package/dist/docx/layout/section-flow.d.ts.map +1 -1
- package/dist/docx/layout/table-autofit-distribute.d.ts +18 -0
- package/dist/docx/layout/table-autofit-distribute.d.ts.map +1 -0
- package/dist/docx/layout/table-autofit-measure.d.ts +15 -0
- package/dist/docx/layout/table-autofit-measure.d.ts.map +1 -0
- package/dist/docx/layout/table-autofit.d.ts +10 -0
- package/dist/docx/layout/table-autofit.d.ts.map +1 -0
- package/dist/docx/layout/table-cell-layout.d.ts.map +1 -1
- package/dist/docx/layout/text-breaks.d.ts +38 -13
- package/dist/docx/layout/text-breaks.d.ts.map +1 -1
- package/dist/docx/layout/wrap.d.ts +1 -1
- package/dist/docx/layout/wrap.d.ts.map +1 -1
- package/dist/docx/list-number-fields.d.ts +25 -0
- package/dist/docx/list-number-fields.d.ts.map +1 -0
- package/dist/docx/load/index.cjs +4355 -2703
- package/dist/docx/load/index.mjs +4355 -2703
- package/dist/docx/model-paragraph.d.ts +12 -1
- package/dist/docx/model-paragraph.d.ts.map +1 -1
- package/dist/docx/model.d.ts +26 -1
- package/dist/docx/model.d.ts.map +1 -1
- package/dist/docx/note-convert.d.ts +45 -0
- package/dist/docx/note-convert.d.ts.map +1 -0
- package/dist/docx/numbering-counters.d.ts +17 -0
- package/dist/docx/numbering-counters.d.ts.map +1 -0
- package/dist/docx/numbering-format.d.ts +11 -2
- package/dist/docx/numbering-format.d.ts.map +1 -1
- package/dist/docx/outline-numbering.d.ts +6 -0
- package/dist/docx/outline-numbering.d.ts.map +1 -0
- package/dist/docx/package-information-save.d.ts +9 -0
- package/dist/docx/package-information-save.d.ts.map +1 -0
- package/dist/docx/package-information.d.ts +43 -0
- package/dist/docx/package-information.d.ts.map +1 -0
- package/dist/docx/package-properties.d.ts +5 -0
- package/dist/docx/package-properties.d.ts.map +1 -0
- package/dist/docx/paragraph-styles.d.ts +2 -0
- package/dist/docx/paragraph-styles.d.ts.map +1 -1
- package/dist/docx/parse-revisions.d.ts +2 -0
- package/dist/docx/parse-revisions.d.ts.map +1 -1
- package/dist/docx/parse-table-floating.d.ts +5 -0
- package/dist/docx/parse-table-floating.d.ts.map +1 -0
- package/dist/docx/parse-table.d.ts.map +1 -1
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/part-relationships.d.ts.map +1 -1
- package/dist/docx/personal-information.d.ts +18 -0
- package/dist/docx/personal-information.d.ts.map +1 -0
- package/dist/docx/picture-crop-edit.d.ts +18 -0
- package/dist/docx/picture-crop-edit.d.ts.map +1 -0
- package/dist/docx/picture-watermark.d.ts +29 -0
- package/dist/docx/picture-watermark.d.ts.map +1 -0
- package/dist/docx/relationship-allocator.d.ts.map +1 -1
- package/dist/docx/remove-document-information.d.ts +8 -0
- package/dist/docx/remove-document-information.d.ts.map +1 -0
- package/dist/docx/revision-commands.d.ts +6 -1
- package/dist/docx/revision-commands.d.ts.map +1 -1
- package/dist/docx/revision-ids.d.ts.map +1 -1
- package/dist/docx/run-language.d.ts +9 -0
- package/dist/docx/run-language.d.ts.map +1 -0
- package/dist/docx/run-properties-snapshot.d.ts +9 -0
- package/dist/docx/run-properties-snapshot.d.ts.map +1 -0
- package/dist/docx/run-style-model.d.ts +4 -0
- package/dist/docx/run-style-model.d.ts.map +1 -1
- package/dist/docx/save-modified.d.ts +2 -1
- package/dist/docx/save-modified.d.ts.map +1 -1
- package/dist/docx/save.d.ts.map +1 -1
- package/dist/docx/style-ref-fields.d.ts +1 -8
- package/dist/docx/style-ref-fields.d.ts.map +1 -1
- package/dist/docx/symbol-field.d.ts +21 -0
- package/dist/docx/symbol-field.d.ts.map +1 -0
- package/dist/docx/table-cell-write.d.ts.map +1 -1
- package/dist/docx/table-defaults.d.ts +2 -0
- package/dist/docx/table-defaults.d.ts.map +1 -1
- package/dist/docx/table-margins.d.ts +18 -0
- package/dist/docx/table-margins.d.ts.map +1 -0
- package/dist/docx/table-model.d.ts +23 -0
- package/dist/docx/table-model.d.ts.map +1 -1
- package/dist/docx/table-structure-check.d.ts.map +1 -1
- package/dist/docx/table-styles.d.ts.map +1 -1
- package/dist/docx/ui/index.cjs +787 -435
- package/dist/docx/ui/index.d.ts +1 -0
- package/dist/docx/ui/index.d.ts.map +1 -1
- package/dist/docx/ui/index.mjs +784 -436
- package/dist/docx/ui/inline-content-schema.d.ts.map +1 -1
- package/dist/docx/ui/paragraph-attributes.d.ts +6 -0
- package/dist/docx/ui/paragraph-attributes.d.ts.map +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
- package/dist/docx/ui/ribbon-legacy-labels.d.ts +1 -1
- package/dist/docx/ui/ribbon-legacy-labels.d.ts.map +1 -1
- package/dist/docx/ui/run-adapter.d.ts.map +1 -1
- package/dist/docx/ui/schema-marks.d.ts +2 -19
- package/dist/docx/ui/schema-marks.d.ts.map +1 -1
- package/dist/docx/ui/track-run-formatting.d.ts.map +1 -1
- package/dist/docx/ui/yjs-document-attributes.d.ts +5 -0
- package/dist/docx/ui/yjs-document-attributes.d.ts.map +1 -1
- package/dist/docx/write-drawing-wrap.d.ts +22 -0
- package/dist/docx/write-drawing-wrap.d.ts.map +1 -0
- package/dist/docx/write-drawing.d.ts.map +1 -1
- package/dist/docx/write-revisions.d.ts +3 -1
- package/dist/docx/write-revisions.d.ts.map +1 -1
- package/dist/docx/write-shape.d.ts.map +1 -1
- package/dist/docx/write-table-properties.d.ts.map +1 -1
- package/dist/docx/write.d.ts.map +1 -1
- package/dist/drawingml/html-text-paste.d.ts +28 -0
- package/dist/drawingml/html-text-paste.d.ts.map +1 -0
- package/dist/drawingml/html-text-style.d.ts +18 -0
- package/dist/drawingml/html-text-style.d.ts.map +1 -0
- package/dist/drawingml/index.cjs +762 -0
- package/dist/drawingml/index.d.ts +1 -0
- package/dist/drawingml/index.d.ts.map +1 -1
- package/dist/drawingml/index.mjs +760 -1
- package/dist/index.cjs +1237 -285
- package/dist/index.mjs +1237 -285
- package/dist/pptx/automation/index.cjs +561 -180
- package/dist/pptx/automation/index.d.ts +4 -4
- package/dist/pptx/automation/index.mjs +6 -5
- package/dist/pptx/chunks/{index-BCy58n13.d.ts → index-8ZfPndYR.d.ts} +2 -2
- package/dist/pptx/chunks/{index-BCy58n13.d.ts.map → index-8ZfPndYR.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-OwiX5IVw.d.ts → index-DVhD9Kd5.d.ts} +4 -4
- package/dist/pptx/chunks/{index-OwiX5IVw.d.ts.map → index-DVhD9Kd5.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-oQHWAO7M.d.ts → index-DsUnUj-V.d.ts} +5 -5
- package/dist/pptx/chunks/{index-oQHWAO7M.d.ts.map → index-DsUnUj-V.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-AZN38e6S.d.ts → index-xB7MDLI7.d.ts} +4 -4
- package/dist/pptx/chunks/{index-AZN38e6S.d.ts.map → index-xB7MDLI7.d.ts.map} +1 -1
- package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts → presentation-BvnVkFPJ.d.ts} +26 -2
- package/dist/pptx/chunks/{presentation-DOaYIW-l.d.ts.map → presentation-BvnVkFPJ.d.ts.map} +1 -1
- package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts → text-operations-D7TCPhlv.d.ts} +2 -2
- package/dist/pptx/chunks/{text-operations-CYSXno9L.d.ts.map → text-operations-D7TCPhlv.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +504 -124
- package/dist/pptx/cli/index.d.ts +1 -1
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.cjs +2 -2
- package/dist/pptx/editor/render/custom-show-operations.mjs +1 -1
- package/dist/pptx/editor/render/find-replace.cjs +16 -15
- package/dist/pptx/editor/render/find-replace.d.ts +2 -2
- package/dist/pptx/editor/render/find-replace.mjs +3 -2
- package/dist/pptx/editor/render/font-family-update.d.ts +2 -2
- package/dist/pptx/editor/render/paragraph-geometry-overrides.d.ts +2 -2
- package/dist/pptx/editor/render/segments-text-edit.cjs +159 -0
- package/dist/pptx/editor/render/segments-text-edit.d.ts +26 -0
- package/dist/pptx/editor/render/segments-text-edit.d.ts.map +1 -0
- package/dist/pptx/editor/render/segments-text-edit.mjs +156 -0
- package/dist/pptx/editor/render/slide-operations.cjs +12 -9
- package/dist/pptx/editor/render/slide-operations.mjs +6 -3
- package/dist/pptx/editor/render/table-cell-edit.cjs +5 -5
- package/dist/pptx/editor/render/table-cell-edit.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-cell-edit.mjs +1 -1
- package/dist/pptx/editor/render/table-cell-merge.cjs +3 -3
- package/dist/pptx/editor/render/table-cell-merge.mjs +1 -1
- package/dist/pptx/editor/render/table-cell-rich-text.cjs +41 -0
- package/dist/pptx/editor/render/table-cell-rich-text.d.ts +50 -0
- package/dist/pptx/editor/render/table-cell-rich-text.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cell-rich-text.mjs +8 -0
- package/dist/pptx/editor/render/table-cell-source.cjs +23 -0
- package/dist/pptx/editor/render/table-cell-source.d.ts +31 -0
- package/dist/pptx/editor/render/table-cell-source.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cell-source.mjs +6 -0
- package/dist/pptx/editor/render/table-cells-text-style.cjs +116 -0
- package/dist/pptx/editor/render/table-cells-text-style.d.ts +37 -0
- package/dist/pptx/editor/render/table-cells-text-style.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-cells-text-style.mjs +113 -0
- package/dist/pptx/editor/render/table-data-grid-ops.cjs +40 -94
- package/dist/pptx/editor/render/table-data-grid-ops.mjs +3 -88
- package/dist/pptx/editor/render/table-grid-fill.cjs +30 -0
- package/dist/pptx/editor/render/table-grid-fill.d.ts +34 -0
- package/dist/pptx/editor/render/table-grid-fill.d.ts.map +1 -0
- package/dist/pptx/editor/render/table-grid-fill.mjs +28 -0
- package/dist/pptx/editor/render/table-layout.cjs +6 -6
- package/dist/pptx/editor/render/table-layout.d.ts +2 -2
- package/dist/pptx/editor/render/table-layout.d.ts.map +1 -1
- package/dist/pptx/editor/render/table-layout.mjs +1 -1
- package/dist/pptx/editor/render/table-merge.cjs +5 -5
- package/dist/pptx/editor/render/table-merge.mjs +1 -1
- package/dist/pptx/editor/render/text-content-style.d.ts +2 -2
- package/dist/pptx/editor/render/text-runs-style-patch.d.ts +2 -2
- package/dist/pptx/editor/render/text-style-scope.d.ts +2 -2
- package/dist/pptx/editor/render/update-text-segment-style.d.ts +2 -2
- package/dist/pptx/index.cjs +519 -201
- package/dist/pptx/index.d.ts +7 -7
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/pptx/smartart-layouts/index.d.ts +2 -2
- package/dist/teams/index.cjs +35 -25
- package/dist/teams/index.mjs +35 -25
- package/dist/text/complex-breaks.d.ts +24 -0
- package/dist/text/complex-breaks.d.ts.map +1 -0
- package/dist/text/east-asian.d.ts +32 -0
- package/dist/text/east-asian.d.ts.map +1 -0
- package/dist/text/html-tokens.d.ts +45 -0
- package/dist/text/html-tokens.d.ts.map +1 -0
- package/dist/text/index.cjs +567 -96
- package/dist/text/index.d.ts +6 -0
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/index.mjs +544 -97
- package/dist/text/kinsoku.d.ts +55 -0
- package/dist/text/kinsoku.d.ts.map +1 -0
- package/dist/text/truetype/embedding.d.ts +42 -0
- package/dist/text/truetype/embedding.d.ts.map +1 -0
- package/dist/text/truetype/glyphless.d.ts +5 -0
- package/dist/text/truetype/glyphless.d.ts.map +1 -0
- package/dist/text/truetype/sfnt-write.d.ts +10 -0
- package/dist/text/truetype/sfnt-write.d.ts.map +1 -0
- package/dist/text/truetype/subset.d.ts.map +1 -1
- package/dist/text/windows-1252.d.ts +10 -0
- package/dist/text/windows-1252.d.ts.map +1 -0
- package/dist/xlsx/collab/index.cjs +10 -6
- package/dist/xlsx/collab/index.mjs +10 -6
- package/dist/xlsx/edit/clipboard-html-parse.d.ts +1 -0
- package/dist/xlsx/edit/clipboard-html-parse.d.ts.map +1 -1
- package/dist/xlsx/formula/functions/text-convert.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +96 -51
- package/dist/xlsx/index.mjs +96 -51
- package/dist/xlsx/load/index.cjs +10 -6
- package/dist/xlsx/load/index.mjs +10 -6
- package/dist/xlsx/ui/index.cjs +97 -52
- package/dist/xlsx/ui/index.mjs +97 -52
- package/package.json +1 -1
- package/dist/PptxHandler-72NTA5ZY.cjs +0 -14
- package/dist/PptxHandler-O4IJ3TKZ.mjs +0 -5
- package/dist/PresentationBuilder-ORM22QGC.mjs +0 -5
- package/dist/PresentationBuilder-T2ETYT3L.cjs +0 -22
- package/dist/chunk-X4RL5AZ7.cjs +0 -120
- package/dist/{chunk-PRGXRAAU.mjs → chunk-4Y76EAKK.mjs} +131 -131
- package/dist/{chunk-EN3KSEW5.cjs → chunk-MMULWQOM.cjs} +131 -131
package/dist/drawingml/index.cjs
CHANGED
|
@@ -4822,8 +4822,768 @@ function capCompensatedDashArray(pattern, strokeWidth, lineCap) {
|
|
|
4822
4822
|
return out.map((n2) => Number(n2.toFixed(4))).join(" ");
|
|
4823
4823
|
}
|
|
4824
4824
|
|
|
4825
|
+
// opc/safe-href.ts
|
|
4826
|
+
var OPEN_SCHEMES = /* @__PURE__ */ new Set(["http", "https", "mailto"]);
|
|
4827
|
+
var STORE_SCHEMES = /* @__PURE__ */ new Set([...OPEN_SCHEMES, "ftp", "file"]);
|
|
4828
|
+
var SCRIPT_SCHEMES = /* @__PURE__ */ new Set([
|
|
4829
|
+
"javascript",
|
|
4830
|
+
"vbscript",
|
|
4831
|
+
"livescript",
|
|
4832
|
+
"jscript",
|
|
4833
|
+
"mocha",
|
|
4834
|
+
"data",
|
|
4835
|
+
"mhtml",
|
|
4836
|
+
"ms-its",
|
|
4837
|
+
"mk",
|
|
4838
|
+
"x-javascript",
|
|
4839
|
+
"blob"
|
|
4840
|
+
]);
|
|
4841
|
+
var IGNORABLE = new RegExp(
|
|
4842
|
+
"[\\u0000-\\u0020\\u007f\\u00ad\\u200b-\\u200f\\u202a-\\u202e\\u2060-\\u2064\\ufeff]",
|
|
4843
|
+
"gu"
|
|
4844
|
+
);
|
|
4845
|
+
var CONTROL = new RegExp("[\\u0000-\\u001f\\u007f]", "u");
|
|
4846
|
+
var SCHEME = /^([a-z][a-z0-9+.-]*):/;
|
|
4847
|
+
var STORE_ONLY = { store: true, open: false, reason: "not-openable" };
|
|
4848
|
+
var reject = (reason) => ({
|
|
4849
|
+
store: false,
|
|
4850
|
+
open: false,
|
|
4851
|
+
reason
|
|
4852
|
+
});
|
|
4853
|
+
function hyperlinkPolicy(href, options = {}) {
|
|
4854
|
+
if (typeof href !== "string") return reject("empty");
|
|
4855
|
+
const trimmed = href.trim();
|
|
4856
|
+
const normalized = trimmed.replace(IGNORABLE, "").toLowerCase();
|
|
4857
|
+
if (normalized.length === 0) return reject("empty");
|
|
4858
|
+
const scheme = SCHEME.exec(normalized)?.[1];
|
|
4859
|
+
if (scheme !== void 0 && SCRIPT_SCHEMES.has(scheme)) return reject("script-scheme");
|
|
4860
|
+
if (scheme !== void 0 && !trimmed.toLowerCase().startsWith(`${scheme}:`))
|
|
4861
|
+
return reject("obfuscated-scheme");
|
|
4862
|
+
if (CONTROL.test(trimmed)) return reject("control-characters");
|
|
4863
|
+
if (scheme === void 0) return options.openRelative ? { store: true, open: true } : STORE_ONLY;
|
|
4864
|
+
if (scheme.length === 1) return STORE_ONLY;
|
|
4865
|
+
if (OPEN_SCHEMES.has(scheme)) return { store: true, open: true };
|
|
4866
|
+
if (options.additionalOpenSchemes?.some((allowed) => allowed.toLowerCase() === scheme))
|
|
4867
|
+
return { store: true, open: true };
|
|
4868
|
+
if (STORE_SCHEMES.has(scheme)) return STORE_ONLY;
|
|
4869
|
+
return reject("unsupported-scheme");
|
|
4870
|
+
}
|
|
4871
|
+
|
|
4872
|
+
// text/html-tokens.ts
|
|
4873
|
+
var ENTITIES = {
|
|
4874
|
+
amp: "&",
|
|
4875
|
+
lt: "<",
|
|
4876
|
+
gt: ">",
|
|
4877
|
+
quot: '"',
|
|
4878
|
+
apos: "'",
|
|
4879
|
+
nbsp: "\xA0",
|
|
4880
|
+
ensp: "\u2002",
|
|
4881
|
+
emsp: "\u2003",
|
|
4882
|
+
thinsp: "\u2009",
|
|
4883
|
+
ndash: "\u2013",
|
|
4884
|
+
mdash: "\u2014",
|
|
4885
|
+
lsquo: "\u2018",
|
|
4886
|
+
rsquo: "\u2019",
|
|
4887
|
+
ldquo: "\u201C",
|
|
4888
|
+
rdquo: "\u201D",
|
|
4889
|
+
bull: "\u2022",
|
|
4890
|
+
hellip: "\u2026",
|
|
4891
|
+
copy: "\xA9",
|
|
4892
|
+
reg: "\xAE",
|
|
4893
|
+
trade: "\u2122",
|
|
4894
|
+
euro: "\u20AC"
|
|
4895
|
+
};
|
|
4896
|
+
function codePoint(value) {
|
|
4897
|
+
if (!Number.isFinite(value) || value <= 0 || value > 1114111) return "\uFFFD";
|
|
4898
|
+
if (value >= 55296 && value <= 57343) return "\uFFFD";
|
|
4899
|
+
return String.fromCodePoint(value);
|
|
4900
|
+
}
|
|
4901
|
+
function decodeHtmlEntities(text) {
|
|
4902
|
+
return text.replace(/&(#x[0-9a-f]{1,8}|#\d{1,10}|[a-z]{1,10});/gi, (whole, name) => {
|
|
4903
|
+
if (name[1] === "x" || name[1] === "X") return codePoint(parseInt(name.slice(2), 16));
|
|
4904
|
+
if (name.startsWith("#")) return codePoint(Number(name.slice(1)));
|
|
4905
|
+
return ENTITIES[name.toLowerCase()] ?? whole;
|
|
4906
|
+
});
|
|
4907
|
+
}
|
|
4908
|
+
function parseHtmlAttributes(text) {
|
|
4909
|
+
const attrs2 = /* @__PURE__ */ new Map();
|
|
4910
|
+
for (const m of text.matchAll(
|
|
4911
|
+
/([\w:-]{1,64})\s{0,16}=\s{0,16}(?:"([^"]*)"|'([^']*)'|([^\s>]+))/g
|
|
4912
|
+
))
|
|
4913
|
+
attrs2.set((m[1] ?? "").toLowerCase(), decodeHtmlEntities(m[2] ?? m[3] ?? m[4] ?? ""));
|
|
4914
|
+
return attrs2;
|
|
4915
|
+
}
|
|
4916
|
+
function parseCssDeclarations(text) {
|
|
4917
|
+
const out = /* @__PURE__ */ new Map();
|
|
4918
|
+
for (const decl of text.split(";")) {
|
|
4919
|
+
const colon = decl.indexOf(":");
|
|
4920
|
+
if (colon < 0) continue;
|
|
4921
|
+
out.set(
|
|
4922
|
+
decl.slice(0, colon).trim().toLowerCase(),
|
|
4923
|
+
decl.slice(colon + 1).replace(/!important/gi, "").trim()
|
|
4924
|
+
);
|
|
4925
|
+
}
|
|
4926
|
+
return out;
|
|
4927
|
+
}
|
|
4928
|
+
var NAMED_COLORS = {
|
|
4929
|
+
black: "000000",
|
|
4930
|
+
white: "FFFFFF",
|
|
4931
|
+
red: "FF0000",
|
|
4932
|
+
green: "008000",
|
|
4933
|
+
lime: "00FF00",
|
|
4934
|
+
blue: "0000FF",
|
|
4935
|
+
yellow: "FFFF00",
|
|
4936
|
+
orange: "FFA500",
|
|
4937
|
+
purple: "800080",
|
|
4938
|
+
gray: "808080",
|
|
4939
|
+
grey: "808080",
|
|
4940
|
+
silver: "C0C0C0",
|
|
4941
|
+
navy: "000080",
|
|
4942
|
+
maroon: "800000",
|
|
4943
|
+
teal: "008080",
|
|
4944
|
+
olive: "808000",
|
|
4945
|
+
aqua: "00FFFF",
|
|
4946
|
+
cyan: "00FFFF",
|
|
4947
|
+
fuchsia: "FF00FF",
|
|
4948
|
+
magenta: "FF00FF",
|
|
4949
|
+
darkblue: "00008B",
|
|
4950
|
+
darkred: "8B0000",
|
|
4951
|
+
darkgreen: "006400",
|
|
4952
|
+
darkcyan: "008B8B",
|
|
4953
|
+
darkmagenta: "8B008B",
|
|
4954
|
+
darkgray: "A9A9A9",
|
|
4955
|
+
darkgrey: "A9A9A9",
|
|
4956
|
+
lightgray: "D3D3D3",
|
|
4957
|
+
lightgrey: "D3D3D3",
|
|
4958
|
+
darkyellow: "808000"
|
|
4959
|
+
};
|
|
4960
|
+
function parseCssColorHex(text) {
|
|
4961
|
+
const value = text.trim().toLowerCase();
|
|
4962
|
+
const hex = /^#([0-9a-f]{3}|[0-9a-f]{6})$/.exec(value)?.[1];
|
|
4963
|
+
if (hex) return (hex.length === 3 ? [...hex].map((ch) => ch + ch).join("") : hex).toUpperCase();
|
|
4964
|
+
const rgb = /^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*([\d.]+))?/.exec(value);
|
|
4965
|
+
if (rgb) {
|
|
4966
|
+
if (rgb[4] !== void 0 && Number(rgb[4]) === 0) return void 0;
|
|
4967
|
+
return rgb.slice(1, 4).map((n2) => Math.min(255, Number(n2)).toString(16).padStart(2, "0")).join("").toUpperCase();
|
|
4968
|
+
}
|
|
4969
|
+
return NAMED_COLORS[value];
|
|
4970
|
+
}
|
|
4971
|
+
var MAX_TAG_LENGTH = 8192;
|
|
4972
|
+
var RAW_TEXT = /* @__PURE__ */ new Set([
|
|
4973
|
+
"script",
|
|
4974
|
+
"style",
|
|
4975
|
+
"textarea",
|
|
4976
|
+
"title",
|
|
4977
|
+
"xmp",
|
|
4978
|
+
"noscript",
|
|
4979
|
+
"template",
|
|
4980
|
+
"head",
|
|
4981
|
+
"xml",
|
|
4982
|
+
"svg",
|
|
4983
|
+
"math",
|
|
4984
|
+
"iframe",
|
|
4985
|
+
"object",
|
|
4986
|
+
"canvas",
|
|
4987
|
+
"select"
|
|
4988
|
+
]);
|
|
4989
|
+
function htmlClipboardFragment(html) {
|
|
4990
|
+
const start = html.indexOf("<!--StartFragment-->");
|
|
4991
|
+
const end = html.indexOf("<!--EndFragment-->", start < 0 ? 0 : start);
|
|
4992
|
+
if (start >= 0 && end > start) return html.slice(start + "<!--StartFragment-->".length, end);
|
|
4993
|
+
const first2 = html.indexOf("<");
|
|
4994
|
+
return first2 > 0 && /^Version:\d/.test(html) ? html.slice(first2) : html;
|
|
4995
|
+
}
|
|
4996
|
+
function tagEnd(html, from) {
|
|
4997
|
+
let quote = "";
|
|
4998
|
+
const limit = Math.min(html.length, from + MAX_TAG_LENGTH);
|
|
4999
|
+
for (let i = from; i < limit; i++) {
|
|
5000
|
+
const ch = html[i];
|
|
5001
|
+
if (quote) {
|
|
5002
|
+
if (ch === quote) quote = "";
|
|
5003
|
+
} else if (ch === '"' || ch === "'") quote = ch;
|
|
5004
|
+
else if (ch === ">") return i;
|
|
5005
|
+
else if (ch === "<") return -1;
|
|
5006
|
+
}
|
|
5007
|
+
return -1;
|
|
5008
|
+
}
|
|
5009
|
+
function tokenizeHtml(html, maxTokens = Number.POSITIVE_INFINITY) {
|
|
5010
|
+
const tokens = [];
|
|
5011
|
+
let text = "";
|
|
5012
|
+
const flush = () => {
|
|
5013
|
+
if (text) tokens.push({ kind: "text", text: decodeHtmlEntities(text) });
|
|
5014
|
+
text = "";
|
|
5015
|
+
};
|
|
5016
|
+
let i = 0;
|
|
5017
|
+
while (i < html.length) {
|
|
5018
|
+
if (tokens.length >= maxTokens) {
|
|
5019
|
+
text += textWithoutTags(html.slice(i));
|
|
5020
|
+
break;
|
|
5021
|
+
}
|
|
5022
|
+
const lt = html.indexOf("<", i);
|
|
5023
|
+
if (lt < 0) {
|
|
5024
|
+
text += html.slice(i);
|
|
5025
|
+
break;
|
|
5026
|
+
}
|
|
5027
|
+
text += html.slice(i, lt);
|
|
5028
|
+
i = lt;
|
|
5029
|
+
if (html.startsWith("<!--", i)) {
|
|
5030
|
+
const close = html.indexOf("-->", i + 4);
|
|
5031
|
+
i = close < 0 ? html.length : close + 3;
|
|
5032
|
+
continue;
|
|
5033
|
+
}
|
|
5034
|
+
if (html.startsWith("<![", i)) {
|
|
5035
|
+
const close = html.indexOf("]>", i + 3);
|
|
5036
|
+
const body = html.slice(i + 3, close < 0 ? html.length : close).toLowerCase();
|
|
5037
|
+
flush();
|
|
5038
|
+
if (/^\s*if\b/.test(body))
|
|
5039
|
+
tokens.push({
|
|
5040
|
+
kind: "conditional",
|
|
5041
|
+
open: true,
|
|
5042
|
+
supportLists: body.includes("supportlists")
|
|
5043
|
+
});
|
|
5044
|
+
else if (/^\s*endif\b/.test(body))
|
|
5045
|
+
tokens.push({ kind: "conditional", open: false, supportLists: false });
|
|
5046
|
+
i = close < 0 ? html.length : close + 2;
|
|
5047
|
+
continue;
|
|
5048
|
+
}
|
|
5049
|
+
const next = html[i + 1] ?? "";
|
|
5050
|
+
if (next === "!" || next === "?") {
|
|
5051
|
+
const close = html.indexOf(">", i + 2);
|
|
5052
|
+
i = close < 0 ? html.length : close + 1;
|
|
5053
|
+
continue;
|
|
5054
|
+
}
|
|
5055
|
+
const closing = next === "/";
|
|
5056
|
+
const nameMatch = /^[a-zA-Z][\w:-]{0,63}/.exec(html.slice(i + (closing ? 2 : 1), i + 70));
|
|
5057
|
+
const end = nameMatch ? tagEnd(html, i + 1) : -1;
|
|
5058
|
+
if (!nameMatch || end < 0) {
|
|
5059
|
+
text += "<";
|
|
5060
|
+
i += 1;
|
|
5061
|
+
continue;
|
|
5062
|
+
}
|
|
5063
|
+
const name = nameMatch[0].toLowerCase();
|
|
5064
|
+
flush();
|
|
5065
|
+
if (closing) {
|
|
5066
|
+
tokens.push({ kind: "close", name });
|
|
5067
|
+
i = end + 1;
|
|
5068
|
+
continue;
|
|
5069
|
+
}
|
|
5070
|
+
const inner = html.slice(i + 1 + nameMatch[0].length, end);
|
|
5071
|
+
const selfClosing = inner.trimEnd().endsWith("/");
|
|
5072
|
+
i = end + 1;
|
|
5073
|
+
if (RAW_TEXT.has(name)) {
|
|
5074
|
+
tokens.push({ kind: "text", text: "" });
|
|
5075
|
+
if (selfClosing) continue;
|
|
5076
|
+
const closer = new RegExp(`</${name}`, "gi");
|
|
5077
|
+
closer.lastIndex = i;
|
|
5078
|
+
const found = closer.exec(html);
|
|
5079
|
+
const after = found ? html.indexOf(">", found.index) : -1;
|
|
5080
|
+
i = after < 0 ? html.length : after + 1;
|
|
5081
|
+
continue;
|
|
5082
|
+
}
|
|
5083
|
+
tokens.push({ kind: "open", name, attrs: parseHtmlAttributes(inner), selfClosing });
|
|
5084
|
+
}
|
|
5085
|
+
flush();
|
|
5086
|
+
return tokens;
|
|
5087
|
+
}
|
|
5088
|
+
function textWithoutTags(html) {
|
|
5089
|
+
let out = "";
|
|
5090
|
+
let at = 0;
|
|
5091
|
+
for (let lt = html.indexOf("<"); lt >= 0; lt = html.indexOf("<", at)) {
|
|
5092
|
+
const gt = html.indexOf(">", lt + 1);
|
|
5093
|
+
if (gt < 0) break;
|
|
5094
|
+
const inner = html.indexOf("<", lt + 1);
|
|
5095
|
+
if (inner >= 0 && inner < gt) {
|
|
5096
|
+
out += html.slice(at, inner);
|
|
5097
|
+
at = inner;
|
|
5098
|
+
continue;
|
|
5099
|
+
}
|
|
5100
|
+
out += html.slice(at, lt);
|
|
5101
|
+
at = gt + 1;
|
|
5102
|
+
}
|
|
5103
|
+
return out + html.slice(at);
|
|
5104
|
+
}
|
|
5105
|
+
|
|
5106
|
+
// drawingml/html-text-style.ts
|
|
5107
|
+
var srgb = (value) => ({ kind: "srgb", value, transforms: [] });
|
|
5108
|
+
var GENERIC_FAMILIES = /* @__PURE__ */ new Set([
|
|
5109
|
+
"serif",
|
|
5110
|
+
"sans-serif",
|
|
5111
|
+
"monospace",
|
|
5112
|
+
"cursive",
|
|
5113
|
+
"fantasy",
|
|
5114
|
+
"system-ui",
|
|
5115
|
+
"inherit",
|
|
5116
|
+
"initial",
|
|
5117
|
+
"unset"
|
|
5118
|
+
]);
|
|
5119
|
+
function cssFirstFontFamily(value) {
|
|
5120
|
+
for (const part of value.split(",")) {
|
|
5121
|
+
const name = part.trim().replace(/^["']|["']$/g, "");
|
|
5122
|
+
if (name && name.length <= 64 && !GENERIC_FAMILIES.has(name.toLowerCase())) return name;
|
|
5123
|
+
}
|
|
5124
|
+
return void 0;
|
|
5125
|
+
}
|
|
5126
|
+
function cssFontSizePt(value) {
|
|
5127
|
+
const keyword = {
|
|
5128
|
+
"xx-small": 7,
|
|
5129
|
+
"x-small": 7.5,
|
|
5130
|
+
small: 10,
|
|
5131
|
+
medium: 12,
|
|
5132
|
+
large: 13.5,
|
|
5133
|
+
"x-large": 18,
|
|
5134
|
+
"xx-large": 24
|
|
5135
|
+
};
|
|
5136
|
+
const v = value.trim().toLowerCase();
|
|
5137
|
+
if (keyword[v] !== void 0) return keyword[v];
|
|
5138
|
+
const m = /^(\d{1,4}(?:\.\d{1,3})?)(pt|px)$/.exec(v);
|
|
5139
|
+
if (!m) return void 0;
|
|
5140
|
+
const pt = Number(m[1]) * (m[2] === "px" ? 0.75 : 1);
|
|
5141
|
+
return pt >= 1 && pt <= 4e3 ? Math.round(pt * 100) / 100 : void 0;
|
|
5142
|
+
}
|
|
5143
|
+
var FONT_SIZE_ATTR = [7.5, 10, 12, 13.5, 18, 24, 36];
|
|
5144
|
+
function tagRunProperties(name, attrs2) {
|
|
5145
|
+
switch (name) {
|
|
5146
|
+
case "b":
|
|
5147
|
+
case "strong":
|
|
5148
|
+
return { bold: true };
|
|
5149
|
+
case "i":
|
|
5150
|
+
case "em":
|
|
5151
|
+
case "cite":
|
|
5152
|
+
case "dfn":
|
|
5153
|
+
return { italic: true };
|
|
5154
|
+
case "u":
|
|
5155
|
+
case "ins":
|
|
5156
|
+
return { underline: "sng" };
|
|
5157
|
+
case "s":
|
|
5158
|
+
case "strike":
|
|
5159
|
+
case "del":
|
|
5160
|
+
return { strike: "sngStrike" };
|
|
5161
|
+
case "sup":
|
|
5162
|
+
return { baseline: 0.3 };
|
|
5163
|
+
case "sub":
|
|
5164
|
+
return { baseline: -0.25 };
|
|
5165
|
+
case "mark":
|
|
5166
|
+
return { highlight: srgb("FFFF00") };
|
|
5167
|
+
case "code":
|
|
5168
|
+
case "kbd":
|
|
5169
|
+
case "samp":
|
|
5170
|
+
case "tt":
|
|
5171
|
+
case "pre":
|
|
5172
|
+
return { latin: { typeface: "Courier New" } };
|
|
5173
|
+
case "h1":
|
|
5174
|
+
return { bold: true, sizePt: 24 };
|
|
5175
|
+
case "h2":
|
|
5176
|
+
return { bold: true, sizePt: 18 };
|
|
5177
|
+
case "h3":
|
|
5178
|
+
return { bold: true, sizePt: 14 };
|
|
5179
|
+
case "h4":
|
|
5180
|
+
case "h5":
|
|
5181
|
+
case "h6":
|
|
5182
|
+
return { bold: true };
|
|
5183
|
+
case "font": {
|
|
5184
|
+
const props = {};
|
|
5185
|
+
const face = attrs2.get("face");
|
|
5186
|
+
const family = face ? cssFirstFontFamily(face) : void 0;
|
|
5187
|
+
if (family) props.latin = { typeface: family };
|
|
5188
|
+
const color = attrs2.get("color");
|
|
5189
|
+
const hex = color ? parseCssColorHex(color) : void 0;
|
|
5190
|
+
if (hex) props.fill = { kind: "solid", color: srgb(hex) };
|
|
5191
|
+
const size = Number(attrs2.get("size"));
|
|
5192
|
+
const sizePt = Number.isInteger(size) ? FONT_SIZE_ATTR[size - 1] : void 0;
|
|
5193
|
+
if (sizePt !== void 0) props.sizePt = sizePt;
|
|
5194
|
+
return props;
|
|
5195
|
+
}
|
|
5196
|
+
default:
|
|
5197
|
+
return void 0;
|
|
5198
|
+
}
|
|
5199
|
+
}
|
|
5200
|
+
function cssRunProperties(style, inline) {
|
|
5201
|
+
const css = parseCssDeclarations(style);
|
|
5202
|
+
const props = {};
|
|
5203
|
+
const weight = css.get("font-weight");
|
|
5204
|
+
if (weight) props.bold = weight === "bold" || weight === "bolder" || Number(weight) >= 600;
|
|
5205
|
+
const fontStyle = css.get("font-style");
|
|
5206
|
+
if (fontStyle) props.italic = fontStyle === "italic" || fontStyle === "oblique";
|
|
5207
|
+
const decoration = css.get("text-decoration-line") ?? css.get("text-decoration");
|
|
5208
|
+
if (decoration) {
|
|
5209
|
+
if (decoration.includes("underline")) props.underline = "sng";
|
|
5210
|
+
if (decoration.includes("line-through")) props.strike = "sngStrike";
|
|
5211
|
+
if (decoration.includes("none")) {
|
|
5212
|
+
props.underline = "none";
|
|
5213
|
+
props.strike = "noStrike";
|
|
5214
|
+
}
|
|
5215
|
+
}
|
|
5216
|
+
const family = css.get("font-family");
|
|
5217
|
+
const typeface = family ? cssFirstFontFamily(family) : void 0;
|
|
5218
|
+
if (typeface) props.latin = { typeface };
|
|
5219
|
+
const size = css.get("font-size");
|
|
5220
|
+
const sizePt = size ? cssFontSizePt(size) : void 0;
|
|
5221
|
+
if (sizePt !== void 0) props.sizePt = sizePt;
|
|
5222
|
+
const color = css.get("color");
|
|
5223
|
+
const hex = color ? parseCssColorHex(color) : void 0;
|
|
5224
|
+
if (hex) props.fill = { kind: "solid", color: srgb(hex) };
|
|
5225
|
+
const shorthand = css.get("background");
|
|
5226
|
+
const highlight = css.get("mso-highlight") ?? (inline ? css.get("background-color") ?? (shorthand ? /^(rgba?\([^)]*\)|#\w+|[a-z]+)/i.exec(shorthand.trim())?.[1] : void 0) : void 0);
|
|
5227
|
+
const highlightHex = highlight ? parseCssColorHex(highlight) : void 0;
|
|
5228
|
+
if (highlightHex) props.highlight = srgb(highlightHex);
|
|
5229
|
+
const vertical = css.get("vertical-align");
|
|
5230
|
+
if (vertical === "super") props.baseline = 0.3;
|
|
5231
|
+
else if (vertical === "sub") props.baseline = -0.25;
|
|
5232
|
+
const caps = css.get("font-variant");
|
|
5233
|
+
if (caps === "small-caps") props.caps = "small";
|
|
5234
|
+
if (css.get("text-transform") === "uppercase") props.caps = "all";
|
|
5235
|
+
return props;
|
|
5236
|
+
}
|
|
5237
|
+
var ALIGN = {
|
|
5238
|
+
left: "l",
|
|
5239
|
+
start: "l",
|
|
5240
|
+
center: "ctr",
|
|
5241
|
+
right: "r",
|
|
5242
|
+
end: "r",
|
|
5243
|
+
justify: "just"
|
|
5244
|
+
};
|
|
5245
|
+
function blockAlignment(name, attrs2) {
|
|
5246
|
+
if (name === "center") return "ctr";
|
|
5247
|
+
const css = parseCssDeclarations(attrs2.get("style") ?? "");
|
|
5248
|
+
return ALIGN[(css.get("text-align") ?? attrs2.get("align") ?? "").trim().toLowerCase()];
|
|
5249
|
+
}
|
|
5250
|
+
function msoListLevel(attrs2) {
|
|
5251
|
+
const css = parseCssDeclarations(attrs2.get("style") ?? "");
|
|
5252
|
+
const list = css.get("mso-list");
|
|
5253
|
+
if (!list || /^\s*ignore\b/i.test(list)) return void 0;
|
|
5254
|
+
const level = /level(\d{1,2})/i.exec(list)?.[1];
|
|
5255
|
+
return Math.min(8, Math.max(0, (level ? Number(level) : 1) - 1));
|
|
5256
|
+
}
|
|
5257
|
+
var MARKER_CHARS = /* @__PURE__ */ new Set([
|
|
5258
|
+
"\u2022",
|
|
5259
|
+
"\u25AA",
|
|
5260
|
+
"\u25CF",
|
|
5261
|
+
"\u25CB",
|
|
5262
|
+
"\u25A0",
|
|
5263
|
+
"\u2013",
|
|
5264
|
+
"-",
|
|
5265
|
+
"*",
|
|
5266
|
+
"o"
|
|
5267
|
+
]);
|
|
5268
|
+
function bulletFromMarker(marker) {
|
|
5269
|
+
const text = marker.replace(/\s+/g, "");
|
|
5270
|
+
const numbered = /^(\(?)(\d{1,4}|[a-z]|[A-Z]|[ivxlc]{1,6}|[IVXLC]{1,6})([.)])$/.exec(text);
|
|
5271
|
+
if (numbered) {
|
|
5272
|
+
const body = numbered[2] ?? "";
|
|
5273
|
+
const suffix = numbered[1] ? "ParenBoth" : numbered[3] === ")" ? "ParenR" : "Period";
|
|
5274
|
+
const kind = /^\d+$/.test(body) ? "arabic" : /^[ivxlc]+$/.test(body) && body !== "c" ? "romanLc" : /^[IVXLC]+$/.test(body) && body !== "C" ? "romanUc" : /^[a-z]$/.test(body) ? "alphaLc" : "alphaUc";
|
|
5275
|
+
const startAt = /^\d+$/.test(body) ? Number(body) : void 0;
|
|
5276
|
+
return { kind: "autoNumber", scheme: `${kind}${suffix}`, ...startAt ? { startAt } : {} };
|
|
5277
|
+
}
|
|
5278
|
+
const char = [...text][0] ?? "";
|
|
5279
|
+
return { kind: "char", char: MARKER_CHARS.has(char) ? char : "\u2022" };
|
|
5280
|
+
}
|
|
5281
|
+
function listBullet(ordered, attrs2, level) {
|
|
5282
|
+
if (!ordered)
|
|
5283
|
+
return { kind: "char", char: ["\u2022", "\u2013", "\u2022"][level % 3] ?? "\u2022" };
|
|
5284
|
+
const type = attrs2.get("type") ?? "1";
|
|
5285
|
+
const scheme = { a: "alphaLcPeriod", A: "alphaUcPeriod", i: "romanLcPeriod", I: "romanUcPeriod" }[type] ?? "arabicPeriod";
|
|
5286
|
+
const start = Math.trunc(Number(attrs2.get("start")));
|
|
5287
|
+
return {
|
|
5288
|
+
kind: "autoNumber",
|
|
5289
|
+
scheme,
|
|
5290
|
+
...Number.isFinite(start) && start > 1 && start < 32768 ? { startAt: start } : {}
|
|
5291
|
+
};
|
|
5292
|
+
}
|
|
5293
|
+
|
|
5294
|
+
// drawingml/html-text-paste.ts
|
|
5295
|
+
var DEFAULT_HTML_TEXT_PASTE_LIMITS = {
|
|
5296
|
+
maxInputLength: 2e6,
|
|
5297
|
+
maxTokens: 5e4,
|
|
5298
|
+
maxDepth: 64,
|
|
5299
|
+
maxTextLength: 1e5,
|
|
5300
|
+
maxParagraphs: 2e3
|
|
5301
|
+
};
|
|
5302
|
+
var BLOCKS = /* @__PURE__ */ new Set([
|
|
5303
|
+
"p",
|
|
5304
|
+
"div",
|
|
5305
|
+
"h1",
|
|
5306
|
+
"h2",
|
|
5307
|
+
"h3",
|
|
5308
|
+
"h4",
|
|
5309
|
+
"h5",
|
|
5310
|
+
"h6",
|
|
5311
|
+
"li",
|
|
5312
|
+
"ul",
|
|
5313
|
+
"ol",
|
|
5314
|
+
"dl",
|
|
5315
|
+
"dt",
|
|
5316
|
+
"dd",
|
|
5317
|
+
"blockquote",
|
|
5318
|
+
"pre",
|
|
5319
|
+
"address",
|
|
5320
|
+
"article",
|
|
5321
|
+
"aside",
|
|
5322
|
+
"section",
|
|
5323
|
+
"header",
|
|
5324
|
+
"footer",
|
|
5325
|
+
"nav",
|
|
5326
|
+
"main",
|
|
5327
|
+
"figure",
|
|
5328
|
+
"figcaption",
|
|
5329
|
+
"center",
|
|
5330
|
+
"table",
|
|
5331
|
+
"tbody",
|
|
5332
|
+
"thead",
|
|
5333
|
+
"tfoot",
|
|
5334
|
+
"tr",
|
|
5335
|
+
"caption",
|
|
5336
|
+
"body",
|
|
5337
|
+
"html"
|
|
5338
|
+
]);
|
|
5339
|
+
var VOID = /* @__PURE__ */ new Set([
|
|
5340
|
+
"br",
|
|
5341
|
+
"img",
|
|
5342
|
+
"hr",
|
|
5343
|
+
"meta",
|
|
5344
|
+
"link",
|
|
5345
|
+
"input",
|
|
5346
|
+
"wbr",
|
|
5347
|
+
"col",
|
|
5348
|
+
"area",
|
|
5349
|
+
"base",
|
|
5350
|
+
"source",
|
|
5351
|
+
"embed",
|
|
5352
|
+
"param",
|
|
5353
|
+
"track"
|
|
5354
|
+
]);
|
|
5355
|
+
var BULLET_INDENT_EMU = 285750;
|
|
5356
|
+
var LEVEL_STEP_EMU = 457200;
|
|
5357
|
+
var sameProps = (a, b) => JSON.stringify(a ?? {}) === JSON.stringify(b ?? {});
|
|
5358
|
+
function htmlToDrawingParagraphs(html, limits = {}) {
|
|
5359
|
+
const bounds = { ...DEFAULT_HTML_TEXT_PASTE_LIMITS, ...limits };
|
|
5360
|
+
let truncated = html.length > bounds.maxInputLength;
|
|
5361
|
+
const source2 = htmlClipboardFragment(truncated ? html.slice(0, bounds.maxInputLength) : html);
|
|
5362
|
+
const tokens = tokenizeHtml(source2, bounds.maxTokens);
|
|
5363
|
+
if (tokens.length >= bounds.maxTokens) truncated = true;
|
|
5364
|
+
const paragraphs = [];
|
|
5365
|
+
const hyperlinks = {};
|
|
5366
|
+
const stack = [{ name: "#root", run: {}, pre: false, marker: false }];
|
|
5367
|
+
let current = null;
|
|
5368
|
+
let textLength = 0;
|
|
5369
|
+
let marker = null;
|
|
5370
|
+
let conditionalMarker = false;
|
|
5371
|
+
let stopped = false;
|
|
5372
|
+
const top = () => stack[stack.length - 1];
|
|
5373
|
+
const paragraphProperties = () => {
|
|
5374
|
+
const props = {};
|
|
5375
|
+
let listDepth = 0;
|
|
5376
|
+
let item;
|
|
5377
|
+
let list;
|
|
5378
|
+
let msoLevel;
|
|
5379
|
+
for (let i = stack.length - 1; i >= 0; i--) {
|
|
5380
|
+
const frame = stack[i];
|
|
5381
|
+
if (props.align === void 0 && frame.align) props.align = frame.align;
|
|
5382
|
+
if (frame.name === "li" && !item) item = frame;
|
|
5383
|
+
if (frame.name === "ul" || frame.name === "ol") {
|
|
5384
|
+
listDepth++;
|
|
5385
|
+
list ??= frame;
|
|
5386
|
+
}
|
|
5387
|
+
if (msoLevel === void 0 && frame.msoLevel !== void 0) msoLevel = frame.msoLevel;
|
|
5388
|
+
}
|
|
5389
|
+
if (item && list) {
|
|
5390
|
+
const level = Math.min(8, listDepth - 1);
|
|
5391
|
+
props.bullet = listBullet(list.ordered ?? false, list.attrs ?? /* @__PURE__ */ new Map(), level);
|
|
5392
|
+
if (level > 0) props.level = level;
|
|
5393
|
+
props.marginLeftEmu = BULLET_INDENT_EMU + level * LEVEL_STEP_EMU;
|
|
5394
|
+
props.indentEmu = -BULLET_INDENT_EMU;
|
|
5395
|
+
} else if (msoLevel !== void 0) {
|
|
5396
|
+
if (msoLevel > 0) props.level = msoLevel;
|
|
5397
|
+
props.marginLeftEmu = BULLET_INDENT_EMU + msoLevel * LEVEL_STEP_EMU;
|
|
5398
|
+
props.indentEmu = -BULLET_INDENT_EMU;
|
|
5399
|
+
props.bullet = { kind: "char", char: "\u2022" };
|
|
5400
|
+
}
|
|
5401
|
+
return Object.keys(props).length ? props : void 0;
|
|
5402
|
+
};
|
|
5403
|
+
const finish = () => {
|
|
5404
|
+
current = null;
|
|
5405
|
+
};
|
|
5406
|
+
const ensure = () => {
|
|
5407
|
+
if (current) return current;
|
|
5408
|
+
if (paragraphs.length >= bounds.maxParagraphs) {
|
|
5409
|
+
truncated = stopped = true;
|
|
5410
|
+
return null;
|
|
5411
|
+
}
|
|
5412
|
+
const properties = paragraphProperties();
|
|
5413
|
+
current = { items: [], ...properties ? { properties } : {} };
|
|
5414
|
+
paragraphs.push(current);
|
|
5415
|
+
return current;
|
|
5416
|
+
};
|
|
5417
|
+
const lastChar = (paragraph) => {
|
|
5418
|
+
const last = paragraph.items[paragraph.items.length - 1];
|
|
5419
|
+
if (!last) return "";
|
|
5420
|
+
return last.kind === "run" ? last.text.slice(-1) : "\n";
|
|
5421
|
+
};
|
|
5422
|
+
const addText = (raw, verbatim = false) => {
|
|
5423
|
+
const frame = top();
|
|
5424
|
+
if (marker !== null || frame.marker) {
|
|
5425
|
+
if (marker !== null) marker += raw;
|
|
5426
|
+
return;
|
|
5427
|
+
}
|
|
5428
|
+
let text = frame.pre || verbatim ? raw.replace(/\r\n?/g, "\n") : raw.replace(/[ \t\n\r\f]+/g, " ");
|
|
5429
|
+
if (!frame.pre && !current && text.trim() === "") return;
|
|
5430
|
+
const paragraph = ensure();
|
|
5431
|
+
if (!paragraph) return;
|
|
5432
|
+
if (!frame.pre && text.startsWith(" ") && /^$|[ \n]/.test(lastChar(paragraph)))
|
|
5433
|
+
text = text.slice(1);
|
|
5434
|
+
text = text.replace(/\u00a0/g, " ");
|
|
5435
|
+
if (textLength + text.length > bounds.maxTextLength) {
|
|
5436
|
+
text = text.slice(0, Math.max(0, bounds.maxTextLength - textLength));
|
|
5437
|
+
truncated = stopped = true;
|
|
5438
|
+
}
|
|
5439
|
+
textLength += text.length;
|
|
5440
|
+
const lines = text.split("\n");
|
|
5441
|
+
for (const [index, line] of lines.entries()) {
|
|
5442
|
+
if (index > 0) paragraph.items.push({ kind: "break", properties: { ...frame.run } });
|
|
5443
|
+
if (!line) continue;
|
|
5444
|
+
const last = paragraph.items[paragraph.items.length - 1];
|
|
5445
|
+
if (last?.kind === "run" && sameProps(last.properties, frame.run)) last.text += line;
|
|
5446
|
+
else
|
|
5447
|
+
paragraph.items.push({
|
|
5448
|
+
kind: "run",
|
|
5449
|
+
text: line,
|
|
5450
|
+
...Object.keys(frame.run).length ? { properties: { ...frame.run } } : {}
|
|
5451
|
+
});
|
|
5452
|
+
}
|
|
5453
|
+
};
|
|
5454
|
+
const close = (name) => {
|
|
5455
|
+
for (let i = stack.length - 1; i > 0; i--) {
|
|
5456
|
+
if (stack[i].name !== name) continue;
|
|
5457
|
+
while (stack.length > i) {
|
|
5458
|
+
const frame = stack.pop();
|
|
5459
|
+
if (BLOCKS.has(frame.name)) finish();
|
|
5460
|
+
}
|
|
5461
|
+
return true;
|
|
5462
|
+
}
|
|
5463
|
+
return false;
|
|
5464
|
+
};
|
|
5465
|
+
for (const token2 of tokens) {
|
|
5466
|
+
if (stopped) break;
|
|
5467
|
+
if (token2.kind === "text") {
|
|
5468
|
+
if (token2.text) addText(token2.text);
|
|
5469
|
+
continue;
|
|
5470
|
+
}
|
|
5471
|
+
if (token2.kind === "conditional") {
|
|
5472
|
+
if (token2.open && token2.supportLists) {
|
|
5473
|
+
conditionalMarker = true;
|
|
5474
|
+
marker = "";
|
|
5475
|
+
} else if (!token2.open && conditionalMarker) {
|
|
5476
|
+
conditionalMarker = false;
|
|
5477
|
+
const typed = marker ?? "";
|
|
5478
|
+
marker = null;
|
|
5479
|
+
applyMarker(typed);
|
|
5480
|
+
}
|
|
5481
|
+
continue;
|
|
5482
|
+
}
|
|
5483
|
+
if (token2.kind === "close") {
|
|
5484
|
+
const frame2 = top();
|
|
5485
|
+
if (frame2.marker && frame2.name === token2.name) {
|
|
5486
|
+
stack.pop();
|
|
5487
|
+
const typed = marker ?? "";
|
|
5488
|
+
marker = null;
|
|
5489
|
+
applyMarker(typed);
|
|
5490
|
+
continue;
|
|
5491
|
+
}
|
|
5492
|
+
close(token2.name);
|
|
5493
|
+
continue;
|
|
5494
|
+
}
|
|
5495
|
+
const { name, attrs: attrs2 } = token2;
|
|
5496
|
+
if (name === "br") {
|
|
5497
|
+
const paragraph = ensure();
|
|
5498
|
+
paragraph?.items.push({ kind: "break", properties: { ...top().run } });
|
|
5499
|
+
continue;
|
|
5500
|
+
}
|
|
5501
|
+
if (name === "hr") {
|
|
5502
|
+
finish();
|
|
5503
|
+
continue;
|
|
5504
|
+
}
|
|
5505
|
+
if ((name === "td" || name === "th") && current) {
|
|
5506
|
+
addText(" ", true);
|
|
5507
|
+
}
|
|
5508
|
+
if (VOID.has(name) || token2.selfClosing) continue;
|
|
5509
|
+
if (name === "p" || name === "li" || /^h[1-6]$/.test(name) || name === "div") {
|
|
5510
|
+
if (top().name === "p") close("p");
|
|
5511
|
+
}
|
|
5512
|
+
if (name === "li") {
|
|
5513
|
+
for (let i = stack.length - 1; i > 0; i--) {
|
|
5514
|
+
const open = stack[i].name;
|
|
5515
|
+
if (open === "ul" || open === "ol") break;
|
|
5516
|
+
if (open === "li") {
|
|
5517
|
+
close("li");
|
|
5518
|
+
break;
|
|
5519
|
+
}
|
|
5520
|
+
}
|
|
5521
|
+
}
|
|
5522
|
+
if (BLOCKS.has(name)) finish();
|
|
5523
|
+
if (stack.length > bounds.maxDepth) {
|
|
5524
|
+
truncated = true;
|
|
5525
|
+
continue;
|
|
5526
|
+
}
|
|
5527
|
+
const parent = top();
|
|
5528
|
+
const block = BLOCKS.has(name);
|
|
5529
|
+
const run = {
|
|
5530
|
+
...parent.run,
|
|
5531
|
+
...tagRunProperties(name, attrs2),
|
|
5532
|
+
...cssRunProperties(attrs2.get("style") ?? "", !block)
|
|
5533
|
+
};
|
|
5534
|
+
const href = name === "a" ? attrs2.get("href")?.trim() : void 0;
|
|
5535
|
+
if (href && !href.startsWith("#") && hyperlinkPolicy(href).store) {
|
|
5536
|
+
const relId = `htmlLink${Object.keys(hyperlinks).length + 1}`;
|
|
5537
|
+
hyperlinks[relId] = href;
|
|
5538
|
+
const tooltip = attrs2.get("title")?.slice(0, 256);
|
|
5539
|
+
run.hyperlinkClick = { relId, ...tooltip ? { tooltip } : {} };
|
|
5540
|
+
}
|
|
5541
|
+
const isMarker = /mso-list\s*:\s*ignore/i.test(attrs2.get("style") ?? "");
|
|
5542
|
+
const frame = {
|
|
5543
|
+
name,
|
|
5544
|
+
run,
|
|
5545
|
+
pre: parent.pre || name === "pre",
|
|
5546
|
+
marker: isMarker
|
|
5547
|
+
};
|
|
5548
|
+
if (block) {
|
|
5549
|
+
const align = blockAlignment(name, attrs2);
|
|
5550
|
+
if (align) frame.align = align;
|
|
5551
|
+
const level = name === "p" || name === "div" ? msoListLevel(attrs2) : void 0;
|
|
5552
|
+
if (level !== void 0) frame.msoLevel = level;
|
|
5553
|
+
}
|
|
5554
|
+
if (name === "ul" || name === "ol") {
|
|
5555
|
+
frame.ordered = name === "ol";
|
|
5556
|
+
frame.attrs = attrs2;
|
|
5557
|
+
}
|
|
5558
|
+
stack.push(frame);
|
|
5559
|
+
if (isMarker && marker === null) marker = "";
|
|
5560
|
+
}
|
|
5561
|
+
function applyMarker(typed) {
|
|
5562
|
+
const paragraph = ensure();
|
|
5563
|
+
if (!paragraph || !typed.trim()) return;
|
|
5564
|
+
paragraph.properties = { ...paragraph.properties, bullet: bulletFromMarker(typed) };
|
|
5565
|
+
}
|
|
5566
|
+
for (const paragraph of paragraphs) {
|
|
5567
|
+
const last = paragraph.items[paragraph.items.length - 1];
|
|
5568
|
+
if (last?.kind === "run") {
|
|
5569
|
+
last.text = last.text.replace(/ +$/, "");
|
|
5570
|
+
if (!last.text) paragraph.items.pop();
|
|
5571
|
+
}
|
|
5572
|
+
}
|
|
5573
|
+
const empty = (p) => p !== void 0 && p.items.length === 0 && !p.properties?.bullet;
|
|
5574
|
+
while (empty(paragraphs[paragraphs.length - 1])) paragraphs.pop();
|
|
5575
|
+
while (empty(paragraphs[0])) paragraphs.shift();
|
|
5576
|
+
return { paragraphs, hyperlinks, truncated };
|
|
5577
|
+
}
|
|
5578
|
+
function drawingParagraphsText(paragraphs) {
|
|
5579
|
+
return paragraphs.map(
|
|
5580
|
+
(p) => p.items.map((item) => item.kind === "break" ? "\n" : "text" in item ? item.text : "").join("")
|
|
5581
|
+
).join("\n");
|
|
5582
|
+
}
|
|
5583
|
+
|
|
4825
5584
|
exports.ARTISTIC_PRIMARY_ATTRIBUTE = ARTISTIC_PRIMARY_ATTRIBUTE;
|
|
4826
5585
|
exports.BODY_PROPERTIES_ORDER = BODY_PROPERTIES_ORDER;
|
|
5586
|
+
exports.DEFAULT_HTML_TEXT_PASTE_LIMITS = DEFAULT_HTML_TEXT_PASTE_LIMITS;
|
|
4827
5587
|
exports.DEFAULT_THEME_COLOR_MAP = DEFAULT_THEME_COLOR_MAP;
|
|
4828
5588
|
exports.DOM_3D_READER = DOM_3D_READER;
|
|
4829
5589
|
exports.OFFICE_GRADIENT_PRESETS = OFFICE_GRADIENT_PRESETS;
|
|
@@ -4861,6 +5621,7 @@ exports.drawingFillXml = drawingFillXml;
|
|
|
4861
5621
|
exports.drawingLineXml = drawingLineXml;
|
|
4862
5622
|
exports.drawingParagraphPropertiesXml = drawingParagraphPropertiesXml;
|
|
4863
5623
|
exports.drawingParagraphText = drawingParagraphText;
|
|
5624
|
+
exports.drawingParagraphsText = drawingParagraphsText;
|
|
4864
5625
|
exports.drawingPathData = drawingPathData;
|
|
4865
5626
|
exports.drawingRichTextBodyXml = drawingRichTextBodyXml;
|
|
4866
5627
|
exports.drawingRunPropertiesXml = drawingRunPropertiesXml;
|
|
@@ -4868,6 +5629,7 @@ exports.drawingThemeFormatSchemeXml = drawingThemeFormatSchemeXml;
|
|
|
4868
5629
|
exports.drawingThemeXml = drawingThemeXml;
|
|
4869
5630
|
exports.fillElementOf = fillElementOf;
|
|
4870
5631
|
exports.gradientColorAt = gradientColorAt;
|
|
5632
|
+
exports.htmlToDrawingParagraphs = htmlToDrawingParagraphs;
|
|
4871
5633
|
exports.imageContentType = imageContentType;
|
|
4872
5634
|
exports.inspectRasterImage = inspectRasterImage;
|
|
4873
5635
|
exports.integerAttribute = integerAttribute;
|