pptx-angular-viewer 3.6.0 → 3.6.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.
@@ -2,7 +2,7 @@ import { NgStyle, NgTemplateOutlet, NgClass } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { InjectionToken, input, output, inject, computed, ChangeDetectionStrategy, Component, signal, Injectable, DestroyRef, viewChild, effect, Injector, untracked, ElementRef, HostListener, afterNextRender, Renderer2, ViewEncapsulation, forwardRef, Directive } from '@angular/core';
4
4
  import { TranslateService, TranslatePipe, translate } from '@ngx-translate/core';
5
- import { THEME_PRESETS, guideEmuToPx, getShapeClipPath, getAdjustmentAwareClipPath, getShapeClipPathFromPreset, getCloudPathForRendering, MIN_ELEMENT_SIZE as MIN_ELEMENT_SIZE$1, customGeometryPathsToSvgSubpaths, evaluatePresetShape, hasShapeProperties, ooxmlGradientAngleToCssDegrees, getShapeType, isImageLikeElement, getElementTextContent, getRoundRectRadiusPx as getRoundRectRadiusPx$1, applyDrawingColorTransforms as applyDrawingColorTransforms$1, hslToRgb as hslToRgb$1, PRESET_COLOR_MAP, getSubstituteFontFamily, parsePanoseString, hasTextProperties, stripXmlOrderSuffix, orderedXmlKey, chartDataChangeType, chartDataAddSeries, chartDataRemoveSeries, chartDataAddCategory, chartDataRemoveCategory, chartDataUpdatePoint, rebuildTableStructureInRawXml, updateCellTextInRawXml, deepCloneData, cloneTemplateElementsBySlideId, cloneSlide, EMU_PER_PX as EMU_PER_PX$2, DEFAULT_POWERPOINT_TABLE_STYLE_ID, DEFAULT_SCHEME_COLOR_MAP as DEFAULT_SCHEME_COLOR_MAP$1, formatAutoNumberMarker, getLinkedTextBoxSegments, deriveSlideTitle, svgPathToPolygons, THEME_COLOR_SCHEME_KEYS, createBuiltinVariables, resolveCoordinate, lookupPresetShape, normalizeStShapeType, evaluateGuides, PptxHandler, styleStroke, strokeFor, fitFontSize, nodeTextStyle, truncate, nodeOpacity, nodeStroke, nodeFill, styleShadow, buildTree, treeWidth, treeDepth, gearPoints, flattenNodes, interpretSmartArtLayout, addSmartArtNode, removeSmartArtNode, demoteSmartArtNode, promoteSmartArtNode, reorderSmartArtNode, parseDataUrlToBytes, deobfuscateFont, detectFontFormat, createEditorId, makeStoreAwareId, reassignDescendantIds, checkMissingAltText, checkMissingSlideTitle, checkLowContrast, checkComplexTables, checkBlankSlide, checkDuplicateTitles, createChartElement, renameSlideMaster, deleteSlideMaster, duplicateSlideMaster, insertSlideMaster, renameLayout, deleteLayout, duplicateLayout, insertLayout, detectFileFormat, cloneElement, duplicateElement, serializePptxToJson, PPTX_JSON_MIME_TYPE, PptxMarkdownConverter, ThemePresets, formatCommentTimestamp as formatCommentTimestamp$1, EncryptedFileError, decodeXmlEntities, parseSignatureXml, groupElements, ungroupElements, updateSmartArtNodeText, setSmartArtNodeStyle, isInkElement, isZoomElement, SvgExporter, applyThemeToData, reResolveElementColors, pptxActionToElementAction, elementActionToPptxAction, setChartTitle, setChartLegend, setChartDataLabels, setChartAxis, setChartSeriesTrendline, setChartSeriesErrorBars, setChartDataPointLabel, setChartAxisLogScale, setChartAxisTitleStyle, setChartAxisGridlineStyle, setChartSeriesMarker, setChartSeriesChartType, setChartDataPointFill, setChartDataPointMarker, setChartDataPointExplosion, getOleObjectTypeLabel, addSmartArtNodeAsChild, switchSmartArtLayout, SWITCHABLE_LAYOUT_TYPES, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, applyThemeOverrideToSlide, TRANSITION_VALID_DIRECTIONS } from 'pptx-viewer-core';
5
+ import { THEME_PRESETS, guideEmuToPx, getShapeClipPath, getAdjustmentAwareClipPath, getShapeClipPathFromPreset, getCloudPathForRendering, MIN_ELEMENT_SIZE as MIN_ELEMENT_SIZE$1, customGeometryPathsToSvgSubpaths, evaluatePresetShape, hasShapeProperties, ooxmlGradientAngleToCssDegrees, getShapeType, isImageLikeElement, getElementTextContent, getRoundRectRadiusPx as getRoundRectRadiusPx$1, applyDrawingColorTransforms as applyDrawingColorTransforms$1, hslToRgb as hslToRgb$1, PRESET_COLOR_MAP, getSubstituteFontFamily, parsePanoseString, hasTextProperties, stripXmlOrderSuffix, orderedXmlKey, chartDataChangeType, chartDataAddSeries, chartDataRemoveSeries, chartDataAddCategory, chartDataRemoveCategory, chartDataUpdatePoint, rebuildTableStructureInRawXml, updateCellTextInRawXml, deepCloneData, cloneTemplateElementsBySlideId, cloneSlide, EMU_PER_PX as EMU_PER_PX$2, formatAutoNumberMarker, DEFAULT_POWERPOINT_TABLE_STYLE_ID, DEFAULT_SCHEME_COLOR_MAP as DEFAULT_SCHEME_COLOR_MAP$1, getLinkedTextBoxSegments, deriveSlideTitle, svgPathToPolygons, THEME_COLOR_SCHEME_KEYS, createBuiltinVariables, resolveCoordinate, lookupPresetShape, normalizeStShapeType, evaluateGuides, PptxHandler, styleStroke, strokeFor, fitFontSize, nodeTextStyle, truncate, nodeOpacity, nodeStroke, nodeFill, styleShadow, buildTree, treeWidth, treeDepth, gearPoints, flattenNodes, interpretSmartArtLayout, addSmartArtNode, removeSmartArtNode, demoteSmartArtNode, promoteSmartArtNode, reorderSmartArtNode, parseDataUrlToBytes, deobfuscateFont, detectFontFormat, createEditorId, makeStoreAwareId, reassignDescendantIds, checkMissingAltText, checkMissingSlideTitle, checkLowContrast, checkComplexTables, checkBlankSlide, checkDuplicateTitles, createChartElement, renameSlideMaster, deleteSlideMaster, duplicateSlideMaster, insertSlideMaster, renameLayout, deleteLayout, duplicateLayout, insertLayout, detectFileFormat, cloneElement, duplicateElement, serializePptxToJson, PPTX_JSON_MIME_TYPE, PptxMarkdownConverter, ThemePresets, formatCommentTimestamp as formatCommentTimestamp$1, EncryptedFileError, decodeXmlEntities, parseSignatureXml, groupElements, ungroupElements, updateSmartArtNodeText, setSmartArtNodeStyle, isInkElement, isZoomElement, SvgExporter, applyThemeToData, reResolveElementColors, pptxActionToElementAction, elementActionToPptxAction, setChartTitle, setChartLegend, setChartDataLabels, setChartAxis, setChartSeriesTrendline, setChartSeriesErrorBars, setChartDataPointLabel, setChartAxisLogScale, setChartAxisTitleStyle, setChartAxisGridlineStyle, setChartSeriesMarker, setChartSeriesChartType, setChartDataPointFill, setChartDataPointMarker, setChartDataPointExplosion, getOleObjectTypeLabel, addSmartArtNodeAsChild, switchSmartArtLayout, SWITCHABLE_LAYOUT_TYPES, COLOR_MAP_ALIAS_KEYS, DEFAULT_COLOR_MAP, applyThemeOverrideToSlide, TRANSITION_VALID_DIRECTIONS } from 'pptx-viewer-core';
6
6
  import DOMPurify from 'dompurify';
7
7
  import { z } from 'zod';
8
8
  import * as mcp from 'pptx-viewer-mcp';
