@silurus/ooxml 0.87.0 → 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 (51) hide show
  1. package/dist/assets/render-worker-1uPAxMZr.js +31 -0
  2. package/dist/assets/render-worker-BlvJybji.js +10 -0
  3. package/dist/assets/render-worker-CzmiJfFL.js +11 -0
  4. package/dist/{canvas-viewer-mechanics-Cpk0YFvM.js → canvas-viewer-mechanics-DbLz0rYW.js} +2 -2
  5. package/dist/chart-ex.mjs +581 -616
  6. package/dist/{comment-ui-runtime-BfE7MJZn.js → comment-ui-runtime-CWGqn5Vr.js} +1 -1
  7. package/dist/{document-pull-client-yKxI8aDH.js → document-pull-client-B9PTM-pL.js} +3824 -3795
  8. package/dist/{docx-BkSRiy07.js → docx-BF9WXrYH.js} +428 -320
  9. package/dist/docx.mjs +4 -4
  10. package/dist/docx_parser_bg.wasm +0 -0
  11. package/dist/{dom-interaction-boundary-CBUQJsIM.js → dom-interaction-boundary-Cnm8DSBN.js} +2 -2
  12. package/dist/{hyperlink-ArrU3ArU.js → hyperlink-Cxzhet30.js} +93 -94
  13. package/dist/index.mjs +3 -3
  14. package/dist/{line-distribute-Dtudnqhs.js → line-distribute-D1WNHKz_.js} +2 -2
  15. package/dist/node.mjs +8 -8
  16. package/dist/plot-area-frame-DLTYKHNP.js +4354 -0
  17. package/dist/{pptx-62MmVbYB.js → pptx-DkyYBYoL.js} +13 -11
  18. package/dist/pptx.mjs +5 -5
  19. package/dist/pptx_parser_bg.wasm +0 -0
  20. package/dist/region-map.mjs +4 -4
  21. package/dist/{render-8Zo7dnds.js → render-D3iqVKCo.js} +1 -1
  22. package/dist/{render-worker-host-BfbnEChF.js → render-worker-host-B5wQfB7U.js} +1 -1
  23. package/dist/{render-worker-host-DNL9dWRh.js → render-worker-host-D4123J27.js} +1 -1
  24. package/dist/{render-worker-host-IkHrYOci.js → render-worker-host-Di3LxLc0.js} +1 -1
  25. package/dist/renderer-B4GZb5We.js +6492 -0
  26. package/dist/{resource-measurement-CJsgolre.js → resource-measurement-SHQCbkh2.js} +3 -3
  27. package/dist/{session-CrU8f8DI.js → session-BGq81gRQ.js} +2 -2
  28. package/dist/{slide-pull-client-B9KA8bU6.js → slide-pull-client-DiPnm240.js} +46 -46
  29. package/dist/{three-d-YYghQndN.js → three-d-DJBl8g8M.js} +251 -435
  30. package/dist/three-d.mjs +998 -906
  31. package/dist/tiff.mjs +1 -1
  32. package/dist/types/chart-ex.d.ts +142 -4
  33. package/dist/types/docx.d.ts +148 -10
  34. package/dist/types/index.d.ts +122 -16
  35. package/dist/types/node.d.ts +113 -7
  36. package/dist/types/pptx.d.ts +116 -10
  37. package/dist/types/region-map.d.ts +142 -4
  38. package/dist/types/three-d.d.ts +142 -4
  39. package/dist/types/xlsx.d.ts +148 -10
  40. package/dist/{worksheet-pull-client-eIcQ-xlD.js → worksheet-pull-client-BM8ywvbu.js} +2 -2
  41. package/dist/{xlsx-CRcSzZNq.js → xlsx-C9NVjgaV.js} +122 -120
  42. package/dist/xlsx.mjs +5 -5
  43. package/dist/xlsx_parser_bg.wasm +0 -0
  44. package/package.json +1 -1
  45. package/dist/assets/render-worker-CeK_iqK3.js +0 -10
  46. package/dist/assets/render-worker-DusrDhPk.js +0 -11
  47. package/dist/assets/render-worker-n2ZG0lrQ.js +0 -31
  48. package/dist/plot-area-frame-D5hEOgkJ.js +0 -2903
  49. package/dist/renderer-XFSCOT6m.js +0 -5857
  50. /package/dist/{pixel-budget-Dgjw269h.js → pixel-budget-9P63Bsk5.js} +0 -0
  51. /package/dist/{units-EJdC96r6.js → units-BzZ0gAxs.js} +0 -0
@@ -1,19 +1,18 @@
1
1
  import { t as e } from "./chunk-DmhlhrBa.js";
2
- import { $ as t, $t as n, A as r, B as i, Bt as a, C as o, Ct as s, D as c, E as l, Ft as u, Gt as d, Ht as f, It as p, Kt as m, L as h, Lt as g, Mt as _, Q as v, R as y, St as b, Tt as x, U as S, Ut as C, Vt as w, Wt as T, _ as E, a as D, b as O, bt as k, c as A, d as j, en as M, et as N, f as P, ft as F, h as ee, ht as te, it as I, j as L, k as ne, l as R, ln as z, lt as B, m as re, nt as ie, o as V, p as H, r as ae, rt as U, tt as oe, u as se, un as ce, ut as le, w as ue, wt as de, x as fe, xt as pe, yt as me, z as he, zt as W } from "./hyperlink-ArrU3ArU.js";
3
- import { C as G, D as K, M as ge, N as _e, O as ve, S as ye, T as be, _ as q, a as xe, b as Se, d as Ce, f as we, h as Te, i as Ee, l as De, m as Oe, p as ke, t as Ae, u as je, v as Me, w as Ne, x as Pe, y as Fe } from "./canvas-viewer-mechanics-Cpk0YFvM.js";
2
+ import { $ as t, $t as n, A as r, B as i, Bt as a, C as o, Ct as s, D as c, E as l, Ft as u, Gt as d, Ht as f, It as p, Kt as m, L as h, Lt as g, Mt as _, Q as v, R as y, St as b, Tt as x, U as S, Ut as C, Vt as w, Wt as T, _ as E, a as D, b as O, bt as k, c as A, d as j, en as M, et as N, f as P, ft as F, h as ee, ht as te, it as I, j as L, k as ne, l as R, ln as z, lt as B, m as re, nt as ie, o as V, p as H, r as ae, rt as U, tt as oe, u as se, un as ce, ut as le, w as ue, wt as de, x as fe, xt as pe, yt as me, z as he, zt as W } from "./hyperlink-Cxzhet30.js";
3
+ import { C as G, D as K, M as ge, N as _e, O as ve, S as ye, T as be, _ as q, a as xe, b as Se, d as Ce, f as we, h as Te, i as Ee, l as De, m as Oe, p as ke, t as Ae, u as je, v as Me, w as Ne, x as Pe, y as Fe } from "./canvas-viewer-mechanics-DbLz0rYW.js";
4
4
  import { n as Ie } from "./cjk-fallback-bLI3z70h.js";
5
- import { A as Le, C as Re, D as ze, _ as J, c as Be, h as Ve, hn as He, in as Ue, j as We, l as Ge, o as Ke, on as qe, s as Je, sn as Ye, v as Xe, w as Ze } from "./plot-area-frame-D5hEOgkJ.js";
6
- import { l as Qe, s as $e } from "./pixel-budget-Dgjw269h.js";
7
- import { a as et, i as Y, r as tt } from "./units-EJdC96r6.js";
8
- import { L as nt } from "./three-d-YYghQndN.js";
9
- import { k as rt } from "./renderer-XFSCOT6m.js";
5
+ import { Ct as Le, Et as Re, G as ze, J as Be, K as Ve, Pt as He, Tt as Ue, a as We, c as Ge, gt as Ke, ht as J, l as qe, lt as Je, n as Ye, pt as Xe, q as Ze, xt as Qe } from "./plot-area-frame-DLTYKHNP.js";
6
+ import { a as $e, i as Y, r as et } from "./units-BzZ0gAxs.js";
7
+ import { l as tt, s as nt } from "./pixel-budget-9P63Bsk5.js";
8
+ import { j as rt } from "./renderer-B4GZb5We.js";
10
9
  import { i as it, s as at } from "./raster-target-ojDdQizC.js";
11
- import { a as ot } from "./resource-measurement-CJsgolre.js";
10
+ import { a as ot } from "./resource-measurement-SHQCbkh2.js";
12
11
  import { n as st } from "./renderer-module-contract-D91rkYHH.js";
13
12
  import { n as ct, r as lt, t as ut } from "./visible-index-BgiHEc1z.js";
14
13
  import { n as dt } from "./line-metrics-B60C86uh.js";
15
14
  import { t as ft } from "./bounded-raw-part-cache-Cg1BsSZQ.js";
16
- import { a as pt, c as mt, d as ht, f as gt, i as _t, l as vt, m as yt, n as bt, o as xt, p as St, s as Ct, t as wt, u as Tt } from "./worksheet-pull-client-eIcQ-xlD.js";
15
+ import { a as pt, c as mt, d as ht, f as gt, i as _t, l as vt, m as yt, n as bt, o as xt, p as St, s as Ct, t as wt, u as Tt } from "./worksheet-pull-client-BM8ywvbu.js";
17
16
  //#region packages/core/src/sparkline/renderer.ts
