@embedpdf/engine-core 3.0.0-next.12 → 3.0.0-next.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.
Files changed (59) hide show
  1. package/dist/{AbortError-CRSooKsk.cjs → AbortError-Cq2igpZ6.cjs} +2 -2
  2. package/dist/{AbortError-CRSooKsk.cjs.map → AbortError-Cq2igpZ6.cjs.map} +1 -1
  3. package/dist/{AbortError-8-9JAX1Y.js → AbortError-DHqPBnYc.js} +2 -2
  4. package/dist/{AbortError-8-9JAX1Y.js.map → AbortError-DHqPBnYc.js.map} +1 -1
  5. package/dist/{AnnotationListSnapshot-x6tKulNV.d.cts → AnnotationListSnapshot-D3mFut1e.d.cts} +1155 -171
  6. package/dist/{AnnotationListSnapshot-x6tKulNV.d.ts → AnnotationListSnapshot-D3mFut1e.d.ts} +1155 -171
  7. package/dist/{DocumentSecurityService-CK0pejAK.d.cts → DocumentSecurityService-ClTZc0zO.d.cts} +2 -2
  8. package/dist/{DocumentSecurityService-9MawYxP-.d.ts → DocumentSecurityService-_JRjqvoI.d.ts} +2 -2
  9. package/dist/{Engine-Ds0ytbl6.d.ts → Engine-Bx0NOfmd.d.cts} +166 -11
  10. package/dist/{Engine--0XF0UAK.d.cts → Engine-DxtpCYcP.d.ts} +166 -11
  11. package/dist/{PageInsertBlankInput-CzShuSJI.cjs → PageInsertBlankInput-CqXBmFhN.cjs} +37 -2
  12. package/dist/PageInsertBlankInput-CqXBmFhN.cjs.map +1 -0
  13. package/dist/{PageInsertBlankInput-WKY0tr6S.js → PageInsertBlankInput-cHq9-i-z.js} +37 -2
  14. package/dist/PageInsertBlankInput-cHq9-i-z.js.map +1 -0
  15. package/dist/{builders-8Hl1AYNU.cjs → builders-Bqm8yTpi.cjs} +1470 -4
  16. package/dist/builders-Bqm8yTpi.cjs.map +1 -0
  17. package/dist/{builders-DOjcKDWQ.js → builders-Dqo2X-dt.js} +1351 -5
  18. package/dist/builders-Dqo2X-dt.js.map +1 -0
  19. package/dist/conformance.cjs +1079 -13
  20. package/dist/conformance.cjs.map +1 -1
  21. package/dist/conformance.d.cts +70 -3
  22. package/dist/conformance.d.ts +70 -3
  23. package/dist/conformance.js +1079 -14
  24. package/dist/conformance.js.map +1 -1
  25. package/dist/{fold-C7I5GpBz.cjs → fold-2V29cxCV.cjs} +2 -2
  26. package/dist/{fold-C7I5GpBz.cjs.map → fold-2V29cxCV.cjs.map} +1 -1
  27. package/dist/{fold-BfyxxwS6.js → fold-CdEJTBTn.js} +2 -2
  28. package/dist/{fold-BfyxxwS6.js.map → fold-CdEJTBTn.js.map} +1 -1
  29. package/dist/index.cjs +33 -4
  30. package/dist/index.d.cts +2 -2
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.js +5 -5
  33. package/dist/{resolver-D-jumvgM.cjs → resolver-CYVNV4hn.cjs} +216 -10
  34. package/dist/resolver-CYVNV4hn.cjs.map +1 -0
  35. package/dist/{resolver-CHG4waXL.js → resolver-inAVzsWt.js} +157 -11
  36. package/dist/resolver-inAVzsWt.js.map +1 -0
  37. package/dist/runtime.cjs +34 -5
  38. package/dist/runtime.d.cts +192 -5
  39. package/dist/runtime.d.ts +192 -5
  40. package/dist/runtime.js +6 -6
  41. package/dist/{schemas-DOyVEPk7.js → schemas-BLARNCgx.js} +420 -4
  42. package/dist/schemas-BLARNCgx.js.map +1 -0
  43. package/dist/{schemas-RChsAMWw.cjs → schemas-DIqFMmrC.cjs} +581 -3
  44. package/dist/schemas-DIqFMmrC.cjs.map +1 -0
  45. package/dist/wire.cjs +228 -12
  46. package/dist/wire.cjs.map +1 -1
  47. package/dist/wire.d.cts +415 -4
  48. package/dist/wire.d.ts +415 -4
  49. package/dist/wire.js +199 -13
  50. package/dist/wire.js.map +1 -1
  51. package/package.json +1 -1
  52. package/dist/PageInsertBlankInput-CzShuSJI.cjs.map +0 -1
  53. package/dist/PageInsertBlankInput-WKY0tr6S.js.map +0 -1
  54. package/dist/builders-8Hl1AYNU.cjs.map +0 -1
  55. package/dist/builders-DOjcKDWQ.js.map +0 -1
  56. package/dist/resolver-CHG4waXL.js.map +0 -1
  57. package/dist/resolver-D-jumvgM.cjs.map +0 -1
  58. package/dist/schemas-DOyVEPk7.js.map +0 -1
  59. package/dist/schemas-RChsAMWw.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- const require_PageInsertBlankInput = require("./PageInsertBlankInput-CzShuSJI.cjs");
1
+ const require_PageInsertBlankInput = require("./PageInsertBlankInput-CqXBmFhN.cjs");
2
2
  //#region src/geometry/convert.ts
