kordoc 4.24.64 → 4.24.65
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/{-QAZ44KKA.js → -3Q26OZHW.js} +21 -21
- package/dist/{chunk-36EJXOCF.js → chunk-27ZUZMQY.js} +5 -5
- package/dist/{chunk-34OGRWYW.js → chunk-3JHKWOVZ.js} +49 -5
- package/dist/{chunk-34OGRWYW.js.map → chunk-3JHKWOVZ.js.map} +1 -1
- package/dist/{chunk-OJKFBZPW.js → chunk-3Z7WJCP2.js} +2 -2
- package/dist/{chunk-T3JCWBOI.cjs → chunk-4T4Y2WRR.cjs} +2 -2
- package/dist/{chunk-T3JCWBOI.cjs.map → chunk-4T4Y2WRR.cjs.map} +1 -1
- package/dist/{chunk-MMZO2B5N.cjs → chunk-6J5RTSBG.cjs} +3 -3
- package/dist/{chunk-MMZO2B5N.cjs.map → chunk-6J5RTSBG.cjs.map} +1 -1
- package/dist/{chunk-COARY4DW.js → chunk-6R4M2LVY.js} +2 -2
- package/dist/{chunk-MEHJKEUZ.js → chunk-7DQI7BU6.js} +2 -2
- package/dist/{chunk-R7GE5HUE.js → chunk-7PTPUYYJ.js} +3 -3
- package/dist/{chunk-PZOKLEDR.js → chunk-ABA2Z4LT.js} +2 -2
- package/dist/{chunk-GOXFAAHN.js → chunk-AKYUE4JE.js} +2 -2
- package/dist/{chunk-EUNUDJXO.js → chunk-AX34AL6K.js} +2 -2
- package/dist/{chunk-72H52U6F.cjs → chunk-B4AKPVWA.cjs} +134 -90
- package/dist/{chunk-72H52U6F.cjs.map → chunk-B4AKPVWA.cjs.map} +1 -1
- package/dist/{chunk-FEFKONND.cjs → chunk-B4ZNG3G7.cjs} +25 -25
- package/dist/{chunk-FEFKONND.cjs.map → chunk-B4ZNG3G7.cjs.map} +1 -1
- package/dist/{chunk-ACDKOGKO.js → chunk-BPNJBWKQ.js} +15 -15
- package/dist/{chunk-PO2TQW2B.js → chunk-BRDRZHVC.js} +2 -2
- package/dist/{chunk-DFZIE6NM.js → chunk-BYTIJ226.js} +2 -2
- package/dist/{chunk-AZZKSDLD.js → chunk-CLI5IIY3.js} +2 -2
- package/dist/{chunk-XCPST2YL.js → chunk-DKSSS4ED.js} +2 -2
- package/dist/{chunk-CKA2X7FC.js → chunk-DQQ6C7WA.js} +2 -2
- package/dist/{chunk-IEOC3SKK.js → chunk-EG47QXJE.js} +5 -5
- package/dist/{chunk-X2XUGRV3.js → chunk-FTMDZ4Y5.js} +3 -3
- package/dist/{chunk-KVLIFFDJ.cjs → chunk-GITPHKYL.cjs} +8 -8
- package/dist/{chunk-KVLIFFDJ.cjs.map → chunk-GITPHKYL.cjs.map} +1 -1
- package/dist/{chunk-LJUESQWH.js → chunk-GZC4XIKW.js} +5 -5
- package/dist/{chunk-LNAOHM6K.js → chunk-I2HHHJF5.js} +2 -2
- package/dist/{chunk-4R6LAJCT.js → chunk-JW6PNIXI.js} +7 -7
- package/dist/{chunk-PTJDTKU3.js → chunk-KUAPGGQE.js} +6 -6
- package/dist/{chunk-HQSGKBH4.js → chunk-LXRBEPYC.js} +2 -2
- package/dist/{chunk-I4ON2NHU.js → chunk-MTUGM4ZK.js} +6 -6
- package/dist/{chunk-Q4AQE7TN.js → chunk-NBBT2EYG.js} +2 -2
- package/dist/{chunk-GDRQGXPC.js → chunk-NTMN5UKQ.js} +3 -3
- package/dist/{chunk-R5PEYGFS.js → chunk-PWSUGKMS.js} +2 -2
- package/dist/{chunk-PNEMJTPG.js → chunk-RH6E2YVG.js} +2 -2
- package/dist/{chunk-35WLNE3R.cjs → chunk-S5XPBZQ6.cjs} +3 -3
- package/dist/{chunk-35WLNE3R.cjs.map → chunk-S5XPBZQ6.cjs.map} +1 -1
- package/dist/{chunk-NVHBKHTR.js → chunk-TN2C7M6Q.js} +11 -11
- package/dist/{chunk-LKCLRP4E.js → chunk-TYJFA5S7.js} +2 -2
- package/dist/{chunk-YFEV3NNV.js → chunk-U2TSYPPM.js} +2 -2
- package/dist/{chunk-3XZR5JQY.cjs → chunk-UJI2ZP6M.cjs} +104 -104
- package/dist/{chunk-3XZR5JQY.cjs.map → chunk-UJI2ZP6M.cjs.map} +1 -1
- package/dist/{chunk-S6WRR43D.js → chunk-UYEZER77.js} +2 -2
- package/dist/{chunk-DAP3G7G3.js → chunk-VMR3QMB5.js} +50 -6
- package/dist/{chunk-DAP3G7G3.js.map → chunk-VMR3QMB5.js.map} +1 -1
- package/dist/{chunk-FPC3GEAD.js → chunk-VQZIP2UW.js} +10 -10
- package/dist/{chunk-ZRHMLFJB.js → chunk-XS254L5R.js} +3 -3
- package/dist/{chunk-FNRCQGZN.js → chunk-Y6UT3AYV.js} +4 -4
- package/dist/{chunk-LKH3LG3N.cjs → chunk-ZMJVWAH2.cjs} +58 -58
- package/dist/{chunk-LKH3LG3N.cjs.map → chunk-ZMJVWAH2.cjs.map} +1 -1
- package/dist/chunks-LAMEBTHT.js +11 -0
- package/dist/cli.js +45 -45
- package/dist/{formula-IWBM3D27.cjs → formula-HNVGC323.cjs} +9 -9
- package/dist/{formula-IWBM3D27.cjs.map → formula-HNVGC323.cjs.map} +1 -1
- package/dist/{formula-AKSUUGPE.js → formula-N6HZBMYV.js} +4 -4
- package/dist/{formula-TGSWQZXE.js → formula-WDYM2TBT.js} +3 -3
- package/dist/generator-GJID5Q4V.cjs +12 -0
- package/dist/{generator-AUHRYGI3.cjs.map → generator-GJID5Q4V.cjs.map} +1 -1
- package/dist/generator-LGSVRPVO.js +11 -0
- package/dist/generator-QQTCTEMZ.js +18 -0
- package/dist/{hancom-HQBZBCSR.js → hancom-TJ2T5WD7.js} +2 -2
- package/dist/{hancom-PV626GYI.js → hancom-XNW5F3S5.js} +2 -2
- package/dist/{hancom-QSZ33R47.cjs → hancom-Y4QJMNTG.cjs} +5 -5
- package/dist/{hancom-QSZ33R47.cjs.map → hancom-Y4QJMNTG.cjs.map} +1 -1
- package/dist/{image-ocr-EL2WFECB.cjs → image-ocr-2P6OUO7R.cjs} +28 -28
- package/dist/{image-ocr-EL2WFECB.cjs.map → image-ocr-2P6OUO7R.cjs.map} +1 -1
- package/dist/{image-ocr-2EYCNJJU.js → image-ocr-EEI3UA36.js} +10 -10
- package/dist/{image-ocr-P5XZGIPX.js → image-ocr-HXQV325C.js} +7 -7
- package/dist/index.cjs +1115 -1115
- package/dist/index.js +9 -9
- package/dist/mcp.js +36 -36
- package/dist/memo-JYBL4KYT.js +17 -0
- package/dist/{model-bundle-5ZAV3WPL.js → model-bundle-QMXOK6ML.js} +5 -5
- package/dist/{models-KOHBYNOH.js → models-VRTWSRWY.js} +5 -5
- package/dist/{parse-worker-v2-SSXAWHMP.js → parse-worker-v2-4YEQVFDN.js} +22 -22
- package/dist/{parser-Q2LYKLLS.js → parser-4FZWTV4P.js} +12 -12
- package/dist/{parser-JAXFIY4Z.cjs → parser-5X3O5FMI.cjs} +166 -166
- package/dist/{parser-JAXFIY4Z.cjs.map → parser-5X3O5FMI.cjs.map} +1 -1
- package/dist/{parser-GAT6U7NK.js → parser-6ZIQHTU7.js} +9 -9
- package/dist/pdf-ocr-47CN4L3H.cjs +43 -0
- package/dist/{pdf-ocr-S6LZ5SDT.cjs.map → pdf-ocr-47CN4L3H.cjs.map} +1 -1
- package/dist/{pdf-ocr-ZK6W2KRC.js → pdf-ocr-HHWYGVYA.js} +9 -9
- package/dist/{pdf-ocr-5EHHYF3C.js → pdf-ocr-TIYXB6UN.js} +6 -6
- package/dist/{profile-io-6LSVAJGK.js → profile-io-6FHN5UEA.js} +3 -3
- package/dist/{rasterize-JRBWIABQ.js → rasterize-JFBYSQSV.js} +3 -3
- package/dist/{redact-doc-K6Q3J4QN.js → redact-doc-PYL7KZBW.js} +21 -21
- package/dist/{render-QXCUXJBD.js → render-6V2YIVO3.js} +12 -12
- package/dist/{rewrite-fallback-LKK3CK7E.js → rewrite-fallback-53SOLUTC.js} +13 -13
- package/dist/seal-KRIMAC4M.js +16 -0
- package/dist/{setup-NA3L7AP4.js → setup-LFIDDDUO.js} +3 -3
- package/dist/{to-hwpx-YNCXFNZV.js → to-hwpx-PVXV4MP3.js} +7 -7
- package/dist/to-hwpx-SNIR5XQE.cjs +16 -0
- package/dist/{to-hwpx-ICWG2YYM.cjs.map → to-hwpx-SNIR5XQE.cjs.map} +1 -1
- package/dist/{to-hwpx-QVGHZIYD.js → to-hwpx-VPIDINZP.js} +4 -4
- package/dist/visual-HKD7SS2K.js +38 -0
- package/dist/{watch-C276YW4I.js → watch-RDE5VTIX.js} +22 -22
- package/package.json +1 -1
- package/dist/chunks-OWWHWU6T.js +0 -11
- package/dist/generator-AUHRYGI3.cjs +0 -12
- package/dist/generator-TGYD6N7S.js +0 -11
- package/dist/generator-UB2TEEE6.js +0 -18
- package/dist/memo-I5S4HZBP.js +0 -17
- package/dist/pdf-ocr-S6LZ5SDT.cjs +0 -43
- package/dist/seal-GMZGRQE7.js +0 -16
- package/dist/to-hwpx-ICWG2YYM.cjs +0 -16
- package/dist/visual-5BXQ3MAX.js +0 -38
- /package/dist/{-QAZ44KKA.js.map → -3Q26OZHW.js.map} +0 -0
- /package/dist/{chunk-36EJXOCF.js.map → chunk-27ZUZMQY.js.map} +0 -0
- /package/dist/{chunk-OJKFBZPW.js.map → chunk-3Z7WJCP2.js.map} +0 -0
- /package/dist/{chunk-COARY4DW.js.map → chunk-6R4M2LVY.js.map} +0 -0
- /package/dist/{chunk-MEHJKEUZ.js.map → chunk-7DQI7BU6.js.map} +0 -0
- /package/dist/{chunk-R7GE5HUE.js.map → chunk-7PTPUYYJ.js.map} +0 -0
- /package/dist/{chunk-PZOKLEDR.js.map → chunk-ABA2Z4LT.js.map} +0 -0
- /package/dist/{chunk-GOXFAAHN.js.map → chunk-AKYUE4JE.js.map} +0 -0
- /package/dist/{chunk-EUNUDJXO.js.map → chunk-AX34AL6K.js.map} +0 -0
- /package/dist/{chunk-ACDKOGKO.js.map → chunk-BPNJBWKQ.js.map} +0 -0
- /package/dist/{chunk-PO2TQW2B.js.map → chunk-BRDRZHVC.js.map} +0 -0
- /package/dist/{chunk-DFZIE6NM.js.map → chunk-BYTIJ226.js.map} +0 -0
- /package/dist/{chunk-AZZKSDLD.js.map → chunk-CLI5IIY3.js.map} +0 -0
- /package/dist/{chunk-XCPST2YL.js.map → chunk-DKSSS4ED.js.map} +0 -0
- /package/dist/{chunk-CKA2X7FC.js.map → chunk-DQQ6C7WA.js.map} +0 -0
- /package/dist/{chunk-IEOC3SKK.js.map → chunk-EG47QXJE.js.map} +0 -0
- /package/dist/{chunk-X2XUGRV3.js.map → chunk-FTMDZ4Y5.js.map} +0 -0
- /package/dist/{chunk-LJUESQWH.js.map → chunk-GZC4XIKW.js.map} +0 -0
- /package/dist/{chunk-LNAOHM6K.js.map → chunk-I2HHHJF5.js.map} +0 -0
- /package/dist/{chunk-4R6LAJCT.js.map → chunk-JW6PNIXI.js.map} +0 -0
- /package/dist/{chunk-PTJDTKU3.js.map → chunk-KUAPGGQE.js.map} +0 -0
- /package/dist/{chunk-HQSGKBH4.js.map → chunk-LXRBEPYC.js.map} +0 -0
- /package/dist/{chunk-I4ON2NHU.js.map → chunk-MTUGM4ZK.js.map} +0 -0
- /package/dist/{chunk-Q4AQE7TN.js.map → chunk-NBBT2EYG.js.map} +0 -0
- /package/dist/{chunk-GDRQGXPC.js.map → chunk-NTMN5UKQ.js.map} +0 -0
- /package/dist/{chunk-R5PEYGFS.js.map → chunk-PWSUGKMS.js.map} +0 -0
- /package/dist/{chunk-PNEMJTPG.js.map → chunk-RH6E2YVG.js.map} +0 -0
- /package/dist/{chunk-NVHBKHTR.js.map → chunk-TN2C7M6Q.js.map} +0 -0
- /package/dist/{chunk-LKCLRP4E.js.map → chunk-TYJFA5S7.js.map} +0 -0
- /package/dist/{chunk-YFEV3NNV.js.map → chunk-U2TSYPPM.js.map} +0 -0
- /package/dist/{chunk-S6WRR43D.js.map → chunk-UYEZER77.js.map} +0 -0
- /package/dist/{chunk-FPC3GEAD.js.map → chunk-VQZIP2UW.js.map} +0 -0
- /package/dist/{chunk-ZRHMLFJB.js.map → chunk-XS254L5R.js.map} +0 -0
- /package/dist/{chunk-FNRCQGZN.js.map → chunk-Y6UT3AYV.js.map} +0 -0
- /package/dist/{chunks-OWWHWU6T.js.map → chunks-LAMEBTHT.js.map} +0 -0
- /package/dist/{formula-AKSUUGPE.js.map → formula-N6HZBMYV.js.map} +0 -0
- /package/dist/{formula-TGSWQZXE.js.map → formula-WDYM2TBT.js.map} +0 -0
- /package/dist/{generator-TGYD6N7S.js.map → generator-LGSVRPVO.js.map} +0 -0
- /package/dist/{generator-UB2TEEE6.js.map → generator-QQTCTEMZ.js.map} +0 -0
- /package/dist/{hancom-HQBZBCSR.js.map → hancom-TJ2T5WD7.js.map} +0 -0
- /package/dist/{hancom-PV626GYI.js.map → hancom-XNW5F3S5.js.map} +0 -0
- /package/dist/{image-ocr-2EYCNJJU.js.map → image-ocr-EEI3UA36.js.map} +0 -0
- /package/dist/{image-ocr-P5XZGIPX.js.map → image-ocr-HXQV325C.js.map} +0 -0
- /package/dist/{memo-I5S4HZBP.js.map → memo-JYBL4KYT.js.map} +0 -0
- /package/dist/{model-bundle-5ZAV3WPL.js.map → model-bundle-QMXOK6ML.js.map} +0 -0
- /package/dist/{models-KOHBYNOH.js.map → models-VRTWSRWY.js.map} +0 -0
- /package/dist/{parse-worker-v2-SSXAWHMP.js.map → parse-worker-v2-4YEQVFDN.js.map} +0 -0
- /package/dist/{parser-Q2LYKLLS.js.map → parser-4FZWTV4P.js.map} +0 -0
- /package/dist/{parser-GAT6U7NK.js.map → parser-6ZIQHTU7.js.map} +0 -0
- /package/dist/{pdf-ocr-5EHHYF3C.js.map → pdf-ocr-HHWYGVYA.js.map} +0 -0
- /package/dist/{pdf-ocr-ZK6W2KRC.js.map → pdf-ocr-TIYXB6UN.js.map} +0 -0
- /package/dist/{profile-io-6LSVAJGK.js.map → profile-io-6FHN5UEA.js.map} +0 -0
- /package/dist/{rasterize-JRBWIABQ.js.map → rasterize-JFBYSQSV.js.map} +0 -0
- /package/dist/{redact-doc-K6Q3J4QN.js.map → redact-doc-PYL7KZBW.js.map} +0 -0
- /package/dist/{render-QXCUXJBD.js.map → render-6V2YIVO3.js.map} +0 -0
- /package/dist/{rewrite-fallback-LKK3CK7E.js.map → rewrite-fallback-53SOLUTC.js.map} +0 -0
- /package/dist/{seal-GMZGRQE7.js.map → seal-KRIMAC4M.js.map} +0 -0
- /package/dist/{setup-NA3L7AP4.js.map → setup-LFIDDDUO.js.map} +0 -0
- /package/dist/{to-hwpx-QVGHZIYD.js.map → to-hwpx-PVXV4MP3.js.map} +0 -0
- /package/dist/{to-hwpx-YNCXFNZV.js.map → to-hwpx-VPIDINZP.js.map} +0 -0
- /package/dist/{visual-5BXQ3MAX.js.map → visual-HKD7SS2K.js.map} +0 -0
- /package/dist/{watch-C276YW4I.js.map → watch-RDE5VTIX.js.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
extractRenderedRegions,
|
|
4
4
|
renderDocumentToScene
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VQZIP2UW.js";
|
|
6
6
|
import {
|
|
7
7
|
WEBP_OPTIONS,
|
|
8
8
|
blocksToPages,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
loadSharp,
|
|
11
11
|
readImageQrCodes,
|
|
12
12
|
toBuffer
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LXRBEPYC.js";
|
|
14
14
|
import {
|
|
15
15
|
applyCellEdit,
|
|
16
16
|
buildOrigUnits,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
resolveParagraphMappings,
|
|
24
24
|
resolveSectionEntryNames,
|
|
25
25
|
stripCellTokens
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TN2C7M6Q.js";
|
|
27
27
|
import {
|
|
28
28
|
TOTAL_LABEL_RE,
|
|
29
29
|
comResultToParseResult,
|
|
@@ -49,10 +49,10 @@ import {
|
|
|
49
49
|
stripHeadMarker,
|
|
50
50
|
summarize,
|
|
51
51
|
topLevelParagraphs
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-KUAPGGQE.js";
|
|
53
53
|
import {
|
|
54
54
|
patchZipEntries
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-AKYUE4JE.js";
|
|
56
56
|
import {
|
|
57
57
|
ANNOTATION_BLANK_RE,
|
|
58
58
|
ValueCursor,
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
rawTextContent,
|
|
92
92
|
readZipEntry,
|
|
93
93
|
warnInto
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-UYEZER77.js";
|
|
95
95
|
import {
|
|
96
96
|
INLINE_TABLE_MARK,
|
|
97
97
|
blocksPlainText,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
memosMarkdown,
|
|
105
105
|
parseHwp5Document,
|
|
106
106
|
resolveImageBlocks
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-EG47QXJE.js";
|
|
108
108
|
import {
|
|
109
109
|
MAX_PIXELS,
|
|
110
110
|
bmpToPng,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
stripScriptTags,
|
|
137
137
|
tidyScriptTags,
|
|
138
138
|
wrapScript
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-BRDRZHVC.js";
|
|
140
140
|
import {
|
|
141
141
|
MAX_COLS,
|
|
142
142
|
MAX_ROWS,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
flattenLayoutTables,
|
|
148
148
|
hasStructuredCellContent,
|
|
149
149
|
sanitizeText
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-PWSUGKMS.js";
|
|
151
151
|
import {
|
|
152
152
|
hangulAmount,
|
|
153
153
|
mapPuaText
|
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
toArrayBuffer,
|
|
170
170
|
unescapeHtml,
|
|
171
171
|
unzipLimitBytes
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-TYJFA5S7.js";
|
|
173
173
|
|
|
174
174
|
// src/table/visual.ts
|
|
175
175
|
import { readFile as readFile2 } from "fs/promises";
|
|
@@ -16945,7 +16945,7 @@ var MIN_SIDE = 24;
|
|
|
16945
16945
|
async function ocrEmbeddedImages(blocks, options, warnings) {
|
|
16946
16946
|
const ocr = options?.ocr;
|
|
16947
16947
|
if (ocr !== true && ocr !== "force" && typeof ocr !== "function") return false;
|
|
16948
|
-
const { parseImageDocument } = await import("./image-ocr-
|
|
16948
|
+
const { parseImageDocument } = await import("./image-ocr-EEI3UA36.js");
|
|
16949
16949
|
let inserted = false, unreadable = 0;
|
|
16950
16950
|
let failed = null;
|
|
16951
16951
|
const walk = async (list, depth) => {
|
|
@@ -20642,7 +20642,7 @@ function scriptsOff(r, off) {
|
|
|
20642
20642
|
}
|
|
20643
20643
|
async function parseImage(buffer, options) {
|
|
20644
20644
|
try {
|
|
20645
|
-
const { parseImageDocument } = await import("./image-ocr-
|
|
20645
|
+
const { parseImageDocument } = await import("./image-ocr-EEI3UA36.js");
|
|
20646
20646
|
const { blocks, warnings, lines } = await parseImageDocument(buffer, options);
|
|
20647
20647
|
stripScriptTags({ blocks });
|
|
20648
20648
|
return {
|
|
@@ -20717,7 +20717,7 @@ async function parseHwp(buffer, options) {
|
|
|
20717
20717
|
async function parsePdf(buffer, options) {
|
|
20718
20718
|
let parsePdfDocument;
|
|
20719
20719
|
try {
|
|
20720
|
-
const mod = await import("./parser-
|
|
20720
|
+
const mod = await import("./parser-4FZWTV4P.js");
|
|
20721
20721
|
parsePdfDocument = mod.parsePdfDocument;
|
|
20722
20722
|
} catch {
|
|
20723
20723
|
return {
|
|
@@ -20799,7 +20799,7 @@ async function fillForm(input, values, outputFormat = "markdown") {
|
|
|
20799
20799
|
throw new Error(`hwpx-preserve \uD3EC\uB9F7\uC740 HWPX\xB7HWP 5.x \uC785\uB825\uB9CC \uC9C0\uC6D0\uD569\uB2C8\uB2E4 (\uAC10\uC9C0\uB41C \uD3EC\uB9F7: ${zipFormat})`);
|
|
20800
20800
|
}
|
|
20801
20801
|
} else if (format2 === "hwp" && detectOle2Format(buffer) === "hwp") {
|
|
20802
|
-
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-
|
|
20802
|
+
const { hwpToHwpx: hwpToHwpx2 } = await import("./to-hwpx-PVXV4MP3.js");
|
|
20803
20803
|
const hwpx = await hwpToHwpx2(new Uint8Array(buffer));
|
|
20804
20804
|
buffer = hwpx.buffer.slice(hwpx.byteOffset, hwpx.byteOffset + hwpx.byteLength);
|
|
20805
20805
|
} else {
|
|
@@ -20949,4 +20949,4 @@ export {
|
|
|
20949
20949
|
parseHwpml,
|
|
20950
20950
|
fillForm
|
|
20951
20951
|
};
|
|
20952
|
-
//# sourceMappingURL=chunk-
|
|
20952
|
+
//# sourceMappingURL=chunk-BPNJBWKQ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
visibleText
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PWSUGKMS.js";
|
|
5
5
|
|
|
6
6
|
// src/script-tags.ts
|
|
7
7
|
var LITERAL_TAG = /<(?=\/?(?:u|sup|sub)>)/g;
|
|
@@ -336,4 +336,4 @@ export {
|
|
|
336
336
|
HEADING_RATIO_H2,
|
|
337
337
|
HEADING_RATIO_H3
|
|
338
338
|
};
|
|
339
|
-
//# sourceMappingURL=chunk-
|
|
339
|
+
//# sourceMappingURL=chunk-BRDRZHVC.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KordocError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AX34AL6K.js";
|
|
4
4
|
|
|
5
5
|
// src/pdf/formula/models.ts
|
|
6
6
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -310,4 +310,4 @@ export {
|
|
|
310
310
|
ensureFormulaModels,
|
|
311
311
|
ensureSingleModel
|
|
312
312
|
};
|
|
313
|
-
//# sourceMappingURL=chunk-
|
|
313
|
+
//# sourceMappingURL=chunk-BYTIJ226.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-WFKFG2RT.js";
|
|
5
5
|
import {
|
|
6
6
|
KordocError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TYJFA5S7.js";
|
|
8
8
|
|
|
9
9
|
// src/hwp5/record.ts
|
|
10
10
|
import { inflateRawSync, inflateSync } from "zlib";
|
|
@@ -404,4 +404,4 @@ export {
|
|
|
404
404
|
appendParaText,
|
|
405
405
|
extractEquationText
|
|
406
406
|
};
|
|
407
|
-
//# sourceMappingURL=chunk-
|
|
407
|
+
//# sourceMappingURL=chunk-CLI5IIY3.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ensureModelsIn,
|
|
4
4
|
getModelStatusIn,
|
|
5
5
|
getModelsDir
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U2TSYPPM.js";
|
|
7
7
|
|
|
8
8
|
// src/ocr/models.ts
|
|
9
9
|
import { join } from "path";
|
|
@@ -175,4 +175,4 @@ export {
|
|
|
175
175
|
parseCharacterDict,
|
|
176
176
|
ocrModelPath
|
|
177
177
|
};
|
|
178
|
-
//# sourceMappingURL=chunk-
|
|
178
|
+
//# sourceMappingURL=chunk-DKSSS4ED.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
KordocError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TYJFA5S7.js";
|
|
5
5
|
|
|
6
6
|
// src/shared/offline.ts
|
|
7
7
|
import { realpathSync } from "fs";
|
|
@@ -49,4 +49,4 @@ export {
|
|
|
49
49
|
getAccessRoot,
|
|
50
50
|
assertWithinRoot
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=chunk-
|
|
52
|
+
//# sourceMappingURL=chunk-DQQ6C7WA.js.map
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
parseFileHeader,
|
|
38
38
|
readRecords,
|
|
39
39
|
resolveLiteralLt
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-CLI5IIY3.js";
|
|
41
41
|
import {
|
|
42
42
|
TOC_ENTRY_BLOCKS,
|
|
43
43
|
takeTocLeaders
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
HEADING_RATIO_H3,
|
|
56
56
|
tidyScriptTags,
|
|
57
57
|
unframeLayoutTables
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-BRDRZHVC.js";
|
|
59
59
|
import {
|
|
60
60
|
MAX_COLS,
|
|
61
61
|
MAX_ROWS,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
flattenLayoutTables,
|
|
69
69
|
markNonLayoutTable,
|
|
70
70
|
sanitizeText
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-PWSUGKMS.js";
|
|
72
72
|
import {
|
|
73
73
|
circledHangul,
|
|
74
74
|
circledNumber,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
import {
|
|
80
80
|
KordocError,
|
|
81
81
|
sanitizeHref
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-TYJFA5S7.js";
|
|
83
83
|
|
|
84
84
|
// src/memo-notes.ts
|
|
85
85
|
var squash = (s) => sanitizeText(s).replace(/\s+/g, "");
|
|
@@ -2827,4 +2827,4 @@ export {
|
|
|
2827
2827
|
parseHwp5Document,
|
|
2828
2828
|
extractHwp5MetadataOnly
|
|
2829
2829
|
};
|
|
2830
|
-
//# sourceMappingURL=chunk-
|
|
2830
|
+
//# sourceMappingURL=chunk-EG47QXJE.js.map
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
tidyScriptTags,
|
|
41
41
|
visibleText,
|
|
42
42
|
wrapScript
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-3Z7WJCP2.js";
|
|
44
44
|
import {
|
|
45
45
|
BARE_URL,
|
|
46
46
|
KordocError,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
stripDtd,
|
|
58
58
|
unescapeHtml,
|
|
59
59
|
unzipLimitBytes
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-AX34AL6K.js";
|
|
61
61
|
|
|
62
62
|
// src/hwpx/generator.ts
|
|
63
63
|
import JSZip2 from "jszip";
|
|
@@ -23931,4 +23931,4 @@ export {
|
|
|
23931
23931
|
markdownToHwpxFromTemplate,
|
|
23932
23932
|
markdownToHwpx
|
|
23933
23933
|
};
|
|
23934
|
-
//# sourceMappingURL=chunk-
|
|
23934
|
+
//# sourceMappingURL=chunk-FTMDZ4Y5.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4T4Y2WRRcjs = require('./chunk-4T4Y2WRR.cjs');
|
|
7
7
|
|
|
8
8
|
// src/script-tags.ts
|
|
9
9
|
var LITERAL_TAG = /<(?=\/?(?:u|sup|sub)>)/g;
|
|
@@ -727,12 +727,12 @@ var CELL_URL = new RegExp(String.raw`(?:(?<![A-Za-z])https?:\/\/|(?<![^\s(])www\
|
|
|
727
727
|
function gfmCellMarkdown(text) {
|
|
728
728
|
return text.replace(/\r\n|\r|\n/g, "<br>").replace(CELL_URL, (u) => u.replace(/\|/g, "%7C")).replace(/(?<!\\)\|/g, "\\|");
|
|
729
729
|
}
|
|
730
|
-
var GFM_PROTECTED = new RegExp(/!\[[^\]<>\n]*\]\([^)\s<>"'\x60:]*\)|\]\((?:https?:|mailto:|tel:|#)[^)\s<>"'\x60]*\)|(?<!\\)\$\$(?:\\[\s\S]|[^\\$])*\$\$|(?<!\\)\$(?:\\[^\n]|[^\\$\n])*\$/.source + `|(${
|
|
730
|
+
var GFM_PROTECTED = new RegExp(/!\[[^\]<>\n]*\]\([^)\s<>"'\x60:]*\)|\]\((?:https?:|mailto:|tel:|#)[^)\s<>"'\x60]*\)|(?<!\\)\$\$(?:\\[\s\S]|[^\\$])*\$\$|(?<!\\)\$(?:\\[^\n]|[^\\$\n])*\$/.source + `|(${_chunk4T4Y2WRRcjs.BARE_URL})`, "gi");
|
|
731
731
|
function escapeGfm(text) {
|
|
732
732
|
const NUL = String.fromCharCode(0);
|
|
733
733
|
const spans = [];
|
|
734
734
|
const masked = text.replace(GFM_PROTECTED, (m, url, at, s) => {
|
|
735
|
-
if (url && !
|
|
735
|
+
if (url && !_chunk4T4Y2WRRcjs.isGfmUrl.call(void 0, url, s, at + url.length)) return m;
|
|
736
736
|
spans.push(m);
|
|
737
737
|
return NUL + (spans.length - 1) + NUL;
|
|
738
738
|
});
|
|
@@ -964,7 +964,7 @@ function blocksToMarkdown(blocks, options) {
|
|
|
964
964
|
if (_optionalChain([block, 'access', _38 => _38.spans, 'optionalAccess', _39 => _39.length])) {
|
|
965
965
|
let rendered = spansToMarkdown(block.spans);
|
|
966
966
|
if (block.href) {
|
|
967
|
-
const href =
|
|
967
|
+
const href = _chunk4T4Y2WRRcjs.sanitizeHref.call(void 0, block.href);
|
|
968
968
|
if (href) rendered = `[${rendered}](${href})`;
|
|
969
969
|
}
|
|
970
970
|
if (block.footnoteText) rendered += noteTable || escapeGfm(` (\uC8FC: ${block.footnoteText})`);
|
|
@@ -972,7 +972,7 @@ function blocksToMarkdown(blocks, options) {
|
|
|
972
972
|
continue;
|
|
973
973
|
}
|
|
974
974
|
if (block.href) {
|
|
975
|
-
const href =
|
|
975
|
+
const href = _chunk4T4Y2WRRcjs.sanitizeHref.call(void 0, block.href);
|
|
976
976
|
if (href) text = `[${text}](${href})`;
|
|
977
977
|
}
|
|
978
978
|
if (block.footnoteText && !noteTable) {
|
|
@@ -1061,7 +1061,7 @@ function visibleText(b) {
|
|
|
1061
1061
|
return _optionalChain([b, 'access', _53 => _53.spans, 'optionalAccess', _54 => _54.some, 'call', _55 => _55((s) => s.placeholder)]) ? b.spans.filter((s) => !s.placeholder).map((s) => s.text).join("") : _nullishCoalesce(b.text, () => ( ""));
|
|
1062
1062
|
}
|
|
1063
1063
|
function escapeHtmlCellText(text) {
|
|
1064
|
-
return
|
|
1064
|
+
return _chunk4T4Y2WRRcjs.escapeHtml.call(void 0, text).replace(/(\\)?<(\/?)(u|sup|sub)>/g, (_, esc, sl, tag) => esc ? `<${sl}${tag}>` : `<${sl}${tag}>`);
|
|
1065
1065
|
}
|
|
1066
1066
|
function cellInnerHtml(cell) {
|
|
1067
1067
|
if (_optionalChain([cell, 'access', _56 => _56.blocks, 'optionalAccess', _57 => _57.length])) {
|
|
@@ -1070,7 +1070,7 @@ function cellInnerHtml(cell) {
|
|
|
1070
1070
|
const cap = captionToHtml(b.table);
|
|
1071
1071
|
return (cap ? cap + "<br>" : "") + tableToHtml(b.table);
|
|
1072
1072
|
}
|
|
1073
|
-
if (b.type === "image" && b.text) return `<img src="${
|
|
1073
|
+
if (b.type === "image" && b.text) return `<img src="${_chunk4T4Y2WRRcjs.escapeHtml.call(void 0, b.text, true)}" alt="image">` + (_nullishCoalesce(b.qr, () => ( []))).map((v) => "<br>" + escapeHtmlCellText(v).replace(/\r?\n/g, "<br>")).join("");
|
|
1074
1074
|
const note = noteTableHtml(b);
|
|
1075
1075
|
const t = (sanitizeText(visibleText(b)) + (note ? "" : noteSuffix(b))).trim();
|
|
1076
1076
|
return ((t ? escapeHtmlCellText(t).replace(/\n/g, "<br>") : "") + note).trim();
|
|
@@ -1558,4 +1558,4 @@ var HEADING_RATIO_H3 = 1.15;
|
|
|
1558
1558
|
|
|
1559
1559
|
|
|
1560
1560
|
exports.escapeLiteralTags = escapeLiteralTags; exports.wrapScript = wrapScript; exports.tidyScriptTags = tidyScriptTags; exports.plainScripts = plainScripts; exports.stripScriptTags = stripScriptTags; exports.WINGDINGS = WINGDINGS; exports.hangulOrdinal = hangulOrdinal; exports.circledNumber = circledNumber; exports.circledHangul = circledHangul; exports.hangulAmount = hangulAmount; exports.romanNumeral = romanNumeral; exports.enclosedNumber = enclosedNumber; exports.composeDigits = composeDigits; exports.pairedNumber = pairedNumber; exports.composeText = composeText; exports.mapPuaText = mapPuaText; exports.MAX_COLS = MAX_COLS; exports.MAX_ROWS = MAX_ROWS; exports.MAX_TABLE_CELLS = MAX_TABLE_CELLS; exports.buildTable = buildTable; exports.captionedText = captionedText; exports.convertTableToText = convertTableToText; exports.gfmCellMarkdown = gfmCellMarkdown; exports.escapeGfm = escapeGfm; exports.escapeLiteralDollar = escapeLiteralDollar; exports.sanitizeText = sanitizeText; exports.markNonLayoutTable = markNonLayoutTable; exports.flattenLayoutTables = flattenLayoutTables; exports.dedupeRunningHeaders = dedupeRunningHeaders; exports.assignTableIds = assignTableIds; exports.blocksToMarkdown = blocksToMarkdown; exports.hasStructuredCellContent = hasStructuredCellContent; exports.noteSuffix = noteSuffix; exports.noteTableHtml = noteTableHtml; exports.visibleText = visibleText; exports.escapeHtmlCellText = escapeHtmlCellText; exports.hasInlineCellBlocks = hasInlineCellBlocks; exports.cellToMarkdown = cellToMarkdown; exports.CELL_EDGES = CELL_EDGES; exports.CELL_PAGES = CELL_PAGES; exports.CONTENT_CELLS = CONTENT_CELLS; exports.CELL_BASELINES = CELL_BASELINES; exports.toTex = toTex; exports.unframeLayoutTables = unframeLayoutTables; exports.HEADING_RATIO_H1 = HEADING_RATIO_H1; exports.HEADING_RATIO_H2 = HEADING_RATIO_H2; exports.HEADING_RATIO_H3 = HEADING_RATIO_H3;
|
|
1561
|
-
//# sourceMappingURL=chunk-
|
|
1561
|
+
//# sourceMappingURL=chunk-GITPHKYL.cjs.map
|