@silurus/ooxml 0.87.0 → 0.89.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 (128) hide show
  1. package/README.md +118 -23
  2. package/THIRD_PARTY_NOTICES.md +7 -6
  3. package/dist/abort-VrnK7mdP.js +10 -0
  4. package/dist/assets/render-worker-CUOU6mL2.js +16 -0
  5. package/dist/assets/render-worker-DOqrFhSU.js +15 -0
  6. package/dist/assets/render-worker-DvWUdZUN.js +35 -0
  7. package/dist/bounded-raw-part-cache-B7JoC1CD.js +64586 -0
  8. package/dist/bundled-asset-url-E2nXURF9.js +15 -0
  9. package/dist/canvas-viewer-mechanics-DfQqRKkD.js +675 -0
  10. package/dist/cfb-guard-9QTRTg7f.js +528 -0
  11. package/dist/chart-ex.mjs +708 -739
  12. package/dist/comment-overlay-controller-B5_zGgG5.js +994 -0
  13. package/dist/comment-ui-runtime-B7ZvovcS.js +2 -0
  14. package/dist/{comment-ui-runtime-DcJOYlw-.js → comment-ui-runtime-D_sb2K6s.js} +5 -5
  15. package/dist/{comment-ui-runtime-BfE7MJZn.js → comment-ui-runtime-Jy-3goA9.js} +5 -5
  16. package/dist/delimited-text-worker-host-CikWU6_m.js +27 -0
  17. package/dist/document-model-source-BKNrXjAL.js +249 -0
  18. package/dist/document-pull-client-CxONDGbk.js +37833 -0
  19. package/dist/document-pull-worker-AMyXYpPq.js +104 -0
  20. package/dist/docx-D91ER1_S.js +495 -0
  21. package/dist/docx-DhDnKEI6.js +3563 -0
  22. package/dist/docx-model-source-CdrSt3hF.js +98 -0
  23. package/dist/docx-source-worker.mjs +455 -0
  24. package/dist/docx.mjs +7 -7
  25. package/dist/docx_parser_bg.wasm +0 -0
  26. package/dist/drawingml-shape-ChcGZNd8.js +310 -0
  27. package/dist/duotone-ekYik4ix.js +126 -0
  28. package/dist/emf-UT6I8rVi.js +1790 -0
  29. package/dist/font-preload-demand-CdJZUMCT.js +2058 -0
  30. package/dist/grid-geometry-uQOgViJU.js +384 -0
  31. package/dist/host-layout-DVMw8hDY.js +56 -0
  32. package/dist/host-layout-measure-CCEgaC_v.js +7 -0
  33. package/dist/in-process-pull-transport-DuXcPZng.js +29 -0
  34. package/dist/index.mjs +4 -4
  35. package/dist/internal-companion.mjs +12 -0
  36. package/dist/line-distribute-CPOV6csk.js +2716 -0
  37. package/dist/math.mjs +2 -2
  38. package/dist/mathjax-stix2.js +10 -10
  39. package/dist/model-source-DJGzDtGb.js +61 -0
  40. package/dist/model-source-kz_NkZqT.js +179 -0
  41. package/dist/model-source-session-Bu9CHFHc.js +71 -0
  42. package/dist/model-source-session-CDuijwv1.js +85 -0
  43. package/dist/model-source-session-sKpNiIJI.js +58 -0
  44. package/dist/node.mjs +7 -1327
  45. package/dist/{pixel-budget-Dgjw269h.js → pixel-budget-BpTYrepD.js} +13 -10
  46. package/dist/plot-area-frame-CaJFvZ7p.js +8502 -0
  47. package/dist/pptx-CDP9dZHe.js +2936 -0
  48. package/dist/pptx-C_uxLVKB.js +183 -0
  49. package/dist/pptx-model-source-O7LhpOjz.js +37 -0
  50. package/dist/pptx-source-worker.mjs +446 -0
  51. package/dist/pptx.mjs +8 -7
  52. package/dist/pptx_parser_bg.wasm +0 -0
  53. package/dist/presentation-model-source-tmROzteR.js +77 -0
  54. package/dist/raster-target-YQ4G6rxo.js +42 -0
  55. package/dist/region-map.mjs +114 -150
  56. package/dist/{render-8Zo7dnds.js → render-CJVglUHl.js} +3 -3
  57. package/dist/{render-worker-host-BfbnEChF.js → render-worker-host-BseIaVvm.js} +1 -1
  58. package/dist/{render-worker-host-DNL9dWRh.js → render-worker-host-CyxPU4JU.js} +1 -1
  59. package/dist/{render-worker-host-IkHrYOci.js → render-worker-host-aF6aWkC0.js} +1 -1
  60. package/dist/renderer-CkGLj0CC.js +5170 -0
  61. package/dist/renderer-Czw1cCC7.js +5823 -0
  62. package/dist/resource-measurement-mXw-WjMF.js +771 -0
  63. package/dist/session-Csv9maad.js +656 -0
  64. package/dist/slide-pull-client-DRZYwBTu.js +6515 -0
  65. package/dist/three-d-BK5siJgJ.js +878 -0
  66. package/dist/three-d.mjs +871 -764
  67. package/dist/{raster-target-ojDdQizC.js → tiff-contract-C6M3QcPp.js} +1 -42
  68. package/dist/tiff.mjs +401 -248
  69. package/dist/types/chart-ex.d.ts +289 -4
  70. package/dist/types/docx.d.ts +473 -98
  71. package/dist/types/index.d.ts +674 -303
  72. package/dist/types/internal-companion.d.ts +11 -0
  73. package/dist/types/math.d.ts +1 -1
  74. package/dist/types/node.d.ts +530 -11
  75. package/dist/types/pptx.d.ts +410 -97
  76. package/dist/types/region-map.d.ts +289 -4
  77. package/dist/types/three-d.d.ts +289 -4
  78. package/dist/types/tiff.d.ts +1 -1
  79. package/dist/types/xlsx.d.ts +483 -134
  80. package/dist/wasm-loader-rlgHmcSv.js +35 -0
  81. package/dist/wasm-runtime-generation-DX4y0Ecl.js +97 -0
  82. package/dist/workbook-model-source-BTC4ISTS.js +94 -0
  83. package/dist/worker-source-I1cIYBel.js +22 -0
  84. package/dist/worker-source-SbudzjYL.js +22 -0
  85. package/dist/worker-source-UAi3GNcM.js +22 -0
  86. package/dist/worksheet-pull-client-CkHgbtyM.js +579 -0
  87. package/dist/xlsx-CpSDPAEU.js +5809 -0
  88. package/dist/xlsx-D5569TPf.js +534 -0
  89. package/dist/xlsx-model-source-DPSkjFic.js +309 -0
  90. package/dist/xlsx-source-worker.mjs +525 -0
  91. package/dist/xlsx.mjs +8 -7
  92. package/dist/xlsx_parser_bg.wasm +0 -0
  93. package/package.json +42 -16
  94. package/dist/assets/render-worker-CeK_iqK3.js +0 -10
  95. package/dist/assets/render-worker-DusrDhPk.js +0 -11
  96. package/dist/assets/render-worker-n2ZG0lrQ.js +0 -31
  97. package/dist/bounded-raw-part-cache-Cg1BsSZQ.js +0 -119
  98. package/dist/canvas-viewer-mechanics-Cpk0YFvM.js +0 -1384
  99. package/dist/cjk-fallback-bLI3z70h.js +0 -46
  100. package/dist/comment-occurrence-C8Y2uoVr.js +0 -6
  101. package/dist/comment-ui-runtime-BsK8pmUT.js +0 -2
  102. package/dist/comments-Diid5ujN.js +0 -246
  103. package/dist/delimited-text-worker-host-BVY-Ecni.js +0 -27
  104. package/dist/document-pull-client-yKxI8aDH.js +0 -27251
  105. package/dist/docx-BkSRiy07.js +0 -2995
  106. package/dist/dom-interaction-boundary-CBUQJsIM.js +0 -223
  107. package/dist/highlight-rect-C5hkRqUr.js +0 -13
  108. package/dist/hyperlink-ArrU3ArU.js +0 -36447
  109. package/dist/line-distribute-Dtudnqhs.js +0 -1023
  110. package/dist/line-metrics-B60C86uh.js +0 -60
  111. package/dist/plot-area-frame-D5hEOgkJ.js +0 -2903
  112. package/dist/pptx-62MmVbYB.js +0 -3063
  113. package/dist/renderer-XFSCOT6m.js +0 -5857
  114. package/dist/resource-measurement-CJsgolre.js +0 -150
  115. package/dist/session-CrU8f8DI.js +0 -743
  116. package/dist/slide-pull-client-B9KA8bU6.js +0 -6253
  117. package/dist/source-key-DIJG8BA0.js +0 -42
  118. package/dist/three-d-YYghQndN.js +0 -1346
  119. package/dist/transfer-p6iCC2R7.js +0 -6
  120. package/dist/units-EJdC96r6.js +0 -4
  121. package/dist/worksheet-pull-client-eIcQ-xlD.js +0 -458
  122. package/dist/xlsx-CRcSzZNq.js +0 -8482
  123. /package/dist/{chunk-DmhlhrBa.js → chunk-Dy4uBu1J.js} +0 -0
  124. /package/dist/{mathjax-DoyWZbSp.js → mathjax-BhwN6ilc.js} +0 -0
  125. /package/dist/{read-only-comment-decoration-Dz7eTQ4d.js → read-only-comment-decoration-PidH0wnP.js} +0 -0
  126. /package/dist/{read-only-comment-margin-DkgzASAl.js → read-only-comment-margin-B52rDVKo.js} +0 -0
  127. /package/dist/{renderer-module-contract-D91rkYHH.js → renderer-module-contract-CWM7jv6d.js} +0 -0
  128. /package/dist/{visible-index-BgiHEc1z.js → visible-index-FeVA0mGE.js} +0 -0