18
17
  function Et(e, t, n) {
19
18
  let { values: r } = n;
@@ -37,7 +36,7 @@ function Et(e, t, n) {
37
36
  e.moveTo(s, t), e.lineTo(s + l, t), e.stroke(), e.restore();
38
37
  }
39
38
  let v = r.length, y = (e) => v === 1 ? s + l / 2 : s + e / (v - 1) * l;
40
- e.save(), e.strokeStyle = i, e.lineCap = "round", e.lineJoin = "round", e.lineWidth = (n.lineWeight ?? .75) * et, e.beginPath();
39
+ e.save(), e.strokeStyle = i, e.lineCap = "round", e.lineJoin = "round", e.lineWidth = (n.lineWeight ?? .75) * $e, e.beginPath();
41
40
  let b = !1, x = n.displayEmptyCellsAs ?? "gap";
42
41
  for (let t = 0; t < v; t++) {
43
42
  let n = r[t];
@@ -673,16 +672,16 @@ function vn(e) {
673
672
  }
674
673
  function yn() {
675
674
  let e = /* @__PURE__ */ new Date();
676
- return Ge(new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate())), !1);
675
+ return Be(new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate())), !1);
677
676
  }
678
677
  function bn() {
679
- return Ge(new Date(Date.now()), !1);
678
+ return Be(new Date(Date.now()), !1);
680
679
  }
681
680
  function xn(e, t, n) {
682
- return Math.floor(Ge(new Date(Date.UTC(e, t - 1, n)), !1));
681
+ return Math.floor(Be(new Date(Date.UTC(e, t - 1, n)), !1));
683
682
  }
684
683
  function Sn(e) {
685
- return Be(Math.floor(e), !1);
684
+ return Ze(Math.floor(e), !1);
686
685
  }
687
686
  function Cn(e) {
688
687
  let t = Sn(e);
@@ -852,7 +851,7 @@ function Fn(e) {
852
851
  };
853
852
  }