@@ -32517,6 +32517,350 @@ function round6(value) {
32517
32517
  * childAbsX = childRelX + groupX
32518
32518
  */
32519
32519
 
32520
+ /**
32521
+ * Auto-numbering helpers for paragraph bullets (framework-agnostic).
32522
+ *
32523
+ * Numbering schemes follow the OOXML `ST_TextAutonumberScheme` enumeration
32524
+ * (ECMA-376 §20.1.10.61). The implementation lives in `pptx-viewer-core`
32525
+ * (`core/utils/auto-number-format`) because the LOAD path needs the identical
32526
+ * string: core stamps the marker onto the parsed bullet segment and the
32527
+ * renderer resolves it again from `BulletInfo`, and the paragraph builder drops
32528
+ * core's segment only when the two agree. While this module carried its own
32529
+ * table the two disagreed for every East-Asian / Thai / Hindi / Hebrew scheme
32530
+ * and painted a DOUBLE marker (`一.1. Item`). Core is the only package both
32531
+ * sides can depend on (shared already depends on core; the reverse would be a
32532
+ * cycle), so it owns the single copy and this module re-exports it.
32533
+ */
32534
+
32535
+ /**
32536
+ * Pure paragraph bullet / list-marker + indent helpers (framework-agnostic).
32537
+ *
32538
+ * Mirrors React's paragraph + bullet renderer (`text-paragraph-render.tsx` +
32539
+ * `text-segment-render.tsx`): bullet-glyph selection, auto-numbering (see
32540
+ * {@link ./bullet-autonum}), bullet font/size/colour, and the marginLeft /
32541
+ * hanging-indent layout. Shared by the React/Vue/Angular bindings.
32542
+ */
32543
+ /** Resolve React-compatible picture-bullet sizing and fallback metadata. */
32544
+ function resolvePictureBullet(info, baseFontSize) {
32545
+ if (!info.imageDataUrl && !info.imageRelId && !info.imageBlipFillXml) {
32546
+ return undefined;
32547
+ }
32548
+ const sizePx = typeof info.sizePts === 'number'
32549
+ ? info.sizePts
32550
+ : typeof info.sizePercent === 'number'
32551
+ ? baseFontSize * (info.sizePercent / 100)
32552
+ : baseFontSize;
32553
+ return {
32554
+ ...(info.imageDataUrl ? { src: info.imageDataUrl } : {}),
32555
+ sizePx,
32556
+ fallbackMarker: '•',
32557
+ accessibleLabel: 'Bullet',
32558
+ ...(info.imageRelId ? { imageRelId: info.imageRelId } : {}),
32559
+ };
32560
+ }
32561
+ /**
32562
+ * Resolve the bullet marker for the first segment of a paragraph.
32563
+ *
32564
+ * Returns `undefined` when the segment is absent or carries no `bulletInfo`,
32565
+ * when `bulletInfo.none`/`listType:'none'` suppresses it, or when neither a
32566
+ * character bullet nor an auto-number type is present. For auto-numbered
32567
+ * bullets the 1-based sequence index is `autoNumStartAt` (default 1) plus the
32568
+ * 0-based `paragraphIndex`.
32569
+ */
32570
+ function resolveParagraphBullet(firstSegment, baseFontSize = firstSegment?.style?.fontSize ?? 16) {
32571
+ if (!firstSegment) {
32572
+ return undefined;
32573
+ }
32574
+ // listType on the first segment's style can explicitly suppress bullets.
32575
+ if (firstSegment.style?.listType === 'none') {
32576
+ return undefined;
32577
+ }
32578
+ const info = firstSegment.bulletInfo;
32579
+ if (!info || info.none) {
32580
+ return undefined;
32581
+ }
32582
+ const color = info.color;
32583
+ const fontFamily = info.fontFamily;
32584
+ const sizePts = typeof info.sizePts === 'number' ? info.sizePts : undefined;
32585
+ const sizePercent = typeof info.sizePercent === 'number' ? info.sizePercent : undefined;
32586
+ const picture = resolvePictureBullet(info, baseFontSize);
32587
+ if (picture) {
32588
+ return {
32589
+ marker: picture.fallbackMarker,
32590
+ isNumbered: false,
32591
+ color,
32592
+ fontFamily,
32593
+ sizePts,
32594
+ sizePercent,
32595
+ picture,
32596
+ };
32597
+ }
32598
+ // ── Auto-numbered list ──
32599
+ if (info.autoNumType) {
32600
+ const startAt = typeof info.autoNumStartAt === 'number' ? info.autoNumStartAt : 1;
32601
+ const paraIdx = typeof info.paragraphIndex === 'number' ? info.paragraphIndex : 0;
32602
+ const seqNum = Math.max(1, startAt + paraIdx);
32603
+ return {
32604
+ marker: formatAutoNumberMarker(info.autoNumType, seqNum),
32605
+ isNumbered: true,
32606
+ color,
32607
+ fontFamily,
32608
+ sizePts,
32609
+ sizePercent,
32610
+ };
32611
+ }
32612
+ // ── Character bullet ──
32613
+ if (info.char) {
32614
+ return { marker: info.char, isNumbered: false, color, fontFamily, sizePts, sizePercent };
32615
+ }
32616
+ // Unsupported cases have no marker to show as text.
32617
+ return undefined;
32618
+ }
32619
+ /** Pixels of left-padding to apply per list nesting level. */
32620
+ const INDENT_PX_PER_LEVEL = 18;
32621
+ /**
32622
+ * Return the left-indent in pixels for the given 0-based list nesting level
32623
+ * (OOXML `a:p/@lvl`). `undefined`/negative is treated as level 0. Used as a
32624
+ * fallback when the element carries no explicit per-paragraph `marginLeft`.
32625
+ */
32626
+ function bulletIndentPx(level) {
32627
+ const lvl = typeof level === 'number' && level > 0 ? level : 0;
32628
+ return lvl * INDENT_PX_PER_LEVEL;
32629
+ }
32630
+ /**
32631
+ * Resolve the hanging-indent layout for a paragraph (mirrors React's
32632
+ * `text-paragraph-render.tsx`). Explicit `paragraphIndents[paraIndex]`
32633
+ * `marginLeft`/`indent` are used verbatim (zeros omitted); otherwise falls back
32634
+ * to the per-level indent derived from `paragraphLevel`.
32635
+ */
32636
+ function resolveParagraphIndent(paraIndent, paragraphLevel) {
32637
+ const marginLeft = typeof paraIndent?.marginLeft === 'number' && paraIndent.marginLeft !== 0
32638
+ ? paraIndent.marginLeft
32639
+ : undefined;
32640
+ const textIndent = typeof paraIndent?.indent === 'number' && paraIndent.indent !== 0
32641
+ ? paraIndent.indent
32642
+ : undefined;
32643
+ if (marginLeft === undefined && textIndent === undefined) {
32644
+ const levelPx = bulletIndentPx(paragraphLevel);
32645
+ return levelPx > 0 ? { marginLeftPx: levelPx } : {};
32646
+ }
32647
+ return { marginLeftPx: marginLeft, textIndentPx: textIndent };
32648
+ }
32649
+
32650
+ /**
32651
+ * Bullet / numbered-list toggling for the ribbon's paragraph buttons.
32652
+ *
32653
+ * The renderer (`resolveParagraphBullet`) and the save writer
32654
+ * (`applyBulletProperties`) both read a paragraph's list state from the
32655
+ * `bulletInfo` of its FIRST segment; `TextStyle.listType` is consulted for
32656
+ * nothing but the `'none'` suppression. Every binding's Bullets / Numbering
32657
+ * button used to write `listType: 'bullet' | 'numbered'` onto the element's
32658
+ * `textStyle`, a field nothing downstream reads, so the buttons were dead.
32659
+ *
32660
+ * These helpers author the real thing: a `BulletInfo` on each paragraph's
32661
+ * first segment (`a:buChar` / `a:buAutoNum` / `a:buNone` on save), with the
32662
+ * inert `listType` cleared so a stale `'none'` cannot suppress the new marker.
32663
+ *
32664
+ * On load core prefixes a display-only marker segment (text "• " / "1.") to a
32665
+ * listed paragraph; the renderer drops it when its text matches the marker it
32666
+ * would draw, and the save writer drops it because the paragraph properties
32667
+ * already express it. Switching a bullet to a number (or off) would leave the
32668
+ * old glyph behind as literal text, so the previous marker is removed and a
32669
+ * fresh one authored in the same shape core uses.
32670
+ */
32671
+ /** The default character bullet PowerPoint inserts (`a:buChar char="•"`). */
32672
+ const DEFAULT_BULLET_CHAR = '•';
32673
+ /** The default numbering scheme PowerPoint inserts (`a:buAutoNum type="arabicPeriod"`). */
32674
+ const DEFAULT_AUTONUM_TYPE = 'arabicPeriod';
32675
+ /**
32676
+ * The `BulletInfo` that authors `kind`.
32677
+ *
32678
+ * @param ordinal - Zero-based position of the paragraph within its numbered
32679
+ * run, published as `paragraphIndex` so the renderer counts "1. 2. 3." (see
32680
+ * `BulletInfo.paragraphIndex`). Ignored for the other kinds.
32681
+ */
32682
+ function bulletInfoForKind(kind, ordinal = 0) {
32683
+ switch (kind) {
32684
+ case 'bullet':
32685
+ return { char: DEFAULT_BULLET_CHAR };
32686
+ case 'numbered':
32687
+ return { autoNumType: DEFAULT_AUTONUM_TYPE, autoNumStartAt: 1, paragraphIndex: ordinal };
32688
+ case 'none':
32689
+ return { none: true };
32690
+ }
32691
+ }
32692
+ /**
32693
+ * Whether a segment is the display-only marker core inserts on load (mirrors
32694
+ * the save writer's `isRenderedBulletMarker`): it carries `bulletInfo` and its
32695
+ * text is exactly the glyph the renderer would draw for that info.
32696
+ */
32697
+ function isBulletMarkerSegment(segment) {
32698
+ const bullet = segment.bulletInfo;
32699
+ if (!bullet || bullet.none) {
32700
+ return false;
32701
+ }
32702
+ const resolved = resolveParagraphBullet(segment);
32703
+ if (!resolved) {
32704
+ return false;
32705
+ }
32706
+ return segment.text.trim() === resolved.marker.trim() && segment.text.trim().length > 0;
32707
+ }
32708
+ /**
32709
+ * The current list state of one paragraph (its segments, separators excluded),
32710
+ * derived from the resolved bullet of its first segment so an inherited
32711
+ * (master / layout) bullet that core resolved on load counts as `'bullet'`.
32712
+ */
32713
+ function paragraphBulletKind(paragraph) {
32714
+ const resolved = resolveParagraphBullet(paragraph[0]);
32715
+ if (!resolved) {
32716
+ return 'none';
32717
+ }
32718
+ return resolved.isNumbered ? 'numbered' : 'bullet';
32719
+ }
32720
+ /** Copy of `style` without the inert `listType` flag. */
32721
+ function withoutListType(style) {
32722
+ const next = { ...(style ?? {}) };
32723
+ delete next.listType;
32724
+ return next;
32725
+ }
32726
+ function paragraphMeta(segment) {
32727
+ const meta = {};
32728
+ if (segment?.paragraphLevel !== undefined) {
32729
+ meta.paragraphLevel = segment.paragraphLevel;
32730
+ }
32731
+ if (segment?.paragraphProperties !== undefined) {
32732
+ meta.paragraphProperties = segment.paragraphProperties;
32733
+ }
32734
+ if (segment?.endParaRunProperties !== undefined) {
32735
+ meta.endParaRunProperties = segment.endParaRunProperties;
32736
+ }
32737
+ return meta;
32738
+ }
32739
+ /** The display text of the marker segment for a bullet / numbered `info`. */
32740
+ function markerText(info) {
32741
+ if (info.char) {
32742
+ return `${info.char} `;
32743
+ }
32744
+ const ordinal = (info.autoNumStartAt ?? 1) + (info.paragraphIndex ?? 0);
32745
+ return formatAutoNumberMarker(info.autoNumType ?? DEFAULT_AUTONUM_TYPE, ordinal);
32746
+ }
32747
+ /**
32748
+ * Set one paragraph's list state to `kind`, returning the paragraph's new
32749
+ * segments.
32750
+ *
32751
+ * The result uses the same shape core produces on load, so the renderer and
32752
+ * the save writer treat an authored list exactly like a parsed one: for
32753
+ * `'bullet'` / `'numbered'` a display-only marker segment carrying the new
32754
+ * `bulletInfo` (and the paragraph-level fields) is placed first, followed by
32755
+ * the content runs with any previous marker removed; for `'none'` the marker
32756
+ * is dropped and the first content segment carries `{ none: true }`. The
32757
+ * inert `style.listType` is cleared on the touched segments. An empty
32758
+ * paragraph is returned unchanged since there is no run to carry the state.
32759
+ *
32760
+ * @param ordinal - Zero-based position within a numbered run; see
32761
+ * {@link bulletInfoForKind}.
32762
+ */
32763
+ function toggleParagraphBullet(paragraph, kind, ordinal = 0) {
32764
+ const content = paragraph.filter((segment) => !isBulletMarkerSegment(segment));
32765
+ const first = content[0];
32766
+ if (!first) {
32767
+ return [...paragraph];
32768
+ }
32769
+ const meta = paragraphMeta(paragraph[0]);
32770
+ const info = bulletInfoForKind(kind, ordinal);
32771
+ const rest = content.slice(1);
32772
+ if (kind === 'none') {
32773
+ return [{ ...first, ...meta, style: withoutListType(first.style), bulletInfo: info }, ...rest];
32774
+ }
32775
+ const marker = {
32776
+ text: markerText(info),
32777
+ style: withoutListType(first.style),
32778
+ ...meta,
32779
+ bulletInfo: info,
32780
+ };
32781
+ const body = { ...first, style: withoutListType(first.style) };
32782
+ delete body.bulletInfo;
32783
+ return [marker, body, ...rest];
32784
+ }
32785
+ function isParagraphSeparator$1(segment) {
32786
+ return Boolean(segment.isParagraphBreak) || (segment.text === '\n' && !segment.isLineBreak);
32787
+ }
32788
+ /** Split a segment list into paragraphs, keeping each paragraph's terminator. */
32789
+ function splitParagraphs(segments) {
32790
+ const paragraphs = [
32791
+ { segments: [] },
32792
+ ];
32793
+ for (const segment of segments) {
32794
+ if (isParagraphSeparator$1(segment)) {
32795
+ paragraphs[paragraphs.length - 1].terminator = segment;
32796
+ paragraphs.push({ segments: [] });
32797
+ continue;
32798
+ }
32799
+ paragraphs[paragraphs.length - 1].segments.push(segment);
32800
+ }
32801
+ return paragraphs;
32802
+ }
32803
+ /** The element's segments, synthesised from `text` when it carries none. */
32804
+ function elementSegments(element) {
32805
+ if (!hasTextProperties(element)) {
32806
+ return [];
32807
+ }
32808
+ if (element.textSegments && element.textSegments.length > 0) {
32809
+ return element.textSegments;
32810
+ }
32811
+ const style = { ...(element.textStyle ?? {}) };
32812
+ const segments = [];
32813
+ for (const [index, line] of (element.text ?? '').split('\n').entries()) {
32814
+ if (index > 0) {
32815
+ segments.push({ text: '\n', style: { ...style }, isParagraphBreak: true });
32816
+ }
32817
+ segments.push({ text: line, style: { ...style } });
32818
+ }
32819
+ return segments;
32820
+ }
32821
+ /**
32822
+ * The list state an element's ribbon buttons should show: the kind of its
32823
+ * first non-empty paragraph, since that is what a toggle would act on.
32824
+ */
32825
+ function elementBulletKind(element) {
32826
+ for (const paragraph of splitParagraphs(elementSegments(element))) {
32827
+ if (paragraph.segments.length > 0) {
32828
+ return paragraphBulletKind(paragraph.segments);
32829
+ }
32830
+ }
32831
+ return 'none';
32832
+ }
32833
+ /**
32834
+ * Set every paragraph of an element to `kind`, returning the element patch
32835
+ * (`textSegments` rewritten; `textStyle.listType` cleared so the element-level
32836
+ * flag can no longer suppress or lie about the state). Numbered paragraphs are
32837
+ * counted consecutively so the renderer shows "1. 2. 3.".
32838
+ */
32839
+ function setElementBullets(element, kind) {
32840
+ const textStyle = withoutListType(hasTextProperties(element) ? element.textStyle : undefined);
32841
+ const next = [];
32842
+ let ordinal = 0;
32843
+ for (const paragraph of splitParagraphs(elementSegments(element))) {
32844
+ if (paragraph.segments.length > 0) {
32845
+ next.push(...toggleParagraphBullet(paragraph.segments, kind, ordinal));
32846
+ ordinal += 1;
32847
+ }
32848
+ if (paragraph.terminator) {
32849
+ next.push(paragraph.terminator);
32850
+ }
32851
+ }
32852
+ return { textSegments: next, textStyle };
32853
+ }
32854
+ /**
32855
+ * The ribbon button behaviour: pressing Bullets (or Numbering) on an element
32856
+ * already in that state turns its lists off, otherwise it applies that kind
32857
+ * to every paragraph. Returns the element patch to apply through the
32858
+ * binding's update-element operation.
32859
+ */
32860
+ function toggleElementBullets(element, kind) {
32861
+ return setElementBullets(element, elementBulletKind(element) === kind ? 'none' : kind);
32862
+ }
32863
+
32520
32864
  /**
32521
32865
  * PowerPoint's Outline view, as a framework-agnostic model of the deck's text.
32522
32866
  *
@@ -32680,16 +33024,17 @@ function isBulletMarker(segment) {
32680
33024
  if (!bullet) {
32681
33025
  return false;
32682
33026
  }
33027
+ if (bullet.autoNumType) {
33028
+ return bullet.paragraphIndex !== undefined && isBulletMarkerSegment(segment);
33029
+ }
32683
33030
  const marker = bullet.char
32684
33031
  ? `${bullet.char} `
32685
33032
  : bullet.imageRelId || bullet.imageDataUrl
32686
33033
  ? '\u{1F4CE} '
32687
- : bullet.autoNumType
32688
- ? undefined
32689
- : '• ';
32690
- return marker ? segment.text === marker : bullet.paragraphIndex !== undefined;
33034
+ : '• ';
33035
+ return segment.text === marker;
32691
33036
  }
32692
- function isParagraphSeparator$1(segment) {
33037
+ function isParagraphSeparator(segment) {
32693
33038
  return Boolean(segment.isParagraphBreak) || (segment.text === '\n' && !segment.isLineBreak);
32694
33039
  }
32695
33040
  /**
@@ -32710,7 +33055,7 @@ function groupElementParagraphs(element) {
32710
33055
  }
32711
33056
  const groups = [{ content: [] }];
32712
33057
  for (const segment of segments) {
32713
- if (isParagraphSeparator$1(segment)) {
33058
+ if (isParagraphSeparator(segment)) {
32714
33059
  groups.push({ content: [] });
32715
33060
  continue;
32716
33061
  }
@@ -38842,350 +39187,6 @@ function rulerDragToGuidePosition(pointerOffsetPx, scale, slideLengthPx) {
38842
39187
  return position;
38843
39188
  }
38844
39189
 
38845
- /**
38846
- * Auto-numbering helpers for paragraph bullets (framework-agnostic).
38847
- *
38848
- * Numbering schemes follow the OOXML `ST_TextAutonumberScheme` enumeration
38849
- * (ECMA-376 §20.1.10.61). The implementation lives in `pptx-viewer-core`
38850
- * (`core/utils/auto-number-format`) because the LOAD path needs the identical
38851
- * string: core stamps the marker onto the parsed bullet segment and the
38852
- * renderer resolves it again from `BulletInfo`, and the paragraph builder drops
38853
- * core's segment only when the two agree. While this module carried its own
38854
- * table the two disagreed for every East-Asian / Thai / Hindi / Hebrew scheme
38855
- * and painted a DOUBLE marker (`一.1. Item`). Core is the only package both
38856
- * sides can depend on (shared already depends on core; the reverse would be a
38857
- * cycle), so it owns the single copy and this module re-exports it.
38858
- */
38859
-
38860
- /**
38861
- * Pure paragraph bullet / list-marker + indent helpers (framework-agnostic).
38862
- *
38863
- * Mirrors React's paragraph + bullet renderer (`text-paragraph-render.tsx` +
38864
- * `text-segment-render.tsx`): bullet-glyph selection, auto-numbering (see
38865
- * {@link ./bullet-autonum}), bullet font/size/colour, and the marginLeft /
38866
- * hanging-indent layout. Shared by the React/Vue/Angular bindings.
38867
- */
38868
- /** Resolve React-compatible picture-bullet sizing and fallback metadata. */
38869
- function resolvePictureBullet(info, baseFontSize) {
38870
- if (!info.imageDataUrl && !info.imageRelId && !info.imageBlipFillXml) {
38871
- return undefined;
38872
- }
38873
- const sizePx = typeof info.sizePts === 'number'
38874
- ? info.sizePts
38875
- : typeof info.sizePercent === 'number'
38876
- ? baseFontSize * (info.sizePercent / 100)
38877
- : baseFontSize;
38878
- return {
38879
- ...(info.imageDataUrl ? { src: info.imageDataUrl } : {}),
38880
- sizePx,
38881
- fallbackMarker: '•',
38882
- accessibleLabel: 'Bullet',
38883
- ...(info.imageRelId ? { imageRelId: info.imageRelId } : {}),
38884
- };
38885
- }
38886
- /**
38887
- * Resolve the bullet marker for the first segment of a paragraph.
38888
- *
38889
- * Returns `undefined` when the segment is absent or carries no `bulletInfo`,
38890
- * when `bulletInfo.none`/`listType:'none'` suppresses it, or when neither a
38891
- * character bullet nor an auto-number type is present. For auto-numbered
38892
- * bullets the 1-based sequence index is `autoNumStartAt` (default 1) plus the
38893
- * 0-based `paragraphIndex`.
38894
- */
38895
- function resolveParagraphBullet(firstSegment, baseFontSize = firstSegment?.style?.fontSize ?? 16) {
38896
- if (!firstSegment) {
38897
- return undefined;
38898
- }
38899
- // listType on the first segment's style can explicitly suppress bullets.
38900
- if (firstSegment.style?.listType === 'none') {
38901
- return undefined;
38902
- }
38903
- const info = firstSegment.bulletInfo;
38904
- if (!info || info.none) {
38905
- return undefined;
38906
- }
38907
- const color = info.color;
38908
- const fontFamily = info.fontFamily;
38909
- const sizePts = typeof info.sizePts === 'number' ? info.sizePts : undefined;
38910
- const sizePercent = typeof info.sizePercent === 'number' ? info.sizePercent : undefined;
38911
- const picture = resolvePictureBullet(info, baseFontSize);
38912
- if (picture) {
38913
- return {
38914
- marker: picture.fallbackMarker,
38915
- isNumbered: false,
38916
- color,
38917
- fontFamily,
38918
- sizePts,
38919
- sizePercent,
38920
- picture,
38921
- };
38922
- }
38923
- // ── Auto-numbered list ──
38924
- if (info.autoNumType) {
38925
- const startAt = typeof info.autoNumStartAt === 'number' ? info.autoNumStartAt : 1;
38926
- const paraIdx = typeof info.paragraphIndex === 'number' ? info.paragraphIndex : 0;
38927
- const seqNum = Math.max(1, startAt + paraIdx);
38928
- return {
38929
- marker: formatAutoNumberMarker(info.autoNumType, seqNum),
38930
- isNumbered: true,
38931
- color,
38932
- fontFamily,
38933
- sizePts,
38934
- sizePercent,
38935
- };
38936
- }
38937
- // ── Character bullet ──
38938
- if (info.char) {
38939
- return { marker: info.char, isNumbered: false, color, fontFamily, sizePts, sizePercent };
38940
- }
38941
- // Unsupported cases have no marker to show as text.
38942
- return undefined;
38943
- }
38944
- /** Pixels of left-padding to apply per list nesting level. */
38945
- const INDENT_PX_PER_LEVEL = 18;
38946
- /**
38947
- * Return the left-indent in pixels for the given 0-based list nesting level
38948
- * (OOXML `a:p/@lvl`). `undefined`/negative is treated as level 0. Used as a
38949
- * fallback when the element carries no explicit per-paragraph `marginLeft`.
38950
- */
38951
- function bulletIndentPx(level) {
38952
- const lvl = typeof level === 'number' && level > 0 ? level : 0;
38953
- return lvl * INDENT_PX_PER_LEVEL;
38954
- }
38955
- /**
38956
- * Resolve the hanging-indent layout for a paragraph (mirrors React's
38957
- * `text-paragraph-render.tsx`). Explicit `paragraphIndents[paraIndex]`
38958
- * `marginLeft`/`indent` are used verbatim (zeros omitted); otherwise falls back
38959
- * to the per-level indent derived from `paragraphLevel`.
38960
- */
38961
- function resolveParagraphIndent(paraIndent, paragraphLevel) {
38962
- const marginLeft = typeof paraIndent?.marginLeft === 'number' && paraIndent.marginLeft !== 0
38963
- ? paraIndent.marginLeft
38964
- : undefined;
38965
- const textIndent = typeof paraIndent?.indent === 'number' && paraIndent.indent !== 0
38966
- ? paraIndent.indent
38967
- : undefined;
38968
- if (marginLeft === undefined && textIndent === undefined) {
38969
- const levelPx = bulletIndentPx(paragraphLevel);
38970
- return levelPx > 0 ? { marginLeftPx: levelPx } : {};
38971
- }
38972
- return { marginLeftPx: marginLeft, textIndentPx: textIndent };
38973
- }
38974
-
38975
- /**
38976
- * Bullet / numbered-list toggling for the ribbon's paragraph buttons.
38977
- *
38978
- * The renderer (`resolveParagraphBullet`) and the save writer
38979
- * (`applyBulletProperties`) both read a paragraph's list state from the
38980
- * `bulletInfo` of its FIRST segment; `TextStyle.listType` is consulted for
38981
- * nothing but the `'none'` suppression. Every binding's Bullets / Numbering
38982
- * button used to write `listType: 'bullet' | 'numbered'` onto the element's
38983
- * `textStyle`, a field nothing downstream reads, so the buttons were dead.
38984
- *
38985
- * These helpers author the real thing: a `BulletInfo` on each paragraph's
38986
- * first segment (`a:buChar` / `a:buAutoNum` / `a:buNone` on save), with the
38987
- * inert `listType` cleared so a stale `'none'` cannot suppress the new marker.
38988
- *
38989
- * On load core prefixes a display-only marker segment (text "• " / "1.") to a
38990
- * listed paragraph; the renderer drops it when its text matches the marker it
38991
- * would draw, and the save writer drops it because the paragraph properties
38992
- * already express it. Switching a bullet to a number (or off) would leave the
38993
- * old glyph behind as literal text, so the previous marker is removed and a
38994
- * fresh one authored in the same shape core uses.
38995
- */
38996
- /** The default character bullet PowerPoint inserts (`a:buChar char="•"`). */
38997
- const DEFAULT_BULLET_CHAR = '•';
38998
- /** The default numbering scheme PowerPoint inserts (`a:buAutoNum type="arabicPeriod"`). */
38999
- const DEFAULT_AUTONUM_TYPE = 'arabicPeriod';
39000
- /**
39001
- * The `BulletInfo` that authors `kind`.
39002
- *
39003
- * @param ordinal - Zero-based position of the paragraph within its numbered
39004
- * run, published as `paragraphIndex` so the renderer counts "1. 2. 3." (see
39005
- * `BulletInfo.paragraphIndex`). Ignored for the other kinds.
39006
- */
39007
- function bulletInfoForKind(kind, ordinal = 0) {
39008
- switch (kind) {
39009
- case 'bullet':
39010
- return { char: DEFAULT_BULLET_CHAR };
39011
- case 'numbered':
39012
- return { autoNumType: DEFAULT_AUTONUM_TYPE, autoNumStartAt: 1, paragraphIndex: ordinal };
39013
- case 'none':
39014
- return { none: true };
39015
- }
39016
- }
39017
- /**
39018
- * Whether a segment is the display-only marker core inserts on load (mirrors
39019
- * the save writer's `isRenderedBulletMarker`): it carries `bulletInfo` and its
39020
- * text is exactly the glyph the renderer would draw for that info.
39021
- */
39022
- function isBulletMarkerSegment(segment) {
39023
- const bullet = segment.bulletInfo;
39024
- if (!bullet || bullet.none) {
39025
- return false;
39026
- }
39027
- const resolved = resolveParagraphBullet(segment);
39028
- if (!resolved) {
39029
- return false;
39030
- }
39031
- return segment.text.trim() === resolved.marker.trim() && segment.text.trim().length > 0;
39032
- }
39033
- /**
39034
- * The current list state of one paragraph (its segments, separators excluded),
39035
- * derived from the resolved bullet of its first segment so an inherited
39036
- * (master / layout) bullet that core resolved on load counts as `'bullet'`.
39037
- */
39038
- function paragraphBulletKind(paragraph) {
39039
- const resolved = resolveParagraphBullet(paragraph[0]);
39040
- if (!resolved) {
39041
- return 'none';
39042
- }
39043
- return resolved.isNumbered ? 'numbered' : 'bullet';
39044
- }
39045
- /** Copy of `style` without the inert `listType` flag. */
39046
- function withoutListType(style) {
39047
- const next = { ...(style ?? {}) };
39048
- delete next.listType;
39049
- return next;
39050
- }
39051
- function paragraphMeta(segment) {
39052
- const meta = {};
39053
- if (segment?.paragraphLevel !== undefined) {
39054
- meta.paragraphLevel = segment.paragraphLevel;
39055
- }
39056
- if (segment?.paragraphProperties !== undefined) {
39057
- meta.paragraphProperties = segment.paragraphProperties;
39058
- }
39059
- if (segment?.endParaRunProperties !== undefined) {
39060
- meta.endParaRunProperties = segment.endParaRunProperties;
39061
- }
39062
- return meta;
39063
- }
39064
- /** The display text of the marker segment for a bullet / numbered `info`. */
39065
- function markerText(info) {
39066
- if (info.char) {
39067
- return `${info.char} `;
39068
- }
39069
- const ordinal = (info.autoNumStartAt ?? 1) + (info.paragraphIndex ?? 0);
39070
- return formatAutoNumberMarker(info.autoNumType ?? DEFAULT_AUTONUM_TYPE, ordinal);
39071
- }
39072
- /**
39073
- * Set one paragraph's list state to `kind`, returning the paragraph's new
39074
- * segments.
39075
- *
39076
- * The result uses the same shape core produces on load, so the renderer and
39077
- * the save writer treat an authored list exactly like a parsed one: for
39078
- * `'bullet'` / `'numbered'` a display-only marker segment carrying the new
39079
- * `bulletInfo` (and the paragraph-level fields) is placed first, followed by
39080
- * the content runs with any previous marker removed; for `'none'` the marker
39081
- * is dropped and the first content segment carries `{ none: true }`. The
39082
- * inert `style.listType` is cleared on the touched segments. An empty
39083
- * paragraph is returned unchanged since there is no run to carry the state.
39084
- *
39085
- * @param ordinal - Zero-based position within a numbered run; see
39086
- * {@link bulletInfoForKind}.
39087
- */
39088
- function toggleParagraphBullet(paragraph, kind, ordinal = 0) {
39089
- const content = paragraph.filter((segment) => !isBulletMarkerSegment(segment));
39090
- const first = content[0];
39091
- if (!first) {
39092
- return [...paragraph];
39093
- }
39094
- const meta = paragraphMeta(paragraph[0]);
39095
- const info = bulletInfoForKind(kind, ordinal);
39096
- const rest = content.slice(1);
39097
- if (kind === 'none') {
39098
- return [{ ...first, ...meta, style: withoutListType(first.style), bulletInfo: info }, ...rest];
39099
- }
39100
- const marker = {
39101
- text: markerText(info),
39102
- style: withoutListType(first.style),
39103
- ...meta,
39104
- bulletInfo: info,
39105
- };
39106
- const body = { ...first, style: withoutListType(first.style) };
39107
- delete body.bulletInfo;
39108
- return [marker, body, ...rest];
39109
- }
39110
- function isParagraphSeparator(segment) {
39111
- return Boolean(segment.isParagraphBreak) || (segment.text === '\n' && !segment.isLineBreak);
39112
- }
39113
- /** Split a segment list into paragraphs, keeping each paragraph's terminator. */
39114
- function splitParagraphs(segments) {
39115
- const paragraphs = [
39116
- { segments: [] },
39117
- ];
39118
- for (const segment of segments) {
39119
- if (isParagraphSeparator(segment)) {
39120
- paragraphs[paragraphs.length - 1].terminator = segment;
39121
- paragraphs.push({ segments: [] });
39122
- continue;
39123
- }
39124
- paragraphs[paragraphs.length - 1].segments.push(segment);
39125
- }
39126
- return paragraphs;
39127
- }
39128
- /** The element's segments, synthesised from `text` when it carries none. */
39129
- function elementSegments(element) {
39130
- if (!hasTextProperties(element)) {
39131
- return [];
39132
- }
39133
- if (element.textSegments && element.textSegments.length > 0) {
39134
- return element.textSegments;
39135
- }
39136
- const style = { ...(element.textStyle ?? {}) };
39137
- const segments = [];
39138
- for (const [index, line] of (element.text ?? '').split('\n').entries()) {
39139
- if (index > 0) {
39140
- segments.push({ text: '\n', style: { ...style }, isParagraphBreak: true });
39141
- }
39142
- segments.push({ text: line, style: { ...style } });
39143
- }
39144
- return segments;
39145
- }
39146
- /**
39147
- * The list state an element's ribbon buttons should show: the kind of its
39148
- * first non-empty paragraph, since that is what a toggle would act on.
39149
- */
39150
- function elementBulletKind(element) {
39151
- for (const paragraph of splitParagraphs(elementSegments(element))) {
39152
- if (paragraph.segments.length > 0) {
39153
- return paragraphBulletKind(paragraph.segments);
39154
- }
39155
- }
39156
- return 'none';
39157
- }
39158
- /**
39159
- * Set every paragraph of an element to `kind`, returning the element patch
39160
- * (`textSegments` rewritten; `textStyle.listType` cleared so the element-level
39161
- * flag can no longer suppress or lie about the state). Numbered paragraphs are
39162
- * counted consecutively so the renderer shows "1. 2. 3.".
39163
- */
39164
- function setElementBullets(element, kind) {
39165
- const textStyle = withoutListType(hasTextProperties(element) ? element.textStyle : undefined);
39166
- const next = [];
39167
- let ordinal = 0;
39168
- for (const paragraph of splitParagraphs(elementSegments(element))) {
39169
- if (paragraph.segments.length > 0) {
39170
- next.push(...toggleParagraphBullet(paragraph.segments, kind, ordinal));
39171
- ordinal += 1;
39172
- }
39173
- if (paragraph.terminator) {
39174
- next.push(paragraph.terminator);
39175
- }
39176
- }
39177
- return { textSegments: next, textStyle };
39178
- }
39179
- /**
39180
- * The ribbon button behaviour: pressing Bullets (or Numbering) on an element
39181
- * already in that state turns its lists off, otherwise it applies that kind
39182
- * to every paragraph. Returns the element patch to apply through the
39183
- * binding's update-element operation.
39184
- */
39185
- function toggleElementBullets(element, kind) {
39186
- return setElementBullets(element, elementBulletKind(element) === kind ? 'none' : kind);
39187
- }
39188
-
39189
39190
  /**
39190
39191
  * notes-utils.ts: framework-agnostic pure helpers for the rich speaker-notes
39191
39192
  * editor, shared by the React, Vue, and Angular bindings.
@@ -50245,6 +50246,37 @@ function hasCopyableFormat(element) {
50245
50246
  return hasShapeProperties(element) || hasTextProperties(element);
50246
50247
  }
50247
50248
 
50249
+ /**
50250
+ * Remove marker text from editor surfaces that seed it as ordinary text.
50251
+ * Depending on the binding, the gap can be CSS (`"1.Item"`) or the parsed
50252
+ * marker's trailing space (`"1. Item"`). React instead annotates its rendered
50253
+ * marker so `readEditableText` can exclude it at the DOM boundary.
50254
+ */
50255
+ function withoutRenderedBulletPrefix(text, originalSegments, dedicatedMarker) {
50256
+ if (!dedicatedMarker) {
50257
+ return text;
50258
+ }
50259
+ const resolved = resolveParagraphBullet(dedicatedMarker);
50260
+ if (!resolved || !text.startsWith(resolved.marker)) {
50261
+ return text;
50262
+ }
50263
+ const withoutMarker = text.slice(resolved.marker.length);
50264
+ const originalContent = originalSegments
50265
+ .slice(1)
50266
+ .map((segment) => segment.text)
50267
+ .join('');
50268
+ // Empty list paragraphs do not render a marker, so marker-like text typed
50269
+ // into them is authored content and must not be stripped.
50270
+ if (originalContent.trim().length === 0) {
50271
+ return text;
50272
+ }
50273
+ const originalLeadingSpaces = originalContent.length - originalContent.trimStart().length;
50274
+ const editedLeadingSpaces = withoutMarker.length - withoutMarker.trimStart().length;
50275
+ if (editedLeadingSpaces > originalLeadingSpaces) {
50276
+ return withoutMarker.slice(1);
50277
+ }
50278
+ return withoutMarker;
50279
+ }
50248
50280
  /**
50249
50281
  * Whether an original segment is ATOMIC: its rendered text is not what is
50250
50282
  * literally stored (a field re-substitutes its live value at render, from
@@ -50294,6 +50326,34 @@ function copySegmentMetadata(from, to) {
50294
50326
  }
50295
50327
  return to;
50296
50328
  }
50329
+ /**
50330
+ * Restore paragraph-scoped metadata on the first remapped run. Core and the
50331
+ * save writer deliberately carry these values on that run only; remapping the
50332
+ * characters must not turn an authored paragraph back into a default one.
50333
+ */
50334
+ function restoreParagraphMetadata(from, segments) {
50335
+ if (segments.length === 0) {
50336
+ return segments;
50337
+ }
50338
+ const [first, ...rest] = segments;
50339
+ const restored = { ...first };
50340
+ // `remapParagraph` may itself return a donor segment. Clear its paragraph
50341
+ // fields first so an extra paragraph cannot accidentally inherit metadata
50342
+ // merely because it reused the final paragraph for run styling.
50343
+ delete restored.paragraphLevel;
50344
+ delete restored.paragraphProperties;
50345
+ delete restored.endParaRunProperties;
50346
+ if (from?.paragraphLevel !== undefined) {
50347
+ restored.paragraphLevel = from.paragraphLevel;
50348
+ }
50349
+ if (from?.paragraphProperties !== undefined) {
50350
+ restored.paragraphProperties = from.paragraphProperties;
50351
+ }
50352
+ if (from?.endParaRunProperties !== undefined) {
50353
+ restored.endParaRunProperties = from.endParaRunProperties;
50354
+ }
50355
+ return [restored, ...rest];
50356
+ }
50297
50357
  /**
50298
50358
  * Strategy:
50299
50359
  * 1. Split both original segments and new text into paragraphs by "\n".
@@ -50306,18 +50366,25 @@ function remapTextToSegments(newText, originalSegments, elementTextStyle) {
50306
50366
  if (!originalSegments || originalSegments.length === 0) {
50307
50367
  return [{ text: newText, style: fallbackStyle }];
50308
50368
  }
50309
- // Split original segments into paragraphs by paragraph-break markers.
50310
- const originalParagraphs = [[]];
50369
+ // Split original segments into paragraphs by paragraph-break markers. Keep
50370
+ // each terminator because an authored empty paragraph has no content run, so
50371
+ // core carries its paragraph metadata on the terminator itself.
50372
+ const originalParagraphs = [
50373
+ { segments: [] },
50374
+ ];
50311
50375
  for (const seg of originalSegments) {
50312
50376
  if (seg.text === '\n' || seg.isParagraphBreak) {
50313
- originalParagraphs.push([]);
50377
+ originalParagraphs[originalParagraphs.length - 1].terminator = seg;
50378
+ originalParagraphs.push({ segments: [] });
50314
50379
  }
50315
50380
  else {
50316
- originalParagraphs[originalParagraphs.length - 1].push(seg);
50381
+ originalParagraphs[originalParagraphs.length - 1].segments.push(seg);
50317
50382
  }
50318
50383
  }
50319
50384
  const newParagraphTexts = newText.split('\n');
50320
- const firstContentSeg = originalParagraphs.flat().find((s) => s.text.trim().length > 0);
50385
+ const firstContentSeg = originalParagraphs
50386
+ .flatMap((paragraph) => paragraph.segments)
50387
+ .find((s) => s.text.trim().length > 0);
50321
50388
  const baseFallbackStyle = firstContentSeg?.style
50322
50389
  ? { ...firstContentSeg.style }
50323
50390
  : fallbackStyle;
@@ -50327,6 +50394,20 @@ function remapTextToSegments(newText, originalSegments, elementTextStyle) {
50327
50394
  ? [{ text: paraNewText, style: { ...baseFallbackStyle } }]
50328
50395
  : [{ text: '', style: { ...baseFallbackStyle } }];
50329
50396
  }
50397
+ const firstSegment = paraOrigSegments[0];
50398
+ const dedicatedMarker = isBulletMarkerSegment(firstSegment) &&
50399
+ (!firstSegment.bulletInfo?.autoNumType ||
50400
+ firstSegment.bulletInfo.paragraphIndex !== undefined)
50401
+ ? firstSegment
50402
+ : undefined;
50403
+ if (dedicatedMarker) {
50404
+ const contentSegments = paraOrigSegments.slice(1);
50405
+ const contentText = withoutRenderedBulletPrefix(paraNewText, paraOrigSegments, dedicatedMarker);
50406
+ const content = contentSegments.length > 0
50407
+ ? remapParagraph(contentText, contentSegments)
50408
+ : [{ text: contentText, style: { ...dedicatedMarker.style } }];
50409
+ return [dedicatedMarker, ...content];
50410
+ }
50330
50411
  const paragraphBulletInfo = paraOrigSegments[0].bulletInfo;
50331
50412
  if (paraNewText.length === 0) {
50332
50413
  const emptyStyle = { ...paraOrigSegments[0].style };
@@ -50405,17 +50486,18 @@ function remapTextToSegments(newText, originalSegments, elementTextStyle) {
50405
50486
  return remapped;
50406
50487
  }
50407
50488
  const output = [];
50408
- const lastOrigPara = originalParagraphs[originalParagraphs.length - 1];
50489
+ const lastOrigPara = originalParagraphs[originalParagraphs.length - 1]?.segments;
50409
50490
  for (let pi = 0; pi < newParagraphTexts.length; pi++) {
50410
50491
  if (pi > 0) {
50411
- const precedingOrigPara = originalParagraphs[pi - 1] ?? [];
50492
+ const precedingOrigPara = originalParagraphs[pi - 1]?.segments ?? [];
50412
50493
  const breakStyle = precedingOrigPara[0]?.style
50413
50494
  ? { ...precedingOrigPara[0].style }
50414
50495
  : { ...baseFallbackStyle };
50415
50496
  output.push({ text: '\n', style: breakStyle, isParagraphBreak: true });
50416
50497
  }
50417
- const origPara = originalParagraphs[pi] ?? lastOrigPara ?? [];
50418
- const paraSegments = remapParagraph(newParagraphTexts[pi], origPara);
50498
+ const originalParagraph = originalParagraphs[pi];
50499
+ const origPara = originalParagraph?.segments ?? lastOrigPara ?? [];
50500
+ const paraSegments = restoreParagraphMetadata(originalParagraph?.segments[0] ?? originalParagraph?.terminator, remapParagraph(newParagraphTexts[pi], origPara));
50419
50501
  output.push(...paraSegments);
50420
50502
  }
50421
50503
  return output.length > 0 ? output : [{ text: '', style: { ...baseFallbackStyle } }];
@@ -80181,6 +80263,13 @@ function readEditableText(root) {
80181
80263
  if (!(child instanceof HTMLElement)) {
80182
80264
  continue;
80183
80265
  }
80266
+ // A list marker is presentation chrome, not authored paragraph text.
80267
+ // React renders it inside the contenteditable so edit mode matches view
80268
+ // mode; excluding the annotated node prevents a semantic bullet from
80269
+ // being committed as literal text (for example, "1.Item").
80270
+ if (child.hasAttribute('data-pptx-bullet-marker')) {
80271
+ continue;
80272
+ }
80184
80273
  if (child.tagName === 'BR') {
80185
80274
  out += '\n';
80186
80275
  continue;
@@ -85980,7 +86069,7 @@ function createLocalStorageBackend(namespace) {
85980
86069
  /** Try IndexedDB first; fall back to localStorage on any failure. */
85981
86070
  async function resolveBackend(dbName, namespace) {
85982
86071
  try {
85983
- const { openChatDb, createIdbBackend } = await import('./pptx-angular-viewer-chat-history-idb-C5kwAYuI.mjs');
86072
+ const { openChatDb, createIdbBackend } = await import('./pptx-angular-viewer-chat-history-idb-CGGwWINo.mjs');
85984
86073
  const db = await openChatDb(dbName);
85985
86074
  return createIdbBackend(db);
85986
86075
  }
@@ -123044,7 +123133,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImpor
123044
123133
  }], propDecorators: { canEdit: [{ type: i0.Input, args: [{ isSignal: true, alias: "canEdit", required: false }] }], slideIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "slideIndex", required: false }] }], selectedElement: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedElement", required: false }] }] } });
