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