@silurus/ooxml 0.89.0 → 0.89.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/THIRD_PARTY_NOTICES.md +1 -1
  2. package/dist/assets/render-worker-C5G_Nr_A.js +35 -0
  3. package/dist/assets/render-worker-DQfWdNsm.js +16 -0
  4. package/dist/assets/render-worker-Ds7LjwU-.js +15 -0
  5. package/dist/bounded-raw-part-cache-CsnNptAy.js +33925 -0
  6. package/dist/{canvas-viewer-mechanics-DfQqRKkD.js → canvas-viewer-mechanics-BZ8QCrRi.js} +2 -2
  7. package/dist/{cfb-guard-9QTRTg7f.js → cfb-guard-dNeUiANF.js} +1 -1
  8. package/dist/chart-ex.mjs +477 -477
  9. package/dist/{comment-overlay-controller-B5_zGgG5.js → comment-overlay-controller-CBvQx-En.js} +16 -16
  10. package/dist/{comment-ui-runtime-D_sb2K6s.js → comment-ui-runtime-BKidRH36.js} +3 -3
  11. package/dist/{comment-ui-runtime-Jy-3goA9.js → comment-ui-runtime-C47QoDUy.js} +3 -3
  12. package/dist/{document-model-source-BKNrXjAL.js → document-model-source-MzFPrxt0.js} +44 -44
  13. package/dist/{document-pull-client-CxONDGbk.js → document-pull-client-BoJeuURD.js} +6102 -7994
  14. package/dist/{document-pull-worker-AMyXYpPq.js → document-pull-worker-CaP8XESP.js} +18 -18
  15. package/dist/{docx-D91ER1_S.js → docx-BN70UhvX.js} +24 -24
  16. package/dist/{docx-DhDnKEI6.js → docx-BRRtSvk3.js} +556 -556
  17. package/dist/{docx-model-source-CdrSt3hF.js → docx-model-source-CTO9iw_W.js} +12 -12
  18. package/dist/docx.mjs +4 -4
  19. package/dist/{drawingml-shape-ChcGZNd8.js → drawingml-shape-CHmq8kpM.js} +55 -55
  20. package/dist/{duotone-ekYik4ix.js → duotone-DN8P4aXe.js} +1 -1
  21. package/dist/{emf-UT6I8rVi.js → emf-CGFQIz6c.js} +60 -60
  22. package/dist/{font-preload-demand-CdJZUMCT.js → font-preload-demand-Dmy31xt-.js} +2 -2
  23. package/dist/{grid-geometry-uQOgViJU.js → grid-geometry-C3IG20ut.js} +1 -1
  24. package/dist/{host-layout-measure-CCEgaC_v.js → host-layout-measure-DsuQ2UJs.js} +1 -1
  25. package/dist/index.mjs +3 -3
  26. package/dist/internal-companion.mjs +2 -2
  27. package/dist/{line-distribute-CPOV6csk.js → line-distribute-Bu8psjGd.js} +153 -70
  28. package/dist/{model-source-DJGzDtGb.js → model-source-s5hRpk4w.js} +4 -4
  29. package/dist/{model-source-session-Bu9CHFHc.js → model-source-session-6fuaqbGs.js} +18 -18
  30. package/dist/{model-source-session-CDuijwv1.js → model-source-session-DqrR4XHR.js} +2 -2
  31. package/dist/{model-source-session-sKpNiIJI.js → model-source-session-cPJSF_Ak.js} +10 -10
  32. package/dist/node.mjs +5 -5
  33. package/dist/{bounded-raw-part-cache-B7JoC1CD.js → plot-area-frame-Bs_j4uu7.js} +15189 -37964
  34. package/dist/{pptx-C_uxLVKB.js → pptx-CaJ6ILnw.js} +9 -9
  35. package/dist/{pptx-CDP9dZHe.js → pptx-_BOGcBym.js} +58 -58
  36. package/dist/{pptx-model-source-O7LhpOjz.js → pptx-model-source-B_9afw9R.js} +5 -5
  37. package/dist/pptx.mjs +5 -5
  38. package/dist/{presentation-model-source-tmROzteR.js → presentation-model-source-CGHLyX32.js} +5 -5
  39. package/dist/region-map.mjs +53 -53
  40. package/dist/{render-CJVglUHl.js → render-CzbDzRKa.js} +2 -2
  41. package/dist/{render-worker-host-BseIaVvm.js → render-worker-host-B1u6BOUd.js} +1 -1
  42. package/dist/{render-worker-host-CyxPU4JU.js → render-worker-host-C-EECo68.js} +1 -1
  43. package/dist/{render-worker-host-aF6aWkC0.js → render-worker-host-DDqZTCVf.js} +1 -1
  44. package/dist/renderer-CD2cvVAF.js +5823 -0
  45. package/dist/{renderer-CkGLj0CC.js → renderer-DRoeb14O.js} +696 -696
  46. package/dist/{resource-measurement-mXw-WjMF.js → resource-measurement-Dhhm7P_l.js} +162 -161
  47. package/dist/{session-Csv9maad.js → session-XPmC0CUd.js} +176 -176
  48. package/dist/{slide-pull-client-DRZYwBTu.js → slide-pull-client-tq7U_fYg.js} +1454 -1484
  49. package/dist/{three-d-BK5siJgJ.js → three-d-BKwNPAP4.js} +107 -107
  50. package/dist/three-d.mjs +625 -625
  51. package/dist/{wasm-runtime-generation-DX4y0Ecl.js → wasm-runtime-generation-D6TKZdNb.js} +4 -4
  52. package/dist/{workbook-model-source-BTC4ISTS.js → workbook-model-source-BIGrfZy6.js} +6 -6
  53. package/dist/worker-source-DrwhR9fw.js +22 -0
  54. package/dist/{worksheet-pull-client-CkHgbtyM.js → worksheet-pull-client-ClvPO_Jf.js} +74 -74
  55. package/dist/{xlsx-CpSDPAEU.js → xlsx-CsmREBaZ.js} +430 -420
  56. package/dist/{xlsx-D5569TPf.js → xlsx-DmHfeNNp.js} +24 -24
  57. package/dist/{xlsx-model-source-DPSkjFic.js → xlsx-model-source-D1flORqy.js} +55 -55
  58. package/dist/xlsx.mjs +5 -5
  59. package/package.json +1 -1
  60. package/dist/assets/render-worker-CUOU6mL2.js +0 -16
  61. package/dist/assets/render-worker-DOqrFhSU.js +0 -15
  62. package/dist/assets/render-worker-DvWUdZUN.js +0 -35
  63. package/dist/plot-area-frame-CaJFvZ7p.js +0 -8502
  64. package/dist/renderer-Czw1cCC7.js +0 -5823
  65. package/dist/worker-source-I1cIYBel.js +0 -22