123045
123134
 
123046
123135
  // Generated by scripts/inline-shared.mjs from package.json. Do not edit.
123047
- const PPTX_ANGULAR_VIEWER_VERSION = "3.5.1";
123136
+ const PPTX_ANGULAR_VIEWER_VERSION = "3.6.0";
123048
123137
 
123049
123138
  /**
123050
123139
  * account-page.component.ts: File > Account content.
@@ -158616,4 +158705,4 @@ function cn(...values) {
158616
158705
  */
158617
158706
 
158618
158707
  export { ColorChangedImageComponent as $, AFTER_ANIMATION_VALUES as A, AnimationPanelComponent as B, AnimationPlaybackService as C, AutosaveRecoveryDialogComponent as D, AutosaveService as E, BroadcastDialogComponent as F, CHART_EDITOR_STYLES as G, CURSOR_PALETTE as H, CanvasFitService as I, ChartAxisOptionsComponent as J, ChartAxisStyleOptionsComponent as K, ChartComboTypeOptionsComponent as L, ChartDataEditorComponent as M, ChartDataLabelOptionsComponent as N, ChartDatapointMarkerOptionsComponent as O, ChartDatapointOptionsComponent as P, ChartDisplayOptionsComponent as Q, ChartElementViewComponent as R, ChartErrorBarOptionsComponent as S, ChartMarkerOptionsComponent as T, ChartPartSelectionService as U, ChartPrimitivesComponent as V, ChartRendererComponent as W, ChartTrendlineOptionsComponent as X, ChartTypeSelectorComponent as Y, CollaborationCursorsComponent as Z, CollaborationService as _, ALIGN_OPTIONS as a, InspectorPanelComponent as a$, CommentMarkersOverlayComponent as a0, CommentsPanelComponent as a1, CommentsService as a2, ComparePanelComponent as a3, ConnectorRendererComponent as a4, ConnectorTextOverlayComponent as a5, CustomShowsComponent as a6, DEFAULT_BOUNDS as a7, DEFAULT_BROADCAST_SERVER_URL as a8, DEFAULT_CANVAS_HEIGHT as a9, ElementRendererComponent as aA, EmbeddedFontsService as aB, EncryptedFileDialogComponent as aC, EquationEditorDialogComponent as aD, EquationRendererComponent as aE, EquationTemplateGalleryComponent as aF, ExportProgressModalComponent as aG, ExportService as aH, FieldContextService as aI, FindBarComponent as aJ, FindReplaceBarComponent as aK, FollowModeBarComponent as aL, FontEmbeddingListComponent as aM, FontEmbeddingPanelComponent as aN, GALLERY_THEME_PRESETS as aO, GOOGLE_WEBFONTS_LINK_ID as aP, GRIDLINE_COLOR$1 as aQ, GoogleWebfontsService as aR, GradientPickerComponent as aS, HANDOUT_OPTIONS as aT, HeaderFooterDialogComponent as aU, HyperlinkDialogComponent as aV, ImagePropertiesPanelComponent as aW, InkDrawingService as aX, InkRendererComponent as aY, InsertSmartArtDialogComponent as aZ, InspectorPaneHeaderComponent as a_, DEFAULT_CANVAS_WIDTH as aa, DEFAULT_COLOR_SCHEME as ab, DEFAULT_FILL_COLOR$1 as ac, DEFAULT_LAYOUT as ad, DEFAULT_PALETTE$1 as ae, DEFAULT_PATTERN_FILL_PRESET as af, DEFAULT_PRINT_SETTINGS as ag, DEFAULT_SLIDE_BACKGROUND as ah, DEFAULT_STROKE_COLOR as ai, DEFAULT_STYLE as aj, DEFAULT_TABLE_ROW_HEIGHT as ak, DEFAULT_TEXT_COLOR$2 as al, DEFAULT_VIEWER_PROFILE as am, DIRECTIONAL_PRESETS as an, DIRECTION_OPTIONS as ao, DocumentPropertiesCardComponent as ap, EMBEDDED_FONTS_STYLE_ID as aq, EMPHASIS_PRESETS as ar, ENTRANCE_PRESETS as as, TEMPLATES as at, EXIT_PRESETS as au, EditorContextMenuComponent as av, EditorHistory as aw, EditorStateService as ax, EditorToolbarComponent as ay, EffectsPanelComponent as az, ANIMATION_PRESET_CATEGORIES as b, RibbonComponent as b$, IsMobileService as b0, KeepAnnotationsDialogComponent as b1, LOCALE_CATALOG as b2, LONG_PRESS_DURATION_MS as b3, LONG_PRESS_MOVE_TOLERANCE_PX as b4, LoadContentService as b5, LocalPresencePublisher as b6, MAX_ZOOM_SCALE as b7, MIN_ZOOM_SCALE as b8, MOTION_PATH_COLUMNS as b9, PasswordStrengthMeterComponent as bA, PowerPointViewerComponent as bB, PresentToolbarAutoHide as bC, PresentationAnnotationOverlayComponent as bD, PresentationAnnotationsService as bE, PresentationOverlayComponent as bF, PresentationPropertiesPanelComponent as bG, PresentationSettingsCardComponent as bH, PresentationSubtitleBarComponent as bI, PresentationToolbarComponent as bJ, PresentationTransitionOverlayComponent as bK, PresenterViewComponent as bL, PresenterWindowService as bM, PrintDialogComponent as bN, PrintService as bO, PrintSettingsPanelComponent as bP, PropertiesDialogComponent as bQ, REPEAT_MODE_OPTIONS as bR, RESIZE_HANDLES as bS, RULER_FONT_SIZE as bT, RULER_THICKNESS as bU, ReadingViewOverlayComponent as bV, RemoteSelectionOverlayComponent as bW, RibbonAnimationGalleryComponent as bX, RibbonAnimationsSectionComponent as bY, RibbonArrangeSectionComponent as bZ, RibbonColorPopoverComponent as b_, MediaPreviewComponent as ba, MediaPropertiesPanelComponent as bb, MediaRendererComponent as bc, MediaTrimTimelineComponent as bd, MobileBottomBarComponent as be, MobileMenuSheetComponent as bf, MobilePresenterViewComponent as bg, MobileSheetComponent as bh, MobileSlidesSheetComponent as bi, MobileToolbarComponent as bj, ModalDialogComponent as bk, Model3DRendererComponent as bl, NotesHandoutCardComponent as bm, NotesPanelComponent as bn, NotesToolbarComponent as bo, OleRendererComponent as bp, OutlineViewOverlayComponent as bq, POWER_POINT_VIEWER_PROVIDERS as br, PPTX_OPEN_ACCEPT as bs, PRESENTATION_OPEN_EXTENSIONS as bt, PRESENTER_CHANNEL_NAME as bu, PRESENTER_MSG_ORIGIN as bv, PRESENTER_TIMER_SEGMENT_MS as bw, PX_PER_CM as bx, PX_PER_INCH as by, PasswordProtectionDialogComponent as bz, AUDIENCE_HASH as c, TEXT_3D_TOP_BEVEL_KEYS as c$, RibbonDesignSectionComponent as c0, RibbonDrawSectionComponent as c1, RibbonDrawingGroupComponent as c2, RibbonEditingSectionComponent as c3, RibbonFileSectionComponent as c4, RibbonFontControlsComponent as c5, RibbonHomeSectionComponent as c6, RibbonHyperlinkButtonComponent as c7, RibbonInsertFieldsComponent as c8, RibbonInsertSectionComponent as c9, SettingsLanguageTabComponent as cA, ShareDialogComponent as cB, ShortcutPanelComponent as cC, ShowOptionsFieldsetComponent as cD, ShowSlidesFieldsetComponent as cE, SignatureStrippedDialogComponent as cF, SignaturesPanelComponent as cG, SignaturesService as cH, SlideBackgroundCardComponent as cI, SlideCanvasComponent as cJ, SlideDefaultInspectorComponent as cK, SlideDiffChangesComponent as cL, SlideDiffRowComponent as cM, SlideDiffThumbnailsComponent as cN, SlideSizeCardComponent as cO, SlideSorterOverlayComponent as cP, SlideThemeOverridePanelComponent as cQ, SlideTransitionCardComponent as cR, SlidesPanelComponent as cS, SmartArt3DRendererComponent as cT, SmartArt3DService as cU, SmartArtPreviewComponent as cV, SmartArtPropertiesComponent as cW, SmartArtRendererComponent as cX, StatusBarComponent as cY, TABLE_STRUCTURE_TOGGLES as cZ, TEXT_3D_BOTTOM_BEVEL_KEYS as c_, RibbonMotionPathGalleryComponent as ca, RibbonParagraphControlsComponent as cb, RibbonPrimaryRowComponent as cc, RibbonReviewSectionComponent as cd, RibbonShapeExtrasComponent as ce, RibbonSlideshowSectionComponent as cf, RibbonTransitionsSectionComponent as cg, RibbonViewSectionComponent as ch, RulerGuidesService as ci, SEQUENCE_OPTIONS as cj, SEVERITY_GROUPS as ck, SEVERITY_LABELS as cl, SHORTCUT_REFERENCE_ITEMS as cm, SLIDE_TRANSITION_KEYFRAMES as cn, DEFAULT_PALETTE as co, PALETTES$1 as cp, SMART_ART_COLOR_SCHEMES as cq, SMART_ART_STYLE_OPTIONS as cr, SUB_ITEM_LABEL as cs, SVG_WARP_PRESETS as ct, SWIPE_MAX_VERTICAL_PX as cu, SWIPE_THRESHOLD_PX as cv, SelectionPaneComponent as cw, SetUpSlideShowDialogComponent as cx, SettingsAppearanceTabComponent as cy, SettingsDialogComponent as cz, AUDIENCE_NONCE_KEY as d, animationPresetLabelKey as d$, TEXT_DIRECTION_OPTIONS$1 as d0, THEME_CATALOG as d1, TIMING_CURVE_OPTIONS as d2, TRIGGER_OPTIONS as d3, TYPE_LABELS as d4, TableCellAdvancedFillComponent as d5, TableCellFormattingComponent as d6, TableDataEditorComponent as d7, TablePropertiesComponent as d8, TableRendererComponent as d9, ViewerFileIOService as dA, ViewerFindReplaceService as dB, ViewerFormatPainterService as dC, ViewerInspectorPanelService as dD, ViewerKeyboardService as dE, ViewerMobileSheetService as dF, ViewerPresentationModeService as dG, ViewerThemeGalleryService as dH, ViewerTouchGesturesService as dI, ViewerZoomService as dJ, WEBM_MIME_CANDIDATES as dK, WriteBackScheduler as dL, ZERO_LINE_COLOR as dM, ZoomNavigationService as dN, ZoomRendererComponent as dO, ZoomTargetService as dP, addCategory as dQ, addCommentToList as dR, addGradientStopPatch as dS, addItem as dT, addSeries as dU, addSubItem as dV, advanceStep as dW, affordanceElements as dX, aiToggleVisible as dY, alignPatch as dZ, animationFor as d_, TableResizeOverlayComponent as da, TableSelectionService as db, TagsCardComponent as dc, Text3DBevelSectionComponent as dd, Text3DPanelComponent as de, TextAdvancedPanelComponent as df, ThemeEditorFieldsComponent as dg, ThemeGalleryComponent as dh, ThemeSelectorCardComponent as di, TitleBarComponent as dj, TitleBarSearchComponent as dk, TransitionDirectionPickerComponent as dl, TransitionPreviewComponent as dm, VALIGN_OPTIONS as dn, VIEWER_THEME as dp, VersionHistoryPanelComponent as dq, ViewerCanvasEditingService as dr, ViewerCollabCursorService as ds, ViewerCollaborationSessionService as dt, ViewerCompareService as du, ViewerCustomShowsService as dv, ViewerDialogsService as dw, ViewerDocumentPropertiesService as dx, ViewerExportService as dy, ViewerExtraDialogsComponent as dz, AVATAR_COLOR_SWATCHES as e, buildTreemapViewModel as e$, annotationMapToInkInserts as e0, applyAcceptedDiff as e1, applyAnimationPreset as e2, applyFindReplacements as e3, applyFormatToElement as e4, applyMove as e5, applyResize as e6, asMediaElement as e7, assignUserColor as e8, attachShowVisibilityPause as e9, buildEquationSegment as eA, buildFallbackViewModel as eB, buildFontFaceRule as eC, buildGradientFillCss as eD, buildGridlinesAndLabels as eE, buildHyperlinkPatch as eF, buildInkContainerStyle as eG, buildInkStrokes as eH, buildLegend as eI, buildMarkTooltip as eJ, buildModel3DContainerStyle as eK, buildModel3DViewModel as eL, buildOleActionModel as eM, buildOleInfoRows as eN, buildPatternFillCss as eO, buildPieViewModel as eP, buildPrintHtmlDocument as eQ, buildPropertiesPatch as eR, buildRadarViewModel as eS, buildRegionMapViewModel as eT, buildSaveSlides as eU, buildShareUrl as eV, buildSmartArtInsertElement as eW, buildSmartArtNodes as eX, buildStockViewModel as eY, buildSurfaceViewModel as eZ, buildTableViewModel as e_, attachTouchGestures as ea, axisTickValues as eb, beginNodeEdit as ec, bevelSizePatch as ed, boolFromEvent as ee, bringForward as ef, bringToFront as eg, buildBarActions as eh, buildBroadcastConfig as ei, buildBroadcastViewerUrl as ej, buildCategoryLabels as ek, buildCellParagraphs as el, buildChartViewModel as em, buildChatLogExport as en, buildChatLogMarkdown as eo, buildChromeStyle as ep, buildClearHyperlinkPatch as eq, buildClickGroups as er, buildColStyles as es, buildCollaborationConfig as et, buildComboViewModel as eu, buildCssGradientFromShapeStyle as ev, buildDuotoneFilter as ew, buildDuotoneFilterId as ex, buildEmbeddedFontStyles as ey, buildEquationElement as ez, AXIS_LABEL_COLOR as f, computeRotateHandleBox as f$, buildTrimFragment as f0, buildWaterfallViewModel as f1, buildZeroLine as f2, buildZoomContainerStyle as f3, buildZoomViewModel as f4, bulletIndentPx as f5, canAddTopLevelNode as f6, canGroupSelection as f7, canRemoveTopLevelNode as f8, canSetStrokeWidth as f9, collectUsedFontFamilies as fA, columnWidthStyle as fB, commitNodeText as fC, computeAlign as fD, computeAxisTitlePrimitives as fE, computeBarRects as fF, computeBubbleRadius as fG, computeCornerHandle as fH, computeDistribute as fI, computeDrawingViewBox as fJ, computeErrorBarPrimitives as fK, computeFocusTargets as fL, computeGridSpacingPx as fM, computeHandleBoxes as fN, computeHandoutLayout as fO, computeIsMobile as fP, computeIsTablet as fQ, computeLinePoints as fR, computeLinearRegression as fS, computePageCount as fT, computePieLayout as fU, computePieSlicePath as fV, computePieSlices as fW, computePlotLayout as fX, computeRSquared as fY, computeRadarPoints as fZ, computeResizeHandleBoxes as f_, canStartBroadcast as fa, canStartShare as fb, canUngroupSelection as fc, canUseClipboard as fd, captionDisplayText as fe, cellRunStyle as ff, cellStyleToStyleMap as fg, cellTdStyle as fh, changeCountLabel as fi, changeIcon as fj, characterSpacingPatch as fk, chartPreserveAspectRatio as fl, checkFontAvailable as fm, clampCursorPosition as fn, clampGifDimensions as fo, clampIndex as fp, clampNotesFontSize as fq, clampScale as fr, clampStep as fs, clearAllLocalViewerData as ft, clearAudienceContent as fu, cn as fv, collectAccessibilityIssues as fw, collectElementText as fx, collectSlideText as fy, collectStoredChats as fz, AccessibilityPanelComponent as g, formatAxisValue as g$, computeScatterDots as g0, computeScatterXDomain as g1, computeSelectionBoxes as g2, computeSingleSelected as g3, computeSlideIndices as g4, computeSnap as g5, computeStackedBarRects as g6, computeStackedValueRange as g7, computeTrendlinePrimitives as g8, computeValueRange as g9, disableSoftEdgePatch as gA, duplicateElementById as gB, durationOf as gC, effectsStateOf as gD, enableGlowPatch as gE, enableInnerShadowPatch as gF, enableOuterShadowPatch as gG, enableReflectionPatch as gH, enableSoftEdgePatch as gI, encodeGif as gJ, endShowMediaCleanup as gK, estimatePageCount as gL, exitPresentationFullscreen as gM, exportAiChatLogs as gN, extractPathPoints as gO, eyedropperAvailable as gP, fillColorOf$1 as gQ, findInSlides as gR, findOwningSlideIndex as gS, findSlideIndexByElementId as gT, firstVisibleIndex as gU, fitPolynomial as gV, fitZoom as gW, focusTargetChips as gX, fontMimeForFormat as gY, fontSizeOf as gZ, forgetSessionDeck as g_, convertOmmlToMathMl as ga, copyFormatFromElement as gb, countAccessibilityIssues as gc, countAnnotationStrokes as gd, createAngularAiBridge as ge, createCustomShow as gf, createSwipeDismissDrag as gg, createWebrtcBundle as gh, createWebsocketBundle as gi, cssObjectToStyleMap as gj, currentColorScheme as gk, currentLayout as gl, currentStyle as gm, defaultCssVars as gn, defaultRadius as go, defaultThemeColors as gp, deleteElementsByIds as gq, deleteVersion as gr, demoteNode as gs, deriveModel3DBlobUrl as gt, derivePresenceList as gu, describeSmartArtBounds as gv, disableGlowPatch as gw, disableInnerShadowPatch as gx, disableOuterShadowPatch as gy, disableReflectionPatch as gz, AccessibilityService as h, isElementInteractive as h$, formatBytes as h0, formatCursorLabel as h1, formatElapsed as h2, formatFileSize as h3, formatPropertyDate as h4, formatTime as h5, fpsToFrameIntervalMs as h6, generateBroadcastRoomId as h7, generateCommentId as h8, generateCustomShowId as h9, getTextBlockStyle as hA, getTextWarp as hB, getTouchDistance as hC, getWarpCategory as hD, getWarpPath as hE, gradientStateFromStyle as hF, gradientStateOf as hG, gradientStatePatch as hH, gridColumns as hI, groupIssuesBySeverity as hJ, hasAnimation as hK, hasCopyableFormat as hL, hasExistingLink as hM, hasExitedFullscreen as hN, hasGradientFill as hO, hasPressureVariation as hP, hasVisibleSlideAfter as hQ, headerLabel as hR, imageDimensions as hS, inkViewBox as hT, insertTableElementColumn as hU, insertTableElementRow as hV, interpolateWidth as hW, isAudienceTab as hX, isBold as hY, isBrowserOpenableMime as hZ, isChildNode as h_, generatePressureCircles as ha, generateTicks as hb, getClrChangeParams as hc, getContainerStyle as hd, getDuotoneFilterDef as he, getEffectSoundState as hf, getImageSrc as hg, getLocalStorageUsageSummary as hh, getOleAriaLabel as hi, getOleBadgeLabel as hj, getOleDisplayName as hk, getOleDownloadFileName as hl, getOleTypeColor as hm, getOleTypeLabel as hn, getPasswordStrength as ho, getPatternSvg as hp, getPlaceholderStyle as hq, getVersions as hr, getResolvedShapeClipPath as hs, getResolvedShapeClipPathFor as ht, getSessionTabId as hu, getShapeFillStrokeStyle as hv, getSlideBackgroundStyle as hw, getSlideTransitionAnimations as hx, getSmartArtNodeBounds as hy, getSpeechRecognitionCtor as hz, AccountPageComponent as i, overallStatus as i$, isInjectableUrl as i0, isItalic as i1, isLegacyBinaryPresentation as i2, isPpactionUrl as i3, isPresenterMessage as i4, isSigned as i5, isSupportedPresentationFile as i6, isTextElement as i7, isTwoTableFocus as i8, isUnderline as i9, moveNodeUp as iA, msToFrameDelayCs as iB, narrowToCircle as iC, narrowToPolygon as iD, narrowToRect as iE, newChartElement as iF, newEquationElement as iG, newPresetShapeElement as iH, newShapeElement as iI, newSmartArtElement as iJ, newTableElement as iK, newTextElement as iL, nextVisibleIndex as iM, nodeBold as iN, nodeEditBox as iO, nodeFillColor as iP, nodeFontColor as iQ, nodeIdFromKey as iR, nodeItalic as iS, nodeStyle as iT, normalizeFontFormat as iU, normalizeSlidesPerPage as iV, normalizeValue as iW, numFromEvent as iX, ommlToMathml as iY, ooxmlDashToCssBorderStyle as iZ, openNativeEyeDropper as i_, isUrlSafe as ia, isValidRoomId as ib, isViewportBackgroundPressTarget as ic, isZoomActivationKey as id, issueTrackKey as ie, issueTypeLabel as ig, keyToLabel as ih, lastVisibleIndex as ii, latexToMathml as ij, layoutConnectorPaints as ik, layoutNodeLabels as il, linePointsToSvgString as im, lineSpacingPatch as io, loadAudienceContent as ip, loadSessionDeck as iq, mediaFallbackFor as ir, mediaSurfaceFor as is, mergeCaptionResults as it, mergeDown as iu, mergeRight as iv, mergeSelection as iw, mergeTablesDirective as ix, moveElementBy as iy, moveNodeDown as iz, ActionSettingsPanelComponent as j, resolveTransitionDuration as j$, paletteColor as j0, parseAudienceNonce as j1, parseNodeTextarea as j2, partitionSlides as j3, patchChartData as j4, patchChartStyle as j5, patchTableData as j6, patchTextStyle as j7, patternPresetOptions as j8, pendingElementStyles as j9, removeCommentFromList as jA, removeElementAnimation as jB, removeGradientStopPatch as jC, removeNode as jD, removeTableElementRow as jE, removeSeries as jF, renderToCanvas as jG, reorderAnimationDown as jH, reorderAnimationUp as jI, replaceInSlides as jJ, replaceMatch as jK, requestPresentationFullscreen as jL, resizeElement as jM, resolveCaptionTracks as jN, resolveChartKind as jO, resolveFontVariant as jP, resolveHyperlinkHref as jQ, resolveInteractiveElementId as jR, resolveMediaSrc as jS, resolveOleType as jT, resolveParagraphBullet as jU, resolvePresenterNotes as jV, resolveProfileInitial as jW, resolveRegionCode as jX, resolveSlideAutoAdvanceMs as jY, resolvePalette as jZ, resolveThemeCatalogEntry as j_, pickColorByClickFallback as ja, pickFile as jb, pickSupportedMimeType as jc, planGifFrames as jd, planVideoSegments as je, pointsToSvgPathD as jf, presenceToCursors as jg, presentationBaseName as jh, presentationStageStyle as ji, presenterTimerProgress as jj, presetByLayout as jk, presetsForCategory as jl, pressuresToWidths as jm, prevVisibleIndex as jn, projectDrawingShapes as jo, promoteNode as jp, provideViewerTheme as jq, radarAngle as jr, radarRingPoints as js, readAsDataUrl as jt, recordWebm as ju, registerCrossSlideAudio as jv, rememberSessionDeck as jw, removeAnimation as jx, removeCategory as jy, removeTableElementColumn as jz, AdvancedChartEditorComponent as k, setTimingCurve as k$, restoreSessionDeck as k0, revealedElementStyles as k1, routeOrthogonalConnector as k2, rowStyle as k3, rulerDragToGuidePosition as k4, rulerHighlight as k5, rulerStripTicks as k6, sampleColorFromSlide as k7, sanitizeColor as k8, sanitizeSlideIndex as k9, setColorScheme as kA, setDataLabels as kB, setDataPointExplosion as kC, setDataPointFill as kD, setDataPointLabel as kE, setDataPointMarker as kF, setDelay as kG, setDirection as kH, setDuration as kI, setEffectSound as kJ, setElementPosition as kK, setGridlineStyle as kL, setLayout as kM, setLegend as kN, setNodeStyle as kO, setNodeText as kP, setRepeatCount as kQ, setRepeatMode as kR, setSequence as kS, setSeriesChartType as kT, setSeriesColor as kU, setSeriesErrorBars as kV, setSeriesMarker as kW, setSeriesName as kX, setSeriesTrendline as kY, setSeriesValue as kZ, setStyle as k_, sanitizeUserName as ka, saveViewerProfile as kb, savedPresentationFileName as kc, scanAvailableFonts as kd, searchSlides as ke, seedBroadcastFields as kf, seedHyperlinkDraft as kg, seedPropertiesDraft as kh, seedShareFields as ki, segmentFrameCount as kj, selectValue$3 as kk, sendBackward as kl, sendToBack as km, sequentialColorScale as kn, serializeWriteBack as ko, seriesColor as kp, setAfterAnimation as kq, setAfterAnimationColor as kr, setAnimationEmphasis as ks, setAnimationEntrance as kt, setAnimationExit as ku, setAxis as kv, setAxisLogScale as kw, setAxisTitleStyle as kx, setCategoryLabel as ky, setCellText as kz, AiChangeOverlayComponent as l, vermilionRadius as l$, setTitle as l0, setTrigger as l1, setTriggerShapeId as l2, shapeStylePatch$1 as l3, sheetAfterNavigate as l4, shouldBlockClickAdvance as l5, shouldUseSvgWarp as l6, showDirectionPicker as l7, showsTemplateAffordance as l8, signatureCountLabel as l9, textStylePatch as lA, themeStyle as lB, themeToCssVars as lC, thumbnailHeight as lD, thumbnailZoom as lE, toggleCommentResolvedInList as lF, toggleNodeBold as lG, toggleNodeItalic as lH, toggleSheet as lI, topLevelNodeCount as lJ, transformSelectedTextCase as lK, translationsEn as lL, updateElementById as lM, updateGlowPatch as lN, updateGradientStopPatch as lO, updateInnerShadowPatch as lP, updateOuterShadowPatch as lQ, updateReflectionPatch as lR, vAlignPatch as lS, validatePassword as lT, validatePrintSettings as lU, validateRoomId as lV, valueToY as lW, vermilionDarkColors as lX, vermilionDarkTheme as lY, vermilionLightColors as lZ, vermilionLightTheme as l_, signatureKey as la, signatureTimestamp as lb, signerName as lc, statusLabel as ld, slideNumberOf as le, slidesWithReappliedLayout as lf, smartArtNodes as lg, paletteColour as lh, snapToGridStep as li, splitCursorCell as lj, splitMergedCell as lk, statusKind as ll, statusLabel$1 as lm, storeAudienceContent as ln, stringFromEvent$5 as lo, strokeColorOf as lp, strokeToInkElement as lq, strokeWidthOf as lr, styleShadowFilter as ls, surfaceColor as lt, textAdvancedPatch as lu, textAdvancedStateFromStyle as lv, textAdvancedStateOf as lw, textColorOf as lx, textDirectionPatch as ly, textStyleOf as lz, AiChatPanelComponent as m, waypointsToPathD as m0, withManualLayouts as m1, worstStatus as m2, zoomTargetSlideIndex as m3, AiChatService as n, AiComposerComponent as o, AiFocusBarComponent as p, AiFocusHighlightOverlayComponent as q, AiHistoryMenuComponent as r, AiHistoryService as s, toChatSummary as t, AiMessageListComponent as u, AiPanelStore as v, AiProposalCardComponent as w, AiSettingsSectionComponent as x, AiToolCallCardComponent as y, AnimationAuthorPanelComponent as z };
158619
- //# sourceMappingURL=pptx-angular-viewer-pptx-angular-viewer-CnoCmxaJ.mjs.map
158708
+ //# sourceMappingURL=pptx-angular-viewer-pptx-angular-viewer-DYmBNrLg.mjs.map