ooxml-ui 1.8.2 → 1.8.3

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkGCS5KBMR_cjs = require('../chunk-GCS5KBMR.cjs');
3
+ var chunkKMNNTEGF_cjs = require('../chunk-KMNNTEGF.cjs');
4
4
  require('../chunk-WSTWYZFM.cjs');
5
5
  var chunk2JEQHIAL_cjs = require('../chunk-2JEQHIAL.cjs');
6
6
  require('../chunk-IOR4KOGN.cjs');
@@ -95,7 +95,7 @@ function buildActiveXControlsOverlay(doc, controls, canvasSize) {
95
95
  zIndex: "40"
96
96
  });
97
97
  controls.forEach((control, index) => {
98
- const view = chunkGCS5KBMR_cjs.getActiveXControlOverlayView(control, canvasSize, index);
98
+ const view = chunkKMNNTEGF_cjs.getActiveXControlOverlayView(control, canvasSize, index);
99
99
  const style = {
100
100
  position: "absolute",
101
101
  left: `${view.left}px`,
@@ -131,7 +131,7 @@ function appendCommentMarkers(doc, stage, comments, canvasSize, t, onMarkerClick
131
131
  pointerEvents: "none",
132
132
  zIndex: "45"
133
133
  });
134
- const markers = chunkGCS5KBMR_cjs.buildCommentMarkers(
134
+ const markers = chunkKMNNTEGF_cjs.buildCommentMarkers(
135
135
  comments,
136
136
  canvasSize.width,
137
137
  canvasSize.height,
@@ -140,10 +140,10 @@ function appendCommentMarkers(doc, stage, comments, canvasSize, t, onMarkerClick
140
140
  for (const marker of markers) {
141
141
  const dot = createEl(doc, "button", "pptxv-comment-marker", {
142
142
  position: "absolute",
143
- left: `${marker.x - chunkGCS5KBMR_cjs.COMMENT_MARKER_SIZE / 2}px`,
144
- top: `${marker.y - chunkGCS5KBMR_cjs.COMMENT_MARKER_SIZE / 2}px`,
145
- width: `${chunkGCS5KBMR_cjs.COMMENT_MARKER_SIZE}px`,
146
- height: `${chunkGCS5KBMR_cjs.COMMENT_MARKER_SIZE}px`,
143
+ left: `${marker.x - chunkKMNNTEGF_cjs.COMMENT_MARKER_SIZE / 2}px`,
144
+ top: `${marker.y - chunkKMNNTEGF_cjs.COMMENT_MARKER_SIZE / 2}px`,
145
+ width: `${chunkKMNNTEGF_cjs.COMMENT_MARKER_SIZE}px`,
146
+ height: `${chunkKMNNTEGF_cjs.COMMENT_MARKER_SIZE}px`,
147
147
  display: "flex",
148
148
  alignItems: "center",
149
149
  justifyContent: "center",
@@ -211,7 +211,7 @@ function merge3dStyle(base, computed) {
211
211
  }
212
212
  function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
213
213
  if (el.type === "group") {
214
- const fx2 = chunkGCS5KBMR_cjs.getComputedEffectStyle(el);
214
+ const fx2 = chunkKMNNTEGF_cjs.getComputedEffectStyle(el);
215
215
  const groupStyle = {};
216
216
  if (fx2.filter) {
217
217
  groupStyle.filter = fx2.filter;
@@ -233,7 +233,7 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
233
233
  style[key] = value;
234
234
  }
235
235
  }
236
- const stroke = chunkGCS5KBMR_cjs.getComputedStrokeStyle(el);
236
+ const stroke = chunkKMNNTEGF_cjs.getComputedStrokeStyle(el);
237
237
  if (stroke.borderWidth > 0) {
238
238
  if (animatesStroke) {
239
239
  style["borderWidth"] = stroke.cssBorderWidth;
@@ -252,7 +252,7 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
252
252
  style["strokeMiterlimit"] = stroke.strokeMiterlimit;
253
253
  }
254
254
  }
255
- const fx = chunkGCS5KBMR_cjs.getComputedEffectStyle(el);
255
+ const fx = chunkKMNNTEGF_cjs.getComputedEffectStyle(el);
256
256
  if (fx.boxShadow) {
257
257
  style["boxShadow"] = fx.boxShadow;
258
258
  }
@@ -269,11 +269,11 @@ function getShapeFillStrokeStyle(el, animatesFill, animatesStroke) {
269
269
  if (fx.overflowVisible) {
270
270
  style["overflow"] = "visible";
271
271
  }
272
- merge3dStyle(style, chunkGCS5KBMR_cjs.getComputed3dStyle(el));
273
- if (chunkGCS5KBMR_cjs.isHollowShapeElement(el)) {
272
+ merge3dStyle(style, chunkKMNNTEGF_cjs.getComputed3dStyle(el));
273
+ if (chunkKMNNTEGF_cjs.isHollowShapeElement(el)) {
274
274
  style["pointerEvents"] = "none";
275
275
  }
276
- const geometry = chunkGCS5KBMR_cjs.resolveShapeGeometry(el);
276
+ const geometry = chunkKMNNTEGF_cjs.resolveShapeGeometry(el);
277
277
  switch (geometry.kind) {
278
278
  case "bare":
279
279
  style["backgroundColor"] = "transparent";
@@ -307,12 +307,12 @@ function getTextBlockStyle(el) {
307
307
  if (!pptx.hasTextProperties(el)) {
308
308
  return {};
309
309
  }
310
- const base = chunkGCS5KBMR_cjs.buildTextBlockStyle(el, {
310
+ const base = chunkKMNNTEGF_cjs.buildTextBlockStyle(el, {
311
311
  fallbackColor: chunkVFPVEVF4_cjs.DEFAULT_TEXT_COLOR,
312
312
  bodyLayout: true,
313
313
  pxLengths: true
314
314
  });
315
- const scene3d = chunkGCS5KBMR_cjs.buildTextBody3DSceneStyle(el.textStyle, { width: el.width, height: el.height });
315
+ const scene3d = chunkKMNNTEGF_cjs.buildTextBody3DSceneStyle(el.textStyle, { width: el.width, height: el.height });
316
316
  if (!scene3d) {
317
317
  return base;
318
318
  }
@@ -417,7 +417,7 @@ function renderSlideStage(options) {
417
417
  "--pptxv-grid-size": `${options.gridSpacingPx ?? 10}px`,
418
418
  // One device pixel in slide px: thin strokes stay visible on screen.
419
419
  ...chunk526IHNIH_cjs.deviceStrokeStageStyle(scale),
420
- ...chunkGCS5KBMR_cjs.getSlideBackgroundStyle(slide, { widthPx: canvasSize.width, heightPx: canvasSize.height })
420
+ ...chunkKMNNTEGF_cjs.getSlideBackgroundStyle(slide, { widthPx: canvasSize.width, heightPx: canvasSize.height })
421
421
  });
422
422
  if (interactive || options.reading) {
423
423
  stage.setAttribute("role", "region");
@@ -458,19 +458,19 @@ function renderSlideStage(options) {
458
458
  selectedElementIds: options.selectedElementIds,
459
459
  registry,
460
460
  renderElement(element, zIndex) {
461
- if (!chunkGCS5KBMR_cjs.isElementRendered(element)) {
461
+ if (!chunkKMNNTEGF_cjs.isElementRendered(element)) {
462
462
  return null;
463
463
  }
464
464
  const node = registry.resolve(element.type)(element, zIndex, context);
465
465
  if (node && interactive && "setAttribute" in node) {
466
- const templateLocked = chunkGCS5KBMR_cjs.isTemplateElementId(element.id) && !options.templateEditing;
466
+ const templateLocked = chunkKMNNTEGF_cjs.isTemplateElementId(element.id) && !options.templateEditing;
467
467
  if (templateLocked) {
468
468
  node.style.pointerEvents = "none";
469
469
  }
470
470
  node.setAttribute("data-pptx-element", "true");
471
471
  }
472
- if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" && chunkGCS5KBMR_cjs.shouldRenderHitTarget(interactive, options.presenting ?? false)) {
473
- const hitTargetStyle = chunkGCS5KBMR_cjs.elementHitTargetStyle(element);
472
+ if (node && element.type !== "text" && element.type !== "shape" && element.type !== "connector" && chunkKMNNTEGF_cjs.shouldRenderHitTarget(interactive, options.presenting ?? false)) {
473
+ const hitTargetStyle = chunkKMNNTEGF_cjs.elementHitTargetStyle(element);
474
474
  if (hitTargetStyle) {
475
475
  const hitTarget = createEl(doc, "div", void 0, hitTargetStyle);
476
476
  hitTarget.setAttribute("aria-hidden", "true");
@@ -489,20 +489,20 @@ function renderSlideStage(options) {
489
489
  }
490
490
  });
491
491
  if (interactive || options.reading) {
492
- chunkGCS5KBMR_cjs.applyRenderedElementAccessibility(stage, slide.elements, {
492
+ chunkKMNNTEGF_cjs.applyRenderedElementAccessibility(stage, slide.elements, {
493
493
  presenting: options.presenting ?? false
494
494
  });
495
495
  }
496
496
  if (interactive) {
497
- chunkGCS5KBMR_cjs.applyElementActionAffordances(
497
+ chunkKMNNTEGF_cjs.applyElementActionAffordances(
498
498
  stage,
499
499
  slide.elements.filter(
500
- (element) => options.templateEditing || !chunkGCS5KBMR_cjs.isTemplateElementId(element.id)
500
+ (element) => options.templateEditing || !chunkKMNNTEGF_cjs.isTemplateElementId(element.id)
501
501
  ),
502
502
  {
503
503
  canInteract: true,
504
504
  presenting: options.presenting ?? false,
505
- labels: chunkGCS5KBMR_cjs.actionAffordanceLabels((key) => t(key))
505
+ labels: chunkKMNNTEGF_cjs.actionAffordanceLabels((key) => t(key))
506
506
  }
507
507
  );
508
508
  }
@@ -558,7 +558,7 @@ function createChartTitleEditor(container, onCommit) {
558
558
 
559
559
  // src/pptx/dom/elements/chart-editable.ts
560
560
  function attachChartEditing(container, element, context, repaint) {
561
- if (element.type !== "chart" || !context.interactive || !context.onChartPointChange || !chunkGCS5KBMR_cjs.canDrillDown(element)) {
561
+ if (element.type !== "chart" || !context.interactive || !context.onChartPointChange || !chunkKMNNTEGF_cjs.canDrillDown(element)) {
562
562
  return;
563
563
  }
564
564
  const chart = element;
@@ -598,7 +598,7 @@ function attachChartEditing(container, element, context, repaint) {
598
598
  if (!rect) {
599
599
  return;
600
600
  }
601
- const step2 = chunkGCS5KBMR_cjs.advanceChartMarkDrag(activeMark, event.clientX, event.clientY, rect);
601
+ const step2 = chunkKMNNTEGF_cjs.advanceChartMarkDrag(activeMark, event.clientX, event.clientY, rect);
602
602
  if (!step2) {
603
603
  return;
604
604
  }
@@ -688,7 +688,7 @@ function attachChartEditing(container, element, context, repaint) {
688
688
  seriesIndex: part.seriesIndex,
689
689
  pointIndex: part.pointIndex
690
690
  });
691
- const startedMark = chunkGCS5KBMR_cjs.beginChartMarkDrag({
691
+ const startedMark = chunkKMNNTEGF_cjs.beginChartMarkDrag({
692
692
  part,
693
693
  geometry: markGeometry,
694
694
  chartData: chart.chartData,
@@ -780,7 +780,7 @@ function mountThreeViewInto(doc, wrapper, options) {
780
780
  return view;
781
781
  }
782
782
  function isChart3DEditable(element, context) {
783
- return element.type === "chart" && Boolean(context.interactive) && Boolean(context.onChartPointChange) && Boolean(context.selectedElementIds?.has(element.id)) && chunkGCS5KBMR_cjs.canDrillDown(element);
783
+ return element.type === "chart" && Boolean(context.interactive) && Boolean(context.onChartPointChange) && Boolean(context.selectedElementIds?.has(element.id)) && chunkKMNNTEGF_cjs.canDrillDown(element);
784
784
  }
785
785
  function selectedChartPartOf(element, context) {
786
786
  return context.chartPartSelection?.elementId === element.id ? context.chartPartSelection.part : null;
@@ -822,13 +822,13 @@ function wireChartThreeViewEvents(view, element, context, badgeHost) {
822
822
  const listeners = new AbortController();
823
823
  chartViewListeners.set(view, listeners);
824
824
  view.addEventListener(
825
- chunkGCS5KBMR_cjs.THREE_VIEW_EVENTS.select,
826
- (event) => chunkGCS5KBMR_cjs.applyChart3DSelect(bridge, event.detail.part),
825
+ chunkKMNNTEGF_cjs.THREE_VIEW_EVENTS.select,
826
+ (event) => chunkKMNNTEGF_cjs.applyChart3DSelect(bridge, event.detail.part),
827
827
  { signal: listeners.signal }
828
828
  );
829
829
  view.addEventListener(
830
- chunkGCS5KBMR_cjs.THREE_VIEW_EVENTS.drag,
831
- (event) => chunkGCS5KBMR_cjs.applyChart3DDrag(bridge, event.detail),
830
+ chunkKMNNTEGF_cjs.THREE_VIEW_EVENTS.drag,
831
+ (event) => chunkKMNNTEGF_cjs.applyChart3DDrag(bridge, event.detail),
832
832
  { signal: listeners.signal }
833
833
  );
834
834
  }
@@ -842,7 +842,7 @@ function applyThreeViewTextStyle(el, style) {
842
842
  // src/pptx/dom/elements/chart.ts
843
843
  var renderChartElement = (element, zIndex, context) => {
844
844
  const wrapper = renderChartSvgElement(element, zIndex, context);
845
- const spec = wrapper ? chunkGCS5KBMR_cjs.resolveChartThreeViewSpec(element, rendering3DFlagsOf(context)) : null;
845
+ const spec = wrapper ? chunkKMNNTEGF_cjs.resolveChartThreeViewSpec(element, rendering3DFlagsOf(context)) : null;
846
846
  if (!wrapper || !spec) {
847
847
  return wrapper;
848
848
  }
@@ -864,11 +864,11 @@ var renderChartSvgElement = (element, zIndex, context) => {
864
864
  doc,
865
865
  "div",
866
866
  "pptxv-element pptxv-chart",
867
- chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex)
867
+ chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex)
868
868
  );
869
869
  container.dataset.elementId = element.id;
870
870
  const animationState = context.presentationStates?.get(element.id);
871
- const chartData = element.chartData ? chunkGCS5KBMR_cjs.resolveRevealedChartData(element.chartData, animationState) : element.chartData;
871
+ const chartData = element.chartData ? chunkKMNNTEGF_cjs.resolveRevealedChartData(element.chartData, animationState) : element.chartData;
872
872
  if (!chartData || chartData.series.length === 0) {
873
873
  container.appendChild(renderChartPlaceholder(doc, chartData?.chartType ?? "bar", context.t));
874
874
  return container;
@@ -916,7 +916,7 @@ function renderChartPlaceholder(doc, chartType, t) {
916
916
  border: "1px dashed #cbd5e1",
917
917
  boxSizing: "border-box"
918
918
  });
919
- placeholder.textContent = chunkGCS5KBMR_cjs.chartPlaceholderLabel(chartType, (key, params) => t(key, params));
919
+ placeholder.textContent = chunkKMNNTEGF_cjs.chartPlaceholderLabel(chartType, (key, params) => t(key, params));
920
920
  return placeholder;
921
921
  }
922
922
 
@@ -980,7 +980,7 @@ function createRunBaseNode(doc, run) {
980
980
  verticalAlign: "middle",
981
981
  fontFamily: "'Cambria Math', 'STIX Two Math', serif"
982
982
  });
983
- math.innerHTML = chunkGCS5KBMR_cjs.runEquationMathMl(run.equation);
983
+ math.innerHTML = chunkKMNNTEGF_cjs.runEquationMathMl(run.equation);
984
984
  host.appendChild(math);
985
985
  if (run.equation.number) {
986
986
  const number = createEl(doc, "span", "pptxv-equation-number", {
@@ -992,7 +992,7 @@ function createRunBaseNode(doc, run) {
992
992
  }
993
993
  return host;
994
994
  }
995
- if (run.hyperlink && chunkGCS5KBMR_cjs.isRunHyperlinkClickable(run.hyperlink)) {
995
+ if (run.hyperlink && chunkKMNNTEGF_cjs.isRunHyperlinkClickable(run.hyperlink)) {
996
996
  const link = createEl(doc, "a", "pptxv-link", run.style);
997
997
  link.setAttribute("data-pptx-hyperlink", run.hyperlink.url);
998
998
  link.setAttribute("role", "link");
@@ -1097,7 +1097,7 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
1097
1097
  bullet.textContent = para.bulletMarker;
1098
1098
  p.appendChild(bullet);
1099
1099
  }
1100
- const spec = build ? chunkGCS5KBMR_cjs.buildTextBuildSpec(
1100
+ const spec = build ? chunkKMNNTEGF_cjs.buildTextBuildSpec(
1101
1101
  build.elementId,
1102
1102
  paragraphs.indexOf(para),
1103
1103
  para.runs.filter((run) => run.text !== NEWLINE_RUN).map((run) => ({ text: run.text, style: run.style })),
@@ -1106,7 +1106,7 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
1106
1106
  if (spec && spec.granularity !== "paragraph") {
1107
1107
  for (const span of spec.spans ?? []) {
1108
1108
  const node = createEl(doc, "span");
1109
- applyStyleMap(node, { ...span.style ?? {}, ...chunkGCS5KBMR_cjs.textBuildSpanStyle(span) });
1109
+ applyStyleMap(node, { ...span.style ?? {}, ...chunkKMNNTEGF_cjs.textBuildSpanStyle(span) });
1110
1110
  if (span.animId) {
1111
1111
  node.setAttribute("data-anim-id", span.animId);
1112
1112
  }
@@ -1119,7 +1119,7 @@ function renderTextBlock(doc, paragraphs, textStyle, build) {
1119
1119
  let runHost = p;
1120
1120
  if (spec) {
1121
1121
  const wrapper = createEl(doc, "span");
1122
- applyStyleMap(wrapper, chunkGCS5KBMR_cjs.textBuildSpanStyle(spec));
1122
+ applyStyleMap(wrapper, chunkKMNNTEGF_cjs.textBuildSpanStyle(spec));
1123
1123
  if (spec.animId) {
1124
1124
  wrapper.setAttribute("data-anim-id", spec.animId);
1125
1125
  }
@@ -1175,7 +1175,7 @@ var renderConnectorElement = (element, zIndex, context) => {
1175
1175
  if (element.hidden) {
1176
1176
  wrapper.style.display = "none";
1177
1177
  }
1178
- const lineGlow = chunkGCS5KBMR_cjs.getLineGlowFilterCss(ss);
1178
+ const lineGlow = chunkKMNNTEGF_cjs.getLineGlowFilterCss(ss);
1179
1179
  if (lineGlow) {
1180
1180
  wrapper.style.filter = lineGlow;
1181
1181
  }
@@ -1183,7 +1183,7 @@ var renderConnectorElement = (element, zIndex, context) => {
1183
1183
  svg.setAttribute("style", "overflow:visible;display:block");
1184
1184
  const seed = element.id.replace(/[^a-zA-Z0-9_-]/gu, "_");
1185
1185
  const defs = createSvgEl(doc, "defs");
1186
- const lineShadow = chunkGCS5KBMR_cjs.getLineShadowParams(ss);
1186
+ const lineShadow = chunkKMNNTEGF_cjs.getLineShadowParams(ss);
1187
1187
  const shadowId = lineShadow ? `${seed}-line-shadow` : void 0;
1188
1188
  if (lineShadow && shadowId) {
1189
1189
  const filter = createSvgEl(doc, "filter", {
@@ -1204,8 +1204,8 @@ var renderConnectorElement = (element, zIndex, context) => {
1204
1204
  );
1205
1205
  defs.appendChild(filter);
1206
1206
  }
1207
- const startArrow = chunkGCS5KBMR_cjs.normalizeArrow(ss?.connectorStartArrow);
1208
- const endArrow = chunkGCS5KBMR_cjs.normalizeArrow(ss?.connectorEndArrow);
1207
+ const startArrow = chunkKMNNTEGF_cjs.normalizeArrow(ss?.connectorStartArrow);
1208
+ const endArrow = chunkKMNNTEGF_cjs.normalizeArrow(ss?.connectorEndArrow);
1209
1209
  const startMarkerId = startArrow ? `${seed}-start` : void 0;
1210
1210
  const endMarkerId = endArrow ? `${seed}-end` : void 0;
1211
1211
  if (startArrow && startMarkerId) {
@@ -1228,10 +1228,10 @@ var renderConnectorElement = (element, zIndex, context) => {
1228
1228
  svg.appendChild(defs);
1229
1229
  }
1230
1230
  const compound = ss?.compoundLine;
1231
- const offsets = chunkGCS5KBMR_cjs.getCompoundLineOffsets(compound, strokeWidth);
1232
- const widths = chunkGCS5KBMR_cjs.getCompoundLineWidths(compound, strokeWidth);
1231
+ const offsets = chunkKMNNTEGF_cjs.getCompoundLineOffsets(compound, strokeWidth);
1232
+ const widths = chunkKMNNTEGF_cjs.getCompoundLineWidths(compound, strokeWidth);
1233
1233
  const shapeType = pptx.hasShapeProperties(element) ? element.shapeType : void 0;
1234
- const usePath = chunkGCS5KBMR_cjs.connectorNeedsPath(shapeType) && pptx.hasShapeProperties(element);
1234
+ const usePath = chunkKMNNTEGF_cjs.connectorNeedsPath(shapeType) && pptx.hasShapeProperties(element);
1235
1235
  const pathData = usePath ? pptx.getConnectorPathGeometry(element).pathData : void 0;
1236
1236
  const x1 = element.flipHorizontal ? w : 0;
1237
1237
  const y1 = element.flipVertical ? h : 0;
@@ -1242,7 +1242,7 @@ var renderConnectorElement = (element, zIndex, context) => {
1242
1242
  d: pathData ?? `M${x1},${y1} L${x2},${y2}`,
1243
1243
  fill: "none",
1244
1244
  stroke: "transparent",
1245
- "stroke-width": chunkGCS5KBMR_cjs.connectorHitStrokeWidth(strokeWidth),
1245
+ "stroke-width": chunkKMNNTEGF_cjs.connectorHitStrokeWidth(strokeWidth),
1246
1246
  "stroke-linecap": "round",
1247
1247
  "stroke-linejoin": "round"
1248
1248
  });
@@ -1292,7 +1292,7 @@ function appendConnectorLabel(wrapper, element, context) {
1292
1292
  if (!pptx.hasTextProperties(element)) {
1293
1293
  return;
1294
1294
  }
1295
- const paragraphs = chunkGCS5KBMR_cjs.buildParagraphs(element, context.fieldContext);
1295
+ const paragraphs = chunkKMNNTEGF_cjs.buildParagraphs(element, context.fieldContext);
1296
1296
  if (!paragraphs.some((paragraph) => paragraph.runs.length > 0)) {
1297
1297
  return;
1298
1298
  }
@@ -1312,7 +1312,7 @@ function appendConnectorLabel(wrapper, element, context) {
1312
1312
  }
1313
1313
  function buildMarker(context, id, arrow, strokeColor, size) {
1314
1314
  const doc = context.document;
1315
- const shape = chunkGCS5KBMR_cjs.markerPath(arrow, size.width, size.length);
1315
+ const shape = chunkKMNNTEGF_cjs.markerPath(arrow, size.width, size.length);
1316
1316
  const marker = createSvgEl(doc, "marker", {
1317
1317
  id,
1318
1318
  viewBox: "0 0 10 10",
@@ -1396,7 +1396,7 @@ var renderContentPartElement = (element, zIndex, context) => {
1396
1396
  doc,
1397
1397
  "div",
1398
1398
  "pptxv-element pptxv-contentpart",
1399
- chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex)
1399
+ chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex)
1400
1400
  );
1401
1401
  el.dataset.elementId = element.id;
1402
1402
  const strokes = element.inkStrokes;
@@ -1429,7 +1429,7 @@ var renderContentPartElement = (element, zIndex, context) => {
1429
1429
  return el;
1430
1430
  };
1431
1431
  function renderEquations(element, context) {
1432
- if (!pptx.hasTextProperties(element) || !chunkGCS5KBMR_cjs.isEquationOnlyText(element.textSegments)) {
1432
+ if (!pptx.hasTextProperties(element) || !chunkKMNNTEGF_cjs.isEquationOnlyText(element.textSegments)) {
1433
1433
  return null;
1434
1434
  }
1435
1435
  const equations = (element.textSegments ?? []).filter((segment) => segment.equationXml);
@@ -1443,7 +1443,7 @@ function renderEquations(element, context) {
1443
1443
  fontFamily: "'Cambria Math', 'STIX Two Math', serif"
1444
1444
  });
1445
1445
  for (const segment of equations) {
1446
- const mathml = chunkGCS5KBMR_cjs.convertOmmlToMathMl(segment.equationXml);
1446
+ const mathml = chunkKMNNTEGF_cjs.convertOmmlToMathMl(segment.equationXml);
1447
1447
  if (!mathml) {
1448
1448
  continue;
1449
1449
  }
@@ -1457,7 +1457,7 @@ function renderEquations(element, context) {
1457
1457
  flex: 1,
1458
1458
  textAlign: "center"
1459
1459
  });
1460
- math.innerHTML = chunkGCS5KBMR_cjs.sanitizeMathMl(mathml);
1460
+ math.innerHTML = chunkKMNNTEGF_cjs.sanitizeMathMl(mathml);
1461
1461
  row.appendChild(math);
1462
1462
  if (segment.equationNumber) {
1463
1463
  const number = createEl(context.document, "span", "pptxv-equation-number", {
@@ -1475,7 +1475,7 @@ function renderExtrusionOverlay(doc, element) {
1475
1475
  return null;
1476
1476
  }
1477
1477
  const fill = chunkVFPVEVF4_cjs.getComputedFillStyle(element)?.backgroundColor;
1478
- const data = chunkGCS5KBMR_cjs.build3DExtrusionData(
1478
+ const data = chunkKMNNTEGF_cjs.build3DExtrusionData(
1479
1479
  element.shapeStyle?.shape3d,
1480
1480
  element.shapeStyle?.scene3d,
1481
1481
  fill,
@@ -1537,7 +1537,7 @@ function appendOwnReflection(doc, host, element, mediaDataUrls, suppressOwnRefle
1537
1537
  if (suppressOwnReflection) {
1538
1538
  return;
1539
1539
  }
1540
- const wrapperStyle = chunkGCS5KBMR_cjs.getComputedEffectStyle(element).reflection;
1540
+ const wrapperStyle = chunkKMNNTEGF_cjs.getComputedEffectStyle(element).reflection;
1541
1541
  if (!wrapperStyle) {
1542
1542
  return;
1543
1543
  }
@@ -1561,9 +1561,9 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
1561
1561
  if (groupFilterDefs) {
1562
1562
  wrap.appendChild(groupFilterDefs);
1563
1563
  }
1564
- const childParentFill = chunkGCS5KBMR_cjs.getGroupChildParentFill(element, parentGroupFill);
1564
+ const childParentFill = chunkKMNNTEGF_cjs.getGroupChildParentFill(element, parentGroupFill);
1565
1565
  for (const child of element.children ?? []) {
1566
- const childWrap = createEl(doc, "div", void 0, chunkGCS5KBMR_cjs.getContainerStyle(child, 0));
1566
+ const childWrap = createEl(doc, "div", void 0, chunkKMNNTEGF_cjs.getContainerStyle(child, 0));
1567
1567
  childWrap.appendChild(
1568
1568
  buildReflectionMirrorContent(doc, child, mediaDataUrls, childParentFill)
1569
1569
  );
@@ -1577,7 +1577,7 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
1577
1577
  height: "100%",
1578
1578
  ...getShapeFillStrokeStyle(element)
1579
1579
  });
1580
- const inheritedFill = chunkGCS5KBMR_cjs.resolveGroupChildFill(element, parentGroupFill);
1580
+ const inheritedFill = chunkKMNNTEGF_cjs.resolveGroupChildFill(element, parentGroupFill);
1581
1581
  if (inheritedFill) {
1582
1582
  applyInheritedFill(box, inheritedFill);
1583
1583
  }
@@ -1598,12 +1598,12 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
1598
1598
  box.appendChild(gradientOutline);
1599
1599
  }
1600
1600
  if (pptx.isImageLikeElement(element)) {
1601
- const src = chunkGCS5KBMR_cjs.getImageSrc(element, new Map(mediaDataUrls));
1601
+ const src = chunkKMNNTEGF_cjs.getImageSrc(element, new Map(mediaDataUrls));
1602
1602
  if (src) {
1603
1603
  const img = createEl(doc, "img", void 0, {
1604
1604
  width: "100%",
1605
1605
  height: "100%",
1606
- ...chunkGCS5KBMR_cjs.getImageFitStyle(element)
1606
+ ...chunkKMNNTEGF_cjs.getImageFitStyle(element)
1607
1607
  });
1608
1608
  img.setAttribute("src", src);
1609
1609
  img.setAttribute("alt", "");
@@ -1613,7 +1613,7 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
1613
1613
  appendOwnReflection(doc, box, element, mediaDataUrls, suppressOwnReflection);
1614
1614
  return box;
1615
1615
  }
1616
- const paragraphs = chunkGCS5KBMR_cjs.buildParagraphs(element);
1616
+ const paragraphs = chunkKMNNTEGF_cjs.buildParagraphs(element);
1617
1617
  const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
1618
1618
  if (hasText) {
1619
1619
  box.appendChild(renderTextBlock(doc, paragraphs, getTextBlockStyle(element)));
@@ -1625,20 +1625,20 @@ function buildReflectionMirrorContent(doc, element, mediaDataUrls, parentGroupFi
1625
1625
  // src/pptx/dom/elements/shape-filter-defs.ts
1626
1626
  var OUTLINE_SVG_STYLE = "position:absolute;inset:0;width:100%;height:100%;min-width:1px;min-height:1px;overflow:visible;pointer-events:none";
1627
1627
  function renderShapeFilterDefs(doc, element) {
1628
- const style = chunkGCS5KBMR_cjs.getEffectStyleSource(element);
1628
+ const style = chunkKMNNTEGF_cjs.getEffectStyleSource(element);
1629
1629
  if (!style) {
1630
1630
  return null;
1631
1631
  }
1632
1632
  const markups = [];
1633
- const duotone = chunkGCS5KBMR_cjs.getDuotoneSvgFilter(style, element.id);
1633
+ const duotone = chunkKMNNTEGF_cjs.getDuotoneSvgFilter(style, element.id);
1634
1634
  if (duotone) {
1635
1635
  markups.push(duotone.filterMarkup);
1636
1636
  }
1637
- const softEdge = chunkGCS5KBMR_cjs.getSoftEdgeSvgFilter(style, element.id);
1637
+ const softEdge = chunkKMNNTEGF_cjs.getSoftEdgeSvgFilter(style, element.id);
1638
1638
  if (softEdge) {
1639
1639
  markups.push(softEdge.filterMarkup);
1640
1640
  }
1641
- const bevelLighting = chunkGCS5KBMR_cjs.getBevelLightingSvgFilter(element);
1641
+ const bevelLighting = chunkKMNNTEGF_cjs.getBevelLightingSvgFilter(element);
1642
1642
  if (bevelLighting) {
1643
1643
  markups.push(bevelLighting.filterMarkup);
1644
1644
  }
@@ -1656,7 +1656,7 @@ function renderShapeFillOverlay(doc, element) {
1656
1656
  if (!pptx.hasShapeProperties(element)) {
1657
1657
  return null;
1658
1658
  }
1659
- const overlay = chunkGCS5KBMR_cjs.getComputedEffectStyle(element).fillOverlay;
1659
+ const overlay = chunkKMNNTEGF_cjs.getComputedEffectStyle(element).fillOverlay;
1660
1660
  if (!overlay) {
1661
1661
  return null;
1662
1662
  }
@@ -1671,7 +1671,7 @@ function renderShapeFillOverlay(doc, element) {
1671
1671
  return layer;
1672
1672
  }
1673
1673
  function renderReflectionOverlay(doc, element, mediaDataUrls) {
1674
- const wrapperStyle = chunkGCS5KBMR_cjs.getComputedEffectStyle(element).reflection;
1674
+ const wrapperStyle = chunkKMNNTEGF_cjs.getComputedEffectStyle(element).reflection;
1675
1675
  if (!wrapperStyle) {
1676
1676
  return null;
1677
1677
  }
@@ -1681,13 +1681,13 @@ function renderReflectionOverlay(doc, element, mediaDataUrls) {
1681
1681
  return layer;
1682
1682
  }
1683
1683
  function renderHollowHitOutline(doc, element) {
1684
- const hit = chunkGCS5KBMR_cjs.buildHollowHitOutline(element);
1684
+ const hit = chunkKMNNTEGF_cjs.buildHollowHitOutline(element);
1685
1685
  if (!hit) {
1686
1686
  return null;
1687
1687
  }
1688
1688
  const svg = createSvgEl(doc, "svg", {
1689
1689
  "aria-hidden": "true",
1690
- viewBox: chunkGCS5KBMR_cjs.strokeOutlineViewBox(element),
1690
+ viewBox: chunkKMNNTEGF_cjs.strokeOutlineViewBox(element),
1691
1691
  preserveAspectRatio: "none"
1692
1692
  });
1693
1693
  svg.setAttribute("style", OUTLINE_SVG_STYLE);
@@ -1720,20 +1720,20 @@ function renderShapeSubpathFillOverlay(doc, element) {
1720
1720
  return svg;
1721
1721
  }
1722
1722
  function renderStrokeOutline(doc, element) {
1723
- const outline = chunkGCS5KBMR_cjs.buildStrokeOutline(element);
1723
+ const outline = chunkKMNNTEGF_cjs.buildStrokeOutline(element);
1724
1724
  if (!outline) {
1725
1725
  return null;
1726
1726
  }
1727
1727
  const svg = createSvgEl(doc, "svg", {
1728
1728
  class: "pptx-vanilla-gradient-outline",
1729
1729
  "aria-hidden": "true",
1730
- viewBox: chunkGCS5KBMR_cjs.strokeOutlineViewBox(element),
1730
+ viewBox: chunkKMNNTEGF_cjs.strokeOutlineViewBox(element),
1731
1731
  preserveAspectRatio: "none"
1732
1732
  });
1733
1733
  svg.setAttribute("style", OUTLINE_SVG_STYLE);
1734
1734
  if (outline.paint) {
1735
1735
  const defs = createSvgEl(doc, "defs");
1736
- if (chunkGCS5KBMR_cjs.isPatternPaint(outline.paint)) {
1736
+ if (chunkKMNNTEGF_cjs.isPatternPaint(outline.paint)) {
1737
1737
  const pattern = createSvgEl(doc, "pattern", {
1738
1738
  id: outline.paint.id,
1739
1739
  width: outline.paint.width,
@@ -1748,7 +1748,7 @@ function renderStrokeOutline(doc, element) {
1748
1748
  pattern.appendChild(image);
1749
1749
  defs.appendChild(pattern);
1750
1750
  } else {
1751
- defs.innerHTML = chunkGCS5KBMR_cjs.svgGradientMarkup(outline.paint);
1751
+ defs.innerHTML = chunkKMNNTEGF_cjs.svgGradientMarkup(outline.paint);
1752
1752
  }
1753
1753
  svg.appendChild(defs);
1754
1754
  }
@@ -1799,14 +1799,14 @@ function indexRenderedNodes(root) {
1799
1799
  return byId;
1800
1800
  }
1801
1801
  function paintInheritedFill(node, element, parentGroupFill) {
1802
- const inherited = chunkGCS5KBMR_cjs.resolveGroupChildFill(element, parentGroupFill);
1802
+ const inherited = chunkKMNNTEGF_cjs.resolveGroupChildFill(element, parentGroupFill);
1803
1803
  if (inherited) {
1804
1804
  applyGroupChildFill(node, inherited);
1805
1805
  }
1806
1806
  if (element.type !== "group") {
1807
1807
  return;
1808
1808
  }
1809
- const childFill = chunkGCS5KBMR_cjs.getGroupChildParentFill(element, parentGroupFill);
1809
+ const childFill = chunkKMNNTEGF_cjs.getGroupChildParentFill(element, parentGroupFill);
1810
1810
  if (!childFill) {
1811
1811
  return;
1812
1812
  }
@@ -1820,7 +1820,7 @@ function paintInheritedFill(node, element, parentGroupFill) {
1820
1820
  }
1821
1821
  var renderGroupElement = (element, zIndex, context) => {
1822
1822
  const el = createEl(context.document, "div", "pptxv-element pptxv-group", {
1823
- ...chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex),
1823
+ ...chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex),
1824
1824
  // A group paints no fill/outline of its own, but `p:grpSpPr/a:effectLst`
1825
1825
  // DOES carry a shadow/glow/soft-edge for the group's own composite
1826
1826
  // raster (see shared `getComputedEffectStyle`), expressed as `filter` /
@@ -1837,7 +1837,7 @@ var renderGroupElement = (element, zIndex, context) => {
1837
1837
  el.appendChild(reflection);
1838
1838
  }
1839
1839
  if (element.type === "group" && element.children?.length) {
1840
- const parentGroupFill = chunkGCS5KBMR_cjs.getGroupChildParentFill(element);
1840
+ const parentGroupFill = chunkKMNNTEGF_cjs.getGroupChildParentFill(element);
1841
1841
  element.children.forEach((child, index) => {
1842
1842
  const childEl = context.renderElement(child, index);
1843
1843
  if (childEl) {
@@ -1852,12 +1852,12 @@ var renderGroupElement = (element, zIndex, context) => {
1852
1852
  // src/pptx/dom/elements/image.ts
1853
1853
  var renderImageElement = (element, zIndex, context) => {
1854
1854
  const doc = context.document;
1855
- const geometry = element.type === "image" || element.type === "picture" ? chunkGCS5KBMR_cjs.resolveShapeGeometry(element) : void 0;
1855
+ const geometry = element.type === "image" || element.type === "picture" ? chunkKMNNTEGF_cjs.resolveShapeGeometry(element) : void 0;
1856
1856
  const geometryClipPath = geometry?.kind === "clipPath" ? geometry.clipPath : void 0;
1857
- const cropShapeClipPath = element.type === "image" || element.type === "picture" ? chunkGCS5KBMR_cjs.getCropShapeClipPath(element.cropShape, element.width, element.height) : void 0;
1857
+ const cropShapeClipPath = element.type === "image" || element.type === "picture" ? chunkKMNNTEGF_cjs.getCropShapeClipPath(element.cropShape, element.width, element.height) : void 0;
1858
1858
  const el = createEl(doc, "div", "pptxv-element pptxv-image", {
1859
- ...chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex),
1860
- overflow: chunkGCS5KBMR_cjs.getImageOverflow(element),
1859
+ ...chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex),
1860
+ overflow: chunkKMNNTEGF_cjs.getImageOverflow(element),
1861
1861
  // The picture's own shape geometry (prstGeom / custGeom) clips the frame,
1862
1862
  // not the `<img>` - a pixel-space clip on the img would be scaled and
1863
1863
  // shifted by the crop transform.
@@ -1865,11 +1865,11 @@ var renderImageElement = (element, zIndex, context) => {
1865
1865
  ...geometryClipPath ? { clipPath: geometryClipPath } : cropShapeClipPath ? { clipPath: cropShapeClipPath } : {}
1866
1866
  });
1867
1867
  el.dataset.elementId = element.id;
1868
- const src = chunkGCS5KBMR_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
1868
+ const src = chunkKMNNTEGF_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
1869
1869
  if (!src) {
1870
1870
  return el;
1871
1871
  }
1872
- const fx = chunkGCS5KBMR_cjs.getComputedImageStyle(element);
1872
+ const fx = chunkKMNNTEGF_cjs.getComputedImageStyle(element);
1873
1873
  for (const f of fx.svgFilters) {
1874
1874
  const svg = createSvgEl(doc, "svg", { width: 0, height: 0, "aria-hidden": "true" });
1875
1875
  svg.setAttribute("style", "position:absolute;width:0;height:0;overflow:hidden");
@@ -1882,7 +1882,7 @@ var renderImageElement = (element, zIndex, context) => {
1882
1882
  el.appendChild(svg);
1883
1883
  }
1884
1884
  const reflection = renderReflectionOverlay(doc, element, context.mediaDataUrls);
1885
- const tiling = chunkGCS5KBMR_cjs.getImageTilingStyle(element, chunkGCS5KBMR_cjs.getCachedNativeImageSize(src));
1885
+ const tiling = chunkKMNNTEGF_cjs.getImageTilingStyle(element, chunkKMNNTEGF_cjs.getCachedNativeImageSize(src));
1886
1886
  if (tiling) {
1887
1887
  const tile = createEl(doc, "div", "pptxv-image-tile", tiling);
1888
1888
  if (fx.filter) {
@@ -1891,10 +1891,10 @@ var renderImageElement = (element, zIndex, context) => {
1891
1891
  if (fx.opacity !== void 0) {
1892
1892
  tile.style.opacity = String(fx.opacity);
1893
1893
  }
1894
- if (!chunkGCS5KBMR_cjs.getCachedNativeImageSize(src)) {
1895
- void chunkGCS5KBMR_cjs.probeNativeImageSize(src).then((size) => {
1894
+ if (!chunkKMNNTEGF_cjs.getCachedNativeImageSize(src)) {
1895
+ void chunkKMNNTEGF_cjs.probeNativeImageSize(src).then((size) => {
1896
1896
  if (size) {
1897
- applyStyleMap(tile, chunkGCS5KBMR_cjs.getImageTilingStyle(element, size) ?? {});
1897
+ applyStyleMap(tile, chunkKMNNTEGF_cjs.getImageTilingStyle(element, size) ?? {});
1898
1898
  }
1899
1899
  return void 0;
1900
1900
  });
@@ -1905,8 +1905,8 @@ var renderImageElement = (element, zIndex, context) => {
1905
1905
  }
1906
1906
  return el;
1907
1907
  }
1908
- const fit = chunkGCS5KBMR_cjs.getImageFitStyle(element);
1909
- const fillCounterTransform = chunkGCS5KBMR_cjs.getImageFillCounterTransform(element, Boolean(fit.transform));
1908
+ const fit = chunkKMNNTEGF_cjs.getImageFitStyle(element);
1909
+ const fillCounterTransform = chunkKMNNTEGF_cjs.getImageFillCounterTransform(element, Boolean(fit.transform));
1910
1910
  const img = createEl(doc, "img", void 0, {
1911
1911
  ...fit,
1912
1912
  display: "block",
@@ -1925,14 +1925,14 @@ var renderImageElement = (element, zIndex, context) => {
1925
1925
  if (element.type === "image" || element.type === "picture") {
1926
1926
  const clrChange = element.imageEffects?.clrChange;
1927
1927
  if (clrChange) {
1928
- void chunkGCS5KBMR_cjs.resolveColorChangedImageSource(src, clrChange).then((resolved) => {
1928
+ void chunkKMNNTEGF_cjs.resolveColorChangedImageSource(src, clrChange).then((resolved) => {
1929
1929
  if (img.src === src || img.getAttribute("src") === src) {
1930
1930
  img.src = resolved;
1931
1931
  }
1932
1932
  return void 0;
1933
1933
  });
1934
1934
  }
1935
- const wash = chunkGCS5KBMR_cjs.getImageColorWashStyle(element.imageEffects?.colorWash);
1935
+ const wash = chunkKMNNTEGF_cjs.getImageColorWashStyle(element.imageEffects?.colorWash);
1936
1936
  if (wash) {
1937
1937
  el.appendChild(
1938
1938
  createEl(doc, "div", "pptxv-image-color-wash", {
@@ -1961,7 +1961,7 @@ var renderInkElement = (element, zIndex, context) => {
1961
1961
  doc,
1962
1962
  "div",
1963
1963
  "pptxv-element pptxv-ink",
1964
- chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex)
1964
+ chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex)
1965
1965
  );
1966
1966
  wrapper.dataset.elementId = element.id;
1967
1967
  const paths = element.inkPaths;
@@ -1982,7 +1982,7 @@ var renderInkElement = (element, zIndex, context) => {
1982
1982
  keyframes.textContent = chunkNTXHQHCS_cjs.INK_REPLAY_KEYFRAMES;
1983
1983
  svg.appendChild(keyframes);
1984
1984
  }
1985
- const views = chunkGCS5KBMR_cjs.buildInkGroupStrokes(element, { color: chunkVFPVEVF4_cjs.DEFAULT_STROKE_COLOR, width: 1 });
1985
+ const views = chunkKMNNTEGF_cjs.buildInkGroupStrokes(element, { color: chunkVFPVEVF4_cjs.DEFAULT_STROKE_COLOR, width: 1 });
1986
1986
  for (const [i, view] of views.entries()) {
1987
1987
  svg.appendChild(buildStrokeSvg(doc, view, replayStyles[i]));
1988
1988
  }
@@ -2036,12 +2036,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
2036
2036
  let stopButton = null;
2037
2037
  const update = (playing) => {
2038
2038
  const input = { fullScreen: element.fullScreen, presenting: context.presenting, playing };
2039
- const active = chunkGCS5KBMR_cjs.isMediaFullscreenActive(input);
2039
+ const active = chunkKMNNTEGF_cjs.isMediaFullscreenActive(input);
2040
2040
  applyStyleMap(
2041
2041
  container,
2042
- active ? chunkGCS5KBMR_cjs.MEDIA_FULLSCREEN_OVERLAY_STYLE : mediaFullscreenResetStyle(baseStyle)
2042
+ active ? chunkKMNNTEGF_cjs.MEDIA_FULLSCREEN_OVERLAY_STYLE : mediaFullscreenResetStyle(baseStyle)
2043
2043
  );
2044
- if (chunkGCS5KBMR_cjs.shouldShowMediaFullscreenStopButton(input)) {
2044
+ if (chunkKMNNTEGF_cjs.shouldShowMediaFullscreenStopButton(input)) {
2045
2045
  if (!stopButton) {
2046
2046
  stopButton = buildFullscreenStopButton(
2047
2047
  doc,
@@ -2066,12 +2066,12 @@ function wireMediaFullscreenOverlay(doc, container, mediaNode, element, context,
2066
2066
 
2067
2067
  // src/pptx/dom/elements/media.ts
2068
2068
  function applyMediaPresentingState(el, presenting, playback) {
2069
- chunkGCS5KBMR_cjs.applyMediaPlaybackAttributes(el, playback);
2069
+ chunkKMNNTEGF_cjs.applyMediaPlaybackAttributes(el, playback);
2070
2070
  if (presenting) {
2071
- chunkGCS5KBMR_cjs.startMediaAutoplay(el, { trimStartMs: playback.trimStartMs });
2072
- chunkGCS5KBMR_cjs.scheduleMediaTrimAndFade(el, {
2071
+ chunkKMNNTEGF_cjs.startMediaAutoplay(el, { trimStartMs: playback.trimStartMs });
2072
+ chunkKMNNTEGF_cjs.scheduleMediaTrimAndFade(el, {
2073
2073
  ...playback,
2074
- volume: chunkGCS5KBMR_cjs.mediaPlaybackAttributes(playback).volume
2074
+ volume: chunkKMNNTEGF_cjs.mediaPlaybackAttributes(playback).volume
2075
2075
  });
2076
2076
  } else if (!el.paused) {
2077
2077
  el.pause();
@@ -2081,18 +2081,18 @@ var renderMediaElement = (element, zIndex, context) => {
2081
2081
  if (element.type !== "media") {
2082
2082
  return null;
2083
2083
  }
2084
- const surface = chunkGCS5KBMR_cjs.mediaSurfaceOf({
2084
+ const surface = chunkKMNNTEGF_cjs.mediaSurfaceOf({
2085
2085
  interactive: context.interactive === true || context.reading === true,
2086
2086
  presenting: context.presenting
2087
2087
  });
2088
- const showTransport = chunkGCS5KBMR_cjs.mediaTransportVisible({ ...surface, canvasTransport: true });
2088
+ const showTransport = chunkKMNNTEGF_cjs.mediaTransportVisible({ ...surface, canvasTransport: true });
2089
2089
  const doc = context.document;
2090
- const baseStyle = chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex);
2090
+ const baseStyle = chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex);
2091
2091
  const el = createEl(doc, "div", "pptxv-element pptxv-media", baseStyle);
2092
2092
  el.dataset.elementId = element.id;
2093
2093
  const mediaSrc = element.mediaData ?? (element.mediaPath ? context.mediaDataUrls.get(element.mediaPath) : void 0);
2094
- const posterSrc = chunkGCS5KBMR_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
2095
- const onlineVideoEmbedUrl = chunkGCS5KBMR_cjs.getOnlineVideoEmbed(element)?.embedUrl;
2094
+ const posterSrc = chunkKMNNTEGF_cjs.getImageSrc(element, new Map(context.mediaDataUrls));
2095
+ const onlineVideoEmbedUrl = chunkKMNNTEGF_cjs.getOnlineVideoEmbed(element)?.embedUrl;
2096
2096
  if (onlineVideoEmbedUrl && element.mediaType === "video") {
2097
2097
  const iframe = createEl(doc, "iframe", "pptxv-media-video pptxv-media-iframe", {
2098
2098
  width: "100%",
@@ -2102,8 +2102,8 @@ var renderMediaElement = (element, zIndex, context) => {
2102
2102
  });
2103
2103
  iframe.src = onlineVideoEmbedUrl;
2104
2104
  iframe.title = context.t("pptx.media.onlineVideoTitle");
2105
- iframe.allow = chunkGCS5KBMR_cjs.ONLINE_VIDEO_IFRAME_ALLOW;
2106
- iframe.sandbox.value = chunkGCS5KBMR_cjs.ONLINE_VIDEO_IFRAME_SANDBOX;
2105
+ iframe.allow = chunkKMNNTEGF_cjs.ONLINE_VIDEO_IFRAME_ALLOW;
2106
+ iframe.sandbox.value = chunkKMNNTEGF_cjs.ONLINE_VIDEO_IFRAME_SANDBOX;
2107
2107
  iframe.allowFullscreen = true;
2108
2108
  el.appendChild(iframe);
2109
2109
  return el;
@@ -2132,21 +2132,21 @@ var renderMediaElement = (element, zIndex, context) => {
2132
2132
  audio.src = mediaSrc;
2133
2133
  audio.controls = showTransport;
2134
2134
  el.appendChild(audio);
2135
- if (context.presenting && chunkGCS5KBMR_cjs.registerCrossSlideAudio(element, mediaSrc)) {
2135
+ if (context.presenting && chunkKMNNTEGF_cjs.registerCrossSlideAudio(element, mediaSrc)) {
2136
2136
  audio.muted = true;
2137
- chunkGCS5KBMR_cjs.applyMediaPlaybackAttributes(audio, element);
2137
+ chunkKMNNTEGF_cjs.applyMediaPlaybackAttributes(audio, element);
2138
2138
  return el;
2139
2139
  }
2140
2140
  applyMediaPresentingState(audio, context.presenting, element);
2141
2141
  wireMediaFullscreenOverlay(doc, el, audio, element, context, baseStyle);
2142
2142
  return el;
2143
2143
  }
2144
- const fallback = chunkGCS5KBMR_cjs.mediaFallbackVisual(surface, {
2144
+ const fallback = chunkKMNNTEGF_cjs.mediaFallbackVisual(surface, {
2145
2145
  hasPoster: Boolean(posterSrc),
2146
2146
  missing: element.mediaMissing === true
2147
2147
  });
2148
- const icon = chunkGCS5KBMR_cjs.mediaFallbackIcon(fallback, element.mediaType);
2149
- const labelKey = chunkGCS5KBMR_cjs.mediaFallbackLabelKey(fallback, element.mediaType);
2148
+ const icon = chunkKMNNTEGF_cjs.mediaFallbackIcon(fallback, element.mediaType);
2149
+ const labelKey = chunkKMNNTEGF_cjs.mediaFallbackLabelKey(fallback, element.mediaType);
2150
2150
  if (fallback.poster && posterSrc) {
2151
2151
  const img = createEl(doc, "img", "pptxv-media-poster", {
2152
2152
  width: "100%",
@@ -2164,7 +2164,7 @@ var renderMediaElement = (element, zIndex, context) => {
2164
2164
  if (fallback.badge === "missing") {
2165
2165
  badge.classList.add("pptxv-media-badge-missing");
2166
2166
  }
2167
- badge.setAttribute(chunkGCS5KBMR_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.badge);
2167
+ badge.setAttribute(chunkKMNNTEGF_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.badge);
2168
2168
  badge.appendChild(buildIcon(doc, icon));
2169
2169
  if (labelKey !== void 0 && fallback.badge === "missing") {
2170
2170
  const text = createEl(doc, "span");
@@ -2177,7 +2177,7 @@ var renderMediaElement = (element, zIndex, context) => {
2177
2177
  }
2178
2178
  if (fallback.placeholder !== "none") {
2179
2179
  el.classList.add("pptxv-placeholder", "pptxv-media-placeholder");
2180
- el.setAttribute(chunkGCS5KBMR_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.placeholder);
2180
+ el.setAttribute(chunkKMNNTEGF_cjs.MEDIA_CHROME_ATTRIBUTE, fallback.placeholder);
2181
2181
  if (icon.length > 0) {
2182
2182
  el.appendChild(buildIcon(doc, icon));
2183
2183
  }
@@ -2213,7 +2213,7 @@ var renderModel3dElement = (element, zIndex, context) => {
2213
2213
  doc,
2214
2214
  "div",
2215
2215
  "pptxv-element pptxv-model3d",
2216
- chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex)
2216
+ chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex)
2217
2217
  );
2218
2218
  el.dataset.elementId = element.id;
2219
2219
  const label = context.t("pptx.model3d.label");
@@ -2350,7 +2350,7 @@ function buildOleIcon(doc, type, color) {
2350
2350
  fill: "none",
2351
2351
  "aria-hidden": "true"
2352
2352
  });
2353
- for (const shape of chunkGCS5KBMR_cjs.getOleIconShapes(type)) {
2353
+ for (const shape of chunkKMNNTEGF_cjs.getOleIconShapes(type)) {
2354
2354
  const node = createSvgEl(doc, shape.tag, shape.attrs);
2355
2355
  if (shape.tag === "text") {
2356
2356
  node.setAttribute("fill", color);
@@ -2369,21 +2369,21 @@ var renderOleElement = (element, zIndex, context) => {
2369
2369
  return null;
2370
2370
  }
2371
2371
  const doc = context.document;
2372
- const oleType = chunkGCS5KBMR_cjs.resolveOleType(element);
2373
- const typeColor = chunkGCS5KBMR_cjs.getOleTypeColor(oleType);
2374
- const typeLabel = chunkGCS5KBMR_cjs.getOleTypeLabel(oleType);
2375
- const el = createEl(doc, "div", "pptxv-element pptxv-ole", chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex));
2372
+ const oleType = chunkKMNNTEGF_cjs.resolveOleType(element);
2373
+ const typeColor = chunkKMNNTEGF_cjs.getOleTypeColor(oleType);
2374
+ const typeLabel = chunkKMNNTEGF_cjs.getOleTypeLabel(oleType);
2375
+ const el = createEl(doc, "div", "pptxv-element pptxv-ole", chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex));
2376
2376
  el.dataset.elementId = element.id;
2377
2377
  el.setAttribute("role", "group");
2378
- el.setAttribute("aria-label", chunkGCS5KBMR_cjs.getOleAriaLabel(element));
2378
+ el.setAttribute("aria-label", chunkKMNNTEGF_cjs.getOleAriaLabel(element));
2379
2379
  el.title = infoLines(element, typeLabel).join("\n");
2380
2380
  if (element.previewImageData) {
2381
- el.appendChild(buildPreview(doc, element, typeColor, chunkGCS5KBMR_cjs.getOleBadgeLabel(oleType)));
2381
+ el.appendChild(buildPreview(doc, element, typeColor, chunkKMNNTEGF_cjs.getOleBadgeLabel(oleType)));
2382
2382
  } else {
2383
2383
  el.appendChild(buildPlaceholder2(doc, element, oleType, typeColor, typeLabel));
2384
2384
  }
2385
- const showActions = chunkGCS5KBMR_cjs.oleActionsVisible(
2386
- chunkGCS5KBMR_cjs.mediaSurfaceOf({
2385
+ const showActions = chunkKMNNTEGF_cjs.oleActionsVisible(
2386
+ chunkKMNNTEGF_cjs.mediaSurfaceOf({
2387
2387
  interactive: context.interactive === true,
2388
2388
  presenting: context.presenting
2389
2389
  })
@@ -2399,7 +2399,7 @@ function infoLines(el, typeLabel) {
2399
2399
  if (name) {
2400
2400
  lines.push(name);
2401
2401
  }
2402
- const size = chunkGCS5KBMR_cjs.formatBytes(el.oleEmbeddedByteSize);
2402
+ const size = chunkKMNNTEGF_cjs.formatBytes(el.oleEmbeddedByteSize);
2403
2403
  if (size) {
2404
2404
  lines.push(size);
2405
2405
  }
@@ -2423,7 +2423,7 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
2423
2423
  display: "block"
2424
2424
  });
2425
2425
  img.src = el.previewImageData ?? "";
2426
- img.alt = chunkGCS5KBMR_cjs.getOleAriaLabel(el);
2426
+ img.alt = chunkKMNNTEGF_cjs.getOleAriaLabel(el);
2427
2427
  img.draggable = false;
2428
2428
  preview.appendChild(img);
2429
2429
  const badge = createSvgEl(doc, "svg", { width: 24, height: 24, viewBox: "0 0 24 24" });
@@ -2450,7 +2450,7 @@ function buildPreview(doc, el, typeColor, badgeLabel) {
2450
2450
  }
2451
2451
  function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
2452
2452
  const box = createEl(doc, "div", "pptxv-ole-placeholder", {
2453
- ...chunkGCS5KBMR_cjs.getPlaceholderStyle(oleType),
2453
+ ...chunkKMNNTEGF_cjs.getPlaceholderStyle(oleType),
2454
2454
  width: "100%",
2455
2455
  height: "100%",
2456
2456
  display: "flex",
@@ -2471,7 +2471,7 @@ function buildPlaceholder2(doc, el, oleType, typeColor, typeLabel) {
2471
2471
  whiteSpace: "nowrap",
2472
2472
  color: typeColor
2473
2473
  });
2474
- name.textContent = chunkGCS5KBMR_cjs.getOleDisplayName(el);
2474
+ name.textContent = chunkKMNNTEGF_cjs.getOleDisplayName(el);
2475
2475
  box.appendChild(name);
2476
2476
  if (el.fileName) {
2477
2477
  const sublabel = createEl(doc, "span", "pptxv-ole-sublabel", {
@@ -2523,7 +2523,7 @@ function buildActionBar(doc, el, typeLabel, context) {
2523
2523
  for (const type of ["pointerdown", "mousedown", "click"]) {
2524
2524
  bar.addEventListener(type, (event) => event.stopPropagation());
2525
2525
  }
2526
- const size = chunkGCS5KBMR_cjs.formatBytes(el.oleEmbeddedByteSize);
2526
+ const size = chunkKMNNTEGF_cjs.formatBytes(el.oleEmbeddedByteSize);
2527
2527
  if (size) {
2528
2528
  const meta = createEl(doc, "span", "pptxv-ole-meta", {
2529
2529
  marginRight: "auto",
@@ -2543,14 +2543,14 @@ function buildActionBar(doc, el, typeLabel, context) {
2543
2543
  download.title = downloadTitle;
2544
2544
  download.textContent = context.t("pptx.ole.download");
2545
2545
  bar.appendChild(download);
2546
- if (chunkGCS5KBMR_cjs.isBrowserOpenableMime(el.oleEmbeddedMimeType)) {
2546
+ if (chunkKMNNTEGF_cjs.isBrowserOpenableMime(el.oleEmbeddedMimeType)) {
2547
2547
  const open = createEl(doc, "button", "pptxv-ole-action", ACTION_STYLE);
2548
2548
  open.type = "button";
2549
2549
  const openTitle = context.t("pptx.ole.openName", { name: downloadName });
2550
2550
  open.setAttribute("aria-label", openTitle);
2551
2551
  open.title = openTitle;
2552
2552
  open.textContent = context.t("pptx.ole.open");
2553
- open.addEventListener("click", () => chunkGCS5KBMR_cjs.openUrlInNewTab(data));
2553
+ open.addEventListener("click", () => chunkKMNNTEGF_cjs.openUrlInNewTab(data));
2554
2554
  bar.appendChild(open);
2555
2555
  }
2556
2556
  return bar;
@@ -2562,7 +2562,7 @@ var renderPlaceholderElement = (element, zIndex, context) => {
2562
2562
  context.document,
2563
2563
  "div",
2564
2564
  "pptxv-element pptxv-placeholder",
2565
- chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex)
2565
+ chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex)
2566
2566
  );
2567
2567
  el.dataset.elementId = element.id;
2568
2568
  el.dataset.elementType = element.type;
@@ -2578,7 +2578,7 @@ var renderZoomElement = (element, zIndex, context) => {
2578
2578
  return null;
2579
2579
  }
2580
2580
  const doc = context.document;
2581
- const summaryView = chunkGCS5KBMR_cjs.buildSummaryZoomView(
2581
+ const summaryView = chunkKMNNTEGF_cjs.buildSummaryZoomView(
2582
2582
  element,
2583
2583
  (index) => {
2584
2584
  const slide = context.slides?.[index];
@@ -2598,7 +2598,7 @@ var renderZoomElement = (element, zIndex, context) => {
2598
2598
  doc,
2599
2599
  "div",
2600
2600
  "pptxv-element pptxv-zoom pptxv-summary-zoom",
2601
- chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex)
2601
+ chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex)
2602
2602
  );
2603
2603
  const content = createEl(doc, "div", "pptxv-summary-zoom-content", summaryView.containerStyle);
2604
2604
  root.dataset.elementId = element.id;
@@ -2665,7 +2665,7 @@ var renderZoomElement = (element, zIndex, context) => {
2665
2665
  const target = element.targetSlideIndex ?? 0;
2666
2666
  const targetSlide = context.slides?.[target];
2667
2667
  const interactive = context.presenting && context.onZoomClick !== void 0;
2668
- const el = createEl(doc, "div", "pptxv-element pptxv-zoom", chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex));
2668
+ const el = createEl(doc, "div", "pptxv-element pptxv-zoom", chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex));
2669
2669
  el.dataset.elementId = element.id;
2670
2670
  el.dataset.zoomType = zoomType;
2671
2671
  el.dataset.zoomTarget = String(target);
@@ -2675,7 +2675,7 @@ var renderZoomElement = (element, zIndex, context) => {
2675
2675
  el.tabIndex = 0;
2676
2676
  el.style.cursor = "pointer";
2677
2677
  const activate = () => {
2678
- const zoomTarget = chunkGCS5KBMR_cjs.resolveZoomNavigationTarget(element);
2678
+ const zoomTarget = chunkKMNNTEGF_cjs.resolveZoomNavigationTarget(element);
2679
2679
  if (zoomTarget) {
2680
2680
  context.onZoomClick?.(zoomTarget, context.currentSlideIndex ?? 0);
2681
2681
  }
@@ -2790,7 +2790,7 @@ function registerExtraRenderers(registry) {
2790
2790
  // src/pptx/dom/elements/smartart-3d.ts
2791
2791
  var renderSmartArt3DElement = (element, zIndex, context) => {
2792
2792
  const wrapper = renderSmartArtSvg(element, zIndex, context);
2793
- const spec = wrapper ? chunkGCS5KBMR_cjs.resolveSmartArtThreeViewSpec(element, context.smartArt3D) : null;
2793
+ const spec = wrapper ? chunkKMNNTEGF_cjs.resolveSmartArtThreeViewSpec(element, context.smartArt3D) : null;
2794
2794
  if (!wrapper || !spec) {
2795
2795
  return wrapper;
2796
2796
  }
@@ -2800,18 +2800,18 @@ var renderSmartArt3DElement = (element, zIndex, context) => {
2800
2800
  textStyle: context.presentationStates?.get(element.id)?.textStyle
2801
2801
  });
2802
2802
  if (context.onSmartArtNodeTextChange && context.interactive && !context.presenting) {
2803
- const layer = renderSmartArtSvg(chunkGCS5KBMR_cjs.elementInLocalFrame(element), 0, context);
2803
+ const layer = renderSmartArtSvg(chunkKMNNTEGF_cjs.elementInLocalFrame(element), 0, context);
2804
2804
  if (layer) {
2805
2805
  layer.classList.add("pptxv-smartart-3d-edit-layer");
2806
2806
  layer.setAttribute("data-smartart-3d-edit-layer", "true");
2807
- chunkGCS5KBMR_cjs.stripEditLayerMarkers(layer);
2807
+ chunkKMNNTEGF_cjs.stripEditLayerMarkers(layer);
2808
2808
  layer.setAttribute("aria-hidden", "true");
2809
2809
  Object.assign(layer.style, { position: "absolute", inset: "0", zIndex: "1" });
2810
2810
  for (const svg of layer.querySelectorAll("svg")) {
2811
2811
  svg.style.opacity = "0";
2812
2812
  }
2813
2813
  wrapper.appendChild(layer);
2814
- chunkGCS5KBMR_cjs.routeEditLayerPointerToNodes(layer);
2814
+ chunkKMNNTEGF_cjs.routeEditLayerPointerToNodes(layer);
2815
2815
  }
2816
2816
  }
2817
2817
  return wrapper;
@@ -2824,7 +2824,7 @@ function nodeTarget(target) {
2824
2824
  }
2825
2825
  function enableSmartArtEditing(chrome, element, context) {
2826
2826
  const data = element.smartArtData;
2827
- if (!data || !context.onSmartArtNodeTextChange && !context.onSmartArtNodeFillChange || !chunkGCS5KBMR_cjs.canDrillDown(element)) {
2827
+ if (!data || !context.onSmartArtNodeTextChange && !context.onSmartArtNodeFillChange || !chunkKMNNTEGF_cjs.canDrillDown(element)) {
2828
2828
  return;
2829
2829
  }
2830
2830
  let editor = null;
@@ -2846,8 +2846,8 @@ function enableSmartArtEditing(chrome, element, context) {
2846
2846
  }
2847
2847
  event.stopPropagation();
2848
2848
  const textNode = target.querySelector("text");
2849
- const textRect = textNode ? chunkGCS5KBMR_cjs.measureSvgViewportRect(textNode) : null;
2850
- const rect = textRect && textRect.width > 0 ? textRect : chunkGCS5KBMR_cjs.measureSvgViewportRect(target);
2849
+ const textRect = textNode ? chunkKMNNTEGF_cjs.measureSvgViewportRect(textNode) : null;
2850
+ const rect = textRect && textRect.width > 0 ? textRect : chunkKMNNTEGF_cjs.measureSvgViewportRect(target);
2851
2851
  if (!rect) {
2852
2852
  return;
2853
2853
  }
@@ -2871,7 +2871,7 @@ function enableSmartArtEditing(chrome, element, context) {
2871
2871
  textAlign: "center"
2872
2872
  });
2873
2873
  editor = input;
2874
- input.value = chunkGCS5KBMR_cjs.findSmartArtNodeText(data, nodeId) ?? "";
2874
+ input.value = chunkKMNNTEGF_cjs.findSmartArtNodeText(data, nodeId) ?? "";
2875
2875
  const commit = () => {
2876
2876
  if (input !== editor) {
2877
2877
  return;
@@ -2903,7 +2903,7 @@ function enableSmartArtEditing(chrome, element, context) {
2903
2903
  }
2904
2904
  cancelHide();
2905
2905
  swatches?.remove();
2906
- const rect = chunkGCS5KBMR_cjs.measureSvgViewportRect(target);
2906
+ const rect = chunkKMNNTEGF_cjs.measureSvgViewportRect(target);
2907
2907
  if (!rect) {
2908
2908
  return;
2909
2909
  }
@@ -2922,7 +2922,7 @@ function enableSmartArtEditing(chrome, element, context) {
2922
2922
  });
2923
2923
  swatches.setAttribute("role", "group");
2924
2924
  swatches.setAttribute("aria-label", context.t("pptx.smartArt.fillColor"));
2925
- for (const color of chunkGCS5KBMR_cjs.resolvePalette(data).slice(0, 6)) {
2925
+ for (const color of chunkKMNNTEGF_cjs.resolvePalette(data).slice(0, 6)) {
2926
2926
  const button = createEl(chrome.ownerDocument, "button", "", {
2927
2927
  width: "18px",
2928
2928
  height: "18px",
@@ -3021,7 +3021,7 @@ function buildSmartArtFallbackSvg(doc, layout, a11yNodes = [], nodeIds = []) {
3021
3021
  svg.setAttribute("class", "pptxv-smartart-svg");
3022
3022
  svg.setAttribute("style", SMARTART_SVG_STYLE);
3023
3023
  for (const conn of layout.connectors) {
3024
- const paint = chunkGCS5KBMR_cjs.smartArtConnectorPaint(conn);
3024
+ const paint = chunkKMNNTEGF_cjs.smartArtConnectorPaint(conn);
3025
3025
  svg.appendChild(
3026
3026
  createSvgEl(doc, "path", {
3027
3027
  d: paint.d,
@@ -3080,7 +3080,7 @@ function buildFallbackNode(doc, node, shadowFilter, a11yLabel, nodeId) {
3080
3080
  })
3081
3081
  );
3082
3082
  }
3083
- const label = chunkGCS5KBMR_cjs.smartArtNodeLabel(node);
3083
+ const label = chunkKMNNTEGF_cjs.smartArtNodeLabel(node);
3084
3084
  if (label.visible) {
3085
3085
  appendSvgTextLines(doc, g, {
3086
3086
  lines: label.lines,
@@ -3116,41 +3116,41 @@ var renderSmartArtSvg = (element, zIndex, context) => {
3116
3116
  doc,
3117
3117
  "div",
3118
3118
  "pptxv-element pptxv-smartart",
3119
- chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex)
3119
+ chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex)
3120
3120
  );
3121
3121
  wrapper.dataset.elementId = element.id;
3122
3122
  wrapper.dataset.testid = `smartart-${data?.layout ?? "diagram"}`;
3123
- const chrome = createEl(doc, "div", "pptxv-smartart-chrome", chunkGCS5KBMR_cjs.buildChromeStyle(data?.chrome));
3123
+ const chrome = createEl(doc, "div", "pptxv-smartart-chrome", chunkKMNNTEGF_cjs.buildChromeStyle(data?.chrome));
3124
3124
  chrome.style.position = "relative";
3125
3125
  wrapper.appendChild(chrome);
3126
3126
  if (data) {
3127
- const a11y = chunkGCS5KBMR_cjs.buildSmartArtA11y(data);
3127
+ const a11y = chunkKMNNTEGF_cjs.buildSmartArtA11y(data);
3128
3128
  chrome.setAttribute("role", "img");
3129
3129
  chrome.setAttribute("aria-label", a11y.label);
3130
3130
  }
3131
3131
  const nodes = data?.nodes ?? [];
3132
3132
  const drawingShapes = data?.drawingShapes ?? [];
3133
3133
  const animationState = context.presentationStates?.get(element.id);
3134
- const { nodes: revealedNodesFull } = chunkGCS5KBMR_cjs.resolveRevealedSmartArtNodes(
3134
+ const { nodes: revealedNodesFull } = chunkKMNNTEGF_cjs.resolveRevealedSmartArtNodes(
3135
3135
  nodes,
3136
3136
  animationState,
3137
3137
  data?.presLayoutVars
3138
3138
  );
3139
3139
  if (data && drawingShapes.length > 0) {
3140
- const revealedShapes = chunkGCS5KBMR_cjs.resolveRevealedDrawingShapes(drawingShapes, nodes, animationState);
3140
+ const revealedShapes = chunkKMNNTEGF_cjs.resolveRevealedDrawingShapes(drawingShapes, nodes, animationState);
3141
3141
  chrome.appendChild(
3142
- buildDrawingShapesSvg(doc, element.id, data, chunkGCS5KBMR_cjs.buildSmartArtA11y(data).nodes, revealedShapes)
3142
+ buildDrawingShapesSvg(doc, element.id, data, chunkKMNNTEGF_cjs.buildSmartArtA11y(data).nodes, revealedShapes)
3143
3143
  );
3144
3144
  enableSmartArtEditing(chrome, element, context);
3145
3145
  return wrapper;
3146
3146
  }
3147
3147
  if (data && nodes.length > 0) {
3148
3148
  const revealedNodes = revealedNodesFull;
3149
- const layout = chunkGCS5KBMR_cjs.computeSmartArtElementLayout(
3149
+ const layout = chunkKMNNTEGF_cjs.computeSmartArtElementLayout(
3150
3150
  data,
3151
3151
  revealedNodes,
3152
3152
  { width: element.width, height: element.height },
3153
- chunkGCS5KBMR_cjs.resolvePalette(data),
3153
+ chunkKMNNTEGF_cjs.resolvePalette(data),
3154
3154
  data.style ?? "flat",
3155
3155
  element.id
3156
3156
  );
@@ -3158,8 +3158,8 @@ var renderSmartArtSvg = (element, zIndex, context) => {
3158
3158
  buildSmartArtFallbackSvg(
3159
3159
  doc,
3160
3160
  layout,
3161
- chunkGCS5KBMR_cjs.buildSmartArtA11y(data).nodes,
3162
- chunkGCS5KBMR_cjs.flattenNodes(revealedNodes).map((node) => node.id)
3161
+ chunkKMNNTEGF_cjs.buildSmartArtA11y(data).nodes,
3162
+ chunkKMNNTEGF_cjs.flattenNodes(revealedNodes).map((node) => node.id)
3163
3163
  )
3164
3164
  );
3165
3165
  enableSmartArtEditing(chrome, element, context);
@@ -3182,17 +3182,17 @@ var renderSmartArtSvg = (element, zIndex, context) => {
3182
3182
  function buildDrawingShapesSvg(doc, elementId, data, a11yNodes, revealedShapes) {
3183
3183
  const allShapes = data.drawingShapes ?? [];
3184
3184
  const style = data.style ?? "flat";
3185
- const viewBox = chunkGCS5KBMR_cjs.computeDrawingViewBox(allShapes);
3186
- const rendered = chunkGCS5KBMR_cjs.projectDrawingShapes(
3185
+ const viewBox = chunkKMNNTEGF_cjs.computeDrawingViewBox(allShapes);
3186
+ const rendered = chunkKMNNTEGF_cjs.projectDrawingShapes(
3187
3187
  elementId,
3188
3188
  revealedShapes,
3189
3189
  viewBox,
3190
- chunkGCS5KBMR_cjs.resolvePalette(data),
3190
+ chunkKMNNTEGF_cjs.resolvePalette(data),
3191
3191
  style
3192
3192
  );
3193
- const shadow = chunkGCS5KBMR_cjs.styleShadowFilter(style);
3193
+ const shadow = chunkKMNNTEGF_cjs.styleShadowFilter(style);
3194
3194
  const labelsById = new Map(a11yNodes.map((node) => [node.id, node.label]));
3195
- const nodeIds = chunkGCS5KBMR_cjs.resolveRevealedDrawingShapeNodeIds(allShapes, revealedShapes, data.nodes);
3195
+ const nodeIds = chunkKMNNTEGF_cjs.resolveRevealedDrawingShapeNodeIds(allShapes, revealedShapes, data.nodes);
3196
3196
  const svg = createSvgEl(doc, "svg", {
3197
3197
  viewBox: `0 0 ${viewBox.width} ${viewBox.height}`,
3198
3198
  preserveAspectRatio: "xMidYMid meet"
@@ -3327,9 +3327,9 @@ function enableTableResize(container, table, element, context) {
3327
3327
  for (const handle of [...colHandles, ...rowHandles]) {
3328
3328
  handle.remove();
3329
3329
  }
3330
- const crossings = chunkGCS5KBMR_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
3330
+ const crossings = chunkKMNNTEGF_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
3331
3331
  const rowBounds = measureRowBoundaries(table);
3332
- colHandles = chunkGCS5KBMR_cjs.computeColumnBoundaries(tableData.columnWidths).map((leftPct, i) => {
3332
+ colHandles = chunkKMNNTEGF_cjs.computeColumnBoundaries(tableData.columnWidths).map((leftPct, i) => {
3333
3333
  const handle = createEl(doc, "div", "pptxv-table-resize-col", {
3334
3334
  position: "absolute",
3335
3335
  top: "0",
@@ -3339,7 +3339,7 @@ function enableTableResize(container, table, element, context) {
3339
3339
  zIndex: "10",
3340
3340
  pointerEvents: "none"
3341
3341
  });
3342
- const segments = chunkGCS5KBMR_cjs.columnHandleSegments(
3342
+ const segments = chunkKMNNTEGF_cjs.columnHandleSegments(
3343
3343
  crossings.columns[i] ?? [],
3344
3344
  rowBounds,
3345
3345
  table.offsetHeight
@@ -3369,7 +3369,7 @@ function enableTableResize(container, table, element, context) {
3369
3369
  zIndex: "10",
3370
3370
  pointerEvents: "none"
3371
3371
  });
3372
- const segments = chunkGCS5KBMR_cjs.rowHandleSegments(crossings.rows[i] ?? [], tableData.columnWidths);
3372
+ const segments = chunkKMNNTEGF_cjs.rowHandleSegments(crossings.rows[i] ?? [], tableData.columnWidths);
3373
3373
  for (const { leftPct, widthPct } of segments) {
3374
3374
  handle.appendChild(
3375
3375
  createEl(doc, "div", "pptxv-table-resize-segment", {
@@ -3413,14 +3413,14 @@ function enableTableResize(container, table, element, context) {
3413
3413
  const deltaProp = (event.clientX - active.startPos) / (rect.width || 1);
3414
3414
  context.onTableResizeColumns?.(
3415
3415
  element,
3416
- chunkGCS5KBMR_cjs.computeResizedColumnWidths(active.initialWidths, active.index, deltaProp)
3416
+ chunkKMNNTEGF_cjs.computeResizedColumnWidths(active.initialWidths, active.index, deltaProp)
3417
3417
  );
3418
3418
  } else if (event.clientY !== active.startPos && active.type === "row") {
3419
3419
  const deltaY = event.clientY - active.startPos;
3420
3420
  context.onTableResizeRow?.(
3421
3421
  element,
3422
3422
  active.index,
3423
- chunkGCS5KBMR_cjs.computeResizedRowHeight(active.initialRowHeight ?? chunkGCS5KBMR_cjs.DEFAULT_ROW_HEIGHT, deltaY)
3423
+ chunkKMNNTEGF_cjs.computeResizedRowHeight(active.initialRowHeight ?? chunkKMNNTEGF_cjs.DEFAULT_ROW_HEIGHT, deltaY)
3424
3424
  );
3425
3425
  }
3426
3426
  drawHandles();
@@ -3429,13 +3429,13 @@ function enableTableResize(container, table, element, context) {
3429
3429
  const rect = container.getBoundingClientRect();
3430
3430
  const localX = event.clientX - rect.left;
3431
3431
  const localY = event.clientY - rect.top;
3432
- const scaleY = chunkGCS5KBMR_cjs.getTableResizeScale(rect.height, container.offsetHeight);
3433
- const crossings = chunkGCS5KBMR_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
3432
+ const scaleY = chunkKMNNTEGF_cjs.getTableResizeScale(rect.height, container.offsetHeight);
3433
+ const crossings = chunkKMNNTEGF_cjs.computeTableMergeCrossings(tableData.rows, tableData.columnWidths.length);
3434
3434
  const rowBounds = measureRowBoundaries(table);
3435
- const colBoundaries = chunkGCS5KBMR_cjs.computeColumnBoundaries(tableData.columnWidths);
3435
+ const colBoundaries = chunkKMNNTEGF_cjs.computeColumnBoundaries(tableData.columnWidths);
3436
3436
  for (let i = 0; i < colBoundaries.length; i++) {
3437
3437
  const boundaryX = colBoundaries[i] / 100 * rect.width;
3438
- if (Math.abs(localX - boundaryX) <= HANDLE_ZONE && !chunkGCS5KBMR_cjs.isColumnBoundaryMergedAt(crossings, i, rowBounds, localY / scaleY)) {
3438
+ if (Math.abs(localX - boundaryX) <= HANDLE_ZONE && !chunkKMNNTEGF_cjs.isColumnBoundaryMergedAt(crossings, i, rowBounds, localY / scaleY)) {
3439
3439
  event.preventDefault();
3440
3440
  event.stopPropagation();
3441
3441
  doc.body.style.cursor = "col-resize";
@@ -3453,7 +3453,7 @@ function enableTableResize(container, table, element, context) {
3453
3453
  }
3454
3454
  }
3455
3455
  for (let i = 0; i < rowBounds.length; i++) {
3456
- if (Math.abs(localY - rowBounds[i] * scaleY) <= HANDLE_ZONE && !chunkGCS5KBMR_cjs.isRowBoundaryMergedAt(crossings, i, tableData.columnWidths, localX / (rect.width || 1))) {
3456
+ if (Math.abs(localY - rowBounds[i] * scaleY) <= HANDLE_ZONE && !chunkKMNNTEGF_cjs.isRowBoundaryMergedAt(crossings, i, tableData.columnWidths, localX / (rect.width || 1))) {
3457
3457
  event.preventDefault();
3458
3458
  event.stopPropagation();
3459
3459
  const tr = table.querySelectorAll("tbody > tr")[i];
@@ -3464,7 +3464,7 @@ function enableTableResize(container, table, element, context) {
3464
3464
  index: i,
3465
3465
  startPos: event.clientY,
3466
3466
  handleEl: rowHandles[i] ?? container,
3467
- initialRowHeight: tr?.offsetHeight ?? chunkGCS5KBMR_cjs.DEFAULT_ROW_HEIGHT
3467
+ initialRowHeight: tr?.offsetHeight ?? chunkKMNNTEGF_cjs.DEFAULT_ROW_HEIGHT
3468
3468
  };
3469
3469
  win.addEventListener("mousemove", onMouseMove);
3470
3470
  win.addEventListener("mouseup", onMouseUp);
@@ -3485,7 +3485,7 @@ var renderTableElement = (element, zIndex, context) => {
3485
3485
  }
3486
3486
  const doc = context.document;
3487
3487
  const container = createEl(doc, "div", "pptxv-element pptxv-table", {
3488
- ...chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex),
3488
+ ...chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex),
3489
3489
  overflow: "hidden"
3490
3490
  });
3491
3491
  container.dataset.elementId = element.id;
@@ -3498,7 +3498,7 @@ var renderTableElement = (element, zIndex, context) => {
3498
3498
  // font stack; all five bindings declare the same shared default here.
3499
3499
  fontFamily: chunkVFPVEVF4_cjs.DEFAULT_FONT_FAMILY,
3500
3500
  // `a:tblPr@rtl`: mirrors the column order for right-to-left decks.
3501
- ...chunkGCS5KBMR_cjs.tableContainerCss(tableData)
3501
+ ...chunkKMNNTEGF_cjs.tableContainerCss(tableData)
3502
3502
  });
3503
3503
  appendColgroup(doc, table, tableData.columnWidths);
3504
3504
  const tbody = doc.createElement("tbody");
@@ -3559,13 +3559,13 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
3559
3559
  if (cell.rowSpan && cell.rowSpan > 1) {
3560
3560
  td.rowSpan = cell.rowSpan;
3561
3561
  }
3562
- const style = chunkGCS5KBMR_cjs.tableCellCss(
3562
+ const style = chunkKMNNTEGF_cjs.tableCellCss(
3563
3563
  tableData,
3564
3564
  cell,
3565
3565
  { rowIndex, cellIndex, rowCount, columnCount },
3566
3566
  styleContext
3567
3567
  );
3568
- const patternFill = cell.style ? chunkGCS5KBMR_cjs.cellPatternFillCss(cell.style) : null;
3568
+ const patternFill = cell.style ? chunkKMNNTEGF_cjs.cellPatternFillCss(cell.style) : null;
3569
3569
  if (patternFill) {
3570
3570
  delete style["backgroundColor"];
3571
3571
  delete style["background"];
@@ -3578,7 +3578,7 @@ function renderCell(doc, tableData, cell, rowIndex, cellIndex, rowCount, columnC
3578
3578
  }
3579
3579
  applyStyleMap(td, CELL_BASE_STYLE);
3580
3580
  applyStyleMap(td, style);
3581
- const diagonals = chunkGCS5KBMR_cjs.getCellDiagonalBorders(
3581
+ const diagonals = chunkKMNNTEGF_cjs.getCellDiagonalBorders(
3582
3582
  cell.style,
3583
3583
  tableData,
3584
3584
  { rowIndex, cellIndex, rowCount, columnCount },
@@ -3622,7 +3622,7 @@ function renderDiagonalOverlay(doc, diagonals) {
3622
3622
  return svg;
3623
3623
  }
3624
3624
  function appendCellText(doc, td, cell) {
3625
- const blocks = chunkGCS5KBMR_cjs.cellParagraphBlocks(cell);
3625
+ const blocks = chunkKMNNTEGF_cjs.cellParagraphBlocks(cell);
3626
3626
  if (blocks) {
3627
3627
  for (const block of blocks) {
3628
3628
  const div = createEl(doc, "div", "pptxv-table-para", { display: "block", ...block.css });
@@ -3657,7 +3657,7 @@ function appendRuns(doc, parent, runs) {
3657
3657
  }
3658
3658
  const span = createEl(doc, "span", "pptxv-table-run", {
3659
3659
  position: "relative",
3660
- ...chunkGCS5KBMR_cjs.cellRunStyle(run)
3660
+ ...chunkKMNNTEGF_cjs.cellRunStyle(run)
3661
3661
  });
3662
3662
  span.textContent = run.text;
3663
3663
  parent.appendChild(span);
@@ -3671,8 +3671,8 @@ function registerTableChartRenderers(registry) {
3671
3671
  }
3672
3672
 
3673
3673
  // src/pptx/dom/glyph-outline-cache.ts
3674
- var glyphOutlineFontCache = new chunkGCS5KBMR_cjs.GlyphOutlineFontCache();
3675
- var getGlyphOutline = chunkGCS5KBMR_cjs.createGlyphOutlineLookup(glyphOutlineFontCache);
3674
+ var glyphOutlineFontCache = new chunkKMNNTEGF_cjs.GlyphOutlineFontCache();
3675
+ var getGlyphOutline = chunkKMNNTEGF_cjs.createGlyphOutlineLookup(glyphOutlineFontCache);
3676
3676
 
3677
3677
  // src/pptx/dom/elements/text-warp.ts
3678
3678
  function renderWarpedText(element, context) {
@@ -3684,12 +3684,12 @@ function renderWarpedText(element, context) {
3684
3684
  if (!preset || preset === "textNoShape" || preset === "textPlain") {
3685
3685
  return null;
3686
3686
  }
3687
- const paragraphs = chunkGCS5KBMR_cjs.groupIntoParagraphs(element);
3687
+ const paragraphs = chunkKMNNTEGF_cjs.groupIntoParagraphs(element);
3688
3688
  if (paragraphs.length === 0) {
3689
3689
  return null;
3690
3690
  }
3691
- if (!chunkGCS5KBMR_cjs.shouldUseSvgWarp(preset)) {
3692
- const transform = chunkGCS5KBMR_cjs.getWarpCssTransform(preset, style?.textWarpAdj, style?.textWarpAdj2);
3691
+ if (!chunkKMNNTEGF_cjs.shouldUseSvgWarp(preset)) {
3692
+ const transform = chunkKMNNTEGF_cjs.getWarpCssTransform(preset, style?.textWarpAdj, style?.textWarpAdj2);
3693
3693
  if (!transform) {
3694
3694
  return null;
3695
3695
  }
@@ -3717,7 +3717,7 @@ function renderWarpedText(element, context) {
3717
3717
  text.textContent = paragraphs.map((p) => p.segments.map((s) => s.text).join("")).join("\n");
3718
3718
  return text;
3719
3719
  }
3720
- if (chunkGCS5KBMR_cjs.hasGlyphEnvelope(preset)) {
3720
+ if (chunkKMNNTEGF_cjs.hasGlyphEnvelope(preset)) {
3721
3721
  return renderGlyphWarp(element, paragraphs, context);
3722
3722
  }
3723
3723
  return renderPathWarp(element, paragraphs, context);
@@ -3743,7 +3743,7 @@ function renderGlyphWarp(element, paragraphs, context) {
3743
3743
  });
3744
3744
  svg.setAttribute("class", "pptxv-wordart");
3745
3745
  svg.setAttribute("style", "position:absolute;inset:0;width:100%;height:100%;overflow:visible");
3746
- const perLine = chunkGCS5KBMR_cjs.buildGlyphEnvelopeBlock(
3746
+ const perLine = chunkKMNNTEGF_cjs.buildGlyphEnvelopeBlock(
3747
3747
  preset,
3748
3748
  paragraphs.map(
3749
3749
  (paragraph) => paragraph.segments.map((seg, i) => ({
@@ -3838,7 +3838,7 @@ function renderPathWarp(element, paragraphs, context) {
3838
3838
  defs.appendChild(
3839
3839
  createSvgEl(context.document, "path", {
3840
3840
  id,
3841
- d: chunkGCS5KBMR_cjs.buildWarpPath(
3841
+ d: chunkKMNNTEGF_cjs.buildWarpPath(
3842
3842
  preset,
3843
3843
  element.width,
3844
3844
  element.height,
@@ -3871,7 +3871,7 @@ function renderPathWarp(element, paragraphs, context) {
3871
3871
 
3872
3872
  // src/pptx/dom/elements/text-shape.ts
3873
3873
  var renderTextShapeElement = (element, zIndex, context) => {
3874
- const container = chunkGCS5KBMR_cjs.getContainerStyle(element, zIndex);
3874
+ const container = chunkKMNNTEGF_cjs.getContainerStyle(element, zIndex);
3875
3875
  const animState = context.presentationStates?.get(element.id);
3876
3876
  const shape = getShapeFillStrokeStyle(
3877
3877
  element,
@@ -3886,7 +3886,7 @@ var renderTextShapeElement = (element, zIndex, context) => {
3886
3886
  const el = createEl(context.document, "div", "pptxv-element pptxv-shape", merged);
3887
3887
  el.dataset.elementId = element.id;
3888
3888
  if (context.interactive && !context.presenting) {
3889
- const hitTargetStyle = chunkGCS5KBMR_cjs.elementHitTargetStyle(element);
3889
+ const hitTargetStyle = chunkKMNNTEGF_cjs.elementHitTargetStyle(element);
3890
3890
  if (hitTargetStyle) {
3891
3891
  const hitTarget = createEl(context.document, "div", void 0, hitTargetStyle);
3892
3892
  hitTarget.setAttribute("aria-hidden", "true");
@@ -3929,8 +3929,8 @@ var renderTextShapeElement = (element, zIndex, context) => {
3929
3929
  } else if (warped) {
3930
3930
  el.appendChild(warped);
3931
3931
  } else {
3932
- const linkedSegments = chunkGCS5KBMR_cjs.getOverflowSegments(element, context.slide?.elements);
3933
- const paragraphs = chunkGCS5KBMR_cjs.buildParagraphs(element, context.fieldContext, linkedSegments);
3932
+ const linkedSegments = chunkKMNNTEGF_cjs.getOverflowSegments(element, context.slide?.elements);
3933
+ const paragraphs = chunkKMNNTEGF_cjs.buildParagraphs(element, context.fieldContext, linkedSegments);
3934
3934
  const hasText = paragraphs.some((p) => p.runs.length > 0 || p.bulletMarker !== void 0);
3935
3935
  if (hasText) {
3936
3936
  el.appendChild(
@@ -3941,7 +3941,7 @@ var renderTextShapeElement = (element, zIndex, context) => {
3941
3941
  );
3942
3942
  } else {
3943
3943
  const mode = context.interactive && !context.presenting ? "edit" : "present";
3944
- const prompt = chunkGCS5KBMR_cjs.placeholderPromptDescriptor(element, mode);
3944
+ const prompt = chunkKMNNTEGF_cjs.placeholderPromptDescriptor(element, mode);
3945
3945
  if (prompt) {
3946
3946
  const hint = createEl(context.document, "div", "pptxv-placeholder-prompt", {
3947
3947
  ...getTextBlockStyle(element),
@@ -4106,11 +4106,11 @@ async function resolveImageUrls(handler, slides) {
4106
4106
 
4107
4107
  Object.defineProperty(exports, "buildEmbeddedFontStyles", {
4108
4108
  enumerable: true,
4109
- get: function () { return chunkGCS5KBMR_cjs.buildEmbeddedFontStyles; }
4109
+ get: function () { return chunkKMNNTEGF_cjs.buildEmbeddedFontStyles; }
4110
4110
  });
4111
4111
  Object.defineProperty(exports, "buildFieldSubstitutionContext", {
4112
4112
  enumerable: true,
4113
- get: function () { return chunkGCS5KBMR_cjs.buildFieldSubstitutionContext; }
4113
+ get: function () { return chunkKMNNTEGF_cjs.buildFieldSubstitutionContext; }
4114
4114
  });
4115
4115
  Object.defineProperty(exports, "renderChartViewModelSvg", {
4116
4116
  enumerable: true,