kordoc 4.22.2 → 4.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/README.md +10 -6
  2. package/dist/{-C437ZARA.js → -AOWV7MNY.js} +11 -11
  3. package/dist/{chunk-UMNKY2EZ.js → chunk-24YLYR6Q.js} +4 -4
  4. package/dist/{chunk-EKKZNKJD.cjs → chunk-2BCQVQO2.cjs} +3 -3
  5. package/dist/{chunk-EKKZNKJD.cjs.map → chunk-2BCQVQO2.cjs.map} +1 -1
  6. package/dist/{chunk-GFQIKYBV.js → chunk-3ANXRVI2.js} +3 -3
  7. package/dist/{chunk-CNMUT5YW.js → chunk-3H2IEU4V.js} +2 -2
  8. package/dist/{chunk-GVBQVXXB.js → chunk-4NQ4EZEE.js} +14 -4
  9. package/dist/chunk-4NQ4EZEE.js.map +1 -0
  10. package/dist/{chunk-56GBOIOE.js → chunk-6LIBF2ZB.js} +2 -2
  11. package/dist/{chunk-2X64TI7I.js → chunk-6QBBGZST.js} +2 -2
  12. package/dist/{chunk-FPUBEM3F.js → chunk-7XITVUAK.js} +11 -11
  13. package/dist/{chunk-S4KQUVBV.js → chunk-AXX5AQT4.js} +4 -4
  14. package/dist/{chunk-U3TZVR7A.js → chunk-BS2XWGT5.js} +2 -2
  15. package/dist/{chunk-4BJZGXNM.js → chunk-DKJ2RNDG.js} +2 -2
  16. package/dist/{chunk-IRP6QS3K.js → chunk-FDFXL7VJ.js} +3 -3
  17. package/dist/{chunk-YOFKJ7IM.js → chunk-IRNWAHHZ.js} +2 -2
  18. package/dist/{chunk-QFJCEHY7.js → chunk-J5PYESLX.js} +14 -4
  19. package/dist/chunk-J5PYESLX.js.map +1 -0
  20. package/dist/{chunk-AXR7OKQY.js → chunk-KBGNPGVY.js} +2 -2
  21. package/dist/{chunk-UV2G6XFA.js → chunk-M2X766AY.js} +2 -2
  22. package/dist/{chunk-YTEMFVZB.js → chunk-MEIQ476H.js} +2 -2
  23. package/dist/{chunk-AUWO57ED.cjs → chunk-MI655NV5.cjs} +2 -2
  24. package/dist/{chunk-AUWO57ED.cjs.map → chunk-MI655NV5.cjs.map} +1 -1
  25. package/dist/{chunk-ENV25MPM.cjs → chunk-NJEMRAIF.cjs} +24 -24
  26. package/dist/{chunk-ENV25MPM.cjs.map → chunk-NJEMRAIF.cjs.map} +1 -1
  27. package/dist/{chunk-I4BS4BXE.cjs → chunk-NLGOMLGU.cjs} +23 -23
  28. package/dist/{chunk-I4BS4BXE.cjs.map → chunk-NLGOMLGU.cjs.map} +1 -1
  29. package/dist/{chunk-ZLFUZM7H.cjs → chunk-O3OS6FAW.cjs} +3 -3
  30. package/dist/{chunk-ZLFUZM7H.cjs.map → chunk-O3OS6FAW.cjs.map} +1 -1
  31. package/dist/{chunk-4GCS7WJJ.js → chunk-O5E25RHU.js} +2 -2
  32. package/dist/{chunk-NGDMJICC.js → chunk-OIF5HRVP.js} +4 -4
  33. package/dist/{chunk-MED2MR6O.cjs → chunk-SJ5OZXEL.cjs} +23 -13
  34. package/dist/chunk-SJ5OZXEL.cjs.map +1 -0
  35. package/dist/{chunk-3LJ6QO53.js → chunk-SKRWKVVW.js} +3 -3
  36. package/dist/{chunk-VUC4JJUM.js → chunk-UCLDUUBX.js} +2 -2
  37. package/dist/{chunk-L6PFPBTK.js → chunk-VJCQOSMT.js} +2 -2
  38. package/dist/{chunk-DQXP3ELP.js → chunk-X45Q7EAC.js} +2 -2
  39. package/dist/{chunk-L6N4OMKR.js → chunk-YOGMCRM7.js} +54 -7
  40. package/dist/chunk-YOGMCRM7.js.map +1 -0
  41. package/dist/chunks-7KXTS7IV.js +10 -0
  42. package/dist/cli.js +30 -30
  43. package/dist/{formula-3TVRNJ66.cjs → formula-5V2WG4BH.cjs} +9 -9
  44. package/dist/{formula-3TVRNJ66.cjs.map → formula-5V2WG4BH.cjs.map} +1 -1
  45. package/dist/{formula-HUENRCPJ.js → formula-C26FMMGO.js} +3 -3
  46. package/dist/{formula-43QBPAL5.js → formula-W4OL33YQ.js} +4 -4
  47. package/dist/{image-ocr-OC3TCXMV.cjs → image-ocr-BELHEWPX.cjs} +17 -17
  48. package/dist/{image-ocr-OC3TCXMV.cjs.map → image-ocr-BELHEWPX.cjs.map} +1 -1
  49. package/dist/{image-ocr-HYAKWJGE.js → image-ocr-NSQ34Y6T.js} +9 -9
  50. package/dist/{image-ocr-BAHDLDV5.js → image-ocr-T72HMX2W.js} +6 -6
  51. package/dist/index.cjs +453 -406
  52. package/dist/index.cjs.map +1 -1
  53. package/dist/index.js +54 -7
  54. package/dist/index.js.map +1 -1
  55. package/dist/mcp.js +22 -22
  56. package/dist/{model-bundle-23WBSECG.js → model-bundle-34T2LJB4.js} +5 -5
  57. package/dist/{models-NRZQY45P.js → models-TQH5EM6V.js} +5 -5
  58. package/dist/{parse-worker-v2-DPNXGJ73.js → parse-worker-v2-YEYLILGJ.js} +12 -12
  59. package/dist/{parser-XNOLC3MZ.js → parser-E6BG3ECD.js} +72 -12
  60. package/dist/parser-E6BG3ECD.js.map +1 -0
  61. package/dist/{parser-OKAQRZKM.cjs → parser-OAXCXVQ4.cjs} +327 -267
  62. package/dist/parser-OAXCXVQ4.cjs.map +1 -0
  63. package/dist/{parser-FNUQW2F3.js → parser-SJHCBL7T.js} +75 -15
  64. package/dist/parser-SJHCBL7T.js.map +1 -0
  65. package/dist/{pdf-ocr-FAGA3O6B.js → pdf-ocr-LGPSJM22.js} +6 -6
  66. package/dist/pdf-ocr-RKXDY3ZA.cjs +31 -0
  67. package/dist/{pdf-ocr-6UXBIQE6.cjs.map → pdf-ocr-RKXDY3ZA.cjs.map} +1 -1
  68. package/dist/{pdf-ocr-N5LYC5LA.js → pdf-ocr-T5ASSUKK.js} +9 -9
  69. package/dist/{profile-io-HC6FMYX4.js → profile-io-KMCAFTMG.js} +3 -3
  70. package/dist/{rasterize-QLTROEV2.js → rasterize-M52AKY7R.js} +3 -3
  71. package/dist/{redact-doc-V4KMM2QV.js → redact-doc-SWJC27LL.js} +11 -11
  72. package/dist/{render-V4S3QLTR.js → render-45AB5YZR.js} +7 -7
  73. package/dist/seal-7KWG6VHS.js +10 -0
  74. package/dist/{setup-HU7ZOQNM.js → setup-5PBMUI6M.js} +3 -3
  75. package/dist/visual-OMJNXLNZ.js +21 -0
  76. package/dist/{watch-NPIZ6DSJ.js → watch-QOGKV52T.js} +12 -12
  77. package/package.json +1 -1
  78. package/dist/chunk-GVBQVXXB.js.map +0 -1
  79. package/dist/chunk-L6N4OMKR.js.map +0 -1
  80. package/dist/chunk-MED2MR6O.cjs.map +0 -1
  81. package/dist/chunk-QFJCEHY7.js.map +0 -1
  82. package/dist/chunks-MPOOHZVO.js +0 -10
  83. package/dist/parser-FNUQW2F3.js.map +0 -1
  84. package/dist/parser-OKAQRZKM.cjs.map +0 -1
  85. package/dist/parser-XNOLC3MZ.js.map +0 -1
  86. package/dist/pdf-ocr-6UXBIQE6.cjs +0 -31
  87. package/dist/seal-MQ5TB5YZ.js +0 -10
  88. package/dist/visual-RLIFC4XC.js +0 -21
  89. /package/dist/{-C437ZARA.js.map → -AOWV7MNY.js.map} +0 -0
  90. /package/dist/{chunk-UMNKY2EZ.js.map → chunk-24YLYR6Q.js.map} +0 -0
  91. /package/dist/{chunk-GFQIKYBV.js.map → chunk-3ANXRVI2.js.map} +0 -0
  92. /package/dist/{chunk-CNMUT5YW.js.map → chunk-3H2IEU4V.js.map} +0 -0
  93. /package/dist/{chunk-56GBOIOE.js.map → chunk-6LIBF2ZB.js.map} +0 -0
  94. /package/dist/{chunk-2X64TI7I.js.map → chunk-6QBBGZST.js.map} +0 -0
  95. /package/dist/{chunk-FPUBEM3F.js.map → chunk-7XITVUAK.js.map} +0 -0
  96. /package/dist/{chunk-S4KQUVBV.js.map → chunk-AXX5AQT4.js.map} +0 -0
  97. /package/dist/{chunk-U3TZVR7A.js.map → chunk-BS2XWGT5.js.map} +0 -0
  98. /package/dist/{chunk-4BJZGXNM.js.map → chunk-DKJ2RNDG.js.map} +0 -0
  99. /package/dist/{chunk-IRP6QS3K.js.map → chunk-FDFXL7VJ.js.map} +0 -0
  100. /package/dist/{chunk-YOFKJ7IM.js.map → chunk-IRNWAHHZ.js.map} +0 -0
  101. /package/dist/{chunk-AXR7OKQY.js.map → chunk-KBGNPGVY.js.map} +0 -0
  102. /package/dist/{chunk-UV2G6XFA.js.map → chunk-M2X766AY.js.map} +0 -0
  103. /package/dist/{chunk-YTEMFVZB.js.map → chunk-MEIQ476H.js.map} +0 -0
  104. /package/dist/{chunk-4GCS7WJJ.js.map → chunk-O5E25RHU.js.map} +0 -0
  105. /package/dist/{chunk-NGDMJICC.js.map → chunk-OIF5HRVP.js.map} +0 -0
  106. /package/dist/{chunk-3LJ6QO53.js.map → chunk-SKRWKVVW.js.map} +0 -0
  107. /package/dist/{chunk-VUC4JJUM.js.map → chunk-UCLDUUBX.js.map} +0 -0
  108. /package/dist/{chunk-L6PFPBTK.js.map → chunk-VJCQOSMT.js.map} +0 -0
  109. /package/dist/{chunk-DQXP3ELP.js.map → chunk-X45Q7EAC.js.map} +0 -0
  110. /package/dist/{chunks-MPOOHZVO.js.map → chunks-7KXTS7IV.js.map} +0 -0
  111. /package/dist/{formula-HUENRCPJ.js.map → formula-C26FMMGO.js.map} +0 -0
  112. /package/dist/{formula-43QBPAL5.js.map → formula-W4OL33YQ.js.map} +0 -0
  113. /package/dist/{image-ocr-HYAKWJGE.js.map → image-ocr-NSQ34Y6T.js.map} +0 -0
  114. /package/dist/{image-ocr-BAHDLDV5.js.map → image-ocr-T72HMX2W.js.map} +0 -0
  115. /package/dist/{model-bundle-23WBSECG.js.map → model-bundle-34T2LJB4.js.map} +0 -0
  116. /package/dist/{models-NRZQY45P.js.map → models-TQH5EM6V.js.map} +0 -0
  117. /package/dist/{parse-worker-v2-DPNXGJ73.js.map → parse-worker-v2-YEYLILGJ.js.map} +0 -0
  118. /package/dist/{pdf-ocr-FAGA3O6B.js.map → pdf-ocr-LGPSJM22.js.map} +0 -0
  119. /package/dist/{pdf-ocr-N5LYC5LA.js.map → pdf-ocr-T5ASSUKK.js.map} +0 -0
  120. /package/dist/{profile-io-HC6FMYX4.js.map → profile-io-KMCAFTMG.js.map} +0 -0
  121. /package/dist/{rasterize-QLTROEV2.js.map → rasterize-M52AKY7R.js.map} +0 -0
  122. /package/dist/{redact-doc-V4KMM2QV.js.map → redact-doc-SWJC27LL.js.map} +0 -0
  123. /package/dist/{render-V4S3QLTR.js.map → render-45AB5YZR.js.map} +0 -0
  124. /package/dist/{seal-MQ5TB5YZ.js.map → seal-7KWG6VHS.js.map} +0 -0
  125. /package/dist/{setup-HU7ZOQNM.js.map → setup-5PBMUI6M.js.map} +0 -0
  126. /package/dist/{visual-RLIFC4XC.js.map → visual-OMJNXLNZ.js.map} +0 -0
  127. /package/dist/{watch-NPIZ6DSJ.js.map → watch-QOGKV52T.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  blocksToPages
4
- } from "./chunk-AXR7OKQY.js";
4
+ } from "./chunk-KBGNPGVY.js";
5
5
  import {
6
6
  encodePng
7
7
  } from "./chunk-VKVDMH7X.js";