@@ -0,0 +1,771 @@
1
+ import { C as e, Cn as t, Sn as n, _n as r, b as i, fn as a, g as o, h as s, mn as c, w as l, x as u } from "./bounded-raw-part-cache-B7JoC1CD.js";
2
+ //#region packages/core/src/drawingml-text/tab.ts
3
+ function d(e, t, n, r, i, a = 0) {
4
+ let o = e.map((e) => e.width), s = (t) => {
5
+ let n = 0;
6
+ for (let r = t; r < e.length && !e[r].isTab; r++) n += o[r];
7
+ return n;
8
+ }, c = n;
9
+ for (let n = 0; n < e.length; n++) {
10
+ if (!e[n].isTab) {
11
+ c += o[n];
12
+ continue;
13
+ }
14
+ let l = null;
15
+ for (let e of t) e.pos > c && (l === null || e.pos < l.pos) && (l = e);
16
+ if (l === null) if (a > 0) l = {
17
+ pos: (Math.floor(c / a) + 1) * a,
18
+ algn: "l"
19
+ };
20
+ else {
21
+ o[n] = i, c += i;
22
+ continue;
23
+ }
24
+ let u = s(n + 1), d = l.algn === "ctr" ? .5 : +(l.algn === "r" || l.algn === "dec"), f = l.pos - u * d;
25
+ f + u > r && (f = r - u), f < c && (f = c), o[n] = f - c, c = f;
26
+ }
27
+ return o;
28
+ }
29
+ //#endregion
30
+ //#region packages/core/src/drawingml-text/break.ts
31
+ var f = /^\p{Script_Extensions=Latin}$/u, p = (e) => e.type === "text" && e.text === " ", m = (e) => e.type === "text" && t(e.text.codePointAt(0) ?? 0);
32
+ function h(t, a) {
33
+ let o = a.sameStyle ?? ((e, t) => e === t), s = [[]], h = [], g = [-1], _ = [], v = 0;
34
+ for (let e of t) {
35
+ if (h.push(s.length - 1), e.type === "break") {
36
+ _[s.length - 1] = v, s.push([]), g.push(-1), v++;
37
+ continue;
38
+ }
39
+ if (e.type === "object") {
40
+ e.display && s.at(-1).length > 0 && (s.push([]), g.push(-1)), s.at(-1).push({
41
+ type: "object",
42
+ style: e.style,
43
+ run: v,
44
+ width: e.width,
45
+ payload: e.payload
46
+ }), e.display && (s.push([]), g.push(-1)), v++;
47
+ continue;
48
+ }
49
+ let t = [
50
+ 0,
51
+ ...r(e.text),
52
+ e.text.length
53
+ ];
54
+ for (let n = 0; n + 1 < t.length; n++) {
55
+ let r = e.text.slice(t[n], t[n + 1]);
56
+ r === "\n" ? (s.push([]), g.push(v)) : r === " " ? s.at(-1).push({
57
+ type: "tab",
58
+ style: e.style,
59
+ run: v
60
+ }) : r !== "\r" && s.at(-1).push({
61
+ type: "text",
62
+ text: r,
63
+ style: e.style,
64
+ run: v
65
+ });
66
+ }
67
+ v++;
68
+ }
69
+ let y = [], b = [], x = [], S = new Uint8Array(t.length);
70
+ for (let t = 0; t < s.length; t++) {
71
+ let r = s[t];
72
+ if (b.push(y.length), t === s.length - 1) for (; r.length > 0 && p(r.at(-1));) r.pop();
73
+ let h = r.length, v = /* @__PURE__ */ new Set();
74
+ if (r.some((e) => e.type === "text" && c(e.text))) {
75
+ let e = "", t = [0];
76
+ for (let n of r) e += n.type === "text" ? n.text : "", t.push(e.length);
77
+ let i = new Set(n(e, { cjk: !0 }));
78
+ for (let e = 1; e < t.length; e++) i.has(t[e]) && v.add(e);
79
+ }
80
+ let C = a.eastAsianLineBreak !== !1, w = (e) => e === 160 || e === 8239 || e === 8288 || e === 65279, T = (e) => {
81
+ if (e <= 0 || e >= h) return !1;
82
+ let t = r[e - 1], n = r[e];
83
+ if (n.type === "tab") return !0;
84
+ if (t.type === "tab") return !1;
85
+ if (p(t) || p(n) || v.has(e) || t.type === "object" || n.type === "object") return !0;
86
+ let a = [...t.text].at(-1)?.codePointAt(0), o = n.text.codePointAt(0);
87
+ if (a === void 0 || o === void 0) return !1;
88
+ if (a === 8203 || !C && (m(t) || m(n)) && !w(a) && !w(o)) return !0;
89
+ if (i(a, o)) return !1;
90
+ if (m(t) || m(n)) return !0;
91
+ if (e > 1 && (u(a) === "HY" || u(a) === "HH")) {
92
+ let t = r[e - 2];
93
+ if (t.type === "text" && f.test([...t.text].at(-1) ?? "") && f.test([...n.text][0] ?? "")) return !0;
94
+ }
95
+ return !1;
96
+ }, E = new Uint8Array(h + 1);
97
+ for (let e = 1; e < h; e++) E[e] = +!!T(e);
98
+ let D = r[0]?.style, O = h > 0 && r.every((e) => e.type === "text" && o(D, e.style)) ? r.map((e) => e.type === "text" ? e.text : "").join("") : null, k = O === null ? null : new Int32Array(h + 1);
99
+ if (k) for (let e = 0; e < h; e++) {
100
+ let t = r[e];
101
+ k[e + 1] = k[e] + (t.type === "text" ? t.text.length : 0);
102
+ }
103
+ let A = null, j = 0, M = (e) => {
104
+ let t = r[e], n = r[e + 1];
105
+ if (t?.type !== "tab" || !a.tabStops?.length || n?.type !== "text" || !/^[\p{Script_Extensions=Latin}\p{Number}]$/u.test(n.text)) return !1;
106
+ if (A === null) {
107
+ j = $, A = new Uint8Array(h - j + 1), A[h - j] = 1;
108
+ for (let e = h - 1; e >= j; e--) {
109
+ let t = r[e], n = e - j;
110
+ A[n] = A[n + 1] && t.type === "text" && !p(t) && !m(t) ? 1 : 0;
111
+ }
112
+ }
113
+ return A[e + 1 - j] === 1;
114
+ }, N = null, P = 0, F = () => {
115
+ if (N === null) {
116
+ P = $;
117
+ let e = [], t = new Int32Array(h - P + 1);
118
+ for (let n = P; n < h; n++) {
119
+ let i = r[n];
120
+ if (i.type === "text") for (let t of i.text) e.push(t);
121
+ t[n + 1 - P] = e.length;
122
+ }
123
+ N = {
124
+ chars: e,
125
+ offsets: t
126
+ };
127
+ }
128
+ return N;
129
+ }, I = (e, t) => e.type === "text" && t.type === "text" && a.kinsokuAcrossRuns?.(e.style, t.style, e.text, t.text) === !0, L = null, R = 0, z = (e) => {
130
+ if (L === null) {
131
+ R = $, L = new Int32Array(h - $ + 1);
132
+ let e = $ + 1;
133
+ for (let t = $ + 1; t < h; t++) {
134
+ let n = r[t - 1], i = r[t];
135
+ (n.type !== "text" || i.type !== "text" || n.run !== i.run && !I(n, i)) && (e = t), L[t - R] = e;
136
+ }
137
+ }
138
+ return Math.max($ + 1, L[e - R]);
139
+ }, B = (e, t) => {
140
+ if (t.type === "text") {
141
+ let n = e.at(-1);
142
+ if (n?.type === "text" && o(n.style, t.style)) {
143
+ n.text += t.text;
144
+ return;
145
+ }
146
+ e.push({
147
+ type: "text",
148
+ text: t.text,
149
+ style: t.style,
150
+ width: 0
151
+ });
152
+ } else t.type === "tab" ? e.push({
153
+ type: "tab",
154
+ style: t.style,
155
+ width: 0
156
+ }) : e.push({
157
+ type: "object",
158
+ style: t.style,
159
+ width: t.width,
160
+ payload: t.payload
161
+ });
162
+ }, V = (e, t) => {
163
+ let n = 0, r = e.map((t, r) => {
164
+ if (t.type === "text") {
165
+ t.width = a.measureText(t.text, t.style);
166
+ let n = e[r - 1];
167
+ n?.type === "text" && (t.width += a.boundaryAdvance?.(n.style, t.style) ?? 0);
168
+ }
169
+ return t.type === "tab" && (t.width = 0, n = a.measureText(" ", t.style)), {
170
+ isTab: t.type === "tab",
171
+ width: t.width
172
+ };
173
+ });
174
+ if (r.some((e) => e.isTab)) {
175
+ let i = d(r, a.tabStops ?? [], a.tabStartPen?.(t) ?? (t === 0 ? a.firstLineIndent ?? 0 : 0), Infinity, n, a.defaultTabSize ?? 0);
176
+ for (let t = 0; t < e.length; t++) e[t].width = i[t];
177
+ }
178
+ return e.reduce((e, t) => e + t.width, 0);
179
+ }, H = (e, t, n) => {
180
+ if (O !== null && k && D !== void 0) {
181
+ let n = O.slice(k[e], k[t]), r = a.measureText(n, D);
182
+ return {
183
+ segments: [{
184
+ type: "text",
185
+ text: n,
186
+ style: D,
187
+ width: r
188
+ }],
189
+ width: r
190
+ };
191
+ }
192
+ let i = [];
193
+ for (let n = e; n < t; n++) B(i, r[n]);
194
+ return {
195
+ segments: i,
196
+ width: V(i, n)
197
+ };
198
+ }, U = null, W = (e, t) => {
199
+ let n = "";
200
+ for (let i = e; i < t; i++) {
201
+ let e = r[i];
202
+ e.type === "text" && (n += e.text);
203
+ }
204
+ return n;
205
+ }, G = (e) => {
206
+ let t = new Float64Array(Math.ceil(e.length / 32)).fill(Infinity);
207
+ for (let n = 0; n < e.length; n++) {
208
+ let r = Math.floor(n / 32);
209
+ e[n] < t[r] && (t[r] = e[n]);
210
+ }
211
+ return t;
212
+ }, K = () => {
213
+ let e = new Int32Array(h).fill(-1), t = new Int32Array(h).fill(-1), n = new Float64Array(h).fill(NaN), i = new Float64Array(h), s = new Float64Array(h + 1), c = new Float64Array(h + 1), l = new Int32Array(h + 1), u = -1, d, f = null, p = 0, m = 0, g = (e) => {
214
+ for (let n = u; u >= 0 && n < e; n++) t[n] = e;
215
+ };
216
+ for (let t = 0; t < h; t++) {
217
+ let h = r[t];
218
+ if (l[t + 1] = l[t] + +(h.type === "tab"), h.type === "text" && u >= 0 && o(d, h.style) || (g(t), p = c[t], h.type === "text" ? (f = u >= 0 ? a.boundaryAdvance?.(d, h.style) ?? 0 : null, u = t, d = h.style) : (u = -1, d = void 0)), h.type === "text") {
219
+ let r = d;
220
+ if (e[t] = u, t - u <= 8) m = a.measureText(W(u, t + 1), r), n[t] = m;
221
+ else {
222
+ let e = W(t - 8, t);
223
+ i[t] = a.measureText(e + h.text, r) - a.measureText(e, r), m += i[t];
224
+ }
225
+ c[t + 1] = p + (f === null ? m : m + f);
226
+ } else c[t + 1] = p + (h.type === "object" ? h.width : 0);
227
+ s[t + 1] = s[t] + i[t];
228
+ }
229
+ g(h);
230
+ let _ = new Float64Array(h + 1);
231
+ _[h] = c[h];
232
+ for (let e = h - 1; e >= 0; e--) _[e] = Math.min(c[e], _[e + 1]);
233
+ let v = new Float64Array(h + 1).fill(Infinity);
234
+ for (let e = h; e >= 1; e--) r[e - 1].type === "text" && (v[e] = e === t[e - 1] ? s[e] : Math.min(s[e], v[e + 1]));
235
+ let y = new Int32Array(h), b = [];
236
+ for (let e = 0; e < h; e++) {
237
+ let t = r[e];
238
+ if (t.type !== "tab" || (a.defaultTabSize ?? 0) > 0) continue;
239
+ let n = a.measureText(" ", t.style), i = b.indexOf(n);
240
+ i < 0 && (i = b.push(n) - 1), y[e] = i;
241
+ }
242
+ return b.length === 0 && b.push(0), {
243
+ segStart: e,
244
+ segEnd: t,
245
+ head: n,
246
+ tail: i,
247
+ tailSum: s,
248
+ tailBlockMin: G(s),
249
+ natural: c,
250
+ naturalBlockMin: G(c),
251
+ naturalSuffixMin: _,
252
+ tailSuffixMin: v,
253
+ tabsBefore: l,
254
+ tabGap: y,
255
+ gapValues: b
256
+ };
257
+ }, q = (e, t, n, r, i, a) => {
258
+ let o = i;
259
+ for (; o > r;) {
260
+ let i = Math.floor(o / 32) * 32;
261
+ if (i > r && n + t[i / 32] > a) {
262
+ o = i - 1;
263
+ continue;
264
+ }
265
+ if (n + e[o] <= a) return o;
266
+ o--;
267
+ }
268
+ return -1;
269
+ }, J = /* @__PURE__ */ new Map(), Y = (e, t, n) => {
270
+ if (t === e.segStart[t]) {
271
+ let r = Math.min(n, t + 8 + 1) - 1;
272
+ return e.head[r] + (e.tailSum[n] - e.tailSum[r + 1]);
273
+ }
274
+ let i = Math.min(n, t + 8 + 1), o = J.get(i);
275
+ return o === void 0 && (o = a.measureText(W(t, i), r[t].style), J.set(i, o)), o + (e.tailSum[n] - e.tailSum[i]);
276
+ }, ee = (e, t, n) => {
277
+ let i = U ??= K();
278
+ if (J.clear(), i.tabsBefore[h] !== i.tabsBefore[e]) return te(i, e, t, n);
279
+ let o = r[e], s = o.type === "text" ? i.segEnd[e] : e + 1, c = o.type === "text" ? Y(i, e, s) : o.type === "object" ? o.width : 0;
280
+ if (s < h) {
281
+ let t = r[s], l = o.type === "text" && t.type === "text" && a.boundaryAdvance ? a.boundaryAdvance(o.style, t.style) - a.boundaryAdvance(r[i.segStart[e]].style, t.style) : 0, u = q(i.natural, i.naturalBlockMin, c + l - i.natural[s], s, h, n);
282
+ if (u >= 0) return u;
283
+ }
284
+ if (c <= n) return s;
285
+ if (o.type !== "text") return e;
286
+ let l = e + 8 + 1;
287
+ if (s - 1 > l) {
288
+ let t = Y(i, e, l) - i.tailSum[l], r = q(i.tailSum, i.tailBlockMin, t, l, s - 1, n);
289
+ if (r >= 0) return r;
290
+ }
291
+ for (let t = Math.min(s - 1, l); t > e; t--) if (Y(i, e, t) <= n) return t;
292
+ return e;
293
+ }, te = (e, t, n, i) => {
294
+ let o = a.tabStartPen?.(n) ?? (n === 0 ? a.firstLineIndent ?? 0 : 0), s = a.tabStops ?? [], c = a.defaultTabSize ?? 0, l = e.gapValues, u = l.length, d = new Float64Array(u), f = new Float64Array(u).fill(o), p = new Float64Array(u), m = new Float64Array(u), g = new Float64Array(u), _ = new Uint8Array(u), v = new Float64Array(u), y = !1, b = 0, x = 0, S = !1, C = r[t], w = C.type === "text" ? e.segEnd[t] : t + 1, T = C.type === "text" ? Y(e, t, w) : C.type === "object" ? C.width : 0, E = r[w], D = T + (w < h && C.type === "text" && E.type === "text" && a.boundaryAdvance ? a.boundaryAdvance(C.style, E.style) - a.boundaryAdvance(r[e.segStart[t]].style, E.style) : 0) - e.natural[w], O = t + 8 + 1, k = C.type === "text" && w > O ? Y(e, t, O) - e.tailSum[O] : 0, A = l.every((e) => e >= 0), j = 1e-9 * Math.max(1, Math.abs(i)), M = (t) => {
295
+ if (!A || t < O && t < w) return !1;
296
+ let n = Infinity;
297
+ return t < w && (n = k + e.tailSuffixMin[t + 1]), w < h && (n = Math.min(n, D + e.naturalSuffixMin[Math.max(t + 1, w + 1)])), n > i + j;
298
+ }, N = t, P = -1, F = null;
299
+ for (let n = t + 1; n <= h; n++) {
300
+ let o = n - 1, C = r[o];
301
+ if (C.type === "text" && P >= 0 && e.segStart[o] === e.segStart[o - 1]) {
302
+ let r = X(e, P, t, n);
303
+ x = F === null ? r : r + F;
304
+ } else {
305
+ if (S) for (let e = 0; e < u; e++) y ? v[e] += x : (d[e] += x, f[e] += x);
306
+ if (C.type === "tab") {
307
+ for (let e = 0; e < u; e++) {
308
+ if (y) {
309
+ let t = v[e], n = p[e] + l[e];
310
+ _[e] || (n = m[e] - t * g[e], n < p[e] && (n = p[e])), d[e] += n - p[e] + t, f[e] = n + t;
311
+ }
312
+ p[e] = f[e];
313
+ let t = null;
314
+ for (let n of s) n.pos > f[e] && (t === null || n.pos < t.pos) && (t = n);
315
+ t === null && c > 0 && (t = {
316
+ pos: (Math.floor(f[e] / c) + 1) * c,
317
+ algn: "l"
318
+ }), _[e] = +(t === null), m[e] = t?.pos ?? 0, g[e] = t?.algn === "ctr" ? .5 : +(t?.algn === "r" || t?.algn === "dec"), v[e] = 0;
319
+ }
320
+ y = !0, b = e.tabGap[o], P = -1, x = 0, S = !1;
321
+ } else if (C.type === "text") {
322
+ let i = P >= 0 ? r[P] : void 0;
323
+ F = i?.type === "text" ? a.boundaryAdvance?.(i.style, C.style) ?? 0 : null, P = o;
324
+ let s = X(e, P, t, n);
325
+ x = F === null ? s : s + F, S = !0;
326
+ } else P = -1, x = C.width, S = !0;
327
+ }
328
+ let w;
329
+ if (!y) w = d[b] + x;
330
+ else {
331
+ let e = v[b] + x, t = l[b];
332
+ if (!_[b]) {
333
+ let n = m[b] - e * g[b];
334
+ n < p[b] && (n = p[b]), t = n - p[b];
335
+ }
336
+ w = d[b] + t + e;
337
+ }
338
+ if (w <= i) {
339
+ if (n === h) return h;
340
+ N = n;
341
+ }
342
+ if (n < h && M(n)) break;
343
+ }
344
+ return N;
345
+ }, X = (e, t, n, r) => t === n ? Y(e, n, r) : Y(e, t, r), Z = new Int32Array(h).fill(-1);
346
+ x.push(Z);
347
+ let Q = (e, t) => {
348
+ for (let n = e; n < t; n++) Z[n] = y.length - 1, S[r[n].run] = 1;
349
+ }, $ = 0;
350
+ if (h === 0) {
351
+ y.push({
352
+ segments: [],
353
+ width: 0,
354
+ ...t + 1 < s.length ? { endsWithBreak: !0 } : {},
355
+ ...g[t] >= 0 ? { lineFeedRun: g[t] } : {},
356
+ ..._[t] === void 0 ? {} : { endBreakRun: _[t] }
357
+ });
358
+ continue;
359
+ }
360
+ for (; $ < h;) {
361
+ let n = y.length, i = a.maxWidth - (n === 0 ? a.firstLineIndent ?? 0 : 0), o = (e) => O !== null && k && D !== void 0 ? a.measureText(O.slice(k[$], k[e]), D) : H($, e, n).width, c = h;
362
+ if (Number.isFinite(i) && a.nonMonotoneMeasure) c = ee($, n, i);
363
+ else if (Number.isFinite(i)) {
364
+ let e = $, t = h, n = 1;
365
+ for (; e < h;) {
366
+ let r = Math.min(h, $ + n);
367
+ if (o(r) <= i) {
368
+ if (e = r, r === h) break;
369
+ n *= 2;
370
+ } else {
371
+ t = r - 1;
372
+ break;
373
+ }
374
+ }
375
+ for (; e < t;) {
376
+ let n = Math.ceil((e + t) / 2);
377
+ o(n) <= i ? e = n : t = n - 1;
378
+ }
379
+ c = e;
380
+ }
381
+ if (c >= h) {
382
+ let e = H($, h, n);
383
+ t + 1 < s.length && (e.endsWithBreak = !0), y.push(e), Q($, h);
384
+ break;
385
+ }
386
+ let u = 0;
387
+ for (let e = $ + 1; e <= c; e++) E[e] && (u = e);
388
+ if (u > $ && M(u) && (u = h), M($)) for (u = $ + 2; u < h && !p(r[u]) && r[u].type !== "tab";) u++;
389
+ if (u === 0) if (r[$].type === "tab" && c <= $ + 1) {
390
+ if (u = $ + 1, u < h && r[u].type === "text") for (u++; u < h && !E[u];) u++;
391
+ } else u = Math.max($ + 1, c);
392
+ let d = r[u - 1], f = u < h ? r[u] : void 0;
393
+ if (C && f && (m(d) || m(f)) && (d.run === f.run || I(d, f))) {
394
+ let { chars: t, offsets: n } = F(), r = n[$ - P], i = n[u - P];
395
+ if (i - r > 1 && i < t.length) {
396
+ let a = d.run !== f.run, o = a ? z(u) : $ + 1, s = e(t, i, l, a ? n[o - P] : r + 1), c = i - s;
397
+ if (c > 0) if (a) {
398
+ let e = o, t = u;
399
+ for (; e < t;) {
400
+ let r = Math.floor((e + t) / 2);
401
+ n[r - P] < s ? e = r + 1 : t = r;
402
+ }
403
+ u = e;
404
+ } else u - c > $ && (u -= c);
405
+ }
406
+ }
407
+ for (y.push(H($, u, n)), Q($, u), $ = u; $ < h && p(r[$]);) $++;
408
+ }
409
+ }
410
+ for (let e = 0; e < _.length; e++) {
411
+ let t = _[e];
412
+ if (t === void 0) continue;
413
+ let n = b[e], r = e + 1 < b.length ? b[e + 1] : y.length;
414
+ r > n && (y[r - 1].endBreakRun = t);
415
+ }
416
+ for (let e = 0; e < t.length; e++) {
417
+ if (t[e].type !== "text" || S[e]) continue;
418
+ let n = h[e], r = s[n], i = x[n], a = 0, o = r.length;
419
+ for (; a < o;) {
420
+ let t = a + o >> 1;
421
+ r[t].run < e ? a = t + 1 : o = t;
422
+ }
423
+ let c = b[n];
424
+ for (let e = a - 1; e >= 0; e--) if (i[e] >= 0) {
425
+ c = i[e];
426
+ break;
427
+ }
428
+ (y[c].hiddenRuns ??= []).push(e);
429
+ }
430
+ return y;
431
+ }
432
+ //#endregion
433
+ //#region packages/core/src/drawingml-text/metrics.ts
434
+ function g(e, t, n, r) {
435
+ let i = n.lIns * r, a = n.rIns * r, o = n.tIns * r, s = n.bIns * r;
436
+ return {
437
+ left: i,
438
+ top: o,
439
+ width: Math.max(0, e - i - a),
440
+ height: Math.max(0, t - o - s)
441
+ };
442
+ }
443
+ function _(e, t, n, r = 0) {
444
+ let i = t?.type === "pts" ? t.val * n : e * (t?.type === "pct" ? t.val / 1e5 : 1);
445
+ return t?.type === "pts" ? i : i * (1 - r);
446
+ }
447
+ function v(e, t, n, r = 0) {
448
+ let i = e.ascent + e.descent, a = _(i, t, n, r);
449
+ if (a === i) return {
450
+ ascent: e.ascent,
451
+ descent: e.descent
452
+ };
453
+ let o = Math.max(0, e.descent - .25 * i), s = a < i ? Math.min(e.descent, .25 * a + o) : .25 * a <= e.descent ? e.descent : .25 * a + o;
454
+ return {
455
+ ascent: a - s,
456
+ descent: s
457
+ };
458
+ }
459
+ function y(e, t, n) {
460
+ return e ? e.type === "pts" ? e.val * n : t * (e.val / 1e5) : 0;
461
+ }
462
+ function b(e, t, n) {
463
+ return e === "ctr" ? t.top + (t.height - n) / 2 : e === "b" ? t.top + Math.max(0, t.height - n) : t.top;
464
+ }
465
+ //#endregion
466
+ //#region packages/core/src/drawingml-text/align.ts
467
+ function x(e, t, n, r, i = !1, a = !1) {
468
+ let o = a ? n - r : Math.max(0, n - r);
469
+ return e === "ctr" ? t + o / 2 : e === "r" || i && (e === "l" || e == null) ? t + o : t;
470
+ }
471
+ function S(e, t, n) {
472
+ return e === "dist" || e === "thaiDist" ? !0 : e === "just" || e === "justLow" ? !t && !n : !1;
473
+ }
474
+ //#endregion
475
+ //#region packages/core/src/drawingml-text/stacked.ts
476
+ var C = (e) => e.reduce((e, t) => e + t.advance, 0);
477
+ function w(e) {
478
+ let t = e.length;
479
+ for (; t > 0 && e[t - 1].space;) t--;
480
+ return t;
481
+ }
482
+ function T(e, t) {
483
+ let { rect: n, pxPerPt: r } = t, i = t.lnSpcReduction ?? 0, a = [], o = [];
484
+ e.forEach((s, c) => {
485
+ let l = h(s.runs, {
486
+ maxWidth: t.wrap ? Math.max(0, n.height - (s.marginStart ?? 0) - (s.marginEnd ?? 0)) : Infinity,
487
+ firstLineIndent: (s.firstLineIndent ?? 0) + (s.firstLinePrefix?.advance ?? 0),
488
+ measureText: (e, n) => C(t.glyphs(e, n)),
489
+ sameStyle: t.sameStyle,
490
+ eastAsianLineBreak: s.eastAsianLineBreak
491
+ }), u = l.map((e, n) => {
492
+ let a = e.segments.flatMap((e) => {
493
+ if (e.type === "text") return t.glyphs(e.text, e.style);
494
+ if (e.type === "object") {
495
+ if (!t.objectGlyph) throw Error("Stacked inline objects require a host object adapter");
496
+ let n = t.objectGlyph(e);
497
+ return n.advance === 0 && n.thickness === 0 ? [] : [n];
498
+ }
499
+ return [];
500
+ }), o = a.length > 0 ? 0 : s.emptyThickness;
501
+ for (let e of a) e.thickness > o && (o = e.thickness);
502
+ n === 0 && s.firstLinePrefix && (o = Math.max(o, s.firstLinePrefix.thickness));
503
+ let u = v({
504
+ ascent: o / 2,
505
+ descent: o / 2
506
+ }, s.lineSpacing, r, i);
507
+ return {
508
+ glyphs: a,
509
+ paragraph: c,
510
+ firstInParagraph: n === 0,
511
+ lastInParagraph: n === l.length - 1,
512
+ endsWithBreak: e.endsWithBreak === !0,
513
+ thickness: o,
514
+ ascent: u.ascent,
515
+ descent: u.descent
516
+ };
517
+ });
518
+ if (u.length === 0) {
519
+ let e = s.emptyThickness, t = v({
520
+ ascent: e / 2,
521
+ descent: e / 2
522
+ }, s.lineSpacing, r, i);
523
+ u.push({
524
+ glyphs: [],
525
+ paragraph: c,
526
+ firstInParagraph: !0,
527
+ lastInParagraph: !0,
528
+ endsWithBreak: !1,
529
+ thickness: e,
530
+ ascent: t.ascent,
531
+ descent: t.descent
532
+ });
533
+ }
534
+ let d = c === 0, f = c === e.length - 1, p = t.spcFirstLastPara === !0, m = d && !p ? 0 : y(s.spaceBefore, u[0].thickness, r), g = f && !p ? 0 : y(s.spaceAfter, u[u.length - 1].thickness, r), _ = [];
535
+ m && _.push({
536
+ type: "gap",
537
+ size: m
538
+ });
539
+ for (let e of u) _.push({
540
+ type: "line",
541
+ line: e
542
+ }), a.push(e);
543
+ g && _.push({
544
+ type: "gap",
545
+ size: g
546
+ }), o.push(_);
547
+ });
548
+ let s = a[a.length - 1];
549
+ s && s.descent < s.thickness / 2 && (s.descent = s.thickness / 2);
550
+ let c = t.direction === "wordArtVertRtl", l = [], u = 0;
551
+ for (let e of o) {
552
+ let t = c ? e : e.slice().reverse(), n = e.filter((e) => e.type === "line"), r = 0;
553
+ for (let e of t) {
554
+ if (e.type === "gap") {
555
+ u += e.size;
556
+ continue;
557
+ }
558
+ let t = n[r++].line;
559
+ l.push(u + (c ? t.ascent : t.descent)), u += t.ascent + t.descent;
560
+ }
561
+ }
562
+ let d = u, f = n.width - d, p = t.anchor === "ctr" ? f / 2 : t.anchor === "b" ? Math.max(0, f) : 0, m = n.top, g = n.height;
563
+ if (t.anchorCtr) {
564
+ let t = 0;
565
+ for (let n of a) t = Math.max(t, C(n.glyphs.slice(0, w(n.glyphs))) + (n.firstInParagraph ? e[n.paragraph].firstLinePrefix?.advance ?? 0 : 0));
566
+ m = n.top + (n.height - t) / 2, g = t;
567
+ }
568
+ let _ = [], b = [];
569
+ return a.forEach((t, r) => {
570
+ let i = c ? n.left + n.width - p - l[r] : n.left + p + l[r], a = e[t.paragraph], o = a.alignment, s = t.firstInParagraph ? a.firstLinePrefix : void 0, u = s?.advance ?? 0, d = (a.marginStart ?? 0) + (t.firstInParagraph ? a.firstLineIndent ?? 0 : 0) + u, f = a.marginEnd ?? 0, h = m + d, v = w(t.glyphs), y = C(t.glyphs.slice(0, v)), x = g - d - f - y, T = h, E = () => 0, D = t.lastInParagraph;
571
+ if (o === "dist" || o === "thaiDist") v <= 1 ? T = h + x / 2 : E = (e) => e < v - 1 ? Math.max(0, x) / (v - 1) : 0;
572
+ else if (S(o, D, t.endsWithBreak)) {
573
+ let e = t.glyphs.slice(0, v).filter((e) => e.space).length;
574
+ e > 0 && (E = (n) => n < v && t.glyphs[n].space ? Math.max(0, x) / e : 0);
575
+ } else o === "ctr" ? T = h + x / 2 : o === "r" && (T = h + x);
576
+ b.push({
577
+ axisX: i,
578
+ thickness: t.thickness,
579
+ paragraph: t.paragraph,
580
+ ...s ? { prefixTop: T - u } : {}
581
+ });
582
+ let O = T;
583
+ t.glyphs.forEach((e, t) => {
584
+ _.push({
585
+ ...e,
586
+ axisX: i,
587
+ cellTop: O,
588
+ column: r
589
+ }), O += e.advance + E(t);
590
+ });
591
+ }), {
592
+ glyphs: _,
593
+ columns: b,
594
+ blockWidth: d
595
+ };
596
+ }
597
+ //#endregion
598
+ //#region packages/core/src/drawingml-text/stacked-faces.ts
599
+ var E = 7 / 6;
600
+ function D(e, t, n) {
601
+ let r = t ? 700 : 400, i = a(e, {
602
+ weight: r,
603
+ style: n ? "italic" : "normal"
604
+ });
605
+ return i.length === 0 && (i = a(e, { weight: r })), i.length === 0 && (i = a(e)), i.find((e) => e.source === "macos-supplemental") ?? i.find((e) => e.source === "office-mac") ?? i[0];
606
+ }
607
+ function O(e, t, n) {
608
+ let r = D(e, t, n);
609
+ if (!(!r || !(r.unitsPerEm > 0))) {
610
+ if (r.typoMetrics) {
611
+ let [e, t, n] = r.typoMetrics;
612
+ return {
613
+ ascent: (e + Math.max(0, n)) / r.unitsPerEm,
614
+ descent: -t / r.unitsPerEm
615
+ };
616
+ }
617
+ if (r.win) return {
618
+ ascent: r.win[0] / r.unitsPerEm,
619
+ descent: r.win[1] / r.unitsPerEm
620
+ };
621
+ }
622
+ }
623
+ var k = new Set([..."()<>[]{}…‥‐←→↑↓―∥、。ー~=_ ̄|()〔〕[]{}〈〉《》「」『』【】〖〗"].map((e) => e.codePointAt(0)));
624
+ function A(e) {
625
+ return k.has(e);
626
+ }
627
+ function j(e, t, n = !1, r = !1) {
628
+ if (!k.has(t)) return;
629
+ let i = D(e, n, r), a = String.fromCodePoint(t);
630
+ return i?.stackedVerticalGlyphs?.includes(a) ? "vert" : t >= 128 && i?.stackedVrt2OnlyGlyphs?.includes(a) ? "nominal" : void 0;
631
+ }
632
+ //#endregion
633
+ //#region packages/core/src/drawingml-text/stacked-glyphs.ts
634
+ function M(e, t, n, i = !1) {
635
+ let a = [], o = r(e);
636
+ o.push(e.length);
637
+ let s = 0;
638
+ for (let r of o) {
639
+ let o = e.slice(s, r);
640
+ if (s = r, !o) continue;
641
+ let c = o.codePointAt(0) ?? 0, l = i ? void 0 : j(t.family, c, t.bold, t.italic);
642
+ i || !A(c) ? a.push({
643
+ text: o,
644
+ kind: "upright",
645
+ advance: n.upright
646
+ }) : l ? a.push({
647
+ text: o,
648
+ kind: "verticalGlyph",
649
+ advance: n.verticalGlyph,
650
+ ...l === "nominal" ? { nominal: !0 } : {}
651
+ }) : a.push({
652
+ text: o,
653
+ kind: "rotated",
654
+ advance: n.rotated(o)
655
+ });
656
+ }
657
+ return a;
658
+ }
659
+ function N(e) {
660
+ return e.nominal ? e.text : P(e.text);
661
+ }
662
+ function P(e) {
663
+ let t = e.codePointAt(0) ?? 0;
664
+ if (String.fromCodePoint(t) !== e) return null;
665
+ let n = o(t) ?? s(t);
666
+ return n === null ? null : String.fromCodePoint(n);
667
+ }
668
+ function F(e, t, n, r) {
669
+ return e + t - n.descent * r;
670
+ }
671
+ function I(e, t, n, r, i, a, o) {
672
+ let s = n - (i.ascent + i.descent) * a / 2, c = r + i.ascent * a;
673
+ e.textAlign = "left", e.textBaseline = "alphabetic", o?.(s, c), e.fillText(t, s, c);
674
+ }
675
+ function L(e, t, n, r, i, a, o) {
676
+ e.save(), e.translate(n - (i.ascent - i.descent) * a / 2, r), e.rotate(Math.PI / 2), e.textAlign = "left", e.textBaseline = "alphabetic", o?.(), e.fillText(t, 0, 0), e.restore();
677
+ }
678
+ //#endregion
679
+ //#region packages/core/src/internal/resource-measurement.ts
680
+ function R(e, t) {
681
+ if (!Number.isSafeInteger(e) || e < 0) throw Error(`${t} must be a non-negative safe integer`);
682
+ }
683
+ function z(e, t, n) {
684
+ return R(e, "resource measurement"), R(t, "resource measurement"), R(n, "resource measurement limit"), e > n || t > n || t > n - e ? n === 2 ** 53 - 1 ? n : n + 1 : e + t;
685
+ }
686
+ function B(e, t = 2 ** 53 - 1) {
687
+ R(t, "resource measurement limit");
688
+ let n = 0;
689
+ for (let r = 0; r < e.length; r += 1) {
690
+ let i = e.charCodeAt(r), a;
691
+ if (i <= 127) a = 1;
692
+ else if (i <= 2047) a = 2;
693
+ else if (i >= 55296 && i <= 56319 && r + 1 < e.length) {
694
+ let t = e.charCodeAt(r + 1);
695
+ t >= 56320 && t <= 57343 ? (a = 4, r += 1) : a = 3;
696
+ } else a = 3;
697
+ if (n = z(n, a, t), n > t) return n;
698
+ }
699
+ return n;
700
+ }
701
+ function V(e, t = 2 ** 53 - 1) {
702
+ R(t, "resource measurement limit");
703
+ let n = z(0, 2, t);
704
+ if (n > t) return n;
705
+ for (let r = 0; r < e.length; r += 1) {
706
+ let i = e.charCodeAt(r), a;
707
+ if (i === 34 || i === 92 || i === 8 || i === 9 || i === 10 || i === 12 || i === 13) a = 2;
708
+ else if (i <= 31) a = 6;
709
+ else if (i <= 127) a = 1;
710
+ else if (i <= 2047) a = 2;
711
+ else if (i >= 55296 && i <= 56319 && r + 1 < e.length) {
712
+ let t = e.charCodeAt(r + 1);
713
+ t >= 56320 && t <= 57343 ? (a = 4, r += 1) : a = 6;
714
+ } else a = i >= 55296 && i <= 57343 ? 6 : 3;
715
+ if (n = z(n, a, t), n > t) return n;
716
+ }
717
+ return n;
718
+ }
719
+ function H(e, t) {
720
+ return z(0, e, t);
721
+ }
722
+ function U(e, t = 2 ** 53 - 1, n = !1) {
723
+ if (R(t, "resource measurement limit"), e === null) return {
724
+ jsonBytes: H(4, t),
725
+ stringValueUtf8Bytes: 0
726
+ };
727
+ if (typeof e == "string") return {
728
+ jsonBytes: V(e, t),
729
+ stringValueUtf8Bytes: B(e, t)
730
+ };
731
+ if (typeof e == "boolean") return {
732
+ jsonBytes: H(e ? 4 : 5, t),
733
+ stringValueUtf8Bytes: 0
734
+ };
735
+ if (typeof e == "number") return {
736
+ jsonBytes: H((Number.isFinite(e) ? String(Object.is(e, -0) ? 0 : e) : "null").length, t),
737
+ stringValueUtf8Bytes: 0
738
+ };
739
+ if (typeof e == "bigint") throw TypeError("BigInt values cannot be serialized to JSON");
740
+ if (Array.isArray(e)) {
741
+ let n = H(2, t), r = 0;
742
+ for (let i = 0; i < e.length; i += 1) {
743
+ i !== 0 && (n = z(n, 1, t));
744
+ let a = U(e[i], t, !0);
745
+ n = z(n, a.jsonBytes, t), r = z(r, a.stringValueUtf8Bytes, t);
746
+ }
747
+ return {
748
+ jsonBytes: n,
749
+ stringValueUtf8Bytes: r
750
+ };
751
+ }
752
+ if (typeof e == "object") {
753
+ let n = H(2, t), r = 0, i = 0;
754
+ for (let [a, o] of Object.entries(e)) {
755
+ if (o === void 0 || typeof o == "function" || typeof o == "symbol") continue;
756
+ i++ !== 0 && (n = z(n, 1, t)), n = z(n, V(a, t), t), n = z(n, 1, t);
757
+ let e = U(o, t);
758
+ n = z(n, e.jsonBytes, t), r = z(r, e.stringValueUtf8Bytes, t);
759
+ }
760
+ return {
761
+ jsonBytes: n,
762
+ stringValueUtf8Bytes: r
763
+ };
764
+ }
765
+ return {
766
+ jsonBytes: n ? H(4, t) : 0,
767
+ stringValueUtf8Bytes: 0
768
+ };
769
+ }
770
+ //#endregion
771
+ export { v as _, I as a, N as c, T as d, S as f, y as g, _ as h, L as i, E as l, b as m, U as n, M as o, x as p, B as r, F as s, z as t, O as u, g as v, h as y };