kordoc 4.25.11 → 4.25.13
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.
- package/README.md +3 -3
- package/dist/{chunk-5XGYWAZQ.js → chunk-32WLCR37.js} +2 -2
- package/dist/{chunk-YMMMRJCT.js → chunk-42FWJVN5.js} +4 -4
- package/dist/{chunk-QCUYNOP5.js → chunk-4J2DUBJJ.js} +2 -2
- package/dist/{chunk-U6FMV4FC.js → chunk-6CHKXHKR.js} +6 -6
- package/dist/{chunk-FNUKGSZ7.js → chunk-AII6CXYG.js} +4 -2
- package/dist/{chunk-FNUKGSZ7.js.map → chunk-AII6CXYG.js.map} +2 -2
- package/dist/{chunk-JWCSKPQV.js → chunk-BPY62DTT.js} +2 -2
- package/dist/{chunk-BV7UNFZB.js → chunk-C4TGNDQY.js} +18 -18
- package/dist/{chunk-D6COQDDG.js → chunk-CGXJE6Y5.js} +5 -5
- package/dist/chunk-DQDATFAC.js +11544 -0
- package/dist/chunk-DQDATFAC.js.map +1 -0
- package/dist/{chunk-MGQN2FF7.js → chunk-I52IXA2S.js} +2 -2
- package/dist/{chunk-RL55T7WN.js → chunk-KRP74WIV.js} +8 -8
- package/dist/{chunk-WTR27MWJ.js → chunk-MQAUBK77.js} +2 -2
- package/dist/{chunk-MBQOLEH4.js → chunk-N2EOYLZX.js} +10 -10
- package/dist/{chunk-55A447ZO.js → chunk-NEVZP6O3.js} +2 -2
- package/dist/{chunk-C7TBGCBG.js → chunk-NL4434I2.js} +2 -2
- package/dist/{chunk-26SWJ36T.js → chunk-NLZ44M5L.js} +6 -6
- package/dist/{chunk-BSTHPX7I.js → chunk-NQXM6MED.js} +2 -2
- package/dist/{chunk-QVZ22GJL.js → chunk-QVZEBMYW.js} +2 -2
- package/dist/{chunk-UZYND5YL.js → chunk-QYS4V2OA.js} +4 -4
- package/dist/{chunk-2PDA3G4N.js → chunk-RQPM72FM.js} +2 -2
- package/dist/{chunk-OGLPSYMT.js → chunk-SKIWLEZA.js} +3 -3
- package/dist/{chunk-POMLBQYN.js → chunk-SPFCULY3.js} +2 -2
- package/dist/{chunk-LEXLIQPZ.js → chunk-TSEJQZ7C.js} +2 -2
- package/dist/{chunk-E3G6CWCK.js → chunk-VCLEQ7GS.js} +3 -3
- package/dist/{chunk-A6IVC2QY.js → chunk-YSOBUGNT.js} +6 -6
- package/dist/{chunk-76AGDTU4.js → chunk-ZRXXCZRZ.js} +2 -2
- package/dist/chunks-SIAIY4VX.js +10 -0
- package/dist/cli.js +37 -37
- package/dist/{formula-FDVCTHUW.js → formula-ZM2EYXWB.js} +4 -4
- package/dist/{generator-7BL4LOSI.js → generator-AUA3RJD6.js} +7 -7
- package/dist/{hancom-JLKEVVHZ.js → hancom-M6DIM23B.js} +2 -2
- package/dist/{image-ocr-TERE3BVW.js → image-ocr-LZH6Q32C.js} +11 -11
- package/dist/index.cjs +10 -5
- package/dist/index.cjs.map +1 -7
- package/dist/index.js +21 -21
- package/dist/mcp.js +33 -33
- package/dist/memo-W2SNZRX5.js +15 -0
- package/dist/{model-bundle-W475P46B.js → model-bundle-C4A7JHYJ.js} +5 -5
- package/dist/{models-355HCTHN.js → models-K5FUWGWQ.js} +5 -5
- package/dist/{page-images-6V4ITZOV.js → page-images-O6SF454R.js} +2 -2
- package/dist/{parse-worker-v2-FRPCYNFL.js → parse-worker-v2-Y7SF2Q6I.js} +23 -23
- package/dist/{parser-HUFDUGGR.js → parser-ZHK66LCI.js} +20 -17
- package/dist/{parser-HUFDUGGR.js.map → parser-ZHK66LCI.js.map} +2 -2
- package/dist/{pdf-ocr-N3Y2U7RW.js → pdf-ocr-IU2UUBMJ.js} +9 -9
- package/dist/{profile-io-NP3WBLKY.js → profile-io-ZF7UPT6V.js} +3 -3
- package/dist/{rasterize-BN5LON4H.js → rasterize-QO3NBE33.js} +3 -3
- package/dist/{redact-doc-UDJAVQJ2.js → redact-doc-KIA2A3RM.js} +22 -22
- package/dist/{render-SY6FTYPO.js → render-7UZDAEZ7.js} +10 -10
- package/dist/{rewrite-fallback-LBP6FTJX.js → rewrite-fallback-YO6ZVEAI.js} +12 -12
- package/dist/seal-W2BHUQA4.js +14 -0
- package/dist/{setup-G7IX4KU7.js → setup-X5GNUS4Q.js} +3 -3
- package/dist/{to-hwpx-MEKEYN65.js → to-hwpx-TE7TLCR5.js} +7 -7
- package/dist/visual-KFHP6RKA.js +42 -0
- package/dist/{watch-FZTAPLDJ.js → watch-FMCC23HZ.js} +22 -22
- package/package.json +1 -1
- package/dist/chunk-VOWOPWLJ.js +0 -11544
- package/dist/chunk-VOWOPWLJ.js.map +0 -7
- package/dist/chunks-2HYR36MC.js +0 -10
- package/dist/memo-622OKP73.js +0 -15
- package/dist/seal-5GEIRBNY.js +0 -14
- package/dist/visual-CYKZQ5AK.js +0 -42
- /package/dist/{chunk-5XGYWAZQ.js.map → chunk-32WLCR37.js.map} +0 -0
- /package/dist/{chunk-YMMMRJCT.js.map → chunk-42FWJVN5.js.map} +0 -0
- /package/dist/{chunk-QCUYNOP5.js.map → chunk-4J2DUBJJ.js.map} +0 -0
- /package/dist/{chunk-U6FMV4FC.js.map → chunk-6CHKXHKR.js.map} +0 -0
- /package/dist/{chunk-JWCSKPQV.js.map → chunk-BPY62DTT.js.map} +0 -0
- /package/dist/{chunk-BV7UNFZB.js.map → chunk-C4TGNDQY.js.map} +0 -0
- /package/dist/{chunk-D6COQDDG.js.map → chunk-CGXJE6Y5.js.map} +0 -0
- /package/dist/{chunk-MGQN2FF7.js.map → chunk-I52IXA2S.js.map} +0 -0
- /package/dist/{chunk-RL55T7WN.js.map → chunk-KRP74WIV.js.map} +0 -0
- /package/dist/{chunk-WTR27MWJ.js.map → chunk-MQAUBK77.js.map} +0 -0
- /package/dist/{chunk-MBQOLEH4.js.map → chunk-N2EOYLZX.js.map} +0 -0
- /package/dist/{chunk-55A447ZO.js.map → chunk-NEVZP6O3.js.map} +0 -0
- /package/dist/{chunk-C7TBGCBG.js.map → chunk-NL4434I2.js.map} +0 -0
- /package/dist/{chunk-26SWJ36T.js.map → chunk-NLZ44M5L.js.map} +0 -0
- /package/dist/{chunk-BSTHPX7I.js.map → chunk-NQXM6MED.js.map} +0 -0
- /package/dist/{chunk-QVZ22GJL.js.map → chunk-QVZEBMYW.js.map} +0 -0
- /package/dist/{chunk-UZYND5YL.js.map → chunk-QYS4V2OA.js.map} +0 -0
- /package/dist/{chunk-2PDA3G4N.js.map → chunk-RQPM72FM.js.map} +0 -0
- /package/dist/{chunk-OGLPSYMT.js.map → chunk-SKIWLEZA.js.map} +0 -0
- /package/dist/{chunk-POMLBQYN.js.map → chunk-SPFCULY3.js.map} +0 -0
- /package/dist/{chunk-LEXLIQPZ.js.map → chunk-TSEJQZ7C.js.map} +0 -0
- /package/dist/{chunk-E3G6CWCK.js.map → chunk-VCLEQ7GS.js.map} +0 -0
- /package/dist/{chunk-A6IVC2QY.js.map → chunk-YSOBUGNT.js.map} +0 -0
- /package/dist/{chunk-76AGDTU4.js.map → chunk-ZRXXCZRZ.js.map} +0 -0
- /package/dist/{chunks-2HYR36MC.js.map → chunks-SIAIY4VX.js.map} +0 -0
- /package/dist/{formula-FDVCTHUW.js.map → formula-ZM2EYXWB.js.map} +0 -0
- /package/dist/{generator-7BL4LOSI.js.map → generator-AUA3RJD6.js.map} +0 -0
- /package/dist/{hancom-JLKEVVHZ.js.map → hancom-M6DIM23B.js.map} +0 -0
- /package/dist/{image-ocr-TERE3BVW.js.map → image-ocr-LZH6Q32C.js.map} +0 -0
- /package/dist/{memo-622OKP73.js.map → memo-W2SNZRX5.js.map} +0 -0
- /package/dist/{model-bundle-W475P46B.js.map → model-bundle-C4A7JHYJ.js.map} +0 -0
- /package/dist/{models-355HCTHN.js.map → models-K5FUWGWQ.js.map} +0 -0
- /package/dist/{page-images-6V4ITZOV.js.map → page-images-O6SF454R.js.map} +0 -0
- /package/dist/{parse-worker-v2-FRPCYNFL.js.map → parse-worker-v2-Y7SF2Q6I.js.map} +0 -0
- /package/dist/{pdf-ocr-N3Y2U7RW.js.map → pdf-ocr-IU2UUBMJ.js.map} +0 -0
- /package/dist/{profile-io-NP3WBLKY.js.map → profile-io-ZF7UPT6V.js.map} +0 -0
- /package/dist/{rasterize-BN5LON4H.js.map → rasterize-QO3NBE33.js.map} +0 -0
- /package/dist/{redact-doc-UDJAVQJ2.js.map → redact-doc-KIA2A3RM.js.map} +0 -0
- /package/dist/{render-SY6FTYPO.js.map → render-7UZDAEZ7.js.map} +0 -0
- /package/dist/{rewrite-fallback-LBP6FTJX.js.map → rewrite-fallback-YO6ZVEAI.js.map} +0 -0
- /package/dist/{seal-5GEIRBNY.js.map → seal-W2BHUQA4.js.map} +0 -0
- /package/dist/{setup-G7IX4KU7.js.map → setup-X5GNUS4Q.js.map} +0 -0
- /package/dist/{to-hwpx-MEKEYN65.js.map → to-hwpx-TE7TLCR5.js.map} +0 -0
- /package/dist/{visual-CYKZQ5AK.js.map → visual-KFHP6RKA.js.map} +0 -0
- /package/dist/{watch-FZTAPLDJ.js.map → watch-FMCC23HZ.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/utils.ts
|
|
2
2
|
import { format } from "util";
|
|
3
|
-
var VERSION = true ? "4.25.
|
|
3
|
+
var VERSION = true ? "4.25.13" : "0.0.0-dev";
|
|
4
4
|
function toArrayBuffer(buf) {
|
|
5
5
|
if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {
|
|
6
6
|
return buf.buffer;
|
|
@@ -195,4 +195,4 @@ export {
|
|
|
195
195
|
classifyError,
|
|
196
196
|
partExtension
|
|
197
197
|
};
|
|
198
|
-
//# sourceMappingURL=chunk-
|
|
198
|
+
//# sourceMappingURL=chunk-BPY62DTT.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extractRenderedRegions,
|
|
3
3
|
renderDocumentToScene
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KRP74WIV.js";
|
|
5
5
|
import {
|
|
6
6
|
EV,
|
|
7
7
|
blocksToPages,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
restoreUnmappedGlyphs,
|
|
18
18
|
spaceMappedDots,
|
|
19
19
|
wmfBitmap
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AII6CXYG.js";
|
|
21
21
|
import {
|
|
22
22
|
applyCellEdit,
|
|
23
23
|
buildOrigUnits,
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
resolveParagraphMappings,
|
|
31
31
|
resolveSectionEntryNames,
|
|
32
32
|
stripCellTokens
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-N2EOYLZX.js";
|
|
34
34
|
import {
|
|
35
35
|
dcxPages,
|
|
36
36
|
hasLibheif,
|
|
37
37
|
heicToRgba,
|
|
38
38
|
pcxToRgba
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-32WLCR37.js";
|
|
40
40
|
import {
|
|
41
41
|
WEBP_OPTIONS,
|
|
42
42
|
flushHeifCache,
|
|
@@ -69,10 +69,10 @@ import {
|
|
|
69
69
|
summarize,
|
|
70
70
|
topLevelParagraphs,
|
|
71
71
|
usesV5Engine
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-6CHKXHKR.js";
|
|
73
73
|
import {
|
|
74
74
|
patchZipEntries
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-I52IXA2S.js";
|
|
76
76
|
import {
|
|
77
77
|
ANNOTATION_BLANK_RE,
|
|
78
78
|
ValueCursor,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
rawTextContent,
|
|
112
112
|
readZipEntry,
|
|
113
113
|
warnInto
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-QVZEBMYW.js";
|
|
115
115
|
import {
|
|
116
116
|
comResultToParseResult,
|
|
117
117
|
extractTextViaCom,
|
|
@@ -128,7 +128,7 @@ import {
|
|
|
128
128
|
memosMarkdown,
|
|
129
129
|
parseHwp5Document,
|
|
130
130
|
resolveImageBlocks
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-CGXJE6Y5.js";
|
|
132
132
|
import {
|
|
133
133
|
MAX_PIXELS,
|
|
134
134
|
bmpToPng,
|
|
@@ -166,7 +166,7 @@ import {
|
|
|
166
166
|
stripScriptTags,
|
|
167
167
|
tidyScriptTags,
|
|
168
168
|
wrapScript
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-NL4434I2.js";
|
|
170
170
|
import {
|
|
171
171
|
MAX_COLS,
|
|
172
172
|
MAX_ROWS,
|
|
@@ -177,7 +177,7 @@ import {
|
|
|
177
177
|
flattenLayoutTables,
|
|
178
178
|
hasStructuredCellContent,
|
|
179
179
|
sanitizeText
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-MQAUBK77.js";
|
|
181
181
|
import {
|
|
182
182
|
hangulAmount,
|
|
183
183
|
mapPuaText
|
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
import {
|
|
189
189
|
ensureModelsIn,
|
|
190
190
|
getModelsDir
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-NEVZP6O3.js";
|
|
192
192
|
import {
|
|
193
193
|
BARE_URL,
|
|
194
194
|
KordocError,
|
|
@@ -206,7 +206,7 @@ import {
|
|
|
206
206
|
toArrayBuffer,
|
|
207
207
|
unescapeHtml,
|
|
208
208
|
unzipLimitBytes
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-BPY62DTT.js";
|
|
210
210
|
|
|
211
211
|
// src/table/visual.ts
|
|
212
212
|
import { readFile as readFile4 } from "node:fs/promises";
|
|
@@ -16984,7 +16984,7 @@ var MIN_SIDE = 24;
|
|
|
16984
16984
|
async function ocrEmbeddedImages(blocks, options, warnings) {
|
|
16985
16985
|
const ocr = options?.ocr;
|
|
16986
16986
|
if (ocr !== true && ocr !== "force" && typeof ocr !== "function") return false;
|
|
16987
|
-
const { parseImageDocument } = await import("./image-ocr-
|
|
16987
|
+
const { parseImageDocument } = await import("./image-ocr-LZH6Q32C.js");
|
|
16988
16988
|
let inserted = false, unreadable = 0;
|
|
16989
16989
|
let failed = null;
|
|
16990
16990
|
const walk = async (list, depth) => {
|
|
@@ -21342,8 +21342,8 @@ var MAX_MULTIPAGE_PIXELS = 1e9;
|
|
|
21342
21342
|
var MIN_PAGE_PIXELS = 1e6;
|
|
21343
21343
|
async function parseImage(buffer, options) {
|
|
21344
21344
|
try {
|
|
21345
|
-
const { parseImageDocument, imagePageCount, imagePage, imagePagePixels, decodeToRgba } = await import("./image-ocr-
|
|
21346
|
-
const pageRasters = options?.pageImages ? new (await import("./page-images-
|
|
21345
|
+
const { parseImageDocument, imagePageCount, imagePage, imagePagePixels, decodeToRgba } = await import("./image-ocr-LZH6Q32C.js");
|
|
21346
|
+
const pageRasters = options?.pageImages ? new (await import("./page-images-O6SF454R.js")).PageImageSink(options.pageImages) : null;
|
|
21347
21347
|
const pageCount = await imagePageCount(buffer);
|
|
21348
21348
|
const wanted = pageCount > 1 && options?.pages ? parsePageRange(options.pages, pageCount) : null;
|
|
21349
21349
|
const blocks = [], warnings = [], lines = [], images = [];
|
|
@@ -21450,7 +21450,7 @@ async function parseHwp(buffer, options) {
|
|
|
21450
21450
|
async function parsePdf(buffer, options) {
|
|
21451
21451
|
let parsePdfDocument;
|
|
21452
21452
|
try {
|
|
21453
|
-
const mod = await import("./parser-
|
|
21453
|
+
const mod = await import("./parser-ZHK66LCI.js");
|
|
21454
21454
|
parsePdfDocument = mod.parsePdfDocument;
|
|
21455
21455
|
} catch (err) {
|
|
21456
21456
|
return { success: false, fileType: "pdf", error: sanitizeError(err), code: classifyError(err) };
|
|
@@ -21527,7 +21527,7 @@ async function fillForm(input, values, outputFormat = "markdown") {
|
|
|
21527
21527
|
throw new Error(`hwpx-preserve 포맷은 HWPX·HWP 5.x 입력만 지원합니다 (감지된 포맷: ${zipFormat})`);
|
|
21528
21528
|
}
|
|
21529
21529
|
} else if (format2 === "hwp" && detectOle2Format(buffer) === "hwp") {
|
|
21530
|
-
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-
|
|
21530
|
+
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-TE7TLCR5.js");
|
|
21531
21531
|
const hwpx = await hwpToHwpx2(new Uint8Array(buffer));
|
|
21532
21532
|
buffer = hwpx.buffer.slice(hwpx.byteOffset, hwpx.byteOffset + hwpx.byteLength);
|
|
21533
21533
|
} else {
|
|
@@ -21683,4 +21683,4 @@ export {
|
|
|
21683
21683
|
parseHwpml,
|
|
21684
21684
|
fillForm
|
|
21685
21685
|
};
|
|
21686
|
-
//# sourceMappingURL=chunk-
|
|
21686
|
+
//# sourceMappingURL=chunk-C4TGNDQY.js.map
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
parseFileHeader,
|
|
35
35
|
readRecords,
|
|
36
36
|
resolveLiteralLt
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-RQPM72FM.js";
|
|
38
38
|
import {
|
|
39
39
|
TOC_ENTRY_BLOCKS,
|
|
40
40
|
takeTocLeaders
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
HEADING_RATIO_H3,
|
|
53
53
|
tidyScriptTags,
|
|
54
54
|
unframeLayoutTables
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-NL4434I2.js";
|
|
56
56
|
import {
|
|
57
57
|
MAX_COLS,
|
|
58
58
|
MAX_ROWS,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
flattenLayoutTables,
|
|
66
66
|
markNonLayoutTable,
|
|
67
67
|
sanitizeText
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-MQAUBK77.js";
|
|
69
69
|
import {
|
|
70
70
|
circledHangul,
|
|
71
71
|
circledNumber,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
import {
|
|
77
77
|
KordocError,
|
|
78
78
|
sanitizeHref
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-BPY62DTT.js";
|
|
80
80
|
|
|
81
81
|
// src/memo-notes.ts
|
|
82
82
|
var squash = (s) => sanitizeText(s).replace(/\s+/g, "");
|
|
@@ -2758,4 +2758,4 @@ export {
|
|
|
2758
2758
|
parseHwp5Document,
|
|
2759
2759
|
extractHwp5MetadataOnly
|
|
2760
2760
|
};
|
|
2761
|
-
//# sourceMappingURL=chunk-
|
|
2761
|
+
//# sourceMappingURL=chunk-CGXJE6Y5.js.map
|