@@ -62,7 +62,7 @@ import {
62
62
  stripAbsorbedRunningLines,
63
63
  trimTrailingEmptyTableCols,
64
64
  wrapJoiner
65
- } from "./chunk-3LJ6QO53.js";
65
+ } from "./chunk-SKRWKVVW.js";
66
66
  import {
67
67
  validateOcrOptions
68
68
  } from "./chunk-BHVOY6V4.js";
@@ -74,23 +74,23 @@ import {
74
74
  escapeLiteralTags,
75
75
  stripScriptTags,
76
76
  unframeLayoutTables
77
- } from "./chunk-GVBQVXXB.js";
77
+ } from "./chunk-4NQ4EZEE.js";
78
78
  import {
79
79
  WINGDINGS,
80
80
  assignTableIds,
81
81
  blocksToMarkdown,
82
82
  escapeLiteralDollar
83
- } from "./chunk-U3TZVR7A.js";
83
+ } from "./chunk-BS2XWGT5.js";
84
84
  import {
85
85
  ocrModelsCached,
86
86
  resolveOcrModels
87
- } from "./chunk-L6PFPBTK.js";
88
- import "./chunk-UV2G6XFA.js";
89
- import "./chunk-CNMUT5YW.js";
87
+ } from "./chunk-VJCQOSMT.js";
88
+ import "./chunk-M2X766AY.js";
89
+ import "./chunk-3H2IEU4V.js";
90
90
  import {
91
91
  KordocError,
92
92
  sanitizeHref
93
- } from "./chunk-4BJZGXNM.js";
93
+ } from "./chunk-DKJ2RNDG.js";
94
94
 
