@harbour-enterprises/superdoc 0.11.29 → 0.11.30

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 (31) hide show
  1. package/dist/chunks/{index-Y7BlAr93.es.js → index-BIKukPks.es.js} +2 -2
  2. package/dist/chunks/{index-CqRwYOdx.cjs → index-BJQ3rSJD.cjs} +1 -1
  3. package/dist/chunks/{index-CPZ-IxHT.es.js → index-D5LUU_DK.es.js} +1 -1
  4. package/dist/chunks/{index-BXKGjuVW.cjs → index-D8Qchtwe.cjs} +1 -1
  5. package/dist/chunks/{super-editor.es-CsEQg4xc.es.js → super-editor.es-B9zU4phN.es.js} +3 -3
  6. package/dist/chunks/{super-editor.es-Bl9myfzE.cjs → super-editor.es-DR8TyHgu.cjs} +3 -3
  7. package/dist/chunks/{url-t15h9onH.es.js → url-ChEJem8_.es.js} +1 -1
  8. package/dist/chunks/{url-6Xu7gR4T.cjs → url-lfePTVJU.cjs} +1 -1
  9. package/dist/chunks/xml-js-BXHFNveP.cjs +10 -0
  10. package/dist/chunks/{xml-js-kwrvzyhm.es.js → xml-js-Dq803VXB.es.js} +739 -753
  11. package/dist/core/SuperDoc.d.ts +3 -2
  12. package/dist/core/SuperDoc.d.ts.map +1 -1
  13. package/dist/super-editor/ai-writer.es.js +2 -2
  14. package/dist/super-editor/chunks/{converter-CJL8YHIz.js → converter-69UAZ0Ft.js} +2 -2
  15. package/dist/super-editor/chunks/{docx-zipper-Bdd3jp6o.js → docx-zipper-CvLDRHYT.js} +1 -1
  16. package/dist/super-editor/chunks/{editor-DE58B9UE.js → editor-Br7gJJbN.js} +3 -3
  17. package/dist/super-editor/chunks/{toolbar-lfYkRb7A.js → toolbar-BX3EQkLT.js} +2 -2
  18. package/dist/super-editor/converter.es.js +1 -1
  19. package/dist/super-editor/docx-zipper.es.js +2 -2
  20. package/dist/super-editor/editor.es.js +3 -3
  21. package/dist/super-editor/file-zipper.es.js +1 -1
  22. package/dist/super-editor/super-editor.es.js +6 -6
  23. package/dist/super-editor/toolbar.es.js +2 -2
  24. package/dist/super-editor.cjs +1 -1
  25. package/dist/super-editor.es.js +1 -1
  26. package/dist/superdoc.cjs +26 -26
  27. package/dist/superdoc.es.js +736 -735
  28. package/dist/superdoc.umd.js +9 -8
  29. package/dist/superdoc.umd.js.map +1 -1
  30. package/package.json +1 -1
  31. package/dist/chunks/xml-js-zhwNEV5e.cjs +0 -10
@@ -1,5 +1,5 @@
1
- import { J as md, g as yd, c as bd, n as jo, L as Wo, H as wd, m as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-CsEQg4xc.es.js";
2
- import { O as Ib, K as Cb, X as fb } from "./chunks/super-editor.es-CsEQg4xc.es.js";
1
+ import { J as md, g as yd, c as bd, n as jo, L as Wo, H as wd, m as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-B9zU4phN.es.js";
2
+ import { O as Ib, K as Cb, X as fb } from "./chunks/super-editor.es-B9zU4phN.es.js";
3
3
  import { Y as Vl, r as W, Z as ui, p as Ge, _ as Vn, a as ae, $ as zn, a0 as ua, D as dt, i as ht, q as ji, l as wt, y as Fe, a1 as kd, N as Zt, u as qt, a2 as xd, a3 as Rd, a4 as Xo, g as Ji, K as Us, O as jr, j as Ii, k as Di, h as da, U as Nd, s as Md, A as Wr, F as jt, R as GA, m as Ct, E as mi, I as ms, C as re, V as Ld, S as Gd, W as Td, J as qi, P as Es, G as ar, Q as Ud, H as Hd, T as Pd, b as ye, o as fe, t as yi, x as bi, z as zl, f as We, B as ri, e as Ze, v as hi, w as Qi, n as Xs, a5 as Zl, d as gn, c as $l, X as Od, a6 as Jd } from "./chunks/vue-DXpzqXur.es.js";
4
4
  import { B as qn } from "./chunks/jszip-DO3il9iI.es.js";
5
5
  import { B as Yd } from "./chunks/blank-docx-BRvkcuiv.es.js";
@@ -1112,7 +1112,7 @@ function QI(n, t) {
1112
1112
  },
1113
1113
  groupId: Q
1114
1114
  }
1115
- }), g((y) => {
1115
+ }), g((m) => {
1116
1116
  Sn = void 0, i.addTimelineEvent({
1117
1117
  layerId: Hn,
1118
1118
  event: {
@@ -1123,12 +1123,12 @@ function QI(n, t) {
1123
1123
  store: ki(t.$id),
1124
1124
  action: ki(I),
1125
1125
  args: f,
1126
- result: y
1126
+ result: m
1127
1127
  },
1128
1128
  groupId: Q
1129
1129
  }
1130
1130
  });
1131
- }), u((y) => {
1131
+ }), u((m) => {
1132
1132
  Sn = void 0, i.addTimelineEvent({
1133
1133
  layerId: Hn,
1134
1134
  event: {
@@ -1140,7 +1140,7 @@ function QI(n, t) {
1140
1140
  store: ki(t.$id),
1141
1141
  action: ki(I),
1142
1142
  args: f,
1143
- error: y
1143
+ error: m
1144
1144
  },
1145
1145
  groupId: Q
1146
1146
  }
@@ -1314,11 +1314,11 @@ function nc(n, t, i, r) {
1314
1314
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
1315
1315
  Xo(W(A ? A() : {}).value)
1316
1316
  ) : Xo(i.state.value[n]);
1317
- return pi(Q, c, Object.keys(g || {}).reduce((y, b) => (Ge.env.NODE_ENV !== "production" && b in Q && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${b}" in store "${n}".`), y[b] = ui(ae(() => {
1317
+ return pi(Q, c, Object.keys(g || {}).reduce((m, b) => (Ge.env.NODE_ENV !== "production" && b in Q && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${b}" in store "${n}".`), m[b] = ui(ae(() => {
1318
1318
  Vs(i);
1319
1319
  const S = i._s.get(n);
1320
1320
  return g[b].call(S, S);
1321
- })), y), {}));
1321
+ })), m), {}));
1322
1322
  }
1323
1323
  return I = CA(n, f, t, i, r, !0), I;
1324
1324
  }
@@ -1331,7 +1331,7 @@ function CA(n, t, i = {}, r, A, c) {
1331
1331
  Ge.env.NODE_ENV !== "production" && (I.onTrigger = (L) => {
1332
1332
  f ? S = L : f == !1 && !D._hotUpdating && (Array.isArray(S) ? S.push(L) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1333
1333
  });
1334
- let f, Q, y = [], b = [], S;
1334
+ let f, Q, m = [], b = [], S;
1335
1335
  const w = r.state.value[n];
1336
1336
  !c && !w && (Ge.env.NODE_ENV === "production" || !A) && (r.state.value[n] = {});
1337
1337
  const k = W({});
@@ -1351,7 +1351,7 @@ function CA(n, t, i = {}, r, A, c) {
1351
1351
  const K = M = Symbol();
1352
1352
  qt().then(() => {
1353
1353
  M === K && (f = !0);
1354
- }), Q = !0, cs(y, P, r.state.value[n]);
1354
+ }), Q = !0, cs(m, P, r.state.value[n]);
1355
1355
  }
1356
1356
  const O = c ? function() {
1357
1357
  const { state: P } = i, K = P ? P() : {};
@@ -1365,7 +1365,7 @@ function CA(n, t, i = {}, r, A, c) {
1365
1365
  } : fg
1366
1366
  );
1367
1367
  function J() {
1368
- g.stop(), y = [], b = [], r._s.delete(n);
1368
+ g.stop(), m = [], b = [], r._s.delete(n);
1369
1369
  }
