@silurus/ooxml 0.89.3 → 0.89.5

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.
Files changed (50) hide show
  1. package/dist/assets/{render-worker-CyUrUidp.js → render-worker-B5HWxkbU.js} +7 -7
  2. package/dist/assets/render-worker-CeSlHUkL.js +15 -0
  3. package/dist/assets/{render-worker-Bye3wDV9.js → render-worker-ph4iY7VS.js} +28 -28
  4. package/dist/{bounded-raw-part-cache-Bi_VqXmg.js → bounded-raw-part-cache-B8t03tSP.js} +740 -731
  5. package/dist/{canvas-viewer-mechanics-ycCX6v-z.js → canvas-viewer-mechanics-DI38gHNV.js} +1 -1
  6. package/dist/{comment-overlay-controller-CR5ySvki.js → comment-overlay-controller-Crm5Syhx.js} +2 -2
  7. package/dist/{comment-ui-runtime-CwTOCwA8.js → comment-ui-runtime-BfEPgl5r.js} +2 -2
  8. package/dist/{comment-ui-runtime-BWhLz4gq.js → comment-ui-runtime-u7zk49cg.js} +3 -3
  9. package/dist/{document-model-source-Csow9uxO.js → document-model-source-qsnWuGuH.js} +6 -6
  10. package/dist/{document-pull-client-CHpz0Q1p.js → document-pull-client-Ckq8THk6.js} +54 -53
  11. package/dist/{document-pull-worker-1ZJv9f9W.js → document-pull-worker-Bkewz-So.js} +2 -2
  12. package/dist/{docx-GXxH0AwW.js → docx-ChGrdRyp.js} +16 -16
  13. package/dist/{docx-D9E0vCq-.js → docx-DRojqjH-.js} +9 -9
  14. package/dist/{docx-model-source-aKx2gZH9.js → docx-model-source-D0dmXDOs.js} +6 -6
  15. package/dist/docx.mjs +3 -3
  16. package/dist/{drawingml-shape-BwELUfNW.js → drawingml-shape-BcXkRayC.js} +1 -1
  17. package/dist/{font-preload-demand-BuMy4iJ1.js → font-preload-demand-B6HPFxDp.js} +1 -1
  18. package/dist/{host-layout-measure-GU0oJ4Me.js → host-layout-measure-DP918TOq.js} +1 -1
  19. package/dist/index.mjs +3 -3
  20. package/dist/internal-companion.mjs +2 -2
  21. package/dist/{line-distribute-C_CJisnJ.js → line-distribute-DR9Qwd3u.js} +1 -1
  22. package/dist/{model-source-DLXFe4_2.js → model-source-DcI3vC00.js} +1 -1
  23. package/dist/{model-source-session-B3WVQCM5.js → model-source-session-BCteVilS.js} +2 -2
  24. package/dist/{model-source-session-BVZBHZ04.js → model-source-session-BlQWNyj2.js} +2 -2
  25. package/dist/{model-source-session-DfUgVpr1.js → model-source-session-D0LF49Ve.js} +2 -2
  26. package/dist/node.mjs +4 -4
  27. package/dist/{pptx-CLyebeF_.js → pptx-CfCiVlNB.js} +15 -15
  28. package/dist/{pptx-BD0jwWs6.js → pptx-SmjDGyub.js} +8 -8
  29. package/dist/{pptx-model-source-D_2mnSxI.js → pptx-model-source-B2Irk68a.js} +5 -5
  30. package/dist/pptx.mjs +4 -4
  31. package/dist/{presentation-model-source-rWZ3Y-S_.js → presentation-model-source-DL6duh5l.js} +5 -5
  32. package/dist/{render-Cs1bgbEm.js → render-CMUEAeHp.js} +2 -2
  33. package/dist/{render-worker-host-BR7n4xKy.js → render-worker-host-CtlBbau5.js} +1 -1
  34. package/dist/{render-worker-host-BxsA-yJo.js → render-worker-host-DSrgUCkT.js} +1 -1
  35. package/dist/{render-worker-host-CZC0WOn8.js → render-worker-host-DYUY1TuP.js} +1 -1
  36. package/dist/{renderer-DFDF48zw.js → renderer-BYt3nsdR.js} +4 -4
  37. package/dist/{resource-measurement-CTGrNAsD.js → resource-measurement-D2bu0Qfx.js} +1 -1
  38. package/dist/{session-B5CgMc2N.js → session-KIWcCCP2.js} +4 -4
  39. package/dist/{slide-pull-client-43mS9T70.js → slide-pull-client-BUuJQQVE.js} +48 -48
  40. package/dist/types/index.d.ts +4 -1
  41. package/dist/types/xlsx.d.ts +4 -1
  42. package/dist/{wasm-runtime-generation-BsWKRY7U.js → wasm-runtime-generation-BLweKv8r.js} +1 -1
  43. package/dist/{workbook-model-source-ChIQjX9a.js → workbook-model-source-CbEnWvU-.js} +6 -6
  44. package/dist/{worksheet-pull-client-D5zAevQv.js → worksheet-pull-client-Du0MuIro.js} +2 -2
  45. package/dist/{xlsx-DelYm4VZ.js → xlsx-CVVWeouT.js} +363 -331
  46. package/dist/{xlsx-S6orTmKI.js → xlsx-Deg8dBy8.js} +4 -4
  47. package/dist/{xlsx-model-source-Cm9ocDgT.js → xlsx-model-source-D2rRp5-N.js} +6 -6
  48. package/dist/xlsx.mjs +4 -4
  49. package/package.json +1 -1
  50. package/dist/assets/render-worker-BUa1gyCE.js +0 -15