95
95
  // src/pdf/image-extract.ts
96
96
  import { createHash } from "crypto";
@@ -621,6 +621,61 @@ function ocrVectorOps(opList, paths) {
621
621
  // src/pdf/split-row-pattern.ts
622
622
  var textOf = (cell) => cell.text.replace(/<\/?u>|~~/g, "").trim();
623
623
  var plain = (cell) => !cell.blocks?.length && !IMAGE_CELLS.has(cell);
624
+ function matchesIndependentRowPair(table, owner, first) {
625
+ const norm = (cell) => textOf(cell).replace(/\s+/g, "");
626
+ const pairs = [];
627
+ for (let c = 0; c < table.cols; ) {
628
+ const u = owner[first - 1]?.[c], d = owner[first]?.[c];
629
+ if (u && u === d) {
630
+ c = u.c + u.cs;
631
+ continue;
632
+ }
633
+ const upper = u ? table.cells[u.r][u.c] : void 0, lower = d ? table.cells[d.r][d.c] : void 0;
634
+ if (!upper?.text.trim() && !lower?.text.trim()) {
635
+ c++;
636
+ continue;
637
+ }
638
+ if (!u || !d || !upper || !lower || u.r !== first - 1 || d.r !== first || u.c !== c || d.c !== c || u.rs !== 1 || d.rs !== 1 || u.cs !== d.cs || !plain(upper) || !plain(lower) || !norm(upper) || !norm(lower)) return false;
639
+ pairs.push({ c, cs: u.cs, upper: norm(upper), lower: norm(lower) });
640
+ c += u.cs;
641
+ }
642
+ if (pairs.length < 2 || pairs.every((p) => p.upper === p.lower)) return false;
643
+ return table.cells.some((_, r) => {
644
+ if (r + 1 >= table.rows || r + 1 >= first - 1 && r <= first) return false;
645
+ return pairs.every((p) => [p.upper, p.lower].every((text, i) => {
646
+ const a = owner[r + i]?.[p.c], cell = table.cells[r + i]?.[p.c];
647
+ return a?.r === r + i && a.c === p.c && a.rs === 1 && a.cs === p.cs && !!cell && plain(cell) && norm(cell) === text;
648
+ }));
649
+ });
650
+ }
651
+ function matchesCompleteContextRow(table, owner, first) {
652
+ const norm = (s) => s.replace(/\s+/g, "");
653
+ const context = [];
654
+ let value;
655
+ for (let c = 0; c < table.cols; ) {
656
+ const u = owner[first - 1]?.[c], d = owner[first]?.[c];
657
+ if (u && u === d) {
658
+ const cell = table.cells[u.r][u.c];
659
+ if (u.r === first - 1 && u.rs === 2 && plain(cell) && textOf(cell)) context.push({ c, cs: u.cs, text: norm(textOf(cell)) });
660
+ c = u.c + u.cs;
661
+ continue;
662
+ }
663
+ const upper = u ? table.cells[u.r][u.c] : void 0, lower = d ? table.cells[d.r][d.c] : void 0;
664
+ if (!upper?.text.trim() && !lower?.text.trim()) {
665
+ c++;
666
+ continue;
667
+ }
668
+ if (value || !u || !d || !upper || !lower || u.r !== first - 1 || d.r !== first || u.c !== c || d.c !== c || u.rs !== 1 || d.rs !== 1 || u.cs !== d.cs || !plain(upper) || !plain(lower) || !textOf(upper) || !textOf(lower)) return false;
669
+ value = { c, cs: u.cs, text: norm(textOf(upper) + textOf(lower)) };
670
+ c += u.cs;
671
+ }
672
+ if (!value || !context.length) return false;
673
+ const proof = [...context, value];
674
+ return table.cells.some((row, r) => r !== first - 1 && r !== first && proof.every((p) => {
675
+ const a = owner[r]?.[p.c], cell = row[p.c];
676
+ return a?.r === r && a.c === p.c && a.rs === 1 && a.cs === p.cs && !!cell && plain(cell) && norm(textOf(cell)) === p.text;
677
+ }));
678
+ }
624
679
  function matchesCompleteSiblingRow(table, owner, first) {
625
680
  const pairs = [];
626
681
  for (let c = 0; c < table.cols; ) {
@@ -1338,6 +1393,7 @@ function mergeSplitRow(table, owner, first, colXs, textOnly = false, cut = NO_CU
1338
1393
  return a !== null && b === a + 1;
1339
1394
  })) return false;
1340
1395
  if (cut.ruled && hasNumberedRowSequence(table, owner, first)) return false;
1396
+ if (cut.ruled && matchesIndependentRowPair(table, owner, first)) return false;
1341
1397
  const contentPairs = pairs.filter(([u, d]) => hasContent(u.cell) && hasContent(d.cell));
1342
1398
  const carriedSplit = !textOnly && carried && !newCell && (contentPairs.length <= 1 || contentPairs.every(([, d]) => d.rs > 1) || !cut.ruled && contentPairs.some(([u, d]) => wordOverflows(cell(u), cell(d), colXs[u.c], colXs[u.c + u.cs])));
1343
1399
  if (!carriedSplit) {
@@ -1349,7 +1405,7 @@ function mergeSplitRow(table, owner, first, colXs, textOnly = false, cut = NO_CU
1349
1405
  if (!(cut.open && !newCell)) {
1350
1406
  if (pairs.some((p) => p[1].rs > 1 && !flows(p))) return false;
1351
1407
  const one = pairs.filter(([, d]) => d.rs === 1);
1352
- if (!matchesCompleteSiblingRow(table, owner, first) && !matchesCompleteRubricRow(table, owner, first) && !outlineOnly(pairs, cell) && !one.some(flows) && (cut.list === "none" || !one.some(([u, d]) => listContinues(cell(u), cell(d), cut.list === "multi")))) return false;
1408
+ if (!matchesCompleteSiblingRow(table, owner, first) && !matchesCompleteRubricRow(table, owner, first) && !(cut.ruled && matchesCompleteContextRow(table, owner, first)) && !outlineOnly(pairs, cell) && !one.some(flows) && (cut.list === "none" || !one.some(([u, d]) => listContinues(cell(u), cell(d), cut.list === "multi")))) return false;
1353
1409
  }
1354
1410
  }
1355
1411
  for (const [u, d] of pairs) {
@@ -1737,7 +1793,10 @@ function mergeContinuedCells(blocks, pageHeights) {
1737
1793
  for (let j = blocks.length - 1; j > 0; j--) {
1738
1794
  const part = blocks[j];
1739
1795
  const from = part.table ? CONT_PARTS.get(part.table) : void 0;
1740
- if (!from || !part.table) continue;
1796
+ if (!from || !part.table) {
1797
+ unwrapContinuedTable(blocks, j, pageHeights, true);
1798
+ continue;
1799
+ }
1741
1800
  let i = j - 1;
1742
1801
  while (i >= 0 && blocks[i].type !== "table") i--;
1743
1802
  const prev = blocks[i];
@@ -1764,7 +1823,7 @@ function mergeContinuedCells(blocks, pageHeights) {
1764
1823
  if (cell.blocks) mergeCrossPageTables(cell.blocks, pageHeights);
1765
1824
  }
1766
1825
  }
1767
- function unwrapContinuedTable(blocks, at, pageHeights) {
1826
+ function unwrapContinuedTable(blocks, at, pageHeights, splitOnly = false) {
1768
1827
  const prev = blocks[at - 1], frame = blocks[at];
1769
1828
  if (!prev?.table || !frame?.table || frame.table.rows !== 1 || frame.table.cols !== 1 || !CLIP_TABLES.has(frame.table)) return;
1770
1829
  const inner = frame.table.cells[0]?.[0]?.blocks;
@@ -1774,6 +1833,7 @@ function unwrapContinuedTable(blocks, at, pageHeights) {
1774
1833
  if (!px || !nx || px.length !== nx.length || px.some((x, i) => Math.abs(x - nx[i]) > COL_MATCH_TOL)) return;
1775
1834
  const ph = pageHeights?.get(prev.pageNumber), nh = pageHeights?.get(next.pageNumber);
1776
1835
  if (!ph || !nh || prev.bbox.y > ph * CONTINUED_TABLE_PAGE_BAND || next.bbox.y + next.bbox.height < nh * (1 - CONTINUED_TABLE_PAGE_BAND)) return;
1836
+ if (splitOnly && (inner.length !== 1 || !joinSplitParts(prev.table, px, next.table, nx, 0, prev.bbox.y)?.split)) return;
1777
1837
  blocks.splice(at, 1, ...inner);
1778
1838
  }
1779
1839
  function fillNestedContinuation(blocks, at) {
@@ -3373,7 +3433,7 @@ function mergeLinkRuns(markdown) {
3373
3433
 
3374
3434
  // src/pdf/formula-ocr.ts
3375
3435
  async function applyFormulaOcr(buffer, blocks, pageFilter, effectivePageCount, warnings, _onProgress) {
3376
- const formulaMod = await import("./formula-43QBPAL5.js");
3436
+ const formulaMod = await import("./formula-W4OL33YQ.js");
3377
3437
  const { FormulaPipeline, ensureFormulaModels } = formulaMod;
3378
3438
  await ensureFormulaModels((p) => {
3379
3439
  if (p.phase === "download" && p.total) {
@@ -3799,10 +3859,10 @@ async function parsePdfDocument(buffer, options) {
3799
3859
  }
3800
3860
  if (targets.size > 0) {
3801
3861
  try {
3802
- const { runPdfOcr } = await import("./pdf-ocr-N5LYC5LA.js");
3862
+ const { runPdfOcr } = await import("./pdf-ocr-T5ASSUKK.js");
3803
3863
  const mode = typeof options?.ocr === "function" ? options.ocr : "builtin";
3804
3864
  const regionPages = new Map([...ocrRegions].filter(([p]) => options?.ocr !== "force" && !isImageBased && !pageQuality.find((q) => q.page === p)?.needsOcr));
3805
- const { builtinOcrConfig } = await import("./pdf-ocr-N5LYC5LA.js");
3865
+ const { builtinOcrConfig } = await import("./pdf-ocr-T5ASSUKK.js");
3806
3866
  const ocrPageBlocks = await runPdfOcr(ocrBuffer, targets, mode, warnings, options?.onProgress, options?.tables !== false, vectorPageOps, regionPages, builtinOcrConfig(options), ocrLinesOut);
3807
3867
  for (const obs of ocrPageBlocks.values()) stripScriptTags({ blocks: obs });
3808
3868
  if (ocrPageBlocks.size > 0) {
@@ -4047,4 +4107,4 @@ export {
4047
4107
  parsePdfDocument,
4048
4108
  removeHeaderFooterBlocks
4049
4109
  };
4050
- //# sourceMappingURL=parser-FNUQW2F3.js.map
4110
+ //# sourceMappingURL=parser-SJHCBL7T.js.map