1370
1370
  const T = (L, P = "") => {
1371
1371
  if (tc in L)
@@ -1408,7 +1408,7 @@ function CA(n, t, i = {}, r, A, c) {
1408
1408
  $patch: F,
1409
1409
  $reset: O,
1410
1410
  $subscribe(L, P = {}) {
1411
- const K = ec(y, L, P.detached, () => V()), V = g.run(() => wt(() => r.state.value[n], ($) => {
1411
+ const K = ec(m, L, P.detached, () => V()), V = g.run(() => wt(() => r.state.value[n], ($) => {
1412
1412
  (P.flush === "sync" ? Q : f) && L({
1413
1413
  storeId: n,
1414
1414
  type: Yi.direct,
@@ -1531,14 +1531,14 @@ This will fail in production.`);
1531
1531
  u = Ps, u._s.has(r) || (c ? CA(r, t, A, u) : nc(r, A, u), Ge.env.NODE_ENV !== "production" && (g._pinia = u));
1532
1532
  const Q = u._s.get(r);
1533
1533
  if (Ge.env.NODE_ENV !== "production" && I) {
1534
- const y = "__hot:" + r, b = c ? CA(y, t, A, u, !0) : nc(y, pi({}, A), u, !0);
1535
- I._hotUpdate(b), delete u.state.value[y], u._s.delete(y);
1534
+ const m = "__hot:" + r, b = c ? CA(m, t, A, u, !0) : nc(m, pi({}, A), u, !0);
1535
+ I._hotUpdate(b), delete u.state.value[m], u._s.delete(m);
1536
1536
  }
1537
1537
  if (Ge.env.NODE_ENV !== "production" && wn) {
1538
- const y = ji();
1539
- if (y && y.proxy && // avoid adding stores that are just built for hot module replacement
1538
+ const m = ji();
1539
+ if (m && m.proxy && // avoid adding stores that are just built for hot module replacement
1540
1540
  !I) {
1541
- const b = y.proxy, S = "_pStores" in b ? b._pStores : b._pStores = {};
1541
+ const b = m.proxy, S = "_pStores" in b ? b._pStores : b._pStores = {};
1542
1542
  S[r] = Q;
1543
1543
  }
1544
1544
  }
@@ -1581,7 +1581,7 @@ function DI(n, t) {
1581
1581
  function vI(n) {
1582
1582
  const t = W(n.itemid), i = W(n.itemicon), r = W(n.itemiconpack), A = W(n.itemdisplaylabel), c = n.itemlinkvalue, g = n.itemplaceholdertext;
1583
1583
  W([]);
1584
- const { value: u } = DI(n, c), I = W(n.itemtype), f = W(n.itemfieldtype), Q = n, y = Zt({
1584
+ const { value: u } = DI(n, c), I = W(n.itemtype), f = W(n.itemfieldtype), Q = n, m = Zt({
1585
1585
  fontFamily: n.fontfamily || "Arial",
1586
1586
  fontSize: n.font_size || "12px",
1587
1587
  originalFontSize: n.original_font_size || "12px"
@@ -1605,7 +1605,7 @@ function vI(n) {
1605
1605
  logicRules: b,
1606
1606
  hidden: S,
1607
1607
  originalJSON: Q,
1608
- fieldStyle: y,
1608
+ fieldStyle: m,
1609
1609
  valueGetter: F,
1610
1610
  ...w
1611
1611
  };
@@ -1776,19 +1776,19 @@ function zs(n) {
1776
1776
  getContainerLocation: (I) => {
1777
1777
  if (!I) return { top: 0, left: 0 };
1778
1778
  const f = I.getBoundingClientRect(), Q = document.getElementById(c());
1779
- let y = {
1779
+ let m = {
1780
1780
  top: 0,
1781
1781
  left: 0
1782
1782
  };
1783
- return Q && (y = Q.getBoundingClientRect()), {
1784
- top: Number((y.top - f.top).toFixed(3)),
1785
- left: Number((y.left - f.left).toFixed(3))
1783
+ return Q && (m = Q.getBoundingClientRect()), {
1784
+ top: Number((m.top - f.top).toFixed(3)),
1785
+ left: Number((m.left - f.left).toFixed(3))
1786
1786
  };
1787
1787
  }
1788
1788
  };
1789
1789
  }
1790
1790
  function Yn(n) {
1791
- const t = W(n.uid), i = n.commentId || ig(), r = n.importedId, A = n.parentCommentId, c = n.fileId, g = n.fileType, u = n.createdAtVersionNumber, I = W(n.isInternal !== void 0 ? n.isInternal : !0), f = W([]), Q = W(null), y = W(n.isFocused || !1), b = n.creatorEmail, S = n.creatorName, w = n.createdTime || Date.now(), k = W(n.importedAuthor || null), M = W(n.commentText || ""), F = n.selection ? zs(n.selection) : zs({
1791
+ const t = W(n.uid), i = n.commentId || ig(), r = n.importedId, A = n.parentCommentId, c = n.fileId, g = n.fileType, u = n.createdAtVersionNumber, I = W(n.isInternal !== void 0 ? n.isInternal : !0), f = W([]), Q = W(null), m = W(n.isFocused || !1), b = n.creatorEmail, S = n.creatorName, w = n.createdTime || Date.now(), k = W(n.importedAuthor || null), M = W(n.commentText || ""), F = n.selection ? zs(n.selection) : zs({
1792
1792
  documentId: c,
1793
1793
  page: 1,
1794
1794
  selectionBounds: {}
@@ -1879,7 +1879,7 @@ function Yn(n) {
1879
1879
  fileType: g,
1880
1880
  mentions: f,
1881
1881
  commentElement: Q,
1882
- isFocused: y,
1882
+ isFocused: m,
1883
1883
  creatorEmail: b,
1884
1884
  creatorName: S,
1885
1885
  createdTime: w,
@@ -1906,7 +1906,7 @@ function Yn(n) {
1906
1906
  });
1907
1907
  }
1908
1908
  function _I(n, t) {
1909
- const i = n.id, r = T(n), A = n.data, c = t, g = n.state, u = n.role, I = n.html, f = W(null), Q = W([]), y = W(!1), b = W(t.rulers), S = Us(n.ydoc), w = Us(n.provider), k = Us(n.socket), M = W(n.isNewFile), F = Us(null), O = (q) => F.value = q, J = () => F.value;
1909
+ const i = n.id, r = T(n), A = n.data, c = t, g = n.state, u = n.role, I = n.html, f = W(null), Q = W([]), m = W(!1), b = W(t.rulers), S = Us(n.ydoc), w = Us(n.provider), k = Us(n.socket), M = W(n.isNewFile), F = Us(null), O = (q) => F.value = q, J = () => F.value;
1910
1910
  function T({ type: q, data: ee }) {
1911
1911
  if (ee?.type) return ee.type;
1912
1912
  if (q) return q in Vo ? Vo[q] : null;
@@ -1937,7 +1937,7 @@ function _I(n, t) {
1937
1937
  // Placement
1938
1938
  container: f,
1939
1939
  pageContainers: Q,
1940
- isReady: y,
1940
+ isReady: m,
1941
1941
  rulers: b,
1942
1942
  // Modules
1943
1943
  rawFields: D,
@@ -1956,21 +1956,21 @@ function _I(n, t) {
1956
1956
  };
1957
1957
  }
1958
1958
  const Ri = /* @__PURE__ */ JA("superdoc", () => {
1959
- const n = W(null), t = hn(), i = W([]), r = W([]), A = Zt({}), c = W([]), g = W(100), u = W(!1), I = W(!1), f = W([]), Q = Zt({ name: null, email: null }), y = Zt({}), b = W(null), S = W({
1959
+ const n = W(null), t = hn(), i = W([]), r = W([]), A = Zt({}), c = W([]), g = W(100), u = W(!1), I = W(!1), f = W([]), Q = Zt({ name: null, email: null }), m = Zt({}), b = W(null), S = W({
1960
1960
  left: 0,
1961
1961
  top: 0,
1962
1962
  width: 0,
1963
1963
  height: 0,
1964
1964
  source: null
1965
1965
  }), w = () => {
1966
- i.value = [], r.value = [], Object.assign(A, {}), c.value = [], u.value = !1, Q.name = null, Q.email = null, Object.assign(y, {}), b.value = null;
1966
+ i.value = [], r.value = [], Object.assign(A, {}), c.value = [], u.value = !1, Q.name = null, Q.email = null, Object.assign(m, {}), b.value = null;
1967
1967
  }, k = Zt({
1968
1968
  scrollTop: 0,
1969
1969
  scrollLeft: 0
1970
1970
  }), M = async (D) => {
1971
1971
  w(), n.value = D;
1972
1972
  const { documents: G, modules: R, user: L, users: P } = D;
1973
- if (c.value = P || [], Object.assign(Q, L), Object.assign(y, R), !G?.length && !D.modules.collaboration) {
1973
+ if (c.value = P || [], Object.assign(Q, L), Object.assign(m, R), !G?.length && !D.modules.collaboration) {
1974
1974
  const K = await zo(Yd, "blank.docx", on), V = {
1975
1975
  type: on,
1976
1976
  data: K,
@@ -2019,7 +2019,7 @@ const Ri = /* @__PURE__ */ JA("superdoc", () => {
2019
2019
  activeSelection: b,
2020
2020
  isReady: u,
2021
2021
  user: Q,
2022
- modules: y,
2022
+ modules: m,
2023
2023
  // Getters
2024
2024
  areDocumentsReady: J,
2025
2025
  // Actions
@@ -2051,7 +2051,7 @@ const Ri = /* @__PURE__ */ JA("superdoc", () => {
2051
2051
  readOnly: !1,
2052
2052
  allowResolve: !0,
2053
2053
  showResolved: !1
2054
- }), i = !1, r = {}, A = Hs, c = W(!1), g = W(!1), u = W(null), I = W(!1), f = W(null), Q = W(null), y = W([]), b = W([]), S = /* @__PURE__ */ new Set([]), w = W(!0), k = W(""), M = W([]), F = W(!1), O = W([]), J = W({}), T = W(0), H = W([]), U = W([]), D = W(!1), G = W(!1), R = W([]), L = W(null), P = (he = {}) => {
2054
+ }), i = !1, r = {}, A = Hs, c = W(!1), g = W(!1), u = W(null), I = W(!1), f = W(null), Q = W(null), m = W([]), b = W([]), S = /* @__PURE__ */ new Set([]), w = W(!0), k = W(""), M = W([]), F = W(!1), O = W([]), J = W({}), T = W(0), H = W([]), U = W([]), D = W(!1), G = W(!1), R = W([]), L = W(null), P = (he = {}) => {
2055
2055
  const ce = { ...t, ...he };
2056
2056
  Object.assign(t, ce), w.value = t.suppressInternalExternal || !1, he.comments && he.comments.length && (M.value = he.comments?.map((De) => Yn(De)) || []);
2057
2057
  }, K = (he) => he == null ? null : M.value.find((ce) => ce.commentId == he || ce.importedId == he), V = (he) => {
@@ -2267,7 +2267,7 @@ const Ri = /* @__PURE__ */ JA("superdoc", () => {
2267
2267
  hasSyncedCollaborationComments: g,
2268
2268
  editingCommentId: Q,
2269
2269
  activeComment: f,
2270
- commentDialogs: y,
2270
+ commentDialogs: m,
2271
2271
  overlappingComments: b,
2272
2272
  overlappedIds: S,
2273
2273
  suppressInternalExternal: w,
@@ -2594,15 +2594,15 @@ function s0(n, t, i, r, A, c, g, u, I) {
2594
2594
  const Q = Ca(i, u);
2595
2595
  if (Q !== null && !c)
2596
2596
  return Q;
2597
- const y = Q ?? ZI(i);
2598
- if (f === void 0 && (f = t.render(r)), y.textContent = f, Q !== null)
2597
+ const m = Q ?? ZI(i);
2598
+ if (f === void 0 && (f = t.render(r)), m.textContent = f, Q !== null)
2599
2599
  return Q;
2600
2600
  if (g) {
2601
2601
  const b = u.querySelector(`meta[name="${g}"]`);
2602
2602
  if (b)
2603
- return u.insertBefore(y, b), Ac(t.els, y), y;
2603
+ return u.insertBefore(m, b), Ac(t.els, m), m;
2604
2604
  }
2605
- return A ? u.insertBefore(y, u.querySelector("style, link")) : u.appendChild(y), Ac(t.els, y), y;
2605
+ return A ? u.insertBefore(m, u.querySelector("style, link")) : u.appendChild(m), Ac(t.els, m), m;
2606
2606
  }
2607
2607
  function r0(n) {
2608
2608
  return i0(this, this.instance, n);
@@ -3122,7 +3122,7 @@ function G0() {
3122
3122
  const Q = {
3123
3123
  bubble: {},
3124
3124
  capture: {}
3125
- }, y = {};
3125
+ }, m = {};
3126
3126
  function b() {
3127
3127
  const D = function(G) {
3128
3128
  const { type: R, eventPhase: L, bubbles: P } = G, K = Yr(G);
@@ -3181,7 +3181,7 @@ function G0() {
3181
3181
  const { type: R, eventPhase: L } = G;
3182
3182
  if (L !== 2)
3183
3183
  return;
3184
- const P = y[R];
3184
+ const P = m[R];
3185
3185
  P !== void 0 && P.forEach((K) => K(G));
3186
3186
  };
3187
3187
  return D.displayName = "evtdUnifiedWindowEventHandler", D;
@@ -3192,7 +3192,7 @@ function G0() {
3192
3192
  return R[G] === void 0 && (R[G] = /* @__PURE__ */ new Map(), window.addEventListener(G, w, D === "capture")), R[G];
3193
3193
  }
3194
3194
  function F(D) {
3195
- return y[D] === void 0 && (y[D] = /* @__PURE__ */ new Set(), window.addEventListener(D, k)), y[D];
3195
+ return m[D] === void 0 && (m[D] = /* @__PURE__ */ new Set(), window.addEventListener(D, k)), m[D];
3196
3196
  }
3197
3197
  function O(D, G) {
3198
3198
  let R = D.get(G);
@@ -3208,7 +3208,7 @@ function G0() {
3208
3208
  return !1;
3209
3209
  }
3210
3210
  function T(D, G) {
3211
- const R = y[D];
3211
+ const R = m[D];
3212
3212
  return !!(R !== void 0 && R.has(G));
3213
3213
  }
3214
3214
  function H(D, G, R, L) {
@@ -3228,8 +3228,8 @@ function G0() {
3228
3228
  return;
3229
3229
  const K = L === !0 || typeof L == "object" && L.capture === !0, V = K ? "capture" : "bubble", $ = M(V, D), q = O($, G);
3230
3230
  if (G === window && !J(G, K ? "bubble" : "capture", D, R) && T(D, R)) {
3231
- const te = y[D];
3232
- te.delete(R), te.size === 0 && (window.removeEventListener(D, k), y[D] = void 0);
3231
+ const te = m[D];
3232
+ te.delete(R), te.size === 0 && (window.removeEventListener(D, k), m[D] = void 0);
3233
3233
  }
3234
3234
  q.has(R) && q.delete(R), q.size === 0 && $.delete(G), $.size === 0 && (window.removeEventListener(D, w, V === "capture"), Q[V][D] = void 0);
3235
3235
  }
@@ -3339,8 +3339,8 @@ function K0(n = {}, t) {
3339
3339
  if (typeof Q == "function")
3340
3340
  Q(I);
3341
3341
  else {
3342
- const { stop: y = !1, prevent: b = !1 } = Q;
3343
- y && I.stopPropagation(), b && I.preventDefault(), Q.handler(I);
3342
+ const { stop: m = !1, prevent: b = !1 } = Q;
3343
+ m && I.stopPropagation(), b && I.preventDefault(), Q.handler(I);
3344
3344
  }
3345
3345
  });
3346
3346
  }, g = (I) => {
@@ -3365,8 +3365,8 @@ function K0(n = {}, t) {
3365
3365
  if (typeof Q == "function")
3366
3366
  Q(I);
3367
3367
  else {
3368
- const { stop: y = !1, prevent: b = !1 } = Q;
3369
- y && I.stopPropagation(), b && I.preventDefault(), Q.handler(I);
3368
+ const { stop: m = !1, prevent: b = !1 } = Q;
3369
+ m && I.stopPropagation(), b && I.preventDefault(), Q.handler(I);
3370
3370
  }
3371
3371
  });
3372
3372
  }, u = () => {
@@ -3533,16 +3533,16 @@ const Ug = Ct({
3533
3533
  for (; F = Tg(F), F !== null; )
3534
3534
  c.push(F);
3535
3535
  for (const O of c)
3536
- St("scroll", O, y, !0);
3536
+ St("scroll", O, m, !0);
3537
3537
  }, u = () => {
3538
3538
  for (const F of c)
3539
- It("scroll", F, y, !0);
3539
+ It("scroll", F, m, !0);
3540
3540
  c = [];
3541
3541
  }, I = /* @__PURE__ */ new Set(), f = (F) => {
3542
3542
  I.size === 0 && g(), I.has(F) || I.add(F);
3543
3543
  }, Q = (F) => {
3544
3544
  I.has(F) && I.delete(F), I.size === 0 && u();
3545
- }, y = () => {
3545
+ }, m = () => {
3546
3546
  f0(b);
3547
3547
  }, b = () => {
3548
3548
  I.forEach((F) => F());
@@ -3811,7 +3811,7 @@ function oC(n, t, i, r, A, c) {
3811
3811
  left: M,
3812
3812
  top: F
3813
3813
  };
3814
- }, y = g === "left" || g === "right";
3814
+ }, m = g === "left" || g === "right";
3815
3815
  if (I !== "center") {
3816
3816
  const S = AC[n], w = Dr[S], k = ja[S];
3817
3817
  if (i[k] > t[k]) {
@@ -3822,7 +3822,7 @@ function oC(n, t, i, r, A, c) {
3822
3822
  t[S] + t[k] < i[k]
3823
3823
  ) {
3824
3824
  const M = (i[k] - t[k]) / 2;
3825
- t[S] < M || t[w] < M ? t[S] < t[w] ? (I = Ic[u], f = Q(k, w, y)) : f = Q(k, S, y) : I = "center";
3825
+ t[S] < M || t[w] < M ? t[S] < t[w] ? (I = Ic[u], f = Q(k, w, m)) : f = Q(k, S, m) : I = "center";
3826
3826
  }
3827
3827
  } else i[k] < t[k] && t[w] < 0 && // opposite align has larger space
3828
3828
  // ------------[ target ]
@@ -3833,7 +3833,7 @@ function oC(n, t, i, r, A, c) {
3833
3833
  // center is not enough
3834
3834
  // ----------- [ target ]--|
3835
3835
  // -------[ follower ]
3836
- (t[S] < M || t[w] < M) && (t[S] > t[w] ? (I = fc[S], f = Q(k, S, y)) : (I = fc[w], f = Q(k, w, y)));
3836
+ (t[S] < M || t[w] < M) && (t[S] > t[w] ? (I = fc[S], f = Q(k, S, m)) : (I = fc[w], f = Q(k, w, m)));
3837
3837
  }
3838
3838
  let b = g;
3839
3839
  return (
@@ -4114,7 +4114,7 @@ const gC = Sr([
4114
4114
  }), wt(dt(n, "syncTrigger"), (b) => {
4115
4115
  b.includes("resize") ? t.addResizeListener(I) : t.removeResizeListener(I), b.includes("scroll") ? t.addScrollListener(I) : t.removeScrollListener(I);
4116
4116
  });
4117
- const Q = KA(), y = Ki(() => {
4117
+ const Q = KA(), m = Ki(() => {
4118
4118
  const { to: b } = n;
4119
4119
  if (b !== void 0)
4120
4120
  return b;
@@ -4125,7 +4125,7 @@ const gC = Sr([
4125
4125
  mergedEnabled: i,
4126
4126
  offsetContainerRef: A,
4127
4127
  followerRef: r,
4128
- mergedTo: y,
4128
+ mergedTo: m,
4129
4129
  syncPosition: I
4130
4130
  };
4131
4131
  },
@@ -4237,11 +4237,11 @@ var Xn = function(n) {
4237
4237
  return vr.get(n);
4238
4238
  if (Yg(n))
4239
4239
  return vr.set(n, Qc), Qc;
4240
- var i = getComputedStyle(n), r = jA(n) && n.ownerSVGElement && n.getBBox(), A = !BC && i.boxSizing === "border-box", c = fC.test(i.writingMode || ""), g = !r && pc.test(i.overflowY || ""), u = !r && pc.test(i.overflowX || ""), I = r ? 0 : Hi(i.paddingTop), f = r ? 0 : Hi(i.paddingRight), Q = r ? 0 : Hi(i.paddingBottom), y = r ? 0 : Hi(i.paddingLeft), b = r ? 0 : Hi(i.borderTopWidth), S = r ? 0 : Hi(i.borderRightWidth), w = r ? 0 : Hi(i.borderBottomWidth), k = r ? 0 : Hi(i.borderLeftWidth), M = y + f, F = I + Q, O = k + S, J = b + w, T = u ? n.offsetHeight - J - n.clientHeight : 0, H = g ? n.offsetWidth - O - n.clientWidth : 0, U = A ? M + O : 0, D = A ? F + J : 0, G = r ? r.width : Hi(i.width) - U - H, R = r ? r.height : Hi(i.height) - D - T, L = G + M + H + O, P = R + F + T + J, K = Xn({
4240
+ var i = getComputedStyle(n), r = jA(n) && n.ownerSVGElement && n.getBBox(), A = !BC && i.boxSizing === "border-box", c = fC.test(i.writingMode || ""), g = !r && pc.test(i.overflowY || ""), u = !r && pc.test(i.overflowX || ""), I = r ? 0 : Hi(i.paddingTop), f = r ? 0 : Hi(i.paddingRight), Q = r ? 0 : Hi(i.paddingBottom), m = r ? 0 : Hi(i.paddingLeft), b = r ? 0 : Hi(i.borderTopWidth), S = r ? 0 : Hi(i.borderRightWidth), w = r ? 0 : Hi(i.borderBottomWidth), k = r ? 0 : Hi(i.borderLeftWidth), M = m + f, F = I + Q, O = k + S, J = b + w, T = u ? n.offsetHeight - J - n.clientHeight : 0, H = g ? n.offsetWidth - O - n.clientWidth : 0, U = A ? M + O : 0, D = A ? F + J : 0, G = r ? r.width : Hi(i.width) - U - H, R = r ? r.height : Hi(i.height) - D - T, L = G + M + H + O, P = R + F + T + J, K = Xn({
4241
4241
  devicePixelContentBoxSize: Cs(Math.round(G * devicePixelRatio), Math.round(R * devicePixelRatio), c),
4242
4242
  borderBoxSize: Cs(L, P, c),
4243
4243
  contentBoxSize: Cs(G, R, c),
4244
- contentRect: new Jg(y, I, G, R)
4244
+ contentRect: new Jg(m, I, G, R)
4245
4245
  });
4246
4246
  return vr.set(n, K), K;
4247
4247
  }, _g = function(n, t, i) {
@@ -4272,8 +4272,8 @@ var Xn = function(n) {
4272
4272
  if (g.activeTargets.length !== 0) {
4273
4273
  var u = [];
4274
4274
  g.activeTargets.forEach(function(f) {
4275
- var Q = new EC(f.target), y = qg(f.target);
4276
- u.push(Q), f.lastReportedSize = _g(f.target, f.observedBox), y < n && (n = y);
4275
+ var Q = new EC(f.target), m = qg(f.target);
4276
+ u.push(Q), f.lastReportedSize = _g(f.target, f.observedBox), m < n && (n = m);
4277
4277
  }), t.push(function() {
4278
4278
  g.callback.call(g.observer, u, g.observer);
4279
4279
  }), g.activeTargets.splice(0, g.activeTargets.length);
@@ -4567,7 +4567,7 @@ const LC = Ct({
4567
4567
  }
4568
4568
  Ii(() => {
4569
4569
  wt(() => n.active, (M) => {
4570
- M ? (y(), St("keydown", document, I)) : (It("keydown", document, I), A && b());
4570
+ M ? (m(), St("keydown", document, I)) : (It("keydown", document, I), A && b());
4571
4571
  }, {
4572
4572
  immediate: !0
4573
4573
  });
@@ -4591,7 +4591,7 @@ const LC = Ct({
4591
4591
  ;
4592
4592
  return F;
4593
4593
  }
4594
- function y() {
4594
+ function m() {
4595
4595
  var M;
4596
4596
  if (!n.disabled) {
4597
4597
  if (Ls.push(t), n.autoFocus) {
@@ -4797,7 +4797,7 @@ function bs(n, t, i, r) {
4797
4797
  i || Zg("useThemeClass", "cssVarsRef is not passed");
4798
4798
  const A = ht(or, null), c = A?.mergedThemeHashRef, g = A?.styleMountTarget, u = W(""), I = Ar();
4799
4799
  let f;
4800
- const Q = `__${n}`, y = () => {
4800
+ const Q = `__${n}`, m = () => {
4801
4801
  let b = Q;
4802
4802
  const S = t ? t.value : void 0, w = c?.value;
4803
4803
  w && (b += `-${w}`), S && (b += `-${S}`);
@@ -4818,7 +4818,7 @@ function bs(n, t, i, r) {
4818
4818
  };
4819
4819
  };
4820
4820
  return qi(() => {
4821
- y();
4821
+ m();
4822
4822
  }), {
4823
4823
  themeClass: u,
4824
4824
  onRender: () => {
@@ -5500,11 +5500,11 @@ function Ih(n, t, i, r, A, c) {
5500
5500
  var f = c.get(n), Q = c.get(t);
5501
5501
  if (f && Q)
5502
5502
  return f == t && Q == n;
5503
- var y = -1, b = !0, S = i & YB ? new Aa() : void 0;
5504
- for (c.set(n, t), c.set(t, n); ++y < u; ) {
5505
- var w = n[y], k = t[y];
5503
+ var m = -1, b = !0, S = i & YB ? new Aa() : void 0;
5504
+ for (c.set(n, t), c.set(t, n); ++m < u; ) {
5505
+ var w = n[m], k = t[m];
5506
5506
  if (r)
5507
- var M = g ? r(k, w, y, t, n, c) : r(w, k, y, n, t, c);
5507
+ var M = g ? r(k, w, m, t, n, c) : r(w, k, m, n, t, c);
5508
5508
  if (M !== void 0) {
5509
5509
  if (M)
5510
5510
  continue;
@@ -5579,8 +5579,8 @@ function cE(n, t, i, r, A, c) {
5579
5579
  var g = i & aE, u = Xc(n), I = u.length, f = Xc(t), Q = f.length;
5580
5580
  if (I != Q && !g)
5581
5581
  return !1;
5582
- for (var y = I; y--; ) {
5583
- var b = u[y];
5582
+ for (var m = I; m--; ) {
5583
+ var b = u[m];
5584
5584
  if (!(g ? b in t : oE.call(t, b)))
5585
5585
  return !1;
5586
5586
  }
@@ -5589,8 +5589,8 @@ function cE(n, t, i, r, A, c) {
5589
5589
  return S == t && w == n;
5590
5590
  var k = !0;
5591
5591
  c.set(n, t), c.set(t, n);
5592
- for (var M = g; ++y < I; ) {
5593
- b = u[y];
5592
+ for (var M = g; ++m < I; ) {
5593
+ b = u[m];
5594
5594
  var F = n[b], O = t[b];
5595
5595
  if (r)
5596
5596
  var J = g ? r(O, F, b, t, n, c) : r(F, O, b, n, t, c);
@@ -5610,7 +5610,7 @@ var lE = 1, il = "[object Arguments]", nl = "[object Array]", xr = "[object Obje
5610
5610
  function hE(n, t, i, r, A, c) {
5611
5611
  var g = Si(n), u = Si(t), I = g ? nl : yn(n), f = u ? nl : yn(t);
5612
5612
  I = I == il ? xr : I, f = f == il ? xr : f;
5613
- var Q = I == xr, y = f == xr, b = I == f;
5613
+ var Q = I == xr, m = f == xr, b = I == f;
5614
5614
  if (b && ra(n)) {
5615
5615
  if (!ra(t))
5616
5616
  return !1;
@@ -5619,7 +5619,7 @@ function hE(n, t, i, r, A, c) {
5619
5619
  if (b && !Q)
5620
5620
  return c || (c = new _i()), g || io(n) ? Ih(n, t, i, r, A, c) : rE(n, t, I, i, r, A, c);
5621
5621
  if (!(i & lE)) {
5622
- var S = Q && sl.call(n, "__wrapped__"), w = y && sl.call(t, "__wrapped__");
5622
+ var S = Q && sl.call(n, "__wrapped__"), w = m && sl.call(t, "__wrapped__");
5623
5623
  if (S || w) {
5624
5624
  var k = S ? n.value() : n, M = w ? t.value() : t;
5625
5625
  return c || (c = new _i()), A(k, M, i, r, c);
@@ -5647,8 +5647,8 @@ function IE(n, t, i, r) {
5647
5647
  if (I === void 0 && !(u in n))
5648
5648
  return !1;
5649
5649
  } else {
5650
- var Q = new _i(), y;
5651
- if (!(y === void 0 ? ao(f, I, uE | dE, r, Q) : y))
5650
+ var Q = new _i(), m;
5651
+ if (!(m === void 0 ? ao(f, I, uE | dE, r, Q) : m))
5652
5652
  return !1;
5653
5653
  }
5654
5654
  }
@@ -5759,12 +5759,12 @@ function ME(n, t, i, r, A, c, g) {
5759
5759
  vA(n, i, f);
5760
5760
  return;
5761
5761
  }
5762
- var Q = c ? c(u, I, i + "", n, t, g) : void 0, y = Q === void 0;
5763
- if (y) {
5762
+ var Q = c ? c(u, I, i + "", n, t, g) : void 0, m = Q === void 0;
5763
+ if (m) {
5764
5764
  var b = Si(I), S = !b && ra(I), w = !b && !S && io(I);
5765
- Q = I, b || S || w ? Si(u) ? Q = u : RE(u) ? Q = ff(u) : S ? (y = !1, Q = QB(I)) : w ? (y = !1, Q = LB(I)) : Q = [] : uB(I) || sa(I) ? (Q = u, sa(u) ? Q = NE(u) : (!Rn(u) || zA(u)) && (Q = GB(I))) : y = !1;
5765
+ Q = I, b || S || w ? Si(u) ? Q = u : RE(u) ? Q = ff(u) : S ? (m = !1, Q = QB(I)) : w ? (m = !1, Q = LB(I)) : Q = [] : uB(I) || sa(I) ? (Q = u, sa(u) ? Q = NE(u) : (!Rn(u) || zA(u)) && (Q = GB(I))) : m = !1;
5766
5766
  }
5767
- y && (g.set(I, Q), A(Q, I, r, c, g), g.delete(I)), vA(n, i, Q);
5767
+ m && (g.set(I, Q), A(Q, I, r, c, g), g.delete(I)), vA(n, i, Q);
5768
5768
  }
5769
5769
  function Eh(n, t, i, r, A) {
5770
5770
  n !== t && Bh(t, function(c, g) {
@@ -5919,7 +5919,7 @@ function ai(n, t, i, r, A, c) {
5919
5919
  const {
5920
5920
  theme: {
5921
5921
  common: Q,
5922
- self: y,
5922
+ self: m,
5923
5923
  peers: b = {}
5924
5924
  } = {},
5925
5925
  themeOverrides: S = {},
@@ -5942,7 +5942,7 @@ function ai(n, t, i, r, A, c) {
5942
5942
  peers: G = {}
5943
5943
  } = U, R = Rr({}, Q || O || F || r.common, H, D, k), L = Rr(
5944
5944
  // {}, executed every time, no need for empty obj
5945
- (f = y || J || r.self) === null || f === void 0 ? void 0 : f(R),
5945
+ (f = m || J || r.self) === null || f === void 0 ? void 0 : f(R),
5946
5946
  w,
5947
5947
  U,
5948
5948
  S
@@ -6457,7 +6457,7 @@ const VE = {
6457
6457
  mergedClsPrefixRef: t,
6458
6458
  inlineThemeDisabled: i,
6459
6459
  mergedRtlRef: r
6460
- } = ys(n), A = ph("Scrollbar", r, t), c = W(null), g = W(null), u = W(null), I = W(null), f = W(null), Q = W(null), y = W(null), b = W(null), S = W(null), w = W(null), k = W(null), M = W(0), F = W(0), O = W(!1), J = W(!1);
6460
+ } = ys(n), A = ph("Scrollbar", r, t), c = W(null), g = W(null), u = W(null), I = W(null), f = W(null), Q = W(null), m = W(null), b = W(null), S = W(null), w = W(null), k = W(null), M = W(0), F = W(0), O = W(!1), J = W(!1);
6461
6461
  let T = !1, H = !1, U, D, G = 0, R = 0, L = 0, P = 0;
6462
6462
  const K = Y0(), V = ai("Scrollbar", "-scrollbar", zE, VE, n, t), $ = ae(() => {
6463
6463
  const {
@@ -6473,7 +6473,7 @@ const VE = {
6473
6473
  value: le
6474
6474
  } = S, {
6475
6475
  value: pe
6476
- } = y, {
6476
+ } = m, {
6477
6477
  value: be
6478
6478
  } = k;
6479
6479
  return le === null || pe === null || be === null ? 0 : be * le / pe + cc(V.value.self.height) * 1.5;
@@ -6500,7 +6500,7 @@ const VE = {
6500
6500
  value: pe
6501
6501
  } = F, {
6502
6502
  value: be
6503
- } = y, {
6503
+ } = m, {
6504
6504
  value: nt
6505
6505
  } = k;
6506
6506
  if (le === null || be === null || nt === null)
@@ -6521,7 +6521,7 @@ const VE = {
6521
6521
  value: le
6522
6522
  } = S, {
6523
6523
  value: pe
6524
- } = y;
6524
+ } = m;
6525
6525
  return le !== null && pe !== null && pe > le;
6526
6526
  }), at = ae(() => {
6527
6527
  const {
@@ -6647,7 +6647,7 @@ const VE = {
6647
6647
  const {
6648
6648
  value: le
6649
6649
  } = z;
6650
- le && (Q.value = le.offsetHeight, y.value = le.offsetWidth);
6650
+ le && (Q.value = le.offsetHeight, m.value = le.offsetWidth);
6651
6651
  const {
6652
6652
  value: pe
6653
6653
  } = de;
@@ -6663,7 +6663,7 @@ const VE = {
6663
6663
  const {
6664
6664
  value: le
6665
6665
  } = de;
6666
- le && (M.value = le.scrollTop, F.value = le.scrollLeft * (A?.value ? -1 : 1), b.value = le.offsetHeight, S.value = le.offsetWidth, Q.value = le.scrollHeight, y.value = le.scrollWidth);
6666
+ le && (M.value = le.scrollTop, F.value = le.scrollLeft * (A?.value ? -1 : 1), b.value = le.offsetHeight, S.value = le.offsetWidth, Q.value = le.scrollHeight, m.value = le.scrollWidth);
6667
6667
  const {
6668
6668
  value: pe
6669
6669
  } = f, {
@@ -6688,7 +6688,7 @@ const VE = {
6688
6688
  value: pe
6689
6689
  } = S, {
6690
6690
  value: be
6691
- } = y, {
6691
+ } = m, {
6692
6692
  value: nt
6693
6693
  } = ee;
6694
6694
  if (pe === null || be === null) return;
@@ -6881,7 +6881,7 @@ const VE = {
6881
6881
  },
6882
6882
  onMousedown: this.handleYScrollMouseDown
6883
6883
  }) : null
6884
- })), y = () => {
6884
+ })), m = () => {
6885
6885
  var S, w;
6886
6886
  return (S = this.onRender) === null || S === void 0 || S.call(this), re("div", ar(this.$attrs, {
6887
6887
  role: "none",
@@ -6927,10 +6927,10 @@ const VE = {
6927
6927
  onMousedown: this.handleXScrollMouseDown
6928
6928
  }) : null
6929
6929
  }))]);
6930
- }, b = this.container ? y() : re(vc, {
6930
+ }, b = this.container ? m() : re(vc, {
6931
6931
  onResize: this.handleContainerResize
6932
6932
  }, {
6933
- default: y
6933
+ default: m
6934
6934
  });
6935
6935
  return c ? re(jt, null, b, Q(this.themeClass, this.cssVars)) : b;
6936
6936
  }
@@ -7049,9 +7049,9 @@ function nA(n, t) {
7049
7049
  indeterminateKeys: Array.from(c)
7050
7050
  };
7051
7051
  const { levelTreeNodeMap: Q } = t;
7052
- let y;
7053
- A !== void 0 ? y = Ip(A, i, t, f) : r !== void 0 ? y = up(r, i, t, f) : y = oa(i, t, f, !1);
7054
- const b = I === "parent", S = I === "child" || u, w = y, k = /* @__PURE__ */ new Set(), M = Math.max.apply(null, Array.from(Q.keys()));
7052
+ let m;
7053
+ A !== void 0 ? m = Ip(A, i, t, f) : r !== void 0 ? m = up(r, i, t, f) : m = oa(i, t, f, !1);
7054
+ const b = I === "parent", S = I === "child" || u, w = m, k = /* @__PURE__ */ new Set(), M = Math.max.apply(null, Array.from(Q.keys()));
7055
7055
  for (let F = M; F >= 0; F -= 1) {
7056
7056
  const O = F === 0, J = Q.get(F);
7057
7057
  for (const T of J) {
@@ -7092,8 +7092,8 @@ function oa(n, t, i, r) {
7092
7092
  f !== void 0 && Sh(f, (Q) => {
7093
7093
  if (Q.disabled)
7094
7094
  return xA.STOP;
7095
- const { key: y } = Q;
7096
- if (!g.has(y) && (g.add(y), u.add(y), Ap(Q.rawNode, c))) {
7095
+ const { key: m } = Q;
7096
+ if (!g.has(m) && (g.add(m), u.add(m), Ap(Q.rawNode, c))) {
7097
7097
  if (r)
7098
7098
  return xA.STOP;
7099
7099
  if (!i)
@@ -7153,8 +7153,8 @@ function ol(n, t, { loop: i = !1, includeDisabled: r = !1 } = {}) {
7153
7153
  if (Q !== null)
7154
7154
  I(Q);
7155
7155
  else {
7156
- const y = pp(f);
7157
- y?.isGroup ? I(A(y, i)) : i && I(A(f, !0));
7156
+ const m = pp(f);
7157
+ m?.isGroup ? I(A(m, i)) : i && I(A(f, !0));
7158
7158
  }
7159
7159
  }
7160
7160
  }
@@ -7224,12 +7224,12 @@ function Dh(n, t, i, r, A, c = null, g = 0) {
7224
7224
  return n.forEach((I, f) => {
7225
7225
  var Q;
7226
7226
  Ge.env.NODE_ENV !== "production" && op(I, A) && console.error("[treemate]: node", I, "is invalid");
7227
- const y = Object.create(r);
7228
- if (y.rawNode = I, y.siblings = u, y.level = g, y.index = f, y.isFirstChild = f === 0, y.isLastChild = f + 1 === n.length, y.parent = c, !y.ignored) {
7227
+ const m = Object.create(r);
7228
+ if (m.rawNode = I, m.siblings = u, m.level = g, m.index = f, m.isFirstChild = f === 0, m.isLastChild = f + 1 === n.length, m.parent = c, !m.ignored) {
7229
7229
  const b = A(I);
7230
- Array.isArray(b) && (y.children = Dh(b, t, i, r, A, y, g + 1));
7230
+ Array.isArray(b) && (m.children = Dh(b, t, i, r, A, m, g + 1));
7231
7231
  }
7232
- u.push(y), t.set(y.key, y), i.has(g) || i.set(g, []), (Q = i.get(g)) === null || Q === void 0 || Q.push(y);
7232
+ u.push(m), t.set(m.key, m), i.has(g) || i.set(g, []), (Q = i.get(g)) === null || Q === void 0 || Q.push(m);
7233
7233
  }), u;
7234
7234
  }
7235
7235
  function bp(n, t = {}) {
@@ -7237,7 +7237,7 @@ function bp(n, t = {}) {
7237
7237
  const r = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map(), { getDisabled: c = ap, getIgnored: g = sp, getIsGroup: u = gp, getKey: I = np } = t, f = (i = t.getChildren) !== null && i !== void 0 ? i : ip, Q = t.ignoreEmptyChildren ? (T) => {
7238
7238
  const H = f(T);
7239
7239
  return Array.isArray(H) ? H.length ? H : null : H;
7240
- } : f, y = Object.assign({
7240
+ } : f, m = Object.assign({
7241
7241
  get key() {
7242
7242
  return I(this.rawNode);
7243
7243
  },
@@ -7259,7 +7259,7 @@ function bp(n, t = {}) {
7259
7259
  contains(T) {
7260
7260
  return yp(this, T);
7261
7261
  }
7262
- }, Qp), b = Dh(n, r, A, y, Q);
7262
+ }, Qp), b = Dh(n, r, A, m, Q);
7263
7263
  function S(T) {
7264
7264
  if (T == null)
7265
7265
  return null;
@@ -7617,12 +7617,12 @@ const Fp = Ct({
7617
7617
  namespaceRef: r,
7618
7618
  mergedClsPrefixRef: A,
7619
7619
  inlineThemeDisabled: c
7620
- } = ys(n), g = ai("Popover", "-popover", vp, vh, n, A), u = W(null), I = ht("NPopover"), f = W(null), Q = W(n.show), y = W(!1);
7620
+ } = ys(n), g = ai("Popover", "-popover", vp, vh, n, A), u = W(null), I = ht("NPopover"), f = W(null), Q = W(n.show), m = W(!1);
7621
7621
  qi(() => {
7622
7622
  const {
7623
7623
  show: D
7624
7624
  } = n;
7625
- D && !TC() && !n.internalDeactivateImmediately && (y.value = !0);
7625
+ D && !TC() && !n.internalDeactivateImmediately && (m.value = !0);
7626
7626
  });
7627
7627
  const b = ae(() => {
7628
7628
  const {
@@ -7637,7 +7637,7 @@ const Fp = Ct({
7637
7637
  capture: !0
7638
7638
  }]), D === "hover" && R.push([V0, J])), G && R.push([hc, T, void 0, {
7639
7639
  capture: !0
7640
- }]), (n.displayDirective === "show" || n.animated && y.value) && R.push([Ud, n.show]), R;
7640
+ }]), (n.displayDirective === "show" || n.animated && m.value) && R.push([Ud, n.show]), R;
7641
7641
  }), S = ae(() => {
7642
7642
  const {
7643
7643
  common: {
@@ -7720,7 +7720,7 @@ const Fp = Ct({
7720
7720
  }
7721
7721
  mi(fa, f), mi(_A, null), mi(qA, null);
7722
7722
  function U() {
7723
- if (k?.onRender(), !(n.displayDirective === "show" || n.show || n.animated && y.value))
7723
+ if (k?.onRender(), !(n.displayDirective === "show" || n.show || n.animated && m.value))
7724
7724
  return null;
7725
7725
  let G;
7726
7726
  const R = I.internalRenderBodyRef.value, {
@@ -7794,7 +7794,7 @@ const Fp = Ct({
7794
7794
  return ms(G, b.value);
7795
7795
  }
7796
7796
  return {
7797
- displayed: y,
7797
+ displayed: m,
7798
7798
  namespace: r,
7799
7799
  isMounted: I.isMountedRef,
7800
7800
  zIndex: I.zIndexRef,
@@ -7964,7 +7964,7 @@ const oo = {
7964
7964
  } = n;
7965
7965
  return !!q?.();
7966
7966
  }, I = () => u() ? !1 : c.value, f = Mg(n, ["arrow", "showArrow"]), Q = ae(() => n.overlap ? !1 : f.value);
7967
- let y = null;
7967
+ let m = null;
7968
7968
  const b = W(null), S = W(null), w = Ki(() => n.x !== void 0 && n.y !== void 0);
7969
7969
  function k(q) {
7970
7970
  const {
@@ -7976,7 +7976,7 @@ const oo = {
7976
7976
  A.value = q, ee && xi(ee, q), te && xi(te, q), q && se && xi(se, !0), q && ne && xi(ne, !1);
7977
7977
  }
7978
7978
  function M() {
7979
- y && y.syncPosition();
7979
+ m && m.syncPosition();
7980
7980
  }
7981
7981
  function F() {
7982
7982
  const {
@@ -8053,7 +8053,7 @@ const oo = {
8053
8053
  return (q = i.value) === null || q === void 0 ? void 0 : q.targetRef;
8054
8054
  }
8055
8055
  function V(q) {
8056
- y = q;
8056
+ m = q;
8057
8057
  }
8058
8058
  return mi("NPopover", {
8059
8059
  getTriggerElement: K,
@@ -8201,7 +8201,7 @@ function Gp(n) {
8201
8201
  primaryColor: I,
8202
8202
  textColor2: f,
8203
8203
  fontSizeSmall: Q,
8204
- fontSizeMedium: y,
8204
+ fontSizeMedium: m,
8205
8205
  fontSizeLarge: b,
8206
8206
  borderRadiusSmall: S,
8207
8207
  lineHeight: w
@@ -8209,7 +8209,7 @@ function Gp(n) {
8209
8209
  return Object.assign(Object.assign({}, Lp), {
8210
8210
  labelLineHeight: w,
8211
8211
  fontSizeSmall: Q,
8212
- fontSizeMedium: y,
8212
+ fontSizeMedium: m,
8213
8213
  fontSizeLarge: b,
8214
8214
  borderRadius: S,
8215
8215
  color: t,
@@ -8472,7 +8472,7 @@ const Tp = {
8472
8472
  return U ? U.disabled.value : !1;
8473
8473
  }
8474
8474
  }), {
8475
- mergedDisabledRef: y,
8475
+ mergedDisabledRef: m,
8476
8476
  mergedSizeRef: b
8477
8477
  } = Q, S = ai("Checkbox", "-checkbox", Op, Tp, n, r);
8478
8478
  function w(U) {
@@ -8491,10 +8491,10 @@ const Tp = {
8491
8491
  }
8492
8492
  }
8493
8493
  function k(U) {
8494
- y.value || w(U);
8494
+ m.value || w(U);
8495
8495
  }
8496
8496
  function M(U) {
8497
- if (!y.value)
8497
+ if (!m.value)
8498
8498
  switch (U.key) {
8499
8499
  case " ":
8500
8500
  case "Enter":
@@ -8582,7 +8582,7 @@ const Tp = {
8582
8582
  rtlEnabled: J,
8583
8583
  selfRef: i,
8584
8584
  mergedClsPrefix: r,
8585
- mergedDisabled: y,
8585
+ mergedDisabled: m,
8586
8586
  renderedChecked: f,
8587
8587
  mergedTheme: S,
8588
8588
  labelId: Rg(),
@@ -8607,7 +8607,7 @@ const Tp = {
8607
8607
  label: I,
8608
8608
  mergedClsPrefix: f,
8609
8609
  focusable: Q,
8610
- handleKeyUp: y,
8610
+ handleKeyUp: m,
8611
8611
  handleKeyDown: b,
8612
8612
  handleClick: S
8613
8613
  } = this;
@@ -8624,7 +8624,7 @@ const Tp = {
8624
8624
  "aria-checked": A ? "mixed" : i,
8625
8625
  "aria-labelledby": u,
8626
8626
  style: g,
8627
- onKeyup: y,
8627
+ onKeyup: m,
8628
8628
  onKeydown: b,
8629
8629
  onClick: S,
8630
8630
  onMousedown: () => {
@@ -8685,7 +8685,7 @@ function _p(n) {
8685
8685
  fontSizeSmall: I,
8686
8686
  fontSizeMedium: f,
8687
8687
  fontSizeLarge: Q,
8688
- fontSizeHuge: y,
8688
+ fontSizeHuge: m,
8689
8689
  heightSmall: b,
8690
8690
  heightMedium: S,
8691
8691
  heightLarge: w,
@@ -8702,7 +8702,7 @@ function _p(n) {
8702
8702
  fontSizeSmall: I,
8703
8703
  fontSizeMedium: f,
8704
8704
  fontSizeLarge: Q,
8705
- fontSizeHuge: y,
8705
+ fontSizeHuge: m,
8706
8706
  // non-inverted
8707
8707
  optionTextColor: i,
8708
8708
  optionTextColorHover: i,
@@ -8976,7 +8976,7 @@ const Nh = Ct({
8976
8976
  mergedShowRef: I,
8977
8977
  renderLabelRef: f,
8978
8978
  renderIconRef: Q,
8979
- labelFieldRef: y,
8979
+ labelFieldRef: m,
8980
8980
  childrenFieldRef: b,
8981
8981
  renderOptionRef: S,
8982
8982
  nodePropsRef: w,
@@ -9051,7 +9051,7 @@ const Nh = Ct({
9051
9051
  I.value && !te && !se.disabled && (t.doSelect(se.key, se.rawNode), t.doUpdateShow(!1));
9052
9052
  }
9053
9053
  return {
9054
- labelField: y,
9054
+ labelField: m,
9055
9055
  renderLabel: f,
9056
9056
  renderIcon: Q,
9057
9057
  siblingHasIcon: F.showIconRef,
@@ -9109,7 +9109,7 @@ const Nh = Ct({
9109
9109
  renderLabel: I,
9110
9110
  renderIcon: f,
9111
9111
  renderOption: Q,
9112
- nodeProps: y,
9112
+ nodeProps: m,
9113
9113
  props: b,
9114
9114
  scrollable: S
9115
9115
  } = this;
@@ -9129,7 +9129,7 @@ const Nh = Ct({
9129
9129
  onMouseenter: this.handleMouseEnter,
9130
9130
  onMouseleave: this.handleMouseLeave,
9131
9131
  onClick: this.handleClick
9132
- }, M = y?.(r), F = re("div", Object.assign({
9132
+ }, M = m?.(r), F = re("div", Object.assign({
9133
9133
  class: [`${c}-dropdown-option`, M?.class],
9134
9134
  "data-dropdown-option": !0
9135
9135
  }, M), re("div", ar(k, b), [re("div", {
@@ -9521,7 +9521,7 @@ const Nh = Ct({
9521
9521
  }), A = ae(() => r.value.treeNodes), c = W(null), g = W(null), u = W(null), I = ae(() => {
9522
9522
  var K, V, $;
9523
9523
  return ($ = (V = (K = c.value) !== null && K !== void 0 ? K : g.value) !== null && V !== void 0 ? V : u.value) !== null && $ !== void 0 ? $ : null;
9524
- }), f = ae(() => r.value.getPath(I.value).keyPath), Q = ae(() => r.value.getPath(n.value).keyPath), y = Ki(() => n.keyboard && i.value);
9524
+ }), f = ae(() => r.value.getPath(I.value).keyPath), Q = ae(() => r.value.getPath(n.value).keyPath), m = Ki(() => n.keyboard && i.value);
9525
9525
  K0({
9526
9526
  keydown: {
9527
9527
  ArrowUp: {
@@ -9546,7 +9546,7 @@ const Nh = Ct({
9546
9546
  },
9547
9547
  Escape: O
9548
9548
  }
9549
- }, y);
9549
+ }, m);
9550
9550
  const {
9551
9551
  mergedClsPrefixRef: b,
9552
9552
  inlineThemeDisabled: S
@@ -9712,7 +9712,7 @@ const Nh = Ct({
9712
9712
  menuProps: Q
9713
9713
  } = this;
9714
9714
  (I = this.onRender) === null || I === void 0 || I.call(this);
9715
- const y = Q?.(void 0, this.tmNodes.map((S) => S.rawNode)) || {}, b = {
9715
+ const m = Q?.(void 0, this.tmNodes.map((S) => S.rawNode)) || {}, b = {
9716
9716
  ref: UC(A),
9717
9717
  class: [r, `${f}-dropdown`, this.themeClass],
9718
9718
  clsPrefix: f,
@@ -9724,7 +9724,7 @@ const Nh = Ct({
9724
9724
  onMouseenter: g,
9725
9725
  onMouseleave: u
9726
9726
  };
9727
- return re(Mh, ar(this.$attrs, b, y));
9727
+ return re(Mh, ar(this.$attrs, b, m));
9728
9728
  }, {
9729
9729
  mergedTheme: t
9730
9730
  } = this, i = {
@@ -9860,13 +9860,13 @@ const oQ = {
9860
9860
  },
9861
9861
  self: Q
9862
9862
  } = r.value, {
9863
- opacitySpinning: y,
9863
+ opacitySpinning: m,
9864
9864
  color: b,
9865
9865
  textColor: S
9866
9866
  } = Q, w = typeof I == "number" ? B0(I) : Q[Pi("size", I)];
9867
9867
  return {
9868
9868
  "--n-bezier": f,
9869
- "--n-opacity-spinning": y,
9869
+ "--n-opacity-spinning": m,
9870
9870
  "--n-size": w,
9871
9871
  "--n-color": b,
9872
9872
  "--n-text-color": S
@@ -10053,7 +10053,7 @@ const oQ = {
10053
10053
  },
10054
10054
  emits: ["select"],
10055
10055
  setup(n, { emit: t }) {
10056
- const i = t, r = n, A = (y) => () => re("div", { innerHTML: y, class: "internal-dropdown__item-icon" }), c = [
10056
+ const i = t, r = n, A = (m) => () => re("div", { innerHTML: m, class: "internal-dropdown__item-icon" }), c = [
10057
10057
  {
10058
10058
  label: "Internal",
10059
10059
  key: "internal",
@@ -10068,20 +10068,20 @@ const oQ = {
10068
10068
  iconString: an.external,
10069
10069
  backgroundColor: "#F5CFDA"
10070
10070
  }
10071
- ], g = ae(() => c.find((y) => y.key === f.value)?.label), u = ae(() => {
10071
+ ], g = ae(() => c.find((m) => m.key === f.value)?.label), u = ae(() => {
10072
10072
  if (!r.state) return {};
10073
- const y = c.find((S) => S.key === f.value);
10074
- if (!y) return {};
10075
- const b = { backgroundColor: y.backgroundColor };
10073
+ const m = c.find((S) => S.key === f.value);
10074
+ if (!m) return {};
10075
+ const b = { backgroundColor: m.backgroundColor };
10076
10076
  return r.isDisabled && (b.opacity = 0.5, b.cursor = "default"), b;
10077
- }), I = (y, b = !1) => {
10078
- f.value = y, Q.value = c.find((S) => S.key === y)?.iconString, !b && i("select", y);
10077
+ }), I = (m, b = !1) => {
10078
+ f.value = m, Q.value = c.find((S) => S.key === m)?.iconString, !b && i("select", m);
10079
10079
  }, f = W(r.state), Q = W(null);
10080
- return wt(() => r.state, (y) => {
10081
- I(y);
10080
+ return wt(() => r.state, (m) => {
10081
+ I(m);
10082
10082
  }), Ii(() => {
10083
10083
  I(r.state, !0);
10084
- }), (y, b) => (fe(), ye("div", {
10084
+ }), (m, b) => (fe(), ye("div", {
10085
10085
  class: "internal-dropdown",
10086
10086
  style: ri(u.value)
10087
10087
  }, [
@@ -10142,7 +10142,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
10142
10142
  const i = t, r = hn(), A = n, { proxy: c } = ji(), g = c.$superdoc.config.role, u = c.$superdoc.config.isInternal, I = A.comment.creatorEmail === c.$superdoc.config.user.email, f = Object.freeze({
10143
10143
  edit: { label: "Edit", key: "edit" },
10144
10144
  delete: { label: "Delete", key: "delete" }
10145
- }), Q = ae(() => !(!A.comment || A.comment.resolvedTime || r.pendingComment || A.isPendingInput)), y = ae(() => !Q.value || A.comment.parentCommentId ? !1 : us(I ? Jt.RESOLVE_OWN : Jt.RESOLVE_OTHER, g, u)), b = ae(() => !Q.value || !A.comment.trackedChange ? !1 : us(I ? Jt.REJECT_OWN : Jt.REJECT_OTHER, g, u)), S = ae(() => !(!Q.value || A.comment.trackedChange || A.isPendingInput || w.value.length === 0)), w = ae(() => {
10145
+ }), Q = ae(() => !(!A.comment || A.comment.resolvedTime || r.pendingComment || A.isPendingInput)), m = ae(() => !Q.value || A.comment.parentCommentId ? !1 : us(I ? Jt.RESOLVE_OWN : Jt.RESOLVE_OTHER, g, u)), b = ae(() => !Q.value || !A.comment.trackedChange ? !1 : us(I ? Jt.REJECT_OWN : Jt.REJECT_OTHER, g, u)), S = ae(() => !(!Q.value || A.comment.trackedChange || A.isPendingInput || w.value.length === 0)), w = ae(() => {
10146
10146
  if (!Q.value) return !1;
10147
10147
  const J = [], T = /* @__PURE__ */ new Set();
10148
10148
  A.comment.creatorEmail === c.$superdoc.config.user.email && T.add("edit");
@@ -10161,7 +10161,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
10161
10161
  ])
10162
10162
  ]),
10163
10163
  We("div", TQ, [
10164
- y.value ? (fe(), ye("div", {
10164
+ m.value ? (fe(), ye("div", {
10165
10165
  key: 0,
10166
10166
  class: "overflow-menu__icon",
10167
10167
  innerHTML: Fe(an).markDone,
@@ -10290,7 +10290,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
10290
10290
  const i = t, r = n, { proxy: A } = ji();
10291
10291
  A.$superdoc.config.role, r.comment.email;
10292
10292
  const c = Ri(), g = hn(), { addComment: u, cancelComment: I, deleteComment: f, removePendingComment: Q } = g, {
10293
- suppressInternalExternal: y,
10293
+ suppressInternalExternal: m,
10294
10294
  getConfig: b,
10295
10295
  activeComment: S,
10296
10296
  floatingCommentsOffset: w,
@@ -10307,7 +10307,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
10307
10307
  const Ee = Qe.parentCommentId === X.commentId, Se = Qe.commentId === r.comment.commentId;
10308
10308
  return Ee || Se;
10309
10309
  }).sort((Qe, Ee) => Qe.commentId === r.comment.commentId && Qe.createdTime - Ee.createdTime);
10310
- }), V = ae(() => r.comment.resolvedTime ? !0 : b.value.readOnly), $ = ae(() => (X) => O.value === X.commentId), q = ae(() => A.$superdoc.config.isInternal ? !y.value && !r.comment.trackedChange : !1), ee = ae(() => M.value && M.value !== "<p></p>"), te = () => {
10310
+ }), V = ae(() => r.comment.resolvedTime ? !0 : b.value.readOnly), $ = ae(() => (X) => O.value === X.commentId), q = ae(() => A.$superdoc.config.isInternal ? !m.value && !r.comment.trackedChange : !1), ee = ae(() => M.value && M.value !== "<p></p>"), te = () => {
10311
10311
  r.comment.resolvedTime || (S.value = r.comment.commentId, r.comment.setActive(A.$superdoc));
10312
10312
  }, se = (X) => {
10313
10313
  X.target.classList.contains("n-dropdown-option-body__label") || X.target.classList.contains("sd-editor-comment-highlight") || (S.value === r.comment.commentId && (w.value = 0, i("dialog-exit")), S.value = null);
@@ -10493,14 +10493,14 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
10493
10493
  g.value = !1;
10494
10494
  }), (f, Q) => (fe(), ye("div", hm, [
10495
10495
  n.showMainComments ? (fe(), ye("div", um, [
10496
- (fe(!0), ye(jt, null, gn(Fe(c).parentComments, (y) => (fe(), ye("div", dm, [
10497
- bi(ir, { comment: y }, null, 8, ["comment"])
10496
+ (fe(!0), ye(jt, null, gn(Fe(c).parentComments, (m) => (fe(), ye("div", dm, [
10497
+ bi(ir, { comment: m }, null, 8, ["comment"])
10498
10498
  ]))), 256))
10499
10499
  ])) : Ze("", !0),
10500
10500
  I.value ? (fe(), ye("div", Im, [
10501
10501
  Q[0] || (Q[0] = We("div", { class: "comment-title" }, "Resolved", -1)),
10502
- (fe(!0), ye(jt, null, gn(Fe(c).resolvedComments, (y) => (fe(), ye("div", Cm, [
10503
- bi(ir, { comment: y }, null, 8, ["comment"])
10502
+ (fe(!0), ye(jt, null, gn(Fe(c).resolvedComments, (m) => (fe(), ye("div", Cm, [
10503
+ bi(ir, { comment: m }, null, 8, ["comment"])
10504
10504
  ]))), 256))
10505
10505
  ])) : Ze("", !0)
10506
10506
  ]));
@@ -10618,11 +10618,11 @@ var pm = {
10618
10618
  5636: (
10619
10619
  /***/
10620
10620
  (n, t, i) => {
10621
- var r = i(4475), A = i(9504), c = i(6706), g = i(7696), u = i(3238), I = i(7394), f = i(4483), Q = i(1548), y = r.structuredClone, b = r.ArrayBuffer, S = r.DataView, w = r.TypeError, k = Math.min, M = b.prototype, F = S.prototype, O = A(M.slice), J = c(M, "resizable", "get"), T = c(M, "maxByteLength", "get"), H = A(F.getInt8), U = A(F.setInt8);
10621
+ var r = i(4475), A = i(9504), c = i(6706), g = i(7696), u = i(3238), I = i(7394), f = i(4483), Q = i(1548), m = r.structuredClone, b = r.ArrayBuffer, S = r.DataView, w = r.TypeError, k = Math.min, M = b.prototype, F = S.prototype, O = A(M.slice), J = c(M, "resizable", "get"), T = c(M, "maxByteLength", "get"), H = A(F.getInt8), U = A(F.setInt8);
10622
10622
  n.exports = (Q || f) && function(D, G, R) {
10623
10623
  var L = I(D), P = G === void 0 ? L : g(G), K = !J || !J(D), V;
10624
10624
  if (u(D)) throw new w("ArrayBuffer is detached");
10625
- if (Q && (D = y(D, { transfer: [D] }), L === P && (R || K)))
10625
+ if (Q && (D = m(D, { transfer: [D] }), L === P && (R || K)))
10626
10626
  return D;
10627
10627
  if (L >= P && (!R || K))
10628
10628
  V = O(D, 0, P);
@@ -10639,7 +10639,7 @@ var pm = {
10639
10639
  4644: (
10640
10640
  /***/
10641
10641
  (n, t, i) => {
10642
- var r = i(7811), A = i(3724), c = i(4475), g = i(4901), u = i(34), I = i(9297), f = i(6955), Q = i(6823), y = i(6699), b = i(6840), S = i(2106), w = i(1625), k = i(2787), M = i(2967), F = i(8227), O = i(3392), J = i(1181), T = J.enforce, H = J.get, U = c.Int8Array, D = U && U.prototype, G = c.Uint8ClampedArray, R = G && G.prototype, L = U && k(U), P = D && k(D), K = Object.prototype, V = c.TypeError, $ = F("toStringTag"), q = O("TYPED_ARRAY_TAG"), ee = "TypedArrayConstructor", te = r && !!M && f(c.opera) !== "Opera", se = !1, ne, Be, xe, Me = {
10642
+ var r = i(7811), A = i(3724), c = i(4475), g = i(4901), u = i(34), I = i(9297), f = i(6955), Q = i(6823), m = i(6699), b = i(6840), S = i(2106), w = i(1625), k = i(2787), M = i(2967), F = i(8227), O = i(3392), J = i(1181), T = J.enforce, H = J.get, U = c.Int8Array, D = U && U.prototype, G = c.Uint8ClampedArray, R = G && G.prototype, L = U && k(U), P = D && k(D), K = Object.prototype, V = c.TypeError, $ = F("toStringTag"), q = O("TYPED_ARRAY_TAG"), ee = "TypedArrayConstructor", te = r && !!M && f(c.opera) !== "Opera", se = !1, ne, Be, xe, Me = {
10643
10643
  Int8Array: 1,
10644
10644
  Uint8Array: 1,
10645
10645
  Uint8ClampedArray: 1,
@@ -10728,7 +10728,7 @@ var pm = {
10728
10728
  return u(this) ? this[q] : void 0;
10729
10729
  }
10730
10730
  });
10731
- for (ne in Me) c[ne] && y(c[ne], q, ne);
10731
+ for (ne in Me) c[ne] && m(c[ne], q, ne);
10732
10732
  }
10733
10733
  n.exports = {
10734
10734
  NATIVE_ARRAY_BUFFER_VIEWS: te,
@@ -10762,14 +10762,14 @@ var pm = {
10762
10762
  (n, t, i) => {
10763
10763
  var r = i(5397), A = i(5610), c = i(6198), g = function(u) {
10764
10764
  return function(I, f, Q) {
10765
- var y = r(I), b = c(y);
10765
+ var m = r(I), b = c(m);
10766
10766
  if (b === 0) return !u && -1;
10767
10767
  var S = A(Q, b), w;
10768
10768
  if (u && f !== f) {
10769
10769
  for (; b > S; )
10770
- if (w = y[S++], w !== w) return !0;
10770
+ if (w = m[S++], w !== w) return !0;
10771
10771
  } else for (; b > S; S++)
10772
- if ((u || S in y) && y[S] === f) return u || S || 0;
10772
+ if ((u || S in m) && m[S] === f) return u || S || 0;
10773
10773
  return !u && -1;
10774
10774
  };
10775
10775
  };
@@ -10821,7 +10821,7 @@ var pm = {
10821
10821
  (n, t, i) => {
10822
10822
  var r = i(6198), A = i(1291), c = RangeError;
10823
10823
  n.exports = function(g, u, I, f) {
10824
- var Q = r(g), y = A(I), b = y < 0 ? Q + y : y;
10824
+ var Q = r(g), m = A(I), b = m < 0 ? Q + m : m;
10825
10825
  if (b >= Q || b < 0) throw new c("Incorrect index");
10826
10826
  for (var S = new u(Q), w = 0; w < Q; w++) S[w] = w === b ? f : g[w];
10827
10827
  return S;
@@ -10858,15 +10858,15 @@ var pm = {
10858
10858
  (n, t, i) => {
10859
10859
  var r = i(2140), A = i(4901), c = i(4576), g = i(8227), u = g("toStringTag"), I = Object, f = c(/* @__PURE__ */ function() {
10860
10860
  return arguments;
10861
- }()) === "Arguments", Q = function(y, b) {
10861
+ }()) === "Arguments", Q = function(m, b) {
10862
10862
  try {
10863
- return y[b];
10863
+ return m[b];
10864
10864
  } catch {
10865
10865
  }
10866
10866
  };
10867
- n.exports = r ? c : function(y) {
10867
+ n.exports = r ? c : function(m) {
10868
10868
  var b, S, w;
10869
- return y === void 0 ? "Undefined" : y === null ? "Null" : typeof (S = Q(b = I(y), u)) == "string" ? S : f ? c(b) : (w = c(b)) === "Object" && A(b.callee) ? "Arguments" : w;
10869
+ return m === void 0 ? "Undefined" : m === null ? "Null" : typeof (S = Q(b = I(m), u)) == "string" ? S : f ? c(b) : (w = c(b)) === "Object" && A(b.callee) ? "Arguments" : w;
10870
10870
  };
10871
10871
  }
10872
10872
  ),
@@ -10876,9 +10876,9 @@ var pm = {
10876
10876
  (n, t, i) => {
10877
10877
  var r = i(9297), A = i(5031), c = i(7347), g = i(4913);
10878
10878
  n.exports = function(u, I, f) {
10879
- for (var Q = A(I), y = g.f, b = c.f, S = 0; S < Q.length; S++) {
10879
+ for (var Q = A(I), m = g.f, b = c.f, S = 0; S < Q.length; S++) {
10880
10880
  var w = Q[S];
10881
- !r(u, w) && !(f && r(f, w)) && y(u, w, b(I, w));
10881
+ !r(u, w) && !(f && r(f, w)) && m(u, w, b(I, w));
10882
10882
  }
10883
10883
  };
10884
10884
  }
@@ -10957,15 +10957,15 @@ var pm = {
10957
10957
  var r = i(4901), A = i(4913), c = i(283), g = i(9433);
10958
10958
  n.exports = function(u, I, f, Q) {
10959
10959
  Q || (Q = {});
10960
- var y = Q.enumerable, b = Q.name !== void 0 ? Q.name : I;
10960
+ var m = Q.enumerable, b = Q.name !== void 0 ? Q.name : I;
10961
10961
  if (r(f) && c(f, b, Q), Q.global)
10962
- y ? u[I] = f : g(I, f);
10962
+ m ? u[I] = f : g(I, f);
10963
10963
  else {
10964
10964
  try {
10965
- Q.unsafe ? u[I] && (y = !0) : delete u[I];
10965
+ Q.unsafe ? u[I] && (m = !0) : delete u[I];
10966
10966
  } catch {
10967
10967
  }
10968
- y ? u[I] = f : A.f(u, I, {
10968
+ m ? u[I] = f : A.f(u, I, {
10969
10969
  value: f,
10970
10970
  enumerable: !1,
10971
10971
  configurable: !Q.nonConfigurable,
@@ -11018,14 +11018,14 @@ var pm = {
11018
11018
  4483: (
11019
11019
  /***/
11020
11020
  (n, t, i) => {
11021
- var r = i(4475), A = i(9714), c = i(1548), g = r.structuredClone, u = r.ArrayBuffer, I = r.MessageChannel, f = !1, Q, y, b, S;
11021
+ var r = i(4475), A = i(9714), c = i(1548), g = r.structuredClone, u = r.ArrayBuffer, I = r.MessageChannel, f = !1, Q, m, b, S;
11022
11022
  if (c)
11023
11023
  f = function(w) {
11024
11024
  g(w, { transfer: [w] });
11025
11025
  };
11026
11026
  else if (u) try {
11027
- I || (Q = A("worker_threads"), Q && (I = Q.MessageChannel)), I && (y = new I(), b = new u(2), S = function(w) {
11028
- y.port1.postMessage(null, [w]);
11027
+ I || (Q = A("worker_threads"), Q && (I = Q.MessageChannel)), I && (m = new I(), b = new u(2), S = function(w) {
11028
+ m.port1.postMessage(null, [w]);
11029
11029
  }, b.byteLength === 2 && (S(b), b.byteLength === 0 && (f = S)));
11030
11030
  } catch {
11031
11031
  }
@@ -11158,10 +11158,10 @@ var pm = {
11158
11158
  /***/
11159
11159
  (n, t, i) => {
11160
11160
  var r = i(4475), A = i(7347).f, c = i(6699), g = i(6840), u = i(9433), I = i(7740), f = i(2796);
11161
- n.exports = function(Q, y) {
11161
+ n.exports = function(Q, m) {
11162
11162
  var b = Q.target, S = Q.global, w = Q.stat, k, M, F, O, J, T;
11163
- if (S ? M = r : w ? M = r[b] || u(b, {}) : M = r[b] && r[b].prototype, M) for (F in y) {
11164
- if (J = y[F], Q.dontCallGetSet ? (T = A(M, F), O = T && T.value) : O = M[F], k = f(S ? F : b + (w ? "." : "#") + F, Q.forced), !k && O !== void 0) {
11163
+ if (S ? M = r : w ? M = r[b] || u(b, {}) : M = r[b] && r[b].prototype, M) for (F in m) {
11164
+ if (J = m[F], Q.dontCallGetSet ? (T = A(M, F), O = T && T.value) : O = M[F], k = f(S ? F : b + (w ? "." : "#") + F, Q.forced), !k && O !== void 0) {
11165
11165
  if (typeof J == typeof O) continue;
11166
11166
  I(J, O);
11167
11167
  }
@@ -11318,8 +11318,8 @@ var pm = {
11318
11318
  (n, t, i) => {
11319
11319
  var r = i(9565), A = i(9306), c = i(8551), g = i(6823), u = i(851), I = TypeError;
11320
11320
  n.exports = function(f, Q) {
11321
- var y = arguments.length < 2 ? u(f) : Q;
11322
- if (A(y)) return c(r(y, f));
11321
+ var m = arguments.length < 2 ? u(f) : Q;
11322
+ if (A(m)) return c(r(m, f));
11323
11323
  throw new I(g(f) + " is not iterable");
11324
11324
  };
11325
11325
  }
@@ -11339,8 +11339,8 @@ var pm = {
11339
11339
  3789: (
11340
11340
  /***/
11341
11341
  (n, t, i) => {
11342
- var r = i(9306), A = i(8551), c = i(9565), g = i(1291), u = i(1767), I = "Invalid size", f = RangeError, Q = TypeError, y = Math.max, b = function(S, w) {
11343
- this.set = S, this.size = y(w, 0), this.has = r(S.has), this.keys = r(S.keys);
11342
+ var r = i(9306), A = i(8551), c = i(9565), g = i(1291), u = i(1767), I = "Invalid size", f = RangeError, Q = TypeError, m = Math.max, b = function(S, w) {
11343
+ this.set = S, this.size = m(w, 0), this.has = r(S.has), this.keys = r(S.keys);
11344
11344
  };
11345
11345
  b.prototype = {
11346
11346
  getIterator: function() {
@@ -11454,7 +11454,7 @@ var pm = {
11454
11454
  1181: (
11455
11455
  /***/
11456
11456
  (n, t, i) => {
11457
- var r = i(8622), A = i(4475), c = i(34), g = i(6699), u = i(9297), I = i(7629), f = i(6119), Q = i(421), y = "Object already initialized", b = A.TypeError, S = A.WeakMap, w, k, M, F = function(H) {
11457
+ var r = i(8622), A = i(4475), c = i(34), g = i(6699), u = i(9297), I = i(7629), f = i(6119), Q = i(421), m = "Object already initialized", b = A.TypeError, S = A.WeakMap, w, k, M, F = function(H) {
11458
11458
  return M(H) ? k(H) : w(H, {});
11459
11459
  }, O = function(H) {
11460
11460
  return function(U) {
@@ -11467,7 +11467,7 @@ var pm = {
11467
11467
  if (r || I.state) {
11468
11468
  var J = I.state || (I.state = new S());
11469
11469
  J.get = J.get, J.has = J.has, J.set = J.set, w = function(H, U) {
11470
- if (J.has(H)) throw new b(y);
11470
+ if (J.has(H)) throw new b(m);
11471
11471
  return U.facade = H, J.set(H, U), U;
11472
11472
  }, k = function(H) {
11473
11473
  return J.get(H) || {};
@@ -11477,7 +11477,7 @@ var pm = {
11477
11477
  } else {
11478
11478
  var T = f("state");
11479
11479
  Q[T] = !0, w = function(H, U) {
11480
- if (u(H, T)) throw new b(y);
11480
+ if (u(H, T)) throw new b(m);
11481
11481
  return U.facade = H, g(H, T, U), U;
11482
11482
  }, k = function(H) {
11483
11483
  return u(H, T) ? H[T] : {};
@@ -11541,11 +11541,11 @@ var pm = {
11541
11541
  2796: (
11542
11542
  /***/
11543
11543
  (n, t, i) => {
11544
- var r = i(9039), A = i(4901), c = /#|\.prototype\./, g = function(y, b) {
11545
- var S = I[u(y)];
11544
+ var r = i(9039), A = i(4901), c = /#|\.prototype\./, g = function(m, b) {
11545
+ var S = I[u(m)];
11546
11546
  return S === Q ? !0 : S === f ? !1 : A(b) ? r(b) : !!b;
11547
- }, u = g.normalize = function(y) {
11548
- return String(y).replace(c, ".").toLowerCase();
11547
+ }, u = g.normalize = function(m) {
11548
+ return String(m).replace(c, ".").toLowerCase();
11549
11549
  }, I = g.data = {}, f = g.NATIVE = "N", Q = g.POLYFILL = "P";
11550
11550
  n.exports = g;
11551
11551
  }
@@ -11614,7 +11614,7 @@ var pm = {
11614
11614
  2652: (
11615
11615
  /***/
11616
11616
  (n, t, i) => {
11617
- var r = i(6080), A = i(9565), c = i(8551), g = i(6823), u = i(4209), I = i(6198), f = i(1625), Q = i(81), y = i(851), b = i(9539), S = TypeError, w = function(M, F) {
11617
+ var r = i(6080), A = i(9565), c = i(8551), g = i(6823), u = i(4209), I = i(6198), f = i(1625), Q = i(81), m = i(851), b = i(9539), S = TypeError, w = function(M, F) {
11618
11618
  this.stopped = M, this.result = F;
11619
11619
  }, k = w.prototype;
11620
11620
  n.exports = function(M, F, O) {
@@ -11628,7 +11628,7 @@ var pm = {
11628
11628
  else if (U)
11629
11629
  R = M;
11630
11630
  else {
11631
- if (L = y(M), !L) throw new S(g(M) + " is not iterable");
11631
+ if (L = m(M), !L) throw new S(g(M) + " is not iterable");
11632
11632
  if (u(L)) {
11633
11633
  for (P = 0, K = I(M); K > P; P++)
11634
11634
  if (V = te(M[P]), V && f(k, V)) return V;
@@ -11662,8 +11662,8 @@ var pm = {
11662
11662
  return I;
11663
11663
  }
11664
11664
  f = r(f, g);
11665
- } catch (y) {
11666
- Q = !0, f = y;
11665
+ } catch (m) {
11666
+ Q = !0, f = m;
11667
11667
  }
11668
11668
  if (u === "throw") throw I;
11669
11669
  if (Q) throw f;
@@ -11675,7 +11675,7 @@ var pm = {
11675
11675
  9462: (
11676
11676
  /***/
11677
11677
  (n, t, i) => {
11678
- var r = i(9565), A = i(2360), c = i(6699), g = i(6279), u = i(8227), I = i(1181), f = i(5966), Q = i(7657).IteratorPrototype, y = i(2529), b = i(9539), S = u("toStringTag"), w = "IteratorHelper", k = "WrapForValidIterator", M = I.set, F = function(T) {
11678
+ var r = i(9565), A = i(2360), c = i(6699), g = i(6279), u = i(8227), I = i(1181), f = i(5966), Q = i(7657).IteratorPrototype, m = i(2529), b = i(9539), S = u("toStringTag"), w = "IteratorHelper", k = "WrapForValidIterator", M = I.set, F = function(T) {
11679
11679
  var H = I.getterFor(T ? k : w);
11680
11680
  return g(A(Q), {
11681
11681
  next: function() {
@@ -11683,7 +11683,7 @@ var pm = {
11683
11683
  if (T) return D.nextHandler();
11684
11684
  try {
11685
11685
  var G = D.done ? void 0 : D.nextHandler();
11686
- return y(G, D.done);
11686
+ return m(G, D.done);
11687
11687
  } catch (R) {
11688
11688
  throw D.done = !0, R;
11689
11689
  }
@@ -11692,14 +11692,14 @@ var pm = {
11692
11692
  var U = H(this), D = U.iterator;
11693
11693
  if (U.done = !0, T) {
11694
11694
  var G = f(D, "return");
11695
- return G ? r(G, D) : y(void 0, !0);
11695
+ return G ? r(G, D) : m(void 0, !0);
11696
11696
  }
11697
11697
  if (U.inner) try {
11698
11698
  b(U.inner.iterator, "normal");
11699
11699
  } catch (R) {
11700
11700
  return b(D, "throw", R);
11701
11701
  }
11702
- return b(D, "normal"), y(void 0, !0);
11702
+ return b(D, "normal"), m(void 0, !0);
11703
11703
  }
11704
11704
  });
11705
11705
  }, O = F(!0), J = F(!1);
@@ -11716,12 +11716,12 @@ var pm = {
11716
11716
  /***/
11717
11717
  (n, t, i) => {
11718
11718
  var r = i(9565), A = i(9306), c = i(8551), g = i(1767), u = i(9462), I = i(6319), f = u(function() {
11719
- var Q = this.iterator, y = c(r(this.next, Q)), b = this.done = !!y.done;
11720
- if (!b) return I(Q, this.mapper, [y.value, this.counter++], !0);
11719
+ var Q = this.iterator, m = c(r(this.next, Q)), b = this.done = !!m.done;
11720
+ if (!b) return I(Q, this.mapper, [m.value, this.counter++], !0);
11721
11721
  });
11722
- n.exports = function(y) {
11723
- return c(this), A(y), new f(g(this), {
11724
- mapper: y
11722
+ n.exports = function(m) {
11723
+ return c(this), A(m), new f(g(this), {
11724
+ mapper: m
11725
11725
  });
11726
11726
  };
11727
11727
  }
@@ -11730,13 +11730,13 @@ var pm = {
11730
11730
  7657: (
11731
11731
  /***/
11732
11732
  (n, t, i) => {
11733
- var r = i(9039), A = i(4901), c = i(34), g = i(2360), u = i(2787), I = i(6840), f = i(8227), Q = i(6395), y = f("iterator"), b = !1, S, w, k;
11733
+ var r = i(9039), A = i(4901), c = i(34), g = i(2360), u = i(2787), I = i(6840), f = i(8227), Q = i(6395), m = f("iterator"), b = !1, S, w, k;
11734
11734
  [].keys && (k = [].keys(), "next" in k ? (w = u(u(k)), w !== Object.prototype && (S = w)) : b = !0);
11735
11735
  var M = !c(S) || r(function() {
11736
11736
  var F = {};
11737
- return S[y].call(F) !== F;
11737
+ return S[m].call(F) !== F;
11738
11738
  });
11739
- M ? S = {} : Q && (S = g(S)), A(S[y]) || I(S, y, function() {
11739
+ M ? S = {} : Q && (S = g(S)), A(S[m]) || I(S, m, function() {
11740
11740
  return this;
11741
11741
  }), n.exports = {
11742
11742
  IteratorPrototype: S,
@@ -11765,7 +11765,7 @@ var pm = {
11765
11765
  283: (
11766
11766
  /***/
11767
11767
  (n, t, i) => {
11768
- var r = i(9504), A = i(9039), c = i(4901), g = i(9297), u = i(3724), I = i(350).CONFIGURABLE, f = i(3706), Q = i(1181), y = Q.enforce, b = Q.get, S = String, w = Object.defineProperty, k = r("".slice), M = r("".replace), F = r([].join), O = u && !A(function() {
11768
+ var r = i(9504), A = i(9039), c = i(4901), g = i(9297), u = i(3724), I = i(350).CONFIGURABLE, f = i(3706), Q = i(1181), m = Q.enforce, b = Q.get, S = String, w = Object.defineProperty, k = r("".slice), M = r("".replace), F = r([].join), O = u && !A(function() {
11769
11769
  return w(function() {
11770
11770
  }, "length", { value: 8 }).length !== 8;
11771
11771
  }), J = String(String).split("String"), T = n.exports = function(H, U, D) {
@@ -11774,7 +11774,7 @@ var pm = {
11774
11774
  D && g(D, "constructor") && D.constructor ? u && w(H, "prototype", { writable: !1 }) : H.prototype && (H.prototype = void 0);
11775
11775
  } catch {
11776
11776
  }
11777
- var G = y(H);
11777
+ var G = m(H);
11778
11778
  return g(G, "source") || (G.source = F(J, typeof U == "string" ? U : "")), H;
11779
11779
  };
11780
11780
  Function.prototype.toString = T(function() {
@@ -11823,9 +11823,9 @@ var pm = {
11823
11823
  2360: (
11824
11824
  /***/
11825
11825
  (n, t, i) => {
11826
- var r = i(8551), A = i(6801), c = i(8727), g = i(421), u = i(397), I = i(4055), f = i(6119), Q = ">", y = "<", b = "prototype", S = "script", w = f("IE_PROTO"), k = function() {
11826
+ var r = i(8551), A = i(6801), c = i(8727), g = i(421), u = i(397), I = i(4055), f = i(6119), Q = ">", m = "<", b = "prototype", S = "script", w = f("IE_PROTO"), k = function() {
11827
11827
  }, M = function(H) {
11828
- return y + S + Q + H + y + "/" + S + Q;
11828
+ return m + S + Q + H + m + "/" + S + Q;
11829
11829
  }, F = function(H) {
11830
11830
  H.write(M("")), H.close();
11831
11831
  var U = H.parentWindow.Object;
@@ -11853,9 +11853,9 @@ var pm = {
11853
11853
  /***/
11854
11854
  (n, t, i) => {
11855
11855
  var r = i(3724), A = i(8686), c = i(4913), g = i(8551), u = i(5397), I = i(1072);
11856
- t.f = r && !A ? Object.defineProperties : function(Q, y) {
11856
+ t.f = r && !A ? Object.defineProperties : function(Q, m) {
11857
11857
  g(Q);
11858
- for (var b = u(y), S = I(y), w = S.length, k = 0, M; w > k; ) c.f(Q, M = S[k++], b[M]);
11858
+ for (var b = u(m), S = I(m), w = S.length, k = 0, M; w > k; ) c.f(Q, M = S[k++], b[M]);
11859
11859
  return Q;
11860
11860
  };
11861
11861
  }
@@ -11864,13 +11864,13 @@ var pm = {
11864
11864
  4913: (
11865
11865
  /***/
11866
11866
  (n, t, i) => {
11867
- var r = i(3724), A = i(5917), c = i(8686), g = i(8551), u = i(6969), I = TypeError, f = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, y = "enumerable", b = "configurable", S = "writable";
11867
+ var r = i(3724), A = i(5917), c = i(8686), g = i(8551), u = i(6969), I = TypeError, f = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, m = "enumerable", b = "configurable", S = "writable";
11868
11868
  t.f = r ? c ? function(k, M, F) {
11869
11869
  if (g(k), M = u(M), g(F), typeof k == "function" && M === "prototype" && "value" in F && S in F && !F[S]) {
11870
11870
  var O = Q(k, M);
11871
11871
  O && O[S] && (k[M] = F.value, F = {
11872
11872
  configurable: b in F ? F[b] : O[b],
11873
- enumerable: y in F ? F[y] : O[y],
11873
+ enumerable: m in F ? F[m] : O[m],
11874
11874
  writable: !1
11875
11875
  });
11876
11876
  }
@@ -11889,10 +11889,10 @@ var pm = {
11889
11889
  7347: (
11890
11890
  /***/
11891
11891
  (n, t, i) => {
11892
- var r = i(3724), A = i(9565), c = i(8773), g = i(6980), u = i(5397), I = i(6969), f = i(9297), Q = i(5917), y = Object.getOwnPropertyDescriptor;
11893
- t.f = r ? y : function(S, w) {
11892
+ var r = i(3724), A = i(9565), c = i(8773), g = i(6980), u = i(5397), I = i(6969), f = i(9297), Q = i(5917), m = Object.getOwnPropertyDescriptor;
11893
+ t.f = r ? m : function(S, w) {
11894
11894
  if (S = u(S), w = I(w), Q) try {
11895
- return y(S, w);
11895
+ return m(S, w);
11896
11896
  } catch {
11897
11897
  }
11898
11898
  if (f(S, w)) return g(!A(c.f, S, w), S[w]);
@@ -11921,8 +11921,8 @@ var pm = {
11921
11921
  /***/
11922
11922
  (n, t, i) => {
11923
11923
  var r = i(9297), A = i(4901), c = i(8981), g = i(6119), u = i(2211), I = g("IE_PROTO"), f = Object, Q = f.prototype;
11924
- n.exports = u ? f.getPrototypeOf : function(y) {
11925
- var b = c(y);
11924
+ n.exports = u ? f.getPrototypeOf : function(m) {
11925
+ var b = c(m);
11926
11926
  if (r(b, I)) return b[I];
11927
11927
  var S = b.constructor;
11928
11928
  return A(S) && b instanceof S ? S.prototype : b instanceof f ? Q : null;
@@ -11943,9 +11943,9 @@ var pm = {
11943
11943
  (n, t, i) => {
11944
11944
  var r = i(9504), A = i(9297), c = i(5397), g = i(9617).indexOf, u = i(421), I = r([].push);
11945
11945
  n.exports = function(f, Q) {
11946
- var y = c(f), b = 0, S = [], w;
11947
- for (w in y) !A(u, w) && A(y, w) && I(S, w);
11948
- for (; Q.length > b; ) A(y, w = Q[b++]) && (~g(S, w) || I(S, w));
11946
+ var m = c(f), b = 0, S = [], w;
11947
+ for (w in m) !A(u, w) && A(m, w) && I(S, w);
11948
+ for (; Q.length > b; ) A(m, w = Q[b++]) && (~g(S, w) || I(S, w));
11949
11949
  return S;
11950
11950
  };
11951
11951
  }
@@ -11982,8 +11982,8 @@ var pm = {
11982
11982
  f = r(Object.prototype, "__proto__", "set"), f(I, []), u = I instanceof Array;
11983
11983
  } catch {
11984
11984
  }
11985
- return function(y, b) {
11986
- return c(y), g(b), A(y) && (u ? f(y, b) : y.__proto__ = b), y;
11985
+ return function(m, b) {
11986
+ return c(m), g(b), A(m) && (u ? f(m, b) : m.__proto__ = b), m;
11987
11987
  };
11988
11988
  }() : void 0);
11989
11989
  }
@@ -12006,8 +12006,8 @@ var pm = {
12006
12006
  (n, t, i) => {
12007
12007
  var r = i(7751), A = i(9504), c = i(8480), g = i(3717), u = i(8551), I = A([].concat);
12008
12008
  n.exports = r("Reflect", "ownKeys") || function(Q) {
12009
- var y = c.f(u(Q)), b = g.f;
12010
- return b ? I(y, b(Q)) : y;
12009
+ var m = c.f(u(Q)), b = g.f;
12010
+ return b ? I(m, b(Q)) : m;
12011
12011
  };
12012
12012
  }
12013
12013
  ),
@@ -12015,7 +12015,7 @@ var pm = {
12015
12015
  8235: (
12016
12016
  /***/
12017
12017
  (n, t, i) => {
12018
- var r = i(9504), A = i(9297), c = SyntaxError, g = parseInt, u = String.fromCharCode, I = r("".charAt), f = r("".slice), Q = r(/./.exec), y = {
12018
+ var r = i(9504), A = i(9297), c = SyntaxError, g = parseInt, u = String.fromCharCode, I = r("".charAt), f = r("".slice), Q = r(/./.exec), m = {
12019
12019
  '\\"': '"',
12020
12020
  "\\\\": "\\",
12021
12021
  "\\/": "/",
@@ -12031,8 +12031,8 @@ var pm = {
12031
12031
  var O = I(w, k);
12032
12032
  if (O === "\\") {
12033
12033
  var J = f(w, k, k + 2);
12034
- if (A(y, J))
12035
- F += y[J], k += 2;
12034
+ if (A(m, J))
12035
+ F += m[J], k += 2;
12036
12036
  else if (J === "\\u") {
12037
12037
  k += 2;
12038
12038
  var T = f(w, k, k + 4);
@@ -12080,13 +12080,13 @@ var pm = {
12080
12080
  3440: (
12081
12081
  /***/
12082
12082
  (n, t, i) => {
12083
- var r = i(7080), A = i(4402), c = i(9286), g = i(5170), u = i(3789), I = i(8469), f = i(507), Q = A.has, y = A.remove;
12083
+ var r = i(7080), A = i(4402), c = i(9286), g = i(5170), u = i(3789), I = i(8469), f = i(507), Q = A.has, m = A.remove;
12084
12084
  n.exports = function(S) {
12085
12085
  var w = r(this), k = u(S), M = c(w);
12086
12086
  return g(w) <= k.size ? I(w, function(F) {
12087
- k.includes(F) && y(M, F);
12087
+ k.includes(F) && m(M, F);
12088
12088
  }) : f(k.getIterator(), function(F) {
12089
- Q(w, F) && y(M, F);
12089
+ Q(w, F) && m(M, F);
12090
12090
  }), M;
12091
12091
  };
12092
12092
  }
@@ -12110,11 +12110,11 @@ var pm = {
12110
12110
  8750: (
12111
12111
  /***/
12112
12112
  (n, t, i) => {
12113
- var r = i(7080), A = i(4402), c = i(5170), g = i(3789), u = i(8469), I = i(507), f = A.Set, Q = A.add, y = A.has;
12113
+ var r = i(7080), A = i(4402), c = i(5170), g = i(3789), u = i(8469), I = i(507), f = A.Set, Q = A.add, m = A.has;
12114
12114
  n.exports = function(S) {
12115
12115
  var w = r(this), k = g(S), M = new f();
12116
12116
  return c(w) > k.size ? I(k.getIterator(), function(F) {
12117
- y(w, F) && Q(M, F);
12117
+ m(w, F) && Q(M, F);
12118
12118
  }) : u(w, function(F) {
12119
12119
  k.includes(F) && Q(M, F);
12120
12120
  }), M;
@@ -12126,8 +12126,8 @@ var pm = {
12126
12126
  /***/
12127
12127
  (n, t, i) => {
12128
12128
  var r = i(7080), A = i(4402).has, c = i(5170), g = i(3789), u = i(8469), I = i(507), f = i(9539);
12129
- n.exports = function(y) {
12130
- var b = r(this), S = g(y);
12129
+ n.exports = function(m) {
12130
+ var b = r(this), S = g(m);
12131
12131
  if (c(b) <= S.size) return u(b, function(k) {
12132
12132
  if (S.includes(k)) return !1;
12133
12133
  }, !0) !== !1;
@@ -12145,8 +12145,8 @@ var pm = {
12145
12145
  var r = i(7080), A = i(5170), c = i(8469), g = i(3789);
12146
12146
  n.exports = function(I) {
12147
12147
  var f = r(this), Q = g(I);
12148
- return A(f) > Q.size ? !1 : c(f, function(y) {
12149
- if (!Q.includes(y)) return !1;
12148
+ return A(f) > Q.size ? !1 : c(f, function(m) {
12149
+ if (!Q.includes(m)) return !1;
12150
12150
  }, !0) !== !1;
12151
12151
  };
12152
12152
  }
@@ -12157,11 +12157,11 @@ var pm = {
12157
12157
  (n, t, i) => {
12158
12158
  var r = i(7080), A = i(4402).has, c = i(5170), g = i(3789), u = i(507), I = i(9539);
12159
12159
  n.exports = function(Q) {
12160
- var y = r(this), b = g(Q);
12161
- if (c(y) < b.size) return !1;
12160
+ var m = r(this), b = g(Q);
12161
+ if (c(m) < b.size) return !1;
12162
12162
  var S = b.getIterator();
12163
12163
  return u(S, function(w) {
12164
- if (!A(y, w)) return I(S, "normal", !1);
12164
+ if (!A(m, w)) return I(S, "normal", !1);
12165
12165
  }) !== !1;
12166
12166
  };
12167
12167
  }
@@ -12171,8 +12171,8 @@ var pm = {
12171
12171
  /***/
12172
12172
  (n, t, i) => {
12173
12173
  var r = i(9504), A = i(507), c = i(4402), g = c.Set, u = c.proto, I = r(u.forEach), f = r(u.keys), Q = f(new g()).next;
12174
- n.exports = function(y, b, S) {
12175
- return S ? A({ iterator: f(y), next: Q }, b) : I(y, b);
12174
+ n.exports = function(m, b, S) {
12175
+ return S ? A({ iterator: f(m), next: Q }, b) : I(m, b);
12176
12176
  };
12177
12177
  }
12178
12178
  ),
@@ -12239,8 +12239,8 @@ var pm = {
12239
12239
  (n, t, i) => {
12240
12240
  var r = i(7080), A = i(4402).add, c = i(9286), g = i(3789), u = i(507);
12241
12241
  n.exports = function(f) {
12242
- var Q = r(this), y = g(f).getIterator(), b = c(Q);
12243
- return u(y, function(S) {
12242
+ var Q = r(this), m = g(f).getIterator(), b = c(Q);
12243
+ return u(m, function(S) {
12244
12244
  A(b, S);
12245
12245
  }), b;
12246
12246
  };
@@ -12287,8 +12287,8 @@ var pm = {
12287
12287
  var r = i(4475), A = i(9039), c = i(7388), g = i(7290), u = i(516), I = i(9088), f = r.structuredClone;
12288
12288
  n.exports = !!f && !A(function() {
12289
12289
  if (u && c > 92 || I && c > 94 || g && c > 97) return !1;
12290
- var Q = new ArrayBuffer(8), y = f(Q, { transfer: [Q] });
12291
- return Q.byteLength !== 0 || y.byteLength !== 8;
12290
+ var Q = new ArrayBuffer(8), m = f(Q, { transfer: [Q] });
12291
+ return Q.byteLength !== 0 || m.byteLength !== 8;
12292
12292
  });
12293
12293
  }
12294
12294
  ),
@@ -12387,14 +12387,14 @@ var pm = {
12387
12387
  /***/
12388
12388
  (n, t, i) => {
12389
12389
  var r = i(9565), A = i(34), c = i(757), g = i(5966), u = i(4270), I = i(8227), f = TypeError, Q = I("toPrimitive");
12390
- n.exports = function(y, b) {
12391
- if (!A(y) || c(y)) return y;
12392
- var S = g(y, Q), w;
12390
+ n.exports = function(m, b) {
12391
+ if (!A(m) || c(m)) return m;
12392
+ var S = g(m, Q), w;
12393
12393
  if (S) {
12394
- if (b === void 0 && (b = "default"), w = r(S, y, b), !A(w) || c(w)) return w;
12394
+ if (b === void 0 && (b = "default"), w = r(S, m, b), !A(w) || c(w)) return w;
12395
12395
  throw new f("Can't convert object to primitive value");
12396
12396
  }
12397
- return b === void 0 && (b = "number"), u(y, b);
12397
+ return b === void 0 && (b = "number"), u(m, b);
12398
12398
  };
12399
12399
  }
12400
12400
  ),
@@ -12510,9 +12510,9 @@ var pm = {
12510
12510
  8227: (
12511
12511
  /***/
12512
12512
  (n, t, i) => {
12513
- var r = i(4475), A = i(5745), c = i(9297), g = i(3392), u = i(4495), I = i(7040), f = r.Symbol, Q = A("wks"), y = I ? f.for || f : f && f.withoutSetter || g;
12513
+ var r = i(4475), A = i(5745), c = i(9297), g = i(3392), u = i(4495), I = i(7040), f = r.Symbol, Q = A("wks"), m = I ? f.for || f : f && f.withoutSetter || g;
12514
12514
  n.exports = function(b) {
12515
- return c(Q, b) || (Q[b] = u && c(f, b) ? f[b] : y("Symbol." + b)), Q[b];
12515
+ return c(Q, b) || (Q[b] = u && c(f, b) ? f[b] : m("Symbol." + b)), Q[b];
12516
12516
  };
12517
12517
  }
12518
12518
  ),
@@ -12565,8 +12565,8 @@ var pm = {
12565
12565
  } catch (b) {
12566
12566
  return b instanceof TypeError;
12567
12567
  }
12568
- }, y = f || !Q();
12569
- r({ target: "Array", proto: !0, arity: 1, forced: y }, {
12568
+ }, m = f || !Q();
12569
+ r({ target: "Array", proto: !0, arity: 1, forced: m }, {
12570
12570
  // eslint-disable-next-line no-unused-vars -- required for `.length`
12571
12571
  push: function(S) {
12572
12572
  var w = A(this), k = c(w), M = arguments.length;
@@ -12693,7 +12693,7 @@ var pm = {
12693
12693
  9577: (
12694
12694
  /***/
12695
12695
  (n, t, i) => {
12696
- var r = i(9928), A = i(4644), c = i(1108), g = i(1291), u = i(5854), I = A.aTypedArray, f = A.getTypedArrayConstructor, Q = A.exportTypedArrayMethod, y = !!function() {
12696
+ var r = i(9928), A = i(4644), c = i(1108), g = i(1291), u = i(5854), I = A.aTypedArray, f = A.getTypedArrayConstructor, Q = A.exportTypedArrayMethod, m = !!function() {
12697
12697
  try {
12698
12698
  new Int8Array(1).with(2, { valueOf: function() {
12699
12699
  throw 8;
@@ -12705,14 +12705,14 @@ var pm = {
12705
12705
  Q("with", function(b, S) {
12706
12706
  var w = I(this), k = g(b), M = c(w) ? u(S) : +S;
12707
12707
  return r(w, f(w), k, M);
12708
- }, !y);
12708
+ }, !m);
12709
12709
  }
12710
12710
  ),
12711
12711
  /***/
12712
12712
  8992: (
12713
12713
  /***/
12714
12714
  (n, t, i) => {
12715
- var r = i(6518), A = i(4475), c = i(679), g = i(8551), u = i(4901), I = i(2787), f = i(2106), Q = i(4659), y = i(9039), b = i(9297), S = i(8227), w = i(7657).IteratorPrototype, k = i(3724), M = i(6395), F = "constructor", O = "Iterator", J = S("toStringTag"), T = TypeError, H = A[O], U = M || !u(H) || H.prototype !== w || !y(function() {
12715
+ var r = i(6518), A = i(4475), c = i(679), g = i(8551), u = i(4901), I = i(2787), f = i(2106), Q = i(4659), m = i(9039), b = i(9297), S = i(8227), w = i(7657).IteratorPrototype, k = i(3724), M = i(6395), F = "constructor", O = "Iterator", J = S("toStringTag"), T = TypeError, H = A[O], U = M || !u(H) || H.prototype !== w || !m(function() {
12716
12716
  H({});
12717
12717
  }), D = function() {
12718
12718
  if (c(this, w), I(this) === w) throw new T("Abstract class Iterator not directly constructable");
@@ -12741,9 +12741,9 @@ var pm = {
12741
12741
  r({ target: "Iterator", proto: !0, real: !0 }, {
12742
12742
  every: function(f) {
12743
12743
  g(this), c(f);
12744
- var Q = u(this), y = 0;
12744
+ var Q = u(this), m = 0;
12745
12745
  return !A(Q, function(b, S) {
12746
- if (!f(b, y++)) return S();
12746
+ if (!f(b, m++)) return S();
12747
12747
  }, { IS_RECORD: !0, INTERRUPTED: !0 }).stopped;
12748
12748
  }
12749
12749
  });
@@ -12753,7 +12753,7 @@ var pm = {
12753
12753
  4520: (
12754
12754
  /***/
12755
12755
  (n, t, i) => {
12756
- var r = i(6518), A = i(9565), c = i(9306), g = i(8551), u = i(1767), I = i(9462), f = i(6319), Q = i(6395), y = I(function() {
12756
+ var r = i(6518), A = i(9565), c = i(9306), g = i(8551), u = i(1767), I = i(9462), f = i(6319), Q = i(6395), m = I(function() {
12757
12757
  for (var b = this.iterator, S = this.predicate, w = this.next, k, M, F; ; ) {
12758
12758
  if (k = g(A(w, b)), M = this.done = !!k.done, M) return;
12759
12759
  if (F = k.value, f(b, S, [F, this.counter++], !0)) return F;
@@ -12761,7 +12761,7 @@ var pm = {
12761
12761
  });
12762
12762
  r({ target: "Iterator", proto: !0, real: !0, forced: Q }, {
12763
12763
  filter: function(S) {
12764
- return g(this), c(S), new y(u(this), {
12764
+ return g(this), c(S), new m(u(this), {
12765
12765
  predicate: S
12766
12766
  });
12767
12767
  }
@@ -12772,7 +12772,7 @@ var pm = {
12772
12772
  670: (
12773
12773
  /***/
12774
12774
  (n, t, i) => {
12775
- var r = i(6518), A = i(9565), c = i(9306), g = i(8551), u = i(1767), I = i(8646), f = i(9462), Q = i(9539), y = i(6395), b = f(function() {
12775
+ var r = i(6518), A = i(9565), c = i(9306), g = i(8551), u = i(1767), I = i(8646), f = i(9462), Q = i(9539), m = i(6395), b = f(function() {
12776
12776
  for (var S = this.iterator, w = this.mapper, k, M; ; ) {
12777
12777
  if (M = this.inner) try {
12778
12778
  if (k = g(A(M.next, M.iterator)), !k.done) return k.value;
@@ -12788,7 +12788,7 @@ var pm = {
12788
12788
  }
12789
12789
  }
12790
12790
  });
12791
- r({ target: "Iterator", proto: !0, real: !0, forced: y }, {
12791
+ r({ target: "Iterator", proto: !0, real: !0, forced: m }, {
12792
12792
  flatMap: function(w) {
12793
12793
  return g(this), c(w), new b(u(this), {
12794
12794
  mapper: w,
@@ -12816,9 +12816,9 @@ var pm = {
12816
12816
  r({ target: "Iterator", proto: !0, real: !0 }, {
12817
12817
  some: function(f) {
12818
12818
  g(this), c(f);
12819
- var Q = u(this), y = 0;
12819
+ var Q = u(this), m = 0;
12820
12820
  return A(Q, function(b, S) {
12821
- if (f(b, y++)) return S();
12821
+ if (f(b, m++)) return S();
12822
12822
  }, { IS_RECORD: !0, INTERRUPTED: !0 }).stopped;
12823
12823
  }
12824
12824
  });
@@ -12828,7 +12828,7 @@ var pm = {
12828
12828
  8335: (
12829
12829
  /***/
12830
12830
  (n, t, i) => {
12831
- var r = i(6518), A = i(3724), c = i(4475), g = i(7751), u = i(9504), I = i(9565), f = i(4901), Q = i(34), y = i(4376), b = i(9297), S = i(655), w = i(6198), k = i(4659), M = i(9039), F = i(8235), O = i(4495), J = c.JSON, T = c.Number, H = c.SyntaxError, U = J && J.parse, D = g("Object", "keys"), G = Object.getOwnPropertyDescriptor, R = u("".charAt), L = u("".slice), P = u(/./.exec), K = u([].push), V = /^\d$/, $ = /^[1-9]$/, q = /^(?:-|\d)$/, ee = /^[\t\n\r ]$/, te = 0, se = 1, ne = function(de, z) {
12831
+ var r = i(6518), A = i(3724), c = i(4475), g = i(7751), u = i(9504), I = i(9565), f = i(4901), Q = i(34), m = i(4376), b = i(9297), S = i(655), w = i(6198), k = i(4659), M = i(9039), F = i(8235), O = i(4495), J = c.JSON, T = c.Number, H = c.SyntaxError, U = J && J.parse, D = g("Object", "keys"), G = Object.getOwnPropertyDescriptor, R = u("".charAt), L = u("".slice), P = u(/./.exec), K = u([].push), V = /^\d$/, $ = /^[1-9]$/, q = /^(?:-|\d)$/, ee = /^[\t\n\r ]$/, te = 0, se = 1, ne = function(de, z) {
12832
12832
  de = S(de);
12833
12833
  var ue = new Xe(de, 0), X = ue.parse(), Qe = X.value, Ee = ue.skip(ee, X.end);
12834
12834
  if (Ee < de.length)
@@ -12837,7 +12837,7 @@ var pm = {
12837
12837
  }, Be = function(de, z, ue, X) {
12838
12838
  var Qe = de[z], Ee = X && Qe === X.value, Se = Ee && typeof X.source == "string" ? { source: X.source } : {}, _e, ut, he, ce, De;
12839
12839
  if (Q(Qe)) {
12840
- var Te = y(Qe), Je = Ee ? X.nodes : Te ? [] : {};
12840
+ var Te = m(Qe), Je = Ee ? X.nodes : Te ? [] : {};
12841
12841
  if (Te)
12842
12842
  for (_e = Je.length, he = w(Qe), ce = 0; ce < he; ce++)
12843
12843
  xe(Qe, ce, Be(Qe, "" + ce, ue, ce < _e ? Je[ce] : void 0));
@@ -13016,9 +13016,9 @@ var pm = {
13016
13016
  4979: (
13017
13017
  /***/
13018
13018
  (n, t, i) => {
13019
- var r = i(6518), A = i(4475), c = i(7751), g = i(6980), u = i(4913).f, I = i(9297), f = i(679), Q = i(3167), y = i(2603), b = i(5002), S = i(6193), w = i(3724), k = i(6395), M = "DOMException", F = c("Error"), O = c(M), J = function() {
13019
+ var r = i(6518), A = i(4475), c = i(7751), g = i(6980), u = i(4913).f, I = i(9297), f = i(679), Q = i(3167), m = i(2603), b = i(5002), S = i(6193), w = i(3724), k = i(6395), M = "DOMException", F = c("Error"), O = c(M), J = function() {
13020
13020
  f(this, T);
13021
- var ee = arguments.length, te = y(ee < 1 ? void 0 : arguments[0]), se = y(ee < 2 ? void 0 : arguments[1], "Error"), ne = new O(te, se), Be = new F(te);
13021
+ var ee = arguments.length, te = m(ee < 1 ? void 0 : arguments[0]), se = m(ee < 2 ? void 0 : arguments[1], "Error"), ne = new O(te, se), Be = new F(te);
13022
13022
  return Be.name = M, u(ne, "stack", g(1, S(Be.stack, 1))), Q(ne, this, J), ne;
13023
13023
  }, T = J.prototype = O.prototype, H = "stack" in new F(M), U = "stack" in new O(1, 2), D = O && w && Object.getOwnPropertyDescriptor(A, M), G = !!D && !(D.writable && D.configurable), R = H && !G && !U;
13024
13024
  r({ global: !0, constructor: !0, forced: k || R }, {
@@ -13039,12 +13039,12 @@ var pm = {
13039
13039
  4603: (
13040
13040
  /***/
13041
13041
  (n, t, i) => {
13042
- var r = i(6840), A = i(9504), c = i(655), g = i(2812), u = URLSearchParams, I = u.prototype, f = A(I.append), Q = A(I.delete), y = A(I.forEach), b = A([].push), S = new u("a=1&a=2&b=3");
13042
+ var r = i(6840), A = i(9504), c = i(655), g = i(2812), u = URLSearchParams, I = u.prototype, f = A(I.append), Q = A(I.delete), m = A(I.forEach), b = A([].push), S = new u("a=1&a=2&b=3");
13043
13043
  S.delete("a", 1), S.delete("b", void 0), S + "" != "a=2" && r(I, "delete", function(w) {
13044
13044
  var k = arguments.length, M = k < 2 ? void 0 : arguments[1];
13045
13045
  if (k && M === void 0) return Q(this, w);
13046
13046
  var F = [];
13047
- y(this, function(R, L) {
13047
+ m(this, function(R, L) {
13048
13048
  b(F, { key: L, value: R });
13049
13049
  }), g(k, 1);
13050
13050
  for (var O = c(w), J = c(M), T = 0, H = 0, U = !1, D = F.length, G; T < D; )
@@ -13058,8 +13058,8 @@ var pm = {
13058
13058
  7566: (
13059
13059
  /***/
13060
13060
  (n, t, i) => {
13061
- var r = i(6840), A = i(9504), c = i(655), g = i(2812), u = URLSearchParams, I = u.prototype, f = A(I.getAll), Q = A(I.has), y = new u("a=1");
13062
- (y.has("a", 2) || !y.has("a", void 0)) && r(I, "has", function(S) {
13061
+ var r = i(6840), A = i(9504), c = i(655), g = i(2812), u = URLSearchParams, I = u.prototype, f = A(I.getAll), Q = A(I.has), m = new u("a=1");
13062
+ (m.has("a", 2) || !m.has("a", void 0)) && r(I, "has", function(S) {
13063
13063
  var w = arguments.length, k = w < 2 ? void 0 : arguments[1];
13064
13064
  if (w && k === void 0) return Q(this, S);
13065
13065
  var M = f(this, S);
@@ -13340,7 +13340,7 @@ var Ue = globalThis.pdfjsLib = {};
13340
13340
  COPY_FOR_ACCESSIBILITY: 512,
13341
13341
  ASSEMBLE: 1024,
13342
13342
  PRINT_HIGH_QUALITY: 2048
13343
- }, y = {
13343
+ }, m = {
13344
13344
  FILL: 0,
13345
13345
  STROKE: 1,
13346
13346
  FILL_STROKE: 2,
@@ -13678,15 +13678,15 @@ var Ue = globalThis.pdfjsLib = {};
13678
13678
  static #e(e, s, a, o, l, h, d, C, E, B) {
13679
13679
  if (E <= 0 || E >= 1)
13680
13680
  return;
13681
- const m = 1 - E, v = E * E, N = v * E, x = m * (m * (m * e + 3 * E * s) + 3 * v * a) + N * o, _ = m * (m * (m * l + 3 * E * h) + 3 * v * d) + N * C;
13681
+ const y = 1 - E, v = E * E, N = v * E, x = y * (y * (y * e + 3 * E * s) + 3 * v * a) + N * o, _ = y * (y * (y * l + 3 * E * h) + 3 * v * d) + N * C;
13682
13682
  B[0] = Math.min(B[0], x), B[1] = Math.min(B[1], _), B[2] = Math.max(B[2], x), B[3] = Math.max(B[3], _);
13683
13683
  }
13684
- static #t(e, s, a, o, l, h, d, C, E, B, m, v) {
13684
+ static #t(e, s, a, o, l, h, d, C, E, B, y, v) {
13685
13685
  if (Math.abs(E) < 1e-12) {
13686
- Math.abs(B) >= 1e-12 && this.#e(e, s, a, o, l, h, d, C, -m / B, v);
13686
+ Math.abs(B) >= 1e-12 && this.#e(e, s, a, o, l, h, d, C, -y / B, v);
13687
13687
  return;
13688
13688
  }
13689
- const N = B ** 2 - 4 * m * E;
13689
+ const N = B ** 2 - 4 * y * E;
13690
13690
  if (N < 0)
13691
13691
  return;
13692
13692
  const x = Math.sqrt(N), _ = 2 * E;
@@ -13880,8 +13880,8 @@ var Ue = globalThis.pdfjsLib = {};
13880
13880
  #c(e) {
13881
13881
  if (e.length === 1) {
13882
13882
  const C = e[0], E = new Array(256);
13883
- for (let m = 0; m < 256; m++)
13884
- E[m] = C[m] / 255;
13883
+ for (let y = 0; y < 256; y++)
13884
+ E[y] = C[y] / 255;
13885
13885
  const B = E.join(",");
13886
13886
  return [B, B, B];
13887
13887
  }
@@ -13923,15 +13923,15 @@ var Ue = globalThis.pdfjsLib = {};
13923
13923
  const x = N / 255;
13924
13924
  C[N] = x <= 0.03928 ? x / 12.92 : ((x + 0.055) / 1.055) ** 2.4;
13925
13925
  }
13926
- const E = C.join(","), B = `g_${this.#i}_hcm_filter`, m = l.filter = this.#A(B);
13927
- this.#I(E, E, E, m), this.#g(m);
13926
+ const E = C.join(","), B = `g_${this.#i}_hcm_filter`, y = l.filter = this.#A(B);
13927
+ this.#I(E, E, E, y), this.#g(y);
13928
13928
  const v = (N, x) => {
13929
13929
  const _ = h[N] / 255, j = d[N] / 255, Y = new Array(x + 1);
13930
13930
  for (let ie = 0; ie <= x; ie++)
13931
13931
  Y[ie] = _ + ie / x * (j - _);
13932
13932
  return Y.join(",");
13933
13933
  };
13934
- return this.#I(v(0, 5), v(1, 5), v(2, 5), m), l.url = `url(#${B})`, l.url;
13934
+ return this.#I(v(0, 5), v(1, 5), v(2, 5), y), l.url = `url(#${B})`, l.url;
13935
13935
  }
13936
13936
  addAlphaFilter(e) {
13937
13937
  let s = this.#a.get(e);
@@ -13967,10 +13967,10 @@ var Ue = globalThis.pdfjsLib = {};
13967
13967
  }, this.#l.set(e, d)), !s || !a))
13968
13968
  return d.url;
13969
13969
  const [C, E] = [s, a].map(this.#f.bind(this));
13970
- let B = Math.round(0.2126 * C[0] + 0.7152 * C[1] + 0.0722 * C[2]), m = Math.round(0.2126 * E[0] + 0.7152 * E[1] + 0.0722 * E[2]), [v, N] = [o, l].map(this.#f.bind(this));
13971
- m < B && ([B, m, v, N] = [m, B, N, v]), this.#o.style.color = "";
13970
+ let B = Math.round(0.2126 * C[0] + 0.7152 * C[1] + 0.0722 * C[2]), y = Math.round(0.2126 * E[0] + 0.7152 * E[1] + 0.0722 * E[2]), [v, N] = [o, l].map(this.#f.bind(this));
13971
+ y < B && ([B, y, v, N] = [y, B, N, v]), this.#o.style.color = "";
13972
13972
  const x = (Y, ie, oe) => {
13973
- const Ae = new Array(256), Ce = (m - B) / oe, Ie = Y / 255, we = (ie - Y) / (255 * oe);
13973
+ const Ae = new Array(256), Ce = (y - B) / oe, Ie = Y / 255, we = (ie - Y) / (255 * oe);
13974
13974
  let Oe = 0;
13975
13975
  for (let He = 0; He <= oe; He++) {
13976
13976
  const et = Math.round(B + He * Ce), Ye = Ie + He * we;
@@ -14090,26 +14090,26 @@ var Ue = globalThis.pdfjsLib = {};
14090
14090
  }) {
14091
14091
  this.viewBox = e, this.scale = s, this.rotation = a, this.offsetX = o, this.offsetY = l;
14092
14092
  const d = (e[2] + e[0]) / 2, C = (e[3] + e[1]) / 2;
14093
- let E, B, m, v;
14093
+ let E, B, y, v;
14094
14094
  switch (a %= 360, a < 0 && (a += 360), a) {
14095
14095
  case 180:
14096
- E = -1, B = 0, m = 0, v = 1;
14096
+ E = -1, B = 0, y = 0, v = 1;
14097
14097
  break;
14098
14098
  case 90:
14099
- E = 0, B = 1, m = 1, v = 0;
14099
+ E = 0, B = 1, y = 1, v = 0;
14100
14100
  break;
14101
14101
  case 270:
14102
- E = 0, B = -1, m = -1, v = 0;
14102
+ E = 0, B = -1, y = -1, v = 0;
14103
14103
  break;
14104
14104
  case 0:
14105
- E = 1, B = 0, m = 0, v = -1;
14105
+ E = 1, B = 0, y = 0, v = -1;
14106
14106
  break;
14107
14107
  default:
14108
14108
  throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.");
14109
14109
  }
14110
- h && (m = -m, v = -v);
14110
+ h && (y = -y, v = -v);
14111
14111
  let N, x, _, j;
14112
- E === 0 ? (N = Math.abs(C - e[1]) * s + o, x = Math.abs(d - e[0]) * s + l, _ = (e[3] - e[1]) * s, j = (e[2] - e[0]) * s) : (N = Math.abs(d - e[0]) * s + o, x = Math.abs(C - e[1]) * s + l, _ = (e[2] - e[0]) * s, j = (e[3] - e[1]) * s), this.transform = [E * s, B * s, m * s, v * s, N - E * s * d - m * s * C, x - B * s * d - v * s * C], this.width = _, this.height = j;
14112
+ E === 0 ? (N = Math.abs(C - e[1]) * s + o, x = Math.abs(d - e[0]) * s + l, _ = (e[3] - e[1]) * s, j = (e[2] - e[0]) * s) : (N = Math.abs(d - e[0]) * s + o, x = Math.abs(C - e[1]) * s + l, _ = (e[2] - e[0]) * s, j = (e[3] - e[1]) * s), this.transform = [E * s, B * s, y * s, v * s, N - E * s * d - y * s * C, x - B * s * d - v * s * C], this.width = _, this.height = j;
14113
14113
  }
14114
14114
  get rawDims() {
14115
14115
  const {
@@ -14250,8 +14250,8 @@ var Ue = globalThis.pdfjsLib = {};
14250
14250
  const E = s[7] || "Z";
14251
14251
  let B = parseInt(s[8], 10);
14252
14252
  B = B >= 0 && B <= 23 ? B : 0;
14253
- let m = parseInt(s[9], 10) || 0;
14254
- return m = m >= 0 && m <= 59 ? m : 0, E === "-" ? (h += B, d += m) : E === "+" && (h -= B, d -= m), new Date(Date.UTC(a, o, l, h, d, C));
14253
+ let y = parseInt(s[9], 10) || 0;
14254
+ return y = y >= 0 && y <= 59 ? y : 0, E === "-" ? (h += B, d += y) : E === "+" && (h -= B, d -= y), new Date(Date.UTC(a, o, l, h, d, C));
14255
14255
  }
14256
14256
  }
14257
14257
  function Wt(p, {
@@ -14314,8 +14314,8 @@ var Ue = globalThis.pdfjsLib = {};
14314
14314
  pageHeight: l
14315
14315
  } = e.rawDims, {
14316
14316
  style: h
14317
- } = p, d = z.isCSSRoundSupported, C = `var(--scale-factor) * ${o}px`, E = `var(--scale-factor) * ${l}px`, B = d ? `round(${C}, 1px)` : `calc(${C})`, m = d ? `round(${E}, 1px)` : `calc(${E})`;
14318
- !s || e.rotation % 180 === 0 ? (h.width = B, h.height = m) : (h.width = m, h.height = B);
14317
+ } = p, d = z.isCSSRoundSupported, C = `var(--scale-factor) * ${o}px`, E = `var(--scale-factor) * ${l}px`, B = d ? `round(${C}, 1px)` : `calc(${C})`, y = d ? `round(${E}, 1px)` : `calc(${E})`;
14318
+ !s || e.rotation % 180 === 0 ? (h.width = B, h.height = y) : (h.width = y, h.height = B);
14319
14319
  }
14320
14320
  a && p.setAttribute("data-main-rotation", e.rotation);
14321
14321
  }
@@ -14474,8 +14474,8 @@ var Ue = globalThis.pdfjsLib = {};
14474
14474
  d.onload = () => {
14475
14475
  a.bitmap = d, a.isSvg = !0, E();
14476
14476
  }, h.onload = async () => {
14477
- const m = a.svgUrl = h.result;
14478
- d.src = await l ? `${m}#svgView(preserveAspectRatio(none))` : m;
14477
+ const y = a.svgUrl = h.result;
14478
+ d.src = await l ? `${y}#svgView(preserveAspectRatio(none))` : y;
14479
14479
  }, d.onerror = h.onerror = B;
14480
14480
  });
14481
14481
  h.readAsDataURL(o), await C;
@@ -14851,9 +14851,9 @@ var Ue = globalThis.pdfjsLib = {};
14851
14851
  source: this,
14852
14852
  mode: I.HIGHLIGHT
14853
14853
  }), this.showAllEditors("highlight", !0, !0));
14854
- for (const m of this.#i.values())
14855
- if (m.hasTextLayer(E)) {
14856
- m.createAndAddNewEditor({
14854
+ for (const y of this.#i.values())
14855
+ if (y.hasTextLayer(E)) {
14856
+ y.createAndAddNewEditor({
14857
14857
  x: 0,
14858
14858
  y: 0
14859
14859
  }, !1, {
@@ -15453,48 +15453,48 @@ var Ue = globalThis.pdfjsLib = {};
15453
15453
  let d;
15454
15454
  switch (e.getAttribute("data-main-rotation")) {
15455
15455
  case "90":
15456
- d = (E, B, m, v) => ({
15456
+ d = (E, B, y, v) => ({
15457
15457
  x: (B - o) / h,
15458
- y: 1 - (E + m - a) / l,
15458
+ y: 1 - (E + y - a) / l,
15459
15459
  width: v / h,
15460
- height: m / l
15460
+ height: y / l
15461
15461
  });
15462
15462
  break;
15463
15463
  case "180":
15464
- d = (E, B, m, v) => ({
15465
- x: 1 - (E + m - a) / l,
15464
+ d = (E, B, y, v) => ({
15465
+ x: 1 - (E + y - a) / l,
15466
15466
  y: 1 - (B + v - o) / h,
15467
- width: m / l,
15467
+ width: y / l,
15468
15468
  height: v / h
15469
15469
  });
15470
15470
  break;
15471
15471
  case "270":
15472
- d = (E, B, m, v) => ({
15472
+ d = (E, B, y, v) => ({
15473
15473
  x: 1 - (B + v - o) / h,
15474
15474
  y: (E - a) / l,
15475
15475
  width: v / h,
15476
- height: m / l
15476
+ height: y / l
15477
15477
  });
15478
15478
  break;
15479
15479
  default:
15480
- d = (E, B, m, v) => ({
15480
+ d = (E, B, y, v) => ({
15481
15481
  x: (E - a) / l,
15482
15482
  y: (B - o) / h,
15483
- width: m / l,
15483
+ width: y / l,
15484
15484
  height: v / h
15485
15485
  });
15486
15486
  break;
15487
15487
  }
15488
15488
  const C = [];
15489
15489
  for (let E = 0, B = s.rangeCount; E < B; E++) {
15490
- const m = s.getRangeAt(E);
15491
- if (!m.collapsed)
15490
+ const y = s.getRangeAt(E);
15491
+ if (!y.collapsed)
15492
15492
  for (const {
15493
15493
  x: v,
15494
15494
  y: N,
15495
15495
  width: x,
15496
15496
  height: _
15497
- } of m.getClientRects())
15497
+ } of y.getClientRects())
15498
15498
  x === 0 || _ === 0 || C.push(d(v, N, x, _));
15499
15499
  }
15500
15500
  return C.length === 0 ? null : C;
@@ -15941,10 +15941,10 @@ var Ue = globalThis.pdfjsLib = {};
15941
15941
  capture: !0
15942
15942
  };
15943
15943
  this.parent.togglePointerEvents(!1), window.addEventListener("pointermove", o, h), window.addEventListener("contextmenu", be);
15944
- const d = this.x, C = this.y, E = this.width, B = this.height, m = this.parent.div.style.cursor, v = this.div.style.cursor;
15944
+ const d = this.x, C = this.y, E = this.width, B = this.height, y = this.parent.div.style.cursor, v = this.div.style.cursor;
15945
15945
  this.div.style.cursor = this.parent.div.style.cursor = window.getComputedStyle(s.target).cursor;
15946
15946
  const N = () => {
15947
- this.parent.togglePointerEvents(!0), this.#t?.toggle(!0), this._isDraggable = l, window.removeEventListener("pointerup", N), window.removeEventListener("blur", N), window.removeEventListener("pointermove", o, h), window.removeEventListener("contextmenu", be), this.parent.div.style.cursor = m, this.div.style.cursor = v, this.#S(d, C, E, B);
15947
+ this.parent.togglePointerEvents(!0), this.#t?.toggle(!0), this._isDraggable = l, window.removeEventListener("pointerup", N), window.removeEventListener("blur", N), window.removeEventListener("pointermove", o, h), window.removeEventListener("contextmenu", be), this.parent.div.style.cursor = y, this.div.style.cursor = v, this.#S(d, C, E, B);
15948
15948
  };
15949
15949
  window.addEventListener("pointerup", N), window.addEventListener("blur", N);
15950
15950
  }
@@ -15965,7 +15965,7 @@ var Ue = globalThis.pdfjsLib = {};
15965
15965
  });
15966
15966
  }
15967
15967
  #m(e, s) {
15968
- const [a, o] = this.parentDimensions, l = this.x, h = this.y, d = this.width, C = this.height, E = Ne.MIN_SIZE / a, B = Ne.MIN_SIZE / o, m = (Pe) => Math.round(Pe * 1e4) / 1e4, v = this.#D(this.rotation), N = (Pe, je) => [v[0] * Pe + v[2] * je, v[1] * Pe + v[3] * je], x = this.#D(360 - this.rotation), _ = (Pe, je) => [x[0] * Pe + x[2] * je, x[1] * Pe + x[3] * je];
15968
+ const [a, o] = this.parentDimensions, l = this.x, h = this.y, d = this.width, C = this.height, E = Ne.MIN_SIZE / a, B = Ne.MIN_SIZE / o, y = (Pe) => Math.round(Pe * 1e4) / 1e4, v = this.#D(this.rotation), N = (Pe, je) => [v[0] * Pe + v[2] * je, v[1] * Pe + v[3] * je], x = this.#D(360 - this.rotation), _ = (Pe, je) => [x[0] * Pe + x[2] * je, x[1] * Pe + x[3] * je];
15969
15969
  let j, Y, ie = !1, oe = !1;
15970
15970
  switch (e) {
15971
15971
  case "topLeft":
@@ -15995,13 +15995,13 @@ var Ue = globalThis.pdfjsLib = {};
15995
15995
  }
15996
15996
  const Ae = j(d, C), Ce = Y(d, C);
15997
15997
  let Ie = N(...Ce);
15998
- const we = m(l + Ie[0]), Oe = m(h + Ie[1]);
15998
+ const we = y(l + Ie[0]), Oe = y(h + Ie[1]);
15999
15999
  let He = 1, et = 1, [Ye, kt] = this.screenToPageTranslation(s.movementX, s.movementY);
16000
16000
  if ([Ye, kt] = _(Ye / a, kt / o), ie) {
16001
16001
  const Pe = Math.hypot(d, C);
16002
16002
  He = et = Math.max(Math.min(Math.hypot(Ce[0] - Ae[0] - Ye, Ce[1] - Ae[1] - kt) / Pe, 1 / d, 1 / C), E / d, B / C);
16003
16003
  } else oe ? He = Math.max(E, Math.min(1, Math.abs(Ce[0] - Ae[0] - Ye))) / d : et = Math.max(B, Math.min(1, Math.abs(Ce[1] - Ae[1] - kt))) / C;
16004
- const xt = m(d * He), ni = m(C * et);
16004
+ const xt = y(d * He), ni = y(C * et);
16005
16005
  Ie = N(...Y(xt, ni));
16006
16006
  const Qt = we - Ie[0], zt = Oe - Ie[1];
16007
16007
  this.width = xt, this.height = ni, this.x = Qt, this.y = zt, this.setDims(a * xt, o * ni), this.fixAndSetPosition();
@@ -16085,16 +16085,16 @@ var Ue = globalThis.pdfjsLib = {};
16085
16085
  e.changeParent(this), this.x = s, this.y = a, this.fixAndSetPosition();
16086
16086
  }
16087
16087
  getRect(e, s, a = this.rotation) {
16088
- const o = this.parentScale, [l, h] = this.pageDimensions, [d, C] = this.pageTranslation, E = e / o, B = s / o, m = this.x * l, v = this.y * h, N = this.width * l, x = this.height * h;
16088
+ const o = this.parentScale, [l, h] = this.pageDimensions, [d, C] = this.pageTranslation, E = e / o, B = s / o, y = this.x * l, v = this.y * h, N = this.width * l, x = this.height * h;
16089
16089
  switch (a) {
16090
16090
  case 0:
16091
- return [m + E + d, h - v - B - x + C, m + E + N + d, h - v - B + C];
16091
+ return [y + E + d, h - v - B - x + C, y + E + N + d, h - v - B + C];
16092
16092
  case 90:
16093
- return [m + B + d, h - v + E + C, m + B + x + d, h - v + E + N + C];
16093
+ return [y + B + d, h - v + E + C, y + B + x + d, h - v + E + N + C];
16094
16094
  case 180:
16095
- return [m - E - N + d, h - v + B + C, m - E + d, h - v + B + x + C];
16095
+ return [y - E - N + d, h - v + B + C, y - E + d, h - v + B + x + C];
16096
16096
  case 270:
16097
- return [m - B - x + d, h - v - E - N + C, m - B + d, h - v - E + C];
16097
+ return [y - B - x + d, h - v - E - N + C, y - B + d, h - v - E + C];
16098
16098
  default:
16099
16099
  throw new Error("Invalid rotation");
16100
16100
  }
@@ -16381,16 +16381,16 @@ var Ue = globalThis.pdfjsLib = {};
16381
16381
  throw new Error("Invalid data format, must be a string or TypedArray.");
16382
16382
  const o = a >> 2, l = a - o * 4, h = new Uint32Array(s.buffer, 0, o);
16383
16383
  let d = 0, C = 0, E = this.h1, B = this.h2;
16384
- const m = 3432918353, v = 461845907, N = m & Li, x = v & Li;
16384
+ const y = 3432918353, v = 461845907, N = y & Li, x = v & Li;
16385
16385
  for (let _ = 0; _ < o; _++)
16386
- _ & 1 ? (d = h[_], d = d * m & ei | d * N & Li, d = d << 15 | d >>> 17, d = d * v & ei | d * x & Li, E ^= d, E = E << 13 | E >>> 19, E = E * 5 + 3864292196) : (C = h[_], C = C * m & ei | C * N & Li, C = C << 15 | C >>> 17, C = C * v & ei | C * x & Li, B ^= C, B = B << 13 | B >>> 19, B = B * 5 + 3864292196);
16386
+ _ & 1 ? (d = h[_], d = d * y & ei | d * N & Li, d = d << 15 | d >>> 17, d = d * v & ei | d * x & Li, E ^= d, E = E << 13 | E >>> 19, E = E * 5 + 3864292196) : (C = h[_], C = C * y & ei | C * N & Li, C = C << 15 | C >>> 17, C = C * v & ei | C * x & Li, B ^= C, B = B << 13 | B >>> 19, B = B * 5 + 3864292196);
16387
16387
  switch (d = 0, l) {
16388
16388
  case 3:
16389
16389
  d ^= s[o * 4 + 2] << 16;
16390
16390
  case 2:
16391
16391
  d ^= s[o * 4 + 1] << 8;
16392
16392
  case 1:
16393
- d ^= s[o * 4], d = d * m & ei | d * N & Li, d = d << 15 | d >>> 17, d = d * v & ei | d * x & Li, o & 1 ? E ^= d : B ^= d;
16393
+ d ^= s[o * 4], d = d * y & ei | d * N & Li, d = d << 15 | d >>> 17, d = d * v & ei | d * x & Li, o & 1 ? E ^= d : B ^= d;
16394
16394
  }
16395
16395
  this.h1 = E, this.h2 = B;
16396
16396
  }
@@ -16654,23 +16654,23 @@ var Ue = globalThis.pdfjsLib = {};
16654
16654
  }
16655
16655
  setTimeout(B.bind(null, Ae, Ce));
16656
16656
  }
16657
- const m = `lt${Date.now()}${this.loadTestFontId++}`;
16657
+ const y = `lt${Date.now()}${this.loadTestFontId++}`;
16658
16658
  let v = this._loadTestFont;
16659
- v = o(v, 976, m.length, m);
16659
+ v = o(v, 976, y.length, y);
16660
16660
  const x = 16, _ = 1482184792;
16661
16661
  let j = a(v, x);
16662
- for (l = 0, h = m.length - 3; l < h; l += 4)
16663
- j = j - _ + a(m, l) | 0;
16664
- l < m.length && (j = j - _ + a(m + "XXX", l) | 0), v = o(v, x, 4, Xe(j));
16665
- const Y = `url(data:font/opentype;base64,${btoa(v)});`, ie = `@font-face {font-family:"${m}";src:${Y}}`;
16662
+ for (l = 0, h = y.length - 3; l < h; l += 4)
16663
+ j = j - _ + a(y, l) | 0;
16664
+ l < y.length && (j = j - _ + a(y + "XXX", l) | 0), v = o(v, x, 4, Xe(j));
16665
+ const Y = `url(data:font/opentype;base64,${btoa(v)});`, ie = `@font-face {font-family:"${y}";src:${Y}}`;
16666
16666
  this.insertRule(ie);
16667
16667
  const oe = this._document.createElement("div");
16668
16668
  oe.style.visibility = "hidden", oe.style.width = oe.style.height = "10px", oe.style.position = "absolute", oe.style.top = oe.style.left = "0px";
16669
- for (const Ae of [e.loadedName, m]) {
16669
+ for (const Ae of [e.loadedName, y]) {
16670
16670
  const Ce = this._document.createElement("span");
16671
16671
  Ce.textContent = "Hi", Ce.style.fontFamily = Ae, oe.append(Ce);
16672
16672
  }
16673
- this._document.body.append(oe), B(m, () => {
16673
+ this._document.body.append(oe), B(y, () => {
16674
16674
  oe.remove(), s.complete();
16675
16675
  });
16676
16676
  }
@@ -16729,8 +16729,8 @@ var Ue = globalThis.pdfjsLib = {};
16729
16729
  switch (a[l++]) {
16730
16730
  case ce.BEZIER_CURVE_TO:
16731
16731
  {
16732
- const [d, C, E, B, m, v] = a.slice(l, l + 6);
16733
- o.push((N) => N.bezierCurveTo(d, C, E, B, m, v)), l += 6;
16732
+ const [d, C, E, B, y, v] = a.slice(l, l + 6);
16733
+ o.push((N) => N.bezierCurveTo(d, C, E, B, y, v)), l += 6;
16734
16734
  }
16735
16735
  break;
16736
16736
  case ce.MOVE_TO:
@@ -16748,7 +16748,7 @@ var Ue = globalThis.pdfjsLib = {};
16748
16748
  case ce.QUADRATIC_CURVE_TO:
16749
16749
  {
16750
16750
  const [d, C, E, B] = a.slice(l, l + 4);
16751
- o.push((m) => m.quadraticCurveTo(d, C, E, B)), l += 4;
16751
+ o.push((y) => y.quadraticCurveTo(d, C, E, B)), l += 4;
16752
16752
  }
16753
16753
  break;
16754
16754
  case ce.RESTORE:
@@ -16762,8 +16762,8 @@ var Ue = globalThis.pdfjsLib = {};
16762
16762
  break;
16763
16763
  case ce.TRANSFORM:
16764
16764
  {
16765
- const [d, C, E, B, m, v] = a.slice(l, l + 6);
16766
- o.push((N) => N.transform(d, C, E, B, m, v)), l += 6;
16765
+ const [d, C, E, B, y, v] = a.slice(l, l + 6);
16766
+ o.push((N) => N.transform(d, C, E, B, y, v)), l += 6;
16767
16767
  }
16768
16768
  break;
16769
16769
  case ce.TRANSLATE:
@@ -16788,13 +16788,13 @@ var Ue = globalThis.pdfjsLib = {};
16788
16788
  "./chunks/empty-GlqisfcO.es.js"
16789
16789
  ), s = await import(
16790
16790
  /*webpackIgnore: true*/
16791
- "./chunks/index-Y7BlAr93.es.js"
16791
+ "./chunks/index-BIKukPks.es.js"
16792
16792
  ).then((d) => d.i), a = await import(
16793
16793
  /*webpackIgnore: true*/
16794
- "./chunks/index-CPZ-IxHT.es.js"
16794
+ "./chunks/index-D5LUU_DK.es.js"
16795
16795
  ).then((d) => d.i), o = await import(
16796
16796
  /*webpackIgnore: true*/
16797
- "./chunks/url-t15h9onH.es.js"
16797
+ "./chunks/url-ChEJem8_.es.js"
16798
16798
  ).then((d) => d.u);
16799
16799
  let l, h;
16800
16800
  try {
@@ -16898,15 +16898,15 @@ var Ue = globalThis.pdfjsLib = {};
16898
16898
  if (o === Vt.STROKE || o === Vt.FILL) {
16899
16899
  const h = s.current.getClippedPathBoundingBox(o, Z(e)) || [0, 0, 0, 0], d = Math.ceil(h[2] - h[0]) || 1, C = Math.ceil(h[3] - h[1]) || 1, E = s.cachedCanvases.getCanvas("pattern", d, C, !0), B = E.context;
16900
16900
  B.clearRect(0, 0, B.canvas.width, B.canvas.height), B.beginPath(), B.rect(0, 0, B.canvas.width, B.canvas.height), B.translate(-h[0], -h[1]), a = X.transform(a, [1, 0, 0, 1, h[0], h[1]]), B.transform(...s.baseTransform), this.matrix && B.transform(...this.matrix), ka(B, this._bbox), B.fillStyle = this._createGradient(B), B.fill(), l = e.createPattern(E.canvas, "no-repeat");
16901
- const m = new DOMMatrix(a);
16902
- l.setTransform(m);
16901
+ const y = new DOMMatrix(a);
16902
+ l.setTransform(y);
16903
16903
  } else
16904
16904
  ka(e, this._bbox), l = this._createGradient(e);
16905
16905
  return l;
16906
16906
  }
16907
16907
  }
16908
16908
  function xa(p, e, s, a, o, l, h, d) {
16909
- const C = e.coords, E = e.colors, B = p.data, m = p.width * 4;
16909
+ const C = e.coords, E = e.colors, B = p.data, y = p.width * 4;
16910
16910
  let v;
16911
16911
  C[s + 1] > C[a + 1] && (v = s, s = a, a = v, v = l, l = h, h = v), C[a + 1] > C[o + 1] && (v = a, a = o, o = v, v = h, h = d, d = v), C[s + 1] > C[a + 1] && (v = s, s = a, a = v, v = l, l = h, h = v);
16912
16912
  const N = (C[s] + e.offsetX) * e.scaleX, x = (C[s + 1] + e.offsetY) * e.scaleY, _ = (C[a] + e.offsetX) * e.scaleX, j = (C[a + 1] + e.offsetY) * e.scaleY, Y = (C[o] + e.offsetX) * e.scaleX, ie = (C[o + 1] + e.offsetY) * e.scaleY;
@@ -16925,7 +16925,7 @@ var Ue = globalThis.pdfjsLib = {};
16925
16925
  let Tt;
16926
16926
  gi < x ? Tt = 0 : gi > ie ? Tt = 1 : Tt = (x - gi) / (x - ie), je = N - (N - Y) * Tt, pr = oe - (oe - He) * Tt, Qr = Ae - (Ae - et) * Tt, As = Ce - (Ce - Ye) * Tt;
16927
16927
  const En = Math.round(Math.min(ni, je)), Ms = Math.round(Math.max(ni, je));
16928
- let Un = m * gi + En * 4;
16928
+ let Un = y * gi + En * 4;
16929
16929
  for (let ct = En; ct <= Ms; ct++)
16930
16930
  Tt = (ni - ct) / (ni - je), Tt < 0 ? Tt = 0 : Tt > 1 && (Tt = 1), B[Un++] = Qt - (Qt - pr) * Tt | 0, B[Un++] = zt - (zt - Qr) * Tt | 0, B[Un++] = Pe - (Pe - As) * Tt | 0, B[Un++] = 255;
16931
16931
  }
@@ -16938,7 +16938,7 @@ var Ue = globalThis.pdfjsLib = {};
16938
16938
  const d = e.verticesPerRow, C = Math.floor(a.length / d) - 1, E = d - 1;
16939
16939
  for (l = 0; l < C; l++) {
16940
16940
  let B = l * d;
16941
- for (let m = 0; m < E; m++, B++)
16941
+ for (let y = 0; y < E; y++, B++)
16942
16942
  xa(p, s, a[B], a[B + 1], a[B + d], o[B], o[B + 1], o[B + d]), xa(p, s, a[B + d + 1], a[B + 1], a[B + d], o[B + d + 1], o[B + 1], o[B + d]);
16943
16943
  }
16944
16944
  break;
@@ -16955,14 +16955,14 @@ var Ue = globalThis.pdfjsLib = {};
16955
16955
  super(), this._coords = e[2], this._colors = e[3], this._figures = e[4], this._bounds = e[5], this._bbox = e[7], this._background = e[8], this.matrix = null;
16956
16956
  }
16957
16957
  _createMeshCanvas(e, s, a) {
16958
- const d = Math.floor(this._bounds[0]), C = Math.floor(this._bounds[1]), E = Math.ceil(this._bounds[2]) - d, B = Math.ceil(this._bounds[3]) - C, m = Math.min(Math.ceil(Math.abs(E * e[0] * 1.1)), 3e3), v = Math.min(Math.ceil(Math.abs(B * e[1] * 1.1)), 3e3), N = E / m, x = B / v, _ = {
16958
+ const d = Math.floor(this._bounds[0]), C = Math.floor(this._bounds[1]), E = Math.ceil(this._bounds[2]) - d, B = Math.ceil(this._bounds[3]) - C, y = Math.min(Math.ceil(Math.abs(E * e[0] * 1.1)), 3e3), v = Math.min(Math.ceil(Math.abs(B * e[1] * 1.1)), 3e3), N = E / y, x = B / v, _ = {
16959
16959
  coords: this._coords,
16960
16960
  colors: this._colors,
16961
16961
  offsetX: -d,
16962
16962
  offsetY: -C,
16963
16963
  scaleX: 1 / N,
16964
16964
  scaleY: 1 / x
16965
- }, j = m + 2 * 2, Y = v + 2 * 2, ie = a.getCanvas("mesh", j, Y, !1), oe = ie.context, Ae = oe.createImageData(m, v);
16965
+ }, j = y + 2 * 2, Y = v + 2 * 2, ie = a.getCanvas("mesh", j, Y, !1), oe = ie.context, Ae = oe.createImageData(y, v);
16966
16966
  if (s) {
16967
16967
  const Ie = Ae.data;
16968
16968
  for (let we = 0, Oe = Ie.length; we < Oe; we += 4)
@@ -17019,10 +17019,10 @@ var Ue = globalThis.pdfjsLib = {};
17019
17019
  createPatternCanvas(e) {
17020
17020
  const s = this.operatorList, a = this.bbox, o = this.xstep, l = this.ystep, h = this.paintType, d = this.tilingType, C = this.color, E = this.canvasGraphicsFactory;
17021
17021
  U("TilingType: " + d);
17022
- const B = a[0], m = a[1], v = a[2], N = a[3], x = X.singularValueDecompose2dScale(this.matrix), _ = X.singularValueDecompose2dScale(this.baseTransform), j = [x[0] * _[0], x[1] * _[1]], Y = this.getSizeAndScale(o, this.ctx.canvas.width, j[0]), ie = this.getSizeAndScale(l, this.ctx.canvas.height, j[1]), oe = e.cachedCanvases.getCanvas("pattern", Y.size, ie.size, !0), Ae = oe.context, Ce = E.createCanvasGraphics(Ae);
17022
+ const B = a[0], y = a[1], v = a[2], N = a[3], x = X.singularValueDecompose2dScale(this.matrix), _ = X.singularValueDecompose2dScale(this.baseTransform), j = [x[0] * _[0], x[1] * _[1]], Y = this.getSizeAndScale(o, this.ctx.canvas.width, j[0]), ie = this.getSizeAndScale(l, this.ctx.canvas.height, j[1]), oe = e.cachedCanvases.getCanvas("pattern", Y.size, ie.size, !0), Ae = oe.context, Ce = E.createCanvasGraphics(Ae);
17023
17023
  Ce.groupLevel = e.groupLevel, this.setFillAndStrokeStyleToContext(Ce, h, C);
17024
- let Ie = B, we = m, Oe = v, He = N;
17025
- return B < 0 && (Ie = 0, Oe += Math.abs(B)), m < 0 && (we = 0, He += Math.abs(m)), Ae.translate(-(Y.scale * Ie), -(ie.scale * we)), Ce.transform(Y.scale, 0, 0, ie.scale, 0, 0), Ae.save(), this.clipBbox(Ce, Ie, we, Oe, He), Ce.baseTransform = Z(Ce.ctx), Ce.executeOperatorList(s), Ce.endDrawing(), {
17024
+ let Ie = B, we = y, Oe = v, He = N;
17025
+ return B < 0 && (Ie = 0, Oe += Math.abs(B)), y < 0 && (we = 0, He += Math.abs(y)), Ae.translate(-(Y.scale * Ie), -(ie.scale * we)), Ce.transform(Y.scale, 0, 0, ie.scale, 0, 0), Ae.save(), this.clipBbox(Ce, Ie, we, Oe, He), Ce.baseTransform = Z(Ce.ctx), Ce.executeOperatorList(s), Ce.endDrawing(), {
17026
17026
  canvas: oe.canvas,
17027
17027
  scaleX: Y.scale,
17028
17028
  scaleY: ie.scale,
@@ -17077,7 +17077,7 @@ var Ue = globalThis.pdfjsLib = {};
17077
17077
  nonBlackColor: l = 4294967295,
17078
17078
  inverseDecode: h = !1
17079
17079
  }) {
17080
- const d = z.isLittleEndian ? 4278190080 : 255, [C, E] = h ? [l, d] : [d, l], B = a >> 3, m = a & 7, v = p.length;
17080
+ const d = z.isLittleEndian ? 4278190080 : 255, [C, E] = h ? [l, d] : [d, l], B = a >> 3, y = a & 7, v = p.length;
17081
17081
  s = new Uint32Array(s.buffer);
17082
17082
  let N = 0;
17083
17083
  for (let x = 0; x < o; x++) {
@@ -17085,10 +17085,10 @@ var Ue = globalThis.pdfjsLib = {};
17085
17085
  const Y = e < v ? p[e] : 255;
17086
17086
  s[N++] = Y & 128 ? E : C, s[N++] = Y & 64 ? E : C, s[N++] = Y & 32 ? E : C, s[N++] = Y & 16 ? E : C, s[N++] = Y & 8 ? E : C, s[N++] = Y & 4 ? E : C, s[N++] = Y & 2 ? E : C, s[N++] = Y & 1 ? E : C;
17087
17087
  }
17088
- if (m === 0)
17088
+ if (y === 0)
17089
17089
  continue;
17090
17090
  const _ = e < v ? p[e++] : 255;
17091
- for (let j = 0; j < m; j++)
17091
+ for (let j = 0; j < y; j++)
17092
17092
  s[N++] = _ & 1 << 7 - j ? E : C;
17093
17093
  }
17094
17094
  return {
@@ -17153,17 +17153,17 @@ var Ue = globalThis.pdfjsLib = {};
17153
17153
  }
17154
17154
  }
17155
17155
  function ur(p, e, s, a, o, l, h, d, C, E) {
17156
- const [B, m, v, N, x, _] = Z(p);
17157
- if (m === 0 && v === 0) {
17156
+ const [B, y, v, N, x, _] = Z(p);
17157
+ if (y === 0 && v === 0) {
17158
17158
  const ie = h * B + x, oe = Math.round(ie), Ae = d * N + _, Ce = Math.round(Ae), Ie = (h + C) * B + x, we = Math.abs(Math.round(Ie) - oe) || 1, Oe = (d + E) * N + _, He = Math.abs(Math.round(Oe) - Ce) || 1;
17159
- return p.setTransform(Math.sign(B), 0, 0, Math.sign(N), oe, Ce), p.drawImage(e, s, a, o, l, 0, 0, we, He), p.setTransform(B, m, v, N, x, _), [we, He];
17159
+ return p.setTransform(Math.sign(B), 0, 0, Math.sign(N), oe, Ce), p.drawImage(e, s, a, o, l, 0, 0, we, He), p.setTransform(B, y, v, N, x, _), [we, He];
17160
17160
  }
17161
17161
  if (B === 0 && N === 0) {
17162
- const ie = d * v + x, oe = Math.round(ie), Ae = h * m + _, Ce = Math.round(Ae), Ie = (d + E) * v + x, we = Math.abs(Math.round(Ie) - oe) || 1, Oe = (h + C) * m + _, He = Math.abs(Math.round(Oe) - Ce) || 1;
17163
- return p.setTransform(0, Math.sign(m), Math.sign(v), 0, oe, Ce), p.drawImage(e, s, a, o, l, 0, 0, He, we), p.setTransform(B, m, v, N, x, _), [He, we];
17162
+ const ie = d * v + x, oe = Math.round(ie), Ae = h * y + _, Ce = Math.round(Ae), Ie = (d + E) * v + x, we = Math.abs(Math.round(Ie) - oe) || 1, Oe = (h + C) * y + _, He = Math.abs(Math.round(Oe) - Ce) || 1;
17163
+ return p.setTransform(0, Math.sign(y), Math.sign(v), 0, oe, Ce), p.drawImage(e, s, a, o, l, 0, 0, He, we), p.setTransform(B, y, v, N, x, _), [He, we];
17164
17164
  }
17165
17165
  p.drawImage(e, s, a, o, l, h, d, C, E);
17166
- const j = Math.hypot(B, m), Y = Math.hypot(v, N);
17166
+ const j = Math.hypot(B, y), Y = Math.hypot(v, N);
17167
17167
  return [j * C, Y * E];
17168
17168
  }
17169
17169
  function lu(p) {
@@ -17176,26 +17176,26 @@ var Ue = globalThis.pdfjsLib = {};
17176
17176
  const a = 1e3, o = new Uint8Array([0, 2, 4, 0, 1, 0, 5, 4, 8, 10, 0, 8, 0, 2, 1, 0]), l = e + 1;
17177
17177
  let h = new Uint8Array(l * (s + 1)), d, C, E;
17178
17178
  const B = e + 7 & -8;
17179
- let m = new Uint8Array(B * s), v = 0;
17179
+ let y = new Uint8Array(B * s), v = 0;
17180
17180
  for (const Y of p.data) {
17181
17181
  let ie = 128;
17182
17182
  for (; ie > 0; )
17183
- m[v++] = Y & ie ? 0 : 255, ie >>= 1;
17183
+ y[v++] = Y & ie ? 0 : 255, ie >>= 1;
17184
17184
  }
17185
17185
  let N = 0;
17186
- for (v = 0, m[v] !== 0 && (h[0] = 1, ++N), C = 1; C < e; C++)
17187
- m[v] !== m[v + 1] && (h[C] = m[v] ? 2 : 1, ++N), v++;
17188
- for (m[v] !== 0 && (h[C] = 2, ++N), d = 1; d < s; d++) {
17189
- v = d * B, E = d * l, m[v - B] !== m[v] && (h[E] = m[v] ? 1 : 8, ++N);
17190
- let Y = (m[v] ? 4 : 0) + (m[v - B] ? 8 : 0);
17186
+ for (v = 0, y[v] !== 0 && (h[0] = 1, ++N), C = 1; C < e; C++)
17187
+ y[v] !== y[v + 1] && (h[C] = y[v] ? 2 : 1, ++N), v++;
17188
+ for (y[v] !== 0 && (h[C] = 2, ++N), d = 1; d < s; d++) {
17189
+ v = d * B, E = d * l, y[v - B] !== y[v] && (h[E] = y[v] ? 1 : 8, ++N);
17190
+ let Y = (y[v] ? 4 : 0) + (y[v - B] ? 8 : 0);
17191
17191
  for (C = 1; C < e; C++)
17192
- Y = (Y >> 2) + (m[v + 1] ? 4 : 0) + (m[v - B + 1] ? 8 : 0), o[Y] && (h[E + C] = o[Y], ++N), v++;
17193
- if (m[v - B] !== m[v] && (h[E + C] = m[v] ? 2 : 4, ++N), N > a)
17192
+ Y = (Y >> 2) + (y[v + 1] ? 4 : 0) + (y[v - B + 1] ? 8 : 0), o[Y] && (h[E + C] = o[Y], ++N), v++;
17193
+ if (y[v - B] !== y[v] && (h[E + C] = y[v] ? 2 : 4, ++N), N > a)
17194
17194
  return null;
17195
17195
  }
17196
- for (v = B * (s - 1), E = d * l, m[v] !== 0 && (h[E] = 8, ++N), C = 1; C < e; C++)
17197
- m[v] !== m[v + 1] && (h[E + C] = m[v] ? 4 : 8, ++N), v++;
17198
- if (m[v] !== 0 && (h[E + C] = 4, ++N), N > a)
17196
+ for (v = B * (s - 1), E = d * l, y[v] !== 0 && (h[E] = 8, ++N), C = 1; C < e; C++)
17197
+ y[v] !== y[v + 1] && (h[E + C] = y[v] ? 4 : 8, ++N), v++;
17198
+ if (y[v] !== 0 && (h[E + C] = 4, ++N), N > a)
17199
17199
  return null;
17200
17200
  const x = new Int32Array([0, l, -1, 0, -l, 0, 0, 0, 1]), _ = new Path2D();
17201
17201
  for (d = 0; N && d <= s; d++) {
@@ -17218,13 +17218,13 @@ var Ue = globalThis.pdfjsLib = {};
17218
17218
  } while (oe !== Y);
17219
17219
  --d;
17220
17220
  }
17221
- return m = null, h = null, function(Y) {
17221
+ return y = null, h = null, function(Y) {
17222
17222
  Y.save(), Y.scale(1 / e, -1 / s), Y.translate(0, -s), Y.fill(_), Y.beginPath(), Y.restore();
17223
17223
  };
17224
17224
  }
17225
17225
  class po {
17226
17226
  constructor(e, s) {
17227
- this.alphaIsShape = !1, this.fontSize = 0, this.fontSizeScale = 1, this.textMatrix = t, this.textMatrixScale = 1, this.fontMatrix = i, this.leading = 0, this.x = 0, this.y = 0, this.lineX = 0, this.lineY = 0, this.charSpacing = 0, this.wordSpacing = 0, this.textHScale = 1, this.textRenderingMode = y.FILL, this.textRise = 0, this.fillColor = "#000000", this.strokeColor = "#000000", this.patternFill = !1, this.fillAlpha = 1, this.strokeAlpha = 1, this.lineWidth = 1, this.activeSMask = null, this.transferMaps = "none", this.startNewPathAndClipBox([0, 0, e, s]);
17227
+ this.alphaIsShape = !1, this.fontSize = 0, this.fontSizeScale = 1, this.textMatrix = t, this.textMatrixScale = 1, this.fontMatrix = i, this.leading = 0, this.x = 0, this.y = 0, this.lineX = 0, this.lineY = 0, this.charSpacing = 0, this.wordSpacing = 0, this.textHScale = 1, this.textRenderingMode = m.FILL, this.textRise = 0, this.fillColor = "#000000", this.strokeColor = "#000000", this.patternFill = !1, this.fillAlpha = 1, this.strokeAlpha = 1, this.lineWidth = 1, this.activeSMask = null, this.transferMaps = "none", this.startNewPathAndClipBox([0, 0, e, s]);
17228
17228
  }
17229
17229
  clone() {
17230
17230
  const e = Object.create(this);
@@ -17244,8 +17244,8 @@ var Ue = globalThis.pdfjsLib = {};
17244
17244
  X.scaleMinMax(e, s), this.minX = Math.min(this.minX, s[0]), this.minY = Math.min(this.minY, s[1]), this.maxX = Math.max(this.maxX, s[2]), this.maxY = Math.max(this.maxY, s[3]);
17245
17245
  }
17246
17246
  updateCurvePathMinMax(e, s, a, o, l, h, d, C, E, B) {
17247
- const m = X.bezierBoundingBox(s, a, o, l, h, d, C, E, B);
17248
- B || this.updateRectMinMax(e, m);
17247
+ const y = X.bezierBoundingBox(s, a, o, l, h, d, C, E, B);
17248
+ B || this.updateRectMinMax(e, y);
17249
17249
  }
17250
17250
  getPathBoundingBox(e = Vt.FILL, s = null) {
17251
17251
  const a = [this.minX, this.minY, this.maxX, this.maxY];
@@ -17277,10 +17277,10 @@ var Ue = globalThis.pdfjsLib = {};
17277
17277
  }
17278
17278
  const s = e.height, a = e.width, o = s % ti, l = (s - o) / ti, h = o === 0 ? l : l + 1, d = p.createImageData(a, ti);
17279
17279
  let C = 0, E;
17280
- const B = e.data, m = d.data;
17280
+ const B = e.data, y = d.data;
17281
17281
  let v, N, x, _;
17282
17282
  if (e.kind === b.GRAYSCALE_1BPP) {
17283
- const j = B.byteLength, Y = new Uint32Array(m.buffer, 0, m.byteLength >> 2), ie = Y.length, oe = a + 7 >> 3, Ae = 4294967295, Ce = z.isLittleEndian ? 4278190080 : 255;
17283
+ const j = B.byteLength, Y = new Uint32Array(y.buffer, 0, y.byteLength >> 2), ie = Y.length, oe = a + 7 >> 3, Ae = 4294967295, Ce = z.isLittleEndian ? 4278190080 : 255;
17284
17284
  for (v = 0; v < h; v++) {
17285
17285
  for (x = v < l ? ti : o, E = 0, N = 0; N < x; N++) {
17286
17286
  const Ie = j - C;
@@ -17298,12 +17298,12 @@ var Ue = globalThis.pdfjsLib = {};
17298
17298
  }
17299
17299
  } else if (e.kind === b.RGBA_32BPP) {
17300
17300
  for (N = 0, _ = a * ti * 4, v = 0; v < l; v++)
17301
- m.set(B.subarray(C, C + _)), C += _, p.putImageData(d, 0, N), N += ti;
17302
- v < h && (_ = a * o * 4, m.set(B.subarray(C, C + _)), p.putImageData(d, 0, N));
17301
+ y.set(B.subarray(C, C + _)), C += _, p.putImageData(d, 0, N), N += ti;
17302
+ v < h && (_ = a * o * 4, y.set(B.subarray(C, C + _)), p.putImageData(d, 0, N));
17303
17303
  } else if (e.kind === b.RGB_24BPP)
17304
17304
  for (x = ti, _ = a * x, v = 0; v < h; v++) {
17305
17305
  for (v >= l && (x = o, _ = a * x), E = 0, N = _; N--; )
17306
- m[E++] = B[C++], m[E++] = B[C++], m[E++] = B[C++], m[E++] = 255;
17306
+ y[E++] = B[C++], y[E++] = B[C++], y[E++] = B[C++], y[E++] = 255;
17307
17307
  p.putImageData(d, 0, v * ti);
17308
17308
  }
17309
17309
  else
@@ -17317,8 +17317,8 @@ var Ue = globalThis.pdfjsLib = {};
17317
17317
  const s = e.height, a = e.width, o = s % ti, l = (s - o) / ti, h = o === 0 ? l : l + 1, d = p.createImageData(a, ti);
17318
17318
  let C = 0;
17319
17319
  const E = e.data, B = d.data;
17320
- for (let m = 0; m < h; m++) {
17321
- const v = m < l ? ti : o;
17320
+ for (let y = 0; y < h; y++) {
17321
+ const v = y < l ? ti : o;
17322
17322
  ({
17323
17323
  srcPos: C
17324
17324
  } = au({
@@ -17328,7 +17328,7 @@ var Ue = globalThis.pdfjsLib = {};
17328
17328
  width: a,
17329
17329
  height: v,
17330
17330
  nonBlackColor: 0
17331
- })), p.putImageData(d, 0, m * ti);
17331
+ })), p.putImageData(d, 0, y * ti);
17332
17332
  }
17333
17333
  }
17334
17334
  function vs(p, e) {
@@ -17384,7 +17384,7 @@ var Ue = globalThis.pdfjsLib = {};
17384
17384
  if (C === d)
17385
17385
  return d;
17386
17386
  const E = C - d > Bo && typeof a == "function", B = E ? Date.now() + Au : 0;
17387
- let m = 0;
17387
+ let y = 0;
17388
17388
  const v = this.commonObjs, N = this.objs;
17389
17389
  let x;
17390
17390
  for (; ; ) {
@@ -17400,10 +17400,10 @@ var Ue = globalThis.pdfjsLib = {};
17400
17400
  }
17401
17401
  if (d++, d === C)
17402
17402
  return d;
17403
- if (E && ++m > Bo) {
17403
+ if (E && ++y > Bo) {
17404
17404
  if (Date.now() > B)
17405
17405
  return a(), d;
17406
- m = 0;
17406
+ y = 0;
17407
17407
  }
17408
17408
  }
17409
17409
  }
@@ -17432,10 +17432,10 @@ var Ue = globalThis.pdfjsLib = {};
17432
17432
  }
17433
17433
  _scaleImage(e, s) {
17434
17434
  const a = e.width, o = e.height;
17435
- let l = Math.max(Math.hypot(s[0], s[1]), 1), h = Math.max(Math.hypot(s[2], s[3]), 1), d = a, C = o, E = "prescale1", B, m;
17435
+ let l = Math.max(Math.hypot(s[0], s[1]), 1), h = Math.max(Math.hypot(s[2], s[3]), 1), d = a, C = o, E = "prescale1", B, y;
17436
17436
  for (; l > 2 && d > 1 || h > 2 && C > 1; ) {
17437
17437
  let v = d, N = C;
17438
- l > 2 && d > 1 && (v = d >= 16384 ? Math.floor(d / 2) - 1 || 1 : Math.ceil(d / 2), l /= d / v), h > 2 && C > 1 && (N = C >= 16384 ? Math.floor(C / 2) - 1 || 1 : Math.ceil(C) / 2, h /= C / N), B = this.cachedCanvases.getCanvas(E, v, N), m = B.context, m.clearRect(0, 0, v, N), m.drawImage(e, 0, 0, d, C, 0, 0, v, N), e = B.canvas, d = v, C = N, E = E === "prescale1" ? "prescale2" : "prescale1";
17438
+ l > 2 && d > 1 && (v = d >= 16384 ? Math.floor(d / 2) - 1 || 1 : Math.ceil(d / 2), l /= d / v), h > 2 && C > 1 && (N = C >= 16384 ? Math.floor(C / 2) - 1 || 1 : Math.ceil(C) / 2, h /= C / N), B = this.cachedCanvases.getCanvas(E, v, N), y = B.context, y.clearRect(0, 0, v, N), y.drawImage(e, 0, 0, d, C, 0, 0, v, N), e = B.canvas, d = v, C = N, E = E === "prescale1" ? "prescale2" : "prescale1";
17439
17439
  }
17440
17440
  return {
17441
17441
  img: e,
@@ -17448,7 +17448,7 @@ var Ue = globalThis.pdfjsLib = {};
17448
17448
  width: a,
17449
17449
  height: o
17450
17450
  } = e, l = this.current.fillColor, h = this.current.patternFill, d = Z(s);
17451
- let C, E, B, m;
17451
+ let C, E, B, y;
17452
17452
  if ((e.bitmap || e.data) && e.count > 1) {
17453
17453
  const Oe = e.bitmap || e.data.buffer;
17454
17454
  E = JSON.stringify(h ? d : [d.slice(0, 4), l]), C = this._cachedBitmapsMap.get(Oe), C || (C = /* @__PURE__ */ new Map(), this._cachedBitmapsMap.set(Oe, C));
@@ -17463,11 +17463,11 @@ var Ue = globalThis.pdfjsLib = {};
17463
17463
  }
17464
17464
  B = He;
17465
17465
  }
17466
- B || (m = this.cachedCanvases.getCanvas("maskCanvas", a, o), mo(m.context, e));
17466
+ B || (y = this.cachedCanvases.getCanvas("maskCanvas", a, o), mo(y.context, e));
17467
17467
  let v = X.transform(d, [1 / a, 0, 0, -1 / o, 0, 0]);
17468
17468
  v = X.transform(v, [1, 0, 0, 1, 0, -o]);
17469
17469
  const [N, x, _, j] = X.getAxialAlignedBoundingBox([0, 0, a, o], v), Y = Math.round(_ - N) || 1, ie = Math.round(j - x) || 1, oe = this.cachedCanvases.getCanvas("fillCanvas", Y, ie), Ae = oe.context, Ce = N, Ie = x;
17470
- Ae.translate(-Ce, -Ie), Ae.transform(...v), B || (B = this._scaleImage(m.canvas, me(Ae)), B = B.img, C && h && C.set(E, B)), Ae.imageSmoothingEnabled = yo(Z(Ae), e.interpolate), ur(Ae, B, 0, 0, B.width, B.height, 0, 0, a, o), Ae.globalCompositeOperation = "source-in";
17470
+ Ae.translate(-Ce, -Ie), Ae.transform(...v), B || (B = this._scaleImage(y.canvas, me(Ae)), B = B.img, C && h && C.set(E, B)), Ae.imageSmoothingEnabled = yo(Z(Ae), e.interpolate), ur(Ae, B, 0, 0, B.width, B.height, 0, 0, a, o), Ae.globalCompositeOperation = "source-in";
17471
17471
  const we = X.transform(me(Ae), [1, 0, 0, 1, -Ce, -Ie]);
17472
17472
  return Ae.fillStyle = h ? l.getPattern(s, this, we, Vt.FILL) : l, Ae.fillRect(0, 0, a, o), C && !h && (this.cachedCanvases.delete("fillCanvas"), C.set(E, oe.canvas)), {
17473
17473
  canvas: oe.canvas,
@@ -17570,8 +17570,8 @@ var Ue = globalThis.pdfjsLib = {};
17570
17570
  const l = o[0], h = o[1], d = o[2] - l, C = o[3] - h;
17571
17571
  d === 0 || C === 0 || (this.genericComposeSMask(s.context, a, d, C, s.subtype, s.backdrop, s.transferMap, l, h, s.offsetX, s.offsetY), e.save(), e.globalAlpha = 1, e.globalCompositeOperation = "source-over", e.setTransform(1, 0, 0, 1, 0, 0), e.drawImage(a.canvas, 0, 0), e.restore());
17572
17572
  }
17573
- genericComposeSMask(e, s, a, o, l, h, d, C, E, B, m) {
17574
- let v = e.canvas, N = C - B, x = E - m;
17573
+ genericComposeSMask(e, s, a, o, l, h, d, C, E, B, y) {
17574
+ let v = e.canvas, N = C - B, x = E - y;
17575
17575
  if (h) {
17576
17576
  if (N < 0 || x < 0 || N + a > v.width || x + o > v.height) {
17577
17577
  const j = this.cachedCanvases.getCanvas("maskExtension", a, o), Y = j.context;
@@ -17600,19 +17600,19 @@ var Ue = globalThis.pdfjsLib = {};
17600
17600
  constructPath(e, s, a) {
17601
17601
  const o = this.ctx, l = this.current;
17602
17602
  let h = l.x, d = l.y, C, E;
17603
- const B = Z(o), m = B[0] === 0 && B[3] === 0 || B[1] === 0 && B[2] === 0, v = m ? a.slice(0) : null;
17603
+ const B = Z(o), y = B[0] === 0 && B[3] === 0 || B[1] === 0 && B[2] === 0, v = y ? a.slice(0) : null;
17604
17604
  for (let N = 0, x = 0, _ = e.length; N < _; N++)
17605
17605
  switch (e[N] | 0) {
17606
17606
  case F.rectangle:
17607
17607
  h = s[x++], d = s[x++];
17608
17608
  const j = s[x++], Y = s[x++], ie = h + j, oe = d + Y;
17609
- o.moveTo(h, d), j === 0 || Y === 0 ? o.lineTo(ie, oe) : (o.lineTo(ie, d), o.lineTo(ie, oe), o.lineTo(h, oe)), m || l.updateRectMinMax(B, [h, d, ie, oe]), o.closePath();
17609
+ o.moveTo(h, d), j === 0 || Y === 0 ? o.lineTo(ie, oe) : (o.lineTo(ie, d), o.lineTo(ie, oe), o.lineTo(h, oe)), y || l.updateRectMinMax(B, [h, d, ie, oe]), o.closePath();
17610
17610
  break;
17611
17611
  case F.moveTo:
17612
- h = s[x++], d = s[x++], o.moveTo(h, d), m || l.updatePathMinMax(B, h, d);
17612
+ h = s[x++], d = s[x++], o.moveTo(h, d), y || l.updatePathMinMax(B, h, d);
17613
17613
  break;
17614
17614
  case F.lineTo:
17615
- h = s[x++], d = s[x++], o.lineTo(h, d), m || l.updatePathMinMax(B, h, d);
17615
+ h = s[x++], d = s[x++], o.lineTo(h, d), y || l.updatePathMinMax(B, h, d);
17616
17616
  break;
17617
17617
  case F.curveTo:
17618
17618
  C = h, E = d, h = s[x + 4], d = s[x + 5], o.bezierCurveTo(s[x], s[x + 1], s[x + 2], s[x + 3], h, d), l.updateCurvePathMinMax(B, C, E, s[x], s[x + 1], s[x + 2], s[x + 3], h, d, v), x += 6;
@@ -17627,7 +17627,7 @@ var Ue = globalThis.pdfjsLib = {};
17627
17627
  o.closePath();
17628
17628
  break;
17629
17629
  }
17630
- m && l.updateScalingPathMinMax(B, v), l.setCurrentPoint(h, d);
17630
+ y && l.updateScalingPathMinMax(B, v), l.setCurrentPoint(h, d);
17631
17631
  }
17632
17632
  closePath() {
17633
17633
  this.ctx.closePath();
@@ -17728,9 +17728,9 @@ var Ue = globalThis.pdfjsLib = {};
17728
17728
  this.moveText(0, this.current.leading);
17729
17729
  }
17730
17730
  paintChar(e, s, a, o) {
17731
- const l = this.ctx, h = this.current, d = h.font, C = h.textRenderingMode, E = h.fontSize / h.fontSizeScale, B = C & y.FILL_STROKE_MASK, m = !!(C & y.ADD_TO_PATH_FLAG), v = h.patternFill && !d.missingFile;
17731
+ const l = this.ctx, h = this.current, d = h.font, C = h.textRenderingMode, E = h.fontSize / h.fontSizeScale, B = C & m.FILL_STROKE_MASK, y = !!(C & m.ADD_TO_PATH_FLAG), v = h.patternFill && !d.missingFile;
17732
17732
  let N;
17733
- (d.disableFontFace || m || v) && (N = d.getPathGenerator(this.commonObjs, e)), d.disableFontFace || v ? (l.save(), l.translate(s, a), l.beginPath(), N(l, E), o && l.setTransform(...o), (B === y.FILL || B === y.FILL_STROKE) && l.fill(), (B === y.STROKE || B === y.FILL_STROKE) && l.stroke(), l.restore()) : ((B === y.FILL || B === y.FILL_STROKE) && l.fillText(e, s, a), (B === y.STROKE || B === y.FILL_STROKE) && l.strokeText(e, s, a)), m && (this.pendingTextPaths ||= []).push({
17733
+ (d.disableFontFace || y || v) && (N = d.getPathGenerator(this.commonObjs, e)), d.disableFontFace || v ? (l.save(), l.translate(s, a), l.beginPath(), N(l, E), o && l.setTransform(...o), (B === m.FILL || B === m.FILL_STROKE) && l.fill(), (B === m.STROKE || B === m.FILL_STROKE) && l.stroke(), l.restore()) : ((B === m.FILL || B === m.FILL_STROKE) && l.fillText(e, s, a), (B === m.STROKE || B === m.FILL_STROKE) && l.strokeText(e, s, a)), y && (this.pendingTextPaths ||= []).push({
17734
17734
  transform: Z(l),
17735
17735
  x: s,
17736
17736
  y: a,
@@ -17759,7 +17759,7 @@ var Ue = globalThis.pdfjsLib = {};
17759
17759
  const o = s.fontSize;
17760
17760
  if (o === 0)
17761
17761
  return;
17762
- const l = this.ctx, h = s.fontSizeScale, d = s.charSpacing, C = s.wordSpacing, E = s.fontDirection, B = s.textHScale * E, m = e.length, v = a.vertical, N = v ? 1 : -1, x = a.defaultVMetrics, _ = o * s.fontMatrix[0], j = s.textRenderingMode === y.FILL && !a.disableFontFace && !s.patternFill;
17762
+ const l = this.ctx, h = s.fontSizeScale, d = s.charSpacing, C = s.wordSpacing, E = s.fontDirection, B = s.textHScale * E, y = e.length, v = a.vertical, N = v ? 1 : -1, x = a.defaultVMetrics, _ = o * s.fontMatrix[0], j = s.textRenderingMode === m.FILL && !a.disableFontFace && !s.patternFill;
17763
17763
  l.save(), l.transform(...s.textMatrix), l.translate(s.x, s.y + s.textRise), E > 0 ? l.scale(B, -1) : l.scale(B, 1);
17764
17764
  let Y;
17765
17765
  if (s.patternFill) {
@@ -17770,8 +17770,8 @@ var Ue = globalThis.pdfjsLib = {};
17770
17770
  let ie = s.lineWidth;
17771
17771
  const oe = s.textMatrixScale;
17772
17772
  if (oe === 0 || ie === 0) {
17773
- const Ie = s.textRenderingMode & y.FILL_STROKE_MASK;
17774
- (Ie === y.STROKE || Ie === y.FILL_STROKE) && (ie = this.getSinglePixelWidth());
17773
+ const Ie = s.textRenderingMode & m.FILL_STROKE_MASK;
17774
+ (Ie === m.STROKE || Ie === m.FILL_STROKE) && (ie = this.getSinglePixelWidth());
17775
17775
  } else
17776
17776
  ie /= oe;
17777
17777
  if (h !== 1 && (l.scale(h, h), ie /= h), l.lineWidth = ie, a.isInvalidPDFjsFont) {
@@ -17783,7 +17783,7 @@ var Ue = globalThis.pdfjsLib = {};
17783
17783
  return;
17784
17784
  }
17785
17785
  let Ae = 0, Ce;
17786
- for (Ce = 0; Ce < m; ++Ce) {
17786
+ for (Ce = 0; Ce < y; ++Ce) {
17787
17787
  const Ie = e[Ce];
17788
17788
  if (typeof Ie == "number") {
17789
17789
  Ae += N * Ie * o / 1e3;
@@ -17818,7 +17818,7 @@ var Ue = globalThis.pdfjsLib = {};
17818
17818
  v ? s.y -= Ae : s.x += Ae * B, l.restore(), this.compose();
17819
17819
  }
17820
17820
  showType3Text(e) {
17821
- const s = this.ctx, a = this.current, o = a.font, l = a.fontSize, h = a.fontDirection, d = o.vertical ? 1 : -1, C = a.charSpacing, E = a.wordSpacing, B = a.textHScale * h, m = a.fontMatrix || i, v = e.length, N = a.textRenderingMode === y.INVISIBLE;
17821
+ const s = this.ctx, a = this.current, o = a.font, l = a.fontSize, h = a.fontDirection, d = o.vertical ? 1 : -1, C = a.charSpacing, E = a.wordSpacing, B = a.textHScale * h, y = a.fontMatrix || i, v = e.length, N = a.textRenderingMode === m.INVISIBLE;
17822
17822
  let x, _, j, Y;
17823
17823
  if (!(N || l === 0)) {
17824
17824
  for (this._cachedScaleForStroking[0] = -1, this._cachedGetSinglePixelWidth = null, s.save(), s.transform(...a.textMatrix), s.translate(a.x, a.y), s.scale(B, h), x = 0; x < v; ++x) {
@@ -17831,7 +17831,7 @@ var Ue = globalThis.pdfjsLib = {};
17831
17831
  D(`Type3 character "${_.operatorListId}" is not available.`);
17832
17832
  continue;
17833
17833
  }
17834
- this.contentVisible && (this.processingType3 = _, this.save(), s.scale(l, l), s.transform(...m), this.executeOperatorList(oe), this.restore()), j = X.applyTransform([_.width, 0], m)[0] * l + ie, s.translate(j, 0), a.x += j * B;
17834
+ this.contentVisible && (this.processingType3 = _, this.save(), s.scale(l, l), s.transform(...y), this.executeOperatorList(oe), this.restore()), j = X.applyTransform([_.width, 0], y)[0] * l + ie, s.translate(j, 0), a.x += j * B;
17835
17835
  }
17836
17836
  s.restore(), this.processingType3 = null;
17837
17837
  }
@@ -17922,9 +17922,9 @@ var Ue = globalThis.pdfjsLib = {};
17922
17922
  this.current.startNewPathAndClipBox([0, 0, C, E]);
17923
17923
  let B = "groupAt" + this.groupLevel;
17924
17924
  e.smask && (B += "_smask_" + this.smaskCounter++ % 2);
17925
- const m = this.cachedCanvases.getCanvas(B, C, E), v = m.context;
17925
+ const y = this.cachedCanvases.getCanvas(B, C, E), v = y.context;
17926
17926
  v.translate(-h, -d), v.transform(...a), e.smask ? this.smaskStack.push({
17927
- canvas: m.canvas,
17927
+ canvas: y.canvas,
17928
17928
  context: v,
17929
17929
  offsetX: h,
17930
17930
  offsetY: d,
@@ -17956,8 +17956,8 @@ var Ue = globalThis.pdfjsLib = {};
17956
17956
  a = a.slice(), a[4] -= s[0], a[5] -= s[1], s = s.slice(), s[0] = s[1] = 0, s[2] = h, s[3] = d;
17957
17957
  const [C, E] = X.singularValueDecompose2dScale(Z(this.ctx)), {
17958
17958
  viewportScale: B
17959
- } = this, m = Math.ceil(h * this.outputScaleX * B), v = Math.ceil(d * this.outputScaleY * B);
17960
- this.annotationCanvas = this.canvasFactory.create(m, v);
17959
+ } = this, y = Math.ceil(h * this.outputScaleX * B), v = Math.ceil(d * this.outputScaleY * B);
17960
+ this.annotationCanvas = this.canvasFactory.create(y, v);
17961
17961
  const {
17962
17962
  canvas: N,
17963
17963
  context: x
@@ -17994,7 +17994,7 @@ var Ue = globalThis.pdfjsLib = {};
17994
17994
  d.transform(s, a, o, l, 0, 0);
17995
17995
  const E = this._createMaskCanvas(e);
17996
17996
  d.setTransform(1, 0, 0, 1, E.offsetX - C[4], E.offsetY - C[5]);
17997
- for (let B = 0, m = h.length; B < m; B += 2) {
17997
+ for (let B = 0, y = h.length; B < y; B += 2) {
17998
17998
  const v = X.transform(C, [s, a, o, l, h[B], h[B + 1]]), [N, x] = X.applyTransform([0, 0], v);
17999
17999
  d.drawImage(E.canvas, N, x);
18000
18000
  }
@@ -18010,10 +18010,10 @@ var Ue = globalThis.pdfjsLib = {};
18010
18010
  width: d,
18011
18011
  height: C,
18012
18012
  transform: E
18013
- } = l, B = this.cachedCanvases.getCanvas("maskCanvas", d, C), m = B.context;
18014
- m.save();
18013
+ } = l, B = this.cachedCanvases.getCanvas("maskCanvas", d, C), y = B.context;
18014
+ y.save();
18015
18015
  const v = this.getObject(h, l);
18016
- mo(m, v), m.globalCompositeOperation = "source-in", m.fillStyle = o ? a.getPattern(m, this, me(s), Vt.FILL) : a, m.fillRect(0, 0, d, C), m.restore(), s.save(), s.transform(...E), s.scale(1, -1), ur(s, B.canvas, 0, 0, d, C, 0, -1, 1, 1), s.restore();
18016
+ mo(y, v), y.globalCompositeOperation = "source-in", y.fillStyle = o ? a.getPattern(y, this, me(s), Vt.FILL) : a, y.fillRect(0, 0, d, C), y.restore(), s.save(), s.transform(...E), s.scale(1, -1), ur(s, B.canvas, 0, 0, d, C, 0, -1, 1, 1), s.restore();
18017
18017
  }
18018
18018
  this.compose();
18019
18019
  }
@@ -18164,16 +18164,16 @@ var Ue = globalThis.pdfjsLib = {};
18164
18164
  else if (e === 0)
18165
18165
  h = 1 / C, d = 1 / E;
18166
18166
  else {
18167
- const B = C * e, m = E * e;
18168
- h = B < 1 ? 1 / B : 1, d = m < 1 ? 1 / m : 1;
18167
+ const B = C * e, y = E * e;
18168
+ h = B < 1 ? 1 / B : 1, d = y < 1 ? 1 / y : 1;
18169
18169
  }
18170
18170
  } else {
18171
18171
  const C = Math.abs(s * l - a * o), E = Math.hypot(s, a), B = Math.hypot(o, l);
18172
18172
  if (e === 0)
18173
18173
  h = B / C, d = E / C;
18174
18174
  else {
18175
- const m = e * C;
18176
- h = B > m ? B / m : 1, d = E > m ? E / m : 1;
18175
+ const y = e * C;
18176
+ h = B > y ? B / y : 1, d = E > y ? E / y : 1;
18177
18177
  }
18178
18178
  }
18179
18179
  this._cachedScaleForStroking[0] = h, this._cachedScaleForStroking[1] = d;
@@ -18385,7 +18385,7 @@ var Ue = globalThis.pdfjsLib = {};
18385
18385
  }
18386
18386
  #e(e) {
18387
18387
  const s = e.streamId, a = this.sourceName, o = e.sourceName, l = this.comObj, h = this, d = this.actionHandler[e.action], C = {
18388
- enqueue(E, B = 1, m) {
18388
+ enqueue(E, B = 1, y) {
18389
18389
  if (this.isCancelled)
18390
18390
  return;
18391
18391
  const v = this.desiredSize;
@@ -18395,7 +18395,7 @@ var Ue = globalThis.pdfjsLib = {};
18395
18395
  stream: mt.ENQUEUE,
18396
18396
  streamId: s,
18397
18397
  chunk: E
18398
- }, m);
18398
+ }, y);
18399
18399
  },
18400
18400
  close() {
18401
18401
  this.isCancelled || (this.isCancelled = !0, l.postMessage({
@@ -18944,66 +18944,66 @@ var Ue = globalThis.pdfjsLib = {};
18944
18944
  let B = d(s);
18945
18945
  return B = E(B), l(B);
18946
18946
  }
18947
- function a(B, m) {
18948
- return new RegExp("(?:^|;)\\s*" + B + '\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)', m);
18947
+ function a(B, y) {
18948
+ return new RegExp("(?:^|;)\\s*" + B + '\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)', y);
18949
18949
  }
18950
- function o(B, m) {
18950
+ function o(B, y) {
18951
18951
  if (B) {
18952
- if (!/^[\x00-\xFF]+$/.test(m))
18953
- return m;
18952
+ if (!/^[\x00-\xFF]+$/.test(y))
18953
+ return y;
18954
18954
  try {
18955
18955
  const v = new TextDecoder(B, {
18956
18956
  fatal: !0
18957
- }), N = Me(m);
18958
- m = v.decode(N), e = !1;
18957
+ }), N = Me(y);
18958
+ y = v.decode(N), e = !1;
18959
18959
  } catch {
18960
18960
  }
18961
18961
  }
18962
- return m;
18962
+ return y;
18963
18963
  }
18964
18964
  function l(B) {
18965
18965
  return e && /[\x80-\xff]/.test(B) && (B = o("utf-8", B), e && (B = o("iso-8859-1", B))), B;
18966
18966
  }
18967
18967
  function h(B) {
18968
- const m = [];
18968
+ const y = [];
18969
18969
  let v;
18970
18970
  const N = a("filename\\*((?!0\\d)\\d+)(\\*?)", "ig");
18971
18971
  for (; (v = N.exec(B)) !== null; ) {
18972
18972
  let [, _, j, Y] = v;
18973
- if (_ = parseInt(_, 10), _ in m) {
18973
+ if (_ = parseInt(_, 10), _ in y) {
18974
18974
  if (_ === 0)
18975
18975
  break;
18976
18976
  continue;
18977
18977
  }
18978
- m[_] = [j, Y];
18978
+ y[_] = [j, Y];
18979
18979
  }
18980
18980
  const x = [];
18981
- for (let _ = 0; _ < m.length && _ in m; ++_) {
18982
- let [j, Y] = m[_];
18981
+ for (let _ = 0; _ < y.length && _ in y; ++_) {
18982
+ let [j, Y] = y[_];
18983
18983
  Y = d(Y), j && (Y = unescape(Y), _ === 0 && (Y = C(Y))), x.push(Y);
18984
18984
  }
18985
18985
  return x.join("");
18986
18986
  }
18987
18987
  function d(B) {
18988
18988
  if (B.startsWith('"')) {
18989
- const m = B.slice(1).split('\\"');
18990
- for (let v = 0; v < m.length; ++v) {
18991
- const N = m[v].indexOf('"');
18992
- N !== -1 && (m[v] = m[v].slice(0, N), m.length = v + 1), m[v] = m[v].replaceAll(/\\(.)/g, "$1");
18989
+ const y = B.slice(1).split('\\"');
18990
+ for (let v = 0; v < y.length; ++v) {
18991
+ const N = y[v].indexOf('"');
18992
+ N !== -1 && (y[v] = y[v].slice(0, N), y.length = v + 1), y[v] = y[v].replaceAll(/\\(.)/g, "$1");
18993
18993
  }
18994
- B = m.join('"');
18994
+ B = y.join('"');
18995
18995
  }
18996
18996
  return B;
18997
18997
  }
18998
18998
  function C(B) {
18999
- const m = B.indexOf("'");
19000
- if (m === -1)
18999
+ const y = B.indexOf("'");
19000
+ if (y === -1)
19001
19001
  return B;
19002
- const v = B.slice(0, m), x = B.slice(m + 1).replace(/^[^']*'/, "");
19002
+ const v = B.slice(0, y), x = B.slice(y + 1).replace(/^[^']*'/, "");
19003
19003
  return o(v, x);
19004
19004
  }
19005
19005
  function E(B) {
19006
- return !B.startsWith("=?") || /[\x00-\x19\x80-\xff]/.test(B) ? B : B.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g, function(m, v, N, x) {
19006
+ return !B.startsWith("=?") || /[\x00-\x19\x80-\xff]/.test(B) ? B : B.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g, function(y, v, N, x) {
19007
19007
  if (N === "q" || N === "Q")
19008
19008
  return x = x.replaceAll("_", " "), x = x.replaceAll(/=([0-9a-fA-F]{2})/g, function(_, j) {
19009
19009
  return String.fromCharCode(parseInt(j, 16));
@@ -19806,10 +19806,10 @@ var Ue = globalThis.pdfjsLib = {};
19806
19806
  const h = this.#A[e.fontName];
19807
19807
  h.vertical && (l += Math.PI / 2);
19808
19808
  const d = this.#s && h.fontSubstitution || h.fontFamily, C = Math.hypot(o[2], o[3]), E = C * Ti.#E(d, this.#r);
19809
- let B, m;
19810
- l === 0 ? (B = o[4], m = o[5] - E) : (B = o[4] + E * Math.sin(l), m = o[5] - E * Math.cos(l));
19809
+ let B, y;
19810
+ l === 0 ? (B = o[4], y = o[5] - E) : (B = o[4] + E * Math.sin(l), y = o[5] - E * Math.cos(l));
19811
19811
  const v = "calc(var(--scale-factor)*", N = s.style;
19812
- this.#t === this.#c ? (N.left = `${(100 * B / this.#l).toFixed(2)}%`, N.top = `${(100 * m / this.#a).toFixed(2)}%`) : (N.left = `${v}${B.toFixed(2)}px)`, N.top = `${v}${m.toFixed(2)}px)`), N.fontSize = `${v}${C.toFixed(2)}px)`, N.fontFamily = d, a.fontSize = C, s.setAttribute("role", "presentation"), s.textContent = e.str, s.dir = e.dir, this.#s && (s.dataset.fontName = h.fontSubstitutionLoadedName || e.fontName), l !== 0 && (a.angle = l * (180 / Math.PI));
19812
+ this.#t === this.#c ? (N.left = `${(100 * B / this.#l).toFixed(2)}%`, N.top = `${(100 * y / this.#a).toFixed(2)}%`) : (N.left = `${v}${B.toFixed(2)}px)`, N.top = `${v}${y.toFixed(2)}px)`), N.fontSize = `${v}${C.toFixed(2)}px)`, N.fontFamily = d, a.fontSize = C, s.setAttribute("role", "presentation"), s.textContent = e.str, s.dir = e.dir, this.#s && (s.dataset.fontName = h.fontSubstitutionLoadedName || e.fontName), l !== 0 && (a.angle = l * (180 / Math.PI));
19813
19813
  let x = !1;
19814
19814
  if (e.str.length > 1)
19815
19815
  x = !0;
@@ -19838,9 +19838,9 @@ var Ue = globalThis.pdfjsLib = {};
19838
19838
  fontFamily: E
19839
19839
  } = d, {
19840
19840
  canvasWidth: B,
19841
- fontSize: m
19841
+ fontSize: y
19842
19842
  } = a;
19843
- (l !== m || h !== E) && (o.font = `${m * this.#g}px ${E}`, e.prevFontSize = m, e.prevFontFamily = E);
19843
+ (l !== y || h !== E) && (o.font = `${y * this.#g}px ${E}`, e.prevFontSize = y, e.prevFontFamily = E);
19844
19844
  const {
19845
19845
  width: v
19846
19846
  } = o.measureText(s.textContent);
@@ -19877,21 +19877,21 @@ var Ue = globalThis.pdfjsLib = {};
19877
19877
  const h = o.measureText("");
19878
19878
  let d = h.fontBoundingBoxAscent, C = Math.abs(h.fontBoundingBoxDescent);
19879
19879
  if (d) {
19880
- const m = d / (d + C);
19881
- return this.#B.set(e, m), o.canvas.width = o.canvas.height = 0, o.font = l, m;
19880
+ const y = d / (d + C);
19881
+ return this.#B.set(e, y), o.canvas.width = o.canvas.height = 0, o.font = l, y;
19882
19882
  }
19883
19883
  o.strokeStyle = "red", o.clearRect(0, 0, ii, ii), o.strokeText("g", 0, 0);
19884
19884
  let E = o.getImageData(0, 0, ii, ii).data;
19885
19885
  C = 0;
19886
- for (let m = E.length - 1 - 3; m >= 0; m -= 4)
19887
- if (E[m] > 0) {
19888
- C = Math.ceil(m / 4 / ii);
19886
+ for (let y = E.length - 1 - 3; y >= 0; y -= 4)
19887
+ if (E[y] > 0) {
19888
+ C = Math.ceil(y / 4 / ii);
19889
19889
  break;
19890
19890
  }
19891
19891
  o.clearRect(0, 0, ii, ii), o.strokeText("A", 0, ii), E = o.getImageData(0, 0, ii, ii).data, d = 0;
19892
- for (let m = 0, v = E.length; m < v; m += 4)
19893
- if (E[m] > 0) {
19894
- d = ii - Math.floor(m / 4 / ii);
19892
+ for (let y = 0, v = E.length; y < v; y += 4)
19893
+ if (E[y] > 0) {
19894
+ d = ii - Math.floor(y / 4 / ii);
19895
19895
  break;
19896
19896
  }
19897
19897
  o.canvas.width = o.canvas.height = 0, o.font = l;
@@ -19967,13 +19967,13 @@ var Ue = globalThis.pdfjsLib = {};
19967
19967
  docId: s
19968
19968
  } = e, a = p.url ? qu(p.url) : null, o = p.data ? ju(p.data) : null, l = p.httpHeaders || null, h = p.withCredentials === !0, d = p.password ?? null, C = p.range instanceof Mo ? p.range : null, E = Number.isInteger(p.rangeChunkSize) && p.rangeChunkSize > 0 ? p.rangeChunkSize : Uu;
19969
19969
  let B = p.worker instanceof Bi ? p.worker : null;
19970
- const m = p.verbosity, v = typeof p.docBaseUrl == "string" && !Zi(p.docBaseUrl) ? p.docBaseUrl : null, N = typeof p.cMapUrl == "string" ? p.cMapUrl : null, x = p.cMapPacked !== !1, _ = p.CMapReaderFactory || Ju, j = typeof p.standardFontDataUrl == "string" ? p.standardFontDataUrl : null, Y = p.StandardFontDataFactory || Ku, ie = p.stopAtErrors !== !0, oe = Number.isInteger(p.maxImageSize) && p.maxImageSize > -1 ? p.maxImageSize : -1, Ae = p.isEvalSupported !== !1, Ce = typeof p.isOffscreenCanvasSupported == "boolean" ? p.isOffscreenCanvasSupported : !n, Ie = Number.isInteger(p.canvasMaxAreaInBytes) ? p.canvasMaxAreaInBytes : -1, we = typeof p.disableFontFace == "boolean" ? p.disableFontFace : n, Oe = p.fontExtraProperties === !0, He = p.enableXfa === !0, et = p.ownerDocument || globalThis.document, Ye = p.disableRange === !0, kt = p.disableStream === !0, xt = p.disableAutoFetch === !0, ni = p.pdfBug === !0, Qt = C ? C.length : p.length ?? NaN, zt = typeof p.useSystemFonts == "boolean" ? p.useSystemFonts : !n && !we, Pe = typeof p.useWorkerFetch == "boolean" ? p.useWorkerFetch : _ === Ni && Y === Ci && N && j && pe(N, document.baseURI) && pe(j, document.baseURI), je = p.canvasFactory || new Ou({
19970
+ const y = p.verbosity, v = typeof p.docBaseUrl == "string" && !Zi(p.docBaseUrl) ? p.docBaseUrl : null, N = typeof p.cMapUrl == "string" ? p.cMapUrl : null, x = p.cMapPacked !== !1, _ = p.CMapReaderFactory || Ju, j = typeof p.standardFontDataUrl == "string" ? p.standardFontDataUrl : null, Y = p.StandardFontDataFactory || Ku, ie = p.stopAtErrors !== !0, oe = Number.isInteger(p.maxImageSize) && p.maxImageSize > -1 ? p.maxImageSize : -1, Ae = p.isEvalSupported !== !1, Ce = typeof p.isOffscreenCanvasSupported == "boolean" ? p.isOffscreenCanvasSupported : !n, Ie = Number.isInteger(p.canvasMaxAreaInBytes) ? p.canvasMaxAreaInBytes : -1, we = typeof p.disableFontFace == "boolean" ? p.disableFontFace : n, Oe = p.fontExtraProperties === !0, He = p.enableXfa === !0, et = p.ownerDocument || globalThis.document, Ye = p.disableRange === !0, kt = p.disableStream === !0, xt = p.disableAutoFetch === !0, ni = p.pdfBug === !0, Qt = C ? C.length : p.length ?? NaN, zt = typeof p.useSystemFonts == "boolean" ? p.useSystemFonts : !n && !we, Pe = typeof p.useWorkerFetch == "boolean" ? p.useWorkerFetch : _ === Ni && Y === Ci && N && j && pe(N, document.baseURI) && pe(j, document.baseURI), je = p.canvasFactory || new Ou({
19971
19971
  ownerDocument: et
19972
19972
  }), pr = p.filterFactory || new Yu({
19973
19973
  docId: s,
19974
19974
  ownerDocument: et
19975
19975
  }), Qr = null;
19976
- T(m);
19976
+ T(y);
19977
19977
  const As = {
19978
19978
  canvasFactory: je,
19979
19979
  filterFactory: pr
@@ -19985,7 +19985,7 @@ var Ue = globalThis.pdfjsLib = {};
19985
19985
  baseUrl: j
19986
19986
  })), !B) {
19987
19987
  const En = {
19988
- verbosity: m,
19988
+ verbosity: y,
19989
19989
  port: Fs.workerPort
19990
19990
  };
19991
19991
  B = En.port ? Bi.fromPort(En) : new Bi(En), e._worker = B;
@@ -20322,10 +20322,10 @@ var Ue = globalThis.pdfjsLib = {};
20322
20322
  printAnnotationStorage: B = null
20323
20323
  }) {
20324
20324
  this._stats?.time("Overall");
20325
- const m = this._transport.getRenderingIntent(a, o, B), {
20325
+ const y = this._transport.getRenderingIntent(a, o, B), {
20326
20326
  renderingIntent: v,
20327
20327
  cacheKey: N
20328
- } = m;
20328
+ } = y;
20329
20329
  this.#t = !1, this.#s(), d ||= this._transport.getOptionalContentConfig(v);
20330
20330
  let x = this._intentStates.get(N);
20331
20331
  x || (x = /* @__PURE__ */ Object.create(null), this._intentStates.set(N, x)), x.streamReaderCancelTimeout && (clearTimeout(x.streamReaderCancelTimeout), x.streamReaderCancelTimeout = null);
@@ -20335,7 +20335,7 @@ var Ue = globalThis.pdfjsLib = {};
20335
20335
  argsArray: [],
20336
20336
  lastChunk: !1,
20337
20337
  separateAnnots: null
20338
- }, this._stats?.time("Page Request"), this._pumpOperatorList(m));
20338
+ }, this._stats?.time("Page Request"), this._pumpOperatorList(y));
20339
20339
  const j = (oe) => {
20340
20340
  x.renderTasks.delete(Y), (this._maybeCleanupAfterRender || _) && (this.#t = !0), this.#i(!_), oe ? (Y.capability.reject(oe), this._abortOperatorList({
20341
20341
  intentState: x,
@@ -20503,9 +20503,9 @@ var Ue = globalThis.pdfjsLib = {};
20503
20503
  const E = () => {
20504
20504
  d.read().then(({
20505
20505
  value: B,
20506
- done: m
20506
+ done: y
20507
20507
  }) => {
20508
- if (m) {
20508
+ if (y) {
20509
20509
  C.streamReader = null;
20510
20510
  return;
20511
20511
  }
@@ -20514,8 +20514,8 @@ var Ue = globalThis.pdfjsLib = {};
20514
20514
  if (C.streamReader = null, !this._transport.destroyed) {
20515
20515
  if (C.operatorList) {
20516
20516
  C.operatorList.lastChunk = !0;
20517
- for (const m of C.renderTasks)
20518
- m.operatorListChanged();
20517
+ for (const y of C.renderTasks)
20518
+ y.operatorListChanged();
20519
20519
  this.#i(!0);
20520
20520
  }
20521
20521
  if (C.displayReadyCapability)
@@ -20952,12 +20952,12 @@ var Ue = globalThis.pdfjsLib = {};
20952
20952
  break;
20953
20953
  case "CopyLocalImage":
20954
20954
  const {
20955
- imageRef: m
20955
+ imageRef: y
20956
20956
  } = l;
20957
- R(m, "The imageRef must be defined.");
20957
+ R(y, "The imageRef must be defined.");
20958
20958
  for (const v of this.#t.values())
20959
20959
  for (const [, N] of v.objs)
20960
- if (N?.ref === m)
20960
+ if (N?.ref === y)
20961
20961
  return N.dataLen ? (this.commonObjs.resolve(a, structuredClone(N)), N.dataLen) : null;
20962
20962
  break;
20963
20963
  case "FontPath":
@@ -21212,10 +21212,10 @@ var Ue = globalThis.pdfjsLib = {};
21212
21212
  canvasFactory: C,
21213
21213
  filterFactory: E,
21214
21214
  useRequestAnimationFrame: B = !1,
21215
- pdfBug: m = !1,
21215
+ pdfBug: y = !1,
21216
21216
  pageColors: v = null
21217
21217
  }) {
21218
- this.callback = e, this.params = s, this.objs = a, this.commonObjs = o, this.annotationCanvasMap = l, this.operatorListIdx = null, this.operatorList = h, this._pageIndex = d, this.canvasFactory = C, this.filterFactory = E, this._pdfBug = m, this.pageColors = v, this.running = !1, this.graphicsReadyCallback = null, this.graphicsReady = !1, this._useRequestAnimationFrame = B === !0 && typeof window < "u", this.cancelled = !1, this.capability = Promise.withResolvers(), this.task = new Zu(this), this._cancelBound = this.cancel.bind(this), this._continueBound = this._continue.bind(this), this._scheduleNextBound = this._scheduleNext.bind(this), this._nextBound = this._next.bind(this), this._canvas = s.canvasContext.canvas;
21218
+ this.callback = e, this.params = s, this.objs = a, this.commonObjs = o, this.annotationCanvasMap = l, this.operatorListIdx = null, this.operatorList = h, this._pageIndex = d, this.canvasFactory = C, this.filterFactory = E, this._pdfBug = y, this.pageColors = v, this.running = !1, this.graphicsReadyCallback = null, this.graphicsReady = !1, this._useRequestAnimationFrame = B === !0 && typeof window < "u", this.cancelled = !1, this.capability = Promise.withResolvers(), this.task = new Zu(this), this._cancelBound = this.cancel.bind(this), this._continueBound = this._continue.bind(this), this._scheduleNextBound = this._scheduleNext.bind(this), this._nextBound = this._next.bind(this), this._canvas = s.canvasContext.canvas;
21219
21219
  }
21220
21220
  get completed() {
21221
21221
  return this.capability.promise.catch(function() {
@@ -21417,15 +21417,15 @@ var Ue = globalThis.pdfjsLib = {};
21417
21417
  });
21418
21418
  const d = l !== "richText", C = e.div;
21419
21419
  if (C.append(h), e.viewport) {
21420
- const m = `matrix(${e.viewport.transform.join(",")})`;
21421
- C.style.transform = m;
21420
+ const y = `matrix(${e.viewport.transform.join(",")})`;
21421
+ C.style.transform = y;
21422
21422
  }
21423
21423
  d && C.setAttribute("class", "xfaLayer xfaFont");
21424
21424
  const E = [];
21425
21425
  if (o.children.length === 0) {
21426
21426
  if (o.value) {
21427
- const m = document.createTextNode(o.value);
21428
- h.append(m), d && xs.shouldBuildText(o.name) && E.push(m);
21427
+ const y = document.createTextNode(o.value);
21428
+ h.append(y), d && xs.shouldBuildText(o.name) && E.push(y);
21429
21429
  }
21430
21430
  return {
21431
21431
  textDivs: E
@@ -21433,12 +21433,12 @@ var Ue = globalThis.pdfjsLib = {};
21433
21433
  }
21434
21434
  const B = [[o, -1, h]];
21435
21435
  for (; B.length > 0; ) {
21436
- const [m, v, N] = B.at(-1);
21437
- if (v + 1 === m.children.length) {
21436
+ const [y, v, N] = B.at(-1);
21437
+ if (v + 1 === y.children.length) {
21438
21438
  B.pop();
21439
21439
  continue;
21440
21440
  }
21441
- const x = m.children[++B.at(-1)[1]];
21441
+ const x = y.children[++B.at(-1)[1]];
21442
21442
  if (x === null)
21443
21443
  continue;
21444
21444
  const {
@@ -21463,8 +21463,8 @@ var Ue = globalThis.pdfjsLib = {};
21463
21463
  d && xs.shouldBuildText(_) && E.push(Y), j.append(Y);
21464
21464
  }
21465
21465
  }
21466
- for (const m of C.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))
21467
- m.setAttribute("readOnly", !0);
21466
+ for (const y of C.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))
21467
+ y.setAttribute("readOnly", !0);
21468
21468
  return {
21469
21469
  textDivs: E
21470
21470
  };
@@ -21651,15 +21651,15 @@ var Ue = globalThis.pdfjsLib = {};
21651
21651
  }
21652
21652
  const E = X.normalizeRect([s.rect[0], a.view[3] - s.rect[1] + a.view[1], s.rect[2], a.view[3] - s.rect[3] + a.view[1]]), {
21653
21653
  pageWidth: B,
21654
- pageHeight: m,
21654
+ pageHeight: y,
21655
21655
  pageX: v,
21656
21656
  pageY: N
21657
21657
  } = o.rawDims;
21658
- h.left = `${100 * (E[0] - v) / B}%`, h.top = `${100 * (E[1] - N) / m}%`;
21658
+ h.left = `${100 * (E[0] - v) / B}%`, h.top = `${100 * (E[1] - N) / y}%`;
21659
21659
  const {
21660
21660
  rotation: x
21661
21661
  } = s;
21662
- return s.hasOwnCanvas || x === 0 ? (h.width = `${100 * d / B}%`, h.height = `${100 * C / m}%`) : this.setRotation(x, l), l;
21662
+ return s.hasOwnCanvas || x === 0 ? (h.width = `${100 * d / B}%`, h.height = `${100 * C / y}%`) : this.setRotation(x, l), l;
21663
21663
  }
21664
21664
  setRotation(e, s = this.container) {
21665
21665
  if (!this.data.rect)
@@ -21803,10 +21803,10 @@ var Ue = globalThis.pdfjsLib = {};
21803
21803
  }
21804
21804
  const C = o - s, E = l - a, {
21805
21805
  svgFactory: B
21806
- } = this, m = B.createElement("svg");
21807
- m.classList.add("quadrilateralsContainer"), m.setAttribute("width", 0), m.setAttribute("height", 0);
21806
+ } = this, y = B.createElement("svg");
21807
+ y.classList.add("quadrilateralsContainer"), y.setAttribute("width", 0), y.setAttribute("height", 0);
21808
21808
  const v = B.createElement("defs");
21809
- m.append(v);
21809
+ y.append(v);
21810
21810
  const N = B.createElement("clipPath"), x = `clippath_${this.data.id}`;
21811
21811
  N.setAttribute("id", x), N.setAttribute("clipPathUnits", "objectBoundingBox"), v.append(N);
21812
21812
  for (const [, {
@@ -21819,7 +21819,7 @@ var Ue = globalThis.pdfjsLib = {};
21819
21819
  const oe = B.createElement("rect"), Ae = (Y - s) / C, Ce = (l - j) / E, Ie = (_ - Y) / C, we = (j - ie) / E;
21820
21820
  oe.setAttribute("x", Ae), oe.setAttribute("y", Ce), oe.setAttribute("width", Ie), oe.setAttribute("height", we), N.append(oe), d?.push(`<rect vector-effect="non-scaling-stroke" x="${Ae}" y="${Ce}" width="${Ie}" height="${we}"/>`);
21821
21821
  }
21822
- this.#t && (d.push("</g></svg>')"), h.backgroundImage = d.join("")), this.container.append(m), this.container.style.clipPath = `url(#${x})`;
21822
+ this.#t && (d.push("</g></svg>')"), h.backgroundImage = d.join("")), this.container.append(y), this.container.style.clipPath = `url(#${x})`;
21823
21823
  }
21824
21824
  _createPopup() {
21825
21825
  const {
@@ -21984,15 +21984,15 @@ var Ue = globalThis.pdfjsLib = {};
21984
21984
  } = s, d = [];
21985
21985
  if (o.length !== 0 || l.length !== 0) {
21986
21986
  const B = new Set(l);
21987
- for (const m of o) {
21988
- const v = this._fieldObjects[m] || [];
21987
+ for (const y of o) {
21988
+ const v = this._fieldObjects[y] || [];
21989
21989
  for (const {
21990
21990
  id: N
21991
21991
  } of v)
21992
21992
  B.add(N);
21993
21993
  }
21994
- for (const m of Object.values(this._fieldObjects))
21995
- for (const v of m)
21994
+ for (const y of Object.values(this._fieldObjects))
21995
+ for (const v of y)
21996
21996
  B.has(v.id) === h && d.push(v);
21997
21997
  } else
21998
21998
  for (const B of Object.values(this._fieldObjects))
@@ -22000,12 +22000,12 @@ var Ue = globalThis.pdfjsLib = {};
22000
22000
  const C = this.annotationStorage, E = [];
22001
22001
  for (const B of d) {
22002
22002
  const {
22003
- id: m
22003
+ id: y
22004
22004
  } = B;
22005
- switch (E.push(m), B.type) {
22005
+ switch (E.push(y), B.type) {
22006
22006
  case "text": {
22007
22007
  const N = B.defaultValue || "";
22008
- C.setValue(m, {
22008
+ C.setValue(y, {
22009
22009
  value: N
22010
22010
  });
22011
22011
  break;
@@ -22013,7 +22013,7 @@ var Ue = globalThis.pdfjsLib = {};
22013
22013
  case "checkbox":
22014
22014
  case "radiobutton": {
22015
22015
  const N = B.defaultValue === B.exportValues;
22016
- C.setValue(m, {
22016
+ C.setValue(y, {
22017
22017
  value: N
22018
22018
  });
22019
22019
  break;
@@ -22021,7 +22021,7 @@ var Ue = globalThis.pdfjsLib = {};
22021
22021
  case "combobox":
22022
22022
  case "listbox": {
22023
22023
  const N = B.defaultValue || "";
22024
- C.setValue(m, {
22024
+ C.setValue(y, {
22025
22025
  value: N
22026
22026
  });
22027
22027
  break;
@@ -22029,10 +22029,10 @@ var Ue = globalThis.pdfjsLib = {};
22029
22029
  default:
22030
22030
  continue;
22031
22031
  }
22032
- const v = document.querySelector(`[data-element-id="${m}"]`);
22032
+ const v = document.querySelector(`[data-element-id="${y}"]`);
22033
22033
  if (v) {
22034
22034
  if (!Ln.has(v)) {
22035
- D(`_bindResetFormAction - element not allowed: ${m}`);
22035
+ D(`_bindResetFormAction - element not allowed: ${y}`);
22036
22036
  continue;
22037
22037
  }
22038
22038
  } else continue;
@@ -22122,8 +22122,8 @@ var Ue = globalThis.pdfjsLib = {};
22122
22122
  let h;
22123
22123
  const d = 2, C = (E) => Math.round(10 * E) / 10;
22124
22124
  if (this.data.multiLine) {
22125
- const E = Math.abs(this.data.rect[3] - this.data.rect[1] - d), B = Math.round(E / (A * o)) || 1, m = E / B;
22126
- h = Math.min(o, C(m / A));
22125
+ const E = Math.abs(this.data.rect[3] - this.data.rect[1] - d), B = Math.round(E / (A * o)) || 1, y = E / B;
22126
+ h = Math.min(o, C(y / A));
22127
22127
  } else {
22128
22128
  const E = Math.abs(this.data.rect[3] - this.data.rect[1] - d);
22129
22129
  h = Math.min(o, C(E / A));
@@ -22176,25 +22176,25 @@ var Ue = globalThis.pdfjsLib = {};
22176
22176
  value: B.target.value
22177
22177
  }), this.setPropertyOnSiblings(a, "value", B.target.value, "value"), C.formattedValue = null;
22178
22178
  }), a.addEventListener("resetform", (B) => {
22179
- const m = this.data.defaultFieldValue ?? "";
22180
- a.value = C.userValue = m, C.formattedValue = null;
22179
+ const y = this.data.defaultFieldValue ?? "";
22180
+ a.value = C.userValue = y, C.formattedValue = null;
22181
22181
  });
22182
22182
  let E = (B) => {
22183
22183
  const {
22184
- formattedValue: m
22184
+ formattedValue: y
22185
22185
  } = C;
22186
- m != null && (B.target.value = m), B.target.scrollLeft = 0;
22186
+ y != null && (B.target.value = y), B.target.scrollLeft = 0;
22187
22187
  };
22188
22188
  if (this.enableScripting && this.hasJSActions) {
22189
- a.addEventListener("focus", (m) => {
22189
+ a.addEventListener("focus", (y) => {
22190
22190
  if (C.focused)
22191
22191
  return;
22192
22192
  const {
22193
22193
  target: v
22194
- } = m;
22194
+ } = y;
22195
22195
  C.userValue && (v.value = C.userValue), C.lastCommittedValue = v.value, C.commitKey = 1, this.data.actions?.Focus || (C.focused = !0);
22196
- }), a.addEventListener("updatefromsandbox", (m) => {
22197
- this.showElementAndHideCanvas(m.target);
22196
+ }), a.addEventListener("updatefromsandbox", (y) => {
22197
+ this.showElementAndHideCanvas(y.target);
22198
22198
  const v = {
22199
22199
  value(N) {
22200
22200
  C.userValue = N.detail.value ?? "", e.setValue(s, {
@@ -22240,15 +22240,15 @@ var Ue = globalThis.pdfjsLib = {};
22240
22240
  }));
22241
22241
  }
22242
22242
  };
22243
- this._dispatchEventFromSandbox(v, m);
22244
- }), a.addEventListener("keydown", (m) => {
22243
+ this._dispatchEventFromSandbox(v, y);
22244
+ }), a.addEventListener("keydown", (y) => {
22245
22245
  C.commitKey = 1;
22246
22246
  let v = -1;
22247
- if (m.key === "Escape" ? v = 0 : m.key === "Enter" && !this.data.multiLine ? v = 2 : m.key === "Tab" && (C.commitKey = 3), v === -1)
22247
+ if (y.key === "Escape" ? v = 0 : y.key === "Enter" && !this.data.multiLine ? v = 2 : y.key === "Tab" && (C.commitKey = 3), v === -1)
22248
22248
  return;
22249
22249
  const {
22250
22250
  value: N
22251
- } = m.target;
22251
+ } = y.target;
22252
22252
  C.lastCommittedValue !== N && (C.lastCommittedValue = N, C.userValue = N, this.linkService.eventBus?.dispatch("dispatcheventinsandbox", {
22253
22253
  source: this,
22254
22254
  detail: {
@@ -22257,19 +22257,19 @@ var Ue = globalThis.pdfjsLib = {};
22257
22257
  value: N,
22258
22258
  willCommit: !0,
22259
22259
  commitKey: v,
22260
- selStart: m.target.selectionStart,
22261
- selEnd: m.target.selectionEnd
22260
+ selStart: y.target.selectionStart,
22261
+ selEnd: y.target.selectionEnd
22262
22262
  }
22263
22263
  }));
22264
22264
  });
22265
22265
  const B = E;
22266
- E = null, a.addEventListener("blur", (m) => {
22267
- if (!C.focused || !m.relatedTarget)
22266
+ E = null, a.addEventListener("blur", (y) => {
22267
+ if (!C.focused || !y.relatedTarget)
22268
22268
  return;
22269
22269
  this.data.actions?.Blur || (C.focused = !1);
22270
22270
  const {
22271
22271
  value: v
22272
- } = m.target;
22272
+ } = y.target;
22273
22273
  C.userValue = v, C.lastCommittedValue !== v && this.linkService.eventBus?.dispatch("dispatcheventinsandbox", {
22274
22274
  source: this,
22275
22275
  detail: {
@@ -22278,22 +22278,22 @@ var Ue = globalThis.pdfjsLib = {};
22278
22278
  value: v,
22279
22279
  willCommit: !0,
22280
22280
  commitKey: C.commitKey,
22281
- selStart: m.target.selectionStart,
22282
- selEnd: m.target.selectionEnd
22281
+ selStart: y.target.selectionStart,
22282
+ selEnd: y.target.selectionEnd
22283
22283
  }
22284
- }), B(m);
22285
- }), this.data.actions?.Keystroke && a.addEventListener("beforeinput", (m) => {
22284
+ }), B(y);
22285
+ }), this.data.actions?.Keystroke && a.addEventListener("beforeinput", (y) => {
22286
22286
  C.lastCommittedValue = null;
22287
22287
  const {
22288
22288
  data: v,
22289
22289
  target: N
22290
- } = m, {
22290
+ } = y, {
22291
22291
  value: x,
22292
22292
  selectionStart: _,
22293
22293
  selectionEnd: j
22294
22294
  } = N;
22295
22295
  let Y = _, ie = j;
22296
- switch (m.inputType) {
22296
+ switch (y.inputType) {
22297
22297
  case "deleteWordBackward": {
22298
22298
  const oe = x.substring(0, _).match(/\w*[^\w]*$/);
22299
22299
  oe && (Y -= oe[0].length);
@@ -22311,7 +22311,7 @@ var Ue = globalThis.pdfjsLib = {};
22311
22311
  _ === j && (ie += 1);
22312
22312
  break;
22313
22313
  }
22314
- m.preventDefault(), this.linkService.eventBus?.dispatch("dispatcheventinsandbox", {
22314
+ y.preventDefault(), this.linkService.eventBus?.dispatch("dispatcheventinsandbox", {
22315
22315
  source: this,
22316
22316
  detail: {
22317
22317
  id: s,
@@ -22323,11 +22323,11 @@ var Ue = globalThis.pdfjsLib = {};
22323
22323
  selEnd: ie
22324
22324
  }
22325
22325
  });
22326
- }), this._setEventListeners(a, C, [["focus", "Focus"], ["blur", "Blur"], ["mousedown", "Mouse Down"], ["mouseenter", "Mouse Enter"], ["mouseleave", "Mouse Exit"], ["mouseup", "Mouse Up"]], (m) => m.target.value);
22326
+ }), this._setEventListeners(a, C, [["focus", "Focus"], ["blur", "Blur"], ["mousedown", "Mouse Down"], ["mouseenter", "Mouse Enter"], ["mouseleave", "Mouse Exit"], ["mouseup", "Mouse Up"]], (y) => y.target.value);
22327
22327
  }
22328
22328
  if (E && a.addEventListener("blur", E), this.data.comb) {
22329
- const m = (this.data.rect[2] - this.data.rect[0]) / h;
22330
- a.classList.add("comb"), a.style.letterSpacing = `calc(${m}px * var(--scale-factor) - 1ch)`;
22329
+ const y = (this.data.rect[2] - this.data.rect[0]) / h;
22330
+ a.classList.add("comb"), a.style.letterSpacing = `calc(${y}px * var(--scale-factor) - 1ch)`;
22331
22331
  }
22332
22332
  } else
22333
22333
  a = document.createElement("div"), a.textContent = this.data.fieldValue, a.style.verticalAlign = "middle", a.style.display = "table-cell", this.data.hasOwnCanvas && (a.hidden = !0);
@@ -22426,9 +22426,9 @@ var Ue = globalThis.pdfjsLib = {};
22426
22426
  const C = {
22427
22427
  value: (E) => {
22428
22428
  const B = h === E.detail.value;
22429
- for (const m of this._getElementsByName(E.target.name)) {
22430
- const v = B && m.id === a;
22431
- m.domElement && (m.domElement.checked = v), e.setValue(m.id, {
22429
+ for (const y of this._getElementsByName(E.target.name)) {
22430
+ const v = B && y.id === a;
22431
+ y.domElement && (y.domElement.checked = v), e.setValue(y.id, {
22432
22432
  value: v
22433
22433
  });
22434
22434
  }
@@ -22469,13 +22469,13 @@ var Ue = globalThis.pdfjsLib = {};
22469
22469
  Ln.add(o), o.setAttribute("data-element-id", s), o.disabled = this.data.readOnly, this._setRequired(o, this.data.required), o.name = this.data.fieldName, o.tabIndex = Ns;
22470
22470
  let l = this.data.combo && this.data.options.length > 0;
22471
22471
  this.data.combo || (o.size = this.data.options.length, this.data.multiSelect && (o.multiple = !0)), o.addEventListener("resetform", (B) => {
22472
- const m = this.data.defaultFieldValue;
22472
+ const y = this.data.defaultFieldValue;
22473
22473
  for (const v of o.options)
22474
- v.selected = v.value === m;
22474
+ v.selected = v.value === y;
22475
22475
  });
22476
22476
  for (const B of this.data.options) {
22477
- const m = document.createElement("option");
22478
- m.textContent = B.displayValue, m.value = B.exportValue, a.value.includes(B.exportValue) && (m.setAttribute("selected", !0), l = !1), o.append(m);
22477
+ const y = document.createElement("option");
22478
+ y.textContent = B.displayValue, y.value = B.exportValue, a.value.includes(B.exportValue) && (y.setAttribute("selected", !0), l = !1), o.append(y);
22479
22479
  }
22480
22480
  let h = null;
22481
22481
  if (l) {
@@ -22485,22 +22485,22 @@ var Ue = globalThis.pdfjsLib = {};
22485
22485
  }, o.addEventListener("input", h);
22486
22486
  }
22487
22487
  const d = (B) => {
22488
- const m = B ? "value" : "textContent", {
22488
+ const y = B ? "value" : "textContent", {
22489
22489
  options: v,
22490
22490
  multiple: N
22491
22491
  } = o;
22492
- return N ? Array.prototype.filter.call(v, (x) => x.selected).map((x) => x[m]) : v.selectedIndex === -1 ? null : v[v.selectedIndex][m];
22492
+ return N ? Array.prototype.filter.call(v, (x) => x.selected).map((x) => x[y]) : v.selectedIndex === -1 ? null : v[v.selectedIndex][y];
22493
22493
  };
22494
22494
  let C = d(!1);
22495
22495
  const E = (B) => {
22496
- const m = B.target.options;
22497
- return Array.prototype.map.call(m, (v) => ({
22496
+ const y = B.target.options;
22497
+ return Array.prototype.map.call(y, (v) => ({
22498
22498
  displayValue: v.textContent,
22499
22499
  exportValue: v.value
22500
22500
  }));
22501
22501
  };
22502
22502
  return this.enableScripting && this.hasJSActions ? (o.addEventListener("updatefromsandbox", (B) => {
22503
- const m = {
22503
+ const y = {
22504
22504
  value(v) {
22505
22505
  h?.();
22506
22506
  const N = v.detail.value, x = new Set(Array.isArray(N) ? N : [N]);
@@ -22569,11 +22569,11 @@ var Ue = globalThis.pdfjsLib = {};
22569
22569
  v.target.disabled = !v.detail.editable;
22570
22570
  }
22571
22571
  };
22572
- this._dispatchEventFromSandbox(m, B);
22572
+ this._dispatchEventFromSandbox(y, B);
22573
22573
  }), o.addEventListener("input", (B) => {
22574
- const m = d(!0), v = d(!1);
22574
+ const y = d(!0), v = d(!1);
22575
22575
  e.setValue(s, {
22576
- value: m
22576
+ value: y
22577
22577
  }), B.preventDefault(), this.linkService.eventBus?.dispatch("dispatcheventinsandbox", {
22578
22578
  source: this,
22579
22579
  detail: {
@@ -22581,7 +22581,7 @@ var Ue = globalThis.pdfjsLib = {};
22581
22581
  name: "Keystroke",
22582
22582
  value: C,
22583
22583
  change: v,
22584
- changeEx: m,
22584
+ changeEx: y,
22585
22585
  willCommit: !1,
22586
22586
  commitKey: 1,
22587
22587
  keyDown: !1
@@ -22655,14 +22655,14 @@ var Ue = globalThis.pdfjsLib = {};
22655
22655
  parent: C,
22656
22656
  rect: E,
22657
22657
  parentRect: B,
22658
- open: m
22658
+ open: y
22659
22659
  }) {
22660
22660
  this.#n = e, this.#f = o, this.#a = h, this.#u = d, this.#c = C, this.#r = s, this.#I = E, this.#h = B, this.#o = a, this.#l = vt.toDateObject(l), this.trigger = a.flatMap((v) => v.getElementsToTriggerPopup());
22661
22661
  for (const v of this.trigger)
22662
22662
  v.addEventListener("click", this.#s), v.addEventListener("mouseenter", this.#i), v.addEventListener("mouseleave", this.#t), v.classList.add("popupTriggerArea");
22663
22663
  for (const v of a)
22664
22664
  v.container?.addEventListener("keydown", this.#e);
22665
- this.#n.hidden = !0, m && this.#E();
22665
+ this.#n.hidden = !0, y && this.#E();
22666
22666
  }
22667
22667
  render() {
22668
22668
  if (this.#A)
@@ -22789,8 +22789,8 @@ var Ue = globalThis.pdfjsLib = {};
22789
22789
  d = x.data.rect, h = !0;
22790
22790
  break;
22791
22791
  }
22792
- const C = X.normalizeRect([d[0], e[3] - d[1] + e[1], d[2], e[3] - d[3] + e[1]]), B = h ? d[2] - d[0] + 5 : 0, m = C[0] + B, v = C[1];
22793
- this.#d = [100 * (m - o) / s, 100 * (v - l) / a];
22792
+ const C = X.normalizeRect([d[0], e[3] - d[1] + e[1], d[2], e[3] - d[3] + e[1]]), B = h ? d[2] - d[0] + 5 : 0, y = C[0] + B, v = C[1];
22793
+ this.#d = [100 * (y - o) / s, 100 * (v - l) / a];
22794
22794
  const {
22795
22795
  style: N
22796
22796
  } = this.#n;
@@ -23134,9 +23134,9 @@ var Ue = globalThis.pdfjsLib = {};
23134
23134
  } else {
23135
23135
  const {
23136
23136
  width: B,
23137
- height: m
23137
+ height: y
23138
23138
  } = en(h.rect);
23139
- if (B <= 0 || m <= 0)
23139
+ if (B <= 0 || y <= 0)
23140
23140
  continue;
23141
23141
  }
23142
23142
  l.data = h;
@@ -23420,20 +23420,20 @@ var Ue = globalThis.pdfjsLib = {};
23420
23420
  } = this.#c;
23421
23421
  let [d, C] = this.getInitialTranslation();
23422
23422
  [d, C] = this.pageTranslationToScreen(d, C);
23423
- const [E, B] = this.pageDimensions, [m, v] = this.pageTranslation;
23423
+ const [E, B] = this.pageDimensions, [y, v] = this.pageTranslation;
23424
23424
  let N, x;
23425
23425
  switch (this.rotation) {
23426
23426
  case 0:
23427
- N = e + (h[0] - m) / E, x = s + this.height - (h[1] - v) / B;
23427
+ N = e + (h[0] - y) / E, x = s + this.height - (h[1] - v) / B;
23428
23428
  break;
23429
23429
  case 90:
23430
- N = e + (h[0] - m) / E, x = s - (h[1] - v) / B, [d, C] = [C, -d];
23430
+ N = e + (h[0] - y) / E, x = s - (h[1] - v) / B, [d, C] = [C, -d];
23431
23431
  break;
23432
23432
  case 180:
23433
- N = e - this.width + (h[0] - m) / E, x = s - (h[1] - v) / B, [d, C] = [-d, -C];
23433
+ N = e - this.width + (h[0] - y) / E, x = s - (h[1] - v) / B, [d, C] = [-d, -C];
23434
23434
  break;
23435
23435
  case 270:
23436
- N = e + (h[0] - m - this.height * B) / E, x = s + (h[1] - v - this.width * E) / B, [d, C] = [-C, d];
23436
+ N = e + (h[0] - y - this.height * B) / E, x = s + (h[1] - v - this.width * E) / B, [d, C] = [-C, d];
23437
23437
  break;
23438
23438
  }
23439
23439
  this.setAt(N * o, x * l, d, C);
@@ -23493,7 +23493,7 @@ var Ue = globalThis.pdfjsLib = {};
23493
23493
  this.#a = `${E.join(`
23494
23494
  `)}${o}${B.join(`
23495
23495
  `)}`, this.#u();
23496
- const m = new Range();
23496
+ const y = new Range();
23497
23497
  let v = E.reduce((N, x) => N + x.length, 0);
23498
23498
  for (const {
23499
23499
  firstChild: N
@@ -23501,12 +23501,12 @@ var Ue = globalThis.pdfjsLib = {};
23501
23501
  if (N.nodeType === Node.TEXT_NODE) {
23502
23502
  const x = N.nodeValue.length;
23503
23503
  if (v <= x) {
23504
- m.setStart(N, v), m.setEnd(N, v);
23504
+ y.setStart(N, v), y.setEnd(N, v);
23505
23505
  break;
23506
23506
  }
23507
23507
  v -= x;
23508
23508
  }
23509
- l.removeAllRanges(), l.addRange(m);
23509
+ l.removeAllRanges(), l.addRange(y);
23510
23510
  }
23511
23511
  #u() {
23512
23512
  if (this.editorDiv.replaceChildren(), !!this.#a)
@@ -23538,7 +23538,7 @@ var Ue = globalThis.pdfjsLib = {};
23538
23538
  rotation: E,
23539
23539
  id: B
23540
23540
  },
23541
- textContent: m,
23541
+ textContent: y,
23542
23542
  textPosition: v,
23543
23543
  parent: {
23544
23544
  page: {
@@ -23546,13 +23546,13 @@ var Ue = globalThis.pdfjsLib = {};
23546
23546
  }
23547
23547
  }
23548
23548
  } = e;
23549
- if (!m || m.length === 0)
23549
+ if (!y || y.length === 0)
23550
23550
  return null;
23551
23551
  o = e = {
23552
23552
  annotationType: I.FREETEXT,
23553
23553
  color: Array.from(d),
23554
23554
  fontSize: h,
23555
- value: m.join(`
23555
+ value: y.join(`
23556
23556
  `),
23557
23557
  position: v,
23558
23558
  pageIndex: N - 1,
@@ -23634,16 +23634,16 @@ var Ue = globalThis.pdfjsLib = {};
23634
23634
  const Ae = Math.floor((j - s) / E) * E, Ce = Math.ceil((j + ie + s) / E) * E, Ie = Math.floor((Y - s) / E) * E, we = Math.ceil((Y + oe + s) / E) * E, Oe = [Ae, Ie, we, !0], He = [Ce, Ie, we, !1];
23635
23635
  this.#t.push(Oe, He), l = Math.min(l, Ae), h = Math.max(h, Ce), d = Math.min(d, Ie), C = Math.max(C, we);
23636
23636
  }
23637
- const B = h - l + 2 * a, m = C - d + 2 * a, v = l - a, N = d - a, x = this.#t.at(o ? -1 : -2), _ = [x[0], x[2]];
23637
+ const B = h - l + 2 * a, y = C - d + 2 * a, v = l - a, N = d - a, x = this.#t.at(o ? -1 : -2), _ = [x[0], x[2]];
23638
23638
  for (const j of this.#t) {
23639
23639
  const [Y, ie, oe] = j;
23640
- j[0] = (Y - v) / B, j[1] = (ie - N) / m, j[2] = (oe - N) / m;
23640
+ j[0] = (Y - v) / B, j[1] = (ie - N) / y, j[2] = (oe - N) / y;
23641
23641
  }
23642
23642
  this.#e = {
23643
23643
  x: v,
23644
23644
  y: N,
23645
23645
  width: B,
23646
- height: m,
23646
+ height: y,
23647
23647
  lastPoint: _
23648
23648
  };
23649
23649
  }
@@ -23669,18 +23669,18 @@ var Ue = globalThis.pdfjsLib = {};
23669
23669
  let l;
23670
23670
  for (; a.size > 0; ) {
23671
23671
  const h = a.values().next().value;
23672
- let [d, C, E, B, m] = h;
23672
+ let [d, C, E, B, y] = h;
23673
23673
  a.delete(h);
23674
23674
  let v = d, N = C;
23675
23675
  for (l = [d, E], o.push(l); ; ) {
23676
23676
  let x;
23677
23677
  if (a.has(B))
23678
23678
  x = B;
23679
- else if (a.has(m))
23680
- x = m;
23679
+ else if (a.has(y))
23680
+ x = y;
23681
23681
  else
23682
23682
  break;
23683
- a.delete(x), [d, C, E, B, m] = x, v !== d && (l.push(v, N, d, N === C ? C : E), v = d), N = N === C ? E : C;
23683
+ a.delete(x), [d, C, E, B, y] = x, v !== d && (l.push(v, N, d, N === C ? C : E), v = d), N = N === C ? E : C;
23684
23684
  }
23685
23685
  l.push(v, N);
23686
23686
  }
@@ -23726,16 +23726,16 @@ var Ue = globalThis.pdfjsLib = {};
23726
23726
  const [s, a, o] = e, l = [[s, a, o]], h = this.#r(o);
23727
23727
  for (let d = 0; d < h; d++) {
23728
23728
  const [C, E] = this.#i[d];
23729
- for (let B = 0, m = l.length; B < m; B++) {
23729
+ for (let B = 0, y = l.length; B < y; B++) {
23730
23730
  const [, v, N] = l[B];
23731
23731
  if (!(E <= v || N <= C)) {
23732
23732
  if (v >= C) {
23733
23733
  if (N > E)
23734
23734
  l[B][1] = E;
23735
23735
  else {
23736
- if (m === 1)
23736
+ if (y === 1)
23737
23737
  return [];
23738
- l.splice(B, 1), B--, m--;
23738
+ l.splice(B, 1), B--, y--;
23739
23739
  }
23740
23740
  continue;
23741
23741
  }
@@ -23783,8 +23783,8 @@ var Ue = globalThis.pdfjsLib = {};
23783
23783
  const h = [], d = a - e, C = o - s;
23784
23784
  for (const E of this.#t) {
23785
23785
  const B = new Array(E.length);
23786
- for (let m = 0; m < E.length; m += 2)
23787
- B[m] = e + E[m] * d, B[m + 1] = o - E[m + 1] * C;
23786
+ for (let y = 0; y < E.length; y += 2)
23787
+ B[y] = e + E[y] * d, B[y + 1] = o - E[y + 1] * C;
23788
23788
  h.push(B);
23789
23789
  }
23790
23790
  return h;
@@ -23833,10 +23833,10 @@ var Ue = globalThis.pdfjsLib = {};
23833
23833
  this.#a = e, this.#l = s;
23834
23834
  const [a, o, l, h] = this.#e;
23835
23835
  let [d, C, E, B] = this.#n.subarray(8, 12);
23836
- const m = e - E, v = s - B, N = Math.hypot(m, v);
23836
+ const y = e - E, v = s - B, N = Math.hypot(y, v);
23837
23837
  if (N < this.#o)
23838
23838
  return !1;
23839
- const x = N - this.#c, _ = x / N, j = _ * m, Y = _ * v;
23839
+ const x = N - this.#c, _ = x / N, j = _ * y, Y = _ * v;
23840
23840
  let ie = d, oe = C;
23841
23841
  d = E, C = B, E += j, B += Y, this.#A?.push(e, s);
23842
23842
  const Ae = -Y / x, Ce = j / x, Ie = Ae * this.#g, we = Ce * this.#g;
@@ -23845,14 +23845,14 @@ var Ue = globalThis.pdfjsLib = {};
23845
23845
  toSVGPath() {
23846
23846
  if (this.isEmpty())
23847
23847
  return "";
23848
- const e = this.#r, s = this.#t, a = this.#n.subarray(4, 6), o = this.#n.subarray(16, 18), [l, h, d, C] = this.#e, [E, B, m, v] = this.#f();
23848
+ const e = this.#r, s = this.#t, a = this.#n.subarray(4, 6), o = this.#n.subarray(16, 18), [l, h, d, C] = this.#e, [E, B, y, v] = this.#f();
23849
23849
  if (isNaN(this.#n[6]) && !this.isEmpty())
23850
- return `M${(this.#n[2] - l) / d} ${(this.#n[3] - h) / C} L${(this.#n[4] - l) / d} ${(this.#n[5] - h) / C} L${E} ${B} L${m} ${v} L${(this.#n[16] - l) / d} ${(this.#n[17] - h) / C} L${(this.#n[14] - l) / d} ${(this.#n[15] - h) / C} Z`;
23850
+ return `M${(this.#n[2] - l) / d} ${(this.#n[3] - h) / C} L${(this.#n[4] - l) / d} ${(this.#n[5] - h) / C} L${E} ${B} L${y} ${v} L${(this.#n[16] - l) / d} ${(this.#n[17] - h) / C} L${(this.#n[14] - l) / d} ${(this.#n[15] - h) / C} Z`;
23851
23851
  const N = [];
23852
23852
  N.push(`M${e[4]} ${e[5]}`);
23853
23853
  for (let x = 6; x < e.length; x += 6)
23854
23854
  isNaN(e[x]) ? N.push(`L${e[x + 4]} ${e[x + 5]}`) : N.push(`C${e[x]} ${e[x + 1]} ${e[x + 2]} ${e[x + 3]} ${e[x + 4]} ${e[x + 5]}`);
23855
- N.push(`L${(a[0] - l) / d} ${(a[1] - h) / C} L${E} ${B} L${m} ${v} L${(o[0] - l) / d} ${(o[1] - h) / C}`);
23855
+ N.push(`L${(a[0] - l) / d} ${(a[1] - h) / C} L${E} ${B} L${y} ${v} L${(o[0] - l) / d} ${(o[1] - h) / C}`);
23856
23856
  for (let x = s.length - 6; x >= 6; x -= 6)
23857
23857
  isNaN(s[x]) ? N.push(`L${s[x + 4]} ${s[x + 5]}`) : N.push(`C${s[x]} ${s[x + 1]} ${s[x + 2]} ${s[x + 3]} ${s[x + 4]} ${s[x + 5]}`);
23858
23858
  return N.push(`L${s[4]} ${s[5]} Z`), N.join(" ");
@@ -23862,10 +23862,10 @@ var Ue = globalThis.pdfjsLib = {};
23862
23862
  for (let Y = 0, ie = B.length - 2; Y < ie; Y += 2)
23863
23863
  B[Y] = (this.#A[Y] - h) / C, B[Y + 1] = (this.#A[Y + 1] - d) / E;
23864
23864
  B[B.length - 2] = (this.#a - h) / C, B[B.length - 1] = (this.#l - d) / E;
23865
- const [m, v, N, x] = this.#f();
23865
+ const [y, v, N, x] = this.#f();
23866
23866
  if (isNaN(a[6]) && !this.isEmpty()) {
23867
23867
  const Y = new Float64Array(36);
23868
- return Y.set([NaN, NaN, NaN, NaN, (a[2] - h) / C, (a[3] - d) / E, NaN, NaN, NaN, NaN, (a[4] - h) / C, (a[5] - d) / E, NaN, NaN, NaN, NaN, m, v, NaN, NaN, NaN, NaN, N, x, NaN, NaN, NaN, NaN, (a[16] - h) / C, (a[17] - d) / E, NaN, NaN, NaN, NaN, (a[14] - h) / C, (a[15] - d) / E], 0), new Pa(Y, B, this.#e, this.#h, this.#i, this.#s);
23868
+ return Y.set([NaN, NaN, NaN, NaN, (a[2] - h) / C, (a[3] - d) / E, NaN, NaN, NaN, NaN, (a[4] - h) / C, (a[5] - d) / E, NaN, NaN, NaN, NaN, y, v, NaN, NaN, NaN, NaN, N, x, NaN, NaN, NaN, NaN, (a[16] - h) / C, (a[17] - d) / E, NaN, NaN, NaN, NaN, (a[14] - h) / C, (a[15] - d) / E], 0), new Pa(Y, B, this.#e, this.#h, this.#i, this.#s);
23869
23869
  }
23870
23870
  const _ = new Float64Array(this.#r.length + 24 + this.#t.length);
23871
23871
  let j = e.length;
@@ -23876,7 +23876,7 @@ var Ue = globalThis.pdfjsLib = {};
23876
23876
  }
23877
23877
  _[Y] = e[Y], _[Y + 1] = e[Y + 1];
23878
23878
  }
23879
- _.set([NaN, NaN, NaN, NaN, (o[0] - h) / C, (o[1] - d) / E, NaN, NaN, NaN, NaN, m, v, NaN, NaN, NaN, NaN, N, x, NaN, NaN, NaN, NaN, (l[0] - h) / C, (l[1] - d) / E], j), j += 24;
23879
+ _.set([NaN, NaN, NaN, NaN, (o[0] - h) / C, (o[1] - d) / E, NaN, NaN, NaN, NaN, y, v, NaN, NaN, NaN, NaN, N, x, NaN, NaN, NaN, NaN, (l[0] - h) / C, (l[1] - d) / E], j), j += 24;
23880
23880
  for (let Y = s.length - 6; Y >= 6; Y -= 6)
23881
23881
  for (let ie = 0; ie < 6; ie += 2) {
23882
23882
  if (isNaN(s[Y + ie])) {
@@ -23904,10 +23904,10 @@ var Ue = globalThis.pdfjsLib = {};
23904
23904
  width: E,
23905
23905
  height: B
23906
23906
  } = this.#t;
23907
- for (let m = 0, v = e.length; m < v; m += 2)
23908
- e[m] = (e[m] - d) / E, e[m + 1] = (e[m + 1] - C) / B;
23909
- for (let m = 0, v = s.length; m < v; m += 2)
23910
- s[m] = (s[m] - d) / E, s[m + 1] = (s[m + 1] - C) / B;
23907
+ for (let y = 0, v = e.length; y < v; y += 2)
23908
+ e[y] = (e[y] - d) / E, e[y + 1] = (e[y + 1] - C) / B;
23909
+ for (let y = 0, v = s.length; y < v; y += 2)
23910
+ s[y] = (s[y] - d) / E, s[y + 1] = (s[y + 1] - C) / B;
23911
23911
  }
23912
23912
  toSVGPath() {
23913
23913
  const e = [`M${this.#a[4]} ${this.#a[5]}`];
@@ -23957,13 +23957,13 @@ var Ue = globalThis.pdfjsLib = {};
23957
23957
  #c(e) {
23958
23958
  const s = this.#a;
23959
23959
  let a = s[4], o = s[5], l = a, h = o, d = a, C = o, E = a, B = o;
23960
- const m = e ? Math.max : Math.min;
23960
+ const y = e ? Math.max : Math.min;
23961
23961
  for (let j = 6, Y = s.length; j < Y; j += 6) {
23962
23962
  if (isNaN(s[j]))
23963
- l = Math.min(l, s[j + 4]), h = Math.min(h, s[j + 5]), d = Math.max(d, s[j + 4]), C = Math.max(C, s[j + 5]), B < s[j + 5] ? (E = s[j + 4], B = s[j + 5]) : B === s[j + 5] && (E = m(E, s[j + 4]));
23963
+ l = Math.min(l, s[j + 4]), h = Math.min(h, s[j + 5]), d = Math.max(d, s[j + 4]), C = Math.max(C, s[j + 5]), B < s[j + 5] ? (E = s[j + 4], B = s[j + 5]) : B === s[j + 5] && (E = y(E, s[j + 4]));
23964
23964
  else {
23965
23965
  const ie = X.bezierBoundingBox(a, o, ...s.slice(j, j + 6));
23966
- l = Math.min(l, ie[0]), h = Math.min(h, ie[1]), d = Math.max(d, ie[2]), C = Math.max(C, ie[3]), B < ie[3] ? (E = ie[2], B = ie[3]) : B === ie[3] && (E = m(E, ie[2]));
23966
+ l = Math.min(l, ie[0]), h = Math.min(h, ie[1]), d = Math.max(d, ie[2]), C = Math.max(C, ie[3]), B < ie[3] ? (E = ie[2], B = ie[3]) : B === ie[3] && (E = y(E, ie[2]));
23967
23967
  }
23968
23968
  a = s[j + 4], o = s[j + 5];
23969
23969
  }
@@ -23985,13 +23985,13 @@ var Ue = globalThis.pdfjsLib = {};
23985
23985
  y: o,
23986
23986
  width: l,
23987
23987
  height: h
23988
- } = this.#t, [d, C, E, B] = this.#e, m = l * E, v = h * B, N = a * E + d, x = o * B + C, _ = new Tn({
23989
- x: this.#r[0] * m + N,
23988
+ } = this.#t, [d, C, E, B] = this.#e, y = l * E, v = h * B, N = a * E + d, x = o * B + C, _ = new Tn({
23989
+ x: this.#r[0] * y + N,
23990
23990
  y: this.#r[1] * v + x
23991
23991
  }, this.#e, this.#n, e, this.#s, s ?? this.#i);
23992
23992
  for (let j = 2; j < this.#r.length; j += 2)
23993
23993
  _.add({
23994
- x: this.#r[j] * m + N,
23994
+ x: this.#r[j] * y + N,
23995
23995
  y: this.#r[j + 1] * v + x
23996
23996
  });
23997
23997
  return _.getOutlines();
@@ -24240,16 +24240,16 @@ var Ue = globalThis.pdfjsLib = {};
24240
24240
  this.x = l, this.y = h, this.width = d, this.height = C;
24241
24241
  break;
24242
24242
  case 90: {
24243
- const [B, m] = this.parentDimensions;
24244
- this.x = h, this.y = 1 - l, this.width = d * m / B, this.height = C * B / m;
24243
+ const [B, y] = this.parentDimensions;
24244
+ this.x = h, this.y = 1 - l, this.width = d * y / B, this.height = C * B / y;
24245
24245
  break;
24246
24246
  }
24247
24247
  case 180:
24248
24248
  this.x = 1 - l, this.y = 1 - h, this.width = d, this.height = C;
24249
24249
  break;
24250
24250
  case 270: {
24251
- const [B, m] = this.parentDimensions;
24252
- this.x = 1 - h, this.y = l, this.width = d * m / B, this.height = C * B / m;
24251
+ const [B, y] = this.parentDimensions;
24252
+ this.x = 1 - h, this.y = l, this.width = d * y / B, this.height = C * B / y;
24253
24253
  break;
24254
24254
  }
24255
24255
  }
@@ -24486,8 +24486,8 @@ var Ue = globalThis.pdfjsLib = {};
24486
24486
  width: C,
24487
24487
  height: E
24488
24488
  } of a) {
24489
- const B = h * e, m = (1 - d - E) * s;
24490
- o[l] = o[l + 4] = B, o[l + 1] = o[l + 3] = m, o[l + 2] = o[l + 6] = B + C * e, o[l + 5] = o[l + 7] = m + E * s, l += 8;
24489
+ const B = h * e, y = (1 - d - E) * s;
24490
+ o[l] = o[l + 4] = B, o[l + 1] = o[l + 3] = y, o[l + 2] = o[l + 6] = B + C * e, o[l + 5] = o[l + 7] = y + E * s, l += 8;
24491
24491
  }
24492
24492
  return o;
24493
24493
  }
@@ -24506,15 +24506,15 @@ var Ue = globalThis.pdfjsLib = {};
24506
24506
  height: E
24507
24507
  } = a.getBoundingClientRect(), B = (x) => {
24508
24508
  this.#N(e, x);
24509
- }, m = {
24509
+ }, y = {
24510
24510
  capture: !0,
24511
24511
  passive: !1
24512
24512
  }, v = (x) => {
24513
24513
  x.preventDefault(), x.stopPropagation();
24514
24514
  }, N = (x) => {
24515
- a.removeEventListener("pointermove", B), window.removeEventListener("blur", N), window.removeEventListener("pointerup", N), window.removeEventListener("pointerdown", v, m), window.removeEventListener("contextmenu", be), this.#M(e, x);
24515
+ a.removeEventListener("pointermove", B), window.removeEventListener("blur", N), window.removeEventListener("pointerup", N), window.removeEventListener("pointerdown", v, y), window.removeEventListener("contextmenu", be), this.#M(e, x);
24516
24516
  };
24517
- window.addEventListener("blur", N), window.addEventListener("pointerup", N), window.addEventListener("pointerdown", v, m), window.addEventListener("contextmenu", be), a.addEventListener("pointermove", B), this._freeHighlight = new Tn({
24517
+ window.addEventListener("blur", N), window.addEventListener("pointerup", N), window.addEventListener("pointerdown", v, y), window.addEventListener("contextmenu", be), a.addEventListener("pointermove", B), this._freeHighlight = new Tn({
24518
24518
  x: o,
24519
24519
  y: l
24520
24520
  }, [h, d, C, E], e.scale, this._defaultThickness / 2, s, 1e-3), {
@@ -24540,14 +24540,14 @@ var Ue = globalThis.pdfjsLib = {};
24540
24540
  quadPoints: B
24541
24541
  } = e;
24542
24542
  o.color = X.makeHexColor(...E), o.#I = e.opacity;
24543
- const [m, v] = o.pageDimensions;
24544
- o.width = (d - l) / m, o.height = (C - h) / v;
24543
+ const [y, v] = o.pageDimensions;
24544
+ o.width = (d - l) / y, o.height = (C - h) / v;
24545
24545
  const N = o.#i = [];
24546
24546
  for (let x = 0; x < B.length; x += 8)
24547
24547
  N.push({
24548
- x: (B[4] - d) / m,
24548
+ x: (B[4] - d) / y,
24549
24549
  y: (C - (1 - B[x + 5])) / v,
24550
- width: (B[x + 2] - B[x]) / m,
24550
+ width: (B[x + 2] - B[x]) / y,
24551
24551
  height: (B[x + 5] - B[x + 1]) / v
24552
24552
  });
24553
24553
  return o.#p(), o;
@@ -24791,8 +24791,8 @@ var Ue = globalThis.pdfjsLib = {};
24791
24791
  l.stroke(this.#l), l.restore();
24792
24792
  }
24793
24793
  #E(e, s, a, o, l, h, d) {
24794
- const C = (s + o) / 2, E = (a + l) / 2, B = (o + h) / 2, m = (l + d) / 2;
24795
- e.bezierCurveTo(C + 2 * (o - C) / 3, E + 2 * (l - E) / 3, B + 2 * (o - B) / 3, m + 2 * (l - m) / 3, B, m);
24794
+ const C = (s + o) / 2, E = (a + l) / 2, B = (o + h) / 2, y = (l + d) / 2;
24795
+ e.bezierCurveTo(C + 2 * (o - C) / 3, E + 2 * (l - E) / 3, B + 2 * (o - B) / 3, y + 2 * (l - y) / 3, B, y);
24796
24796
  }
24797
24797
  #S() {
24798
24798
  const e = this.currentPath;
@@ -24804,8 +24804,8 @@ var Ue = globalThis.pdfjsLib = {};
24804
24804
  const [v, N] = e[a], [x, _] = e[a + 1], j = (v + x) / 2, Y = (N + _) / 2, ie = [o + 2 * (v - o) / 3, l + 2 * (N - l) / 3], oe = [j + 2 * (v - j) / 3, Y + 2 * (N - Y) / 3];
24805
24805
  s.push([[o, l], ie, oe, [j, Y]]), [o, l] = [j, Y];
24806
24806
  }
24807
- const [h, d] = e[a], [C, E] = e[a + 1], B = [o + 2 * (h - o) / 3, l + 2 * (d - l) / 3], m = [C + 2 * (h - C) / 3, E + 2 * (d - E) / 3];
24808
- return s.push([[o, l], B, m, [C, E]]), s;
24807
+ const [h, d] = e[a], [C, E] = e[a + 1], B = [o + 2 * (h - o) / 3, l + 2 * (d - l) / 3], y = [C + 2 * (h - C) / 3, E + 2 * (d - E) / 3];
24808
+ return s.push([[o, l], B, y, [C, E]]), s;
24809
24809
  }
24810
24810
  #m() {
24811
24811
  if (this.isEmpty()) {
@@ -24962,20 +24962,20 @@ var Ue = globalThis.pdfjsLib = {};
24962
24962
  #_(e, s, a, o) {
24963
24963
  const l = [], h = this.thickness / 2, d = e * s + h, C = e * a + h;
24964
24964
  for (const E of this.paths) {
24965
- const B = [], m = [];
24965
+ const B = [], y = [];
24966
24966
  for (let v = 0, N = E.length; v < N; v++) {
24967
24967
  const [x, _, j, Y] = E[v];
24968
24968
  if (x[0] === Y[0] && x[1] === Y[1] && N === 1) {
24969
24969
  const et = e * x[0] + d, Ye = e * x[1] + C;
24970
- B.push(et, Ye), m.push(et, Ye);
24970
+ B.push(et, Ye), y.push(et, Ye);
24971
24971
  break;
24972
24972
  }
24973
24973
  const ie = e * x[0] + d, oe = e * x[1] + C, Ae = e * _[0] + d, Ce = e * _[1] + C, Ie = e * j[0] + d, we = e * j[1] + C, Oe = e * Y[0] + d, He = e * Y[1] + C;
24974
- v === 0 && (B.push(ie, oe), m.push(ie, oe)), B.push(Ae, Ce, Ie, we, Oe, He), m.push(Ae, Ce), v === N - 1 && m.push(Oe, He);
24974
+ v === 0 && (B.push(ie, oe), y.push(ie, oe)), B.push(Ae, Ce, Ie, we, Oe, He), y.push(Ae, Ce), v === N - 1 && y.push(Oe, He);
24975
24975
  }
24976
24976
  l.push({
24977
24977
  bezier: Gt.#O(B, o, this.rotation),
24978
- points: Gt.#O(m, o, this.rotation)
24978
+ points: Gt.#O(y, o, this.rotation)
24979
24979
  });
24980
24980
  }
24981
24981
  return l;
@@ -25016,13 +25016,13 @@ var Ue = globalThis.pdfjsLib = {};
25016
25016
  const [l, h] = o.pageDimensions, d = o.width * l, C = o.height * h, E = o.parentScale, B = e.thickness / 2;
25017
25017
  o.#o = !0, o.#A = Math.round(d), o.#d = Math.round(C);
25018
25018
  const {
25019
- paths: m,
25019
+ paths: y,
25020
25020
  rect: v,
25021
25021
  rotation: N
25022
25022
  } = e;
25023
25023
  for (let {
25024
25024
  bezier: _
25025
- } of m) {
25025
+ } of y) {
25026
25026
  _ = Gt.#K(_, v, N);
25027
25027
  const j = [];
25028
25028
  o.paths.push(j);
@@ -25272,8 +25272,8 @@ var Ue = globalThis.pdfjsLib = {};
25272
25272
  accessibilityData: E
25273
25273
  } = e;
25274
25274
  d && a.imageManager.isValidId(d) ? o.#t = d : o.#s = h, o.#c = C;
25275
- const [B, m] = o.pageDimensions;
25276
- return o.width = (l[2] - l[0]) / B, o.height = (l[3] - l[1]) / m, E && (o.altTextData = E), o;
25275
+ const [B, y] = o.pageDimensions;
25276
+ return o.width = (l[2] - l[0]) / B, o.height = (l[3] - l[1]) / y, E && (o.altTextData = E), o;
25277
25277
  }
25278
25278
  serialize(e = !1, s = null) {
25279
25279
  if (this.isEmpty())
@@ -25342,8 +25342,8 @@ var Ue = globalThis.pdfjsLib = {};
25342
25342
  const B = [...tn.#d.values()];
25343
25343
  if (!tn._initialized) {
25344
25344
  tn._initialized = !0;
25345
- for (const m of B)
25346
- m.initialize(E, e);
25345
+ for (const y of B)
25346
+ y.initialize(E, e);
25347
25347
  }
25348
25348
  e.registerEditorTypes(B), this.#A = e, this.pageIndex = s, this.div = a, this.#e = o, this.#i = l, this.viewport = C, this.#g = d, this.drawLayer = h, this.#A.addLayer(this);
25349
25349
  }
@@ -25593,9 +25593,9 @@ var Ue = globalThis.pdfjsLib = {};
25593
25593
  y: s,
25594
25594
  width: a,
25595
25595
  height: o
25596
- } = this.div.getBoundingClientRect(), l = Math.max(0, e), h = Math.max(0, s), d = Math.min(window.innerWidth, e + a), C = Math.min(window.innerHeight, s + o), E = (l + d) / 2 - e, B = (h + C) / 2 - s, [m, v] = this.viewport.rotation % 180 === 0 ? [E, B] : [B, E];
25596
+ } = this.div.getBoundingClientRect(), l = Math.max(0, e), h = Math.max(0, s), d = Math.min(window.innerWidth, e + a), C = Math.min(window.innerHeight, s + o), E = (l + d) / 2 - e, B = (h + C) / 2 - s, [y, v] = this.viewport.rotation % 180 === 0 ? [E, B] : [B, E];
25597
25597
  return {
25598
- offsetX: m,
25598
+ offsetX: y,
25599
25599
  offsetY: v
25600
25600
  };
25601
25601
  }
@@ -25748,8 +25748,8 @@ var Ue = globalThis.pdfjsLib = {};
25748
25748
  d.append(C);
25749
25749
  const E = `path_p${this.pageIndex}_${l}`;
25750
25750
  C.setAttribute("id", E), C.setAttribute("d", e.toSVGPath()), o && this.#s.set(l, C);
25751
- const B = this.#a(d, E), m = Pt._svgFactory.createElement("use");
25752
- return h.append(m), h.setAttribute("fill", s), h.setAttribute("fill-opacity", a), m.setAttribute("href", `#${E}`), this.#i.set(l, h), {
25751
+ const B = this.#a(d, E), y = Pt._svgFactory.createElement("use");
25752
+ return h.append(y), h.setAttribute("fill", s), h.setAttribute("fill-opacity", a), y.setAttribute("href", `#${E}`), this.#i.set(l, h), {
25753
25753
  id: l,
25754
25754
  clipPathId: `url(#${B})`
25755
25755
  };
@@ -25768,8 +25768,8 @@ var Ue = globalThis.pdfjsLib = {};
25768
25768
  a.classList.add("free");
25769
25769
  const B = Pt._svgFactory.createElement("mask");
25770
25770
  o.append(B), d = `mask_p${this.pageIndex}_${s}`, B.setAttribute("id", d), B.setAttribute("maskUnits", "objectBoundingBox");
25771
- const m = Pt._svgFactory.createElement("rect");
25772
- B.append(m), m.setAttribute("width", "1"), m.setAttribute("height", "1"), m.setAttribute("fill", "white");
25771
+ const y = Pt._svgFactory.createElement("rect");
25772
+ B.append(y), y.setAttribute("width", "1"), y.setAttribute("height", "1"), y.setAttribute("fill", "white");
25773
25773
  const v = Pt._svgFactory.createElement("use");
25774
25774
  B.append(v), v.setAttribute("href", `#${h}`), v.setAttribute("stroke", "none"), v.setAttribute("fill", "black"), v.setAttribute("fill-rule", "nonzero"), v.classList.add("mask");
25775
25775
  }
@@ -26102,7 +26102,7 @@ function km({
26102
26102
  const J = O.div, T = J.offsetLeft + J.clientLeft, H = T + J.clientWidth;
26103
26103
  return A ? T < I : H > u;
26104
26104
  }
26105
- const y = [], b = /* @__PURE__ */ new Set(), S = t.length;
26105
+ const m = [], b = /* @__PURE__ */ new Set(), S = t.length;
26106
26106
  let w = nr(t, r ? Q : f);
26107
26107
  w > 0 && w < S && !r && (w = Fm(w, t, c));
26108
26108
  let k = r ? I : -1;
@@ -26115,7 +26115,7 @@ function km({
26115
26115
  if (L <= c || U >= g || R <= u || H >= I)
26116
26116
  continue;
26117
26117
  const P = Math.max(0, c - U) + Math.max(0, L - g), K = Math.max(0, u - H) + Math.max(0, R - I), V = (G - P) / G, $ = (D - K) / D, q = V * $ * 100 | 0;
26118
- y.push({
26118
+ m.push({
26119
26119
  id: J.id,
26120
26120
  x: H,
26121
26121
  y: U,
@@ -26124,14 +26124,14 @@ function km({
26124
26124
  widthPercent: $ * 100 | 0
26125
26125
  }), b.add(J.id);
26126
26126
  }
26127
- const M = y[0], F = y.at(-1);
26128
- return i && y.sort(function(O, J) {
26127
+ const M = m[0], F = m.at(-1);
26128
+ return i && m.sort(function(O, J) {
26129
26129
  const T = O.percent - J.percent;
26130
26130
  return Math.abs(T) > 1e-3 ? -T : O.id - J.id;
26131
26131
  }), {
26132
26132
  first: M,
26133
26133
  last: F,
26134
- views: y,
26134
+ views: m,
26135
26135
  ids: b
26136
26136
  };
26137
26137
  }
@@ -26310,7 +26310,7 @@ function oA(n) {
26310
26310
  A.push([i[0].length, i.index]);
26311
26311
  let c = n.normalize("NFD");
26312
26312
  const g = [[0, 0]];
26313
- let u = 0, I = 0, f = 0, Q = 0, y = 0, b = !1;
26313
+ let u = 0, I = 0, f = 0, Q = 0, m = 0, b = !1;
26314
26314
  return c = c.replace(r, (S, w, k, M, F, O, J, T, H, U) => {
26315
26315
  if (U -= Q, w) {
26316
26316
  const D = ml[w], G = D.length;
@@ -26327,28 +26327,28 @@ function oA(n) {
26327
26327
  return f -= G - 1, D;
26328
26328
  }
26329
26329
  if (M)
26330
- return b = !0, U + y === A[u]?.[1] ? ++u : (g.push([U - 1 - f + 1, f - 1]), f -= 1, Q += 1), g.push([U - f + 1, f]), Q += 1, y += 1, M.charAt(0);
26330
+ return b = !0, U + m === A[u]?.[1] ? ++u : (g.push([U - 1 - f + 1, f - 1]), f -= 1, Q += 1), g.push([U - f + 1, f]), Q += 1, m += 1, M.charAt(0);
26331
26331
  if (F) {
26332
26332
  const D = F.endsWith(`
26333
26333
  `), G = D ? F.length - 2 : F.length;
26334
26334
  b = !0;
26335
26335
  let R = G;
26336
- U + y === A[u]?.[1] && (R -= A[u][0], ++u);
26336
+ U + m === A[u]?.[1] && (R -= A[u][0], ++u);
26337
26337
  for (let L = 1; L <= R; L++)
26338
26338
  g.push([U - 1 - f + L, f - L]);
26339
- return f -= R, Q += R, D ? (U += G - 1, g.push([U - f + 1, 1 + f]), f += 1, Q += 1, y += 1, F.slice(0, G)) : F;
26339
+ return f -= R, Q += R, D ? (U += G - 1, g.push([U - f + 1, 1 + f]), f += 1, Q += 1, m += 1, F.slice(0, G)) : F;
26340
26340
  }
26341
26341
  if (O) {
26342
26342
  const D = O.length - 2;
26343
- return g.push([U - f + D, 1 + f]), f += 1, Q += 1, y += 1, O.slice(0, -2);
26343
+ return g.push([U - f + D, 1 + f]), f += 1, Q += 1, m += 1, O.slice(0, -2);
26344
26344
  }
26345
26345
  if (J) {
26346
26346
  const D = J.length - 1;
26347
- return g.push([U - f + D, f]), Q += 1, y += 1, J.slice(0, -1);
26347
+ return g.push([U - f + D, f]), Q += 1, m += 1, J.slice(0, -1);
26348
26348
  }
26349
26349
  if (T)
26350
- return g.push([U - f + 1, f - 1]), f -= 1, Q += 1, y += 1, " ";
26351
- if (U + y === t[I]?.[1]) {
26350
+ return g.push([U - f + 1, f - 1]), f -= 1, Q += 1, m += 1, " ";
26351
+ if (U + m === t[I]?.[1]) {
26352
26352
  const D = t[I][0] - 1;
26353
26353
  ++I;
26354
26354
  for (let G = 1; G <= D; G++)
@@ -26499,7 +26499,7 @@ class s2 {
26499
26499
  matchDiacritics: r
26500
26500
  } = this.#e;
26501
26501
  let A = !1;
26502
- t = t.replaceAll(Zm, (g, u, I, f, Q, y) => u ? `[ ]*\\${u}[ ]*` : I ? `[ ]*${I}[ ]*` : f ? "[ ]+" : r ? Q || y : Q ? yl.has(Q.charCodeAt(0)) ? Q : "" : i ? (A = !0, `${y}\\p{M}*`) : y);
26502
+ t = t.replaceAll(Zm, (g, u, I, f, Q, m) => u ? `[ ]*\\${u}[ ]*` : I ? `[ ]*${I}[ ]*` : f ? "[ ]+" : r ? Q || m : Q ? yl.has(Q.charCodeAt(0)) ? Q : "" : i ? (A = !0, `${m}\\p{M}*`) : m);
26503
26503
  const c = "[ ]*";
26504
26504
  return t.endsWith(c) && (t = t.slice(0, t.length - c.length)), r && i && (bl ||= String.fromCharCode(...yl), A = !0, t = `${t}(?=[${bl}]|[^\\p{M}]|$)`), [A, t];
26505
26505
  }
@@ -26513,8 +26513,8 @@ class s2 {
26513
26513
  } = this.#e, c = this._pageContents[t], g = this._hasDiacritics[t];
26514
26514
  let u = !1;
26515
26515
  typeof i == "string" ? [u, i] = this.#c(i, g) : i = i.sort().reverse().map((Q) => {
26516
- const [y, b] = this.#c(Q, g);
26517
- return u ||= y, `(${b})`;
26516
+ const [m, b] = this.#c(Q, g);
26517
+ return u ||= m, `(${b})`;
26518
26518
  }).join("|");
26519
26519
  const I = `g${u ? "u" : ""}${r ? "" : "i"}`;
26520
26520
  i = i ? new RegExp(i, I) : null, this.#o(i, A, t, c), this.#e.highlightAll && this.#A(t), this._resumePageIdx === t && (this._resumePageIdx = null, this.#f());
@@ -26956,11 +26956,11 @@ class Ph {
26956
26956
  hasJSActionsPromise: I = null,
26957
26957
  fieldObjectsPromise: f = null,
26958
26958
  annotationCanvasMap: Q = null,
26959
- accessibilityManager: y = null,
26959
+ accessibilityManager: m = null,
26960
26960
  annotationEditorUIManager: b = null,
26961
26961
  onAppend: S = null
26962
26962
  }) {
26963
- this.pdfPage = t, this.linkService = i, this.downloadManager = r, this.imageResourcesPath = c, this.renderForms = g, this.annotationStorage = A, this.enableScripting = u, this._hasJSActionsPromise = I || Promise.resolve(!1), this._fieldObjectsPromise = f || Promise.resolve(null), this._annotationCanvasMap = Q, this._accessibilityManager = y, this._annotationEditorUIManager = b, this.#e = S, this.annotationLayer = null, this.div = null, this._cancelled = !1, this._eventBus = i.eventBus;
26963
+ this.pdfPage = t, this.linkService = i, this.downloadManager = r, this.imageResourcesPath = c, this.renderForms = g, this.annotationStorage = A, this.enableScripting = u, this._hasJSActionsPromise = I || Promise.resolve(!1), this._fieldObjectsPromise = f || Promise.resolve(null), this._annotationCanvasMap = Q, this._accessibilityManager = m, this._annotationEditorUIManager = b, this.#e = S, this.annotationLayer = null, this.div = null, this._cancelled = !1, this._eventBus = i.eventBus;
26964
26964
  }
26965
26965
  async render(t, i = "display") {
26966
26966
  if (this.div) {
@@ -27529,11 +27529,11 @@ class j2 {
27529
27529
  function Q() {
27530
27530
  let R;
27531
27531
  if (r(Gr) && (R = u(Gr)), t[i] === "{" || t[i] === "}")
27532
- return y(R ? [R] : [], 1 / 0);
27532
+ return m(R ? [R] : [], 1 / 0);
27533
27533
  let L = U();
27534
- return L ? R ? y([R, L], L.length) : (L.value = D(L.value, G2), y([L], L.length)) : R ? D(R, Hl) : null;
27534
+ return L ? R ? m([R, L], L.length) : (L.value = D(L.value, G2), m([L], L.length)) : R ? D(R, Hl) : null;
27535
27535
  }
27536
- function y(R = [], L) {
27536
+ function m(R = [], L) {
27537
27537
  for (; ; ) {
27538
27538
  if (r(Gr)) {
27539
27539
  R.push(u(Gr));
@@ -27963,8 +27963,8 @@ function o9(n, t, i, r) {
27963
27963
  let f = t.getMessage(g);
27964
27964
  if (f) {
27965
27965
  if (A.length = 0, r[I] = n(t, A, f, u), A.length > 0 && typeof console < "u") {
27966
- const Q = t.locales[0], y = A.join(", ");
27967
- console.warn(`[fluent][resolver] errors in ${Q}/${g}: ${y}.`);
27966
+ const Q = t.locales[0], m = A.join(", ");
27967
+ console.warn(`[fluent][resolver] errors in ${Q}/${g}: ${m}.`);
27968
27968
  }
27969
27969
  } else
27970
27970
  c.add(g);
@@ -29215,8 +29215,8 @@ class Ws {
29215
29215
  return -1;
29216
29216
  if (Q <= c && u >= f)
29217
29217
  return 1;
29218
- const y = r.x + r.width / 2, b = A.x + A.width / 2;
29219
- return y - b;
29218
+ const m = r.x + r.width / 2, b = A.x + A.width / 2;
29219
+ return m - b;
29220
29220
  }
29221
29221
  enable() {
29222
29222
  if (this.#e)
@@ -29329,7 +29329,7 @@ class Q9 {
29329
29329
  for (; A !== g && Q >= c + r[A].length; )
29330
29330
  c += r[A].length, A++;
29331
29331
  A === r.length && console.error("Could not find a matching mapping");
29332
- const y = {
29332
+ const m = {
29333
29333
  begin: {
29334
29334
  divIdx: A,
29335
29335
  offset: Q - c
@@ -29337,10 +29337,10 @@ class Q9 {
29337
29337
  };
29338
29338
  for (Q += i[I]; A !== g && Q > c + r[A].length; )
29339
29339
  c += r[A].length, A++;
29340
- y.end = {
29340
+ m.end = {
29341
29341
  divIdx: A,
29342
29342
  offset: Q - c
29343
- }, u.push(y);
29343
+ }, u.push(m);
29344
29344
  }
29345
29345
  return u;
29346
29346
  }
@@ -29358,7 +29358,7 @@ class Q9 {
29358
29358
  const Q = {
29359
29359
  offset: void 0
29360
29360
  };
29361
- function y(F, O) {
29361
+ function m(F, O) {
29362
29362
  const J = F.divIdx;
29363
29363
  return c[J].textContent = "", b(J, 0, F.offset, O);
29364
29364
  }
@@ -29388,13 +29388,13 @@ class Q9 {
29388
29388
  k = J.divIdx, M = J.offset;
29389
29389
  const T = O.end, H = g && F === u, U = H ? " selected" : "";
29390
29390
  let D = 0;
29391
- if (!f || J.divIdx !== f.divIdx ? (f !== null && b(f.divIdx, f.offset, Q.offset), y(J)) : b(f.divIdx, f.offset, J.offset), J.divIdx === T.divIdx)
29391
+ if (!f || J.divIdx !== f.divIdx ? (f !== null && b(f.divIdx, f.offset, Q.offset), m(J)) : b(f.divIdx, f.offset, J.offset), J.divIdx === T.divIdx)
29392
29392
  D = b(J.divIdx, J.offset, T.offset, "highlight" + U);
29393
29393
  else {
29394
29394
  D = b(J.divIdx, J.offset, Q.offset, "highlight begin" + U);
29395
29395
  for (let G = J.divIdx + 1, R = T.divIdx; G < R; G++)
29396
29396
  c[G].className = "highlight middle" + U;
29397
- y(T, "highlight end" + U);
29397
+ m(T, "highlight end" + U);
29398
29398
  }
29399
29399
  f = T, H && i.scrollMatchIntoView({
29400
29400
  element: c[J.divIdx],
@@ -29418,8 +29418,8 @@ class Q9 {
29418
29418
  } = this;
29419
29419
  let u = -1;
29420
29420
  for (const Q of r) {
29421
- const y = Math.max(u, Q.begin.divIdx);
29422
- for (let b = y, S = Q.end.divIdx; b <= S; b++) {
29421
+ const m = Math.max(u, Q.begin.divIdx);
29422
+ for (let b = m, S = Q.end.divIdx; b <= S; b++) {
29423
29423
  const w = g[b];
29424
29424
  w.textContent = c[b], w.className = "";
29425
29425
  }
@@ -29534,8 +29534,8 @@ class Bs {
29534
29534
  const u = c.getRangeAt(0), I = A && (u.compareBoundaryPoints(Range.END_TO_END, A) === 0 || u.compareBoundaryPoints(Range.START_TO_END, A) === 0);
29535
29535
  let f = I ? u.startContainer : u.endContainer;
29536
29536
  f.nodeType === Node.TEXT_NODE && (f = f.parentNode);
29537
- const Q = f.parentElement.closest(".textLayer"), y = this.#r.get(Q);
29538
- y && (y.style.width = Q.style.width, y.style.height = Q.style.height, f.parentElement.insertBefore(y, I ? f : f.nextSibling)), A = u.cloneRange();
29537
+ const Q = f.parentElement.closest(".textLayer"), m = this.#r.get(Q);
29538
+ m && (m.style.width = Q.style.width, m.style.height = Q.style.height, f.parentElement.insertBefore(m, I ? f : f.nextSibling)), A = u.cloneRange();
29539
29539
  }, {
29540
29540
  signal: t
29541
29541
  });
@@ -29786,14 +29786,14 @@ class jh {
29786
29786
  keepXfaLayer: A,
29787
29787
  keepTextLayer: c
29788
29788
  }), this.renderingState = Bt.INITIAL;
29789
- const g = this.div, u = g.childNodes, I = t && this.zoomLayer || null, f = i && this.annotationLayer?.div || null, Q = r && this.annotationEditorLayer?.div || null, y = A && this.xfaLayer?.div || null, b = c && this.textLayer?.div || null;
29789
+ const g = this.div, u = g.childNodes, I = t && this.zoomLayer || null, f = i && this.annotationLayer?.div || null, Q = r && this.annotationEditorLayer?.div || null, m = A && this.xfaLayer?.div || null, b = c && this.textLayer?.div || null;
29790
29790
  for (let S = u.length - 1; S >= 0; S--) {
29791
29791
  const w = u[S];
29792
29792
  switch (w) {
29793
29793
  case I:
29794
29794
  case f:
29795
29795
  case Q:
29796
- case y:
29796
+ case m:
29797
29797
  case b:
29798
29798
  continue;
29799
29799
  }
@@ -29801,7 +29801,7 @@ class jh {
29801
29801
  const k = this.#h.indexOf(w);
29802
29802
  k >= 0 && (this.#h[k] = null);
29803
29803
  }
29804
- g.removeAttribute("data-loaded"), f && this.annotationLayer.hide(), Q && this.annotationEditorLayer.hide(), y && this.xfaLayer.hide(), b && this.textLayer.hide(), this.structTreeLayer?.hide(), I || (this.canvas && (this.#c.delete(this.canvas), this.canvas.width = 0, this.canvas.height = 0, delete this.canvas), this._resetZoomLayer());
29804
+ g.removeAttribute("data-loaded"), f && this.annotationLayer.hide(), Q && this.annotationEditorLayer.hide(), m && this.xfaLayer.hide(), b && this.textLayer.hide(), this.structTreeLayer?.hide(), I || (this.canvas && (this.#c.delete(this.canvas), this.canvas.width = 0, this.canvas.height = 0, delete this.canvas), this._resetZoomLayer());
29805
29805
  }
29806
29806
  update({
29807
29807
  scale: t = 0,
@@ -29827,9 +29827,9 @@ class jh {
29827
29827
  height: f
29828
29828
  } = this.viewport, {
29829
29829
  sx: Q,
29830
- sy: y
29830
+ sy: m
29831
29831
  } = this.outputScale;
29832
- g = (Math.floor(I) * Q | 0) * (Math.floor(f) * y | 0) > this.maxCanvasPixels;
29832
+ g = (Math.floor(I) * Q | 0) * (Math.floor(f) * m | 0) > this.maxCanvasPixels;
29833
29833
  }
29834
29834
  }
29835
29835
  const u = A >= 0 && A < 1e3;
@@ -29898,15 +29898,15 @@ class jh {
29898
29898
  const u = this.#c.get(t);
29899
29899
  if (this.viewport !== u) {
29900
29900
  const I = this.viewport.rotation - u.rotation, f = Math.abs(I);
29901
- let Q = 1, y = 1;
29901
+ let Q = 1, m = 1;
29902
29902
  if (f === 90 || f === 270) {
29903
29903
  const {
29904
29904
  width: b,
29905
29905
  height: S
29906
29906
  } = this.viewport;
29907
- Q = S / b, y = b / S;
29907
+ Q = S / b, m = b / S;
29908
29908
  }
29909
- t.style.transform = `rotate(${I}deg) scale(${Q}, ${y})`;
29909
+ t.style.transform = `rotate(${I}deg) scale(${Q}, ${m})`;
29910
29910
  }
29911
29911
  i && this.annotationLayer && this.#I(), r && this.annotationEditorLayer && (this.drawLayer && this.#f(), this.#u()), A && this.xfaLayer && this.#C(), this.textLayer && (g ? (this.textLayer.hide(), this.structTreeLayer?.hide()) : c && this.#B());
29912
29912
  }
@@ -29995,9 +29995,9 @@ class jh {
29995
29995
  height: f
29996
29996
  } = c, Q = document.createElement("canvas");
29997
29997
  Q.setAttribute("role", "presentation"), Q.hidden = !0;
29998
- const y = !!(r?.background && r?.foreground);
29998
+ const m = !!(r?.background && r?.foreground);
29999
29999
  let b = (U) => {
30000
- (!y || U) && (Q.hidden = !1, b = null);
30000
+ (!m || U) && (Q.hidden = !1, b = null);
30001
30001
  };
30002
30002
  g.append(Q), this.canvas = Q;
30003
30003
  const S = Q.getContext("2d", {
@@ -30434,17 +30434,17 @@ class F9 {
30434
30434
  const c = t.views, g = c.length;
30435
30435
  if (g === 0)
30436
30436
  return null;
30437
- for (let y = 0; y < g; y++) {
30438
- const b = c[y].view;
30437
+ for (let m = 0; m < g; m++) {
30438
+ const b = c[m].view;
30439
30439
  if (!this.isViewFinished(b))
30440
30440
  return b;
30441
30441
  }
30442
30442
  const u = t.first.id, I = t.last.id;
30443
30443
  if (I - u + 1 > g) {
30444
- const y = t.ids;
30444
+ const m = t.ids;
30445
30445
  for (let b = 1, S = I - u; b < S; b++) {
30446
30446
  const w = r ? u + b : I - b;
30447
- if (y.has(w))
30447
+ if (m.has(w))
30448
30448
  continue;
30449
30449
  const k = i[w - 1];
30450
30450
  if (!this.isViewFinished(k))
@@ -30781,12 +30781,12 @@ class Wh {
30781
30781
  g._on("pagerender", Q, {
30782
30782
  signal: f
30783
30783
  });
30784
- const y = (b) => {
30784
+ const m = (b) => {
30785
30785
  b.cssTransform || (this._onePageRenderedCapability.resolve({
30786
30786
  timestamp: b.timestamp
30787
- }), g._off("pagerendered", y));
30787
+ }), g._off("pagerendered", m));
30788
30788
  };
30789
- g._on("pagerendered", y, {
30789
+ g._on("pagerendered", m, {
30790
30790
  signal: f
30791
30791
  }), Promise.all([r, c]).then(([b, S]) => {
30792
30792
  if (t !== this.pdfDocument)
@@ -30960,8 +30960,8 @@ class Wh {
30960
30960
  destArray: Q,
30961
30961
  allowNegativeOffset: !0
30962
30962
  }), Array.isArray(g)) {
30963
- const y = t / I - 1, [b, S] = this.containerTopLeft;
30964
- this.container.scrollLeft += (g[0] - S) * y, this.container.scrollTop += (g[1] - b) * y;
30963
+ const m = t / I - 1, [b, S] = this.containerTopLeft;
30964
+ this.container.scrollLeft += (g[0] - S) * m, this.container.scrollTop += (g[1] - b) * m;
30965
30965
  }
30966
30966
  }
30967
30967
  this.eventBus.dispatch("scalechanging", {
@@ -31037,7 +31037,7 @@ class Wh {
31037
31037
  this._setCurrentPageNumber(t, !0);
31038
31038
  return;
31039
31039
  }
31040
- let g = 0, u = 0, I = 0, f = 0, Q, y;
31040
+ let g = 0, u = 0, I = 0, f = 0, Q, m;
31041
31041
  const b = c.rotation % 180 !== 0, S = (b ? c.height : c.width) / c.scale / rn.PDF_TO_CSS_UNITS, w = (b ? c.width : c.height) / c.scale / rn.PDF_TO_CSS_UNITS;
31042
31042
  let k = 0;
31043
31043
  switch (i[1].name) {
@@ -31059,7 +31059,7 @@ class Wh {
31059
31059
  case "FitR":
31060
31060
  g = i[2], u = i[3], I = i[4] - g, f = i[5] - u;
31061
31061
  let J = Cl, T = fl;
31062
- this.removePageBorders && (J = T = 0), Q = (this.container.clientWidth - J) / I / rn.PDF_TO_CSS_UNITS, y = (this.container.clientHeight - T) / f / rn.PDF_TO_CSS_UNITS, k = Math.min(Math.abs(Q), Math.abs(y));
31062
+ this.removePageBorders && (J = T = 0), Q = (this.container.clientWidth - J) / I / rn.PDF_TO_CSS_UNITS, m = (this.container.clientHeight - T) / f / rn.PDF_TO_CSS_UNITS, k = Math.min(Math.abs(Q), Math.abs(m));
31063
31063
  break;
31064
31064
  default:
31065
31065
  console.error(`scrollPageIntoView: "${i[1].name}" is not a valid destination type.`);
@@ -31078,14 +31078,14 @@ class Wh {
31078
31078
  }
31079
31079
  _updateLocation(t) {
31080
31080
  const i = this._currentScale, r = this._currentScaleValue, A = parseFloat(r) === i ? Math.round(i * 1e4) / 100 : r, c = t.id, g = this._pages[c - 1], u = this.container, I = g.getPagePoint(u.scrollLeft - t.x, u.scrollTop - t.y), f = Math.round(I[0]), Q = Math.round(I[1]);
31081
- let y = `#page=${c}`;
31082
- this.isInPresentationMode || (y += `&zoom=${A},${f},${Q}`), this._location = {
31081
+ let m = `#page=${c}`;
31082
+ this.isInPresentationMode || (m += `&zoom=${A},${f},${Q}`), this._location = {
31083
31083
  pageNumber: c,
31084
31084
  scale: A,
31085
31085
  top: Q,
31086
31086
  left: f,
31087
31087
  rotation: this._pagesRotation,
31088
- pdfOpenParams: y
31088
+ pdfOpenParams: m
31089
31089
  };
31090
31090
  }
31091
31091
  update() {
@@ -31299,15 +31299,15 @@ class Wh {
31299
31299
  break;
31300
31300
  if (i)
31301
31301
  for (let I = g - 1, f = 0; I >= f; I--) {
31302
- const Q = c[I], y = c[I + 1] - 1;
31303
- if (Q < y)
31304
- return t - y;
31302
+ const Q = c[I], m = c[I + 1] - 1;
31303
+ if (Q < m)
31304
+ return t - m;
31305
31305
  }
31306
31306
  else
31307
31307
  for (let I = g + 1, f = u; I < f; I++) {
31308
- const Q = c[I], y = c[I - 1] + 1;
31309
- if (Q > y)
31310
- return y - t;
31308
+ const Q = c[I], m = c[I - 1] + 1;
31309
+ if (Q > m)
31310
+ return m - t;
31311
31311
  }
31312
31312
  if (i) {
31313
31313
  const I = c[0];
@@ -31504,7 +31504,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
31504
31504
  setup(n, { emit: t }) {
31505
31505
  const i = URL.createObjectURL(new Blob([M9], { type: "text/javascript" }));
31506
31506
  Qm.workerSrc = i;
31507
- const r = t, A = Ri(), { proxy: c } = ji(), { activeZoom: g } = wi(A), u = W(null), I = W(null), f = W(!1), y = c.$superdoc.config.pdfViewer.textLayerMode ?? 0;
31507
+ const r = t, A = Ri(), { proxy: c } = ji(), { activeZoom: g } = wi(A), u = W(null), I = W(null), f = W(!1), m = c.$superdoc.config.pdfViewer.textLayerMode ?? 0;
31508
31508
  let b = null, S = [];
31509
31509
  const w = n, k = w.documentData.id, M = w.documentData.data, F = (P) => {
31510
31510
  const K = P.getViewport({ scale: 1 }), V = K.width, $ = K.height;
@@ -31544,7 +31544,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
31544
31544
  scale: xe,
31545
31545
  defaultViewport: te.getViewport({ scale: xe }),
31546
31546
  eventBus: Me,
31547
- textLayerMode: y
31547
+ textLayerMode: m
31548
31548
  });
31549
31549
  S.push(Xe);
31550
31550
  const at = se.getBoundingClientRect();
@@ -31630,7 +31630,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
31630
31630
  },
31631
31631
  emits: ["highlight-click"],
31632
31632
  setup(n, { expose: t, emit: i }) {
31633
- const r = Ri(), A = hn(), { COMMENT_EVENTS: c } = A, { documentsWithConverations: g, activeComment: u, floatingCommentsOffset: I, commentsList: f } = wi(A), { documents: Q, activeZoom: y } = wi(r), { proxy: b } = ji(), S = i, w = n, k = (T) => {
31633
+ const r = Ri(), A = hn(), { COMMENT_EVENTS: c } = A, { documentsWithConverations: g, activeComment: u, floatingCommentsOffset: I, commentsList: f } = wi(A), { documents: Q, activeZoom: m } = wi(r), { proxy: b } = ji(), S = i, w = n, k = (T) => {
31634
31634
  const H = {
31635
31635
  creatorEmail: w.user.email,
31636
31636
  creatorName: w.user.name,
@@ -31651,7 +31651,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
31651
31651
  u.value = G.commentId, D.conversations.push(G), b.$superdoc.emit("comments-update", { type: c.NEW, comment: G.getValues() });
31652
31652
  }, M = (T) => {
31653
31653
  const { selection: H, commentId: U } = T, D = H.getContainerLocation(w.parent), G = T.selection.selectionBounds;
31654
- (parseFloat(G.top) + D.top) * y.value;
31654
+ (parseFloat(G.top) + D.top) * m.value;
31655
31655
  const R = "#078383", L = "#B1124B";
31656
31656
  let P = "33";
31657
31657
  u.value === U && (P = "66");
@@ -31709,7 +31709,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
31709
31709
  activeComment: c,
31710
31710
  commentsList: g,
31711
31711
  editorCommentPositions: u
31712
- } = wi(i), I = W(null), f = W([]), Q = W(!1), y = W(0), b = W(0), S = ae(() => (F) => I.value ? (I.value.getBoundingClientRect(), typeof F.top != "number" || isNaN(F.top) ? { display: "none" } : { top: `${F.top}px` }) : { top: "0px" }), w = (F) => {
31712
+ } = wi(i), I = W(null), f = W([]), Q = W(!1), m = W(0), b = W(0), S = ae(() => (F) => I.value ? (I.value.getBoundingClientRect(), typeof F.top != "number" || isNaN(F.top) ? { display: "none" } : { top: `${F.top}px` }) : { top: "0px" }), w = (F) => {
31713
31713
  if (!F) return window;
31714
31714
  let O = F.parentNode;
31715
31715
  for (; O && O !== document; ) {
@@ -31751,13 +31751,13 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
31751
31751
  f.value.length === r.value.length && qt(M);
31752
31752
  }), wt(c, (F, O) => {
31753
31753
  qt(() => {
31754
- if (!c.value) return y.value = 0;
31754
+ if (!c.value) return m.value = 0;
31755
31755
  const J = i.getComment(c.value);
31756
- if (!J) return y.value = 0;
31756
+ if (!J) return m.value = 0;
31757
31757
  const T = f.value.find((D) => D.id === J.commentId);
31758
- if (!T) return y.value = 0;
31758
+ if (!T) return m.value = 0;
31759
31759
  const H = J.selection.selectionBounds.top, U = T.top;
31760
- I.value.getBoundingClientRect(), y.value = H - U, setTimeout(() => {
31760
+ I.value.getBoundingClientRect(), m.value = H - U, setTimeout(() => {
31761
31761
  T.elementRef.value?.scrollIntoView({
31762
31762
  behavior: "smooth",
31763
31763
  block: "center"
@@ -31790,7 +31790,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
31790
31790
  Q.value ? (fe(), ye("div", {
31791
31791
  key: 0,
31792
31792
  class: "sidebar-container",
31793
- style: ri({ top: y.value + "px" })
31793
+ style: ri({ top: m.value + "px" })
31794
31794
  }, [
31795
31795
  (fe(!0), ye(jt, null, gn(f.value, (J) => (fe(), ye("div", {
31796
31796
  key: J.id,
@@ -31980,15 +31980,15 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
31980
31980
  }), c = (I, f) => {
31981
31981
  const Q = t.value.find((b) => b.id === I);
31982
31982
  if (!Q) return;
31983
- const y = Q.fields.find((b) => b.id === f);
31984
- if (y) return y;
31983
+ const m = Q.fields.find((b) => b.id === f);
31984
+ if (m) return m;
31985
31985
  }, g = ae(() => {
31986
31986
  const I = [];
31987
31987
  return t.value.forEach((f) => {
31988
- const { id: Q, annotations: y } = f, b = f.container;
31988
+ const { id: Q, annotations: m } = f, b = f.container;
31989
31989
  if (!b) return;
31990
31990
  const S = b.getBoundingClientRect(), w = f.pageContainers;
31991
- !S || !w || y.forEach((k) => {
31991
+ !S || !w || m.forEach((k) => {
31992
31992
  const { itemid: M, page: F, nostyle: O } = k;
31993
31993
  let J = k.pageannotation;
31994
31994
  k.itemfieldtype === "CHECKBOXINPUT" && (J = k.annotationid);
@@ -32011,11 +32011,11 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
32011
32011
  I.push(te);
32012
32012
  });
32013
32013
  }), I;
32014
- }), u = (I, f, Q, y) => {
32014
+ }), u = (I, f, Q, m) => {
32015
32015
  const { x1: b, y1: S, x2: w, y2: k } = I, M = b * f, F = S * f, O = w * f, J = k * f;
32016
32016
  return {
32017
32017
  top: `${Q - J}px`,
32018
- left: `${M + y}px`,
32018
+ left: `${M + m}px`,
32019
32019
  minWidth: `${O - M}px`,
32020
32020
  minHeight: `${J - F}px`
32021
32021
  };
@@ -32093,11 +32093,11 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
32093
32093
  const I = window.getSelection();
32094
32094
  console.debug("selection from html viewer", I), A("selection-change", I);
32095
32095
  }, g = (I) => new Promise((f, Q) => {
32096
- const y = new FileReader();
32097
- y.onload = (b) => {
32096
+ const m = new FileReader();
32097
+ m.onload = (b) => {
32098
32098
  const S = b.target.result;
32099
32099
  f(S);
32100
- }, y.onerror = (b) => Q(b), y.readAsText(I);
32100
+ }, m.onerror = (b) => Q(b), m.readAsText(I);
32101
32101
  }), u = async () => {
32102
32102
  try {
32103
32103
  const I = await g(i.fileSource);
@@ -32187,10 +32187,10 @@ function Qy(n) {
32187
32187
  };
32188
32188
  }
32189
32189
  function my({ emitAiHighlight: n, activeEditorRef: t }) {
32190
- const i = W(!1), r = W(!1), A = Zt({ top: 0, left: 0 }), c = W(null), g = ({ type: y, data: b }) => {
32190
+ const i = W(!1), r = W(!1), A = Zt({ top: 0, left: 0 }), c = W(null), g = ({ type: m, data: b }) => {
32191
32191
  if (!c.value) return;
32192
32192
  const S = t.value;
32193
- switch (y) {
32193
+ switch (m) {
32194
32194
  case "add":
32195
32195
  S && !S.isDestroyed && S.commands.clearAiHighlightStyle(), c.value.addAiHighlight();
32196
32196
  break;
@@ -32202,13 +32202,13 @@ function my({ emitAiHighlight: n, activeEditorRef: t }) {
32202
32202
  break;
32203
32203
  }
32204
32204
  }, u = () => {
32205
- const y = t.value;
32206
- if (!y || y.isDestroyed) {
32205
+ const m = t.value;
32206
+ if (!m || m.isDestroyed) {
32207
32207
  console.error("[useAi] Editor not available");
32208
32208
  return;
32209
32209
  }
32210
32210
  try {
32211
- const { view: b } = y, { selection: S } = b.state;
32211
+ const { view: b } = m, { selection: S } = b.state;
32212
32212
  S.empty || n({ type: "add", data: null });
32213
32213
  let w;
32214
32214
  try {
@@ -32241,8 +32241,8 @@ function my({ emitAiHighlight: n, activeEditorRef: t }) {
32241
32241
  aiWriterPosition: A,
32242
32242
  aiLayer: c,
32243
32243
  // Methods
32244
- initAiLayer: (y = !0) => {
32245
- i.value = y;
32244
+ initAiLayer: (m = !0) => {
32245
+ i.value = m;
32246
32246
  },
32247
32247
  handleAiHighlight: g,
32248
32248
  showAiWriterAtCursor: u,
@@ -32268,7 +32268,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
32268
32268
  selectionPosition: u,
32269
32269
  activeSelection: I,
32270
32270
  activeZoom: f
32271
- } = wi(i), { handlePageReady: Q, modules: y, user: b, getDocument: S } = i, {
32271
+ } = wi(i), { handlePageReady: Q, modules: m, user: b, getDocument: S } = i, {
32272
32272
  getConfig: w,
32273
32273
  documentsWithConverations: k,
32274
32274
  commentsList: M,
@@ -32400,7 +32400,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
32400
32400
  Ke === "trackedChange" && $({ superdoc: q.$superdoc, params: Z }), qt(() => {
32401
32401
  F.value || r.setActiveComment(me);
32402
32402
  }), typeof q.$superdoc.config.onCommentsUpdate == "function" && q.$superdoc.config.onCommentsUpdate(Z);
32403
- }, Lt = ae(() => "comments" in y), Ai = ae(() => F.value || G.value?.length > 0 && c.value && ee.value && Lt.value && !H.value), zi = ae(() => Lt.value ? se.top && !w.value?.readOnly : !1);
32403
+ }, Lt = ae(() => "comments" in m), Ai = ae(() => F.value || G.value?.length > 0 && c.value && ee.value && Lt.value && !H.value), zi = ae(() => Lt.value ? se.top && !w.value?.readOnly : !1);
32404
32404
  ae(() => {
32405
32405
  if (!Lt.value) return !1;
32406
32406
  !w?.readOnly && u.value;
@@ -32413,7 +32413,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
32413
32413
  me && (me.scrollIntoView({ behavior: "smooth", block: "start" }), r.setActiveComment(Z));
32414
32414
  };
32415
32415
  Ii(() => {
32416
- Lt.value && !y.comments.readOnly && document.addEventListener("mousedown", Se), q.$superdoc.on("ai-highlight", de);
32416
+ Lt.value && !m.comments.readOnly && document.addEventListener("mousedown", Se), q.$superdoc.on("ai-highlight", de);
32417
32417
  }), Di(() => {
32418
32418
  document.removeEventListener("mousedown", Se), q.$superdoc.off("ai-highlight", de);
32419
32419
  });
@@ -32550,9 +32550,9 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
32550
32550
  class: "superdoc__temp-selection temp-selection sd-highlight sd-initial-highlight"
32551
32551
  }, null, 4)) : Ze("", !0)
32552
32552
  ], 544)) : Ze("", !0),
32553
- "hrbr-fields" in Fe(y) && ee.value ? (fe(), hi(hy, {
32553
+ "hrbr-fields" in Fe(m) && ee.value ? (fe(), hi(hy, {
32554
32554
  key: 1,
32555
- fields: Fe(y)["hrbr-fields"],
32555
+ fields: Fe(m)["hrbr-fields"],
32556
32556
  class: "superdoc__comments-layer comments-layer",
32557
32557
  style: { "z-index": "2" },
32558
32558
  ref_key: "hrbrFieldsLayer",
@@ -32713,7 +32713,7 @@ class hb extends eg {
32713
32713
  this.config = {
32714
32714
  ...this.config,
32715
32715
  ...t
32716
- }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.29", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, this.#t(), await this.#r(this.config.modules), this.#i(), this.#s(), this.user = this.config.user, this.users = this.config.users || [], this.socket = null, this.isDev = this.config.isDev || !1, this.activeEditor = null, this.comments = [], this.app.mount(this.config.selector), this.readyEditors = 0, this.isLocked = this.config.isLocked || !1, this.lockedBy = this.config.lockedBy || null, this.#a(this);
32716
+ }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.30", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, this.#t(), await this.#r(this.config.modules), this.#i(), this.#s(), this.user = this.config.user, this.users = this.config.users || [], this.socket = null, this.isDev = this.config.isDev || !1, this.activeEditor = null, this.comments = [], this.app.mount(this.config.selector), this.readyEditors = 0, this.isLocked = this.config.isLocked || !1, this.lockedBy = this.config.lockedBy || null, this.#a(this);
32717
32717
  }
32718
32718
  get requiredNumberOfEditors() {
32719
32719
  return this.superdocStore.documents.filter((t) => t.type === on).length;
@@ -32938,26 +32938,27 @@ class hb extends eg {
32938
32938
  commentsType: i,
32939
32939
  exportedName: r,
32940
32940
  additionalFiles: A = [],
32941
- additionalFileNames: c = []
32941
+ additionalFileNames: c = [],
32942
+ isFinalDoc: g = !1
32942
32943
  } = {}) {
32943
- const g = Xl(r || this.config.title), u = await this.exportEditorsToDOCX({ commentsType: i }), I = [...A], f = [...c];
32944
- if (t.includes("docx") && u.forEach((Q, y) => {
32945
- I.push(Q), f.push(`${g}.docx`);
32946
- }), I.length === 1)
32947
- Wl(I[0], g, t[0]);
32944
+ const u = Xl(r || this.config.title), I = await this.exportEditorsToDOCX({ commentsType: i, isFinalDoc: g }), f = [...A], Q = [...c];
32945
+ if (t.includes("docx") && I.forEach((m, b) => {
32946
+ f.push(m), Q.push(`${u}.docx`);
32947
+ }), f.length === 1)
32948
+ Wl(f[0], u, t[0]);
32948
32949
  else {
32949
- const Q = await Fd(I, f);
32950
- Wl(Q, g, "zip");
32950
+ const m = await Fd(f, Q);
32951
+ Wl(m, u, "zip");
32951
32952
  }
32952
32953
  }
32953
- async exportEditorsToDOCX({ commentsType: t } = {}) {
32954
- const i = [];
32955
- t !== "clean" && i.push(...this.commentsStore?.translateCommentsForExport());
32954
+ async exportEditorsToDOCX({ commentsType: t, isFinalDoc: i } = {}) {
32956
32955
  const r = [];
32957
- return this.superdocStore.documents.forEach((A) => {
32958
- const c = A.getEditor();
32959
- c && r.push(c.exportDocx({ comments: i, commentsType: t }));
32960
- }), await Promise.all(r);
32956
+ t !== "clean" && r.push(...this.commentsStore?.translateCommentsForExport());
32957
+ const A = [];
32958
+ return this.superdocStore.documents.forEach((c) => {
32959
+ const g = c.getEditor();
32960
+ g && A.push(g.exportDocx({ isFinalDoc: i, comments: r, commentsType: t }));
32961
+ }), await Promise.all(A);
32961
32962
  }
32962
32963
  /**
32963
32964
  * Request an immediate save from all collaboration documents