854
853
  function In(e, t, n = !1) {
855
- let r = Be(e, n), i = r.getUTCFullYear(), a = r.getUTCMonth() + 1, o = r.getUTCDate(), s = r.getUTCDay(), c = r.getUTCHours(), l = r.getUTCMinutes(), u = r.getUTCSeconds(), d = t.split(";")[0], f = /am\/pm|a\/p/i.test(d), p = null, m = () => p ??= Fn(r), h = "", g = 0, _ = !1;
854
+ let r = Ze(e, n), i = r.getUTCFullYear(), a = r.getUTCMonth() + 1, o = r.getUTCDate(), s = r.getUTCDay(), c = r.getUTCHours(), l = r.getUTCMinutes(), u = r.getUTCSeconds(), d = t.split(";")[0], f = /am\/pm|a\/p/i.test(d), p = null, m = () => p ??= Fn(r), h = "", g = 0, _ = !1;
856
855
  for (; g < d.length;) {
857
856
  let t = d[g];
858
857
  if (t === "\"") {
@@ -939,7 +938,7 @@ function Un(e) {
939
938
  return t ? `-${i}` : i;
940
939
  }
941
940
  function Wn(e, t, n, r = !1) {
942
- if (t === 14 && !n) return { text: Ke(e, r) };
941
+ if (t === 14 && !n) return { text: ze(e, r) };
943
942
  let i = kn[t];
944
943
  if (i) return { text: In(e, i, r) };
945
944
  if (n && n.trim().toLowerCase() === "general") return { text: Un(e) };
@@ -1172,11 +1171,11 @@ function tr(e, t, n) {
1172
1171
  }
1173
1172
  if (r.exp) {
1174
1173
  let e = Math.max(r.intSpec.length, 1), t = r.fracSpec.length, n = 0, i = 0;
1175
- o !== 0 && (i = Math.floor(Math.log10(o)), i = Math.floor(i / e) * e, n = o / 10 ** i, parseFloat(Je(n, t)) >= 10 ** e && (i += e, n = o / 10 ** i));
1176
- let [s, c = ""] = Je(n, t).split(".");
1174
+ o !== 0 && (i = Math.floor(Math.log10(o)), i = Math.floor(i / e) * e, n = o / 10 ** i, parseFloat(Ve(n, t)) >= 10 ** e && (i += e, n = o / 10 ** i));
1175
+ let [s, c = ""] = Ve(n, t).split(".");
1177
1176
  return a + nr(r, Qn(s, r.intSpec, !1), $n(c, r.fracSpec), "E" + (i < 0 ? "-" : r.exp.plus ? "+" : "") + String(Math.abs(i)).padStart(r.exp.width, "0"));
1178
1177
  }
1179
- let s = r.fracSpec.length, [c, l = ""] = Je(o, s).split("."), u = c.replace(/^0+/, ""), d = /[0]/.test(r.intSpec) || r.intSpec === "" && !1;
1178
+ let s = r.fracSpec.length, [c, l = ""] = Ve(o, s).split("."), u = c.replace(/^0+/, ""), d = /[0]/.test(r.intSpec) || r.intSpec === "" && !1;
1180
1179
  return u === "" && d && (u = "0"), a + nr(r, Qn(u, r.intSpec, r.grouping), $n(l, r.fracSpec), "");
1181
1180
  }
1182
1181
  function nr(e, t, n, r) {
@@ -1525,10 +1524,10 @@ function kr(e, t = 8) {
1525
1524
  return e / t;
1526
1525
  }
1527
1526
  function Ar(e) {
1528
- return Math.round(e * et);
1527
+ return Math.round(e * $e);
1529
1528
  }
1530
1529
  function jr(e) {
1531
- return e / et;
1530
+ return e / $e;
1532
1531
  }
1533
1532
  //#endregion
1534
1533
  //#region packages/xlsx/src/internal/grid-axis-geometry.ts
@@ -1878,7 +1877,7 @@ function $r(e, t, n, r) {
1878
1877
  }
1879
1878
  var ei = "#7a7a7a";
1880
1879
  function ti(e, t) {
1881
- let n = t * et, r = typeof OffscreenCanvas < "u" ? new OffscreenCanvas(1, 1) : typeof document < "u" ? document.createElement("canvas") : null;
1880
+ let n = t * $e, r = typeof OffscreenCanvas < "u" ? new OffscreenCanvas(1, 1) : typeof document < "u" ? document.createElement("canvas") : null;
1882
1881
  if (!r) return 8;
1883
1882
  let i = r.getContext("2d");
1884
1883
  if (!i) return 8;
@@ -2150,11 +2149,11 @@ function fi(e, t, n) {
2150
2149
  return `rgb(${Math.round(a * d + c * (1 - d))},${Math.round(o * d + l * (1 - d))},${Math.round(s * d + u * (1 - d))})`;
2151
2150
  }
2152
2151
  function $(e, t, n = 1, r) {
2153
- let i = Math.round(e * et * n * t);
2154
- return r ? Math.max(i, Math.round(dt(r, e * et * t))) : i;
2152
+ let i = Math.round(e * $e * n * t);
2153
+ return r ? Math.max(i, Math.round(dt(r, e * $e * t))) : i;
2155
2154
  }
2156
2155
  function pi(e, t = 1, n, r = "") {
2157
- return `${e.italic ? "italic " : ""}${e.bold ? "bold " : ""}${Math.max(1, Math.round(e.size * et * t))}px ${Xr(e.name, n, r)}`;
2156
+ return `${e.italic ? "italic " : ""}${e.bold ? "bold " : ""}${Math.max(1, Math.round(e.size * $e * t))}px ${Xr(e.name, n, r)}`;
2158
2157
  }
2159
2158
  function mi(e, t, n, r, i, a, o, s, c, l, u) {
2160
2159
  if (t.length === 0) return;
@@ -3460,7 +3459,7 @@ function _a(e, t, n, r, i, a, o, c, l, u, d, f, p, m, h, g, _ = t.images) {
3460
3459
  let D = $r(d + (C - v) - l, T, g, h), O = f + (w - y) - u;
3461
3460
  if (D + T < b || D > b + p || O + E < f || O > f + m) continue;
3462
3461
  let k = () => {
3463
- c ? Ue(e, c, t.srcRect, D, O, T, E) : s(e, "tiff", {
3462
+ c ? Le(e, c, t.srcRect, D, O, T, E) : s(e, "tiff", {
3464
3463
  x: D,
3465
3464
  y: O,
3466
3465
  width: T,
@@ -3534,7 +3533,7 @@ function ya(e, t, n, r, i, a, o, c, l) {
3534
3533
  Ea(e, t, i, a);
3535
3534
  }
3536
3535
  else if (t.geom.type === "preset") {
3537
- let n = Xe(t.fill ?? (t.fillColor ? {
3536
+ let n = Ke(t.fill ?? (t.fillColor ? {
3538
3537
  fillType: "solid",
3539
3538
  color: t.fillColor
3540
3539
  } : null), e, 0, 0, i, a, t.rot), r = t.strokeColor && t.strokeWidth > 0 ? () => Oa(e, t, i, a) : null;
@@ -3543,7 +3542,7 @@ function ya(e, t, n, r, i, a, o, c, l) {
3543
3542
  let n = t.geom, r = Ur(n.imagePath, n.duotone), o = c?.get(r), l = Hr(c, r, "tiff");
3544
3543
  if (o || l) {
3545
3544
  let t = n.alpha, r = () => {
3546
- o ? Ue(e, o, n.srcRect, 0, 0, i, a) : s(e, "tiff", {
3545
+ o ? Le(e, o, n.srcRect, 0, 0, i, a) : s(e, "tiff", {
3547
3546
  x: 0,
3548
3547
  y: 0,
3549
3548
  width: i,
@@ -3595,7 +3594,7 @@ function Ta(e, t, n, r, i, a) {
3595
3594
  let o = t.lIns / Y * i, s = t.rIns / Y * i, c = t.tIns / Y * i, l = t.bIns / Y * i, u = Math.max(0, n - o - s), d = Math.max(0, r - c - l);
3596
3595
  if (u <= 0 || d <= 0) return;
3597
3596
  let f = (e) => {
3598
- let t = (e.size > 0 ? e.size : Zr) * et * i, n = Xr(e.fontFace, a, e.text);
3597
+ let t = (e.size > 0 ? e.size : Zr) * $e * i, n = Xr(e.fontFace, a, e.text);
3599
3598
  return {
3600
3599
  font: `${e.italic ? "italic " : ""}${e.bold ? "bold " : ""}${t}px ${n}`,
3601
3600
  px: t
@@ -3609,10 +3608,10 @@ function Ta(e, t, n, r, i, a) {
3609
3608
  for (let n of t.paragraphs) {
3610
3609
  let r = n.align || "l", a = (n.marL ?? 0) / Y * i, o = (n.marR ?? 0) / Y * i, s = (n.indent ?? 0) / Y * i, c = Math.max(0, s), l = Math.max(0, u - a - o), d = !1, g = () => d ? a : a + c, _ = () => d ? l : l - c, v = [], y = 0, b = 0, x = 0, S = !1, C = n.spaceLine?.type === "pct", w = (e) => {
3611
3610
  let r = e;
3612
- return n.spaceLine && (n.spaceLine.type === "pct" ? r *= n.spaceLine.val / 1e5 : r = n.spaceLine.val * et * i), t.autoFit === "norm" && t.lnSpcReduction != null && n.spaceLine?.type !== "pts" && (r *= 1 - t.lnSpcReduction), r;
3611
+ return n.spaceLine && (n.spaceLine.type === "pct" ? r *= n.spaceLine.val / 1e5 : r = n.spaceLine.val * $e * i), t.autoFit === "norm" && t.lnSpcReduction != null && n.spaceLine?.type !== "pts" && (r *= 1 - t.lnSpcReduction), r;
3613
3612
  }, T = () => {
3614
3613
  if (b === 0) {
3615
- let e = (E || Zr) * et * i, t = Math.max(dt(D, e), dt(O, e)), n = e * 1.2;
3614
+ let e = (E || Zr) * $e * i, t = Math.max(dt(D, e), dt(O, e)), n = e * 1.2;
3616
3615
  b = C ? n : Math.max(n, t), x = p(`${e}px ${Xr(D)}`, e);
3617
3616
  }
3618
3617
  b = w(b), h.push({
@@ -3633,7 +3632,7 @@ function Ta(e, t, n, r, i, a) {
3633
3632
  if (t.type === "math") {
3634
3633
  let e = ba.get(t.nodes);
3635
3634
  if (!e) continue;
3636
- let n = (t.fontSize ?? (E || Zr)) * et * i, o = e.widthEm * n, s = e.ascentEm * n, c = e.descentEm * n, u = t.color ?? "#000000";
3635
+ let n = (t.fontSize ?? (E || Zr)) * $e * i, o = e.widthEm * n, s = e.ascentEm * n, c = e.descentEm * n, u = t.color ?? "#000000";
3637
3636
  if (t.display) {
3638
3637
  T(), h.push({
3639
3638
  segs: [{
@@ -3738,7 +3737,7 @@ function Ta(e, t, n, r, i, a) {
3738
3737
  }
3739
3738
  }
3740
3739
  function Ea(e, t, n, r) {
3741
- let i = Xe(t.fill ?? (t.fillColor ? {
3740
+ let i = Ke(t.fill ?? (t.fillColor ? {
3742
3741
  fillType: "solid",
3743
3742
  color: t.fillColor
3744
3743
  } : null), e, 0, 0, n, r, t.rot);
@@ -3763,8 +3762,8 @@ function Da(e) {
3763
3762
  function Oa(e, t, n, r) {
3764
3763
  let i = Da(t);
3765
3764
  if (i) {
3766
- if (Ve(e, i, 1 / Y), i.fill) {
3767
- let a = Xe(i.fill, e, 0, 0, n, r, t.rot);
3765
+ if (Xe(e, i, 1 / Y), i.fill) {
3766
+ let a = Ke(i.fill, e, 0, 0, n, r, t.rot);
3768
3767
  a && (e.strokeStyle = a);
3769
3768
  }
3770
3769
  e.stroke();
@@ -3903,7 +3902,7 @@ function Na(e) {
3903
3902
  }
3904
3903
  }
3905
3904
  function Pa(e) {
3906
- return Re(e);
3905
+ return Qe(e);
3907
3906
  }
3908
3907
  function Fa(e) {
3909
3908
  switch (e) {
@@ -3944,7 +3943,7 @@ function La(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g = t.charts, _, v,
3944
3943
  y: j / i,
3945
3944
  w: O / i,
3946
3945
  h: k / i
3947
- }, et, 0, _, v, (e) => h?.get(Ze(e)), y), e.restore(), e.restore());
3946
+ }, $e, 0, _, v, (e) => h?.get(Ye(e)), y), e.restore(), e.restore());
3948
3947
  }
3949
3948
  }
3950
3949
  var Ra = "600 12px \"Meiryo UI\", \"Segoe UI\", sans-serif", za = "11px \"Meiryo UI\", \"Segoe UI\", sans-serif", Ba = "#FFFFFF", Va = "#BFBFBF", Ha = "#F2F2F2", Ua = "#404040", Wa = "#FFFFFF", Ga = "#000000", Ka = "#A5A5A5", qa = "#E7E6E6", Ja = "#A6A6A6", Ya = "#C6C6C6";
@@ -4073,7 +4072,7 @@ function uo(e, t, n, r, i) {
4073
4072
  async function fo(e, t, n, r, i = 0, a = 0, o = null, s = null, c, l = !1, u, d, f, p) {
4074
4073
  let m = t === "image/svg+xml";
4075
4074
  if (m && s) return null;
4076
- let h = qe(t, o, i, a);
4075
+ let h = Ue(t, o, i, a);
4077
4076
  if (!h) return null;
4078
4077
  let g = () => ot(e, t, s, r, {
4079
4078
  widthPt: h.widthPt,
@@ -4119,12 +4118,12 @@ async function po(e, t, n, r) {
4119
4118
  imagePath: t.imagePath,
4120
4119
  mimeType: t.mimeType,
4121
4120
  svgImagePath: t.svgImagePath,
4122
- widthPt: t.nativeExtCx > 0 ? t.nativeExtCx / tt : 0,
4123
- heightPt: t.nativeExtCy > 0 ? t.nativeExtCy / tt : 0,
4121
+ widthPt: t.nativeExtCx > 0 ? t.nativeExtCx / et : 0,
4122
+ heightPt: t.nativeExtCy > 0 ? t.nativeExtCy / et : 0,
4124
4123
  srcRect: t.srcRect ?? null,
4125
4124
  duotone: t.duotone ?? null,
4126
4125
  ...(() => {
4127
- let n = lo(t, e, o, r?.cellScale ?? 1), i = n && r?.effectiveDpr ? Ye(n.width * r.effectiveDpr, n.height * r.effectiveDpr, t.srcRect) : null;
4126
+ let n = lo(t, e, o, r?.cellScale ?? 1), i = n && r?.effectiveDpr ? Re(n.width * r.effectiveDpr, n.height * r.effectiveDpr, t.srcRect) : null;
4128
4127
  return i ? {
4129
4128
  targetWidthPx: i.width,
4130
4129
  targetHeightPx: i.height
@@ -4136,12 +4135,12 @@ async function po(e, t, n, r) {
4136
4135
  imagePath: n.geom.imagePath,
4137
4136
  mimeType: n.geom.mimeType,
4138
4137
  svgImagePath: n.geom.svgImagePath,
4139
- widthPt: t.nativeExtCx > 0 ? t.nativeExtCx * n.w / tt : 0,
4140
- heightPt: t.nativeExtCy > 0 ? t.nativeExtCy * n.h / tt : 0,
4138
+ widthPt: t.nativeExtCx > 0 ? t.nativeExtCx * n.w / et : 0,
4139
+ heightPt: t.nativeExtCy > 0 ? t.nativeExtCy * n.h / et : 0,
4141
4140
  srcRect: n.geom.srcRect ?? null,
4142
4141
  duotone: n.geom.duotone ?? null,
4143
4142
  ...(() => {
4144
- let i = lo(t, e, o, r?.cellScale ?? 1), a = i && r?.effectiveDpr ? Ye(i.width * n.w * r.effectiveDpr, i.height * n.h * r.effectiveDpr, n.geom.srcRect) : null;
4143
+ let i = lo(t, e, o, r?.cellScale ?? 1), a = i && r?.effectiveDpr ? Re(i.width * n.w * r.effectiveDpr, i.height * n.h * r.effectiveDpr, n.geom.srcRect) : null;
4145
4144
  return a ? {
4146
4145
  targetWidthPx: a.width,
4147
4146
  targetHeightPx: a.height
@@ -4154,14 +4153,14 @@ async function po(e, t, n, r) {
4154
4153
  if (!uo(t, e, r?.viewport, l, s)) continue;
4155
4154
  let n = lo(t, e, l, r?.cellScale ?? 1);
4156
4155
  if (!n || !Number.isFinite(n.width) || !Number.isFinite(n.height) || n.width <= 0 || n.height <= 0) continue;
4157
- let i = Le(t.chart), a = {
4158
- widthPt: n.width * (Y / tt),
4159
- heightPt: n.height * (Y / tt),
4156
+ let i = Ge(t.chart), a = {
4157
+ widthPt: n.width * (Y / et),
4158
+ heightPt: n.height * (Y / et),
4160
4159
  targetWidthPx: r?.effectiveDpr === void 0 ? void 0 : n.width * r.effectiveDpr,
4161
4160
  targetHeightPx: r?.effectiveDpr === void 0 ? void 0 : n.height * r.effectiveDpr
4162
4161
  }, o = [], c = !0;
4163
4162
  for (let e of i) {
4164
- let t = ze(e, a);
4163
+ let t = We(e, a);
4165
4164
  if (!t) {
4166
4165
  c = !1;
4167
4166
  break;
@@ -4177,9 +4176,9 @@ async function po(e, t, n, r) {
4177
4176
  usages: o
4178
4177
  });
4179
4178
  }
4180
- let d = We(u.map(({ chart: e }) => e.chart), (e, t) => ze(e, u[t].frame) != null), f = /* @__PURE__ */ new Map();
4179
+ let d = qe(u.map(({ chart: e }) => e.chart), (e, t) => We(e, u[t].frame) != null), f = /* @__PURE__ */ new Map();
4181
4180
  for (let e of d) {
4182
- let { fill: t } = e, n = Ze(t);
4181
+ let { fill: t } = e, n = Ye(t);
4183
4182
  f.set(n, {
4184
4183
  fill: t,
4185
4184
  widthPt: 0,
@@ -4189,7 +4188,7 @@ async function po(e, t, n, r) {
4189
4188
  });
4190
4189
  }
4191
4190
  for (let e of u) for (let { usage: t, size: n } of e.usages) {
4192
- let { fill: e } = t, r = Ze(e), i = f.get(r);
4191
+ let { fill: e } = t, r = Ye(e), i = f.get(r);
4193
4192
  if (!i) continue;
4194
4193
  let a = i.preserveNaturalSize || t.preserveNaturalSize;
4195
4194
  f.set(r, {
@@ -4266,7 +4265,7 @@ async function po(e, t, n, r) {
4266
4265
  t.set(e, null), Vr(t, e, "tiff");
4267
4266
  return;
4268
4267
  }
4269
- if (Qe(n)) throw n;
4268
+ if (tt(n)) throw n;
4270
4269
  t.delete(e);
4271
4270
  }
4272
4271
  }));
@@ -4285,14 +4284,14 @@ function ho(e, t, n, r) {
4285
4284
  return Pr.forWorksheet(a, o), ra(e, a, n, r), Pr.forWorksheet(a, o), mo.set(t, a), a;
4286
4285
  }
4287
4286
  async function go(e, t, n, r = {}, i) {
4288
- let a = () => _o(e, t, n, r, i), o = !e.ws.isDialogSheet && ((e.ws.images?.length ?? 0) > 0 || (e.ws.shapeGroups?.some((e) => e.shapes.some((e) => e.geom.type === "image")) ?? !1) || We((e.ws.charts ?? []).map((e) => e.chart)).length > 0);
4287
+ let a = () => _o(e, t, n, r, i), o = !e.ws.isDialogSheet && ((e.ws.images?.length ?? 0) > 0 || (e.ws.shapeGroups?.some((e) => e.shapes.some((e) => e.geom.type === "image")) ?? !1) || qe((e.ws.charts ?? []).map((e) => e.chart)).length > 0);
4289
4288
  return r.fetchImage && o ? me(r.fetchImage, r.imageResources, a) : a();
4290
4289
  }
4291
4290
  async function _o(e, n, r, i = {}, a) {
4292
4291
  if (i[no]?.() === !1) return;
4293
4292
  let o = e.styles, s = n.getContext("2d");
4294
4293
  if (!s) throw Error("XLSX render target does not provide a 2-D canvas context");
4295
- let c = e.ws.isDialogSheet ? e.ws : ho(s, e.ws, o, e.cjkFallback), l = N(n) ? n.clientWidth || 800 : n.width, u = N(n) ? n.clientHeight || 600 : n.height, d = i.width ?? l, f = i.height ?? u, p = i.dpr ?? t(), m = nt(d * p, f * p), h = m.clamped ? p * m.scale : p, g = /* @__PURE__ */ new Map();
4294
+ let c = e.ws.isDialogSheet ? e.ws : ho(s, e.ws, o, e.cjkFallback), l = N(n) ? n.clientWidth || 800 : n.width, u = N(n) ? n.clientHeight || 600 : n.height, d = i.width ?? l, f = i.height ?? u, p = i.dpr ?? t(), m = Je(d * p, f * p), h = m.clamped ? p * m.scale : p, g = /* @__PURE__ */ new Map();
4296
4295
  if (c.isDialogSheet || await po(c, g, i.fetchImage, {
4297
4296
  viewport: r,
4298
4297
  width: d,
@@ -4624,7 +4623,7 @@ var No = Symbol("retain-xlsx-viewer-fonts"), Po = Symbol("prepare-xlsx-viewer-ro
4624
4623
  c = await Mo(e);
4625
4624
  } else c = t;
4626
4625
  Ao(c.byteLength), s.setSourceBytes(c.byteLength), s.checkpoint("source ready");
4627
- let l = o === "worker" ? (await import("./render-worker-host-BfbnEChF.js")).createRenderWorker() : (await import("./delimited-text-worker-host-BVY-Ecni.js")).createDelimitedTextWorker(), u;
4626
+ let l = o === "worker" ? (await import("./render-worker-host-B5wQfB7U.js")).createRenderWorker() : (await import("./delimited-text-worker-host-BVY-Ecni.js")).createDelimitedTextWorker(), u;
4628
4627
  try {
4629
4628
  let t = new e(l, o, void 0, !1);
4630
4629
  return u = t, t.metrics = s, await t._loadDelimitedText(r === c ? c.slice(0) : c, n, a.policy, i), o === "main" && (t.bridge?.terminate(), t.bridge = null), s.checkpoint("worksheet ready"), s.succeed({ sheets: 1 }), t;
@@ -4660,7 +4659,7 @@ var No = Symbol("retain-xlsx-viewer-fonts"), Po = Symbol("prepare-xlsx-viewer-ro
4660
4659
  s = _e(await ge(s, n.password));
4661
4660
  let c = s === o;
4662
4661
  a.setSourceBytes(s.byteLength), a.checkpoint("container ready");
4663
- let l = i === "worker" ? (await import("./render-worker-host-BfbnEChF.js")).createRenderWorker() : new Lt(), u;
4662
+ let l = i === "worker" ? (await import("./render-worker-host-B5wQfB7U.js")).createRenderWorker() : new Lt(), u;
4664
4663
  try {
4665
4664
  return u = new e(l, i, n.wasmUrl), u.metrics = a, await u._load(s, n, r.policy, (e) => a.observeUsage(e), c), a.checkpoint("workbook index ready"), a.succeed({ sheets: u.sheetCount }), u;
4666
4665
  } catch (e) {
@@ -6130,13 +6129,13 @@ var Us = Symbol("XlsxViewer.borrowedWorkbook"), Ws = Symbol("XlsxViewer.loadSour
6130
6129
  function Ks() {
6131
6130
  return Gs ??= import("./comment-ui-runtime-BsK8pmUT.js");
6132
6131
  }
6133
- var qs = 150, Js = 280, Ys = 200, Xs = 240, Zs = 200, Qs = 30, $s = 50, ec = 1, tc = 1, nc = .45, rc = "data-xlsx-viewer-styles", ic = ".xlsx-tab-strip::-webkit-scrollbar{display:none}[data-xlsx-viewport-input]:focus{outline:none}[data-xlsx-viewport-input]:focus-visible{outline:2px solid var(--ooxml-xlsx-focus-ring,transparent);outline-offset:-2px}.xlsx-tab-nav{background:transparent;transition:background 0.1s;}.xlsx-tab-nav:hover{background:color-mix(in srgb,var(--ooxml-xlsx-chrome-text,#444) 8%,transparent);}.xlsx-zoom-slider{-webkit-appearance:none;appearance:none;background:transparent;height:15px;margin:0;}.xlsx-zoom-slider::-webkit-slider-runnable-track{height:4px;background:var(--ooxml-xlsx-chrome-border,#c4c4c4);border-radius:2px;}.xlsx-zoom-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:12px;height:12px;margin-top:-4px;border-radius:50%;background:var(--ooxml-xlsx-chrome-text-muted,#808080);cursor:pointer;}.xlsx-zoom-slider:hover::-webkit-slider-thumb{background:var(--ooxml-xlsx-chrome-text,#5f5f5f);}.xlsx-zoom-slider::-moz-range-track{height:4px;background:var(--ooxml-xlsx-chrome-border,#c4c4c4);border-radius:2px;}.xlsx-zoom-slider::-moz-range-thumb{width:12px;height:12px;border:none;border-radius:50%;background:var(--ooxml-xlsx-chrome-text-muted,#808080);cursor:pointer;}";
6134
- function ac(e) {
6135
- if (!e.head || e.head.querySelector(`style[${rc}]`)) return;
6132
+ var qs = 150, Js = 280, Ys = 200, Xs = 240, Zs = 200, Qs = 30, $s = 2, ec = 50, tc = 1, nc = 1, rc = .45, ic = "data-xlsx-viewer-styles", ac = ".xlsx-tab-strip::-webkit-scrollbar{display:none}[data-xlsx-viewport-input]:focus{outline:none}[data-xlsx-viewport-input]:focus-visible{outline:2px solid var(--ooxml-xlsx-focus-ring,transparent);outline-offset:-2px}.xlsx-tab-nav{background:transparent;transition:background 0.1s;}.xlsx-tab-nav:hover{background:color-mix(in srgb,var(--ooxml-xlsx-chrome-text,#444) 8%,transparent);}.xlsx-zoom-slider{-webkit-appearance:none;appearance:none;background:transparent;height:15px;margin:0;}.xlsx-zoom-slider::-webkit-slider-runnable-track{height:4px;background:var(--ooxml-xlsx-chrome-border,#c4c4c4);border-radius:2px;}.xlsx-zoom-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:12px;height:12px;margin-top:-4px;border-radius:50%;background:var(--ooxml-xlsx-chrome-text-muted,#808080);cursor:pointer;}.xlsx-zoom-slider:hover::-webkit-slider-thumb{background:var(--ooxml-xlsx-chrome-text,#5f5f5f);}.xlsx-zoom-slider::-moz-range-track{height:4px;background:var(--ooxml-xlsx-chrome-border,#c4c4c4);border-radius:2px;}.xlsx-zoom-slider::-moz-range-thumb{width:12px;height:12px;border:none;border-radius:50%;background:var(--ooxml-xlsx-chrome-text-muted,#808080);cursor:pointer;}";
6133
+ function oc(e) {
6134
+ if (!e.head || e.head.querySelector(`style[${ic}]`)) return;
6136
6135
  let t = e.createElement("style");
6137
- t.setAttribute(rc, ""), t.textContent = ic, e.head.appendChild(t);
6136
+ t.setAttribute(ic, ""), t.textContent = ac, e.head.appendChild(t);
6138
6137
  }
6139
- var oc = {
6138
+ var sc = {
6140
6139
  background: "--ooxml-xlsx-chrome-background",
6141
6140
  surface: "--ooxml-xlsx-chrome-surface",
6142
6141
  mutedSurface: "--ooxml-xlsx-chrome-surface-muted",
@@ -6146,10 +6145,10 @@ var oc = {
6146
6145
  selectedSurface: "--ooxml-xlsx-chrome-selection-background",
6147
6146
  accent: "--ooxml-xlsx-chrome-accent"
6148
6147
  };
6149
- function sc(e, t) {
6150
- return Object.keys(oc).every((n) => e[n] === t[n]);
6148
+ function cc(e, t) {
6149
+ return Object.keys(sc).every((n) => e[n] === t[n]);
6151
6150
  }
6152
- function cc(e) {
6151
+ function lc(e) {
6153
6152
  let t = [...e].sort((e, t) => e.first - t.first || e.last - t.last), n = [];
6154
6153
  for (let e of t) {
6155
6154
  let t = n.at(-1);
@@ -6160,7 +6159,7 @@ function cc(e) {
6160
6159
  }
6161
6160
  return n;
6162
6161
  }
6163
- function lc(e, t) {
6162
+ function uc(e, t) {
6164
6163
  let n = 0, r = e.length - 1;
6165
6164
  for (; n <= r;) {
6166
6165
  let i = n + r >>> 1, a = e[i];
@@ -6170,7 +6169,7 @@ function lc(e, t) {
6170
6169
  }
6171
6170
  return !1;
6172
6171
  }
6173
- function uc(e, t, n) {
6172
+ function dc(e, t, n) {
6174
6173
  let r = 0, i = e.length;
6175
6174
  for (; r < i;) {
6176
6175
  let a = r + i >>> 1;
@@ -6178,12 +6177,12 @@ function uc(e, t, n) {
6178
6177
  }
6179
6178
  return r;
6180
6179
  }
6181
- function dc(e, t) {
6180
+ function fc(e, t) {
6182
6181
  for (let n = 1; n < e.length; n++) if (t(e[n - 1]) > t(e[n])) return [...e].sort((e, n) => t(e) - t(n));
6183
6182
  return e;
6184
6183
  }
6185
- var fc = "#1a73e8", pc = 4, mc = 5, hc = 25e4, gc = 8 * 1024 * 1024, _c = 1 * 1024 * 1024, vc = 65536, yc = 65536, bc = 100;
6186
- function xc(e, t) {
6184
+ var pc = "#1a73e8", mc = 4, hc = 5, gc = 25e4, _c = 8 * 1024 * 1024, vc = 1 * 1024 * 1024, yc = 65536, bc = 65536, xc = 100;
6185
+ function Sc(e, t) {
6187
6186
  let n = Math.min(e.length, Math.max(0, t));
6188
6187
  if (n > 0 && n < e.length) {
6189
6188
  let t = e.charCodeAt(n - 1), r = e.charCodeAt(n);
@@ -6191,7 +6190,7 @@ function xc(e, t) {
6191
6190
  }
6192
6191
  return e.slice(0, n);
6193
6192
  }
6194
- function Sc(e, t) {
6193
+ function Cc(e, t) {
6195
6194
  let n = 0, r = !1;
6196
6195
  for (let t = 0; t < e.length; t++) {
6197
6196
  let i = e.charCodeAt(t);
@@ -6199,17 +6198,17 @@ function Sc(e, t) {
6199
6198
  }
6200
6199
  return e.length + (r ? n + 2 : 0) > t ? null : r ? `"${e.replace(/"/g, "\"\"")}"` : e;
6201
6200
  }
6202
- function Cc(e, t, n, r) {
6201
+ function wc(e, t, n, r) {
6203
6202
  for (let { index: i, edge: a } of t) if (!(a <= r) && Math.abs(e - a) <= n) return i;
6204
6203
  return null;
6205
6204
  }
6206
- function wc(e) {
6205
+ function Tc(e) {
6207
6206
  return {
6208
6207
  border: `2px solid ${e}`,
6209
6208
  background: `color-mix(in srgb, ${e} 8%, transparent)`
6210
6209
  };
6211
6210
  }
6212
- function Tc(e) {
6211
+ function Ec(e) {
6213
6212
  let t = [];
6214
6213
  for (let n of e) {
6215
6214
  let e = n.x + n.width, r = n.y + n.height;
@@ -6255,15 +6254,15 @@ function Tc(e) {
6255
6254
  }
6256
6255
  return r.join("");
6257
6256
  }
6258
- var Ec = 0, Dc = "color-mix(in srgb, #ffb300 8%, transparent)", Oc = "color-mix(in srgb, #fb8c00 8%, transparent)";
6259
- function kc(e, t = {}) {
6260
- let n = e ? "#fb8c00" : "#ffb300", r = e ? t.active : t.match, i = r ?? (e ? Oc : Dc);
6257
+ var Dc = 0, Oc = "color-mix(in srgb, #ffb300 8%, transparent)", kc = "color-mix(in srgb, #fb8c00 8%, transparent)";
6258
+ function Ac(e, t = {}) {
6259
+ let n = e ? "#fb8c00" : "#ffb300", r = e ? t.active : t.match, i = r ?? (e ? kc : Oc);
6261
6260
  return {
6262
6261
  border: `2px solid ${r ?? n}`,
6263
6262
  background: i
6264
6263
  };
6265
6264
  }
6266
- var Ac = class {
6265
+ var jc = class {
6267
6266
  container;
6268
6267
  hostDocument;
6269
6268
  hostWindow;
@@ -6287,7 +6286,7 @@ var Ac = class {
6287
6286
  stashedRowHeights = /* @__PURE__ */ new Map();
6288
6287
  stashedColWidths = /* @__PURE__ */ new Map();
6289
6288
  sizeOverrideStore = /* @__PURE__ */ new Map();
6290
- projectionId = tc++;
6289
+ projectionId = nc++;
6291
6290
  canvasArea;
6292
6291
  scrollHost;
6293
6292
  spacer;
@@ -6398,10 +6397,10 @@ var Ac = class {
6398
6397
  let o = this.hostDocument.defaultView?.ResizeObserver ?? globalThis.ResizeObserver;
6399
6398
  if (o && (this.commentPopupResizeObserver = new o(() => {
6400
6399
  this.scheduleCommentPopupPosition();
6401
- }), this.commentPopupResizeObserver.observe(this.commentPopup)), this.validationPanel = this.overlayHost.validation, ac(this.hostDocument), n.kind === "composite") {
6400
+ }), this.commentPopupResizeObserver.observe(this.commentPopup)), this.validationPanel = this.overlayHost.validation, oc(this.hostDocument), n.kind === "composite") {
6402
6401
  this.tabBar = this.hostDocument.createElement("div"), this.tabBar.style.cssText = `display:flex;align-items:flex-end;height:${Qs}px;flex-shrink:0;background:var(--ooxml-xlsx-chrome-background,#f0f0f0);border-top:1px solid var(--ooxml-xlsx-chrome-border,#c8ccd0);`, this.navPrev = this.makeNavButton("◀", "Scroll tabs left", () => this.scrollTabs(-1)), this.navNext = this.makeNavButton("▶", "Scroll tabs right", () => this.scrollTabs(1)), this.navPrev.dataset.xlsxTabNav = "prev", this.navNext.dataset.xlsxTabNav = "next";
6403
6402
  let e = this.hostDocument.createElement("div");
6404
- e.style.cssText = `display:flex;flex-shrink:0;width:${$s}px;height:100%;`, e.appendChild(this.navPrev), e.appendChild(this.navNext), this.tabStrip = this.hostDocument.createElement("div"), this.tabStrip.style.cssText = `position:relative;display:block;flex:1;min-width:0;height:100%;margin-left:${ec}px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;`, this.tabStrip.classList.add("xlsx-tab-strip"), this.tabStrip.addEventListener("scroll", () => this.updateNavButtons()), this.tabList = this.hostDocument.createElement("div"), this.tabList.style.cssText = `display:flex;align-items:flex-end;height:100%;gap:${ec}px;box-sizing:border-box;`, this.tabList.style.width = "max-content", this.tabList.style.minWidth = "100%", this.tabStrip.appendChild(this.tabList), this.tabBar.appendChild(e), this.tabBar.appendChild(this.tabStrip), this.opts.showZoomSlider !== !1 && this.tabBar.appendChild(this.buildZoomControl());
6403
+ e.style.cssText = `display:flex;flex-shrink:0;width:${ec}px;height:100%;`, e.appendChild(this.navPrev), e.appendChild(this.navNext), this.tabStrip = this.hostDocument.createElement("div"), this.tabStrip.style.cssText = `position:relative;display:block;flex:1;min-width:0;height:100%;margin-left:${tc}px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;`, this.tabStrip.classList.add("xlsx-tab-strip"), this.tabStrip.addEventListener("scroll", () => this.updateNavButtons()), this.tabList = this.hostDocument.createElement("div"), this.tabList.style.cssText = `display:flex;align-items:flex-end;height:100%;gap:${tc}px;box-sizing:border-box;`, this.tabList.style.width = "max-content", this.tabList.style.minWidth = "100%", this.tabStrip.appendChild(this.tabList), this.tabBar.appendChild(e), this.tabBar.appendChild(this.tabStrip), this.opts.showZoomSlider !== !1 && this.tabBar.appendChild(this.buildZoomControl());
6405
6404
  }
6406
6405
  this.gridRegion.appendChild(this.canvasArea), this.wrapper.appendChild(this.gridRegion), n.kind === "composite" && this.wrapper.appendChild(this.tabBar), e.appendChild(this.wrapper), this.installChromeThemeRefresh(), this.rowGutter.addEventListener("pointerdown", (e) => this.onGutterPointerDown(e, "row")), this.colGutter.addEventListener("pointerdown", (e) => this.onGutterPointerDown(e, "col")), this._nativeScrollbars && this.surface.on("scroll", () => {
6407
6406
  if (this.pendingTap = null, this.pendingElementClick = null, this.hideCommentPopup(), this.hideValidationPanel(), this.scrollHost.clientWidth > 0) {
@@ -6424,12 +6423,12 @@ var Ac = class {
6424
6423
  let e = this.hostWindow.getComputedStyle?.bind(this.hostWindow);
6425
6424
  if (!e) return;
6426
6425
  let t = e(this.wrapper), n = {};
6427
- for (let [e, r] of Object.entries(oc)) {
6426
+ for (let [e, r] of Object.entries(sc)) {
6428
6427
  let i = t.getPropertyValue(r).trim();
6429
6428
  i && (n[e] = i);
6430
6429
  }
6431
6430
  let r = n;
6432
- sc(this.chromeColors, r) || (this.chromeColors = r, this.renderGutters(), this.scheduleRender());
6431
+ cc(this.chromeColors, r) || (this.chromeColors = r, this.renderGutters(), this.scheduleRender());
6433
6432
  }
6434
6433
  installChromeThemeRefresh() {
6435
6434
  this.refreshChromeTheme();
@@ -6767,7 +6766,7 @@ var Ac = class {
6767
6766
  return this.currentWorksheet?.rightToLeft === !0;
6768
6767
  }
6769
6768
  updateFooterDirection() {
6770
- this._mountKind === "composite" && (this.tabBar.style.flexDirection = this.isRtl ? "row-reverse" : "row", this.tabStrip.style.marginLeft = this.isRtl ? "0" : `${ec}px`, this.tabStrip.style.marginRight = this.isRtl ? `${ec}px` : "0", this.tabList.style.flexDirection = this.isRtl ? "row-reverse" : "row");
6769
+ this._mountKind === "composite" && (this.tabBar.style.flexDirection = this.isRtl ? "row-reverse" : "row", this.tabStrip.style.marginLeft = this.isRtl ? "0" : `${tc}px`, this.tabStrip.style.marginRight = this.isRtl ? `${tc}px` : "0", this.tabList.style.flexDirection = this.isRtl ? "row-reverse" : "row");
6771
6770
  }
6772
6771
  get maxScrollLeft() {
6773
6772
  return this.syncNativeViewportExtent(), this.viewport.maxX;
@@ -6963,22 +6962,22 @@ var Ac = class {
6963
6962
  if (!t || !n) return null;
6964
6963
  let r = e.maxCells ?? 1e3;
6965
6964
  if (!Number.isFinite(r) || r < 0) throw RangeError("maxCells must be a finite non-negative number.");
6966
- let i = Math.min(cs, Math.floor(r)), a = e.maxTextCharacters ?? _c;
6965
+ let i = Math.min(cs, Math.floor(r)), a = e.maxTextCharacters ?? vc;
6967
6966
  if (!Number.isFinite(a) || a < 0) throw RangeError("maxTextCharacters must be a finite non-negative number.");
6968
6967
  let o = Math.min(ls, Math.floor(a)), s = 0, c = !1, l = (e) => {
6969
6968
  let t = typeof e == "string" ? [e] : e, n = [], r = 0;
6970
6969
  for (let e = 0; e < t.length; e++) {
6971
- let i = t[e], a = typeof i == "string" ? i : i.text, l = Math.max(0, Math.min(yc - r, o - s)), u = xc(a, l);
6970
+ let i = t[e], a = typeof i == "string" ? i : i.text, l = Math.max(0, Math.min(bc - r, o - s)), u = Sc(a, l);
6972
6971
  if (n.push(u), r += u.length, s += u.length, u.length < a.length || e + 1 < t.length && l === 0) {
6973
6972
  c = !0;
6974
6973
  break;
6975
6974
  }
6976
6975
  }
6977
6976
  return n.join("");
6978
- }, u = n.areas.some((e) => e.kind === "sheet"), d = cc(n.areas.flatMap((e) => e.kind === "rows" ? [{
6977
+ }, u = n.areas.some((e) => e.kind === "sheet"), d = lc(n.areas.flatMap((e) => e.kind === "rows" ? [{
6979
6978
  first: e.firstRow,
6980
6979
  last: e.lastRow
6981
- }] : [])), f = cc(n.areas.flatMap((e) => e.kind === "columns" ? [{
6980
+ }] : [])), f = lc(n.areas.flatMap((e) => e.kind === "columns" ? [{
6982
6981
  first: e.firstColumn,
6983
6982
  last: e.lastColumn
6984
6983
  }] : [])), p = n.areas.flatMap((e) => e.kind === "cells" ? [e] : []), m = p.flatMap((e, t) => [{
@@ -6992,13 +6991,13 @@ var Ac = class {
6992
6991
  }]).sort((e, t) => e.row - t.row || Number(e.active) - Number(t.active)), h = /* @__PURE__ */ new Set(), g = 0, _ = [], v = [], y = !1, b = u || f.length > 0 ? [{
6993
6992
  first: 1,
6994
6993
  last: Nr
6995
- }] : cc([...d, ...p.map((e) => ({
6994
+ }] : lc([...d, ...p.map((e) => ({
6996
6995
  first: e.top,
6997
6996
  last: e.bottom
6998
6997
  }))]), x = this.selectionContextRows.get(t);
6999
- x || (x = dc(t.rows, (e) => e.index), this.selectionContextRows.set(t, x));
6998
+ x || (x = fc(t.rows, (e) => e.index), this.selectionContextRows.set(t, x));
7000
6999
  cellScan: for (let e of b) {
7001
- let n = uc(x, e.first, (e) => e.index);
7000
+ let n = dc(x, e.first, (e) => e.index);
7002
7001
  for (; n < x.length;) {
7003
7002
  let r = x[n++];
7004
7003
  if (r.index > e.last) break;
@@ -7007,18 +7006,18 @@ var Ac = class {
7007
7006
  let e = m[g++];
7008
7007
  e.active ? h.add(e.index) : h.delete(e.index), a = !0;
7009
7008
  }
7010
- a && (_ = cc([...h].map((e) => ({
7009
+ a && (_ = lc([...h].map((e) => ({
7011
7010
  first: p[e].left,
7012
7011
  last: p[e].right
7013
7012
  }))));
7014
- let o = u || lc(d, r.index) ? [{
7013
+ let o = u || uc(d, r.index) ? [{
7015
7014
  first: 1,
7016
7015
  last: Z
7017
- }] : cc([...f, ..._]);
7016
+ }] : lc([...f, ..._]);
7018
7017
  for (let e of o) {
7019
7018
  let n = this.selectionContextCells.get(r);
7020
- n || (n = dc(r.cells, (e) => e.col), this.selectionContextCells.set(r, n));
7021
- let a = uc(n, e.first, (e) => e.col);
7019
+ n || (n = fc(r.cells, (e) => e.col), this.selectionContextCells.set(r, n));
7020
+ let a = dc(n, e.first, (e) => e.col);
7022
7021
  for (; a < n.length;) {
7023
7022
  let r = n[a++];
7024
7023
  if (r.col > e.last) break;
@@ -7087,7 +7086,7 @@ var Ac = class {
7087
7086
  if (!this.opts.onSelectionContextChange || this._destroyed || this.selectionContextNotificationFrame !== null || this.selectionContextNotificationMicrotask) return;
7088
7087
  let e = () => {
7089
7088
  if (this.selectionContextNotificationFrame = null, this.selectionContextNotificationMicrotask = !1, this._destroyed) return;
7090
- let e = this.getSelectionContext({ maxTextCharacters: vc });
7089
+ let e = this.getSelectionContext({ maxTextCharacters: yc });
7091
7090
  this.opts.onSelectionContextChange?.(e ? structuredClone(e) : null);
7092
7091
  };
7093
7092
  typeof this.hostWindow.requestAnimationFrame == "function" ? this.selectionContextNotificationFrame = this.hostWindow.requestAnimationFrame(e) : (this.selectionContextNotificationMicrotask = !0, queueMicrotask(e));
@@ -7102,7 +7101,7 @@ var Ac = class {
7102
7101
  this.finishSelectionNotificationChain();
7103
7102
  return;
7104
7103
  }
7105
- if (this.selectionNotificationCount >= bc) {
7104
+ if (this.selectionNotificationCount >= xc) {
7106
7105
  this.lastNotifiedSelectionState = e ? structuredClone(e) : null, this.finishSelectionNotificationChain();
7107
7106
  return;
7108
7107
  }
@@ -7161,7 +7160,7 @@ var Ac = class {
7161
7160
  edge: t.x + t.w
7162
7161
  }));
7163
7162
  }
7164
- let o = Cc(a, i, pc, s);
7163
+ let o = wc(a, i, mc, s);
7165
7164
  return o === null ? null : {
7166
7165
  kind: "col",
7167
7166
  index: o,
@@ -7181,7 +7180,7 @@ var Ac = class {
7181
7180
  edge: t.y + t.h
7182
7181
  }));
7183
7182
  }
7184
- let a = Cc(o, i, pc, c);
7183
+ let a = wc(o, i, mc, c);
7185
7184
  return a === null ? null : {
7186
7185
  kind: "row",
7187
7186
  index: a,
@@ -7196,10 +7195,10 @@ var Ac = class {
7196
7195
  if (!n || !r) return;
7197
7196
  let i = this.viewport.scale, a = this.canvasArea.getBoundingClientRect();
7198
7197
  if (n.kind === "col") {
7199
- let t = this.screenX(e - a.left, 0), o = Math.max(mc, Math.round((t - n.originScaled) / i));
7198
+ let t = this.screenX(e - a.left, 0), o = Math.max(hc, Math.round((t - n.originScaled) / i));
7200
7199
  r.colWidths[n.index] = kr(o, n.mdw), this.recordSizeOverride("col", n.index);
7201
7200
  } else {
7202
- let e = t - a.top, o = Math.max(mc, Math.round((e - n.originScaled) / i));
7201
+ let e = t - a.top, o = Math.max(hc, Math.round((e - n.originScaled) / i));
7203
7202
  r.rowHeights[n.index] = jr(o), this.recordSizeOverride("row", n.index);
7204
7203
  }
7205
7204
  Pr.invalidate(r), this.updateSpacerSize(r), this.updateSelectionOverlay(), this.scheduleRender();
@@ -7258,12 +7257,12 @@ var Ac = class {
7258
7257
  c1: n.left,
7259
7258
  c2: n.right
7260
7259
  }, l = o - a + 1, u = c - s + 1;
7261
- if (l > Math.floor(hc / u)) return {
7260
+ if (l > Math.floor(gc / u)) return {
7262
7261
  status: "too-large",
7263
7262
  limit: "cells"
7264
7263
  };
7265
7264
  let d = l * u, f = Math.max(0, l - 1) + l * Math.max(0, u - 1);
7266
- if (f > gc) return {
7265
+ if (f > _c) return {
7267
7266
  status: "too-large",
7268
7267
  limit: "text"
7269
7268
  };
@@ -7272,7 +7271,7 @@ var Ac = class {
7272
7271
  if (n.col < s || n.col > c) continue;
7273
7272
  let r = n.value, i = this.wb?.cellText(e, n) ?? "";
7274
7273
  if (this.wb || (r.type === "text" ? i = r.runs ? r.runs.map((e) => e.text).join("") : r.text : r.type === "number" ? i = String(r.number) : r.type === "bool" ? i = r.bool ? "TRUE" : "FALSE" : r.type === "error" && (i = r.error)), i) {
7275
- let e = Sc(i, gc - f);
7274
+ let e = Cc(i, _c - f);
7276
7275
  if (e === null) return {
7277
7276
  status: "too-large",
7278
7277
  limit: "text"
@@ -7350,7 +7349,7 @@ var Ac = class {
7350
7349
  last: Nr,
7351
7350
  start: a,
7352
7351
  end: s
7353
- }], h = this.opts.selectionColor ?? fc, { background: g } = wc(h), _ = /* @__PURE__ */ new Set(), v = [], y = [];
7352
+ }], h = this.opts.selectionColor ?? pc, { background: g } = Tc(h), _ = /* @__PURE__ */ new Set(), v = [], y = [];
7354
7353
  for (let t of e.areas) {
7355
7354
  let e = t.kind === "cells" ? {
7356
7355
  top: t.top,
@@ -7422,7 +7421,7 @@ var Ac = class {
7422
7421
  if (v.length > 0) {
7423
7422
  let t = "http://www.w3.org/2000/svg", n = this.hostDocument.createElementNS(t, "svg");
7424
7423
  n.setAttribute("data-xlsx-selection-fill", ""), n.style.cssText = "position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none;";
7425
- let r = e.areas.length > 1, i = this._cellRect(e.activeCell.row, e.activeCell.col), a = `xlsx-selection-mask-${++Ec}`, c = this.hostDocument.createElementNS(t, "defs"), l = this.hostDocument.createElementNS(t, "mask");
7424
+ let r = e.areas.length > 1, i = this._cellRect(e.activeCell.row, e.activeCell.col), a = `xlsx-selection-mask-${++Dc}`, c = this.hostDocument.createElementNS(t, "defs"), l = this.hostDocument.createElementNS(t, "mask");
7426
7425
  l.setAttribute("id", a), l.setAttribute("maskUnits", "userSpaceOnUse"), l.setAttribute("x", "0"), l.setAttribute("y", "0"), l.setAttribute("width", String(o)), l.setAttribute("height", String(s));
7427
7426
  let u = this.hostDocument.createElementNS(t, "path");
7428
7427
  if (u.setAttribute("d", v.join("")), u.setAttribute("fill", "#fff"), l.appendChild(u), i) for (let e of m) for (let n of p) {
@@ -7434,7 +7433,7 @@ var Ac = class {
7434
7433
  c.appendChild(l), n.appendChild(c);
7435
7434
  let d = this.hostDocument.createElementNS(t, "rect");
7436
7435
  d.setAttribute("x", "0"), d.setAttribute("y", "0"), d.setAttribute("width", String(o)), d.setAttribute("height", String(s)), d.setAttribute("fill", g), d.setAttribute("mask", `url(#${a})`), n.appendChild(d);
7437
- let f = r ? "" : Tc(y);
7436
+ let f = r ? "" : Ec(y);
7438
7437
  if (f) {
7439
7438
  let e = this.hostDocument.createElementNS(t, "path");
7440
7439
  e.setAttribute("data-xlsx-selection-border", ""), e.setAttribute("d", f), e.setAttribute("fill", "none"), e.setAttribute("stroke", h), e.setAttribute("stroke-width", "2"), e.setAttribute("stroke-linecap", "square"), e.setAttribute("stroke-linejoin", "miter"), n.appendChild(e);
@@ -7458,7 +7457,7 @@ var Ac = class {
7458
7457
  i.setAttribute("data-xlsx-element-context-clip", ""), i.style.cssText = `position:absolute;left:${r.clip.x}px;top:${r.clip.y}px;width:${r.clip.width}px;height:${r.clip.height}px;overflow:hidden;pointer-events:none;`;
7459
7458
  let a = this.hostDocument.createElement("div");
7460
7459
  a.setAttribute("data-xlsx-element-context-outline", e.elementType);
7461
- let o = this.opts.selectionColor ?? fc;
7460
+ let o = this.opts.selectionColor ?? pc;
7462
7461
  a.style.cssText = `position:absolute;left:${r.rect.x - r.clip.x}px;top:${r.rect.y - r.clip.y}px;width:${r.rect.width}px;height:${r.rect.height}px;box-sizing:border-box;border:2px solid ${o};background:color-mix(in srgb, ${o} 6%, transparent);transform:rotate(${r.rotation}deg);transform-origin:center;pointer-events:none;`, i.appendChild(a), this.overlayHost.appendSelection(i);
7463
7462
  }
7464
7463
  maybeDrawValidationDropdown() {
@@ -7483,7 +7482,7 @@ var Ac = class {
7483
7482
  this.overlayHost.clearFind();
7484
7483
  let e = this.currentWorksheet;
7485
7484
  if (!e) return;
7486
- let t = this.viewport.scale, n = (e) => Math.round(e * t), r = n(50), i = n(22), a = e.freezeRows ?? 0, o = e.freezeCols ?? 0, s = Q(e).roundedFrozenExtent(t), c = r + s.width, l = i + s.height, u = kc(!1, this.opts.findHighlightColors), d = kc(!0, this.opts.findHighlightColors);
7485
+ let t = this.viewport.scale, n = (e) => Math.round(e * t), r = n(50), i = n(22), a = e.freezeRows ?? 0, o = e.freezeCols ?? 0, s = Q(e).roundedFrozenExtent(t), c = r + s.width, l = i + s.height, u = Ac(!1, this.opts.findHighlightColors), d = Ac(!0, this.opts.findHighlightColors);
7487
7486
  for (let e of this._find.sheetHighlights(this.currentSheet)) {
7488
7487
  let t = this._cellRect(e.row, e.col);
7489
7488
  if (!t) continue;
@@ -8105,7 +8104,7 @@ var Ac = class {
8105
8104
  }
8106
8105
  tabCss(e, t) {
8107
8106
  let n = this.tabStyle(t, this.tabColors[e]);
8108
- return this._hiddenSheetMode !== "show" && this.wb?.isHidden(e) && (n += this._hiddenSheetMode === "skip" ? "display:none;" : `opacity:${nc};`), n;
8107
+ return this._hiddenSheetMode !== "show" && this.wb?.isHidden(e) && (n += this._hiddenSheetMode === "skip" ? "display:none;" : `opacity:${rc};`), n;
8109
8108
  }
8110
8109
  buildZoomControl() {
8111
8110
  let e = this.opts.zoomMin ?? .1, t = this.opts.zoomMax ?? 4, n = this.viewport.scale, r = this.hostDocument.createElement("div");
@@ -8114,7 +8113,10 @@ var Ac = class {
8114
8113
  let r = this.hostDocument.createElement("button");
8115
8114
  return r.type = "button", r.textContent = e, r.setAttribute("aria-label", t), r.title = t, r.style.cssText = "width:18px;height:18px;padding:0;border:none;background:transparent;color:var(--ooxml-xlsx-chrome-text-muted,#555);font-size:14px;line-height:1;cursor:pointer;border-radius:3px;", r.addEventListener("click", n), r;
8116
8115
  }, a = this.hostDocument.createElement("input");
8117
- a.type = "range", a.min = "0", a.max = "100", a.step = "any", a.value = String(this.zoomScaleToPos(n, e, t)), a.setAttribute("aria-label", "Zoom"), a.title = "Zoom", a.classList.add("xlsx-zoom-slider"), a.style.cssText = "width:90px;cursor:pointer;", a.addEventListener("input", () => this.setScale(this.zoomPosToScale(Number(a.value), e, t)));
8116
+ a.type = "range", a.min = "0", a.max = "100", a.step = "any", a.value = String(this.zoomScaleToPos(n, e, t)), a.setAttribute("aria-label", "Zoom"), a.title = "Zoom", a.classList.add("xlsx-zoom-slider"), a.style.cssText = "width:90px;cursor:pointer;", a.addEventListener("input", () => {
8117
+ let n = Number(a.value), r = Math.abs(n - 50) <= $s ? 50 : n;
8118
+ r === 50 && (a.value = "50"), this.setScale(this.zoomPosToScale(r, e, t));
8119
+ });
8118
8120
  let o = this.hostDocument.createElement("span");
8119
8121
  return o.textContent = `${Math.round(n * 100)}%`, o.style.cssText = "min-width:42px;margin-left:6px;text-align:right;font-variant-numeric:tabular-nums;", r.appendChild(i("−", "Zoom out", () => this.zoomOut())), r.appendChild(a), r.appendChild(i("+", "Zoom in", () => this.zoomIn())), r.appendChild(o), this.zoomSlider = a, this.zoomLabel = o, r;
8120
8122
  }
@@ -8262,7 +8264,7 @@ var Ac = class {
8262
8264
  destroyedError() {
8263
8265
  return /* @__PURE__ */ Error(this._mountKind === "sheet" ? "XlsxSheetViewer is destroyed" : "XlsxViewer is destroyed");
8264
8266
  }
8265
- }, jc = class e extends Ac {
8267
+ }, Mc = class e extends jc {
8266
8268
  static fromWorkbook(t, n, r = {}) {
8267
8269
  return new e(t, {
8268
8270
  ...r,
@@ -8275,7 +8277,7 @@ var Ac = class {
8275
8277
  async load(e) {
8276
8278
  await this[Ws](e);
8277
8279
  }
8278
- }, Mc = class e {
8280
+ }, Nc = class e {
8279
8281
  engine;
8280
8282
  canvasMount;
8281
8283
  destroyed = !1;
@@ -8293,7 +8295,7 @@ var Ac = class {
8293
8295
  this.canvasMount = new Ae(e, {
8294
8296
  wrapperCssText: `position:relative;display:inline-block;vertical-align:top;overflow:hidden;width:${e.style.width || `${i.width || e.width}px`};height:${e.style.height || `${i.height || e.height}px`};`,
8295
8297
  restoreMode: "style-and-bitmap"
8296
- }), this.engine = new Ac(this.canvasMount.wrapper, {
8298
+ }), this.engine = new jc(this.canvasMount.wrapper, {
8297
8299
  ...t,
8298
8300
  onResourceMetrics: (e) => {
8299
8301
  this.lastMetrics = e, t.onResourceMetrics?.(e);
@@ -8461,22 +8463,22 @@ var Ac = class {
8461
8463
  destroyedError() {
8462
8464
  return /* @__PURE__ */ Error("XlsxSheetViewer is destroyed");
8463
8465
  }
8464
- }, Nc = /* @__PURE__ */ e({
8466
+ }, Pc = /* @__PURE__ */ e({
8465
8467
  MAX_SELECTION_AREAS: () => 128,
8466
8468
  MAX_SELECTION_CONTEXT_CELLS: () => cs,
8467
8469
  MAX_SELECTION_CONTEXT_TEXT_CHARACTERS: () => ls,
8468
- OoxmlDecodedImageLimitError: () => $e,
8470
+ OoxmlDecodedImageLimitError: () => nt,
8469
8471
  OoxmlError: () => z,
8470
8472
  OoxmlResourceLimitError: () => ce,
8471
8473
  TiffDecodeError: () => it,
8472
- XlsxSheetViewer: () => Mc,
8473
- XlsxViewer: () => jc,
8474
+ XlsxSheetViewer: () => Nc,
8475
+ XlsxViewer: () => Mc,
8474
8476
  XlsxWorkbook: () => Lo,
8475
8477
  autoResize: () => be,
8476
- isOoxmlDecodedImageLimitError: () => Qe,
8478
+ isOoxmlDecodedImageLimitError: () => tt,
8477
8479
  isTiffDecodeError: () => at,
8478
8480
  openExternalHyperlink: () => ae,
8479
8481
  resolveSharedStrings: () => _t
8480
8482
  });
8481
8483
  //#endregion
8482
- export { cs as a, ss as i, Mc as n, ls as o, jc as r, Lo as s, Nc as t };
8484
+ export { cs as a, ss as i, Nc as n, ls as o, Mc as r, Lo as s, Pc as t };