@@ -1,6 +1,6 @@
1
- import { $a as e } from "./plot-area-frame-CaJFvZ7p.js";
2
- import { A as t, En as n, H as r, Tn as i, Y as a, j as o, k as s, q as c } from "./bounded-raw-part-cache-B7JoC1CD.js";
3
- import { S as l } from "./worksheet-pull-client-CkHgbtyM.js";
1
+ import { vo as e } from "./plot-area-frame-Bs_j4uu7.js";
2
+ import { B as t, D as n, G as r, O as i, k as a, ln as o, q as s, un as c } from "./bounded-raw-part-cache-CsnNptAy.js";
3
+ import { S as l } from "./worksheet-pull-client-ClvPO_Jf.js";
4
4
  //#region packages/docx/src/internal/parser-errors.ts
5
5
  var u = "OOXML_DOCX_ILVL:";
6
6
  function d(t) {
@@ -27,12 +27,12 @@ function p(e) {
27
27
  //#endregion
28
28
  //#region packages/docx/src/document-pull-worker.ts
29
29
  function m(e) {
30
- let t = e((e) => e.document_cursor_resource_usage?.());
31
- return t ? r(t) : void 0;
30
+ let n = e((e) => e.document_cursor_resource_usage?.());
31
+ return n ? t(n) : void 0;
32
32
  }
33
- var h = Math.max(i, n), g = class {
33
+ var h = Math.max(o, c), g = class {
34
34
  archive;
35
- coordinator = new o();
35
+ coordinator = new a();
36
36
  host = null;
37
37
  identity = null;
38
38
  executeArchive;
@@ -44,18 +44,18 @@ var h = Math.max(i, n), g = class {
44
44
  this.executeArchive((t) => {
45
45
  t.open_document_cursor(e.operationId, e.generation);
46
46
  });
47
- let n = 0;
48
- this.identity = e, this.host = new t({
47
+ let t = 0;
48
+ this.identity = e, this.host = new i({
49
49
  ...e,
50
50
  maxByteCredit: h,
51
51
  coordinator: this.coordinator,
52
52
  driver: {
53
- pull: (t) => {
53
+ pull: (n) => {
54
54
  let r;
55
55
  try {
56
- r = this.executeArchive((r) => r.pull_document_chunk(n, e.operationId, e.generation, t));
56
+ r = this.executeArchive((r) => r.pull_document_chunk(t, e.operationId, e.generation, n));
57
57
  } catch (e) {
58
- throw a(e, t, h) || e;
58
+ throw s(e, n, h) || e;
59
59
  }
60
60
  let i = l(r);
61
61
  return {
@@ -66,9 +66,9 @@ var h = Math.max(i, n), g = class {
66
66
  };
67
67
  },
68
68
  measureChunk: ({ payload: e }) => e.byteLength,
69
- acknowledge: (t) => {
70
- if (t !== n) throw Error("DOCX document acknowledgement sequence mismatch");
71
- this.executeArchive((t) => t.acknowledge_document_chunk(n, e.operationId, e.generation)), n += 1;
69
+ acknowledge: (n) => {
70
+ if (n !== t) throw Error("DOCX document acknowledgement sequence mismatch");
71
+ this.executeArchive((n) => n.acknowledge_document_chunk(t, e.operationId, e.generation)), t += 1;
72
72
  },
73
73
  cancel: () => this.executeArchive((e) => e.cancel_document_cursor()),
74
74
  close: () => this.executeArchive((e) => e.close_document_session()),
@@ -78,20 +78,20 @@ var h = Math.max(i, n), g = class {
78
78
  }
79
79
  dispatch(e, t) {
80
80
  return !this.host || !this.identity ? (t({
81
- protocol: s,
81
+ protocol: n,
82
82
  kind: "error",
83
83
  sessionId: e.sessionId,
84
84
  operationId: e.operationId,
85
85
  generation: e.generation,
86
86
  requestId: e.requestId,
87
- error: c(/* @__PURE__ */ Error("DOCX document pull session is not open"))
87
+ error: r(/* @__PURE__ */ Error("DOCX document pull session is not open"))
88
88
  }), Promise.resolve()) : this.host.dispatch(e, t);
89
89
  }
90
90
  async reset() {
91
91
  if (this.host) try {
92
92
  this.archive() && this.executeArchive((e) => e.close_document_session());
93
93
  } finally {
94
- this.host = null, this.identity = null, this.coordinator = new o();
94
+ this.host = null, this.identity = null, this.coordinator = new a();
95
95
  }
96
96
  }
97
97
  requireArchive() {
@@ -1,13 +1,13 @@
1
1
  import { t as e } from "./chunk-Dy4uBu1J.js";
2
- import { eo as t } from "./plot-area-frame-CaJFvZ7p.js";
3
- import { F as n, G as r, H as i, L as a, N as o, W as s, cn as c, pt as l, ut as u } from "./bounded-raw-part-cache-B7JoC1CD.js";
4
- import { a as d, c as f, g as p, i as m, l as h, r as g } from "./document-pull-client-CxONDGbk.js";
2
+ import { yo as t } from "./plot-area-frame-Bs_j4uu7.js";
3
+ import { B as n, F as r, H as i, N as a, U as o, j as s, qt as c, st as l, ut as u } from "./bounded-raw-part-cache-CsnNptAy.js";
4
+ import { a as d, c as f, g as p, i as m, l as h, r as g } from "./document-pull-client-BoJeuURD.js";
5
5
  import { n as _, t as ee } from "./abort-VrnK7mdP.js";
6
6
  import { n as v, r as te, t as y } from "./wasm-loader-rlgHmcSv.js";
7
- import { t as b } from "./wasm-runtime-generation-DX4y0Ecl.js";
7
+ import { t as b } from "./wasm-runtime-generation-D6TKZdNb.js";
8
8
  import { t as x } from "./in-process-pull-transport-DuXcPZng.js";
9
- import { n as S, r as ne, t as re } from "./document-pull-worker-AMyXYpPq.js";
10
- import { a as ie } from "./render-CJVglUHl.js";
9
+ import { n as S, r as ne, t as re } from "./document-pull-worker-CaP8XESP.js";
10
+ import { a as ie } from "./render-CzbDzRKa.js";
11
11
  //#region packages/docx/src/wasm/docx_parser.js
12
12
  var C = /* @__PURE__ */ e({
13
13
  DocxArchive: () => w,
@@ -270,8 +270,8 @@ async function ce(e) {
270
270
  //#endregion
271
271
  //#region packages/docx/src/internal/node-acquisition.ts
272
272
  var J = "DOCX document session was aborted", le = b(C, "DOCX");
273
- async function Y(e, t, i, s) {
274
- let c = n(i), l = new o({
273
+ async function Y(e, t, n, i) {
274
+ let c = a(n), l = new s({
275
275
  enabled: c.debug || c.onResourceMetrics !== void 0,
276
276
  format: "docx",
277
277
  mode: "node",
@@ -283,13 +283,13 @@ async function Y(e, t, i, s) {
283
283
  l.setSourceBytes(e.byteLength);
284
284
  let u, d, f;
285
285
  try {
286
- _(i.signal, J);
287
- let [n, r, o] = a(c.policy), p = w;
288
- u = await le(t).open(() => new p(e, n, r, o), {
289
- signal: i.signal,
286
+ _(n.signal, J);
287
+ let [a, o, s] = r(c.policy), p = w;
288
+ u = await le(t).open(() => new p(e, a, o, s), {
289
+ signal: n.signal,
290
290
  abortError: () => ee(J),
291
291
  disposeOnAbort: (e) => e.free()
292
- }), _(i.signal, J);
292
+ }), _(n.signal, J);
293
293
  let m = u.proxy;
294
294
  l.checkpoint("container ready"), d = new re(() => m);
295
295
  let h = {
@@ -298,8 +298,8 @@ async function Y(e, t, i, s) {
298
298
  generation: 1
299
299
  };
300
300
  d.open(h), f = new x((e, t) => d?.dispatch(e, t), () => void 0);
301
- let g, v = await s(f, h, {
302
- signal: i.signal,
301
+ let g, v = await i(f, h, {
302
+ signal: n.signal,
303
303
  onUsage: (e) => {
304
304
  g = e, l.observeUsage(e);
305
305
  }
@@ -316,7 +316,7 @@ async function Y(e, t, i, s) {
316
316
  try {
317
317
  u?.close((e) => e.free());
318
318
  } catch {}
319
- let t = r(e) ?? ne(e);
319
+ let t = o(e) ?? ne(e);
320
320
  throw l.fail(t), t;
321
321
  }
322
322
  }
@@ -326,7 +326,7 @@ var X = "DOCX document session was aborted", Z = y(() => v(import.meta.url, "doc
326
326
  async function ue(e, t) {
327
327
  if (!t?.factory) throw TypeError("openDocxDocument requires a canvas factory");
328
328
  if (t.legacyDoc !== void 0) {
329
- let { openDocxSource: n } = await import("./docx-model-source-CdrSt3hF.js");
329
+ let { openDocxSource: n } = await import("./docx-model-source-CTO9iw_W.js");
330
330
  return n(e, t, Z);
331
331
  }
332
332
  let n = c(t.cjkFallback), r = await Y($(e), Z(), t, (e, t, n) => g(e, t, n));
@@ -342,13 +342,13 @@ async function ue(e, t) {
342
342
  try {
343
343
  r.closeArchive();
344
344
  } catch {}
345
- let t = s(e) ?? e;
345
+ let t = i(e) ?? e;
346
346
  throw r.metrics.fail(t), t;
347
347
  }
348
348
  }
349
349
  async function de(e, t = {}) {
350
350
  if (t.legacyDoc !== void 0) {
351
- let { materializeDocxSource: n } = await import("./docx-model-source-CdrSt3hF.js");
351
+ let { materializeDocxSource: n } = await import("./docx-model-source-CTO9iw_W.js");
352
352
  return n(e, t, Z);
353
353
  }
354
354
  return te(async () => {
@@ -409,7 +409,7 @@ var Q = class {
409
409
  }
410
410
  refreshResourceUsage() {
411
411
  try {
412
- this.lastResourceUsage = i(this.archive.resource_usage()), this.metrics.observeUsage(this.lastResourceUsage);
412
+ this.lastResourceUsage = n(this.archive.resource_usage()), this.metrics.observeUsage(this.lastResourceUsage);
413
413
  } catch {}
414
414
  return this.lastResourceUsage;
415
415
  }
@@ -433,7 +433,7 @@ var Q = class {
433
433
  fetchImage: this.fetchImage
434
434
  })), _(this.signal, X), r;
435
435
  }).catch((e) => {
436
- let n = s(e) ?? e;
436
+ let n = i(e) ?? e;
437
437
  throw n instanceof t && (this.resourceFailure ??= n), this.metrics.fail(n), n;
438
438
  }));
439
439
  }
@@ -452,7 +452,7 @@ var Q = class {
452
452
  };
453
453
  }
454
454
  } catch (e) {
455
- throw t = s(e) ?? e, t;
455
+ throw t = i(e) ?? e, t;
456
456
  } finally {
457
457
  try {
458
458
  await this.close();
@@ -469,11 +469,11 @@ var Q = class {
469
469
  return this.renderTail = t.then(() => void 0, () => void 0), t;
470
470
  }
471
471
  async release() {
472
- await this.renderTail, l(this.fetchImage), u(this.fetchImage), this.state = null;
472
+ await this.renderTail, u(this.fetchImage), l(this.fetchImage), this.state = null;
473
473
  try {
474
474
  this.closeArchive();
475
475
  } catch (e) {
476
- let t = s(e) ?? e;
476
+ let t = i(e) ?? e;
477
477
  throw this.metrics.fail(t), t;
478
478
  }
479
479
  this.metrics.checkpoint("document session closed", this.lastResourceUsage), this.metrics.succeed({ pages: this.pageCount });