3
3
  /**
4
4
  * Normalize a `PdfRect` to the y-up invariant (`left <= right`, `bottom <= top`),
@@ -444,4 +444,4 @@ Object.defineProperty(exports, "toOriginalRange", {
444
444
  }
445
445
  });
446
446
 
447
- //# sourceMappingURL=fold-C7I5GpBz.cjs.map
447
+ //# sourceMappingURL=fold-2V29cxCV.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"fold-C7I5GpBz.cjs","names":["EngineErrorCode"],"sources":["../src/geometry/convert.ts","../src/dto/PageGeometrySnapshot.ts","../src/errors/EngineError.ts","../src/search/fold.ts"],"sourcesContent":["/**\n * PDF-space-internal geometry helpers.\n *\n * These operate ENTIRELY within PDF user space (y-up, edges). They never\n * produce viewer-local (y-down) geometry — that conversion needs the crop box\n * plus rotation/scale and lives in the v3 viewer layer (the `Mat2D` matrix\n * model), never here.\n */\n\nimport type { PdfPoint, PdfQuad, PdfRect, PdfSize } from './primitives';\n\n/** Origin + size form of a `PdfRect`, still y-up (origin = bottom-left). */\nexport interface PdfOriginSize {\n x: number;\n y: number;\n width: number;\n height: number;\n}\n\n/**\n * Normalize a `PdfRect` to the y-up invariant (`left <= right`, `bottom <= top`),\n * regardless of how the PDF ordered the corners (a `/Rect` array or `FS_RECTF`\n * may carry them in any order). THE enforcement point for the \"PdfRect is always\n * normalized\" rule: every producer that reads a raw box from PDFium passes it\n * through here, so the invariant holds once, centrally — downstream `width =\n * right - left` is never negative.\n */\nexport function normalizePdfRect(r: PdfRect): PdfRect {\n return {\n left: Math.min(r.left, r.right),\n right: Math.max(r.left, r.right),\n bottom: Math.min(r.top, r.bottom),\n top: Math.max(r.top, r.bottom),\n };\n}\n\nexport function pdfRectWidth(r: PdfRect): number {\n return r.right - r.left;\n}\n\nexport function pdfRectHeight(r: PdfRect): number {\n return r.top - r.bottom;\n}\n\nexport function pdfRectSize(r: PdfRect): PdfSize {\n return { width: r.right - r.left, height: r.top - r.bottom };\n}\n\n/** Convert edges -> origin+size, staying y-up (origin at bottom-left). */\nexport function pdfRectToOriginSize(r: PdfRect): PdfOriginSize {\n return { x: r.left, y: r.bottom, width: r.right - r.left, height: r.top - r.bottom };\n}\n\n/** Convert y-up origin+size back to edges. */\nexport function pdfRectFromOriginSize(o: PdfOriginSize): PdfRect {\n return { left: o.x, bottom: o.y, right: o.x + o.width, top: o.y + o.height };\n}\n\n/**\n * Enclosing axis-aligned box of a quad, in PDF user space. Orientation\n * agnostic (correct for rotated/skewed quads) — this is what highlight\n * rendering and hit-testing want.\n */\nexport function pdfQuadBounds(q: PdfQuad): PdfRect {\n const xs = [q.p1.x, q.p2.x, q.p3.x, q.p4.x];\n const ys = [q.p1.y, q.p2.y, q.p3.y, q.p4.y];\n return {\n left: Math.min(...xs),\n right: Math.max(...xs),\n bottom: Math.min(...ys),\n top: Math.max(...ys),\n };\n}\n\n/** Named corners of a quad, in PDF user space (y-up). */\nexport interface PdfQuadCorners {\n topLeft: PdfPoint;\n topRight: PdfPoint;\n bottomLeft: PdfPoint;\n bottomRight: PdfPoint;\n}\n\n/**\n * Axis-aligned named-corner interpretation of a quad.\n *\n * VALID ONLY for upright (non-rotated, non-skewed) quads: it is derived from\n * the enclosing bounds, so for rotated/skewed quads it returns the bounding\n * box corners, not the true geometric corners. For arbitrary quads use the\n * positional `p1..p4` or `pdfQuadBounds` directly.\n */\nexport function pdfQuadCorners(q: PdfQuad): PdfQuadCorners {\n const b = pdfQuadBounds(q);\n return {\n topLeft: { x: b.left, y: b.top },\n topRight: { x: b.right, y: b.top },\n bottomLeft: { x: b.left, y: b.bottom },\n bottomRight: { x: b.right, y: b.bottom },\n };\n}\n\n/**\n * Build a quad from named corners, in PDFium `FS_QUADPOINTSF` slot order\n * (`p1 = topLeft`, `p2 = topRight`, `p3 = bottomLeft`, `p4 = bottomRight`).\n * The inverse of `pdfQuadCorners` for upright quads.\n */\nexport function pdfQuadFromCorners(c: PdfQuadCorners): PdfQuad {\n return { p1: c.topLeft, p2: c.topRight, p3: c.bottomLeft, p4: c.bottomRight };\n}\n","import { pdfQuadBounds } from '../geometry/convert';\nimport type { PdfQuad, PdfRect } from '../geometry/primitives';\n\n/**\n * One upright glyph's geometry in PDF user space (y-up edges).\n *\n * `looseBox` is the loose char cell (pdfium `FPDFText_GetLooseCharBox`): the\n * font-metric box covering the full glyph cell without regard to the actual\n * glyph shape. Always present (zeroed + flagged empty for degenerate glyphs);\n * it's the box selection envelopes are built from.\n *\n * `tightBox` is the tight char box (pdfium `FPDFText_GetCharBox`): the box\n * hugging the actual glyph shape. Optional — absent for empty/whitespace\n * glyphs that have no real outline.\n *\n * `flags` carries slim per-glyph state (bit 1 = space, bit 2 = empty).\n */\nexport interface PageGeometryGlyph {\n looseBox: PdfRect;\n flags: number;\n tightBox?: PdfRect;\n}\n\n/**\n * One non-upright glyph's geometry: the exact oriented cells, in PDF user\n * space (page coordinates — NOT a local frame). The corner SLOTS are\n * frame-geometric in the glyph's own upright frame:\n * `p1` = upper-start, `p2` = upper-end, `p3` = lower-start, `p4` = lower-end,\n * where \"upper\" is the ascent side and \"start\" is the frame's minimum-x side.\n * Deliberately NOT a bidi/reading-order statement — advance direction is a\n * glyph-sequence concern, carried separately where consumers need it.\n *\n * Degenerate glyphs carry a zeroed `looseQuad` plus the empty flag (bit 2),\n * mirroring the upright variant's zeroed-box convention. `flags` bits match\n * {@link PageGeometryGlyph.flags}.\n */\nexport interface RotatedGeometryGlyph {\n looseQuad: PdfQuad;\n flags: number;\n tightQuad?: PdfQuad;\n}\n\n/**\n * A run whose char matrix is upright — byte-identical to the wire shape that\n * predates orientation support, so upright documents never pay for it.\n */\nexport interface UprightGeometryRun {\n rect: PdfRect;\n charStart: number;\n glyphs: PageGeometryGlyph[];\n fontSize?: number;\n}\n\n/**\n * A run whose char matrix is NOT upright (rotated, sheared, or mirrored).\n *\n * `rect` stays a page-space AABB (culling), like every other wire rect.\n * `rotation` is the baseline angle in radians, CCW in PDF y-up space\n * (`atan2(m.b, m.a)` of the run's char matrix). Note a shear-only run has\n * `rotation === 0` and still uses this variant — its cells are\n * parallelograms an AABB would misrepresent. `ascentFlip` is true when the\n * ascent vector maps opposite the rotated frame's +y (mirrored /\n * negative-determinant content).\n */\nexport interface RotatedGeometryRun {\n rect: PdfRect;\n charStart: number;\n glyphs: RotatedGeometryGlyph[];\n rotation: number;\n ascentFlip: boolean;\n fontSize?: number;\n}\n\n/**\n * One text run (contiguous glyphs sharing a text object and orientation).\n * A discriminated union so consumers CANNOT read axis-aligned boxes off\n * rotated text by accident — handling orientation is a compile-time\n * obligation, not a runtime discovery. Narrow with\n * {@link isRotatedGeometryRun}, or use the uniform {@link glyphLooseQuad} /\n * {@link glyphLooseBounds} views.\n */\nexport type PageGeometryRun = UprightGeometryRun | RotatedGeometryRun;\n\n/**\n * Geometry-only text layout for one page, in PDF user space (y-up). The v3\n * viewer converts to content/view space via the page geometry matrix.\n *\n * Pure content, addressed and cached by `contentVersion`. Carries NO\n * annotation liveness envelope (`PageState`) — see `PageTextSnapshot` for\n * the rationale; liveness lives on annotation reads.\n */\nexport interface PageGeometrySnapshot {\n runs: PageGeometryRun[];\n}\n\n/** Narrowing guard: is this run the rotated (non-upright) variant? */\nexport function isRotatedGeometryRun(run: PageGeometryRun): run is RotatedGeometryRun {\n return 'rotation' in run;\n}\n\n/**\n * Uniform oriented-cell view over either run variant: the glyph's loose cell\n * as a quad (synthesized from the box corners when the run is upright, in\n * the same frame-geometric slot order).\n */\nexport function glyphLooseQuad(run: PageGeometryRun, index: number): PdfQuad {\n if (isRotatedGeometryRun(run)) return run.glyphs[index].looseQuad;\n const b = run.glyphs[index].looseBox;\n return {\n p1: { x: b.left, y: b.top },\n p2: { x: b.right, y: b.top },\n p3: { x: b.left, y: b.bottom },\n p4: { x: b.right, y: b.bottom },\n };\n}\n\n/**\n * Uniform AABB view over either run variant: the glyph's loose box, or the\n * enclosing bounds of its oriented cell when the run is rotated. The\n * conservative envelope for consumers that genuinely want a box (culling,\n * scroll targets) — never a substitute for handling orientation in geometry\n * that gets DRAWN.\n */\nexport function glyphLooseBounds(run: PageGeometryRun, index: number): PdfRect {\n if (isRotatedGeometryRun(run)) return pdfQuadBounds(run.glyphs[index].looseQuad);\n return run.glyphs[index].looseBox;\n}\n","import { EngineErrorCode } from './EngineErrorCode';\n\nexport interface EngineErrorOptions {\n cause?: unknown;\n details?: Record<string, unknown>;\n}\n\n/**\n * Single error class shared across engine implementations. Has a stable\n * machine-readable `code` (see EngineErrorCode) so callers can match without\n * sniffing message strings.\n */\nexport class EngineError extends Error {\n override readonly name = 'EngineError';\n readonly code: EngineErrorCode;\n readonly details?: Record<string, unknown>;\n\n constructor(code: EngineErrorCode, message?: string, opts: EngineErrorOptions = {}) {\n super(message ?? code, opts.cause === undefined ? undefined : { cause: opts.cause });\n this.code = code;\n this.details = opts.details;\n }\n\n static is(value: unknown, code?: EngineErrorCode): value is EngineError {\n if (\n !(value instanceof EngineError) &&\n (value as { name?: string } | null)?.name !== 'EngineError'\n ) {\n return false;\n }\n if (code === undefined) return true;\n return (value as EngineError).code === code;\n }\n\n toJSON(): {\n name: 'EngineError';\n code: EngineErrorCode;\n message: string;\n details?: Record<string, unknown>;\n } {\n return {\n name: 'EngineError',\n code: this.code,\n message: this.message,\n details: this.details,\n };\n }\n}\n\nexport interface SerializedEngineError {\n name: 'EngineError';\n code: EngineErrorCode;\n message: string;\n details?: Record<string, unknown>;\n}\n\nexport function serializeError(err: unknown): SerializedEngineError {\n if (EngineError.is(err)) {\n return err.toJSON();\n }\n if (err instanceof Error) {\n const code: EngineErrorCode =\n err.name === 'AbortError' ? EngineErrorCode.Aborted : EngineErrorCode.Unknown;\n return { name: 'EngineError', code, message: err.message };\n }\n return {\n name: 'EngineError',\n code: EngineErrorCode.Unknown,\n message: String(err ?? 'unknown error'),\n };\n}\n\nexport function deserializeError(payload: SerializedEngineError): EngineError {\n return new EngineError(payload.code, payload.message, { details: payload.details });\n}\n","/**\n * Text folding for literal search: the deterministic normalization applied\n * to BOTH the page text and the needle so that \"Café\" finds \"cafe\" and a\n * line-wrapped \"hello\\n world\" finds \"hello world\".\n *\n * Fold version 1:\n * - whitespace runs collapse to a single space (any `\\s`, including the\n * spaces some compatibility decompositions emit),\n * - each code point is NFKD-decomposed (ligatures split: \"fi\" → \"fi\",\n * \"²\" → \"2\"),\n * - combining marks are stripped unless `keepMarks`,\n * - case is folded via upper→lower round-trip unless `keepCase` (this\n * poor-man's full fold catches \"ß\"→\"ss\" and \"ς\"→\"σ\", which a plain\n * `toLowerCase` misses).\n *\n * Every folded code unit remembers which original code point produced it\n * (`map`), so match ranges found in folded space translate back to exact\n * original-text ranges — the property the whole anchor stage rests on.\n *\n * Pre-folded corpus artifacts store this fold's output; bump\n * `SEARCH_FOLD_VERSION` on ANY semantic change so stored corpora are\n * rebuilt instead of silently mismatching fresh needles.\n */\n\n/** Version stamp for persisted pre-folded corpus artifacts. */\nexport const SEARCH_FOLD_VERSION = 1;\n\nexport interface FoldOptions {\n /** Preserve case (matchCase). */\n keepCase?: boolean;\n /** Preserve combining marks (matchDiacritics). */\n keepMarks?: boolean;\n}\n\nexport interface FoldedText {\n folded: string;\n /** Folded code unit i → code-unit index of the original code point it came from. */\n map: Uint32Array;\n original: string;\n}\n\n/** A half-open match range in ORIGINAL code-unit space. */\nexport interface SearchMatchRange {\n start: number;\n length: number;\n}\n\nconst WHITESPACE = /\\s/;\nconst MARKS = /\\p{M}/gu;\n\nexport function foldText(original: string, options: FoldOptions = {}): FoldedText {\n const units: string[] = [];\n const map: number[] = [];\n let lastWasSpace = false;\n\n let index = 0;\n for (const cp of original) {\n let piece: string;\n if (WHITESPACE.test(cp)) {\n piece = ' ';\n } else {\n piece = cp.normalize('NFKD');\n if (!options.keepMarks) piece = piece.replace(MARKS, '');\n if (!options.keepCase) piece = piece.toUpperCase().toLowerCase();\n }\n // A decomposition can itself contain whitespace (U+00A8 → space +\n // combining diaeresis), so collapse runs at the unit level, not just\n // for source whitespace.\n for (let u = 0; u < piece.length; u++) {\n const unit = piece[u];\n if (WHITESPACE.test(unit)) {\n if (lastWasSpace) continue;\n units.push(' ');\n map.push(index);\n lastWasSpace = true;\n } else {\n units.push(unit);\n map.push(index);\n lastWasSpace = false;\n }\n }\n index += cp.length;\n }\n\n return { folded: units.join(''), map: Uint32Array.from(map), original };\n}\n\n/** Code-unit length of the code point starting at `index` (1 or 2). */\nfunction codePointLengthAt(text: string, index: number): number {\n const unit = text.charCodeAt(index);\n if (unit >= 0xd800 && unit <= 0xdbff && index + 1 < text.length) {\n const next = text.charCodeAt(index + 1);\n if (next >= 0xdc00 && next <= 0xdfff) return 2;\n }\n return 1;\n}\n\n/**\n * Translate a match found in folded space back to the original text.\n * The range covers whole original code points: a hit on either folded\n * half of \"fi\" spans the full ligature, and a hit ending on a collapsed\n * space extends only through the first whitespace char of the run (the\n * remainder is presentation, not match).\n */\nexport function toOriginalRange(\n folded: FoldedText,\n foldedStart: number,\n foldedLength: number,\n): SearchMatchRange {\n const start = folded.map[foldedStart];\n const lastOriginal = folded.map[foldedStart + foldedLength - 1];\n const end = lastOriginal + codePointLengthAt(folded.original, lastOriginal);\n return { start, length: end - start };\n}\n"],"mappings":";;;;;;;;;;AA2BA,SAAgB,iBAAiB,GAAqB;CACpD,OAAO;EACL,MAAM,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK;EAC9B,OAAO,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK;EAC/B,QAAQ,KAAK,IAAI,EAAE,KAAK,EAAE,MAAM;E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AM;GACnB,IAAI,WAAW,KAAK,IAAI,GAAG;IACzB,IAAI,cAAc;IAClB,MAAM,KAAK,GAAG;IACd,IAAI,KAAK,KAAK;IACd,eAAe;GACjB,OAAO;IACL,MAAM,KAAK,IAAI;IACf,IAAI,KAAK,KAAK;IACd,eAAe;GACjB;EACF;EACA,SAAS,GAAG;CACd;CAEA,OAAO;EAAE,QAAQ,MAAM,KAAK,EAAE;EAAG,KAAK,YAAY,KAAK,GAAG;EAAG;CAAS;AACxE;;AAGA,SAAS,kBAAkB,MAAc,OAAuB;CAC9D,MAAM,OAAO,KAAK,WAAW,KAAK;CAClC,IAAI,QAAQ,SAAU,QAAQ,SAAU,QAAQ,IAAI,KAAK,QAAQ;EAC/D,MAAM,OAAO,KAAK,WAAW,QAAQ,CAAC;EACtC,IAAI,QAAQ,SAAU,QAAQ,OAAQ,OAAO;CAC/C;CACA,OAAO;AACT;;;;;;;;AASA,SAAgB,gBACd,QACA,aACA,cACkB;CAClB,MAAM,QAAQ,OAAO,IAAI;CACzB,MAAM,eAAe,OAAO,IAAI,cAAc,eAAe;CAE7D,OAAO;EAAE;EAAO,QADJ,eAAe,kBAAkB,OAAO,UAAU,YAAY,IAC5C;CAAM;AACtC"}
1
+ {"version":3,"file":"fold-2V29cxCV.cjs","names":["EngineErrorCode"],"sources":["../src/geometry/convert.ts","../src/dto/PageGeometrySnapshot.ts","../src/errors/EngineError.ts","../src/search/fold.ts"],"sourcesContent":["/**\n * PDF-space-internal geometry helpers.\n *\n * These operate ENTIRELY within PDF user space (y-up, edges). They never\n * produce viewer-local (y-down) geometry — that conversion needs the crop box\n * plus rotation/scale and lives in the v3 viewer layer (the `Mat2D` matrix\n * model), never here.\n */\n\nimport type { PdfPoint, PdfQuad, PdfRect, PdfSize } from './primitives';\n\n/** Origin + size form of a `PdfRect`, still y-up (origin = bottom-left). */\nexport interface PdfOriginSize {\n x: number;\n y: number;\n width: number;\n height: number;\n}\n\n/**\n * Normalize a `PdfRect` to the y-up invariant (`left <= right`, `bottom <= top`),\n * regardless of how the PDF ordered the corners (a `/Rect` array or `FS_RECTF`\n * may carry them in any order). THE enforcement point for the \"PdfRect is always\n * normalized\" rule: every producer that reads a raw box from PDFium passes it\n * through here, so the invariant holds once, centrally — downstream `width =\n * right - left` is never negative.\n */\nexport function normalizePdfRect(r: PdfRect): PdfRect {\n return {\n left: Math.min(r.left, r.right),\n right: Math.max(r.left, r.right),\n bottom: Math.min(r.top, r.bottom),\n top: Math.max(r.top, r.bottom),\n };\n}\n\nexport function pdfRectWidth(r: PdfRect): number {\n return r.right - r.left;\n}\n\nexport function pdfRectHeight(r: PdfRect): number {\n return r.top - r.bottom;\n}\n\nexport function pdfRectSize(r: PdfRect): PdfSize {\n return { width: r.right - r.left, height: r.top - r.bottom };\n}\n\n/** Convert edges -> origin+size, staying y-up (origin at bottom-left). */\nexport function pdfRectToOriginSize(r: PdfRect): PdfOriginSize {\n return { x: r.left, y: r.bottom, width: r.right - r.left, height: r.top - r.bottom };\n}\n\n/** Convert y-up origin+size back to edges. */\nexport function pdfRectFromOriginSize(o: PdfOriginSize): PdfRect {\n return { left: o.x, bottom: o.y, right: o.x + o.width, top: o.y + o.height };\n}\n\n/**\n * Enclosing axis-aligned box of a quad, in PDF user space. Orientation\n * agnostic (correct for rotated/skewed quads) — this is what highlight\n * rendering and hit-testing want.\n */\nexport function pdfQuadBounds(q: PdfQuad): PdfRect {\n const xs = [q.p1.x, q.p2.x, q.p3.x, q.p4.x];\n const ys = [q.p1.y, q.p2.y, q.p3.y, q.p4.y];\n return {\n left: Math.min(...xs),\n right: Math.max(...xs),\n bottom: Math.min(...ys),\n top: Math.max(...ys),\n };\n}\n\n/** Named corners of a quad, in PDF user space (y-up). */\nexport interface PdfQuadCorners {\n topLeft: PdfPoint;\n topRight: PdfPoint;\n bottomLeft: PdfPoint;\n bottomRight: PdfPoint;\n}\n\n/**\n * Axis-aligned named-corner interpretation of a quad.\n *\n * VALID ONLY for upright (non-rotated, non-skewed) quads: it is derived from\n * the enclosing bounds, so for rotated/skewed quads it returns the bounding\n * box corners, not the true geometric corners. For arbitrary quads use the\n * positional `p1..p4` or `pdfQuadBounds` directly.\n */\nexport function pdfQuadCorners(q: PdfQuad): PdfQuadCorners {\n const b = pdfQuadBounds(q);\n return {\n topLeft: { x: b.left, y: b.top },\n topRight: { x: b.right, y: b.top },\n bottomLeft: { x: b.left, y: b.bottom },\n bottomRight: { x: b.right, y: b.bottom },\n };\n}\n\n/**\n * Build a quad from named corners, in PDFium `FS_QUADPOINTSF` slot order\n * (`p1 = topLeft`, `p2 = topRight`, `p3 = bottomLeft`, `p4 = bottomRight`).\n * The inverse of `pdfQuadCorners` for upright quads.\n */\nexport function pdfQuadFromCorners(c: PdfQuadCorners): PdfQuad {\n return { p1: c.topLeft, p2: c.topRight, p3: c.bottomLeft, p4: c.bottomRight };\n}\n","import { pdfQuadBounds } from '../geometry/convert';\nimport type { PdfQuad, PdfRect } from '../geometry/primitives';\n\n/**\n * One upright glyph's geometry in PDF user space (y-up edges).\n *\n * `looseBox` is the loose char cell (pdfium `FPDFText_GetLooseCharBox`): the\n * font-metric box covering the full glyph cell without regard to the actual\n * glyph shape. Always present (zeroed + flagged empty for degenerate glyphs);\n * it's the box selection envelopes are built from.\n *\n * `tightBox` is the tight char box (pdfium `FPDFText_GetCharBox`): the box\n * hugging the actual glyph shape. Optional — absent for empty/whitespace\n * glyphs that have no real outline.\n *\n * `flags` carries slim per-glyph state (bit 1 = space, bit 2 = empty).\n */\nexport interface PageGeometryGlyph {\n looseBox: PdfRect;\n flags: number;\n tightBox?: PdfRect;\n}\n\n/**\n * One non-upright glyph's geometry: the exact oriented cells, in PDF user\n * space (page coordinates — NOT a local frame). The corner SLOTS are\n * frame-geometric in the glyph's own upright frame:\n * `p1` = upper-start, `p2` = upper-end, `p3` = lower-start, `p4` = lower-end,\n * where \"upper\" is the ascent side and \"start\" is the frame's minimum-x side.\n * Deliberately NOT a bidi/reading-order statement — advance direction is a\n * glyph-sequence concern, carried separately where consumers need it.\n *\n * Degenerate glyphs carry a zeroed `looseQuad` plus the empty flag (bit 2),\n * mirroring the upright variant's zeroed-box convention. `flags` bits match\n * {@link PageGeometryGlyph.flags}.\n */\nexport interface RotatedGeometryGlyph {\n looseQuad: PdfQuad;\n flags: number;\n tightQuad?: PdfQuad;\n}\n\n/**\n * A run whose char matrix is upright — byte-identical to the wire shape that\n * predates orientation support, so upright documents never pay for it.\n */\nexport interface UprightGeometryRun {\n rect: PdfRect;\n charStart: number;\n glyphs: PageGeometryGlyph[];\n fontSize?: number;\n}\n\n/**\n * A run whose char matrix is NOT upright (rotated, sheared, or mirrored).\n *\n * `rect` stays a page-space AABB (culling), like every other wire rect.\n * `rotation` is the baseline angle in radians, CCW in PDF y-up space\n * (`atan2(m.b, m.a)` of the run's char matrix). Note a shear-only run has\n * `rotation === 0` and still uses this variant — its cells are\n * parallelograms an AABB would misrepresent. `ascentFlip` is true when the\n * ascent vector maps opposite the rotated frame's +y (mirrored /\n * negative-determinant content).\n */\nexport interface RotatedGeometryRun {\n rect: PdfRect;\n charStart: number;\n glyphs: RotatedGeometryGlyph[];\n rotation: number;\n ascentFlip: boolean;\n fontSize?: number;\n}\n\n/**\n * One text run (contiguous glyphs sharing a text object and orientation).\n * A discriminated union so consumers CANNOT read axis-aligned boxes off\n * rotated text by accident — handling orientation is a compile-time\n * obligation, not a runtime discovery. Narrow with\n * {@link isRotatedGeometryRun}, or use the uniform {@link glyphLooseQuad} /\n * {@link glyphLooseBounds} views.\n */\nexport type PageGeometryRun = UprightGeometryRun | RotatedGeometryRun;\n\n/**\n * Geometry-only text layout for one page, in PDF user space (y-up). The v3\n * viewer converts to content/view space via the page geometry matrix.\n *\n * Pure content, addressed and cached by `contentVersion`. Carries NO\n * annotation liveness envelope (`PageState`) — see `PageTextSnapshot` for\n * the rationale; liveness lives on annotation reads.\n */\nexport interface PageGeometrySnapshot {\n runs: PageGeometryRun[];\n}\n\n/** Narrowing guard: is this run the rotated (non-upright) variant? */\nexport function isRotatedGeometryRun(run: PageGeometryRun): run is RotatedGeometryRun {\n return 'rotation' in run;\n}\n\n/**\n * Uniform oriented-cell view over either run variant: the glyph's loose cell\n * as a quad (synthesized from the box corners when the run is upright, in\n * the same frame-geometric slot order).\n */\nexport function glyphLooseQuad(run: PageGeometryRun, index: number): PdfQuad {\n if (isRotatedGeometryRun(run)) return run.glyphs[index].looseQuad;\n const b = run.glyphs[index].looseBox;\n return {\n p1: { x: b.left, y: b.top },\n p2: { x: b.right, y: b.top },\n p3: { x: b.left, y: b.bottom },\n p4: { x: b.right, y: b.bottom },\n };\n}\n\n/**\n * Uniform AABB view over either run variant: the glyph's loose box, or the\n * enclosing bounds of its oriented cell when the run is rotated. The\n * conservative envelope for consumers that genuinely want a box (culling,\n * scroll targets) — never a substitute for handling orientation in geometry\n * that gets DRAWN.\n */\nexport function glyphLooseBounds(run: PageGeometryRun, index: number): PdfRect {\n if (isRotatedGeometryRun(run)) return pdfQuadBounds(run.glyphs[index].looseQuad);\n return run.glyphs[index].looseBox;\n}\n","import { EngineErrorCode } from './EngineErrorCode';\n\nexport interface EngineErrorOptions {\n cause?: unknown;\n details?: Record<string, unknown>;\n}\n\n/**\n * Single error class shared across engine implementations. Has a stable\n * machine-readable `code` (see EngineErrorCode) so callers can match without\n * sniffing message strings.\n */\nexport class EngineError extends Error {\n override readonly name = 'EngineError';\n readonly code: EngineErrorCode;\n readonly details?: Record<string, unknown>;\n\n constructor(code: EngineErrorCode, message?: string, opts: EngineErrorOptions = {}) {\n super(message ?? code, opts.cause === undefined ? undefined : { cause: opts.cause });\n this.code = code;\n this.details = opts.details;\n }\n\n static is(value: unknown, code?: EngineErrorCode): value is EngineError {\n if (\n !(value instanceof EngineError) &&\n (value as { name?: string } | null)?.name !== 'EngineError'\n ) {\n return false;\n }\n if (code === undefined) return true;\n return (value as EngineError).code === code;\n }\n\n toJSON(): {\n name: 'EngineError';\n code: EngineErrorCode;\n message: string;\n details?: Record<string, unknown>;\n } {\n return {\n name: 'EngineError',\n code: this.code,\n message: this.message,\n details: this.details,\n };\n }\n}\n\nexport interface SerializedEngineError {\n name: 'EngineError';\n code: EngineErrorCode;\n message: string;\n details?: Record<string, unknown>;\n}\n\nexport function serializeError(err: unknown): SerializedEngineError {\n if (EngineError.is(err)) {\n return err.toJSON();\n }\n if (err instanceof Error) {\n const code: EngineErrorCode =\n err.name === 'AbortError' ? EngineErrorCode.Aborted : EngineErrorCode.Unknown;\n return { name: 'EngineError', code, message: err.message };\n }\n return {\n name: 'EngineError',\n code: EngineErrorCode.Unknown,\n message: String(err ?? 'unknown error'),\n };\n}\n\nexport function deserializeError(payload: SerializedEngineError): EngineError {\n return new EngineError(payload.code, payload.message, { details: payload.details });\n}\n","/**\n * Text folding for literal search: the deterministic normalization applied\n * to BOTH the page text and the needle so that \"Café\" finds \"cafe\" and a\n * line-wrapped \"hello\\n world\" finds \"hello world\".\n *\n * Fold version 1:\n * - whitespace runs collapse to a single space (any `\\s`, including the\n * spaces some compatibility decompositions emit),\n * - each code point is NFKD-decomposed (ligatures split: \"fi\" → \"fi\",\n * \"²\" → \"2\"),\n * - combining marks are stripped unless `keepMarks`,\n * - case is folded via upper→lower round-trip unless `keepCase` (this\n * poor-man's full fold catches \"ß\"→\"ss\" and \"ς\"→\"σ\", which a plain\n * `toLowerCase` misses).\n *\n * Every folded code unit remembers which original code point produced it\n * (`map`), so match ranges found in folded space translate back to exact\n * original-text ranges — the property the whole anchor stage rests on.\n *\n * Pre-folded corpus artifacts store this fold's output; bump\n * `SEARCH_FOLD_VERSION` on ANY semantic change so stored corpora are\n * rebuilt instead of silently mismatching fresh needles.\n */\n\n/** Version stamp for persisted pre-folded corpus artifacts. */\nexport const SEARCH_FOLD_VERSION = 1;\n\nexport interface FoldOptions {\n /** Preserve case (matchCase). */\n keepCase?: boolean;\n /** Preserve combining marks (matchDiacritics). */\n keepMarks?: boolean;\n}\n\nexport interface FoldedText {\n folded: string;\n /** Folded code unit i → code-unit index of the original code point it came from. */\n map: Uint32Array;\n original: string;\n}\n\n/** A half-open match range in ORIGINAL code-unit space. */\nexport interface SearchMatchRange {\n start: number;\n length: number;\n}\n\nconst WHITESPACE = /\\s/;\nconst MARKS = /\\p{M}/gu;\n\nexport function foldText(original: string, options: FoldOptions = {}): FoldedText {\n const units: string[] = [];\n const map: number[] = [];\n let lastWasSpace = false;\n\n let index = 0;\n for (const cp of original) {\n let piece: string;\n if (WHITESPACE.test(cp)) {\n piece = ' ';\n } else {\n piece = cp.normalize('NFKD');\n if (!options.keepMarks) piece = piece.replace(MARKS, '');\n if (!options.keepCase) piece = piece.toUpperCase().toLowerCase();\n }\n // A decomposition can itself contain whitespace (U+00A8 → space +\n // combining diaeresis), so collapse runs at the unit level, not just\n // for source whitespace.\n for (let u = 0; u < piece.length; u++) {\n const unit = piece[u];\n if (WHITESPACE.test(unit)) {\n if (lastWasSpace) continue;\n units.push(' ');\n map.push(index);\n lastWasSpace = true;\n } else {\n units.push(unit);\n map.push(index);\n lastWasSpace = false;\n }\n }\n index += cp.length;\n }\n\n return { folded: units.join(''), map: Uint32Array.from(map), original };\n}\n\n/** Code-unit length of the code point starting at `index` (1 or 2). */\nfunction codePointLengthAt(text: string, index: number): number {\n const unit = text.charCodeAt(index);\n if (unit >= 0xd800 && unit <= 0xdbff && index + 1 < text.length) {\n const next = text.charCodeAt(index + 1);\n if (next >= 0xdc00 && next <= 0xdfff) return 2;\n }\n return 1;\n}\n\n/**\n * Translate a match found in folded space back to the original text.\n * The range covers whole original code points: a hit on either folded\n * half of \"fi\" spans the full ligature, and a hit ending on a collapsed\n * space extends only through the first whitespace char of the run (the\n * remainder is presentation, not match).\n */\nexport function toOriginalRange(\n folded: FoldedText,\n foldedStart: number,\n foldedLength: number,\n): SearchMatchRange {\n const start = folded.map[foldedStart];\n const lastOriginal = folded.map[foldedStart + foldedLength - 1];\n const end = lastOriginal + codePointLengthAt(folded.original, lastOriginal);\n return { start, length: end - start };\n}\n"],"mappings":";;;;;;;;;;A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WAAW,QAAQ,MAAM,QAAQ,OAAO,EAAE;GACvD,IAAI,CAAC,QAAQ,UAAU,QAAQ,MAAM,YAAY,CAAC,CAAC,YAAY;EACjE;EAIA,KAAK,IAAI,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;GACrC,MAAM,OAAO,MAAM;GACnB,IAAI,WAAW,KAAK,IAAI,GAAG;IACzB,IAAI,cAAc;IAClB,MAAM,KAAK,GAAG;IACd,IAAI,KAAK,KAAK;IACd,eAAe;GACjB,OAAO;IACL,MAAM,KAAK,IAAI;IACf,IAAI,KAAK,KAAK;IACd,eAAe;GACjB;EACF;EACA,SAAS,GAAG;CACd;CAEA,OAAO;EAAE,QAAQ,MAAM,KAAK,EAAE;EAAG,KAAK,YAAY,KAAK,GAAG;EAAG;CAAS;AACxE;;AAGA,SAAS,kBAAkB,MAAc,OAAuB;CAC9D,MAAM,OAAO,KAAK,WAAW,KAAK;CAClC,IAAI,QAAQ,SAAU,QAAQ,SAAU,QAAQ,IAAI,KAAK,QAAQ;EAC/D,MAAM,OAAO,KAAK,WAAW,QAAQ,CAAC;EACtC,IAAI,QAAQ,SAAU,QAAQ,OAAQ,OAAO;CAC/C;CACA,OAAO;AACT;;;;;;;;AASA,SAAgB,gBACd,QACA,aACA,cACkB;CAClB,MAAM,QAAQ,OAAO,IAAI;CACzB,MAAM,eAAe,OAAO,IAAI,cAAc,eAAe;CAE7D,OAAO;EAAE;EAAO,QADJ,eAAe,kBAAkB,OAAO,UAAU,YAAY,IAC5C;CAAM;AACtC"}
@@ -1,4 +1,4 @@
1
- import { f as EngineErrorCode } from "./PageInsertBlankInput-WKY0tr6S.js";
1
+ import { f as EngineErrorCode } from "./PageInsertBlankInput-cHq9-i-z.js";
2
2
  //#region src/geometry/convert.ts
3
3
  /**
4
4
  * Normalize a `PdfRect` to the y-up invariant (`left <= right`, `bottom <= top`),
@@ -331,4 +331,4 @@ function toOriginalRange(folded, foldedStart, foldedLength) {
331
331
  //#endregion
332
332
  export { pdfRectSize as _, deserializeError as a, glyphLooseBounds as c, normalizePdfRect as d, pdfQuadBounds as f, pdfRectHeight as g, pdfRectFromOriginSize as h, EngineError as i, glyphLooseQuad as l, pdfQuadFromCorners as m, foldText as n, serializeError as o, pdfQuadCorners as p, toOriginalRange as r, _defineProperty as s, SEARCH_FOLD_VERSION as t, isRotatedGeometryRun as u, pdfRectToOriginSize as v, pdfRectWidth as y };
333
333
 
334
- //# sourceMappingURL=fold-BfyxxwS6.js.map
334
+ //# sourceMappingURL=fold-CdEJTBTn.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fold-BfyxxwS6.js","names":[],"sources":["../src/geometry/convert.ts","../src/dto/PageGeometrySnapshot.ts","../src/errors/EngineError.ts","../src/search/fold.ts"],"sourcesContent":["/**\n * PDF-space-internal geometry helpers.\n *\n * These operate ENTIRELY within PDF user space (y-up, edges). They never\n * produce viewer-local (y-down) geometry — that conversion needs the crop box\n * plus rotation/scale and lives in the v3 viewer layer (the `Mat2D` matrix\n * model), never here.\n */\n\nimport type { PdfPoint, PdfQuad, PdfRect, PdfSize } from './primitives';\n\n/** Origin + size form of a `PdfRect`, still y-up (origin = bottom-left). */\nexport interface PdfOriginSize {\n x: number;\n y: number;\n width: number;\n height: number;\n}\n\n/**\n * Normalize a `PdfRect` to the y-up invariant (`left <= right`, `bottom <= top`),\n * regardless of how the PDF ordered the corners (a `/Rect` array or `FS_RECTF`\n * may carry them in any order). THE enforcement point for the \"PdfRect is always\n * normalized\" rule: every producer that reads a raw box from PDFium passes it\n * through here, so the invariant holds once, centrally — downstream `width =\n * right - left` is never negative.\n */\nexport function normalizePdfRect(r: PdfRect): PdfRect {\n return {\n left: Math.min(r.left, r.right),\n right: Math.max(r.left, r.right),\n bottom: Math.min(r.top, r.bottom),\n top: Math.max(r.top, r.bottom),\n };\n}\n\nexport function pdfRectWidth(r: PdfRect): number {\n return r.right - r.left;\n}\n\nexport function pdfRectHeight(r: PdfRect): number {\n return r.top - r.bottom;\n}\n\nexport function pdfRectSize(r: PdfRect): PdfSize {\n return { width: r.right - r.left, height: r.top - r.bottom };\n}\n\n/** Convert edges -> origin+size, staying y-up (origin at bottom-left). */\nexport function pdfRectToOriginSize(r: PdfRect): PdfOriginSize {\n return { x: r.left, y: r.bottom, width: r.right - r.left, height: r.top - r.bottom };\n}\n\n/** Convert y-up origin+size back to edges. */\nexport function pdfRectFromOriginSize(o: PdfOriginSize): PdfRect {\n return { left: o.x, bottom: o.y, right: o.x + o.width, top: o.y + o.height };\n}\n\n/**\n * Enclosing axis-aligned box of a quad, in PDF user space. Orientation\n * agnostic (correct for rotated/skewed quads) — this is what highlight\n * rendering and hit-testing want.\n */\nexport function pdfQuadBounds(q: PdfQuad): PdfRect {\n const xs = [q.p1.x, q.p2.x, q.p3.x, q.p4.x];\n const ys = [q.p1.y, q.p2.y, q.p3.y, q.p4.y];\n return {\n left: Math.min(...xs),\n right: Math.max(...xs),\n bottom: Math.min(...ys),\n top: Math.max(...ys),\n };\n}\n\n/** Named corners of a quad, in PDF user space (y-up). */\nexport interface PdfQuadCorners {\n topLeft: PdfPoint;\n topRight: PdfPoint;\n bottomLeft: PdfPoint;\n bottomRight: PdfPoint;\n}\n\n/**\n * Axis-aligned named-corner interpretation of a quad.\n *\n * VALID ONLY for upright (non-rotated, non-skewed) quads: it is derived from\n * the enclosing bounds, so for rotated/skewed quads it returns the bounding\n * box corners, not the true geometric corners. For arbitrary quads use the\n * positional `p1..p4` or `pdfQuadBounds` directly.\n */\nexport function pdfQuadCorners(q: PdfQuad): PdfQuadCorners {\n const b = pdfQuadBounds(q);\n return {\n topLeft: { x: b.left, y: b.top },\n topRight: { x: b.right, y: b.top },\n bottomLeft: { x: b.left, y: b.bottom },\n bottomRight: { x: b.right, y: b.bottom },\n };\n}\n\n/**\n * Build a quad from named corners, in PDFium `FS_QUADPOINTSF` slot order\n * (`p1 = topLeft`, `p2 = topRight`, `p3 = bottomLeft`, `p4 = bottomRight`).\n * The inverse of `pdfQuadCorners` for upright quads.\n */\nexport function pdfQuadFromCorners(c: PdfQuadCorners): PdfQuad {\n return { p1: c.topLeft, p2: c.topRight, p3: c.bottomLeft, p4: c.bottomRight };\n}\n","import { pdfQuadBounds } from '../geometry/convert';\nimport type { PdfQuad, PdfRect } from '../geometry/primitives';\n\n/**\n * One upright glyph's geometry in PDF user space (y-up edges).\n *\n * `looseBox` is the loose char cell (pdfium `FPDFText_GetLooseCharBox`): the\n * font-metric box covering the full glyph cell without regard to the actual\n * glyph shape. Always present (zeroed + flagged empty for degenerate glyphs);\n * it's the box selection envelopes are built from.\n *\n * `tightBox` is the tight char box (pdfium `FPDFText_GetCharBox`): the box\n * hugging the actual glyph shape. Optional — absent for empty/whitespace\n * glyphs that have no real outline.\n *\n * `flags` carries slim per-glyph state (bit 1 = space, bit 2 = empty).\n */\nexport interface PageGeometryGlyph {\n looseBox: PdfRect;\n flags: number;\n tightBox?: PdfRect;\n}\n\n/**\n * One non-upright glyph's geometry: the exact oriented cells, in PDF user\n * space (page coordinates — NOT a local frame). The corner SLOTS are\n * frame-geometric in the glyph's own upright frame:\n * `p1` = upper-start, `p2` = upper-end, `p3` = lower-start, `p4` = lower-end,\n * where \"upper\" is the ascent side and \"start\" is the frame's minimum-x side.\n * Deliberately NOT a bidi/reading-order statement — advance direction is a\n * glyph-sequence concern, carried separately where consumers need it.\n *\n * Degenerate glyphs carry a zeroed `looseQuad` plus the empty flag (bit 2),\n * mirroring the upright variant's zeroed-box convention. `flags` bits match\n * {@link PageGeometryGlyph.flags}.\n */\nexport interface RotatedGeometryGlyph {\n looseQuad: PdfQuad;\n flags: number;\n tightQuad?: PdfQuad;\n}\n\n/**\n * A run whose char matrix is upright — byte-identical to the wire shape that\n * predates orientation support, so upright documents never pay for it.\n */\nexport interface UprightGeometryRun {\n rect: PdfRect;\n charStart: number;\n glyphs: PageGeometryGlyph[];\n fontSize?: number;\n}\n\n/**\n * A run whose char matrix is NOT upright (rotated, sheared, or mirrored).\n *\n * `rect` stays a page-space AABB (culling), like every other wire rect.\n * `rotation` is the baseline angle in radians, CCW in PDF y-up space\n * (`atan2(m.b, m.a)` of the run's char matrix). Note a shear-only run has\n * `rotation === 0` and still uses this variant — its cells are\n * parallelograms an AABB would misrepresent. `ascentFlip` is true when the\n * ascent vector maps opposite the rotated frame's +y (mirrored /\n * negative-determinant content).\n */\nexport interface RotatedGeometryRun {\n rect: PdfRect;\n charStart: number;\n glyphs: RotatedGeometryGlyph[];\n rotation: number;\n ascentFlip: boolean;\n fontSize?: number;\n}\n\n/**\n * One text run (contiguous glyphs sharing a text object and orientation).\n * A discriminated union so consumers CANNOT read axis-aligned boxes off\n * rotated text by accident — handling orientation is a compile-time\n * obligation, not a runtime discovery. Narrow with\n * {@link isRotatedGeometryRun}, or use the uniform {@link glyphLooseQuad} /\n * {@link glyphLooseBounds} views.\n */\nexport type PageGeometryRun = UprightGeometryRun | RotatedGeometryRun;\n\n/**\n * Geometry-only text layout for one page, in PDF user space (y-up). The v3\n * viewer converts to content/view space via the page geometry matrix.\n *\n * Pure content, addressed and cached by `contentVersion`. Carries NO\n * annotation liveness envelope (`PageState`) — see `PageTextSnapshot` for\n * the rationale; liveness lives on annotation reads.\n */\nexport interface PageGeometrySnapshot {\n runs: PageGeometryRun[];\n}\n\n/** Narrowing guard: is this run the rotated (non-upright) variant? */\nexport function isRotatedGeometryRun(run: PageGeometryRun): run is RotatedGeometryRun {\n return 'rotation' in run;\n}\n\n/**\n * Uniform oriented-cell view over either run variant: the glyph's loose cell\n * as a quad (synthesized from the box corners when the run is upright, in\n * the same frame-geometric slot order).\n */\nexport function glyphLooseQuad(run: PageGeometryRun, index: number): PdfQuad {\n if (isRotatedGeometryRun(run)) return run.glyphs[index].looseQuad;\n const b = run.glyphs[index].looseBox;\n return {\n p1: { x: b.left, y: b.top },\n p2: { x: b.right, y: b.top },\n p3: { x: b.left, y: b.bottom },\n p4: { x: b.right, y: b.bottom },\n };\n}\n\n/**\n * Uniform AABB view over either run variant: the glyph's loose box, or the\n * enclosing bounds of its oriented cell when the run is rotated. The\n * conservative envelope for consumers that genuinely want a box (culling,\n * scroll targets) — never a substitute for handling orientation in geometry\n * that gets DRAWN.\n */\nexport function glyphLooseBounds(run: PageGeometryRun, index: number): PdfRect {\n if (isRotatedGeometryRun(run)) return pdfQuadBounds(run.glyphs[index].looseQuad);\n return run.glyphs[index].looseBox;\n}\n","import { EngineErrorCode } from './EngineErrorCode';\n\nexport interface EngineErrorOptions {\n cause?: unknown;\n details?: Record<string, unknown>;\n}\n\n/**\n * Single error class shared across engine implementations. Has a stable\n * machine-readable `code` (see EngineErrorCode) so callers can match without\n * sniffing message strings.\n */\nexport class EngineError extends Error {\n override readonly name = 'EngineError';\n readonly code: EngineErrorCode;\n readonly details?: Record<string, unknown>;\n\n constructor(code: EngineErrorCode, message?: string, opts: EngineErrorOptions = {}) {\n super(message ?? code, opts.cause === undefined ? undefined : { cause: opts.cause });\n this.code = code;\n this.details = opts.details;\n }\n\n static is(value: unknown, code?: EngineErrorCode): value is EngineError {\n if (\n !(value instanceof EngineError) &&\n (value as { name?: string } | null)?.name !== 'EngineError'\n ) {\n return false;\n }\n if (code === undefined) return true;\n return (value as EngineError).code === code;\n }\n\n toJSON(): {\n name: 'EngineError';\n code: EngineErrorCode;\n message: string;\n details?: Record<string, unknown>;\n } {\n return {\n name: 'EngineError',\n code: this.code,\n message: this.message,\n details: this.details,\n };\n }\n}\n\nexport interface SerializedEngineError {\n name: 'EngineError';\n code: EngineErrorCode;\n message: string;\n details?: Record<string, unknown>;\n}\n\nexport function serializeError(err: unknown): SerializedEngineError {\n if (EngineError.is(err)) {\n return err.toJSON();\n }\n if (err instanceof Error) {\n const code: EngineErrorCode =\n err.name === 'AbortError' ? EngineErrorCode.Aborted : EngineErrorCode.Unknown;\n return { name: 'EngineError', code, message: err.message };\n }\n return {\n name: 'EngineError',\n code: EngineErrorCode.Unknown,\n message: String(err ?? 'unknown error'),\n };\n}\n\nexport function deserializeError(payload: SerializedEngineError): EngineError {\n return new EngineError(payload.code, payload.message, { details: payload.details });\n}\n","/**\n * Text folding for literal search: the deterministic normalization applied\n * to BOTH the page text and the needle so that \"Café\" finds \"cafe\" and a\n * line-wrapped \"hello\\n world\" finds \"hello world\".\n *\n * Fold version 1:\n * - whitespace runs collapse to a single space (any `\\s`, including the\n * spaces some compatibility decompositions emit),\n * - each code point is NFKD-decomposed (ligatures split: \"fi\" → \"fi\",\n * \"²\" → \"2\"),\n * - combining marks are stripped unless `keepMarks`,\n * - case is folded via upper→lower round-trip unless `keepCase` (this\n * poor-man's full fold catches \"ß\"→\"ss\" and \"ς\"→\"σ\", which a plain\n * `toLowerCase` misses).\n *\n * Every folded code unit remembers which original code point produced it\n * (`map`), so match ranges found in folded space translate back to exact\n * original-text ranges — the property the whole anchor stage rests on.\n *\n * Pre-folded corpus artifacts store this fold's output; bump\n * `SEARCH_FOLD_VERSION` on ANY semantic change so stored corpora are\n * rebuilt instead of silently mismatching fresh needles.\n */\n\n/** Version stamp for persisted pre-folded corpus artifacts. */\nexport const SEARCH_FOLD_VERSION = 1;\n\nexport interface FoldOptions {\n /** Preserve case (matchCase). */\n keepCase?: boolean;\n /** Preserve combining marks (matchDiacritics). */\n keepMarks?: boolean;\n}\n\nexport interface FoldedText {\n folded: string;\n /** Folded code unit i → code-unit index of the original code point it came from. */\n map: Uint32Array;\n original: string;\n}\n\n/** A half-open match range in ORIGINAL code-unit space. */\nexport interface SearchMatchRange {\n start: number;\n length: number;\n}\n\nconst WHITESPACE = /\\s/;\nconst MARKS = /\\p{M}/gu;\n\nexport function foldText(original: string, options: FoldOptions = {}): FoldedText {\n const units: string[] = [];\n const map: number[] = [];\n let lastWasSpace = false;\n\n let index = 0;\n for (const cp of original) {\n let piece: string;\n if (WHITESPACE.test(cp)) {\n piece = ' ';\n } else {\n piece = cp.normalize('NFKD');\n if (!options.keepMarks) piece = piece.replace(MARKS, '');\n if (!options.keepCase) piece = piece.toUpperCase().toLowerCase();\n }\n // A decomposition can itself contain whitespace (U+00A8 → space +\n // combining diaeresis), so collapse runs at the unit level, not just\n // for source whitespace.\n for (let u = 0; u < piece.length; u++) {\n const unit = piece[u];\n if (WHITESPACE.test(unit)) {\n if (lastWasSpace) continue;\n units.push(' ');\n map.push(index);\n lastWasSpace = true;\n } else {\n units.push(unit);\n map.push(index);\n lastWasSpace = false;\n }\n }\n index += cp.length;\n }\n\n return { folded: units.join(''), map: Uint32Array.from(map), original };\n}\n\n/** Code-unit length of the code point starting at `index` (1 or 2). */\nfunction codePointLengthAt(text: string, index: number): number {\n const unit = text.charCodeAt(index);\n if (unit >= 0xd800 && unit <= 0xdbff && index + 1 < text.length) {\n const next = text.charCodeAt(index + 1);\n if (next >= 0xdc00 && next <= 0xdfff) return 2;\n }\n return 1;\n}\n\n/**\n * Translate a match found in folded space back to the original text.\n * The range covers whole original code points: a hit on either folded\n * half of \"fi\" spans the full ligature, and a hit ending on a collapsed\n * space extends only through the first whitespace char of the run (the\n * remainder is presentation, not match).\n */\nexport function toOriginalRange(\n folded: FoldedText,\n foldedStart: number,\n foldedLength: number,\n): SearchMatchRange {\n const start = folded.map[foldedStart];\n const lastOriginal = folded.map[foldedStart + foldedLength - 1];\n const end = lastOriginal + codePointLengthAt(folded.original, lastOriginal);\n return { start, length: end - start };\n}\n"],"mappings":";;;;;;;;;;AA2BA,SAAgB,iBAAiB,GAAqB;CACpD,OAAO;EACL,MAAM,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK;EAC9B,OAAO,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK;EAC/B,QAAQ,KAAK,IAAI,EAAE,KAAK,EAAE,MAAM;EAChC,KAAK,KAAK,IAAI,EAAE,KAAK,EAAE,MAAM;CAC/B;AACF;AAEA,SAAgB,aAAa,GAAoB;CAC/C,OAAO,EAAE,QAAQ,EAAE;AACrB;AAEA,SAAgB,cAAc,GAAoB;CAChD,OAAO,EAAE,MAAM,EAAE;AACnB;AAEA,SAAgB,YAAY,GAAqB;CAC/C,OAAO;EAAE,OA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G,KAAK,YAAY,KAAK,GAAG;EAAG;CAAS;AACxE;;AAGA,SAAS,kBAAkB,MAAc,OAAuB;CAC9D,MAAM,OAAO,KAAK,WAAW,KAAK;CAClC,IAAI,QAAQ,SAAU,QAAQ,SAAU,QAAQ,IAAI,KAAK,QAAQ;EAC/D,MAAM,OAAO,KAAK,WAAW,QAAQ,CAAC;EACtC,IAAI,QAAQ,SAAU,QAAQ,OAAQ,OAAO;CAC/C;CACA,OAAO;AACT;;;;;;;;AASA,SAAgB,gBACd,QACA,aACA,cACkB;CAClB,MAAM,QAAQ,OAAO,IAAI;CACzB,MAAM,eAAe,OAAO,IAAI,cAAc,eAAe;CAE7D,OAAO;EAAE;EAAO,QADJ,eAAe,kBAAkB,OAAO,UAAU,YAAY,IAC5C;CAAM;AACtC"}
1
+ {"version":3,"file":"fold-CdEJTBTn.js","names":[],"sources":["../src/geometry/convert.ts","../src/dto/PageGeometrySnapshot.ts","../src/errors/EngineError.ts","../src/search/fold.ts"],"sourcesContent":["/**\n * PDF-space-internal geometry helpers.\n *\n * These operate ENTIRELY within PDF user space (y-up, edges). They never\n * produce viewer-local (y-down) geometry — that conversion needs the crop box\n * plus rotation/scale and lives in the v3 viewer layer (the `Mat2D` matrix\n * model), never here.\n */\n\nimport type { PdfPoint, PdfQuad, PdfRect, PdfSize } from './primitives';\n\n/** Origin + size form of a `PdfRect`, still y-up (origin = bottom-left). */\nexport interface PdfOriginSize {\n x: number;\n y: number;\n width: number;\n height: number;\n}\n\n/**\n * Normalize a `PdfRect` to the y-up invariant (`left <= right`, `bottom <= top`),\n * regardless of how the PDF ordered the corners (a `/Rect` array or `FS_RECTF`\n * may carry them in any order). THE enforcement point for the \"PdfRect is always\n * normalized\" rule: every producer that reads a raw box from PDFium passes it\n * through here, so the invariant holds once, centrally — downstream `width =\n * right - left` is never negative.\n */\nexport function normalizePdfRect(r: PdfRect): PdfRect {\n return {\n left: Math.min(r.left, r.right),\n right: Math.max(r.left, r.right),\n bottom: Math.min(r.top, r.bottom),\n top: Math.max(r.top, r.bottom),\n };\n}\n\nexport function pdfRectWidth(r: PdfRect): number {\n return r.right - r.left;\n}\n\nexport function pdfRectHeight(r: PdfRect): number {\n return r.top - r.bottom;\n}\n\nexport function pdfRectSize(r: PdfRect): PdfSize {\n return { width: r.right - r.left, height: r.top - r.bottom };\n}\n\n/** Convert edges -> origin+size, staying y-up (origin at bottom-left). */\nexport function pdfRectToOriginSize(r: PdfRect): PdfOriginSize {\n return { x: r.left, y: r.bottom, width: r.right - r.left, height: r.top - r.bottom };\n}\n\n/** Convert y-up origin+size back to edges. */\nexport function pdfRectFromOriginSize(o: PdfOriginSize): PdfRect {\n return { left: o.x, bottom: o.y, right: o.x + o.width, top: o.y + o.height };\n}\n\n/**\n * Enclosing axis-aligned box of a quad, in PDF user space. Orientation\n * agnostic (correct for rotated/skewed quads) — this is what highlight\n * rendering and hit-testing want.\n */\nexport function pdfQuadBounds(q: PdfQuad): PdfRect {\n const xs = [q.p1.x, q.p2.x, q.p3.x, q.p4.x];\n const ys = [q.p1.y, q.p2.y, q.p3.y, q.p4.y];\n return {\n left: Math.min(...xs),\n right: Math.max(...xs),\n bottom: Math.min(...ys),\n top: Math.max(...ys),\n };\n}\n\n/** Named corners of a quad, in PDF user space (y-up). */\nexport interface PdfQuadCorners {\n topLeft: PdfPoint;\n topRight: PdfPoint;\n bottomLeft: PdfPoint;\n bottomRight: PdfPoint;\n}\n\n/**\n * Axis-aligned named-corner interpretation of a quad.\n *\n * VALID ONLY for upright (non-rotated, non-skewed) quads: it is derived from\n * the enclosing bounds, so for rotated/skewed quads it returns the bounding\n * box corners, not the true geometric corners. For arbitrary quads use the\n * positional `p1..p4` or `pdfQuadBounds` directly.\n */\nexport function pdfQuadCorners(q: PdfQuad): PdfQuadCorners {\n const b = pdfQuadBounds(q);\n return {\n topLeft: { x: b.left, y: b.top },\n topRight: { x: b.right, y: b.top },\n bottomLeft: { x: b.left, y: b.bottom },\n bottomRight: { x: b.right, y: b.bottom },\n };\n}\n\n/**\n * Build a quad from named corners, in PDFium `FS_QUADPOINTSF` slot order\n * (`p1 = topLeft`, `p2 = topRight`, `p3 = bottomLeft`, `p4 = bottomRight`).\n * The inverse of `pdfQuadCorners` for upright quads.\n */\nexport function pdfQuadFromCorners(c: PdfQuadCorners): PdfQuad {\n return { p1: c.topLeft, p2: c.topRight, p3: c.bottomLeft, p4: c.bottomRight };\n}\n","import { pdfQuadBounds } from '../geometry/convert';\nimport type { PdfQuad, PdfRect } from '../geometry/primitives';\n\n/**\n * One upright glyph's geometry in PDF user space (y-up edges).\n *\n * `looseBox` is the loose char cell (pdfium `FPDFText_GetLooseCharBox`): the\n * font-metric box covering the full glyph cell without regard to the actual\n * glyph shape. Always present (zeroed + flagged empty for degenerate glyphs);\n * it's the box selection envelopes are built from.\n *\n * `tightBox` is the tight char box (pdfium `FPDFText_GetCharBox`): the box\n * hugging the actual glyph shape. Optional — absent for empty/whitespace\n * glyphs that have no real outline.\n *\n * `flags` carries slim per-glyph state (bit 1 = space, bit 2 = empty).\n */\nexport interface PageGeometryGlyph {\n looseBox: PdfRect;\n flags: number;\n tightBox?: PdfRect;\n}\n\n/**\n * One non-upright glyph's geometry: the exact oriented cells, in PDF user\n * space (page coordinates — NOT a local frame). The corner SLOTS are\n * frame-geometric in the glyph's own upright frame:\n * `p1` = upper-start, `p2` = upper-end, `p3` = lower-start, `p4` = lower-end,\n * where \"upper\" is the ascent side and \"start\" is the frame's minimum-x side.\n * Deliberately NOT a bidi/reading-order statement — advance direction is a\n * glyph-sequence concern, carried separately where consumers need it.\n *\n * Degenerate glyphs carry a zeroed `looseQuad` plus the empty flag (bit 2),\n * mirroring the upright variant's zeroed-box convention. `flags` bits match\n * {@link PageGeometryGlyph.flags}.\n */\nexport interface RotatedGeometryGlyph {\n looseQuad: PdfQuad;\n flags: number;\n tightQuad?: PdfQuad;\n}\n\n/**\n * A run whose char matrix is upright — byte-identical to the wire shape that\n * predates orientation support, so upright documents never pay for it.\n */\nexport interface UprightGeometryRun {\n rect: PdfRect;\n charStart: number;\n glyphs: PageGeometryGlyph[];\n fontSize?: number;\n}\n\n/**\n * A run whose char matrix is NOT upright (rotated, sheared, or mirrored).\n *\n * `rect` stays a page-space AABB (culling), like every other wire rect.\n * `rotation` is the baseline angle in radians, CCW in PDF y-up space\n * (`atan2(m.b, m.a)` of the run's char matrix). Note a shear-only run has\n * `rotation === 0` and still uses this variant — its cells are\n * parallelograms an AABB would misrepresent. `ascentFlip` is true when the\n * ascent vector maps opposite the rotated frame's +y (mirrored /\n * negative-determinant content).\n */\nexport interface RotatedGeometryRun {\n rect: PdfRect;\n charStart: number;\n glyphs: RotatedGeometryGlyph[];\n rotation: number;\n ascentFlip: boolean;\n fontSize?: number;\n}\n\n/**\n * One text run (contiguous glyphs sharing a text object and orientation).\n * A discriminated union so consumers CANNOT read axis-aligned boxes off\n * rotated text by accident — handling orientation is a compile-time\n * obligation, not a runtime discovery. Narrow with\n * {@link isRotatedGeometryRun}, or use the uniform {@link glyphLooseQuad} /\n * {@link glyphLooseBounds} views.\n */\nexport type PageGeometryRun = UprightGeometryRun | RotatedGeometryRun;\n\n/**\n * Geometry-only text layout for one page, in PDF user space (y-up). The v3\n * viewer converts to content/view space via the page geometry matrix.\n *\n * Pure content, addressed and cached by `contentVersion`. Carries NO\n * annotation liveness envelope (`PageState`) — see `PageTextSnapshot` for\n * the rationale; liveness lives on annotation reads.\n */\nexport interface PageGeometrySnapshot {\n runs: PageGeometryRun[];\n}\n\n/** Narrowing guard: is this run the rotated (non-upright) variant? */\nexport function isRotatedGeometryRun(run: PageGeometryRun): run is RotatedGeometryRun {\n return 'rotation' in run;\n}\n\n/**\n * Uniform oriented-cell view over either run variant: the glyph's loose cell\n * as a quad (synthesized from the box corners when the run is upright, in\n * the same frame-geometric slot order).\n */\nexport function glyphLooseQuad(run: PageGeometryRun, index: number): PdfQuad {\n if (isRotatedGeometryRun(run)) return run.glyphs[index].looseQuad;\n const b = run.glyphs[index].looseBox;\n return {\n p1: { x: b.left, y: b.top },\n p2: { x: b.right, y: b.top },\n p3: { x: b.left, y: b.bottom },\n p4: { x: b.right, y: b.bottom },\n };\n}\n\n/**\n * Uniform AABB view over either run variant: the glyph's loose box, or the\n * enclosing bounds of its oriented cell when the run is rotated. The\n * conservative envelope for consumers that genuinely want a box (culling,\n * scroll targets) — never a substitute for handling orientation in geometry\n * that gets DRAWN.\n */\nexport function glyphLooseBounds(run: PageGeometryRun, index: number): PdfRect {\n if (isRotatedGeometryRun(run)) return pdfQuadBounds(run.glyphs[index].looseQuad);\n return run.glyphs[index].looseBox;\n}\n","import { EngineErrorCode } from './EngineErrorCode';\n\nexport interface EngineErrorOptions {\n cause?: unknown;\n details?: Record<string, unknown>;\n}\n\n/**\n * Single error class shared across engine implementations. Has a stable\n * machine-readable `code` (see EngineErrorCode) so callers can match without\n * sniffing message strings.\n */\nexport class EngineError extends Error {\n override readonly name = 'EngineError';\n readonly code: EngineErrorCode;\n readonly details?: Record<string, unknown>;\n\n constructor(code: EngineErrorCode, message?: string, opts: EngineErrorOptions = {}) {\n super(message ?? code, opts.cause === undefined ? undefined : { cause: opts.cause });\n this.code = code;\n this.details = opts.details;\n }\n\n static is(value: unknown, code?: EngineErrorCode): value is EngineError {\n if (\n !(value instanceof EngineError) &&\n (value as { name?: string } | null)?.name !== 'EngineError'\n ) {\n return false;\n }\n if (code === undefined) return true;\n return (value as EngineError).code === code;\n }\n\n toJSON(): {\n name: 'EngineError';\n code: EngineErrorCode;\n message: string;\n details?: Record<string, unknown>;\n } {\n return {\n name: 'EngineError',\n code: this.code,\n message: this.message,\n details: this.details,\n };\n }\n}\n\nexport interface SerializedEngineError {\n name: 'EngineError';\n code: EngineErrorCode;\n message: string;\n details?: Record<string, unknown>;\n}\n\nexport function serializeError(err: unknown): SerializedEngineError {\n if (EngineError.is(err)) {\n return err.toJSON();\n }\n if (err instanceof Error) {\n const code: EngineErrorCode =\n err.name === 'AbortError' ? EngineErrorCode.Aborted : EngineErrorCode.Unknown;\n return { name: 'EngineError', code, message: err.message };\n }\n return {\n name: 'EngineError',\n code: EngineErrorCode.Unknown,\n message: String(err ?? 'unknown error'),\n };\n}\n\nexport function deserializeError(payload: SerializedEngineError): EngineError {\n return new EngineError(payload.code, payload.message, { details: payload.details });\n}\n","/**\n * Text folding for literal search: the deterministic normalization applied\n * to BOTH the page text and the needle so that \"Café\" finds \"cafe\" and a\n * line-wrapped \"hello\\n world\" finds \"hello world\".\n *\n * Fold version 1:\n * - whitespace runs collapse to a single space (any `\\s`, including the\n * spaces some compatibility decompositions emit),\n * - each code point is NFKD-decomposed (ligatures split: \"fi\" → \"fi\",\n * \"²\" → \"2\"),\n * - combining marks are stripped unless `keepMarks`,\n * - case is folded via upper→lower round-trip unless `keepCase` (this\n * poor-man's full fold catches \"ß\"→\"ss\" and \"ς\"→\"σ\", which a plain\n * `toLowerCase` misses).\n *\n * Every folded code unit remembers which original code point produced it\n * (`map`), so match ranges found in folded space translate back to exact\n * original-text ranges — the property the whole anchor stage rests on.\n *\n * Pre-folded corpus artifacts store this fold's output; bump\n * `SEARCH_FOLD_VERSION` on ANY semantic change so stored corpora are\n * rebuilt instead of silently mismatching fresh needles.\n */\n\n/** Version stamp for persisted pre-folded corpus artifacts. */\nexport const SEARCH_FOLD_VERSION = 1;\n\nexport interface FoldOptions {\n /** Preserve case (matchCase). */\n keepCase?: boolean;\n /** Preserve combining marks (matchDiacritics). */\n keepMarks?: boolean;\n}\n\nexport interface FoldedText {\n folded: string;\n /** Folded code unit i → code-unit index of the original code point it came from. */\n map: Uint32Array;\n original: string;\n}\n\n/** A half-open match range in ORIGINAL code-unit space. */\nexport interface SearchMatchRange {\n start: number;\n length: number;\n}\n\nconst WHITESPACE = /\\s/;\nconst MARKS = /\\p{M}/gu;\n\nexport function foldText(original: string, options: FoldOptions = {}): FoldedText {\n const units: string[] = [];\n const map: number[] = [];\n let lastWasSpace = false;\n\n let index = 0;\n for (const cp of original) {\n let piece: string;\n if (WHITESPACE.test(cp)) {\n piece = ' ';\n } else {\n piece = cp.normalize('NFKD');\n if (!options.keepMarks) piece = piece.replace(MARKS, '');\n if (!options.keepCase) piece = piece.toUpperCase().toLowerCase();\n }\n // A decomposition can itself contain whitespace (U+00A8 → space +\n // combining diaeresis), so collapse runs at the unit level, not just\n // for source whitespace.\n for (let u = 0; u < piece.length; u++) {\n const unit = piece[u];\n if (WHITESPACE.test(unit)) {\n if (lastWasSpace) continue;\n units.push(' ');\n map.push(index);\n lastWasSpace = true;\n } else {\n units.push(unit);\n map.push(index);\n lastWasSpace = false;\n }\n }\n index += cp.length;\n }\n\n return { folded: units.join(''), map: Uint32Array.from(map), original };\n}\n\n/** Code-unit length of the code point starting at `index` (1 or 2). */\nfunction codePointLengthAt(text: string, index: number): number {\n const unit = text.charCodeAt(index);\n if (unit >= 0xd800 && unit <= 0xdbff && index + 1 < text.length) {\n const next = text.charCodeAt(index + 1);\n if (next >= 0xdc00 && next <= 0xdfff) return 2;\n }\n return 1;\n}\n\n/**\n * Translate a match found in folded space back to the original text.\n * The range covers whole original code points: a hit on either folded\n * half of \"fi\" spans the full ligature, and a hit ending on a collapsed\n * space extends only through the first whitespace char of the run (the\n * remainder is presentation, not match).\n */\nexport function toOriginalRange(\n folded: FoldedText,\n foldedStart: number,\n foldedLength: number,\n): SearchMatchRange {\n const start = folded.map[foldedStart];\n const lastOriginal = folded.map[foldedStart + foldedLength - 1];\n const end = lastOriginal + codePointLengthAt(folded.original, lastOriginal);\n return { start, length: end - start };\n}\n"],"mappings":";;;;;;;;;;AA2BA,SAAgB,iBAAiB,GAAqB;CACpD,OAAO;EACL,MAAM,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK;EAC9B,OAAO,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK;EAC/B,QAAQ,KAAK,IAAI,EAAE,KAAK,EAAE,MAAM;EAChC,KAAK,KAAK,IAAI,EAAE,KAAK,EAAE,MAAM;CAC/B;AACF;AAEA,SAAgB,aAAa,GAAoB;C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GACjB,OAAO;IACL,MAAM,KAAK,IAAI;IACf,IAAI,KAAK,KAAK;IACd,eAAe;GACjB;EACF;EACA,SAAS,GAAG;CACd;CAEA,OAAO;EAAE,QAAQ,MAAM,KAAK,EAAE;EAAG,KAAK,YAAY,KAAK,GAAG;EAAG;CAAS;AACxE;;AAGA,SAAS,kBAAkB,MAAc,OAAuB;CAC9D,MAAM,OAAO,KAAK,WAAW,KAAK;CAClC,IAAI,QAAQ,SAAU,QAAQ,SAAU,QAAQ,IAAI,KAAK,QAAQ;EAC/D,MAAM,OAAO,KAAK,WAAW,QAAQ,CAAC;EACtC,IAAI,QAAQ,SAAU,QAAQ,OAAQ,OAAO;CAC/C;CACA,OAAO;AACT;;;;;;;;AASA,SAAgB,gBACd,QACA,aACA,cACkB;CAClB,MAAM,QAAQ,OAAO,IAAI;CACzB,MAAM,eAAe,OAAO,IAAI,cAAc,eAAe;CAE7D,OAAO;EAAE;EAAO,QADJ,eAAe,kBAAkB,OAAO,UAAU,YAAY,IAC5C;CAAM;AACtC"}
package/dist/index.cjs CHANGED
@@ -1,10 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_builders = require("./builders-8Hl1AYNU.cjs");
3
- const require_fold = require("./fold-C7I5GpBz.cjs");
4
- const require_PageInsertBlankInput = require("./PageInsertBlankInput-CzShuSJI.cjs");
5
- const require_resolver = require("./resolver-D-jumvgM.cjs");
2
+ const require_builders = require("./builders-Bqm8yTpi.cjs");
3
+ const require_fold = require("./fold-2V29cxCV.cjs");
4
+ const require_PageInsertBlankInput = require("./PageInsertBlankInput-CqXBmFhN.cjs");
5
+ const require_resolver = require("./resolver-CYVNV4hn.cjs");
6
6
  exports.ANNOTATION_SUBTYPES = require_PageInsertBlankInput.ANNOTATION_SUBTYPES;
7
+ exports.DEFAULT_EDGE_RESOLVER_BUDGET = require_builders.DEFAULT_EDGE_RESOLVER_BUDGET;
7
8
  exports.DEFAULT_PDF_SAVE_MODE = require_builders.DEFAULT_PDF_SAVE_MODE;
9
+ exports.EdgeResolver = require_builders.EdgeResolver;
8
10
  exports.EngineError = require_fold.EngineError;
9
11
  exports.EngineErrorCode = require_PageInsertBlankInput.EngineErrorCode;
10
12
  exports.InvalidScope = require_resolver.InvalidScope;
@@ -19,8 +21,11 @@ exports.PermissionDenied = require_resolver.PermissionDenied;
19
21
  exports.SEARCH_FOLD_VERSION = require_fold.SEARCH_FOLD_VERSION;
20
22
  exports.SEARCH_REGEX_MAX_LENGTH = require_builders.SEARCH_REGEX_MAX_LENGTH;
21
23
  exports.SEARCH_SNIPPET_CONTEXT = require_builders.SEARCH_SNIPPET_CONTEXT;
24
+ exports.SIGNATURE_POLICY_VERSION = require_resolver.SIGNATURE_POLICY_VERSION;
22
25
  exports.UNKNOWN_WEAK_ANNOTATION_STATE = require_builders.UNKNOWN_WEAK_ANNOTATION_STATE;
26
+ exports.USAGE_INCOMPLETE = require_builders.USAGE_INCOMPLETE;
23
27
  exports.appearanceImpactOf = require_builders.appearanceImpactOf;
28
+ exports.assessmentOf = require_builders.assessmentOf;
24
29
  exports.boundaryTextOffset = require_PageInsertBlankInput.boundaryTextOffset;
25
30
  exports.buildCommentThreads = require_builders.buildCommentThreads;
26
31
  exports.buildPageTextLayout = require_builders.buildPageTextLayout;
@@ -28,6 +33,7 @@ exports.buildSnippet = require_builders.buildSnippet;
28
33
  exports.buildThreads = require_builders.buildThreads;
29
34
  exports.canonicalSearchQuery = require_builders.canonicalSearchQuery;
30
35
  exports.caps = require_builders.caps;
36
+ exports.changedKeys = require_builders.changedKeys;
31
37
  exports.changesAnnotationList = require_builders.changesAnnotationList;
32
38
  exports.charBoundaryAtTextOffset = require_PageInsertBlankInput.charBoundaryAtTextOffset;
33
39
  exports.charMapViolation = require_PageInsertBlankInput.charMapViolation;
@@ -38,18 +44,24 @@ exports.checkCollab = require_resolver.checkCollab;
38
44
  exports.checkSetGroup = require_resolver.checkSetGroup;
39
45
  exports.classifyRelation = require_builders.classifyRelation;
40
46
  exports.collab = require_builders.collab;
47
+ exports.combine = require_builders.combine;
48
+ exports.conclude = require_builders.conclude;
41
49
  exports.createPageImageHandle = require_builders.createPageImageHandle;
42
50
  exports.decodeFieldRefKey = require_builders.decodeFieldRefKey;
43
51
  exports.decodePdfBits = require_builders.decodePdfBits;
44
52
  exports.decodeStableIdKey = require_builders.decodeStableIdKey;
45
53
  exports.decodeSubmitFormFlags = require_builders.decodeSubmitFormFlags;
54
+ exports.deriveProtection = require_resolver.deriveProtection;
46
55
  exports.deserializeError = require_fold.deserializeError;
56
+ exports.dictEntries = require_builders.dictEntries;
47
57
  exports.encodeFieldRefKey = require_builders.encodeFieldRefKey;
48
58
  exports.encodeStableIdKey = require_builders.encodeStableIdKey;
59
+ exports.evaluateStep = require_builders.evaluateStep;
49
60
  exports.expandRawScope = require_resolver.expandRawScope;
50
61
  exports.expandTextRangeToLine = require_builders.expandTextRangeToLine;
51
62
  exports.expandTextRangeToWord = require_builders.expandTextRangeToWord;
52
63
  exports.expandedCapabilities = require_resolver.expandedCapabilities;
64
+ exports.fieldLockFor = require_resolver.fieldLockFor;
53
65
  exports.filterMatches = require_resolver.filterMatches;
54
66
  exports.foldOptionsFor = require_builders.foldOptionsFor;
55
67
  exports.foldText = require_fold.foldText;
@@ -60,14 +72,20 @@ exports.isRotatedGeometryRun = require_fold.isRotatedGeometryRun;
60
72
  exports.isStateAnnotation = require_builders.isStateAnnotation;
61
73
  exports.isValidPageObjectNumber = require_builders.isValidPageObjectNumber;
62
74
  exports.knownWeakAnnotationState = require_builders.knownWeakAnnotationState;
75
+ exports.levelAllows = require_resolver.levelAllows;
76
+ exports.levelFromPermission = require_resolver.levelFromPermission;
77
+ exports.lockCovers = require_resolver.lockCovers;
78
+ exports.lockNameCovers = require_resolver.lockNameCovers;
63
79
  exports.matchLiteral = require_builders.matchLiteral;
64
80
  exports.matchPageText = require_builders.matchPageText;
65
81
  exports.matchRegex = require_builders.matchRegex;
66
82
  exports.materializePdfPermissions = require_builders.materializePdfPermissions;
83
+ exports.minLevel = require_resolver.minLevel;
67
84
  exports.normalizeAnnotationDraft = require_builders.normalizeAnnotationDraft;
68
85
  exports.normalizeAnnotationPatch = require_builders.normalizeAnnotationPatch;
69
86
  exports.normalizeAttachmentFileSource = require_builders.normalizeAttachmentFileSource;
70
87
  exports.normalizePdfRect = require_fold.normalizePdfRect;
88
+ exports.parsePdfValue = require_builders.parsePdfValue;
71
89
  exports.parseScope = require_resolver.parseScope;
72
90
  exports.pdfPermissions = require_builders.pdfPermissions;
73
91
  exports.pdfQuadBounds = require_fold.pdfQuadBounds;
@@ -78,9 +96,18 @@ exports.pdfRectHeight = require_fold.pdfRectHeight;
78
96
  exports.pdfRectSize = require_fold.pdfRectSize;
79
97
  exports.pdfRectToOriginSize = require_fold.pdfRectToOriginSize;
80
98
  exports.pdfRectWidth = require_fold.pdfRectWidth;
99
+ exports.pdfValueEquals = require_builders.pdfValueEquals;
100
+ exports.primaryFinding = require_builders.primaryFinding;
101
+ exports.protectedCapabilities = require_resolver.protectedCapabilities;
81
102
  exports.refKey = require_builders.refKey;
103
+ exports.refsOf = require_builders.refsOf;
82
104
  exports.resolveBinarySource = require_builders.resolveBinarySource;
105
+ exports.restrictionsFor = require_builders.restrictionsFor;
106
+ exports.restrictionsOf = require_builders.restrictionsOf;
83
107
  exports.revisionTokensEqual = require_builders.revisionTokensEqual;
108
+ exports.richTextParagraphsFromPlainText = require_builders.richTextParagraphsFromPlainText;
109
+ exports.richTextPlainText = require_builders.richTextPlainText;
110
+ exports.sameEffectiveValue = require_builders.sameEffectiveValue;
84
111
  exports.searchContentEpoch = require_builders.searchContentEpoch;
85
112
  exports.searchRectsForRange = require_builders.searchRectsForRange;
86
113
  exports.searchSegmentsForRange = require_builders.searchSegmentsForRange;
@@ -89,6 +116,7 @@ exports.serializeError = require_fold.serializeError;
89
116
  exports.shiftsExistingAnnotationIndices = require_builders.shiftsExistingAnnotationIndices;
90
117
  exports.sliceTextByChars = require_PageInsertBlankInput.sliceTextByChars;
91
118
  exports.sniffBinaryMetadata = require_builders.sniffBinaryMetadata;
119
+ exports.stableStringify = require_builders.stableStringify;
92
120
  exports.subtypeFromCode = require_PageInsertBlankInput.subtypeFromCode;
93
121
  exports.textGlyphAt = require_builders.textGlyphAt;
94
122
  exports.textGlyphQuad = require_builders.textGlyphQuad;
@@ -99,3 +127,4 @@ exports.validateSearchQuery = require_builders.validateSearchQuery;
99
127
  exports.validateSearchRegex = require_builders.validateSearchRegex;
100
128
  exports.wordAt = require_builders.wordAt;
101
129
  exports.wordBefore = require_builders.wordBefore;
130
+ exports.worstVerdict = require_builders.worstVerdict;
package/dist/index.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { $a as FilledStyleFields, $c as Color, $i as FormFieldRef, $n as PageNameResult, $o as AnnotationAppearanceRaster, $r as FormImportResult, $s as PageLayout, Aa as buildCommentThreads, Ac as PDF_BITS, Ai as FormKind, Al as PdfActionWarning, An as HighlightDraft, Ao as AnnotationBase, Ar as toOriginalRange, As as glyphLooseQuad, At as LineDraft, B as StampAnnotationDTO, Ba as PatchOfKind, Bc as ParsedScope, Bi as FormFieldDTO, Bl as DocumentMetadata, Bn as PageDeleteResult, Bo as EngineErrorCode, Br as TextLayoutFrame, Bs as PdfOriginSize, Bt as PolygonPatch, C as RedactDraft, Ca as ManifestPage, Cc as expandedCapabilities, Ci as ComboBoxFieldDraft, Cl as ActionReadBudget, Cn as UnderlineAnnotationDTO, Co as ANNOTATION_SUBTYPES, Cr as wordAt, Cs as PageGeometryGlyph, Ct as LinkAnnotationDTO, Da as CommentThread, Dc as PermissionDenied, Di as RadioFieldDraft, Dl as PdfActionTargetRef, Do as PdfAnnotationSubtypeCode, Dr as SEARCH_FOLD_VERSION, Ds as RotatedGeometryRun, E as WidgetDraft, Ea as BuildCommentThreadsOptions, Ec as MissingIdentity, Ei as ListBoxFieldDraft, El as PdfActionNode, Eo as PDF_SUBTYPE_TO_CODE, Er as FoldedText, Es as RotatedGeometryGlyph, Fa as classifyRelation, Fc as CollabFilter, Fi as WidgetStyleFields, Fl as SubmitFormPayload, Fn as RedactionApplyScope, Fo as EngineError, Fr as SearchSlice, Fs as boundaryTextOffset, Ft as PolylineAnnotationDTO, Ga as FileAttachmentDraft, Gc as AnnotationRef, Gi as ListBoxFieldDTO, Gn as AnnotationFlattenInput, Go as PdfSaveMode, Gr as expandTextRangeToWord, Gs as pdfQuadFromCorners, Gt as VertexPatchFields, H as StampFit, Ha as AttachmentDeleteResult, Hc as ParsedWildcard, Hi as FormFieldFlags, Hn as PageRotateResult, Ho as FontKey, Hr as TextLayoutRun, Hs as normalizePdfRect, Ht as PolygonDraft, Ia as refKey, Ic as DocCapability, Ii as WidgetStylePatchFields, Il as decodeSubmitFormFlags, In as RedactionApplyStatus, Io as EngineErrorOptions, Ir as SearchSliceBudget, Is as charBoundaryAtTextOffset, It as PolylineDraft, J as TextPatch, Ja as WireAttachmentFile, Jc as AnnotationBorderStyle, Ji as SignatureFieldDTO, Jn as PageFlattenInput, Jo as AnnotationAppearanceImageOptions, Jr as textSegmentsForRange, Js as pdfRectSize, Ka as FileAttachmentIcon, Kc as RevisionToken, Ki as PushButtonFieldDTO, Kn as AnnotationFlattenItemResult, Ko as CachePins, Kr as textGlyphAt, Ks as pdfRectFromOriginSize, La as AnnotationKindModule, Lc as IdentityClaims, Li as CheckboxFieldDTO, Ll as PdfDestination, Ln as PAGE_INSERT_BLANK_MAX_COUNT, Lo as SerializedEngineError, Lr as SearchSnippet, Ls as charMapViolation, M as FileAttachmentPatch, Ma as AnnotationRelationKind, Mc as AnnotationActor, Mi as WidgetAppearance, Ml as PdfFieldActions, Mn as MetadataUpdateResult, Mo as AnnotationStableId, Mr as SearchMode, Ms as PageTextSnapshot, N as FileAttachmentAnnotationDTO, Na as AnnotationThread, Nc as CollabAction, Nl as PdfPageActions, Nn as RedactionApplyItemResult, No as decodeStableIdKey, Nr as SearchQuery, Ns as CharBoundaryBias, Oa as CommentThreadReview, Oc as parseScope, Oi as TextFieldDraft, Ol as PdfActionTree, On as HighlightPatch, Oo as subtypeFromCode, Or as SearchMatchRange, Os as UprightGeometryRun, Ot as LinePatch, Pa as buildThreads, Pc as CollabEntity, Pi as WidgetStyleDraftFields, Pl as SubmitFormFlags, Pn as RedactionApplyResult, Po as encodeStableIdKey, Pr as SearchRequest, Ps as CharMapAnchor, Pt as PolylinePatch, Qa as FilledStyleDraftFields, Qc as CaretIntent, Qi as FormValueEntry, Qn as PageFlattenUsage, Qo as AnnotationAppearanceMode, Qr as FormFieldUpdateResult, Qs as PageBoxes, R as StampPatch, Ra as DTOOfKind, Rc as ParsedCapability, Ri as ComboBoxFieldDTO, Rl as PageObjectNumber, Rn as PageInsertBlankSpec, Ro as deserializeError, Rr as PageTextLayout, Rs as charRangeForTextOffsets, S as RedactAnnotationDTO, Sa as DocumentManifest, Sc as expandRawScope, Si as CheckboxFieldDraft, Sl as PdfSize, Sn as UnderlinePatch, So as resolveBinarySource, Sr as matchLiteral, Ss as createPageImageHandle, St as LinkPatch, T as WidgetAnnotationDTO, Ta as LayerScopes, Tc as InvalidScope, Ti as FormFieldOptionInput, Tl as NamedJavaScriptAction, To as PDF_CODE_TO_SUBTYPE, Tr as FoldOptions, Ts as PageGeometrySnapshot, U as StampWireDraft, Ua as AttachmentsCache, Uc as PdfBits, Ui as FormFieldOption, Un as PageRotateInput, Uo as FontSpec, Ur as buildPageTextLayout, Us as pdfQuadBounds, Ut as VertexAnnotationFields, V as StampDraft, Va as AttachmentCreateResult, Vc as ParsedVirtual, Vi as FormFieldFamily, Vl as DocumentMetadataTrapped, Vn as PageDeleteInput, Vo as FontHandle, Vr as TextLayoutGlyph, Vs as PdfQuadCorners, Vt as PolygonAnnotationDTO, Wa as normalizeAttachmentFileSource, Wc as AnnotationDraftBase, Wi as FormFieldOrigin, Wn as AnnotationAppearanceExportInput, Wo as DEFAULT_PDF_SAVE_MODE, Wr as expandTextRangeToLine, Ws as pdfQuadCorners, Wt as VertexDraftFields, X as NoteIcon, Xa as ColorStyleFields, Xc as AnnotationReplyType, Xi as ToggleFieldWidget, Xn as PageFlattenResult, Xo as AnnotationAppearanceManifest, Xr as FormFieldCreateResult, Xs as pdfRectWidth, Xt as SquareAnnotationDTO, Y as TextAnnotationDTO, Ya as ColorStyleDraftFields, Yc as AnnotationFlags, Yi as TextFieldDTO, Yn as PageFlattenItemResult, Yo as AnnotationAppearanceImagesResult, Yr as FormDataExport, Ys as pdfRectToOriginSize, Yt as SquarePatch, Z as TextDraft, Za as ColorStylePatchFields, Zc as BlendMode, Zi as UnknownFieldDTO, Zn as PageFlattenStatus, Zo as AnnotationAppearanceManifestEntry, Zr as FormFieldDeleteResult, Zs as PageListSnapshot, Zt as SquareDraft, _a as RefetchReason, _c as CollabTarget, _i as ComboBoxFieldPatch, _l as LinePoints, _n as SquigglyAnnotationDTO, _o as BinaryPayload, _r as SearchRegexValidation, _s as PageRenderFormat, aa as AnnotationMoveResult, ac as OpenInputById, ai as FormEffectStatus, al as NO_ANNOTATION_FLAGS, an as ShapeDraftFields, ao as AttachmentFileBase, ar as PageMoveInput, as as WeakAnnotationState, b as UnsupportedAnnotationDTO, ba as PdfLinkTarget, bc as checkCollab, bi as RadioFieldPatch, bl as PdfRect, bo as WireResource, br as validateSearchRegex, bs as PageRenderTarget, c as AnnotationKind, ca as AppearanceImpact, cc as OpenInputLayerSource, ci as FormSubmissionEntry, cl as Rect, co as EmbeddedFileItem, cr as searchRectsForRange, cs as PageImageHandle, ct as FreeTextAnnotationDTO, d as AnnotationSubtypeOfKind, da as semanticEqual, dc as OpenOptions, dl as StandardFont, dn as StrikeoutAnnotationDTO, do as NormalizedPatch, dr as buildSnippet, ds as PageImageResult, ea as FormWidgetRef, ec as PageRotation, ei as FormRepairResult, el as FreeTextFont, eo as FilledStylePatchFields, er as PageNameInput, es as AnnotationAppearanceRenderOptions, fa as AnnotationMutationKind, fc as TokenSource, fi as FormSubmissionRequest, fl as StrikeoutIntent, fn as StrikeoutDraft, fo as normalizeAnnotationDraft, fr as matchPageText, fs as PageImageSource, ga as AnnotationListMutationMeta, gc as pdfPermissions, gi as CheckboxFieldPatch, gl as InkStroke, gn as SquigglyPatch, go as sniffBinaryMetadata, gr as SearchRegexIssue, gs as PageRenderEncodedFormat, ha as shiftsExistingAnnotationIndices, hc as materializePdfPermissions, hi as FormFieldValue, hl as InkList, ho as BinaryMimeType, hr as SearchQueryValidation, hs as PageRenderBackground, ht as InkDraft, i as AnnotationDTO, ia as AnnotationDeleteResult, ic as OpenInput, ii as FormEffectResult, il as LineEndings, in as ShapeAnnotationFields, io as AttachmentContent, ir as PageStructureCache, is as UNKNOWN_WEAK_ANNOTATION_STATE, ja as isStateAnnotation, jc as decodePdfBits, ji as FormSnapshot, jl as PdfAnnotationActions, jn as MetadataCache, jo as AnnotationIdentityQuality, jr as SearchMatch, js as isRotatedGeometryRun, ka as ReviewStatus, kc as validateScopeArray, ki as WidgetPlacement, kl as PdfActionType, kn as HighlightAnnotationDTO, ko as AnnotationPatchBase, kr as foldText, ks as glyphLooseBounds, kt as LineAnnotationDTO, l as AnnotationPatch, la as AppearanceOutcome, lc as OpenInputShare, ll as Rotation, lo as EmbeddedFileRef, lr as searchSegmentsForRange, ls as PageImageObjectUrl, lt as FreeTextDraft, m as WireAnnotationPatch, ma as invalidatesWeakIndexRefs, mc as collab, mi as FormDataFormat, ml as CalloutLine, mo as BinaryMetadata, mr as SearchQueryIssue, ms as PageRaster, mt as InkAnnotationDTO, n as AnnotationListSnapshotAllPages, na as encodeFieldRefKey, nc as NamedPageTarget, ni as FormWidgetLinkResult, nl as InkIntent, nn as CircleAnnotationDTO, no as GeometryStyleFields, nr as PageMoveCache, ns as AnnotationAppearancesResult, nt as CaretAnnotationDTO, o as AnnotationDraft, oa as AnnotationUpdateResult, oc as OpenInputBytes, oi as FormEffectsResult, ol as PdfRectDifferences, on as ShapePatchFields, oo as AttachmentFileInfo, or as canonicalSearchQuery, os as knownWeakAnnotationState, p as WireAnnotationDraft, pa as changesAnnotationList, pc as caps, pl as TextAlignment, po as normalizeAnnotationPatch, pr as SEARCH_REGEX_MAX_LENGTH, ps as PageNetworkRenderFormat, pt as InkPatch, qa as FileAttachmentWireDraft, qc as revisionTokensEqual, qi as RadioFieldDTO, qn as AnnotationFlattenResult, qo as AnnotationAppearanceImage, qr as textGlyphQuad, qs as pdfRectHeight, ra as AnnotationCreateResult, rc as MetadataPatch, ri as FormEffect, rl as LineEnding, rn as CircleDraft, ro as GeometryStylePatchFields, rr as PageMoveResult, rs as PageState, rt as CaretDraft, sa as AppearanceAction, sc as OpenInputLayerBytes, si as FormFieldDisplay, sl as Point, so as AttachmentFileSource, sr as searchContentEpoch, ss as PageImageBlobSource, st as FreeTextPatch, t as AnnotationListPageSnapshot, ta as decodeFieldRefKey, tc as NamedPageEntry, ti as FormSetValueResult, tl as FreeTextIntent, tn as CirclePatch, to as GeometryStyleDraftFields, tr as PageRemoveNameInput, ts as AnnotationAppearancesQuery, tt as CaretPatch, ua as appearanceImpactOf, uc as OpenInputToken, ui as FormSubmissionReceipt, ul as Size, un as StrikeoutPatch, uo as NormalizedDraft, ur as SEARCH_SNIPPET_CONTEXT, us as PageImageOptions, v as UnsupportedPatch, va as CacheDelta, vc as checkAnyCapability, vi as FormFieldPatch, vl as PdfPoint, vn as SquigglyDraft, vo as BinarySource, vr as matchRegex, vs as PageRenderOptions, w as WidgetPatch, wa as LayerScopePlane, wc as filterMatches, wi as FormFieldDraft, wl as DocumentActionsSnapshot, wn as UnderlineDraft, wo as AnnotationSubtype, wr as wordBefore, ws as PageGeometryRun, wt as LinkDraft, x as RedactPatch, xa as PdfLinkTargetWritable, xc as checkSetGroup, xi as TextFieldPatch, xl as PdfRotation, xo as WireResourceMap, xr as foldOptionsFor, xs as PageRenderViewport, y as UnsupportedDraft, ya as MutationMeta, yc as checkCapability, yi as ListBoxFieldPatch, yl as PdfQuad, yo as ResourceRef, yr as validateSearchQuery, ys as PageRenderQuery, z as StampWirePatch, za as DraftOfKind, zc as ParsedCollab, zi as FormFieldBase, zl as isValidPageObjectNumber, zn as PageInsertResult, zo as serializeError, zr as PdfTextSegment, zs as sliceTextByChars } from "./AnnotationListSnapshot-x6tKulNV.cjs";
2
- export { ANNOTATION_SUBTYPES, type ActionReadBudget, type AnnotationActor, type AnnotationAppearanceExportInput, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceManifest, type AnnotationAppearanceManifestEntry, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesQuery, type AnnotationAppearancesResult, type AnnotationBase, type AnnotationBorderStyle, type AnnotationCreateResult, type AnnotationDTO, type AnnotationDeleteResult, type AnnotationDraft, type AnnotationDraftBase, type AnnotationFlags, type AnnotationFlattenInput, type AnnotationFlattenItemResult, type AnnotationFlattenResult, type AnnotationIdentityQuality, type AnnotationKind, type AnnotationKindModule, type AnnotationListMutationMeta, type AnnotationListPageSnapshot, type AnnotationListSnapshotAllPages, type AnnotationMoveResult, type AnnotationMutationKind, type AnnotationPatch, type AnnotationPatchBase, type AnnotationRef, type AnnotationRelationKind, type AnnotationReplyType, type AnnotationStableId, type AnnotationSubtype, type AnnotationSubtypeOfKind, type AnnotationThread, type AnnotationUpdateResult, type AppearanceAction, type AppearanceImpact, type AppearanceOutcome, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentsCache, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, type BuildCommentThreadsOptions, type CacheDelta, type CachePins, type CalloutLine, type CaretAnnotationDTO, type CaretDraft, type CaretIntent, type CaretPatch, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type CircleAnnotationDTO, type CircleDraft, type CirclePatch, type CollabAction, type CollabEntity, type CollabFilter, type CollabTarget, type Color, type ColorStyleDraftFields, type ColorStyleFields, type ColorStylePatchFields, type ComboBoxFieldDTO, type ComboBoxFieldDraft, type ComboBoxFieldPatch, type CommentThread, type CommentThreadReview, DEFAULT_PDF_SAVE_MODE, type DTOOfKind, type DocCapability, type DocumentActionsSnapshot, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DraftOfKind, type EmbeddedFileItem, type EmbeddedFileRef, EngineError, EngineErrorCode, type EngineErrorOptions, type FileAttachmentAnnotationDTO, type FileAttachmentDraft, type FileAttachmentIcon, type FileAttachmentPatch, type FileAttachmentWireDraft, type FilledStyleDraftFields, type FilledStyleFields, type FilledStylePatchFields, type FoldOptions, type FoldedText, type FontHandle, type FontKey, type FontSpec, type FormDataExport, type FormDataFormat, type FormEffect, type FormEffectResult, type FormEffectStatus, type FormEffectsResult, type FormFieldBase, type FormFieldCreateResult, type FormFieldDTO, type FormFieldDeleteResult, type FormFieldDisplay, type FormFieldDraft, type FormFieldFamily, type FormFieldFlags, type FormFieldOption, type FormFieldOptionInput, type FormFieldOrigin, type FormFieldPatch, type FormFieldRef, type FormFieldUpdateResult, type FormFieldValue, type FormImportResult, type FormKind, type FormRepairResult, type FormSetValueResult, type FormSnapshot, type FormSubmissionEntry, type FormSubmissionReceipt, type FormSubmissionRequest, type FormValueEntry, type FormWidgetLinkResult, type FormWidgetRef, type FreeTextAnnotationDTO, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotationDTO, type HighlightDraft, type HighlightPatch, type IdentityClaims, type InkAnnotationDTO, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type LayerScopePlane, type LayerScopes, type LineAnnotationDTO, type LineDraft, type LineEnding, type LineEndings, type LinePatch, type LinePoints, type LinkAnnotationDTO, type LinkDraft, type LinkPatch, type ListBoxFieldDTO, type ListBoxFieldDraft, type ListBoxFieldPatch, type ManifestPage, type MetadataCache, type MetadataPatch, type MetadataUpdateResult, MissingIdentity, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NamedPageEntry, type NamedPageTarget, type NormalizedDraft, type NormalizedPatch, type NoteIcon, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenOptions, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, type PageBoxes, type PageDeleteInput, type PageDeleteResult, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageGeometryGlyph, type PageGeometryRun, type PageGeometrySnapshot, type PageImageBlobSource, type PageImageHandle, type PageImageObjectUrl, type PageImageOptions, type PageImageResult, type PageImageSource, type PageInsertBlankSpec, type PageInsertResult, type PageLayout, type PageListSnapshot, type PageMoveCache, type PageMoveInput, type PageMoveResult, type PageNameInput, type PageNameResult, type PageNetworkRenderFormat, type PageObjectNumber, type PageRaster, type PageRemoveNameInput, type PageRenderBackground, type PageRenderEncodedFormat, type PageRenderFormat, type PageRenderOptions, type PageRenderQuery, type PageRenderTarget, type PageRenderViewport, type PageRotateInput, type PageRotateResult, type PageRotation, type PageState, type PageStructureCache, type PageTextLayout, type PageTextSnapshot, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PatchOfKind, type PdfActionNode, type PdfActionTargetRef, type PdfActionTree, type PdfActionType, type PdfActionWarning, type PdfAnnotationActions, PdfAnnotationSubtypeCode, type PdfBits, type PdfDestination, type PdfFieldActions, type PdfLinkTarget, type PdfLinkTargetWritable, type PdfOriginSize, type PdfPageActions, type PdfPoint, type PdfQuad, type PdfQuadCorners, type PdfRect, type PdfRectDifferences, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfTextSegment, PermissionDenied, type Point, type PolygonAnnotationDTO, type PolygonDraft, type PolygonPatch, type PolylineAnnotationDTO, type PolylineDraft, type PolylinePatch, type PushButtonFieldDTO, type RadioFieldDTO, type RadioFieldDraft, type RadioFieldPatch, type Rect, type RedactAnnotationDTO, type RedactDraft, type RedactPatch, type RedactionApplyItemResult, type RedactionApplyResult, type RedactionApplyScope, type RedactionApplyStatus, type RefetchReason, type ResourceRef, type ReviewStatus, type RevisionToken, type RotatedGeometryGlyph, type RotatedGeometryRun, type Rotation, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, type SearchMatch, type SearchMatchRange, type SearchMode, type SearchQuery, type SearchQueryIssue, type SearchQueryValidation, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchSlice, type SearchSliceBudget, type SearchSnippet, type SerializedEngineError, type ShapeAnnotationFields, type ShapeDraftFields, type ShapePatchFields, type SignatureFieldDTO, type Size, type SquareAnnotationDTO, type SquareDraft, type SquarePatch, type SquigglyAnnotationDTO, type SquigglyDraft, type SquigglyPatch, type StampAnnotationDTO, type StampDraft, type StampFit, type StampPatch, type StampWireDraft, type StampWirePatch, type StandardFont, type StrikeoutAnnotationDTO, type StrikeoutDraft, type StrikeoutIntent, type StrikeoutPatch, type SubmitFormFlags, type SubmitFormPayload, type TextAlignment, type TextAnnotationDTO, type TextDraft, type TextFieldDTO, type TextFieldDraft, type TextFieldPatch, type TextLayoutFrame, type TextLayoutGlyph, type TextLayoutRun, type TextPatch, type ToggleFieldWidget, type TokenSource, UNKNOWN_WEAK_ANNOTATION_STATE, type UnderlineAnnotationDTO, type UnderlineDraft, type UnderlinePatch, type UnknownFieldDTO, type UnsupportedAnnotationDTO, type UnsupportedDraft, type UnsupportedPatch, type UprightGeometryRun, type VertexAnnotationFields, type VertexDraftFields, type VertexPatchFields, type WeakAnnotationState, type WidgetAnnotationDTO, type WidgetAppearance, type WidgetDraft, type WidgetPatch, type WidgetPlacement, type WidgetStyleDraftFields, type WidgetStyleFields, type WidgetStylePatchFields, type WireAnnotationDraft, type WireAnnotationPatch, type WireAttachmentFile, type WireResource, type WireResourceMap, appearanceImpactOf, boundaryTextOffset, buildCommentThreads, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, decodeSubmitFormFlags, deserializeError, encodeFieldRefKey, encodeStableIdKey, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isRotatedGeometryRun, isStateAnnotation, isValidPageObjectNumber, knownWeakAnnotationState, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parseScope, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, refKey, resolveBinarySource, revisionTokensEqual, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, sniffBinaryMetadata, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wordAt, wordBefore };
1
+ import { $a as semanticEqual, $c as NamedPageEntry, $i as FormFieldDisplay, $l as CachePins, $n as PageNameResult, $o as normalizeAnnotationPatch, $r as FormImportResult, $s as AnnotationAppearanceManifestEntry, $u as PdfRect, Aa as ComboBoxFieldDTO, Ac as PageTextSnapshot, Ai as refsOf, Al as FieldLockSpec, An as HighlightDraft, Ao as normalizeAttachmentFileSource, Ar as toOriginalRange, As as RichTextDirection, At as LineDraft, Au as BlendMode, B as StampAnnotationDTO, Ba as SignatureFieldDTO, Bc as normalizePdfRect, Bi as ObjectReferrer, Bl as SignaturePrepareInput, Bn as PageDeleteResult, Bo as FilledStylePatchFields, Br as TextLayoutFrame, Bs as richTextPlainText, Bt as PolygonPatch, Bu as Point, C as RedactDraft, Ca as FormSnapshot, Cc as PageGeometrySnapshot, Ci as evaluateStep, Cl as BaseVersionInfo, Cn as UnderlineAnnotationDTO, Co as AnnotationKindModule, Cr as wordAt, Cs as SerializedEngineError, Ct as LinkAnnotationDTO, Cu as AnnotationDraftBase, Da as WidgetStyleFields, Dc as glyphLooseBounds, Di as dictEntries, Dl as DocumentProtection, Do as AttachmentCreateResult, Dr as SEARCH_FOLD_VERSION, Ds as RichTextAlign, Du as AnnotationBorderStyle, E as WidgetDraft, Ea as WidgetStyleDraftFields, Ec as UprightGeometryRun, Ei as changedKeys, El as DocumentFieldLock, Eo as PatchOfKind, Er as FoldedText, Es as EngineErrorCode, Eu as revisionTokensEqual, Fa as FormFieldOption, Fc as charMapViolation, Fi as ChangeFinding, Fl as SignatureCompleteInput, Fn as RedactionApplyScope, Fo as ColorStyleDraftFields, Fr as SearchSlice, Fs as RichTextParagraphProps, Ft as PolylineAnnotationDTO, Fu as InkIntent, Ga as AnnotationCreateResult, Gc as pdfRectHeight, Gi as RevisionHealth, Gl as SignatureSubFilter, Gn as AnnotationFlattenInput, Go as AttachmentFileBase, Gr as expandTextRangeToWord, Gs as FontSpec, Gt as VertexPatchFields, Gu as StrikeoutIntent, H as StampFit, Ha as ToggleFieldWidget, Hc as pdfQuadCorners, Hi as RestrictionAnchor, Hl as SignatureSeedValue, Hn as PageRotateResult, Ho as GeometryStyleFields, Hr as TextLayoutRun, Hs as FontHandle, Ht as PolygonDraft, Hu as Rotation, Ia as FormFieldOrigin, Ic as charRangeForTextOffsets, Ii as ObjectChange, Il as SignatureCompleteResult, In as RedactionApplyStatus, Io as ColorStyleFields, Ir as SearchSliceBudget, Is as RichTextRun, It as PolylineDraft, Iu as LineEnding, J as TextPatch, Ja as AnnotationUpdateResult, Jc as pdfRectWidth, Ji as StepVerdict, Jl as MutationMeta, Jn as PageFlattenInput, Jo as EmbeddedFileItem, Jr as textSegmentsForRange, Js as PdfSaveMode, Ju as InkList, Ka as AnnotationDeleteResult, Kc as pdfRectSize, Ki as RevisionStructure, Kl as SignedDocumentPolicy, Kn as AnnotationFlattenItemResult, Ko as AttachmentFileInfo, Kr as textGlyphAt, Ks as SessionKind, Ku as TextAlignment, La as ListBoxFieldDTO, Lc as sliceTextByChars, Li as ObjectChangeKind, Ll as SignatureCoverage, Ln as PAGE_INSERT_BLANK_MAX_COUNT, Lo as ColorStylePatchFields, Lr as SearchSnippet, Ls as RichTextRunStyle, Lu as LineEndings, M as FileAttachmentPatch, Ma as FormFieldDTO, Mc as CharMapAnchor, Mi as AnalyzeInput, Ml as PdfRevision, Mn as MetadataUpdateResult, Mo as FileAttachmentIcon, Mr as SearchMode, Ms as RichTextDocumentInput, Mu as Color, N as FileAttachmentAnnotationDTO, Na as FormFieldFamily, Nc as boundaryTextOffset, Ni as Assessment, Nl as SignatureAbortResult, Nn as RedactionApplyItemResult, No as FileAttachmentWireDraft, Nr as SearchQuery, Ns as RichTextMargins, Nu as FreeTextFont, Oa as WidgetStylePatchFields, Oc as glyphLooseQuad, Oi as parsePdfValue, Ol as DocumentVersionRef, On as HighlightPatch, Oo as AttachmentDeleteResult, Or as SearchMatchRange, Os as RichTextBody, Ot as LinePatch, Ou as AnnotationFlags, Pa as FormFieldFlags, Pc as charBoundaryAtTextOffset, Pi as ChangeAnalysis, Pl as SignatureAppearanceInput, Pn as RedactionApplyResult, Po as WireAttachmentFile, Pr as SearchRequest, Ps as RichTextParagraph, Pt as PolylinePatch, Pu as FreeTextIntent, Qa as appearanceImpactOf, Qc as PageRotation, Qi as FormEffectsResult, Ql as knownWeakAnnotationState, Qn as PageFlattenUsage, Qo as normalizeAnnotationDraft, Qr as FormFieldUpdateResult, Qs as AnnotationAppearanceManifest, Qu as PdfQuad, R as StampPatch, Ra as PushButtonFieldDTO, Rc as PdfOriginSize, Ri as ObjectChangeType, Rl as SignatureDTO, Rn as PageInsertBlankSpec, Ro as FilledStyleDraftFields, Rr as PageTextLayout, Rs as RichTextScript, Ru as NO_ANNOTATION_FLAGS, S as RedactAnnotationDTO, Sa as FormKind, Sc as PageGeometryRun, Si as restrictionsFor, Sl as filterMatches, Sn as UnderlinePatch, So as refKey, Sr as matchLiteral, Ss as EngineErrorOptions, St as LinkPatch, Su as PdfBits, T as WidgetAnnotationDTO, Tc as RotatedGeometryRun, Ti as sameEffectiveValue, Tl as DocMdpPermission, To as DraftOfKind, Tr as FoldOptions, Ts as serializeError, Tu as RevisionToken, U as StampWireDraft, Ua as UnknownFieldDTO, Uc as pdfQuadFromCorners, Ui as RevisionAnalysis, Ul as SignatureSigner, Un as PageRotateInput, Uo as GeometryStylePatchFields, Ur as buildPageTextLayout, Us as FontIdentityInfo, Ut as VertexAnnotationFields, Uu as Size, V as StampDraft, Va as TextFieldDTO, Vc as pdfQuadBounds, Vi as PdfValue, Vl as SignaturePrepared, Vn as PageDeleteInput, Vo as GeometryStyleDraftFields, Vr as TextLayoutGlyph, Vs as FontEmbeddingPermission, Vt as PolygonAnnotationDTO, Vu as Rect, Wa as FormValueEntry, Wc as pdfRectFromOriginSize, Wi as RevisionField, Wl as SignatureSnapshot, Wn as AnnotationAppearanceExportInput, Wo as AttachmentContent, Wr as expandTextRangeToLine, Ws as FontKey, Wt as VertexDraftFields, Wu as StandardFont, X as NoteIcon, Xa as AppearanceImpact, Xc as PageBoxes, Xi as FormEffectResult, Xl as UNKNOWN_WEAK_ANNOTATION_STATE, Xn as PageFlattenResult, Xo as NormalizedDraft, Xr as FormFieldCreateResult, Xs as AnnotationAppearanceImageOptions, Xt as SquareAnnotationDTO, Xu as LinePoints, Y as TextAnnotationDTO, Ya as AppearanceAction, Yc as PageListSnapshot, Yi as FormEffect, Yl as PageState, Yn as PageFlattenItemResult, Yo as EmbeddedFileRef, Yr as FormDataExport, Ys as AnnotationAppearanceImage, Yt as SquarePatch, Yu as InkStroke, Z as TextDraft, Za as AppearanceOutcome, Zc as PageLayout, Zi as FormEffectStatus, Zl as WeakAnnotationState, Zn as PageFlattenStatus, Zo as NormalizedPatch, Zr as FormFieldDeleteResult, Zs as AnnotationAppearanceImagesResult, Zt as SquareDraft, Zu as PdfPoint, _a as FormFieldOptionInput, _c as PageRenderQuery, _d as PageObjectNumber, _i as DEFAULT_EDGE_RESOLVER_BUDGET, _l as checkCapability, _n as SquigglyAnnotationDTO, _o as isStateAnnotation, _r as SearchRegexValidation, _s as AnnotationIdentityQuality, _u as ParsedCapability, ac as PageImageBlobSource, ad as PdfActionNode, ai as fieldLockFor, al as OpenInputLayerBytes, an as ShapeDraftFields, ao as RefetchReason, ar as PageMoveInput, as as ResourceRef, au as MissingIdentity, b as UnsupportedAnnotationDTO, ba as TextFieldDraft, bc as createPageImageHandle, bd as DocumentMetadataTrapped, bi as ResolvedUsage, bl as expandRawScope, bo as buildThreads, br as validateSearchRegex, bs as encodeStableIdKey, bu as ParsedVirtual, c as AnnotationKind, ca as CheckboxFieldPatch, cc as PageImageOptions, cd as PdfActionType, ci as lockCovers, cl as OpenInputToken, co as DocumentManifest, cr as searchRectsForRange, cs as resolveBinarySource, ct as FreeTextAnnotationDTO, cu as validateScopeArray, d as AnnotationSubtypeOfKind, da as ListBoxFieldPatch, dc as PageNetworkRenderFormat, dd as PdfFieldActions, di as protectedCapabilities, dl as caps, dn as StrikeoutAnnotationDTO, do as LayerScopes, dr as buildSnippet, ds as PDF_CODE_TO_SUBTYPE, du as AnnotationActor, ea as FormSubmissionEntry, ec as AnnotationAppearanceMode, ed as PdfRotation, ei as FormRepairResult, el as NamedPageTarget, eo as AnnotationMutationKind, er as PageNameInput, es as BinaryMetadata, eu as FormFieldRef, fa as RadioFieldPatch, fc as PageRaster, fd as PdfPageActions, fi as assessmentOf, fl as collab, fn as StrikeoutDraft, fo as BuildCommentThreadsOptions, fr as matchPageText, fs as PDF_SUBTYPE_TO_CODE, fu as CollabAction, ga as FormFieldDraft, gc as PageRenderOptions, gd as PdfDestination, gi as worstVerdict, gl as checkAnyCapability, gn as SquigglyPatch, go as buildCommentThreads, gr as SearchRegexIssue, gs as AnnotationBase, gu as IdentityClaims, ha as ComboBoxFieldDraft, hc as PageRenderFormat, hd as decodeSubmitFormFlags, hi as primaryFinding, hl as CollabTarget, ho as ReviewStatus, hr as SearchQueryValidation, hs as AnnotationPatchBase, ht as InkDraft, hu as DocCapability, i as AnnotationDTO, ia as FormSubmissionRequest, ic as AnnotationAppearancesResult, id as NamedJavaScriptAction, ii as deriveProtection, il as OpenInputBytes, in as ShapeAnnotationFields, io as AnnotationListMutationMeta, ir as PageStructureCache, is as BinarySource, iu as InvalidScope, ja as FormFieldBase, jc as CharBoundaryBias, ji as stableStringify, jl as ModificationLevel, jn as MetadataCache, jo as FileAttachmentDraft, jr as SearchMatch, js as RichTextDocument, ju as CaretIntent, ka as CheckboxFieldDTO, kc as isRotatedGeometryRun, ki as pdfValueEquals, kl as FieldLockAction, kn as HighlightAnnotationDTO, ko as AttachmentsCache, kr as foldText, ks as RichTextDecoration, kt as LineAnnotationDTO, ku as AnnotationReplyType, l as AnnotationPatch, la as ComboBoxFieldPatch, lc as PageImageResult, ld as PdfActionWarning, li as lockNameCovers, ll as OpenOptions, lo as ManifestPage, lr as searchSegmentsForRange, ls as ANNOTATION_SUBTYPES, lt as FreeTextDraft, lu as PDF_BITS, m as WireAnnotationPatch, ma as CheckboxFieldDraft, mc as PageRenderEncodedFormat, md as SubmitFormPayload, mi as conclude, ml as pdfPermissions, mo as CommentThreadReview, mr as SearchQueryIssue, ms as subtypeFromCode, mt as InkAnnotationDTO, mu as CollabFilter, n as AnnotationListSnapshotAllPages, na as FormSubmissionReceipt, nc as AnnotationAppearanceRenderOptions, nd as ActionReadBudget, ni as FormWidgetLinkResult, nl as OpenInput, nn as CircleAnnotationDTO, no as invalidatesWeakIndexRefs, nr as PageMoveCache, ns as sniffBinaryMetadata, nt as CaretAnnotationDTO, nu as decodeFieldRefKey, o as AnnotationDraft, oa as FormDataFormat, oc as PageImageHandle, od as PdfActionTargetRef, oi as levelAllows, ol as OpenInputLayerSource, on as ShapePatchFields, oo as PdfLinkTarget, or as canonicalSearchQuery, os as WireResource, ou as PermissionDenied, p as WireAnnotationDraft, pa as TextFieldPatch, pc as PageRenderBackground, pd as SubmitFormFlags, pi as combine, pl as materializePdfPermissions, po as CommentThread, pr as SEARCH_REGEX_MAX_LENGTH, ps as PdfAnnotationSubtypeCode, pt as InkPatch, pu as CollabEntity, qa as AnnotationMoveResult, qc as pdfRectToOriginSize, qi as StepInput, ql as CacheDelta, qn as AnnotationFlattenResult, qo as AttachmentFileSource, qr as textGlyphQuad, qs as DEFAULT_PDF_SAVE_MODE, qu as CalloutLine, rc as AnnotationAppearancesQuery, rd as DocumentActionsSnapshot, ri as SIGNATURE_POLICY_VERSION, rl as OpenInputById, rn as CircleDraft, ro as shiftsExistingAnnotationIndices, rr as PageMoveResult, rs as BinaryPayload, rt as CaretDraft, ru as encodeFieldRefKey, sa as FormFieldValue, sc as PageImageObjectUrl, sd as PdfActionTree, si as levelFromPermission, sl as OpenInputShare, so as PdfLinkTargetWritable, sr as searchContentEpoch, ss as WireResourceMap, st as FreeTextPatch, su as parseScope, t as AnnotationListPageSnapshot, tc as AnnotationAppearanceRaster, td as PdfSize, ti as FormSetValueResult, tl as MetadataPatch, tn as CirclePatch, to as changesAnnotationList, tr as PageRemoveNameInput, ts as BinaryMimeType, tt as CaretPatch, tu as FormWidgetRef, ua as FormFieldPatch, uc as PageImageSource, ud as PdfAnnotationActions, ui as minLevel, ul as TokenSource, un as StrikeoutPatch, uo as LayerScopePlane, ur as SEARCH_SNIPPET_CONTEXT, us as AnnotationSubtype, uu as decodePdfBits, v as UnsupportedPatch, va as ListBoxFieldDraft, vc as PageRenderTarget, vd as isValidPageObjectNumber, vi as EdgeResolver, vl as checkCollab, vn as SquigglyDraft, vo as AnnotationRelationKind, vr as matchRegex, vs as AnnotationStableId, vu as ParsedCollab, w as WidgetPatch, wa as WidgetAppearance, wc as RotatedGeometryGlyph, wi as restrictionsOf, wl as DigestAlgorithm, wn as UnderlineDraft, wo as DTOOfKind, wr as wordBefore, ws as deserializeError, wt as LinkDraft, wu as AnnotationRef, x as RedactPatch, xa as WidgetPlacement, xc as PageGeometryGlyph, xi as USAGE_INCOMPLETE, xl as expandedCapabilities, xo as classifyRelation, xr as foldOptionsFor, xs as EngineError, xu as ParsedWildcard, y as UnsupportedDraft, ya as RadioFieldDraft, yc as PageRenderViewport, yd as DocumentMetadata, yi as EdgeResolverBudget, yl as checkSetGroup, yo as AnnotationThread, yr as validateSearchQuery, ys as decodeStableIdKey, yu as ParsedScope, z as StampWirePatch, za as RadioFieldDTO, zc as PdfQuadCorners, zi as ObjectReadStatus, zl as SignatureKind, zn as PageInsertResult, zo as FilledStyleFields, zr as PdfTextSegment, zs as richTextParagraphsFromPlainText, zu as PdfRectDifferences } from "./AnnotationListSnapshot-D3mFut1e.cjs";
2
+ export { ANNOTATION_SUBTYPES, type ActionReadBudget, type AnalyzeInput, type AnnotationActor, type AnnotationAppearanceExportInput, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceManifest, type AnnotationAppearanceManifestEntry, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesQuery, type AnnotationAppearancesResult, type AnnotationBase, type AnnotationBorderStyle, type AnnotationCreateResult, type AnnotationDTO, type AnnotationDeleteResult, type AnnotationDraft, type AnnotationDraftBase, type AnnotationFlags, type AnnotationFlattenInput, type AnnotationFlattenItemResult, type AnnotationFlattenResult, type AnnotationIdentityQuality, type AnnotationKind, type AnnotationKindModule, type AnnotationListMutationMeta, type AnnotationListPageSnapshot, type AnnotationListSnapshotAllPages, type AnnotationMoveResult, type AnnotationMutationKind, type AnnotationPatch, type AnnotationPatchBase, type AnnotationRef, type AnnotationRelationKind, type AnnotationReplyType, type AnnotationStableId, type AnnotationSubtype, type AnnotationSubtypeOfKind, type AnnotationThread, type AnnotationUpdateResult, type AppearanceAction, type AppearanceImpact, type AppearanceOutcome, type Assessment, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentsCache, type BaseVersionInfo, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, type BuildCommentThreadsOptions, type CacheDelta, type CachePins, type CalloutLine, type CaretAnnotationDTO, type CaretDraft, type CaretIntent, type CaretPatch, type ChangeAnalysis, type ChangeFinding, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type CircleAnnotationDTO, type CircleDraft, type CirclePatch, type CollabAction, type CollabEntity, type CollabFilter, type CollabTarget, type Color, type ColorStyleDraftFields, type ColorStyleFields, type ColorStylePatchFields, type ComboBoxFieldDTO, type ComboBoxFieldDraft, type ComboBoxFieldPatch, type CommentThread, type CommentThreadReview, DEFAULT_EDGE_RESOLVER_BUDGET, DEFAULT_PDF_SAVE_MODE, type DTOOfKind, type DigestAlgorithm, type DocCapability, type DocMdpPermission, type DocumentActionsSnapshot, type DocumentFieldLock, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DocumentProtection, type DocumentVersionRef, type DraftOfKind, EdgeResolver, type EdgeResolverBudget, type EmbeddedFileItem, type EmbeddedFileRef, EngineError, EngineErrorCode, type EngineErrorOptions, type FieldLockAction, type FieldLockSpec, type FileAttachmentAnnotationDTO, type FileAttachmentDraft, type FileAttachmentIcon, type FileAttachmentPatch, type FileAttachmentWireDraft, type FilledStyleDraftFields, type FilledStyleFields, type FilledStylePatchFields, type FoldOptions, type FoldedText, type FontEmbeddingPermission, type FontHandle, type FontIdentityInfo, type FontKey, type FontSpec, type FormDataExport, type FormDataFormat, type FormEffect, type FormEffectResult, type FormEffectStatus, type FormEffectsResult, type FormFieldBase, type FormFieldCreateResult, type FormFieldDTO, type FormFieldDeleteResult, type FormFieldDisplay, type FormFieldDraft, type FormFieldFamily, type FormFieldFlags, type FormFieldOption, type FormFieldOptionInput, type FormFieldOrigin, type FormFieldPatch, type FormFieldRef, type FormFieldUpdateResult, type FormFieldValue, type FormImportResult, type FormKind, type FormRepairResult, type FormSetValueResult, type FormSnapshot, type FormSubmissionEntry, type FormSubmissionReceipt, type FormSubmissionRequest, type FormValueEntry, type FormWidgetLinkResult, type FormWidgetRef, type FreeTextAnnotationDTO, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotationDTO, type HighlightDraft, type HighlightPatch, type IdentityClaims, type InkAnnotationDTO, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type LayerScopePlane, type LayerScopes, type LineAnnotationDTO, type LineDraft, type LineEnding, type LineEndings, type LinePatch, type LinePoints, type LinkAnnotationDTO, type LinkDraft, type LinkPatch, type ListBoxFieldDTO, type ListBoxFieldDraft, type ListBoxFieldPatch, type ManifestPage, type MetadataCache, type MetadataPatch, type MetadataUpdateResult, MissingIdentity, type ModificationLevel, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NamedPageEntry, type NamedPageTarget, type NormalizedDraft, type NormalizedPatch, type NoteIcon, type ObjectChange, type ObjectChangeKind, type ObjectChangeType, type ObjectReadStatus, type ObjectReferrer, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenOptions, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, type PageBoxes, type PageDeleteInput, type PageDeleteResult, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageGeometryGlyph, type PageGeometryRun, type PageGeometrySnapshot, type PageImageBlobSource, type PageImageHandle, type PageImageObjectUrl, type PageImageOptions, type PageImageResult, type PageImageSource, type PageInsertBlankSpec, type PageInsertResult, type PageLayout, type PageListSnapshot, type PageMoveCache, type PageMoveInput, type PageMoveResult, type PageNameInput, type PageNameResult, type PageNetworkRenderFormat, type PageObjectNumber, type PageRaster, type PageRemoveNameInput, type PageRenderBackground, type PageRenderEncodedFormat, type PageRenderFormat, type PageRenderOptions, type PageRenderQuery, type PageRenderTarget, type PageRenderViewport, type PageRotateInput, type PageRotateResult, type PageRotation, type PageState, type PageStructureCache, type PageTextLayout, type PageTextSnapshot, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PatchOfKind, type PdfActionNode, type PdfActionTargetRef, type PdfActionTree, type PdfActionType, type PdfActionWarning, type PdfAnnotationActions, PdfAnnotationSubtypeCode, type PdfBits, type PdfDestination, type PdfFieldActions, type PdfLinkTarget, type PdfLinkTargetWritable, type PdfOriginSize, type PdfPageActions, type PdfPoint, type PdfQuad, type PdfQuadCorners, type PdfRect, type PdfRectDifferences, type PdfRevision, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfTextSegment, type PdfValue, PermissionDenied, type Point, type PolygonAnnotationDTO, type PolygonDraft, type PolygonPatch, type PolylineAnnotationDTO, type PolylineDraft, type PolylinePatch, type PushButtonFieldDTO, type RadioFieldDTO, type RadioFieldDraft, type RadioFieldPatch, type Rect, type RedactAnnotationDTO, type RedactDraft, type RedactPatch, type RedactionApplyItemResult, type RedactionApplyResult, type RedactionApplyScope, type RedactionApplyStatus, type RefetchReason, type ResolvedUsage, type ResourceRef, type RestrictionAnchor, type ReviewStatus, type RevisionAnalysis, type RevisionField, type RevisionHealth, type RevisionStructure, type RevisionToken, type RichTextAlign, type RichTextBody, type RichTextDecoration, type RichTextDirection, type RichTextDocument, type RichTextDocumentInput, type RichTextMargins, type RichTextParagraph, type RichTextParagraphProps, type RichTextRun, type RichTextRunStyle, type RichTextScript, type RotatedGeometryGlyph, type RotatedGeometryRun, type Rotation, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, SIGNATURE_POLICY_VERSION, type SearchMatch, type SearchMatchRange, type SearchMode, type SearchQuery, type SearchQueryIssue, type SearchQueryValidation, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchSlice, type SearchSliceBudget, type SearchSnippet, type SerializedEngineError, type SessionKind, type ShapeAnnotationFields, type ShapeDraftFields, type ShapePatchFields, type SignatureAbortResult, type SignatureAppearanceInput, type SignatureCompleteInput, type SignatureCompleteResult, type SignatureCoverage, type SignatureDTO, type SignatureFieldDTO, type SignatureKind, type SignaturePrepareInput, type SignaturePrepared, type SignatureSeedValue, type SignatureSigner, type SignatureSnapshot, type SignatureSubFilter, type SignedDocumentPolicy, type Size, type SquareAnnotationDTO, type SquareDraft, type SquarePatch, type SquigglyAnnotationDTO, type SquigglyDraft, type SquigglyPatch, type StampAnnotationDTO, type StampDraft, type StampFit, type StampPatch, type StampWireDraft, type StampWirePatch, type StandardFont, type StepInput, type StepVerdict, type StrikeoutAnnotationDTO, type StrikeoutDraft, type StrikeoutIntent, type StrikeoutPatch, type SubmitFormFlags, type SubmitFormPayload, type TextAlignment, type TextAnnotationDTO, type TextDraft, type TextFieldDTO, type TextFieldDraft, type TextFieldPatch, type TextLayoutFrame, type TextLayoutGlyph, type TextLayoutRun, type TextPatch, type ToggleFieldWidget, type TokenSource, UNKNOWN_WEAK_ANNOTATION_STATE, USAGE_INCOMPLETE, type UnderlineAnnotationDTO, type UnderlineDraft, type UnderlinePatch, type UnknownFieldDTO, type UnsupportedAnnotationDTO, type UnsupportedDraft, type UnsupportedPatch, type UprightGeometryRun, type VertexAnnotationFields, type VertexDraftFields, type VertexPatchFields, type WeakAnnotationState, type WidgetAnnotationDTO, type WidgetAppearance, type WidgetDraft, type WidgetPatch, type WidgetPlacement, type WidgetStyleDraftFields, type WidgetStyleFields, type WidgetStylePatchFields, type WireAnnotationDraft, type WireAnnotationPatch, type WireAttachmentFile, type WireResource, type WireResourceMap, appearanceImpactOf, assessmentOf, boundaryTextOffset, buildCommentThreads, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changedKeys, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, combine, conclude, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, decodeSubmitFormFlags, deriveProtection, deserializeError, dictEntries, encodeFieldRefKey, encodeStableIdKey, evaluateStep, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, fieldLockFor, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isRotatedGeometryRun, isStateAnnotation, isValidPageObjectNumber, knownWeakAnnotationState, levelAllows, levelFromPermission, lockCovers, lockNameCovers, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, minLevel, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parsePdfValue, parseScope, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, pdfValueEquals, primaryFinding, protectedCapabilities, refKey, refsOf, resolveBinarySource, restrictionsFor, restrictionsOf, revisionTokensEqual, richTextParagraphsFromPlainText, richTextPlainText, sameEffectiveValue, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, sniffBinaryMetadata, stableStringify, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wordAt, wordBefore, worstVerdict };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $a as FilledStyleFields, $c as Color, $i as FormFieldRef, $n as PageNameResult, $o as AnnotationAppearanceRaster, $r as FormImportResult, $s as PageLayout, Aa as buildCommentThreads, Ac as PDF_BITS, Ai as FormKind, Al as PdfActionWarning, An as HighlightDraft, Ao as AnnotationBase, Ar as toOriginalRange, As as glyphLooseQuad, At as LineDraft, B as StampAnnotationDTO, Ba as PatchOfKind, Bc as ParsedScope, Bi as FormFieldDTO, Bl as DocumentMetadata, Bn as PageDeleteResult, Bo as EngineErrorCode, Br as TextLayoutFrame, Bs as PdfOriginSize, Bt as PolygonPatch, C as RedactDraft, Ca as ManifestPage, Cc as expandedCapabilities, Ci as ComboBoxFieldDraft, Cl as ActionReadBudget, Cn as UnderlineAnnotationDTO, Co as ANNOTATION_SUBTYPES, Cr as wordAt, Cs as PageGeometryGlyph, Ct as LinkAnnotationDTO, Da as CommentThread, Dc as PermissionDenied, Di as RadioFieldDraft, Dl as PdfActionTargetRef, Do as PdfAnnotationSubtypeCode, Dr as SEARCH_FOLD_VERSION, Ds as RotatedGeometryRun, E as WidgetDraft, Ea as BuildCommentThreadsOptions, Ec as MissingIdentity, Ei as ListBoxFieldDraft, El as PdfActionNode, Eo as PDF_SUBTYPE_TO_CODE, Er as FoldedText, Es as RotatedGeometryGlyph, Fa as classifyRelation, Fc as CollabFilter, Fi as WidgetStyleFields, Fl as SubmitFormPayload, Fn as RedactionApplyScope, Fo as EngineError, Fr as SearchSlice, Fs as boundaryTextOffset, Ft as PolylineAnnotationDTO, Ga as FileAttachmentDraft, Gc as AnnotationRef, Gi as ListBoxFieldDTO, Gn as AnnotationFlattenInput, Go as PdfSaveMode, Gr as expandTextRangeToWord, Gs as pdfQuadFromCorners, Gt as VertexPatchFields, H as StampFit, Ha as AttachmentDeleteResult, Hc as ParsedWildcard, Hi as FormFieldFlags, Hn as PageRotateResult, Ho as FontKey, Hr as TextLayoutRun, Hs as normalizePdfRect, Ht as PolygonDraft, Ia as refKey, Ic as DocCapability, Ii as WidgetStylePatchFields, Il as decodeSubmitFormFlags, In as RedactionApplyStatus, Io as EngineErrorOptions, Ir as SearchSliceBudget, Is as charBoundaryAtTextOffset, It as PolylineDraft, J as TextPatch, Ja as WireAttachmentFile, Jc as AnnotationBorderStyle, Ji as SignatureFieldDTO, Jn as PageFlattenInput, Jo as AnnotationAppearanceImageOptions, Jr as textSegmentsForRange, Js as pdfRectSize, Ka as FileAttachmentIcon, Kc as RevisionToken, Ki as PushButtonFieldDTO, Kn as AnnotationFlattenItemResult, Ko as CachePins, Kr as textGlyphAt, Ks as pdfRectFromOriginSize, La as AnnotationKindModule, Lc as IdentityClaims, Li as CheckboxFieldDTO, Ll as PdfDestination, Ln as PAGE_INSERT_BLANK_MAX_COUNT, Lo as SerializedEngineError, Lr as SearchSnippet, Ls as charMapViolation, M as FileAttachmentPatch, Ma as AnnotationRelationKind, Mc as AnnotationActor, Mi as WidgetAppearance, Ml as PdfFieldActions, Mn as MetadataUpdateResult, Mo as AnnotationStableId, Mr as SearchMode, Ms as PageTextSnapshot, N as FileAttachmentAnnotationDTO, Na as AnnotationThread, Nc as CollabAction, Nl as PdfPageActions, Nn as RedactionApplyItemResult, No as decodeStableIdKey, Nr as SearchQuery, Ns as CharBoundaryBias, Oa as CommentThreadReview, Oc as parseScope, Oi as TextFieldDraft, Ol as PdfActionTree, On as HighlightPatch, Oo as subtypeFromCode, Or as SearchMatchRange, Os as UprightGeometryRun, Ot as LinePatch, Pa as buildThreads, Pc as CollabEntity, Pi as WidgetStyleDraftFields, Pl as SubmitFormFlags, Pn as RedactionApplyResult, Po as encodeStableIdKey, Pr as SearchRequest, Ps as CharMapAnchor, Pt as PolylinePatch, Qa as FilledStyleDraftFields, Qc as CaretIntent, Qi as FormValueEntry, Qn as PageFlattenUsage, Qo as AnnotationAppearanceMode, Qr as FormFieldUpdateResult, Qs as PageBoxes, R as StampPatch, Ra as DTOOfKind, Rc as ParsedCapability, Ri as ComboBoxFieldDTO, Rl as PageObjectNumber, Rn as PageInsertBlankSpec, Ro as deserializeError, Rr as PageTextLayout, Rs as charRangeForTextOffsets, S as RedactAnnotationDTO, Sa as DocumentManifest, Sc as expandRawScope, Si as CheckboxFieldDraft, Sl as PdfSize, Sn as UnderlinePatch, So as resolveBinarySource, Sr as matchLiteral, Ss as createPageImageHandle, St as LinkPatch, T as WidgetAnnotationDTO, Ta as LayerScopes, Tc as InvalidScope, Ti as FormFieldOptionInput, Tl as NamedJavaScriptAction, To as PDF_CODE_TO_SUBTYPE, Tr as FoldOptions, Ts as PageGeometrySnapshot, U as StampWireDraft, Ua as AttachmentsCache, Uc as PdfBits, Ui as FormFieldOption, Un as PageRotateInput, Uo as FontSpec, Ur as buildPageTextLayout, Us as pdfQuadBounds, Ut as VertexAnnotationFields, V as StampDraft, Va as AttachmentCreateResult, Vc as ParsedVirtual, Vi as FormFieldFamily, Vl as DocumentMetadataTrapped, Vn as PageDeleteInput, Vo as FontHandle, Vr as TextLayoutGlyph, Vs as PdfQuadCorners, Vt as PolygonAnnotationDTO, Wa as normalizeAttachmentFileSource, Wc as AnnotationDraftBase, Wi as FormFieldOrigin, Wn as AnnotationAppearanceExportInput, Wo as DEFAULT_PDF_SAVE_MODE, Wr as expandTextRangeToLine, Ws as pdfQuadCorners, Wt as VertexDraftFields, X as NoteIcon, Xa as ColorStyleFields, Xc as AnnotationReplyType, Xi as ToggleFieldWidget, Xn as PageFlattenResult, Xo as AnnotationAppearanceManifest, Xr as FormFieldCreateResult, Xs as pdfRectWidth, Xt as SquareAnnotationDTO, Y as TextAnnotationDTO, Ya as ColorStyleDraftFields, Yc as AnnotationFlags, Yi as TextFieldDTO, Yn as PageFlattenItemResult, Yo as AnnotationAppearanceImagesResult, Yr as FormDataExport, Ys as pdfRectToOriginSize, Yt as SquarePatch, Z as TextDraft, Za as ColorStylePatchFields, Zc as BlendMode, Zi as UnknownFieldDTO, Zn as PageFlattenStatus, Zo as AnnotationAppearanceManifestEntry, Zr as FormFieldDeleteResult, Zs as PageListSnapshot, Zt as SquareDraft, _a as RefetchReason, _c as CollabTarget, _i as ComboBoxFieldPatch, _l as LinePoints, _n as SquigglyAnnotationDTO, _o as BinaryPayload, _r as SearchRegexValidation, _s as PageRenderFormat, aa as AnnotationMoveResult, ac as OpenInputById, ai as FormEffectStatus, al as NO_ANNOTATION_FLAGS, an as ShapeDraftFields, ao as AttachmentFileBase, ar as PageMoveInput, as as WeakAnnotationState, b as UnsupportedAnnotationDTO, ba as PdfLinkTarget, bc as checkCollab, bi as RadioFieldPatch, bl as PdfRect, bo as WireResource, br as validateSearchRegex, bs as PageRenderTarget, c as AnnotationKind, ca as AppearanceImpact, cc as OpenInputLayerSource, ci as FormSubmissionEntry, cl as Rect, co as EmbeddedFileItem, cr as searchRectsForRange, cs as PageImageHandle, ct as FreeTextAnnotationDTO, d as AnnotationSubtypeOfKind, da as semanticEqual, dc as OpenOptions, dl as StandardFont, dn as StrikeoutAnnotationDTO, do as NormalizedPatch, dr as buildSnippet, ds as PageImageResult, ea as FormWidgetRef, ec as PageRotation, ei as FormRepairResult, el as FreeTextFont, eo as FilledStylePatchFields, er as PageNameInput, es as AnnotationAppearanceRenderOptions, fa as AnnotationMutationKind, fc as TokenSource, fi as FormSubmissionRequest, fl as StrikeoutIntent, fn as StrikeoutDraft, fo as normalizeAnnotationDraft, fr as matchPageText, fs as PageImageSource, ga as AnnotationListMutationMeta, gc as pdfPermissions, gi as CheckboxFieldPatch, gl as InkStroke, gn as SquigglyPatch, go as sniffBinaryMetadata, gr as SearchRegexIssue, gs as PageRenderEncodedFormat, ha as shiftsExistingAnnotationIndices, hc as materializePdfPermissions, hi as FormFieldValue, hl as InkList, ho as BinaryMimeType, hr as SearchQueryValidation, hs as PageRenderBackground, ht as InkDraft, i as AnnotationDTO, ia as AnnotationDeleteResult, ic as OpenInput, ii as FormEffectResult, il as LineEndings, in as ShapeAnnotationFields, io as AttachmentContent, ir as PageStructureCache, is as UNKNOWN_WEAK_ANNOTATION_STATE, ja as isStateAnnotation, jc as decodePdfBits, ji as FormSnapshot, jl as PdfAnnotationActions, jn as MetadataCache, jo as AnnotationIdentityQuality, jr as SearchMatch, js as isRotatedGeometryRun, ka as ReviewStatus, kc as validateScopeArray, ki as WidgetPlacement, kl as PdfActionType, kn as HighlightAnnotationDTO, ko as AnnotationPatchBase, kr as foldText, ks as glyphLooseBounds, kt as LineAnnotationDTO, l as AnnotationPatch, la as AppearanceOutcome, lc as OpenInputShare, ll as Rotation, lo as EmbeddedFileRef, lr as searchSegmentsForRange, ls as PageImageObjectUrl, lt as FreeTextDraft, m as WireAnnotationPatch, ma as invalidatesWeakIndexRefs, mc as collab, mi as FormDataFormat, ml as CalloutLine, mo as BinaryMetadata, mr as SearchQueryIssue, ms as PageRaster, mt as InkAnnotationDTO, n as AnnotationListSnapshotAllPages, na as encodeFieldRefKey, nc as NamedPageTarget, ni as FormWidgetLinkResult, nl as InkIntent, nn as CircleAnnotationDTO, no as GeometryStyleFields, nr as PageMoveCache, ns as AnnotationAppearancesResult, nt as CaretAnnotationDTO, o as AnnotationDraft, oa as AnnotationUpdateResult, oc as OpenInputBytes, oi as FormEffectsResult, ol as PdfRectDifferences, on as ShapePatchFields, oo as AttachmentFileInfo, or as canonicalSearchQuery, os as knownWeakAnnotationState, p as WireAnnotationDraft, pa as changesAnnotationList, pc as caps, pl as TextAlignment, po as normalizeAnnotationPatch, pr as SEARCH_REGEX_MAX_LENGTH, ps as PageNetworkRenderFormat, pt as InkPatch, qa as FileAttachmentWireDraft, qc as revisionTokensEqual, qi as RadioFieldDTO, qn as AnnotationFlattenResult, qo as AnnotationAppearanceImage, qr as textGlyphQuad, qs as pdfRectHeight, ra as AnnotationCreateResult, rc as MetadataPatch, ri as FormEffect, rl as LineEnding, rn as CircleDraft, ro as GeometryStylePatchFields, rr as PageMoveResult, rs as PageState, rt as CaretDraft, sa as AppearanceAction, sc as OpenInputLayerBytes, si as FormFieldDisplay, sl as Point, so as AttachmentFileSource, sr as searchContentEpoch, ss as PageImageBlobSource, st as FreeTextPatch, t as AnnotationListPageSnapshot, ta as decodeFieldRefKey, tc as NamedPageEntry, ti as FormSetValueResult, tl as FreeTextIntent, tn as CirclePatch, to as GeometryStyleDraftFields, tr as PageRemoveNameInput, ts as AnnotationAppearancesQuery, tt as CaretPatch, ua as appearanceImpactOf, uc as OpenInputToken, ui as FormSubmissionReceipt, ul as Size, un as StrikeoutPatch, uo as NormalizedDraft, ur as SEARCH_SNIPPET_CONTEXT, us as PageImageOptions, v as UnsupportedPatch, va as CacheDelta, vc as checkAnyCapability, vi as FormFieldPatch, vl as PdfPoint, vn as SquigglyDraft, vo as BinarySource, vr as matchRegex, vs as PageRenderOptions, w as WidgetPatch, wa as LayerScopePlane, wc as filterMatches, wi as FormFieldDraft, wl as DocumentActionsSnapshot, wn as UnderlineDraft, wo as AnnotationSubtype, wr as wordBefore, ws as PageGeometryRun, wt as LinkDraft, x as RedactPatch, xa as PdfLinkTargetWritable, xc as checkSetGroup, xi as TextFieldPatch, xl as PdfRotation, xo as WireResourceMap, xr as foldOptionsFor, xs as PageRenderViewport, y as UnsupportedDraft, ya as MutationMeta, yc as checkCapability, yi as ListBoxFieldPatch, yl as PdfQuad, yo as ResourceRef, yr as validateSearchQuery, ys as PageRenderQuery, z as StampWirePatch, za as DraftOfKind, zc as ParsedCollab, zi as FormFieldBase, zl as isValidPageObjectNumber, zn as PageInsertResult, zo as serializeError, zr as PdfTextSegment, zs as sliceTextByChars } from "./AnnotationListSnapshot-x6tKulNV.js";
2
- export { ANNOTATION_SUBTYPES, type ActionReadBudget, type AnnotationActor, type AnnotationAppearanceExportInput, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceManifest, type AnnotationAppearanceManifestEntry, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesQuery, type AnnotationAppearancesResult, type AnnotationBase, type AnnotationBorderStyle, type AnnotationCreateResult, type AnnotationDTO, type AnnotationDeleteResult, type AnnotationDraft, type AnnotationDraftBase, type AnnotationFlags, type AnnotationFlattenInput, type AnnotationFlattenItemResult, type AnnotationFlattenResult, type AnnotationIdentityQuality, type AnnotationKind, type AnnotationKindModule, type AnnotationListMutationMeta, type AnnotationListPageSnapshot, type AnnotationListSnapshotAllPages, type AnnotationMoveResult, type AnnotationMutationKind, type AnnotationPatch, type AnnotationPatchBase, type AnnotationRef, type AnnotationRelationKind, type AnnotationReplyType, type AnnotationStableId, type AnnotationSubtype, type AnnotationSubtypeOfKind, type AnnotationThread, type AnnotationUpdateResult, type AppearanceAction, type AppearanceImpact, type AppearanceOutcome, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentsCache, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, type BuildCommentThreadsOptions, type CacheDelta, type CachePins, type CalloutLine, type CaretAnnotationDTO, type CaretDraft, type CaretIntent, type CaretPatch, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type CircleAnnotationDTO, type CircleDraft, type CirclePatch, type CollabAction, type CollabEntity, type CollabFilter, type CollabTarget, type Color, type ColorStyleDraftFields, type ColorStyleFields, type ColorStylePatchFields, type ComboBoxFieldDTO, type ComboBoxFieldDraft, type ComboBoxFieldPatch, type CommentThread, type CommentThreadReview, DEFAULT_PDF_SAVE_MODE, type DTOOfKind, type DocCapability, type DocumentActionsSnapshot, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DraftOfKind, type EmbeddedFileItem, type EmbeddedFileRef, EngineError, EngineErrorCode, type EngineErrorOptions, type FileAttachmentAnnotationDTO, type FileAttachmentDraft, type FileAttachmentIcon, type FileAttachmentPatch, type FileAttachmentWireDraft, type FilledStyleDraftFields, type FilledStyleFields, type FilledStylePatchFields, type FoldOptions, type FoldedText, type FontHandle, type FontKey, type FontSpec, type FormDataExport, type FormDataFormat, type FormEffect, type FormEffectResult, type FormEffectStatus, type FormEffectsResult, type FormFieldBase, type FormFieldCreateResult, type FormFieldDTO, type FormFieldDeleteResult, type FormFieldDisplay, type FormFieldDraft, type FormFieldFamily, type FormFieldFlags, type FormFieldOption, type FormFieldOptionInput, type FormFieldOrigin, type FormFieldPatch, type FormFieldRef, type FormFieldUpdateResult, type FormFieldValue, type FormImportResult, type FormKind, type FormRepairResult, type FormSetValueResult, type FormSnapshot, type FormSubmissionEntry, type FormSubmissionReceipt, type FormSubmissionRequest, type FormValueEntry, type FormWidgetLinkResult, type FormWidgetRef, type FreeTextAnnotationDTO, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotationDTO, type HighlightDraft, type HighlightPatch, type IdentityClaims, type InkAnnotationDTO, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type LayerScopePlane, type LayerScopes, type LineAnnotationDTO, type LineDraft, type LineEnding, type LineEndings, type LinePatch, type LinePoints, type LinkAnnotationDTO, type LinkDraft, type LinkPatch, type ListBoxFieldDTO, type ListBoxFieldDraft, type ListBoxFieldPatch, type ManifestPage, type MetadataCache, type MetadataPatch, type MetadataUpdateResult, MissingIdentity, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NamedPageEntry, type NamedPageTarget, type NormalizedDraft, type NormalizedPatch, type NoteIcon, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenOptions, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, type PageBoxes, type PageDeleteInput, type PageDeleteResult, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageGeometryGlyph, type PageGeometryRun, type PageGeometrySnapshot, type PageImageBlobSource, type PageImageHandle, type PageImageObjectUrl, type PageImageOptions, type PageImageResult, type PageImageSource, type PageInsertBlankSpec, type PageInsertResult, type PageLayout, type PageListSnapshot, type PageMoveCache, type PageMoveInput, type PageMoveResult, type PageNameInput, type PageNameResult, type PageNetworkRenderFormat, type PageObjectNumber, type PageRaster, type PageRemoveNameInput, type PageRenderBackground, type PageRenderEncodedFormat, type PageRenderFormat, type PageRenderOptions, type PageRenderQuery, type PageRenderTarget, type PageRenderViewport, type PageRotateInput, type PageRotateResult, type PageRotation, type PageState, type PageStructureCache, type PageTextLayout, type PageTextSnapshot, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PatchOfKind, type PdfActionNode, type PdfActionTargetRef, type PdfActionTree, type PdfActionType, type PdfActionWarning, type PdfAnnotationActions, PdfAnnotationSubtypeCode, type PdfBits, type PdfDestination, type PdfFieldActions, type PdfLinkTarget, type PdfLinkTargetWritable, type PdfOriginSize, type PdfPageActions, type PdfPoint, type PdfQuad, type PdfQuadCorners, type PdfRect, type PdfRectDifferences, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfTextSegment, PermissionDenied, type Point, type PolygonAnnotationDTO, type PolygonDraft, type PolygonPatch, type PolylineAnnotationDTO, type PolylineDraft, type PolylinePatch, type PushButtonFieldDTO, type RadioFieldDTO, type RadioFieldDraft, type RadioFieldPatch, type Rect, type RedactAnnotationDTO, type RedactDraft, type RedactPatch, type RedactionApplyItemResult, type RedactionApplyResult, type RedactionApplyScope, type RedactionApplyStatus, type RefetchReason, type ResourceRef, type ReviewStatus, type RevisionToken, type RotatedGeometryGlyph, type RotatedGeometryRun, type Rotation, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, type SearchMatch, type SearchMatchRange, type SearchMode, type SearchQuery, type SearchQueryIssue, type SearchQueryValidation, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchSlice, type SearchSliceBudget, type SearchSnippet, type SerializedEngineError, type ShapeAnnotationFields, type ShapeDraftFields, type ShapePatchFields, type SignatureFieldDTO, type Size, type SquareAnnotationDTO, type SquareDraft, type SquarePatch, type SquigglyAnnotationDTO, type SquigglyDraft, type SquigglyPatch, type StampAnnotationDTO, type StampDraft, type StampFit, type StampPatch, type StampWireDraft, type StampWirePatch, type StandardFont, type StrikeoutAnnotationDTO, type StrikeoutDraft, type StrikeoutIntent, type StrikeoutPatch, type SubmitFormFlags, type SubmitFormPayload, type TextAlignment, type TextAnnotationDTO, type TextDraft, type TextFieldDTO, type TextFieldDraft, type TextFieldPatch, type TextLayoutFrame, type TextLayoutGlyph, type TextLayoutRun, type TextPatch, type ToggleFieldWidget, type TokenSource, UNKNOWN_WEAK_ANNOTATION_STATE, type UnderlineAnnotationDTO, type UnderlineDraft, type UnderlinePatch, type UnknownFieldDTO, type UnsupportedAnnotationDTO, type UnsupportedDraft, type UnsupportedPatch, type UprightGeometryRun, type VertexAnnotationFields, type VertexDraftFields, type VertexPatchFields, type WeakAnnotationState, type WidgetAnnotationDTO, type WidgetAppearance, type WidgetDraft, type WidgetPatch, type WidgetPlacement, type WidgetStyleDraftFields, type WidgetStyleFields, type WidgetStylePatchFields, type WireAnnotationDraft, type WireAnnotationPatch, type WireAttachmentFile, type WireResource, type WireResourceMap, appearanceImpactOf, boundaryTextOffset, buildCommentThreads, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, decodeSubmitFormFlags, deserializeError, encodeFieldRefKey, encodeStableIdKey, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isRotatedGeometryRun, isStateAnnotation, isValidPageObjectNumber, knownWeakAnnotationState, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parseScope, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, refKey, resolveBinarySource, revisionTokensEqual, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, sniffBinaryMetadata, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wordAt, wordBefore };
1
+ import { $a as semanticEqual, $c as NamedPageEntry, $i as FormFieldDisplay, $l as CachePins, $n as PageNameResult, $o as normalizeAnnotationPatch, $r as FormImportResult, $s as AnnotationAppearanceManifestEntry, $u as PdfRect, Aa as ComboBoxFieldDTO, Ac as PageTextSnapshot, Ai as refsOf, Al as FieldLockSpec, An as HighlightDraft, Ao as normalizeAttachmentFileSource, Ar as toOriginalRange, As as RichTextDirection, At as LineDraft, Au as BlendMode, B as StampAnnotationDTO, Ba as SignatureFieldDTO, Bc as normalizePdfRect, Bi as ObjectReferrer, Bl as SignaturePrepareInput, Bn as PageDeleteResult, Bo as FilledStylePatchFields, Br as TextLayoutFrame, Bs as richTextPlainText, Bt as PolygonPatch, Bu as Point, C as RedactDraft, Ca as FormSnapshot, Cc as PageGeometrySnapshot, Ci as evaluateStep, Cl as BaseVersionInfo, Cn as UnderlineAnnotationDTO, Co as AnnotationKindModule, Cr as wordAt, Cs as SerializedEngineError, Ct as LinkAnnotationDTO, Cu as AnnotationDraftBase, Da as WidgetStyleFields, Dc as glyphLooseBounds, Di as dictEntries, Dl as DocumentProtection, Do as AttachmentCreateResult, Dr as SEARCH_FOLD_VERSION, Ds as RichTextAlign, Du as AnnotationBorderStyle, E as WidgetDraft, Ea as WidgetStyleDraftFields, Ec as UprightGeometryRun, Ei as changedKeys, El as DocumentFieldLock, Eo as PatchOfKind, Er as FoldedText, Es as EngineErrorCode, Eu as revisionTokensEqual, Fa as FormFieldOption, Fc as charMapViolation, Fi as ChangeFinding, Fl as SignatureCompleteInput, Fn as RedactionApplyScope, Fo as ColorStyleDraftFields, Fr as SearchSlice, Fs as RichTextParagraphProps, Ft as PolylineAnnotationDTO, Fu as InkIntent, Ga as AnnotationCreateResult, Gc as pdfRectHeight, Gi as RevisionHealth, Gl as SignatureSubFilter, Gn as AnnotationFlattenInput, Go as AttachmentFileBase, Gr as expandTextRangeToWord, Gs as FontSpec, Gt as VertexPatchFields, Gu as StrikeoutIntent, H as StampFit, Ha as ToggleFieldWidget, Hc as pdfQuadCorners, Hi as RestrictionAnchor, Hl as SignatureSeedValue, Hn as PageRotateResult, Ho as GeometryStyleFields, Hr as TextLayoutRun, Hs as FontHandle, Ht as PolygonDraft, Hu as Rotation, Ia as FormFieldOrigin, Ic as charRangeForTextOffsets, Ii as ObjectChange, Il as SignatureCompleteResult, In as RedactionApplyStatus, Io as ColorStyleFields, Ir as SearchSliceBudget, Is as RichTextRun, It as PolylineDraft, Iu as LineEnding, J as TextPatch, Ja as AnnotationUpdateResult, Jc as pdfRectWidth, Ji as StepVerdict, Jl as MutationMeta, Jn as PageFlattenInput, Jo as EmbeddedFileItem, Jr as textSegmentsForRange, Js as PdfSaveMode, Ju as InkList, Ka as AnnotationDeleteResult, Kc as pdfRectSize, Ki as RevisionStructure, Kl as SignedDocumentPolicy, Kn as AnnotationFlattenItemResult, Ko as AttachmentFileInfo, Kr as textGlyphAt, Ks as SessionKind, Ku as TextAlignment, La as ListBoxFieldDTO, Lc as sliceTextByChars, Li as ObjectChangeKind, Ll as SignatureCoverage, Ln as PAGE_INSERT_BLANK_MAX_COUNT, Lo as ColorStylePatchFields, Lr as SearchSnippet, Ls as RichTextRunStyle, Lu as LineEndings, M as FileAttachmentPatch, Ma as FormFieldDTO, Mc as CharMapAnchor, Mi as AnalyzeInput, Ml as PdfRevision, Mn as MetadataUpdateResult, Mo as FileAttachmentIcon, Mr as SearchMode, Ms as RichTextDocumentInput, Mu as Color, N as FileAttachmentAnnotationDTO, Na as FormFieldFamily, Nc as boundaryTextOffset, Ni as Assessment, Nl as SignatureAbortResult, Nn as RedactionApplyItemResult, No as FileAttachmentWireDraft, Nr as SearchQuery, Ns as RichTextMargins, Nu as FreeTextFont, Oa as WidgetStylePatchFields, Oc as glyphLooseQuad, Oi as parsePdfValue, Ol as DocumentVersionRef, On as HighlightPatch, Oo as AttachmentDeleteResult, Or as SearchMatchRange, Os as RichTextBody, Ot as LinePatch, Ou as AnnotationFlags, Pa as FormFieldFlags, Pc as charBoundaryAtTextOffset, Pi as ChangeAnalysis, Pl as SignatureAppearanceInput, Pn as RedactionApplyResult, Po as WireAttachmentFile, Pr as SearchRequest, Ps as RichTextParagraph, Pt as PolylinePatch, Pu as FreeTextIntent, Qa as appearanceImpactOf, Qc as PageRotation, Qi as FormEffectsResult, Ql as knownWeakAnnotationState, Qn as PageFlattenUsage, Qo as normalizeAnnotationDraft, Qr as FormFieldUpdateResult, Qs as AnnotationAppearanceManifest, Qu as PdfQuad, R as StampPatch, Ra as PushButtonFieldDTO, Rc as PdfOriginSize, Ri as ObjectChangeType, Rl as SignatureDTO, Rn as PageInsertBlankSpec, Ro as FilledStyleDraftFields, Rr as PageTextLayout, Rs as RichTextScript, Ru as NO_ANNOTATION_FLAGS, S as RedactAnnotationDTO, Sa as FormKind, Sc as PageGeometryRun, Si as restrictionsFor, Sl as filterMatches, Sn as UnderlinePatch, So as refKey, Sr as matchLiteral, Ss as EngineErrorOptions, St as LinkPatch, Su as PdfBits, T as WidgetAnnotationDTO, Tc as RotatedGeometryRun, Ti as sameEffectiveValue, Tl as DocMdpPermission, To as DraftOfKind, Tr as FoldOptions, Ts as serializeError, Tu as RevisionToken, U as StampWireDraft, Ua as UnknownFieldDTO, Uc as pdfQuadFromCorners, Ui as RevisionAnalysis, Ul as SignatureSigner, Un as PageRotateInput, Uo as GeometryStylePatchFields, Ur as buildPageTextLayout, Us as FontIdentityInfo, Ut as VertexAnnotationFields, Uu as Size, V as StampDraft, Va as TextFieldDTO, Vc as pdfQuadBounds, Vi as PdfValue, Vl as SignaturePrepared, Vn as PageDeleteInput, Vo as GeometryStyleDraftFields, Vr as TextLayoutGlyph, Vs as FontEmbeddingPermission, Vt as PolygonAnnotationDTO, Vu as Rect, Wa as FormValueEntry, Wc as pdfRectFromOriginSize, Wi as RevisionField, Wl as SignatureSnapshot, Wn as AnnotationAppearanceExportInput, Wo as AttachmentContent, Wr as expandTextRangeToLine, Ws as FontKey, Wt as VertexDraftFields, Wu as StandardFont, X as NoteIcon, Xa as AppearanceImpact, Xc as PageBoxes, Xi as FormEffectResult, Xl as UNKNOWN_WEAK_ANNOTATION_STATE, Xn as PageFlattenResult, Xo as NormalizedDraft, Xr as FormFieldCreateResult, Xs as AnnotationAppearanceImageOptions, Xt as SquareAnnotationDTO, Xu as LinePoints, Y as TextAnnotationDTO, Ya as AppearanceAction, Yc as PageListSnapshot, Yi as FormEffect, Yl as PageState, Yn as PageFlattenItemResult, Yo as EmbeddedFileRef, Yr as FormDataExport, Ys as AnnotationAppearanceImage, Yt as SquarePatch, Yu as InkStroke, Z as TextDraft, Za as AppearanceOutcome, Zc as PageLayout, Zi as FormEffectStatus, Zl as WeakAnnotationState, Zn as PageFlattenStatus, Zo as NormalizedPatch, Zr as FormFieldDeleteResult, Zs as AnnotationAppearanceImagesResult, Zt as SquareDraft, Zu as PdfPoint, _a as FormFieldOptionInput, _c as PageRenderQuery, _d as PageObjectNumber, _i as DEFAULT_EDGE_RESOLVER_BUDGET, _l as checkCapability, _n as SquigglyAnnotationDTO, _o as isStateAnnotation, _r as SearchRegexValidation, _s as AnnotationIdentityQuality, _u as ParsedCapability, ac as PageImageBlobSource, ad as PdfActionNode, ai as fieldLockFor, al as OpenInputLayerBytes, an as ShapeDraftFields, ao as RefetchReason, ar as PageMoveInput, as as ResourceRef, au as MissingIdentity, b as UnsupportedAnnotationDTO, ba as TextFieldDraft, bc as createPageImageHandle, bd as DocumentMetadataTrapped, bi as ResolvedUsage, bl as expandRawScope, bo as buildThreads, br as validateSearchRegex, bs as encodeStableIdKey, bu as ParsedVirtual, c as AnnotationKind, ca as CheckboxFieldPatch, cc as PageImageOptions, cd as PdfActionType, ci as lockCovers, cl as OpenInputToken, co as DocumentManifest, cr as searchRectsForRange, cs as resolveBinarySource, ct as FreeTextAnnotationDTO, cu as validateScopeArray, d as AnnotationSubtypeOfKind, da as ListBoxFieldPatch, dc as PageNetworkRenderFormat, dd as PdfFieldActions, di as protectedCapabilities, dl as caps, dn as StrikeoutAnnotationDTO, do as LayerScopes, dr as buildSnippet, ds as PDF_CODE_TO_SUBTYPE, du as AnnotationActor, ea as FormSubmissionEntry, ec as AnnotationAppearanceMode, ed as PdfRotation, ei as FormRepairResult, el as NamedPageTarget, eo as AnnotationMutationKind, er as PageNameInput, es as BinaryMetadata, eu as FormFieldRef, fa as RadioFieldPatch, fc as PageRaster, fd as PdfPageActions, fi as assessmentOf, fl as collab, fn as StrikeoutDraft, fo as BuildCommentThreadsOptions, fr as matchPageText, fs as PDF_SUBTYPE_TO_CODE, fu as CollabAction, ga as FormFieldDraft, gc as PageRenderOptions, gd as PdfDestination, gi as worstVerdict, gl as checkAnyCapability, gn as SquigglyPatch, go as buildCommentThreads, gr as SearchRegexIssue, gs as AnnotationBase, gu as IdentityClaims, ha as ComboBoxFieldDraft, hc as PageRenderFormat, hd as decodeSubmitFormFlags, hi as primaryFinding, hl as CollabTarget, ho as ReviewStatus, hr as SearchQueryValidation, hs as AnnotationPatchBase, ht as InkDraft, hu as DocCapability, i as AnnotationDTO, ia as FormSubmissionRequest, ic as AnnotationAppearancesResult, id as NamedJavaScriptAction, ii as deriveProtection, il as OpenInputBytes, in as ShapeAnnotationFields, io as AnnotationListMutationMeta, ir as PageStructureCache, is as BinarySource, iu as InvalidScope, ja as FormFieldBase, jc as CharBoundaryBias, ji as stableStringify, jl as ModificationLevel, jn as MetadataCache, jo as FileAttachmentDraft, jr as SearchMatch, js as RichTextDocument, ju as CaretIntent, ka as CheckboxFieldDTO, kc as isRotatedGeometryRun, ki as pdfValueEquals, kl as FieldLockAction, kn as HighlightAnnotationDTO, ko as AttachmentsCache, kr as foldText, ks as RichTextDecoration, kt as LineAnnotationDTO, ku as AnnotationReplyType, l as AnnotationPatch, la as ComboBoxFieldPatch, lc as PageImageResult, ld as PdfActionWarning, li as lockNameCovers, ll as OpenOptions, lo as ManifestPage, lr as searchSegmentsForRange, ls as ANNOTATION_SUBTYPES, lt as FreeTextDraft, lu as PDF_BITS, m as WireAnnotationPatch, ma as CheckboxFieldDraft, mc as PageRenderEncodedFormat, md as SubmitFormPayload, mi as conclude, ml as pdfPermissions, mo as CommentThreadReview, mr as SearchQueryIssue, ms as subtypeFromCode, mt as InkAnnotationDTO, mu as CollabFilter, n as AnnotationListSnapshotAllPages, na as FormSubmissionReceipt, nc as AnnotationAppearanceRenderOptions, nd as ActionReadBudget, ni as FormWidgetLinkResult, nl as OpenInput, nn as CircleAnnotationDTO, no as invalidatesWeakIndexRefs, nr as PageMoveCache, ns as sniffBinaryMetadata, nt as CaretAnnotationDTO, nu as decodeFieldRefKey, o as AnnotationDraft, oa as FormDataFormat, oc as PageImageHandle, od as PdfActionTargetRef, oi as levelAllows, ol as OpenInputLayerSource, on as ShapePatchFields, oo as PdfLinkTarget, or as canonicalSearchQuery, os as WireResource, ou as PermissionDenied, p as WireAnnotationDraft, pa as TextFieldPatch, pc as PageRenderBackground, pd as SubmitFormFlags, pi as combine, pl as materializePdfPermissions, po as CommentThread, pr as SEARCH_REGEX_MAX_LENGTH, ps as PdfAnnotationSubtypeCode, pt as InkPatch, pu as CollabEntity, qa as AnnotationMoveResult, qc as pdfRectToOriginSize, qi as StepInput, ql as CacheDelta, qn as AnnotationFlattenResult, qo as AttachmentFileSource, qr as textGlyphQuad, qs as DEFAULT_PDF_SAVE_MODE, qu as CalloutLine, rc as AnnotationAppearancesQuery, rd as DocumentActionsSnapshot, ri as SIGNATURE_POLICY_VERSION, rl as OpenInputById, rn as CircleDraft, ro as shiftsExistingAnnotationIndices, rr as PageMoveResult, rs as BinaryPayload, rt as CaretDraft, ru as encodeFieldRefKey, sa as FormFieldValue, sc as PageImageObjectUrl, sd as PdfActionTree, si as levelFromPermission, sl as OpenInputShare, so as PdfLinkTargetWritable, sr as searchContentEpoch, ss as WireResourceMap, st as FreeTextPatch, su as parseScope, t as AnnotationListPageSnapshot, tc as AnnotationAppearanceRaster, td as PdfSize, ti as FormSetValueResult, tl as MetadataPatch, tn as CirclePatch, to as changesAnnotationList, tr as PageRemoveNameInput, ts as BinaryMimeType, tt as CaretPatch, tu as FormWidgetRef, ua as FormFieldPatch, uc as PageImageSource, ud as PdfAnnotationActions, ui as minLevel, ul as TokenSource, un as StrikeoutPatch, uo as LayerScopePlane, ur as SEARCH_SNIPPET_CONTEXT, us as AnnotationSubtype, uu as decodePdfBits, v as UnsupportedPatch, va as ListBoxFieldDraft, vc as PageRenderTarget, vd as isValidPageObjectNumber, vi as EdgeResolver, vl as checkCollab, vn as SquigglyDraft, vo as AnnotationRelationKind, vr as matchRegex, vs as AnnotationStableId, vu as ParsedCollab, w as WidgetPatch, wa as WidgetAppearance, wc as RotatedGeometryGlyph, wi as restrictionsOf, wl as DigestAlgorithm, wn as UnderlineDraft, wo as DTOOfKind, wr as wordBefore, ws as deserializeError, wt as LinkDraft, wu as AnnotationRef, x as RedactPatch, xa as WidgetPlacement, xc as PageGeometryGlyph, xi as USAGE_INCOMPLETE, xl as expandedCapabilities, xo as classifyRelation, xr as foldOptionsFor, xs as EngineError, xu as ParsedWildcard, y as UnsupportedDraft, ya as RadioFieldDraft, yc as PageRenderViewport, yd as DocumentMetadata, yi as EdgeResolverBudget, yl as checkSetGroup, yo as AnnotationThread, yr as validateSearchQuery, ys as decodeStableIdKey, yu as ParsedScope, z as StampWirePatch, za as RadioFieldDTO, zc as PdfQuadCorners, zi as ObjectReadStatus, zl as SignatureKind, zn as PageInsertResult, zo as FilledStyleFields, zr as PdfTextSegment, zs as richTextParagraphsFromPlainText, zu as PdfRectDifferences } from "./AnnotationListSnapshot-D3mFut1e.js";
2
+ export { ANNOTATION_SUBTYPES, type ActionReadBudget, type AnalyzeInput, type AnnotationActor, type AnnotationAppearanceExportInput, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceManifest, type AnnotationAppearanceManifestEntry, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesQuery, type AnnotationAppearancesResult, type AnnotationBase, type AnnotationBorderStyle, type AnnotationCreateResult, type AnnotationDTO, type AnnotationDeleteResult, type AnnotationDraft, type AnnotationDraftBase, type AnnotationFlags, type AnnotationFlattenInput, type AnnotationFlattenItemResult, type AnnotationFlattenResult, type AnnotationIdentityQuality, type AnnotationKind, type AnnotationKindModule, type AnnotationListMutationMeta, type AnnotationListPageSnapshot, type AnnotationListSnapshotAllPages, type AnnotationMoveResult, type AnnotationMutationKind, type AnnotationPatch, type AnnotationPatchBase, type AnnotationRef, type AnnotationRelationKind, type AnnotationReplyType, type AnnotationStableId, type AnnotationSubtype, type AnnotationSubtypeOfKind, type AnnotationThread, type AnnotationUpdateResult, type AppearanceAction, type AppearanceImpact, type AppearanceOutcome, type Assessment, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentsCache, type BaseVersionInfo, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, type BuildCommentThreadsOptions, type CacheDelta, type CachePins, type CalloutLine, type CaretAnnotationDTO, type CaretDraft, type CaretIntent, type CaretPatch, type ChangeAnalysis, type ChangeFinding, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type CircleAnnotationDTO, type CircleDraft, type CirclePatch, type CollabAction, type CollabEntity, type CollabFilter, type CollabTarget, type Color, type ColorStyleDraftFields, type ColorStyleFields, type ColorStylePatchFields, type ComboBoxFieldDTO, type ComboBoxFieldDraft, type ComboBoxFieldPatch, type CommentThread, type CommentThreadReview, DEFAULT_EDGE_RESOLVER_BUDGET, DEFAULT_PDF_SAVE_MODE, type DTOOfKind, type DigestAlgorithm, type DocCapability, type DocMdpPermission, type DocumentActionsSnapshot, type DocumentFieldLock, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DocumentProtection, type DocumentVersionRef, type DraftOfKind, EdgeResolver, type EdgeResolverBudget, type EmbeddedFileItem, type EmbeddedFileRef, EngineError, EngineErrorCode, type EngineErrorOptions, type FieldLockAction, type FieldLockSpec, type FileAttachmentAnnotationDTO, type FileAttachmentDraft, type FileAttachmentIcon, type FileAttachmentPatch, type FileAttachmentWireDraft, type FilledStyleDraftFields, type FilledStyleFields, type FilledStylePatchFields, type FoldOptions, type FoldedText, type FontEmbeddingPermission, type FontHandle, type FontIdentityInfo, type FontKey, type FontSpec, type FormDataExport, type FormDataFormat, type FormEffect, type FormEffectResult, type FormEffectStatus, type FormEffectsResult, type FormFieldBase, type FormFieldCreateResult, type FormFieldDTO, type FormFieldDeleteResult, type FormFieldDisplay, type FormFieldDraft, type FormFieldFamily, type FormFieldFlags, type FormFieldOption, type FormFieldOptionInput, type FormFieldOrigin, type FormFieldPatch, type FormFieldRef, type FormFieldUpdateResult, type FormFieldValue, type FormImportResult, type FormKind, type FormRepairResult, type FormSetValueResult, type FormSnapshot, type FormSubmissionEntry, type FormSubmissionReceipt, type FormSubmissionRequest, type FormValueEntry, type FormWidgetLinkResult, type FormWidgetRef, type FreeTextAnnotationDTO, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotationDTO, type HighlightDraft, type HighlightPatch, type IdentityClaims, type InkAnnotationDTO, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type LayerScopePlane, type LayerScopes, type LineAnnotationDTO, type LineDraft, type LineEnding, type LineEndings, type LinePatch, type LinePoints, type LinkAnnotationDTO, type LinkDraft, type LinkPatch, type ListBoxFieldDTO, type ListBoxFieldDraft, type ListBoxFieldPatch, type ManifestPage, type MetadataCache, type MetadataPatch, type MetadataUpdateResult, MissingIdentity, type ModificationLevel, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NamedPageEntry, type NamedPageTarget, type NormalizedDraft, type NormalizedPatch, type NoteIcon, type ObjectChange, type ObjectChangeKind, type ObjectChangeType, type ObjectReadStatus, type ObjectReferrer, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenOptions, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, type PageBoxes, type PageDeleteInput, type PageDeleteResult, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageGeometryGlyph, type PageGeometryRun, type PageGeometrySnapshot, type PageImageBlobSource, type PageImageHandle, type PageImageObjectUrl, type PageImageOptions, type PageImageResult, type PageImageSource, type PageInsertBlankSpec, type PageInsertResult, type PageLayout, type PageListSnapshot, type PageMoveCache, type PageMoveInput, type PageMoveResult, type PageNameInput, type PageNameResult, type PageNetworkRenderFormat, type PageObjectNumber, type PageRaster, type PageRemoveNameInput, type PageRenderBackground, type PageRenderEncodedFormat, type PageRenderFormat, type PageRenderOptions, type PageRenderQuery, type PageRenderTarget, type PageRenderViewport, type PageRotateInput, type PageRotateResult, type PageRotation, type PageState, type PageStructureCache, type PageTextLayout, type PageTextSnapshot, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PatchOfKind, type PdfActionNode, type PdfActionTargetRef, type PdfActionTree, type PdfActionType, type PdfActionWarning, type PdfAnnotationActions, PdfAnnotationSubtypeCode, type PdfBits, type PdfDestination, type PdfFieldActions, type PdfLinkTarget, type PdfLinkTargetWritable, type PdfOriginSize, type PdfPageActions, type PdfPoint, type PdfQuad, type PdfQuadCorners, type PdfRect, type PdfRectDifferences, type PdfRevision, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfTextSegment, type PdfValue, PermissionDenied, type Point, type PolygonAnnotationDTO, type PolygonDraft, type PolygonPatch, type PolylineAnnotationDTO, type PolylineDraft, type PolylinePatch, type PushButtonFieldDTO, type RadioFieldDTO, type RadioFieldDraft, type RadioFieldPatch, type Rect, type RedactAnnotationDTO, type RedactDraft, type RedactPatch, type RedactionApplyItemResult, type RedactionApplyResult, type RedactionApplyScope, type RedactionApplyStatus, type RefetchReason, type ResolvedUsage, type ResourceRef, type RestrictionAnchor, type ReviewStatus, type RevisionAnalysis, type RevisionField, type RevisionHealth, type RevisionStructure, type RevisionToken, type RichTextAlign, type RichTextBody, type RichTextDecoration, type RichTextDirection, type RichTextDocument, type RichTextDocumentInput, type RichTextMargins, type RichTextParagraph, type RichTextParagraphProps, type RichTextRun, type RichTextRunStyle, type RichTextScript, type RotatedGeometryGlyph, type RotatedGeometryRun, type Rotation, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, SIGNATURE_POLICY_VERSION, type SearchMatch, type SearchMatchRange, type SearchMode, type SearchQuery, type SearchQueryIssue, type SearchQueryValidation, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchSlice, type SearchSliceBudget, type SearchSnippet, type SerializedEngineError, type SessionKind, type ShapeAnnotationFields, type ShapeDraftFields, type ShapePatchFields, type SignatureAbortResult, type SignatureAppearanceInput, type SignatureCompleteInput, type SignatureCompleteResult, type SignatureCoverage, type SignatureDTO, type SignatureFieldDTO, type SignatureKind, type SignaturePrepareInput, type SignaturePrepared, type SignatureSeedValue, type SignatureSigner, type SignatureSnapshot, type SignatureSubFilter, type SignedDocumentPolicy, type Size, type SquareAnnotationDTO, type SquareDraft, type SquarePatch, type SquigglyAnnotationDTO, type SquigglyDraft, type SquigglyPatch, type StampAnnotationDTO, type StampDraft, type StampFit, type StampPatch, type StampWireDraft, type StampWirePatch, type StandardFont, type StepInput, type StepVerdict, type StrikeoutAnnotationDTO, type StrikeoutDraft, type StrikeoutIntent, type StrikeoutPatch, type SubmitFormFlags, type SubmitFormPayload, type TextAlignment, type TextAnnotationDTO, type TextDraft, type TextFieldDTO, type TextFieldDraft, type TextFieldPatch, type TextLayoutFrame, type TextLayoutGlyph, type TextLayoutRun, type TextPatch, type ToggleFieldWidget, type TokenSource, UNKNOWN_WEAK_ANNOTATION_STATE, USAGE_INCOMPLETE, type UnderlineAnnotationDTO, type UnderlineDraft, type UnderlinePatch, type UnknownFieldDTO, type UnsupportedAnnotationDTO, type UnsupportedDraft, type UnsupportedPatch, type UprightGeometryRun, type VertexAnnotationFields, type VertexDraftFields, type VertexPatchFields, type WeakAnnotationState, type WidgetAnnotationDTO, type WidgetAppearance, type WidgetDraft, type WidgetPatch, type WidgetPlacement, type WidgetStyleDraftFields, type WidgetStyleFields, type WidgetStylePatchFields, type WireAnnotationDraft, type WireAnnotationPatch, type WireAttachmentFile, type WireResource, type WireResourceMap, appearanceImpactOf, assessmentOf, boundaryTextOffset, buildCommentThreads, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changedKeys, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, combine, conclude, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, decodeSubmitFormFlags, deriveProtection, deserializeError, dictEntries, encodeFieldRefKey, encodeStableIdKey, evaluateStep, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, fieldLockFor, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isRotatedGeometryRun, isStateAnnotation, isValidPageObjectNumber, knownWeakAnnotationState, levelAllows, levelFromPermission, lockCovers, lockNameCovers, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, minLevel, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parsePdfValue, parseScope, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, pdfValueEquals, primaryFinding, protectedCapabilities, refKey, refsOf, resolveBinarySource, restrictionsFor, restrictionsOf, revisionTokensEqual, richTextParagraphsFromPlainText, richTextPlainText, sameEffectiveValue, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, sniffBinaryMetadata, stableStringify, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wordAt, wordBefore, worstVerdict };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as createPageImageHandle, A as appearanceImpactOf, B as normalizeAnnotationDraft, C as validateSearchRegex, D as wordBefore, E as wordAt, F as buildCommentThreads, G as NO_ANNOTATION_FLAGS, H as normalizeAttachmentFileSource, I as isStateAnnotation, J as revisionTokensEqual, K as UNKNOWN_WEAK_ANNOTATION_STATE, L as buildThreads, M as changesAnnotationList, N as invalidatesWeakIndexRefs, O as decodeFieldRefKey, P as shiftsExistingAnnotationIndices, Q as DEFAULT_PDF_SAVE_MODE, R as classifyRelation, S as validateSearchQuery, T as matchLiteral, U as sniffBinaryMetadata, V as normalizeAnnotationPatch, W as resolveBinarySource, X as encodeStableIdKey, Y as decodeStableIdKey, Z as isValidPageObjectNumber, _ as SEARCH_SNIPPET_CONTEXT, a as PDF_BITS, b as SEARCH_REGEX_MAX_LENGTH, c as searchContentEpoch, d as buildPageTextLayout, et as decodeSubmitFormFlags, f as expandTextRangeToLine, g as textSegmentsForRange, h as textGlyphQuad, i as pdfPermissions, j as semanticEqual, k as encodeFieldRefKey, l as searchRectsForRange, m as textGlyphAt, n as collab, o as decodePdfBits, p as expandTextRangeToWord, q as knownWeakAnnotationState, r as materializePdfPermissions, s as canonicalSearchQuery, t as caps, u as searchSegmentsForRange, v as buildSnippet, w as foldOptionsFor, x as matchRegex, y as matchPageText, z as refKey } from "./builders-DOjcKDWQ.js";
2
- import { _ as pdfRectSize, a as deserializeError, c as glyphLooseBounds, d as normalizePdfRect, f as pdfQuadBounds, g as pdfRectHeight, h as pdfRectFromOriginSize, i as EngineError, l as glyphLooseQuad, m as pdfQuadFromCorners, n as foldText, o as serializeError, p as pdfQuadCorners, r as toOriginalRange, t as SEARCH_FOLD_VERSION, u as isRotatedGeometryRun, v as pdfRectToOriginSize, y as pdfRectWidth } from "./fold-BfyxxwS6.js";
3
- import { a as charRangeForTextOffsets, c as PDF_CODE_TO_SUBTYPE, d as subtypeFromCode, f as EngineErrorCode, i as charMapViolation, l as PDF_SUBTYPE_TO_CODE, n as boundaryTextOffset, o as sliceTextByChars, r as charBoundaryAtTextOffset, s as ANNOTATION_SUBTYPES, t as PAGE_INSERT_BLANK_MAX_COUNT, u as PdfAnnotationSubtypeCode } from "./PageInsertBlankInput-WKY0tr6S.js";
4
- import { a as expandRawScope, c as parseScope, d as MissingIdentity, f as PermissionDenied, i as checkSetGroup, l as validateScopeArray, n as checkCapability, o as expandedCapabilities, r as checkCollab, s as filterMatches, t as checkAnyCapability, u as InvalidScope } from "./resolver-CHG4waXL.js";
5
- export { ANNOTATION_SUBTYPES, DEFAULT_PDF_SAVE_MODE, EngineError, EngineErrorCode, InvalidScope, MissingIdentity, NO_ANNOTATION_FLAGS, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, PdfAnnotationSubtypeCode, PermissionDenied, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, UNKNOWN_WEAK_ANNOTATION_STATE, appearanceImpactOf, boundaryTextOffset, buildCommentThreads, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, decodeSubmitFormFlags, deserializeError, encodeFieldRefKey, encodeStableIdKey, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isRotatedGeometryRun, isStateAnnotation, isValidPageObjectNumber, knownWeakAnnotationState, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parseScope, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, refKey, resolveBinarySource, revisionTokensEqual, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, sniffBinaryMetadata, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wordAt, wordBefore };
1
+ import { $ as buildCommentThreads, A as USAGE_INCOMPLETE, B as changedKeys, C as validateSearchRegex, D as wordBefore, E as wordAt, F as assessmentOf, G as stableStringify, H as parsePdfValue, I as combine, J as appearanceImpactOf, K as decodeFieldRefKey, L as conclude, M as evaluateStep, N as restrictionsOf, O as DEFAULT_EDGE_RESOLVER_BUDGET, P as sameEffectiveValue, Q as shiftsExistingAnnotationIndices, R as primaryFinding, S as validateSearchQuery, T as matchLiteral, U as pdfValueEquals, V as dictEntries, W as refsOf, X as changesAnnotationList, Y as semanticEqual, Z as invalidatesWeakIndexRefs, _ as SEARCH_SNIPPET_CONTEXT, _t as richTextPlainText, a as PDF_BITS, at as normalizeAnnotationPatch, b as SEARCH_REGEX_MAX_LENGTH, bt as decodeSubmitFormFlags, c as searchContentEpoch, ct as resolveBinarySource, d as buildPageTextLayout, dt as knownWeakAnnotationState, et as isStateAnnotation, f as expandTextRangeToLine, ft as revisionTokensEqual, g as textSegmentsForRange, gt as richTextParagraphsFromPlainText, h as textGlyphQuad, ht as isValidPageObjectNumber, i as pdfPermissions, it as normalizeAnnotationDraft, j as restrictionsFor, k as EdgeResolver, l as searchRectsForRange, lt as NO_ANNOTATION_FLAGS, m as textGlyphAt, mt as encodeStableIdKey, n as collab, nt as classifyRelation, o as decodePdfBits, ot as normalizeAttachmentFileSource, p as expandTextRangeToWord, pt as decodeStableIdKey, q as encodeFieldRefKey, r as materializePdfPermissions, rt as refKey, s as canonicalSearchQuery, st as sniffBinaryMetadata, t as caps, tt as buildThreads, u as searchSegmentsForRange, ut as UNKNOWN_WEAK_ANNOTATION_STATE, v as buildSnippet, vt as DEFAULT_PDF_SAVE_MODE, w as foldOptionsFor, x as matchRegex, y as matchPageText, yt as createPageImageHandle, z as worstVerdict } from "./builders-Dqo2X-dt.js";
2
+ import { _ as pdfRectSize, a as deserializeError, c as glyphLooseBounds, d as normalizePdfRect, f as pdfQuadBounds, g as pdfRectHeight, h as pdfRectFromOriginSize, i as EngineError, l as glyphLooseQuad, m as pdfQuadFromCorners, n as foldText, o as serializeError, p as pdfQuadCorners, r as toOriginalRange, t as SEARCH_FOLD_VERSION, u as isRotatedGeometryRun, v as pdfRectToOriginSize, y as pdfRectWidth } from "./fold-CdEJTBTn.js";
3
+ import { a as charRangeForTextOffsets, c as PDF_CODE_TO_SUBTYPE, d as subtypeFromCode, f as EngineErrorCode, i as charMapViolation, l as PDF_SUBTYPE_TO_CODE, n as boundaryTextOffset, o as sliceTextByChars, r as charBoundaryAtTextOffset, s as ANNOTATION_SUBTYPES, t as PAGE_INSERT_BLANK_MAX_COUNT, u as PdfAnnotationSubtypeCode } from "./PageInsertBlankInput-cHq9-i-z.js";
4
+ import { S as protectedCapabilities, _ as levelAllows, a as expandRawScope, b as lockNameCovers, c as parseScope, d as MissingIdentity, f as PermissionDenied, g as fieldLockFor, h as deriveProtection, i as checkSetGroup, l as validateScopeArray, m as SIGNATURE_POLICY_VERSION, n as checkCapability, o as expandedCapabilities, r as checkCollab, s as filterMatches, t as checkAnyCapability, u as InvalidScope, v as levelFromPermission, x as minLevel, y as lockCovers } from "./resolver-inAVzsWt.js";
5
+ export { ANNOTATION_SUBTYPES, DEFAULT_EDGE_RESOLVER_BUDGET, DEFAULT_PDF_SAVE_MODE, EdgeResolver, EngineError, EngineErrorCode, InvalidScope, MissingIdentity, NO_ANNOTATION_FLAGS, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, PdfAnnotationSubtypeCode, PermissionDenied, SEARCH_FOLD_VERSION, SEARCH_REGEX_MAX_LENGTH, SEARCH_SNIPPET_CONTEXT, SIGNATURE_POLICY_VERSION, UNKNOWN_WEAK_ANNOTATION_STATE, USAGE_INCOMPLETE, appearanceImpactOf, assessmentOf, boundaryTextOffset, buildCommentThreads, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changedKeys, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, combine, conclude, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, decodeSubmitFormFlags, deriveProtection, deserializeError, dictEntries, encodeFieldRefKey, encodeStableIdKey, evaluateStep, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, fieldLockFor, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isRotatedGeometryRun, isStateAnnotation, isValidPageObjectNumber, knownWeakAnnotationState, levelAllows, levelFromPermission, lockCovers, lockNameCovers, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, minLevel, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parsePdfValue, parseScope, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, pdfValueEquals, primaryFinding, protectedCapabilities, refKey, refsOf, resolveBinarySource, restrictionsFor, restrictionsOf, revisionTokensEqual, richTextParagraphsFromPlainText, richTextPlainText, sameEffectiveValue, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, sniffBinaryMetadata, stableStringify, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wordAt, wordBefore, worstVerdict };