@silurus/ooxml 0.86.1 → 0.88.0

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 (72) hide show
  1. package/README.md +42 -2
  2. package/dist/assets/render-worker-1uPAxMZr.js +31 -0
  3. package/dist/assets/render-worker-BlvJybji.js +10 -0
  4. package/dist/assets/render-worker-CzmiJfFL.js +11 -0
  5. package/dist/{canvas-viewer-mechanics-DN5SqWGS.js → canvas-viewer-mechanics-DbLz0rYW.js} +75 -66
  6. package/dist/chart-ex.mjs +581 -616
  7. package/dist/cjk-fallback-bLI3z70h.js +46 -0
  8. package/dist/comment-ui-runtime-BsK8pmUT.js +2 -0
  9. package/dist/{comment-ui-runtime-lXwVOgjW.js → comment-ui-runtime-CWGqn5Vr.js} +5 -5
  10. package/dist/{comment-ui-runtime-DEtgcmj7.js → comment-ui-runtime-DcJOYlw-.js} +5 -5
  11. package/dist/{comments-CAn2A_Xh.js → comments-Diid5ujN.js} +1 -1
  12. package/dist/{document-pull-client-uopDjRde.js → document-pull-client-B9PTM-pL.js} +4693 -4621
  13. package/dist/{docx-wPzeF76A.js → docx-BF9WXrYH.js} +503 -388
  14. package/dist/docx.mjs +6 -6
  15. package/dist/docx_parser_bg.wasm +0 -0
  16. package/dist/{dom-interaction-boundary-CswB9Tzi.js → dom-interaction-boundary-Cnm8DSBN.js} +22 -19
  17. package/dist/{hyperlink-BR1NCO7S.js → hyperlink-Cxzhet30.js} +842 -829
  18. package/dist/index.mjs +3 -3
  19. package/dist/{line-distribute-IsUGfHXm.js → line-distribute-D1WNHKz_.js} +2 -2
  20. package/dist/math.mjs +2 -2
  21. package/dist/node.mjs +356 -352
  22. package/dist/plot-area-frame-DLTYKHNP.js +4354 -0
  23. package/dist/{pptx-BxJ_RBSY.js → pptx-DkyYBYoL.js} +444 -435
  24. package/dist/pptx.mjs +7 -7
  25. package/dist/pptx_parser_bg.wasm +0 -0
  26. package/dist/region-map.mjs +5 -5
  27. package/dist/{render-DEiun_AH.js → render-D3iqVKCo.js} +31 -29
  28. package/dist/{render-worker-host-Ba6Fchqr.js → render-worker-host-B5wQfB7U.js} +1 -1
  29. package/dist/{render-worker-host-BEfLZvSL.js → render-worker-host-D4123J27.js} +1 -1
  30. package/dist/{render-worker-host-C3xwtHnv.js → render-worker-host-Di3LxLc0.js} +1 -1
  31. package/dist/renderer-B4GZb5We.js +6492 -0
  32. package/dist/{resource-measurement-CclArDRs.js → resource-measurement-SHQCbkh2.js} +3 -3
  33. package/dist/{session-BuJL_xcp.js → session-BGq81gRQ.js} +98 -98
  34. package/dist/{slide-pull-client-Ck8wfRT_.js → slide-pull-client-DiPnm240.js} +767 -738
  35. package/dist/{three-d-YYghQndN.js → three-d-DJBl8g8M.js} +251 -435
  36. package/dist/three-d.mjs +998 -906
  37. package/dist/tiff.mjs +2 -2
  38. package/dist/types/chart-ex.d.ts +142 -4
  39. package/dist/types/docx.d.ts +155 -13
  40. package/dist/types/index.d.ts +131 -19
  41. package/dist/types/math.d.ts +1 -1
  42. package/dist/types/node.d.ts +120 -8
  43. package/dist/types/pptx.d.ts +123 -13
  44. package/dist/types/region-map.d.ts +142 -4
  45. package/dist/types/three-d.d.ts +142 -4
  46. package/dist/types/tiff.d.ts +1 -1
  47. package/dist/types/xlsx.d.ts +155 -13
  48. package/dist/{worksheet-pull-client-CAvuf22q.js → worksheet-pull-client-BM8ywvbu.js} +51 -51
  49. package/dist/{xlsx-Bblm5r1h.js → xlsx-C9NVjgaV.js} +1592 -1564
  50. package/dist/xlsx.mjs +6 -6
  51. package/dist/xlsx_parser_bg.wasm +0 -0
  52. package/package.json +1 -1
  53. package/dist/assets/render-worker-D21h5TGR.js +0 -10
  54. package/dist/assets/render-worker-Dsfekaht.js +0 -11
  55. package/dist/assets/render-worker-DxU7IrKo.js +0 -31
  56. package/dist/comment-ui-runtime-TLHustXJ.js +0 -2
  57. package/dist/plot-area-frame-D5hEOgkJ.js +0 -2903
  58. package/dist/renderer-XFSCOT6m.js +0 -5857
  59. /package/dist/{bounded-raw-part-cache-BfbSxRIL.js → bounded-raw-part-cache-Cg1BsSZQ.js} +0 -0
  60. /package/dist/{comment-occurrence-CqejEuts.js → comment-occurrence-C8Y2uoVr.js} +0 -0
  61. /package/dist/{delimited-text-worker-host-DcHj_JZt.js → delimited-text-worker-host-BVY-Ecni.js} +0 -0
  62. /package/dist/{highlight-rect-FuUSmL3a.js → highlight-rect-C5hkRqUr.js} +0 -0
  63. /package/dist/{line-metrics-CBbw80Ko.js → line-metrics-B60C86uh.js} +0 -0
  64. /package/dist/{mathjax-DS69BmJd.js → mathjax-DoyWZbSp.js} +0 -0
  65. /package/dist/{pixel-budget-Dgjw269h.js → pixel-budget-9P63Bsk5.js} +0 -0
  66. /package/dist/{read-only-comment-decoration-BTnWEeo5.js → read-only-comment-decoration-Dz7eTQ4d.js} +0 -0
  67. /package/dist/{read-only-comment-margin-plStyGfE.js → read-only-comment-margin-DkgzASAl.js} +0 -0
  68. /package/dist/{renderer-module-contract-Cu-GKuPd.js → renderer-module-contract-D91rkYHH.js} +0 -0
  69. /package/dist/{source-key-Ktb1GRE5.js → source-key-DIJG8BA0.js} +0 -0
  70. /package/dist/{transfer-mIj7E7NB.js → transfer-p6iCC2R7.js} +0 -0
  71. /package/dist/{units-EJdC96r6.js → units-BzZ0gAxs.js} +0 -0
  72. /package/dist/{visible-index-DPoQYSDt.js → visible-index-BgiHEc1z.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { at as e, dt as t, mt as n, pt as r, vt as i } from "./hyperlink-BR1NCO7S.js";
2
- import { an as a } from "./plot-area-frame-D5hEOgkJ.js";
3
- import { i as o } from "./pixel-budget-Dgjw269h.js";
1
+ import { at as e, dt as t, mt as n, pt as r, vt as i } from "./hyperlink-Cxzhet30.js";
2
+ import { wt as a } from "./plot-area-frame-DLTYKHNP.js";
3
+ import { i as o } from "./pixel-budget-9P63Bsk5.js";
4
4
  import { r as s } from "./raster-target-ojDdQizC.js";
5
5
  //#region packages/core/src/image/duotone-bitmap-by-path.ts
6
6
  function c(e, t) {
@@ -1,22 +1,22 @@
1
1
  import { t as e } from "./chunk-DmhlhrBa.js";
2
- import { a as t, u as n } from "./slide-pull-client-Ck8wfRT_.js";
3
- import { F as r, G as i, H as a, J as o, K as s, L as c, N as l, P as u, U as d, V as ee, W as f, X as p, Xt as m, Y as h, Z as g, cn as _, z as v } from "./hyperlink-BR1NCO7S.js";
4
- import { t as y } from "./transfer-mIj7E7NB.js";
2
+ import { F as t, G as n, H as r, J as i, K as a, L as o, N as s, P as c, Qt as l, U as u, V as d, W as f, X as p, Y as m, Z as h, un as g, z as _ } from "./hyperlink-Cxzhet30.js";
3
+ import { a as v, l as y } from "./slide-pull-client-DiPnm240.js";
4
+ import { t as b } from "./transfer-p6iCC2R7.js";
5
5
  //#region packages/pptx/src/slide-cursor-operation.ts
6
- function b(e) {
6
+ function x(e) {
7
7
  try {
8
- return a(e((e) => e.slide_cursor_resource_usage()));
8
+ return r(e((e) => e.slide_cursor_resource_usage()));
9
9
  } catch (e) {
10
10
  if (String(e).includes("slide cursor usage is unavailable")) return;
11
11
  throw e;
12
12
  }
13
13
  }
14
- function te(e, t, n, r, i) {
14
+ function ee(e, t, n, r, i) {
15
15
  let a, o;
16
16
  try {
17
17
  if (i) {
18
18
  if (!r) throw Error("slide payload is missing before acknowledgement");
19
- let t = i(n, r, b(e));
19
+ let t = i(n, r, x(e));
20
20
  typeof t == "function" ? a = t : t && ({rollback: a, commit: o} = t);
21
21
  }
22
22
  e((e) => e.acknowledge_slide(t.operationId, t.generation)), o?.();
@@ -29,8 +29,8 @@ function te(e, t, n, r, i) {
29
29
  }
30
30
  //#endregion
31
31
  //#region packages/pptx/src/slide-pull-worker.ts
32
- var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
33
- coordinatorGeneration = new r();
32
+ var te = "ooxml-pull-resetting", ne = "ooxml-pull-reset-failed", re = class {
33
+ coordinatorGeneration = new t();
34
34
  sessions = /* @__PURE__ */ new Map();
35
35
  pendingOpens = /* @__PURE__ */ new Map();
36
36
  operationTail = Promise.resolve();
@@ -45,7 +45,7 @@ var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
45
45
  return this.coordinatorGeneration;
46
46
  }
47
47
  reserveOpen(e) {
48
- if (this.assertReady(), x(e), this.pendingOpens.has(e.sessionId) || this.sessions.has(e.sessionId)) throw Error("slide pull session id is already reserved");
48
+ if (this.assertReady(), S(e), this.pendingOpens.has(e.sessionId) || this.sessions.has(e.sessionId)) throw Error("slide pull session id is already reserved");
49
49
  this.pendingOpens.set(e.sessionId, {
50
50
  identity: e,
51
51
  canceled: !1
@@ -61,14 +61,14 @@ var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
61
61
  if (this.assertReady(), this.resourceFailure) throw this.resourceFailure;
62
62
  if (!Number.isSafeInteger(e) || e < 0) throw RangeError("slide index must be a non-negative safe integer");
63
63
  let n = this.pendingOpens.get(t.sessionId);
64
- if (!n || !S(n.identity, t)) throw Error("slide pull session open reservation is stale or missing");
64
+ if (!n || !C(n.identity, t)) throw Error("slide pull session open reservation is stale or missing");
65
65
  let r, i = new Promise((e) => {
66
66
  r = e;
67
- }), a = this.operationTail.then(() => this.coordinator.enqueue(async () => {
67
+ }), o = this.operationTail.then(() => this.coordinator.enqueue(async () => {
68
68
  if (n.canceled) throw Error("slide pull session open was canceled");
69
- let i, a = !1, o = new u({
69
+ let i, o = !1, s = new c({
70
70
  ...t,
71
- maxByteCredit: m,
71
+ maxByteCredit: l,
72
72
  coordinator: this.coordinator,
73
73
  driver: {
74
74
  pull: (n) => {
@@ -76,38 +76,38 @@ var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
76
76
  try {
77
77
  r = this.executeArchive((r) => r.pull_slide(e, t.operationId, t.generation, n));
78
78
  } catch (e) {
79
- throw s(e, n, m) || (this.latchResourceFailure(e), e);
79
+ throw a(e, n, l) || (this.latchResourceFailure(e), e);
80
80
  }
81
- let o = y(r);
82
- return this.acceptSlide && (i = JSON.parse(new TextDecoder().decode(new Uint8Array(o)))), a = !0, {
83
- payload: o,
84
- byteLength: o.byteLength,
81
+ let s = b(r);
82
+ return this.acceptSlide && (i = JSON.parse(new TextDecoder().decode(new Uint8Array(s)))), o = !0, {
83
+ payload: s,
84
+ byteLength: s.byteLength,
85
85
  done: !0,
86
- transfer: [o]
86
+ transfer: [s]
87
87
  };
88
88
  },
89
89
  measureChunk: ({ payload: e }) => e.byteLength,
90
90
  acknowledge: () => {
91
- if (!a) throw Error("slide unit is not awaiting acknowledgement");
91
+ if (!o) throw Error("slide unit is not awaiting acknowledgement");
92
92
  try {
93
- te(this.executeArchive, t, e, i, this.acceptSlide);
93
+ ee(this.executeArchive, t, e, i, this.acceptSlide);
94
94
  } catch (e) {
95
95
  throw this.latchResourceFailure(e), e;
96
96
  }
97
- a = !1, i = void 0, this.sessions.delete(t.sessionId), r();
97
+ o = !1, i = void 0, this.sessions.delete(t.sessionId), r();
98
98
  },
99
99
  cancel: async () => {
100
100
  try {
101
101
  this.archive() && await this.executeArchive((e) => e.cancel_slide());
102
102
  } finally {
103
- i = void 0, a = !1, this.sessions.delete(t.sessionId), r();
103
+ i = void 0, o = !1, this.sessions.delete(t.sessionId), r();
104
104
  }
105
105
  },
106
106
  close: async () => {
107
107
  try {
108
108
  this.archive() && await this.executeArchive((e) => e.cancel_slide());
109
109
  } finally {
110
- i = void 0, a = !1, this.sessions.delete(t.sessionId), r();
110
+ i = void 0, o = !1, this.sessions.delete(t.sessionId), r();
111
111
  }
112
112
  },
113
113
  resourceUsage: () => {
@@ -120,13 +120,13 @@ var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
120
120
  }
121
121
  });
122
122
  this.sessions.set(t.sessionId, {
123
- host: o,
123
+ host: s,
124
124
  identity: t
125
125
  }), this.pendingOpens.delete(t.sessionId);
126
126
  }));
127
- this.operationTail = a.then(() => i, () => void 0);
127
+ this.operationTail = o.then(() => i, () => void 0);
128
128
  try {
129
- await a;
129
+ await o;
130
130
  } catch (e) {
131
131
  throw this.pendingOpens.delete(t.sessionId), r(), e;
132
132
  }
@@ -149,13 +149,13 @@ var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
149
149
  }
150
150
  dispatch(e, t) {
151
151
  if (this.lifecycleState !== "ready") return t(this.responseDuringReset(e)), Promise.resolve();
152
- let n = this.sessions.get(e.sessionId);
153
- if (n) return n.host.dispatch(e, t);
154
- let r = this.pendingOpens.get(e.sessionId);
155
- if (r && (e.kind === "cancel" || e.kind === "close")) {
156
- let n = S(r.identity, e);
157
- return n && (r.canceled = !0), t(n ? {
158
- protocol: l,
152
+ let r = this.sessions.get(e.sessionId);
153
+ if (r) return r.host.dispatch(e, t);
154
+ let i = this.pendingOpens.get(e.sessionId);
155
+ if (i && (e.kind === "cancel" || e.kind === "close")) {
156
+ let n = C(i.identity, e);
157
+ return n && (i.canceled = !0), t(n ? {
158
+ protocol: s,
159
159
  kind: "accepted",
160
160
  sessionId: e.sessionId,
161
161
  operationId: e.operationId,
@@ -165,7 +165,7 @@ var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
165
165
  } : this.staleLifecycleResponse(e)), Promise.resolve();
166
166
  }
167
167
  return e.kind === "cancel" || e.kind === "close" ? (t({
168
- protocol: l,
168
+ protocol: s,
169
169
  kind: "accepted",
170
170
  sessionId: e.sessionId,
171
171
  operationId: e.operationId,
@@ -173,28 +173,28 @@ var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
173
173
  requestId: e.requestId,
174
174
  command: e.kind
175
175
  }), Promise.resolve()) : (t({
176
- protocol: l,
176
+ protocol: s,
177
177
  kind: "error",
178
178
  sessionId: e.sessionId,
179
179
  operationId: e.operationId,
180
180
  generation: e.generation,
181
181
  requestId: e.requestId,
182
- error: i(/* @__PURE__ */ Error("slide pull session is not open"))
182
+ error: n(/* @__PURE__ */ Error("slide pull session is not open"))
183
183
  }), Promise.resolve());
184
184
  }
185
185
  async dispatchSafely(e, t) {
186
186
  try {
187
187
  await this.dispatch(e, t);
188
- } catch (n) {
188
+ } catch (r) {
189
189
  try {
190
190
  t({
191
- protocol: l,
191
+ protocol: s,
192
192
  kind: "error",
193
193
  sessionId: e.sessionId,
194
194
  operationId: e.operationId,
195
195
  generation: e.generation,
196
196
  requestId: e.requestId,
197
- error: i(n)
197
+ error: n(r)
198
198
  });
199
199
  } catch {}
200
200
  }
@@ -227,22 +227,22 @@ var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
227
227
  for (let { host: t, identity: n } of [...this.sessions.values()]) {
228
228
  let r;
229
229
  if (await t.dispatch({
230
- protocol: l,
230
+ protocol: s,
231
231
  kind: "close",
232
232
  ...n,
233
233
  requestId: e++
234
234
  }, (e) => {
235
- e.kind === "error" && (r = d(e.error));
235
+ e.kind === "error" && (r = u(e.error));
236
236
  }), r) throw r;
237
237
  }
238
- this.sessions.clear(), await this.operationTail, this.pendingOpens.clear(), this.archive() && await this.executeArchive((e) => e.close_presentation_session()), this.coordinatorGeneration = new r(), this.resourceFailure = void 0;
238
+ this.sessions.clear(), await this.operationTail, this.pendingOpens.clear(), this.archive() && await this.executeArchive((e) => e.close_presentation_session()), this.coordinatorGeneration = new t(), this.resourceFailure = void 0;
239
239
  }
240
240
  assertReady() {
241
241
  if (this.lifecycleState !== "ready") throw this.lifecycleError();
242
242
  }
243
243
  lifecycleError() {
244
244
  let e = this.lifecycleState === "reset-failed", t = /* @__PURE__ */ Error(e ? "slide pull worker reset failed; retry reset before new work" : "slide pull worker reset is in progress");
245
- return t.name = "PullSessionLifecycleError", Object.assign(t, { code: e ? re : ne });
245
+ return t.name = "PullSessionLifecycleError", Object.assign(t, { code: e ? ne : te });
246
246
  }
247
247
  captureResetIdentities() {
248
248
  for (let { identity: e } of this.sessions.values()) this.resetIdentities.set(e.sessionId, e);
@@ -251,8 +251,8 @@ var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
251
251
  responseDuringReset(e) {
252
252
  if (e.kind === "cancel" || e.kind === "close") {
253
253
  let t = this.resetIdentities.get(e.sessionId);
254
- return t && !S(t, e) ? this.staleLifecycleResponse(e) : {
255
- protocol: l,
254
+ return t && !C(t, e) ? this.staleLifecycleResponse(e) : {
255
+ protocol: s,
256
256
  kind: "accepted",
257
257
  sessionId: e.sessionId,
258
258
  operationId: e.operationId,
@@ -262,13 +262,13 @@ var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
262
262
  };
263
263
  }
264
264
  return {
265
- protocol: l,
265
+ protocol: s,
266
266
  kind: "error",
267
267
  sessionId: e.sessionId,
268
268
  operationId: e.operationId,
269
269
  generation: e.generation,
270
270
  requestId: e.requestId,
271
- error: i(this.lifecycleError())
271
+ error: n(this.lifecycleError())
272
272
  };
273
273
  }
274
274
  requireArchive() {
@@ -281,7 +281,7 @@ var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
281
281
  let t = this.sessions.get(e.sessionId);
282
282
  if (t) {
283
283
  await t.host.dispatch({
284
- protocol: l,
284
+ protocol: s,
285
285
  kind: "close",
286
286
  ...e,
287
287
  requestId: 1
@@ -289,18 +289,18 @@ var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
289
289
  return;
290
290
  }
291
291
  let n = this.pendingOpens.get(e.sessionId);
292
- n && S(n.identity, e) && (n.canceled = !0);
292
+ n && C(n.identity, e) && (n.canceled = !0);
293
293
  }
294
294
  readResourceUsage() {
295
- return b(this.executeArchive);
295
+ return x(this.executeArchive);
296
296
  }
297
297
  latchResourceFailure(e) {
298
- let t = e instanceof _ ? e : f(e);
298
+ let t = e instanceof g ? e : f(e);
299
299
  t && (this.resourceFailure ??= t);
300
300
  }
301
301
  staleLifecycleResponse(e) {
302
302
  return {
303
- protocol: l,
303
+ protocol: s,
304
304
  kind: "error",
305
305
  sessionId: e.sessionId,
306
306
  operationId: e.operationId,
@@ -314,24 +314,24 @@ var ne = "ooxml-pull-resetting", re = "ooxml-pull-reset-failed", ie = class {
314
314
  };
315
315
  }
316
316
  };
317
- function x(e) {
317
+ function S(e) {
318
318
  if (!Number.isSafeInteger(e.sessionId) || e.sessionId <= 0) throw RangeError("session id must be a positive safe integer");
319
319
  if (!Number.isSafeInteger(e.operationId) || e.operationId <= 0) throw RangeError("operation id must be a positive safe integer");
320
320
  if (!Number.isSafeInteger(e.generation) || e.generation <= 0) throw RangeError("generation must be a positive safe integer");
321
321
  }
322
- function S(e, t) {
322
+ function C(e, t) {
323
323
  return e.sessionId === t.sessionId && e.operationId === t.operationId && e.generation === t.generation;
324
324
  }
325
325
  //#endregion
326
326
  //#region packages/core/src/internal/wasm-runtime-generation.ts
327
- function ae(e) {
328
- return p(e) ? new o(`WASM parser trapped and was recycled: ${e instanceof Error ? e.message : String(e)}`) : null;
327
+ function ie(e) {
328
+ return p(e) ? new i(`WASM parser trapped and was recycled: ${e instanceof Error ? e.message : String(e)}`) : null;
329
329
  }
330
- var C = class {
330
+ var w = class {
331
331
  realm;
332
332
  live = /* @__PURE__ */ new Set();
333
333
  constructor(e, t) {
334
- this.realm = new g(() => e.initSync({ module: t }), () => e.reinit({ module_or_path: t }), ae), this.realm.onPoison((e) => {
334
+ this.realm = new h(() => e.initSync({ module: t }), () => e.reinit({ module_or_path: t }), ie), this.realm.onPoison((e) => {
335
335
  for (let t of this.live) t.poison(e);
336
336
  this.live.clear();
337
337
  });
@@ -341,7 +341,7 @@ var C = class {
341
341
  this.throwIfOpenAborted(t), await this.awaitReadyOrAbort(t), this.throwIfOpenAborted(t);
342
342
  let n = this.realm.tryRunReady(e);
343
343
  if (!n.current) continue;
344
- let r = new oe(this, n.value, n.generation);
344
+ let r = new ae(this, n.value, n.generation);
345
345
  if (this.live.add(r), t?.signal?.aborted) throw r.close(t.disposeOnAbort), t.abortError?.() ?? new DOMException("The operation was aborted", "AbortError");
346
346
  return r;
347
347
  }
@@ -373,7 +373,7 @@ var C = class {
373
373
  let n = e.detachForClose();
374
374
  this.live.delete(e), n && this.realm.run(() => t(n));
375
375
  }
376
- }, oe = class {
376
+ }, ae = class {
377
377
  archive;
378
378
  failure;
379
379
  proxy;
@@ -403,19 +403,19 @@ var C = class {
403
403
  }
404
404
  poison(e) {
405
405
  let t = this.archive;
406
- this.failure = e, this.archive = void 0, h(t);
406
+ this.failure = e, this.archive = void 0, m(t);
407
407
  }
408
- }, se = /* @__PURE__ */ e({
409
- PptxArchive: () => w,
408
+ }, T = /* @__PURE__ */ e({
409
+ PptxArchive: () => E,
410
410
  default: () => Y,
411
- extract_font: () => T,
412
- extract_image: () => E,
413
- extract_media: () => D,
411
+ extract_font: () => D,
412
+ extract_image: () => O,
413
+ extract_media: () => oe,
414
414
  initSync: () => ue,
415
- parse_pptx: () => O,
415
+ parse_pptx: () => se,
416
416
  pptx_to_markdown: () => ce,
417
417
  reinit: () => de
418
- }), w = class {
418
+ }), E = class {
419
419
  __destroy_into_raw() {
420
420
  let e = this.__wbg_ptr;
421
421
  return this.__wbg_ptr = 0, A.unregister(this), e;
@@ -503,26 +503,26 @@ var C = class {
503
503
  }
504
504
  }
505
505
  };
506
- Symbol.dispose && (w.prototype[Symbol.dispose] = w.prototype.free);
507
- function T(e, t, n, r) {
506
+ Symbol.dispose && (E.prototype[Symbol.dispose] = E.prototype.free);
507
+ function D(e, t, n, r) {
508
508
  let i = R(e, q.__wbindgen_malloc), a = K, o = z(t, q.__wbindgen_malloc, q.__wbindgen_realloc), s = K, c = q.extract_font(i, a, o, s, !L(n), L(n) ? BigInt(0) : n, !L(r), L(r) ? BigInt(0) : r);
509
509
  if (c[3]) throw B(c[2]);
510
510
  var l = j(c[0], c[1]).slice();
511
511
  return q.__wbindgen_free(c[0], c[1] * 1, 1), l;
512
512
  }
513
- function E(e, t, n, r) {
513
+ function O(e, t, n, r) {
514
514
  let i = R(e, q.__wbindgen_malloc), a = K, o = z(t, q.__wbindgen_malloc, q.__wbindgen_realloc), s = K, c = q.extract_image(i, a, o, s, !L(n), L(n) ? BigInt(0) : n, !L(r), L(r) ? BigInt(0) : r);
515
515
  if (c[3]) throw B(c[2]);
516
516
  var l = j(c[0], c[1]).slice();
517
517
  return q.__wbindgen_free(c[0], c[1] * 1, 1), l;
518
518
  }
519
- function D(e, t, n, r) {
519
+ function oe(e, t, n, r) {
520
520
  let i = R(e, q.__wbindgen_malloc), a = K, o = z(t, q.__wbindgen_malloc, q.__wbindgen_realloc), s = K, c = q.extract_media(i, a, o, s, !L(n), L(n) ? BigInt(0) : n, !L(r), L(r) ? BigInt(0) : r);
521
521
  if (c[3]) throw B(c[2]);
522
522
  var l = j(c[0], c[1]).slice();
523
523
  return q.__wbindgen_free(c[0], c[1] * 1, 1), l;
524
524
  }
525
- function O(e, t, n) {
525
+ function se(e, t, n) {
526
526
  let r = R(e, q.__wbindgen_malloc), i = K, a = q.parse_pptx(r, i, !L(t), L(t) ? BigInt(0) : t, !L(n), L(n) ? BigInt(0) : n);
527
527
  if (a[3]) throw B(a[2]);
528
528
  var o = j(a[0], a[1]).slice();
@@ -690,43 +690,43 @@ async function de(e) {
690
690
  //#region packages/pptx/src/internal/node-acquisition.ts
691
691
  var X, Z;
692
692
  function fe(e) {
693
- if (!Z) X = e, Z = new C(se, e);
693
+ if (!Z) X = e, Z = new w(T, e);
694
694
  else if (X !== e) throw Error("PPTX runtime was already initialized with another WebAssembly.Module");
695
695
  return Z;
696
696
  }
697
- async function pe(e, n, r = {}) {
698
- let i = v(r), a = new c({
699
- enabled: i.debug || i.onResourceMetrics !== void 0,
697
+ async function pe(e, t, n = {}) {
698
+ let r = _(n), i = new o({
699
+ enabled: r.debug || r.onResourceMetrics !== void 0,
700
700
  format: "pptx",
701
701
  mode: "node",
702
702
  scope: "session",
703
- policy: i.policy,
704
- onMetrics: i.onResourceMetrics,
705
- emitToConsole: i.debug
703
+ policy: r.policy,
704
+ onMetrics: r.onResourceMetrics,
705
+ emitToConsole: r.debug
706
706
  });
707
- a.setSourceBytes(e.byteLength);
708
- let o;
707
+ i.setSourceBytes(e.byteLength);
708
+ let a;
709
709
  try {
710
- Q(r.signal);
711
- let [s, c, l] = ee(i.policy), u = w;
712
- o = await fe(n).open(() => new u(e, s, c, l), {
713
- signal: r.signal,
710
+ Q(n.signal);
711
+ let [o, s, c] = d(r.policy), l = E;
712
+ a = await fe(t).open(() => new l(e, o, s, c), {
713
+ signal: n.signal,
714
714
  abortError: $,
715
715
  disposeOnAbort: (e) => e.free()
716
- }), Q(r.signal);
717
- let d = o.proxy, f = t(JSON.parse(new TextDecoder().decode(d.presentation_bootstrap())));
718
- return a.checkpoint("presentation bootstrap ready"), {
719
- archive: d,
716
+ }), Q(n.signal);
717
+ let u = a.proxy, f = v(JSON.parse(new TextDecoder().decode(u.presentation_bootstrap())));
718
+ return i.checkpoint("presentation bootstrap ready"), {
719
+ archive: u,
720
720
  bootstrap: f,
721
- metrics: a,
722
- closeArchive: () => o?.close((e) => e.free())
721
+ metrics: i,
722
+ closeArchive: () => a?.close((e) => e.free())
723
723
  };
724
724
  } catch (e) {
725
725
  try {
726
- o?.close((e) => e.free());
726
+ a?.close((e) => e.free());
727
727
  } catch {}
728
728
  let t = f(e) ?? e;
729
- throw a.fail(t), t;
729
+ throw i.fail(t), t;
730
730
  }
731
731
  }
732
732
  function Q(e) {
@@ -738,6 +738,6 @@ function $() {
738
738
  }
739
739
  //#endregion
740
740
  //#region packages/pptx/src/internal/session.ts
741
- var me = /* @__PURE__ */ e({ renderSlide: () => n });
741
+ var me = /* @__PURE__ */ e({ renderSlide: () => y });
742
742
  //#endregion
743
- export { b as a, ie as i, pe as n, C as r, me as t };
743
+ export { x as a, re as i, pe as n, w as r, me as t };