@@ -1,9 +1,9 @@
1
- import { H as e, U as t, qt as n } from "./bounded-raw-part-cache-Bi_VqXmg.js";
2
- import { a as r, g as i, i as a, j as o, l as s, r as c } from "./document-pull-client-CHpz0Q1p.js";
1
+ import { H as e, U as t, qt as n } from "./bounded-raw-part-cache-B8t03tSP.js";
2
+ import { a as r, g as i, i as a, j as o, l as s, r as c } from "./document-pull-client-Ckq8THk6.js";
3
3
  import { r as l } from "./wasm-loader-KAOyLXzf.js";
4
- import { r as u } from "./document-pull-worker-1ZJv9f9W.js";
5
- import { i as d, t as f } from "./docx-D9E0vCq-.js";
6
- import { t as p } from "./model-source-DLXFe4_2.js";
4
+ import { r as u } from "./document-pull-worker-Bkewz-So.js";
5
+ import { i as d, t as f } from "./docx-DRojqjH-.js";
6
+ import { t as p } from "./model-source-DcI3vC00.js";
7
7
  var m = class extends f {
8
8
  constructor(...e) {
9
9
  super(...e);
@@ -67,7 +67,7 @@ function _(e) {
67
67
  return t;
68
68
  }
69
69
  async function v(e, n, r, i) {
70
- let { acquireDocxSessionFromArchive: a, validateDocxModelSourceArchive: o, validateDocxModelSourceViewDefaults: s } = await import("./model-source-session-B3WVQCM5.js"), c = await p(e, "docx", {
70
+ let { acquireDocxSessionFromArchive: a, validateDocxModelSourceArchive: o, validateDocxModelSourceViewDefaults: s } = await import("./model-source-session-BCteVilS.js"), c = await p(e, "docx", {
71
71
  ...n,
72
72
  source: n.legacyDoc
73
73
  }, o, (e) => t(e) ?? u(e));
package/dist/docx.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { vo as e, yo as t } from "./plot-area-frame-D3JtHvov.js";
2
- import { u as n } from "./bounded-raw-part-cache-Bi_VqXmg.js";
3
- import { a as r, c as i, d as a, f as o, i as s, n as c, o as l, p as u, r as d, s as f } from "./docx-GXxH0AwW.js";
2
+ import { u as n } from "./bounded-raw-part-cache-B8t03tSP.js";
3
+ import { a as r, c as i, d as a, f as o, i as s, n as c, o as l, p as u, r as d, s as f } from "./docx-ChGrdRyp.js";
4
4
  import { f as p, u as m } from "./pixel-budget-DI82Hn3R.js";
5
5
  import { i as h, t as g } from "./tiff-contract-DEd8CGuz.js";
6
- import { D as _ } from "./canvas-viewer-mechanics-ycCX6v-z.js";
6
+ import { D as _ } from "./canvas-viewer-mechanics-DI38gHNV.js";
7
7
  export { i as DocxDocument, d as DocxScrollViewer, s as DocxViewer, m as OoxmlDecodedImageLimitError, e as OoxmlError, t as OoxmlResourceLimitError, g as TiffDecodeError, _ as autoResize, l as buildDocxHighlightLayer, f as buildDocxTextLayer, p as isOoxmlDecodedImageLimitError, h as isTiffDecodeError, c as noteText, n as openExternalHyperlink, r as readDocxTextSelectionContext, o as resolveCommentAnchorRuns, u as resolveDocxCommentThreads, a as resolveRevisionAnchorRuns };
@@ -1,5 +1,5 @@
1
1
  import { ar as e, cr as t, fr as n, hr as r, or as i, pr as a, tr as o, vr as s } from "./plot-area-frame-D3JtHvov.js";
2
- import { At as c, Bt as l, Ct as u, Dt as d, Ft as f, Ht as p, It as m, Mt as h, Ot as g, St as _, Ut as v, Vt as y, Wt as b, jt as x, kt as S, zt as C } from "./bounded-raw-part-cache-Bi_VqXmg.js";
2
+ import { At as c, Bt as l, Ct as u, Dt as d, Ft as f, Ht as p, It as m, Mt as h, Ot as g, St as _, Ut as v, Vt as y, Wt as b, jt as x, kt as S, zt as C } from "./bounded-raw-part-cache-B8t03tSP.js";
3
3
  var w = new Set([
4
4
  "line",
5
5
  "straightconnector1",
@@ -1,4 +1,4 @@
1
- import { m as e } from "./slide-pull-client-43mS9T70.js";
1
+ import { m as e } from "./slide-pull-client-BUuJQQVE.js";
2
2
  import { Kr as t } from "./plot-area-frame-D3JtHvov.js";
3
3
  var n;
4
4
  function r() {
@@ -1,4 +1,4 @@
1
- import { a as e } from "./renderer-DFDF48zw.js";
1
+ import { a as e } from "./renderer-BYt3nsdR.js";
2
2
  function t(t, n) {
3
3
  return e(t.family, t.sizePt, void 0, !1, t.bold ? 700 : 400, t.italic ? "italic" : "normal", n);
4
4
  }
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./docx-GXxH0AwW.js";
2
- import { t } from "./pptx-CLyebeF_.js";
3
- import { t as n } from "./xlsx-DelYm4VZ.js";
1
+ import { t as e } from "./docx-ChGrdRyp.js";
2
+ import { t } from "./pptx-CfCiVlNB.js";
3
+ import { t as n } from "./xlsx-CVVWeouT.js";
4
4
  export { e as docx, t as pptx, n as xlsx };
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./model-source-COXegBNA.js";
2
- var t = "0.89.3", n = class extends Error {
2
+ var t = "0.89.5", n = class extends Error {
3
3
  constructor(n, r) {
4
4
  super(`Companion requires @silurus/ooxml ${n} (${r}); installed runtime is ${t} (${e})`), this.code = "companion-runtime-mismatch", this.name = "CompanionRuntimeMismatchError";
5
5
  }
6
6
  };
7
7
  function r(e, t) {
8
- if (e !== "0.89.3" || t !== "ooxml-model-source-module/v2") throw new n(e, t);
8
+ if (e !== "0.89.5" || t !== "ooxml-model-source-module/v2") throw new n(e, t);
9
9
  }
10
10
  export { n as CompanionRuntimeMismatchError, e as MODEL_SOURCE_MODULE_PROTOCOL, r as assertCompanionRuntime };
@@ -1,5 +1,5 @@
1
1
  import { Ao as e, ko as t } from "./plot-area-frame-D3JtHvov.js";
2
- import { Lt as n, Rt as r, an as i, in as a, sn as o, tn as s } from "./bounded-raw-part-cache-Bi_VqXmg.js";
2
+ import { Lt as n, Rt as r, an as i, in as a, sn as o, tn as s } from "./bounded-raw-part-cache-B8t03tSP.js";
3
3
  var c = /^\p{Cf}$/u, l = /^\s$/u, u = /^\p{M}$/u, d = /^\p{Script_Extensions=Arabic}$/u, f = /^(?=\p{Script=Arabic})\p{L}$/u;
4
4
  function p(e, t) {
5
5
  for (let n of t) if (!(l.test(n) || c.test(n))) switch (e) {
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./cfb-guard-BIaHdonq.js";
2
- import { U as t } from "./bounded-raw-part-cache-Bi_VqXmg.js";
2
+ import { U as t } from "./bounded-raw-part-cache-B8t03tSP.js";
3
3
  import { i as n, n as r, o as i } from "./model-source-COXegBNA.js";
4
4
  async function a(a, s, c, l, u = (e) => t(e) ?? e) {
5
5
  let d = a instanceof Uint8Array ? a : new Uint8Array(a), f = c.source === void 0 ? void 0 : i([c.source], s, d);
@@ -1,8 +1,8 @@
1
- import { N as e, U as t, j as n } from "./bounded-raw-part-cache-Bi_VqXmg.js";
1
+ import { N as e, U as t, j as n } from "./bounded-raw-part-cache-B8t03tSP.js";
2
2
  import { n as r } from "./abort-JztSoyw2.js";
3
3
  import { a as i } from "./model-source-COXegBNA.js";
4
4
  import { t as a } from "./in-process-pull-transport-BPJ7M0uC.js";
5
- import { n as o, r as s, t as c } from "./document-pull-worker-1ZJv9f9W.js";
5
+ import { n as o, r as s, t as c } from "./document-pull-worker-Bkewz-So.js";
6
6
  var l = [
7
7
  "open_document_cursor",
8
8
  "pull_document_chunk",
@@ -1,6 +1,6 @@
1
- import { B as e, N as t, U as n, j as r } from "./bounded-raw-part-cache-Bi_VqXmg.js";
1
+ import { B as e, N as t, U as n, j as r } from "./bounded-raw-part-cache-B8t03tSP.js";
2
2
  import { n as i } from "./abort-JztSoyw2.js";
3
- import { b as a } from "./worksheet-pull-client-D5zAevQv.js";
3
+ import { b as a } from "./worksheet-pull-client-Du0MuIro.js";
4
4
  import { a as o } from "./model-source-COXegBNA.js";
5
5
  import { t as s } from "./host-layout-Cz_lCuTZ.js";
6
6
  var c = [
@@ -1,5 +1,5 @@
1
- import { a as e } from "./slide-pull-client-43mS9T70.js";
2
- import { H as t, N as n, j as r } from "./bounded-raw-part-cache-Bi_VqXmg.js";
1
+ import { a as e } from "./slide-pull-client-BUuJQQVE.js";
2
+ import { H as t, N as n, j as r } from "./bounded-raw-part-cache-B8t03tSP.js";
3
3
  import { n as i } from "./abort-JztSoyw2.js";
4
4
  import { a } from "./model-source-COXegBNA.js";
5
5
  var o = [
package/dist/node.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { vo as e, yo as t } from "./plot-area-frame-D3JtHvov.js";
2
2
  import { f as n, u as r } from "./pixel-budget-DI82Hn3R.js";
3
- import { n as i, r as a } from "./pptx-BD0jwWs6.js";
4
- import { n as o, r as s } from "./docx-D9E0vCq-.js";
5
- import { n as c, r as l, t as u } from "./render-Cs1bgbEm.js";
6
- import { a as d, i as f, n as p, r as m } from "./xlsx-S6orTmKI.js";
3
+ import { n as i, r as a } from "./pptx-SmjDGyub.js";
4
+ import { n as o, r as s } from "./docx-DRojqjH-.js";
5
+ import { n as c, r as l, t as u } from "./render-CMUEAeHp.js";
6
+ import { a as d, i as f, n as p, r as m } from "./xlsx-Deg8dBy8.js";
7
7
  export { r as OoxmlDecodedImageLimitError, e as OoxmlError, t as OoxmlResourceLimitError, u as installImageBitmapShim, c as installOffscreenCanvasShim, n as isOoxmlDecodedImageLimitError, o as materializeDocxDocument, i as materializePptxPresentation, p as materializeXlsxWorkbook, m as materializeXlsxWorkbookIndex, f as materializeXlsxWorksheet, s as openDocxDocument, a as openPptxPresentation, d as openXlsxWorkbook, l as renderSlideNode };
@@ -1,15 +1,15 @@
1
1
  import { t as e } from "./chunk-D5OxutzX.js";
2
- import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./slide-pull-client-43mS9T70.js";
2
+ import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./slide-pull-client-BUuJQQVE.js";
3
3
  import { Aa as m, vo as h, yo as g } from "./plot-area-frame-D3JtHvov.js";
4
4
  import { n as _, t as ee } from "./cfb-guard-BIaHdonq.js";
5
- import { H as v, M as y, N as b, Tn as x, V as S, X as C, Xt as w, Y as T, Yt as te, Zt as E, fn as ne, hn as re, ht as ie, j as ae, n as oe, qt as se, st as ce, t as le, u as D, ut as ue } from "./bounded-raw-part-cache-Bi_VqXmg.js";
6
- import { C as de, D as fe, E as O, N as pe, O as me, P as k, S as he, T as A, _ as ge, a as _e, b as ve, c as ye, d as be, f as xe, g as Se, h as Ce, i as we, l as Te, m as Ee, n as De, o as Oe, p as ke, r as Ae, t as je, u as Me, v as Ne, w as j, x as Pe, y as Fe } from "./comment-overlay-controller-CR5ySvki.js";
5
+ import { H as v, M as y, N as b, Tn as x, V as S, X as C, Xt as w, Y as T, Yt as te, Zt as E, fn as ne, hn as re, j as ie, lt as ae, mt as oe, n as se, ot as ce, qt as le, t as ue, u as D } from "./bounded-raw-part-cache-B8t03tSP.js";
6
+ import { C as de, D as fe, E as O, N as pe, O as me, P as k, S as he, T as A, _ as ge, a as _e, b as ve, c as ye, d as be, f as xe, g as Se, h as Ce, i as we, l as Te, m as Ee, n as De, o as Oe, p as ke, r as Ae, t as je, u as Me, v as Ne, w as j, x as Pe, y as Fe } from "./comment-overlay-controller-Crm5Syhx.js";
7
7
  import { f as M, u as Ie } from "./pixel-budget-DI82Hn3R.js";
8
8
  import { i as Le, t as Re } from "./tiff-contract-DEd8CGuz.js";
9
- import { D as ze, E as Be, T as Ve, a as N, b as He, c as Ue, f as We, i as Ge, l as Ke, n as qe, o as P, p as Je, r as Ye, s as Xe, t as Ze, u as F, v as Qe, w as $e, x as et, y as tt } from "./canvas-viewer-mechanics-ycCX6v-z.js";
9
+ import { D as ze, E as Be, T as Ve, a as N, b as He, c as Ue, f as We, i as Ge, l as Ke, n as qe, o as P, p as Je, r as Ye, s as Xe, t as Ze, u as F, v as Qe, w as $e, x as et, y as tt } from "./canvas-viewer-mechanics-DI38gHNV.js";
10
10
  import { n as nt } from "./renderer-module-contract-BuTx2FWJ.js";
11
11
  import { t as rt } from "./visible-index-vN-4BNn7.js";
12
- import { n as it } from "./resource-measurement-CTGrNAsD.js";
12
+ import { n as it } from "./resource-measurement-D2bu0Qfx.js";
13
13
  function at(e, t) {
14
14
  let n = t.startsWith("/") ? [] : e.split("/").filter((e) => e !== "");
15
15
  for (let e of t.split("/")) if (e === "..") n.pop();
@@ -118,7 +118,7 @@ var ft = class extends de {
118
118
  }
119
119
  };
120
120
  async function pt(e) {
121
- return e ? (await import("./font-preload-demand-BuMy4iJ1.js")).collectSlideFontDemand : void 0;
121
+ return e ? (await import("./font-preload-demand-B6HPFxDp.js")).collectSlideFontDemand : void 0;
122
122
  }
123
123
  var mt = (e) => e >= "0" && e <= "9";
124
124
  function ht(e) {
@@ -466,7 +466,7 @@ var Vt = class {
466
466
  #o;
467
467
  constructor(e) {
468
468
  if (!Number.isSafeInteger(e.slideCount) || e.slideCount < 0) throw TypeError("slideCount must be a non-negative safe integer");
469
- this.#e = e.slideCount, this.#t = e.loadSlide, this.#n = new oe({
469
+ this.#e = e.slideCount, this.#t = e.loadSlide, this.#n = new se({
470
470
  maxEntries: e.maxCachedSlides,
471
471
  maxWeight: e.maxCachedStructuralBytes,
472
472
  measure: (e) => it(e).jsonBytes
@@ -818,7 +818,7 @@ var X = class e {
818
818
  _slidePullClient = null;
819
819
  _resourceFailure = null;
820
820
  _slidePartIndex = null;
821
- _rawParts = new le({
821
+ _rawParts = new ue({
822
822
  maxEntries: 64,
823
823
  maxBytes: re
824
824
  });
@@ -857,10 +857,10 @@ var X = class e {
857
857
  }
858
858
  static async load(t, n = {}) {
859
859
  if (n.legacyPpt !== void 0) {
860
- let { loadPptxModelSource: e } = await import("./presentation-model-source-rWZ3Y-S_.js");
860
+ let { loadPptxModelSource: e } = await import("./presentation-model-source-DL6duh5l.js");
861
861
  return e(t, n);
862
862
  }
863
- let r = se(n.cjkFallback), i = b(n), a = n.mode ?? "main", o = new ae({
863
+ let r = le(n.cjkFallback), i = b(n), a = n.mode ?? "main", o = new ie({
864
864
  enabled: !0,
865
865
  format: "pptx",
866
866
  mode: a,
@@ -877,7 +877,7 @@ var X = class e {
877
877
  s = await e.arrayBuffer();
878
878
  } else s = t;
879
879
  s = _(await ee(s, n.password)), o.setSourceBytes(s.byteLength), o.checkpoint("container ready");
880
- let c = a === "worker" ? (await import("./render-worker-host-CZC0WOn8.js")).createRenderWorker() : new Jt(), l = a === "worker" ? nt(n) : void 0, u;
880
+ let c = a === "worker" ? (await import("./render-worker-host-CtlBbau5.js")).createRenderWorker() : new Jt(), l = a === "worker" ? nt(n) : void 0, u;
881
881
  try {
882
882
  u = new e(c, a, n.wasmUrl), u._metrics = o, n.math && a === "worker" && !l?.math && console.warn("[ooxml] a custom math renderer cannot cross the worker boundary; equations will be skipped in mode: 'worker'. Use the math renderer from @silurus/ooxml/math."), n.threeD && a === "worker" && !l?.threeD && console.warn("[ooxml] a custom 3-D chart renderer cannot cross the worker boundary; charts use their 2-D family fallback in mode: 'worker'. Use the renderer from @silurus/ooxml/three-d."), u._cjkFallback = r, u._math = a === "worker" ? void 0 : n.math, u._threeD = a === "worker" ? void 0 : n.threeD, n.regionMap && a === "worker" && !l?.regionMap && console.warn("[ooxml] a custom Region Map renderer cannot cross the worker boundary; geospatial charts use the unsupported-chart placeholder in mode: 'worker'. Use the renderer from @silurus/ooxml/region-map."), u._regionMap = a === "worker" ? void 0 : n.regionMap, n.chartEx && a === "worker" && !l?.chartEx && console.warn("[ooxml] a custom ChartEx renderer cannot cross the worker boundary; ChartEx charts use the unsupported-chart placeholder in mode: 'worker'. Use the renderer from @silurus/ooxml/chart-ex."), u._chartEx = a === "worker" ? void 0 : n.chartEx, n.tiff && a === "worker" && !l?.tiff && console.warn("[ooxml] a custom TIFF codec cannot cross the worker boundary; recognized TIFF images will use an unavailable-image placeholder in mode: 'worker'. Use the codec from @silurus/ooxml/tiff to display them."), u._tiff = a === "worker" ? void 0 : n.tiff;
883
883
  let t = n.progressiveLayout ? {
@@ -1244,7 +1244,7 @@ var X = class e {
1244
1244
  try {
1245
1245
  if (t.onTextRun) for (let e of a.runs) t.onTextRun(e);
1246
1246
  } catch (e) {
1247
- throw ie(a.bitmap), e;
1247
+ throw oe(a.bitmap), e;
1248
1248
  }
1249
1249
  return a.bitmap;
1250
1250
  }
@@ -1403,7 +1403,7 @@ var X = class e {
1403
1403
  if (!t) throw Error("2D context not available");
1404
1404
  t.drawImage(a, 0, 0);
1405
1405
  } finally {
1406
- ie(a);
1406
+ oe(a);
1407
1407
  }
1408
1408
  } : () => this.renderSlide(e, t, {
1409
1409
  width: i,
@@ -1429,7 +1429,7 @@ var X = class e {
1429
1429
  destroy() {
1430
1430
  this._destroyed = !0, this._clearProgressiveWatchdog(), this._slidePullClient?.cancelAll(), this._bridge.terminate(), this._slides?.clear(), this._slides = null, this._slidePullClient = null, this._bootstrap = null, this._preflight = null, this._availableSlideCount = 0, this._layoutLifecycle.succeed(), this._layoutCompletion = null, this._progressive = null, this._parseRequestId = null, this._wakeLayoutWaiters(), this._resourceFailure = null, this._slidePartIndex = null, this._rawParts.clear(), this._googleFonts?.release(), this._googleFonts = null;
1431
1431
  for (let e of this._officeFontLoads.values()) for (let t of Bt(e)) t.then((e) => w(e.faces));
1432
- this._officeFontLoads.clear(), this._embeddedFontFaces.length > 0 && (k(this._embeddedFontFaces), this._embeddedFontFaces = []), this._embeddedFontAliases = /* @__PURE__ */ new Map(), this._embeddedFontAuthoredFamilies = /* @__PURE__ */ new Map(), this._embeddedFontTuples = /* @__PURE__ */ new Set(), ue(this._fetchImage), ce(this._fetchImage);
1432
+ this._officeFontLoads.clear(), this._embeddedFontFaces.length > 0 && (k(this._embeddedFontFaces), this._embeddedFontFaces = []), this._embeddedFontAliases = /* @__PURE__ */ new Map(), this._embeddedFontAuthoredFamilies = /* @__PURE__ */ new Map(), this._embeddedFontTuples = /* @__PURE__ */ new Set(), ae(this._fetchImage), ce(this._fetchImage);
1433
1433
  }
1434
1434
  };
1435
1435
  function un(e, t, n, r, i = {}) {
@@ -2194,7 +2194,7 @@ var gn = class {
2194
2194
  }
2195
2195
  }, yn = 12, bn;
2196
2196
  function xn() {
2197
- return bn ??= import("./comment-ui-runtime-CwTOCwA8.js");
2197
+ return bn ??= import("./comment-ui-runtime-BfEPgl5r.js");
2198
2198
  }
2199
2199
  var Sn = 440, Cn = 20, wn = Symbol("PptxScrollViewer.borrowedPresentation"), Tn = class e {
2200
2200
  _presentationOwner;
@@ -1,9 +1,9 @@
1
- import { t as e } from "./slide-pull-client-43mS9T70.js";
1
+ import { t as e } from "./slide-pull-client-BUuJQQVE.js";
2
2
  import { yo as t } from "./plot-area-frame-D3JtHvov.js";
3
- import { B as n, H as r, hn as i, qt as a, st as o, t as s, ut as c } from "./bounded-raw-part-cache-Bi_VqXmg.js";
3
+ import { B as n, H as r, hn as i, lt as a, ot as o, qt as s, t as c } from "./bounded-raw-part-cache-B8t03tSP.js";
4
4
  import { n as l } from "./abort-JztSoyw2.js";
5
5
  import { n as u, r as d, t as f } from "./wasm-loader-KAOyLXzf.js";
6
- import { i as p, n as m, r as h } from "./session-B5CgMc2N.js";
6
+ import { i as p, n as m, r as h } from "./session-KIWcCCP2.js";
7
7
  import { t as g } from "./in-process-pull-transport-BPJ7M0uC.js";
8
8
  var _ = "PPTX presentation session was aborted", v = f(() => u(import.meta.url, "pptx_parser_bg.wasm", "@silurus/ooxml-pptx/wasm-binary"));
9
9
  async function y(e, t = {}) {
@@ -11,10 +11,10 @@ async function y(e, t = {}) {
11
11
  }
12
12
  async function b(e, t = {}) {
13
13
  if (t.legacyPpt !== void 0) {
14
- let { openPptxSource: n } = await import("./pptx-model-source-D_2mnSxI.js");
14
+ let { openPptxSource: n } = await import("./pptx-model-source-B2Irk68a.js");
15
15
  return n(e, t, v);
16
16
  }
17
- let n = a(t.cjkFallback), r = await m(C(e), v(), t);
17
+ let n = s(t.cjkFallback), r = await m(C(e), v(), t);
18
18
  return new x(r.closeArchive, r.archive, r.bootstrap, r.metrics, t.signal, n);
19
19
  }
20
20
  var x = class {
@@ -39,7 +39,7 @@ var x = class {
39
39
  renderTail = Promise.resolve();
40
40
  fetchImage = (e, t) => this.getPartInternal(e, t, (t) => t.extract_image(e));
41
41
  fetchMedia = (e) => this.getPartInternal(e, "application/octet-stream", (t) => t.extract_media(e));
42
- rawParts = new s({
42
+ rawParts = new c({
43
43
  maxEntries: 64,
44
44
  maxBytes: i
45
45
  });
@@ -79,7 +79,7 @@ var x = class {
79
79
  async renderSlide(e, t, n) {
80
80
  return this.assertOpen(), this.enqueueRender(async () => {
81
81
  l(this.signal, _);
82
- let { renderSlideNode: r } = await import("./render-Cs1bgbEm.js").then((e) => e.i);
82
+ let { renderSlideNode: r } = await import("./render-CMUEAeHp.js").then((e) => e.i);
83
83
  await r(e, {
84
84
  slideWidth: this.slideWidth,
85
85
  slideHeight: this.slideHeight,
@@ -127,7 +127,7 @@ var x = class {
127
127
  }
128
128
  async release() {
129
129
  let e;
130
- await this.renderTail, c(this.fetchImage), o(this.fetchImage);
130
+ await this.renderTail, a(this.fetchImage), o(this.fetchImage);
131
131
  try {
132
132
  await this.slidePull.reset();
133
133
  } catch (t) {
@@ -1,7 +1,7 @@
1
- import { qt as e } from "./bounded-raw-part-cache-Bi_VqXmg.js";
2
- import { n as t } from "./session-B5CgMc2N.js";
3
- import { t as n } from "./pptx-BD0jwWs6.js";
4
- import { t as r } from "./model-source-DLXFe4_2.js";
1
+ import { qt as e } from "./bounded-raw-part-cache-B8t03tSP.js";
2
+ import { n as t } from "./session-KIWcCCP2.js";
3
+ import { t as n } from "./pptx-SmjDGyub.js";
4
+ import { t as r } from "./model-source-DcI3vC00.js";
5
5
  async function i(t, r, i) {
6
6
  let o = await a(t, r, i), s = new Proxy(o.archive, { get(e, t) {
7
7
  if (t === "extract_media" && !e.extract_media) return () => {
@@ -13,7 +13,7 @@ async function i(t, r, i) {
13
13
  return new n(o.closeArchive, s, o.bootstrap, o.metrics, r.signal, e(r.cjkFallback));
14
14
  }
15
15
  async function a(e, n, i) {
16
- let { acquirePptxSessionFromArchive: a, validatePptxModelSourceArchive: o, validatePptxModelSourceViewDefaults: s } = await import("./model-source-session-DfUgVpr1.js"), c = await r(e, "pptx", {
16
+ let { acquirePptxSessionFromArchive: a, validatePptxModelSourceArchive: o, validatePptxModelSourceViewDefaults: s } = await import("./model-source-session-D0LF49Ve.js"), c = await r(e, "pptx", {
17
17
  ...n,
18
18
  source: n.legacyPpt
19
19
  }, o);
package/dist/pptx.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { l as e } from "./slide-pull-client-43mS9T70.js";
1
+ import { l as e } from "./slide-pull-client-BUuJQQVE.js";
2
2
  import { vo as t, yo as n } from "./plot-area-frame-D3JtHvov.js";
3
- import { u as r } from "./bounded-raw-part-cache-Bi_VqXmg.js";
3
+ import { u as r } from "./bounded-raw-part-cache-B8t03tSP.js";
4
4
  import { f as i, u as a } from "./pixel-budget-DI82Hn3R.js";
5
5
  import { i as o, t as s } from "./tiff-contract-DEd8CGuz.js";
6
- import { D as c } from "./canvas-viewer-mechanics-ycCX6v-z.js";
7
- import { a as l, c as u, i as d, l as f, n as p, o as m } from "./pptx-CLyebeF_.js";
6
+ import { D as c } from "./canvas-viewer-mechanics-DI38gHNV.js";
7
+ import { a as l, c as u, i as d, l as f, n as p, o as m } from "./pptx-CfCiVlNB.js";
8
8
  export { a as OoxmlDecodedImageLimitError, t as OoxmlError, n as OoxmlResourceLimitError, m as PptxPresentation, p as PptxScrollViewer, d as PptxViewer, s as TiffDecodeError, c as autoResize, u as buildPptxHighlightLayer, f as buildPptxTextLayer, i as isOoxmlDecodedImageLimitError, o as isTiffDecodeError, r as openExternalHyperlink, l as readPptxTextSelectionContext, e as renderSlide };
@@ -1,8 +1,8 @@
1
- import { N as e, j as t, qt as n } from "./bounded-raw-part-cache-Bi_VqXmg.js";
2
- import { b as r } from "./comment-overlay-controller-CR5ySvki.js";
3
- import { T as i } from "./canvas-viewer-mechanics-ycCX6v-z.js";
1
+ import { N as e, j as t, qt as n } from "./bounded-raw-part-cache-B8t03tSP.js";
2
+ import { b as r } from "./comment-overlay-controller-Crm5Syhx.js";
3
+ import { T as i } from "./canvas-viewer-mechanics-DI38gHNV.js";
4
4
  import { n as a } from "./renderer-module-contract-BuTx2FWJ.js";
5
- import { o, s } from "./pptx-CLyebeF_.js";
5
+ import { o, s } from "./pptx-CfCiVlNB.js";
6
6
  import { n as c, o as l, r as u } from "./model-source-COXegBNA.js";
7
7
  import { t as d } from "./bundled-asset-url-BMJ8vNHP.js";
8
8
  async function f(u, d) {
@@ -30,7 +30,7 @@ async function f(u, d) {
30
30
  let _ = c(t, "pptx");
31
31
  try {
32
32
  g.setSourceBytes(e.byteLength), g.checkpoint("container ready");
33
- let t = f === "worker" ? (await import("./render-worker-host-CZC0WOn8.js")).createRenderWorker() : new (await (import("./worker-source-ZQE9C1j6.js"))).default(), c = p(t, _), l = f === "worker" ? a(d) : void 0, u;
33
+ let t = f === "worker" ? (await import("./render-worker-host-CtlBbau5.js")).createRenderWorker() : new (await (import("./worker-source-ZQE9C1j6.js"))).default(), c = p(t, _), l = f === "worker" ? a(d) : void 0, u;
34
34
  try {
35
35
  u = new o(c, f, d.wasmUrl);
36
36
  let t = u;
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./chunk-D5OxutzX.js";
2
- import { qt as t } from "./bounded-raw-part-cache-Bi_VqXmg.js";
2
+ import { qt as t } from "./bounded-raw-part-cache-B8t03tSP.js";
3
3
  var n = /* @__PURE__ */ e({
4
4
  installImageBitmapShim: () => a,
5
5
  installOffscreenCanvasShim: () => i,
@@ -46,7 +46,7 @@ function o(e, t) {
46
46
  return r = o.then(() => void 0, () => void 0), o;
47
47
  }
48
48
  async function s(e, n, r, i = {}) {
49
- let a = t(i.cjkFallback), { renderSlide: s } = await import("./session-B5CgMc2N.js").then((e) => e.t), c = n.slides[r];
49
+ let a = t(i.cjkFallback), { renderSlide: s } = await import("./session-KIWcCCP2.js").then((e) => e.t), c = n.slides[r];
50
50
  if (!c) throw Error(`Slide index ${r} out of range`);
51
51
  let l = i.width ?? 960, u = i.dpr ?? 2, d = i.fetchImage ?? (async () => new Blob([])), f = async () => {
52
52
  await s(e, c, n.slideWidth, n.slideHeight, {
@@ -1,4 +1,4 @@
1
- var e = "" + new URL("assets/render-worker-Bye3wDV9.js", import.meta.url).href;
1
+ var e = "" + new URL("assets/render-worker-B5HWxkbU.js", import.meta.url).href;
2
2
  function t() {
3
3
  return new Worker(e, { type: "module" });
4
4
  }
@@ -1,4 +1,4 @@
1
- var e = "" + new URL("assets/render-worker-BUa1gyCE.js", import.meta.url).href;
1
+ var e = "" + new URL("assets/render-worker-ph4iY7VS.js", import.meta.url).href;
2
2
  function t() {
3
3
  return new Worker(e, { type: "module" });
4
4
  }
@@ -1,4 +1,4 @@
1
- var e = "" + new URL("assets/render-worker-CyUrUidp.js", import.meta.url).href;
1
+ var e = "" + new URL("assets/render-worker-CeSlHUkL.js", import.meta.url).href;
2
2
  function t() {
3
3
  return new Worker(e, { type: "module" });
4
4
  }
@@ -1,9 +1,9 @@
1
1
  import { Aa as e, An as t, Ao as n, Br as r, Co as i, Dn as a, Do as o, Dr as s, En as c, Eo as l, Kr as u, Mn as d, On as f, Oo as p, So as m, Tn as h, Vr as g, Zr as _, _o as v, ao as y, ar as b, cr as x, do as S, ei as C, fo as w, fr as T, go as E, ja as D, jn as O, kn as k, ko as A, lo as j, mo as M, nr as N, oo as P, or as F, po as ee, pr as te, qr as I, so as L, u as R, uo as z, wn as ne, xr as B, yo as V } from "./plot-area-frame-D3JtHvov.js";
2
- import { $ as H, $t as U, C as W, En as G, Ft as re, Q as K, Qt as ie, X as ae, Z as oe, _ as q, at as se, b as J, bt as ce, cn as le, f as ue, g as de, gn as fe, h as pe, it as me, jt as he, o as ge, on as _e, p as ve, r as ye, rn as be, sn as xe, tn as Se, v as Ce, w as we, y as Te } from "./bounded-raw-part-cache-Bi_VqXmg.js";
2
+ import { $ as H, $t as U, C as W, En as G, Ft as re, Q as K, Qt as ie, X as ae, Z as oe, _ as q, at as se, b as J, bt as ce, cn as le, f as ue, g as de, gn as fe, h as pe, it as me, jt as he, o as ge, on as _e, p as ve, r as ye, rn as be, sn as xe, tn as Se, v as Ce, w as we, y as Te } from "./bounded-raw-part-cache-B8t03tSP.js";
3
3
  import { H as Ee, r as De } from "./renderer-xdugdcMd.js";
4
- import { r as Oe } from "./drawingml-shape-BwELUfNW.js";
5
- import { _ as ke, v as Ae } from "./worksheet-pull-client-D5zAevQv.js";
6
- import { _ as je, a as Me, c as Ne, d as Pe, g as Fe, h as Ie, i as Le, l as Re, m as ze, o as Be, p as Ve, s as He, u as Ue, v as We, y as Ge } from "./resource-measurement-CTGrNAsD.js";
4
+ import { r as Oe } from "./drawingml-shape-BcXkRayC.js";
5
+ import { _ as ke, v as Ae } from "./worksheet-pull-client-Du0MuIro.js";
6
+ import { _ as je, a as Me, c as Ne, d as Pe, g as Fe, h as Ie, i as Le, l as Re, m as ze, o as Be, p as Ve, s as He, u as Ue, v as We, y as Ge } from "./resource-measurement-D2bu0Qfx.js";
7
7
  import { c as Ke, m as qe, p as Je, s as Ye, t as Xe } from "./grid-geometry-CqTDvpDr.js";
8
8
  function Ze(e, t, n) {
9
9
  let { values: r } = n;
@@ -1,5 +1,5 @@
1
1
  import { _o as e } from "./plot-area-frame-D3JtHvov.js";
2
- import { C as t, Qt as n, b as r, g as i, h as a, on as o, sn as s, tn as c, w as l, x as u } from "./bounded-raw-part-cache-Bi_VqXmg.js";
2
+ import { C as t, Qt as n, b as r, g as i, h as a, on as o, sn as s, tn as c, w as l, x as u } from "./bounded-raw-part-cache-B8t03tSP.js";
3
3
  function d(e, t, n, r, i, a = 0) {
4
4
  let o = e.map((e) => e.width), s = (t) => {
5
5
  let n = 0;
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "./chunk-D5OxutzX.js";
2
- import { a as t, l as n } from "./slide-pull-client-43mS9T70.js";
2
+ import { a as t, l as n } from "./slide-pull-client-BUuJQQVE.js";
3
3
  import { yo as r } from "./plot-area-frame-D3JtHvov.js";
4
- import { B as i, D as a, F as o, G as s, H as c, N as l, O as u, U as d, V as f, j as p, k as m, mn as h, q as g } from "./bounded-raw-part-cache-Bi_VqXmg.js";
4
+ import { B as i, D as a, F as o, G as s, H as c, N as l, O as u, U as d, V as f, j as p, k as m, mn as h, q as g } from "./bounded-raw-part-cache-B8t03tSP.js";
5
5
  import { n as _, t as v } from "./abort-JztSoyw2.js";
6
- import { S as y } from "./worksheet-pull-client-D5zAevQv.js";
7
- import { t as b } from "./wasm-runtime-generation-BsWKRY7U.js";
6
+ import { S as y } from "./worksheet-pull-client-Du0MuIro.js";
7
+ import { t as b } from "./wasm-runtime-generation-BLweKv8r.js";
8
8
  function x(e) {
9
9
  try {
10
10
  return i(e((e) => e.slide_cursor_resource_usage()));