@embedpdf/engine-core 3.0.0-next.8 → 3.0.0-next.9

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 (50) hide show
  1. package/dist/{AbortError-BsHuCO1S.js → AbortError-8-9JAX1Y.js} +2 -2
  2. package/dist/{AbortError-BsHuCO1S.js.map → AbortError-8-9JAX1Y.js.map} +1 -1
  3. package/dist/{AbortError-DmWeq9sx.cjs → AbortError-CRSooKsk.cjs} +2 -2
  4. package/dist/{AbortError-DmWeq9sx.cjs.map → AbortError-CRSooKsk.cjs.map} +1 -1
  5. package/dist/{AnnotationListSnapshot-CHjkcIaL.d.cts → AnnotationListSnapshot-Bwfnb1i-.d.cts} +25 -2
  6. package/dist/{AnnotationListSnapshot-CHjkcIaL.d.ts → AnnotationListSnapshot-Bwfnb1i-.d.ts} +25 -2
  7. package/dist/{DocumentSecurityService-CrxGktMI.d.ts → DocumentSecurityService-CqLXyTVM.d.ts} +2 -2
  8. package/dist/{DocumentSecurityService-B1uv4FaK.d.cts → DocumentSecurityService-DQNpYCXs.d.cts} +2 -2
  9. package/dist/{Engine-BE6r06QI.d.ts → Engine-C25gzAFz.d.ts} +26 -16
  10. package/dist/{Engine-BOaRwtKa.d.cts → Engine-COFJU7sA.d.cts} +26 -16
  11. package/dist/{charmap-D6PLtRiC.cjs → PageInsertBlankInput-CzShuSJI.cjs} +16 -1
  12. package/dist/PageInsertBlankInput-CzShuSJI.cjs.map +1 -0
  13. package/dist/{charmap-CUukAMhR.js → PageInsertBlankInput-WKY0tr6S.js} +11 -2
  14. package/dist/PageInsertBlankInput-WKY0tr6S.js.map +1 -0
  15. package/dist/{builders-BsUc2A1U.cjs → builders-B5CgvJ3j.cjs} +6 -6
  16. package/dist/{builders-BsUc2A1U.cjs.map → builders-B5CgvJ3j.cjs.map} +1 -1
  17. package/dist/{builders-CF5gKkOa.js → builders-CGcBlTrv.js} +3 -3
  18. package/dist/{builders-CF5gKkOa.js.map → builders-CGcBlTrv.js.map} +1 -1
  19. package/dist/conformance.cjs +337 -178
  20. package/dist/conformance.cjs.map +1 -1
  21. package/dist/conformance.d.cts +26 -6
  22. package/dist/conformance.d.ts +26 -6
  23. package/dist/conformance.js +292 -134
  24. package/dist/conformance.js.map +1 -1
  25. package/dist/{fold-DemV94jf.js → fold-BfyxxwS6.js} +2 -2
  26. package/dist/{fold-DemV94jf.js.map → fold-BfyxxwS6.js.map} +1 -1
  27. package/dist/{fold-BeT1GxLP.cjs → fold-C7I5GpBz.cjs} +4 -4
  28. package/dist/{fold-BeT1GxLP.cjs.map → fold-C7I5GpBz.cjs.map} +1 -1
  29. package/dist/index.cjs +15 -14
  30. package/dist/index.d.cts +2 -2
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.js +4 -4
  33. package/dist/runtime.cjs +20 -19
  34. package/dist/runtime.cjs.map +1 -1
  35. package/dist/runtime.d.cts +24 -5
  36. package/dist/runtime.d.ts +24 -5
  37. package/dist/runtime.js +5 -5
  38. package/dist/{schemas-BCuQlwdg.js → schemas-BKRZZ-g1.js} +37 -5
  39. package/dist/{schemas-BCuQlwdg.js.map → schemas-BKRZZ-g1.js.map} +1 -1
  40. package/dist/{schemas-BPA_F2HV.cjs → schemas-DlxjcDIl.cjs} +81 -25
  41. package/dist/{schemas-BPA_F2HV.cjs.map → schemas-DlxjcDIl.cjs.map} +1 -1
  42. package/dist/wire.cjs +32 -8
  43. package/dist/wire.cjs.map +1 -1
  44. package/dist/wire.d.cts +64 -12
  45. package/dist/wire.d.ts +64 -12
  46. package/dist/wire.js +29 -9
  47. package/dist/wire.js.map +1 -1
  48. package/package.json +1 -1
  49. package/dist/charmap-CUukAMhR.js.map +0 -1
  50. package/dist/charmap-D6PLtRiC.cjs.map +0 -1
package/dist/runtime.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_fold = require("./fold-BeT1GxLP.cjs");
3
- const require_charmap = require("./charmap-D6PLtRiC.cjs");
4
- const require_builders = require("./builders-BsUc2A1U.cjs");
2
+ const require_fold = require("./fold-C7I5GpBz.cjs");
3
+ const require_PageInsertBlankInput = require("./PageInsertBlankInput-CzShuSJI.cjs");
4
+ const require_builders = require("./builders-B5CgvJ3j.cjs");
5
5
  const require_resolver = require("./resolver-DAZWVoJL.cjs");
6
- const require_AbortError = require("./AbortError-DmWeq9sx.cjs");
6
+ const require_AbortError = require("./AbortError-CRSooKsk.cjs");
7
7
  //#region src/promise/AbortablePromise.ts
8
8
  let _Symbol$species;
9
9
  _Symbol$species = Symbol.species;
@@ -231,13 +231,13 @@ const CONTINUOUS_RENDER_POLICY = { kind: "continuous" };
231
231
  */
232
232
  function snapFullPageViewport(policy, viewport, opts) {
233
233
  if (policy.kind === "continuous") return viewport;
234
- if (policy.fullPage.widths.length === 0) throw new require_fold.EngineError(require_charmap.EngineErrorCode.InvalidArg, "render policy has an empty width ladder");
234
+ if (policy.fullPage.widths.length === 0) throw new require_fold.EngineError(require_PageInsertBlankInput.EngineErrorCode.InvalidArg, "render policy has an empty width ladder");
235
235
  const widths = [...policy.fullPage.widths].sort((a, b) => a - b);
236
236
  let requested;
237
237
  if (viewport.kind === "width") requested = viewport.width;
238
238
  else {
239
239
  const pageWidth = opts?.pageWidth;
240
- if (pageWidth === void 0 || pageWidth <= 0) throw new require_fold.EngineError(require_charmap.EngineErrorCode.InvalidArg, "snapping a scale viewport to a width lattice requires opts.pageWidth");
240
+ if (pageWidth === void 0 || pageWidth <= 0) throw new require_fold.EngineError(require_PageInsertBlankInput.EngineErrorCode.InvalidArg, "snapping a scale viewport to a width lattice requires opts.pageWidth");
241
241
  requested = (viewport.scale ?? 1) * pageWidth;
242
242
  }
243
243
  return {
@@ -255,7 +255,7 @@ function snapFullPageViewport(policy, viewport, opts) {
255
255
  */
256
256
  function snapAppearanceScale(policy, scale) {
257
257
  if (policy.kind === "continuous" || policy.appearances === void 0) return scale;
258
- if (policy.appearances.scales.length === 0) throw new require_fold.EngineError(require_charmap.EngineErrorCode.InvalidArg, "render policy has an empty appearance-scale lattice");
258
+ if (policy.appearances.scales.length === 0) throw new require_fold.EngineError(require_PageInsertBlankInput.EngineErrorCode.InvalidArg, "render policy has an empty appearance-scale lattice");
259
259
  const scales = [...policy.appearances.scales].sort((a, b) => a - b);
260
260
  return scales.find((s) => s >= scale) ?? scales[scales.length - 1];
261
261
  }
@@ -271,7 +271,7 @@ function snapAppearanceScale(policy, scale) {
271
271
  */
272
272
  function snapTileScale(policy, scale) {
273
273
  if (policy.kind === "continuous" || policy.tiles === void 0) return scale;
274
- if (policy.tiles.scales.length === 0) throw new require_fold.EngineError(require_charmap.EngineErrorCode.InvalidArg, "render policy has an empty tile-scale lattice");
274
+ if (policy.tiles.scales.length === 0) throw new require_fold.EngineError(require_PageInsertBlankInput.EngineErrorCode.InvalidArg, "render policy has an empty tile-scale lattice");
275
275
  const scales = [...policy.tiles.scales].sort((a, b) => a - b);
276
276
  return scales.find((s) => s >= scale) ?? scales[scales.length - 1];
277
277
  }
@@ -357,21 +357,22 @@ function wirePack(payload, transfer = EMPTY_TRANSFER) {
357
357
  };
358
358
  }
359
359
  //#endregion
360
- exports.ANNOTATION_SUBTYPES = require_charmap.ANNOTATION_SUBTYPES;
360
+ exports.ANNOTATION_SUBTYPES = require_PageInsertBlankInput.ANNOTATION_SUBTYPES;
361
361
  exports.AbortError = require_AbortError.AbortError;
362
362
  exports.AbortablePromise = AbortablePromise;
363
363
  exports.CONTINUOUS_RENDER_POLICY = CONTINUOUS_RENDER_POLICY;
364
364
  exports.DEFAULT_PDF_SAVE_MODE = require_builders.DEFAULT_PDF_SAVE_MODE;
365
365
  exports.EMPTY_TRANSFER = EMPTY_TRANSFER;
366
366
  exports.EngineError = require_fold.EngineError;
367
- exports.EngineErrorCode = require_charmap.EngineErrorCode;
367
+ exports.EngineErrorCode = require_PageInsertBlankInput.EngineErrorCode;
368
368
  exports.InvalidScope = require_resolver.InvalidScope;
369
369
  exports.MissingIdentity = require_resolver.MissingIdentity;
370
370
  exports.NO_ANNOTATION_FLAGS = require_builders.NO_ANNOTATION_FLAGS;
371
+ exports.PAGE_INSERT_BLANK_MAX_COUNT = require_PageInsertBlankInput.PAGE_INSERT_BLANK_MAX_COUNT;
371
372
  exports.PDF_BITS = require_builders.PDF_BITS;
372
- exports.PDF_CODE_TO_SUBTYPE = require_charmap.PDF_CODE_TO_SUBTYPE;
373
- exports.PDF_SUBTYPE_TO_CODE = require_charmap.PDF_SUBTYPE_TO_CODE;
374
- exports.PdfAnnotationSubtypeCode = require_charmap.PdfAnnotationSubtypeCode;
373
+ exports.PDF_CODE_TO_SUBTYPE = require_PageInsertBlankInput.PDF_CODE_TO_SUBTYPE;
374
+ exports.PDF_SUBTYPE_TO_CODE = require_PageInsertBlankInput.PDF_SUBTYPE_TO_CODE;
375
+ exports.PdfAnnotationSubtypeCode = require_PageInsertBlankInput.PdfAnnotationSubtypeCode;
375
376
  exports.PermissionDenied = require_resolver.PermissionDenied;
376
377
  exports.SEARCH_FOLD_VERSION = require_fold.SEARCH_FOLD_VERSION;
377
378
  exports.SEARCH_REGEX_MAX_LENGTH = require_builders.SEARCH_REGEX_MAX_LENGTH;
@@ -379,16 +380,16 @@ exports.SEARCH_SNIPPET_CONTEXT = require_builders.SEARCH_SNIPPET_CONTEXT;
379
380
  exports.UNKNOWN_WEAK_ANNOTATION_STATE = require_builders.UNKNOWN_WEAK_ANNOTATION_STATE;
380
381
  exports.advisoryFromPdfBits = advisoryFromPdfBits;
381
382
  exports.appearanceImpactOf = require_builders.appearanceImpactOf;
382
- exports.boundaryTextOffset = require_charmap.boundaryTextOffset;
383
+ exports.boundaryTextOffset = require_PageInsertBlankInput.boundaryTextOffset;
383
384
  exports.buildPageTextLayout = require_builders.buildPageTextLayout;
384
385
  exports.buildSnippet = require_builders.buildSnippet;
385
386
  exports.buildThreads = require_builders.buildThreads;
386
387
  exports.canonicalSearchQuery = require_builders.canonicalSearchQuery;
387
388
  exports.caps = require_builders.caps;
388
389
  exports.changesAnnotationList = require_builders.changesAnnotationList;
389
- exports.charBoundaryAtTextOffset = require_charmap.charBoundaryAtTextOffset;
390
- exports.charMapViolation = require_charmap.charMapViolation;
391
- exports.charRangeForTextOffsets = require_charmap.charRangeForTextOffsets;
390
+ exports.charBoundaryAtTextOffset = require_PageInsertBlankInput.charBoundaryAtTextOffset;
391
+ exports.charMapViolation = require_PageInsertBlankInput.charMapViolation;
392
+ exports.charRangeForTextOffsets = require_PageInsertBlankInput.charRangeForTextOffsets;
392
393
  exports.checkAnyCapability = require_resolver.checkAnyCapability;
393
394
  exports.checkCapability = require_resolver.checkCapability;
394
395
  exports.checkCollab = require_resolver.checkCollab;
@@ -448,12 +449,12 @@ exports.securityStateFromProbe = securityStateFromProbe;
448
449
  exports.semanticEqual = require_builders.semanticEqual;
449
450
  exports.serializeError = require_fold.serializeError;
450
451
  exports.shiftsExistingAnnotationIndices = require_builders.shiftsExistingAnnotationIndices;
451
- exports.sliceTextByChars = require_charmap.sliceTextByChars;
452
+ exports.sliceTextByChars = require_PageInsertBlankInput.sliceTextByChars;
452
453
  exports.snapAppearanceScale = snapAppearanceScale;
453
454
  exports.snapFullPageViewport = snapFullPageViewport;
454
455
  exports.snapTileScale = snapTileScale;
455
456
  exports.sniffBinaryMetadata = require_builders.sniffBinaryMetadata;
456
- exports.subtypeFromCode = require_charmap.subtypeFromCode;
457
+ exports.subtypeFromCode = require_PageInsertBlankInput.subtypeFromCode;
457
458
  exports.textGlyphAt = require_builders.textGlyphAt;
458
459
  exports.textGlyphQuad = require_builders.textGlyphQuad;
459
460
  exports.textSegmentsForRange = require_builders.textSegmentsForRange;
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.cjs","names":["AbortError","EngineError","EngineErrorCode"],"sources":["../src/promise/AbortablePromise.ts","../src/engine/document-security-state.ts","../src/engine/DocumentRenderService.ts","../src/engine/passwordPrompt.ts","../src/wire/WirePack.ts"],"sourcesContent":["import { AbortError } from './AbortError';\n\nexport type AbortableExecutor<T, P> = (\n resolve: (value: T | PromiseLike<T>) => void,\n reject: (reason: unknown) => void,\n progress: (p: P) => void,\n signal: AbortSignal,\n) => void;\n\n/**\n * Awaitable Promise subclass with abort and progress.\n *\n * Symbol.species returns plain Promise so chained .then/.catch/.finally\n * return regular promises and never try to synthesize a new\n * AbortablePromise (which would have no executor).\n *\n * Settlement contract:\n * - The first settlement wins. resolve/reject handed to the executor\n * are wrapped so that any subsequent call (whether by the executor,\n * by abort(), or by both racing) becomes a silent no-op.\n * - abort() rejects the public promise with AbortError immediately,\n * even if the executor never observes the AbortSignal. The executor\n * still receives the AbortSignal so it can stop real work\n * cooperatively (release a queue slot, abort fetch, post a worker\n * abort, etc.). Anything the executor does after that — including\n * a late resolve(value), a late reject(error), or a rejected inner\n * Promise inside AbortablePromise.run — is dropped silently.\n * - abort() after settlement is a no-op.\n */\nexport class AbortablePromise<T, P = never> extends Promise<T> {\n static override get [Symbol.species](): PromiseConstructor {\n return Promise;\n }\n\n readonly signal: AbortSignal;\n\n private readonly _ctrl: AbortController;\n private readonly _progressCbs: Set<(p: P) => void>;\n private readonly _state: { settled: boolean };\n private readonly _internalReject: (reason: unknown) => void;\n\n constructor(executor: AbortableExecutor<T, P>) {\n const ctrl = new AbortController();\n const progressCbs = new Set<(p: P) => void>();\n const state = { settled: false };\n let capturedReject!: (reason: unknown) => void;\n\n super((resolve, reject) => {\n capturedReject = reject;\n\n const wrappedResolve = (value: T | PromiseLike<T>) => {\n if (state.settled) return;\n state.settled = true;\n resolve(value);\n };\n const wrappedReject = (reason: unknown) => {\n if (state.settled) return;\n state.settled = true;\n reject(reason);\n };\n const progress = (p: P) => {\n if (state.settled) return;\n for (const cb of progressCbs) {\n try {\n cb(p);\n } catch {\n // ignore subscriber errors\n }\n }\n };\n\n executor(wrappedResolve, wrappedReject, progress, ctrl.signal);\n });\n\n this._ctrl = ctrl;\n this.signal = ctrl.signal;\n this._progressCbs = progressCbs;\n this._state = state;\n this._internalReject = capturedReject;\n }\n\n /**\n * Abort the underlying operation.\n *\n * - If the promise has already settled, this is a no-op.\n * - Otherwise the public promise rejects synchronously with an\n * AbortError (wrapping the supplied reason if it is not already an\n * AbortError) and the AbortSignal fires for any cooperative\n * cancellation the executor wired up.\n */\n abort(reason?: unknown): void {\n if (this._state.settled) return;\n if (this._ctrl.signal.aborted) return;\n\n const err = reason instanceof AbortError ? reason : new AbortError(reason);\n\n // Mark settled before signalling so any abort listener the executor\n // attached cannot race a late resolve/reject through the wrapped\n // settlers (they all consult state.settled).\n this._state.settled = true;\n this._ctrl.abort(err);\n this._internalReject(err);\n }\n\n /**\n * Subscribe to progress events. Returns an unsubscribe function.\n */\n onProgress(cb: (p: P) => void): () => void {\n this._progressCbs.add(cb);\n return () => {\n this._progressCbs.delete(cb);\n };\n }\n\n /**\n * Wrap a value in an already-resolved AbortablePromise. Mirrors Promise.resolve.\n */\n static resolveValue<T>(value: T | PromiseLike<T>): AbortablePromise<T> {\n return new AbortablePromise<T>((resolve) => resolve(value));\n }\n\n /**\n * Wrap a thrown reason in an already-rejected AbortablePromise.\n */\n static rejectReason<T = never>(reason: unknown): AbortablePromise<T> {\n return new AbortablePromise<T>((_resolve, reject) => reject(reason));\n }\n\n /**\n * Run an async function as an AbortablePromise so callers get .abort() and .signal.\n * The async function receives the AbortSignal (and a progress emitter) so it can\n * cooperate with the abort.\n *\n * If abort() fires while the inner async function is still running, the\n * public promise rejects with AbortError immediately. The inner async\n * function's eventual settlement (resolve or reject) is funneled through\n * the wrapped settlers and silently dropped — including a late rejection\n * from the underlying work, which prevents an UnhandledRejection because\n * the .then(resolve, reject) below \"handles\" it via the no-op.\n */\n static run<T, P = never>(\n fn: (signal: AbortSignal, progress: (p: P) => void) => Promise<T>,\n ): AbortablePromise<T, P> {\n return new AbortablePromise<T, P>((resolve, reject, progress, signal) => {\n fn(signal, progress).then(resolve, reject);\n });\n }\n}\n","import type {\n DocumentAccessReason,\n DocumentSecurityState,\n PdfPermissionAdvisory,\n PdfPermissionInfo,\n} from './DocumentSecurityService';\nimport type { PdfBits } from '../auth/scope';\nimport type { DocumentSecurityProbeInfo } from '../wire/worker-protocol';\n\nexport interface DocumentHeadLike {\n encryption: {\n state: DocumentSecurityState['encryption']['state'];\n requiresPassword: boolean | null;\n };\n permissions: DocumentSecurityState['permissions'];\n access: DocumentSecurityState['access'];\n}\n\nexport function securityStateFromHead(head: DocumentHeadLike): DocumentSecurityState {\n return {\n encryption: {\n state: head.encryption.state,\n requiresPassword: head.encryption.requiresPassword,\n },\n permissions: { ...head.permissions },\n access: {\n required: head.access.required,\n reasons: [...head.access.reasons],\n ...(head.access.endpoint ? { endpoint: head.access.endpoint } : {}),\n },\n };\n}\n\nexport function permissionInfoFromProbe(info: DocumentSecurityProbeInfo): PdfPermissionInfo | null {\n if (info.pdfPermissionsBits === null) return null;\n return {\n known: true,\n bits: info.pdfPermissionsBits,\n allAllowed: info.pdfPermissionsAllAllowed,\n openedAs: info.pdfOpenedAs,\n securityHandlerRevision: info.securityHandlerRevision,\n };\n}\n\n/**\n * Same as {@link permissionInfoFromProbe} but additionally populates\n * `flags` (typed PdfBits view) and `advisory` (capability-shaped\n * booleans for UI badges). Used by routes that have a decoded `PdfBits`\n * in hand — notably `/access`, which always does.\n *\n * Returns `null` for the same reason as the base function — when the\n * PDF hasn't been probed yet so bits are unknown.\n */\nexport function permissionInfoWithAdvisory(\n info: DocumentSecurityProbeInfo,\n pdfBits: PdfBits,\n): PdfPermissionInfo | null {\n const base = permissionInfoFromProbe(info);\n if (!base) return null;\n return {\n ...base,\n flags: pdfBits,\n advisory: advisoryFromPdfBits(pdfBits),\n };\n}\n\n/**\n * Translate a {@link PdfBits} view into the capability-shaped\n * {@link PdfPermissionAdvisory}. The rules here MUST mirror the bit\n * combinations the scope resolver uses for `pdf.permissions`\n * expansion — `doc.print.high` requires bit 12 AND bit 3, etc.\n */\nexport function advisoryFromPdfBits(b: PdfBits): PdfPermissionAdvisory {\n return {\n canPrint: b.bit3,\n canPrintHigh: b.bit12 && b.bit3,\n canCopy: b.bit5,\n canAnnotate: b.bit6,\n canFillForms: b.bit6 || b.bit9,\n canModifyForms: b.bit6 && b.bit4,\n canModifyPages: b.bit4,\n canAssemble: b.bit11,\n };\n}\n\nexport function securityStateFromProbe(\n info: DocumentSecurityProbeInfo,\n opts: { accessEndpoint?: string; cdnRequired?: boolean } = {},\n): DocumentSecurityState {\n const permission = permissionInfoFromProbe(info);\n const reasons: DocumentAccessReason[] = [];\n if (info.encryptionRequiresPassword === true && !permission) reasons.push('password');\n if (opts.cdnRequired) reasons.push('cdn');\n if (info.encryptionState === 'unknown') reasons.push('permissions-unknown');\n\n return {\n encryption: {\n state: info.encryptionState,\n requiresPassword: info.encryptionRequiresPassword,\n },\n permissions: {\n known: permission?.known ?? false,\n bits: permission?.bits ?? null,\n allAllowed: permission?.allAllowed ?? null,\n openedAs: permission?.openedAs ?? null,\n securityHandlerRevision: permission?.securityHandlerRevision ?? null,\n canUpgradeToOwner: info.encryptionState === 'encrypted' && info.pdfOpenedAs !== 'owner',\n },\n access: {\n required: reasons.length > 0,\n reasons,\n ...(reasons.length > 0 && opts.accessEndpoint ? { endpoint: opts.accessEndpoint } : {}),\n },\n };\n}\n","import { EngineError } from '../errors/EngineError';\nimport { EngineErrorCode } from '../errors/EngineErrorCode';\nimport type { PageRenderViewport } from '../dto/PageRender';\n\n/**\n * The engine's render-parameter policy.\n *\n * - `continuous` — any viewport renders exactly as requested. The LOCAL\n * engine always answers this: rendering is in-process, there is no\n * shared cache to protect, and exactness is the local product promise.\n * - `lattice` — the deployment treats a finite set of render points as\n * durable, CDN-shared artifacts. The bounded quantity\n * is OUTPUT PIXELS, never zoom:\n *\n * - `fullPage.widths` — full-page renders quantize on `viewport.width`\n * (a scale lattice bounds artifact COUNT but not SIZE: PDF page space\n * is effectively unbounded, so scale 1 of a poster page is a memory\n * bomb while width caps the dominant dimension by construction).\n * - `tiles` — RESERVED for the deep-zoom vertical: a scale-based\n * pyramid × fixed tile size, where per-job cost is constant. Absent\n * until the tiling plugin ships; reserving the shape keeps the SDK\n * contract from churning twice.\n * - `maxRenderPixels` — the worker-side output budget for degenerate\n * geometry (width bounds width, not height).\n *\n * The SDK never conforms a request implicitly — the same `render.image`\n * call must not return different pixels on local vs cloud. Conformance is\n * the caller's visible choice via {@link snapFullPageViewport}.\n */\nexport type EngineRenderPolicy =\n | { readonly kind: 'continuous' }\n | {\n readonly kind: 'lattice';\n readonly fullPage: { readonly widths: readonly number[] };\n readonly tiles?: {\n readonly tileSizes: readonly number[];\n readonly scales: readonly number[];\n };\n /**\n * Annotation-appearance lattice — SCALE-based, unlike full pages:\n * an appearance is sized by `annotation.rect × scale`, rects span\n * orders of magnitude (a 4pt caret vs a page-sized stamp), and the\n * composite must track the PAGE's effective render scale or\n * annotations sit blurry on a crisp raster. Small images → the\n * ladder affords finer, taller steps than pages ever could.\n */\n readonly appearances?: { readonly scales: readonly number[] };\n readonly maxRenderPixels?: number;\n readonly formats: readonly ('webp' | 'png')[];\n readonly background: 'white';\n readonly enforced: boolean;\n };\n\nexport const CONTINUOUS_RENDER_POLICY: EngineRenderPolicy = { kind: 'continuous' };\n\n/**\n * Document-scoped render policy surface (`doc.render`). Async because the\n * cloud engine learns its policy from `/v1/access`; the local engine\n * resolves immediately with `continuous`.\n *\n * Per-page rendering itself stays on `page(pon).render` — this service\n * carries POLICY, not pixels.\n */\nexport interface DocumentRenderService {\n policy(): Promise<EngineRenderPolicy>;\n}\n\n/**\n * Conform a FULL-PAGE viewport to a render policy — the ONE snap\n * implementation, shared by every engine and plugin. Pure and explicit\n * by design:\n *\n * - `continuous` → identity (local/cloud plugin code stays byte-identical).\n * - `lattice` → returns a `width`-kind viewport at the smallest ladder\n * width ≥ the requested detail (snap UP: always crisp, CSS downscales\n * for free), capped at the largest width — detail beyond the cap is the\n * tile pyramid's job, by design.\n * - `scale`-kind requests convert through the page's width in PDF user\n * units — pass `opts.pageWidth` (the caller has it from the layout);\n * omitting it for a scale viewport under a lattice policy is a\n * programmer error and throws `InvalidArg`.\n */\nexport function snapFullPageViewport(\n policy: EngineRenderPolicy,\n viewport: PageRenderViewport,\n opts?: { pageWidth?: number },\n): PageRenderViewport {\n if (policy.kind === 'continuous') return viewport;\n if (policy.fullPage.widths.length === 0) {\n throw new EngineError(EngineErrorCode.InvalidArg, 'render policy has an empty width ladder');\n }\n const widths = [...policy.fullPage.widths].sort((a, b) => a - b);\n\n let requested: number;\n if (viewport.kind === 'width') {\n requested = viewport.width;\n } else {\n const pageWidth = opts?.pageWidth;\n if (pageWidth === undefined || pageWidth <= 0) {\n throw new EngineError(\n EngineErrorCode.InvalidArg,\n 'snapping a scale viewport to a width lattice requires opts.pageWidth',\n );\n }\n requested = (viewport.scale ?? 1) * pageWidth;\n }\n\n const snapped = widths.find((width) => width >= requested) ?? widths[widths.length - 1]!;\n return { kind: 'width', width: snapped };\n}\n\n/**\n * Conform an annotation-appearance scale to the policy's appearance\n * lattice. Same discipline as {@link snapFullPageViewport}: identity on\n * continuous (and when the policy carries no appearance block), snap UP,\n * cap at the largest point. Callers derive `scale` from the page's\n * effective render scale (`snappedWidth / pageWidth`, × devicePixelRatio\n * as needed) so composites stay crisp against the page raster.\n */\nexport function snapAppearanceScale(policy: EngineRenderPolicy, scale: number): number {\n if (policy.kind === 'continuous' || policy.appearances === undefined) return scale;\n if (policy.appearances.scales.length === 0) {\n throw new EngineError(\n EngineErrorCode.InvalidArg,\n 'render policy has an empty appearance-scale lattice',\n );\n }\n const scales = [...policy.appearances.scales].sort((a, b) => a - b);\n return scales.find((s) => s >= scale) ?? scales[scales.length - 1]!;\n}\n\n/**\n * Conform a tile-pyramid scale to the policy's tile lattice — the third\n * member of the `snap<PolicyBlock><Quantity>` family. Identity on\n * continuous and while the deployment doesn't advertise a `tiles` block\n * (the block is reserved until the deep-zoom vertical ships server-side;\n * the tiling client uses its own default pyramid then — see\n * plugin-render). Snap UP, cap at the largest scale: per-tile cost is\n * constant by construction (`tileSize²` pixels regardless of level), so\n * the cap bounds artifact COUNT, not memory.\n */\nexport function snapTileScale(policy: EngineRenderPolicy, scale: number): number {\n if (policy.kind === 'continuous' || policy.tiles === undefined) return scale;\n if (policy.tiles.scales.length === 0) {\n throw new EngineError(\n EngineErrorCode.InvalidArg,\n 'render policy has an empty tile-scale lattice',\n );\n }\n const scales = [...policy.tiles.scales].sort((a, b) => a - b);\n return scales.find((s) => s >= scale) ?? scales[scales.length - 1]!;\n}\n","/**\n * Unified \"should I ask the user for a password?\" shape.\n *\n * A PDF has two distinct password moments:\n * 1. **Required** — the document is encrypted and we couldn't read\n * anything anonymously. The dev MUST gather a password and call\n * `unlock()` before any other operation succeeds.\n * 2. **Optional** — the document is open and readable, but more\n * permissions become available with the owner password. The dev\n * MAY surface an \"unlock for full access\" affordance.\n *\n * Plus the trivial third state: **none** — nothing to do.\n *\n * The discriminated union encodes the invariants:\n * - `required` and `optional` cannot both be true (a doc you can't\n * read can't be \"upgraded\" — you have to read first).\n * - `hint` is only present when meaningful (no hint in the `none` arm,\n * mandatory `owner` hint in `optional` since that's the only thing\n * an upgrade asks for).\n *\n * Computed identically on local + cloud via\n * {@link passwordPromptFromState} so the dev's UI gating code is\n * engine-agnostic.\n */\nimport type { DocumentSecurityState } from './DocumentSecurityService';\n\nexport type PasswordPrompt =\n | { readonly state: 'none' }\n | { readonly state: 'required'; readonly hint: 'user' | 'owner' | null }\n | { readonly state: 'optional'; readonly hint: 'owner' };\n\n/**\n * Derive the high-level password prompt from the raw security state.\n *\n * The function is pure and total — every `DocumentSecurityState`\n * maps to exactly one `PasswordPrompt`. Use this as the SINGLE source\n * of truth wherever the SDK exposes a \"do you need a password?\" flag:\n * both `LocalDocumentSecurityService` and `CloudDocumentSecurityService`\n * call it, so the contract can never drift.\n *\n * Mapping rules (top to bottom; first match wins):\n *\n * 1. encryption.state === 'none'\n * → { state: 'none' } the document isn't encrypted\n *\n * 2. !permissions.known\n * → { state: 'required', hint: null } we haven't probed yet; can't\n * tell user-vs-owner; show\n * generic prompt\n *\n * 3. requiresPassword && openedAs === 'none'\n * → { state: 'required', hint: 'user' } encrypted, anonymous open\n * failed → user pwd needed\n *\n * 4. openedAs === 'owner'\n * → { state: 'none' } already at the top — nothing more\n * to unlock\n *\n * 5. permissions.canUpgradeToOwner === true\n * → { state: 'optional', hint: 'owner' } open as user (or as none\n * for owner-pwd-only docs)\n * but more is available\n *\n * 6. fallthrough → { state: 'none' } open and nothing more available\n */\nexport function passwordPromptFromState(state: DocumentSecurityState): PasswordPrompt {\n if (state.encryption.state === 'none') {\n return { state: 'none' };\n }\n\n if (!state.permissions.known) {\n return { state: 'required', hint: null };\n }\n\n if (state.encryption.requiresPassword && state.permissions.openedAs === 'none') {\n return { state: 'required', hint: 'user' };\n }\n\n if (state.permissions.openedAs === 'owner') {\n return { state: 'none' };\n }\n\n if (state.permissions.canUpgradeToOwner) {\n return { state: 'optional', hint: 'owner' };\n }\n\n return { state: 'none' };\n}\n","/**\n * Wire-level packaging for messages crossing a Web Worker / Node\n * `worker_thread` boundary.\n *\n * `WirePack<P>` is the typed pair every producer hands to a transport:\n * the structured payload (validated against the wire schema) and an\n * explicit, ordered list of `Transferable` objects that the producer\n * intends to move (zero-copy) to the receiver.\n *\n * Why this is a first-class type and not a transport-side argument:\n *\n * - **Producer is the only one who knows.** Whether a particular\n * `ArrayBuffer` should be moved (zero-copy, sender's reference\n * detached) or copied (structured-cloned, both sides retain\n * access) is a semantic decision belonging to the code that\n * produced the buffer. Inferring it later — by walking the\n * payload looking for `ArrayBuffer` instances and assuming they\n * should all be transferred — is the v2 footgun this design\n * replaces.\n *\n * - **Type-checked at the boundary.** A handler returning\n * `WirePack<RenderResult>` cannot forget to declare its\n * transfer list; the producer literally writes\n * `wirePack({ ..., pixels }, [pixels.buffer])` in a single\n * return statement. Forgetting yields a structurally identical\n * copy (slow but correct), never a silent leak.\n *\n * - **Symmetric across the boundary.** Same `WirePack<P>` on the\n * request path (main → worker) and the response path (worker →\n * main). Inline transports treat `transfer` as a no-op since\n * there's no thread boundary to cross.\n *\n * - **Schema-orthogonal.** Zod schemas validate `payload` and\n * nothing else. `transfer` is not data; it's a memory-ownership\n * manifest, and the design keeps those concerns separate.\n *\n * The receiver of a `postMessage(payload, { transfer })` call gets\n * the payload back **with the listed buffers already moved into it**\n * — there's no second argument on the receiving end. So `WirePack`\n * only ever travels the producer-to-transport leg of the trip; the\n * consumer side just sees the unwrapped `payload`.\n */\nexport interface WirePack<P> {\n readonly payload: P;\n readonly transfer: readonly Transferable[];\n}\n\n/**\n * Singleton empty transfer list. Frozen so accidental in-place\n * mutation throws in strict mode rather than silently mutating the\n * default for future calls.\n */\nexport const EMPTY_TRANSFER: readonly Transferable[] = Object.freeze([]);\n\n/**\n * Producer-side helper: pair a typed payload with its transfer list.\n *\n * The `transfer` argument is optional; omitting it (or passing `[]`)\n * is the explicit, type-checked way to say \"I declare this message\n * carries no transferables.\" That's structurally identical to the\n * shape the v2 walker generated for non-binary messages, but here\n * the declaration is at construction time, in the producer's own\n * code, where the knowledge actually lives.\n *\n * wirePack({ kind: 'metadata.read', jobId, docId })\n * wirePack({ kind: 'open.fatMem', jobId, docId, bytes }, [bytes])\n * wirePack({ tag: 'page.render', pixels }, [pixels.buffer])\n */\nexport function wirePack<P>(\n payload: P,\n transfer: readonly Transferable[] = EMPTY_TRANSFER,\n): WirePack<P> {\n return { payload, transfer };\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"runtime.cjs","names":["AbortError","EngineError","EngineErrorCode"],"sources":["../src/promise/AbortablePromise.ts","../src/engine/document-security-state.ts","../src/engine/DocumentRenderService.ts","../src/engine/passwordPrompt.ts","../src/wire/WirePack.ts"],"sourcesContent":["import { AbortError } from './AbortError';\n\nexport type AbortableExecutor<T, P> = (\n resolve: (value: T | PromiseLike<T>) => void,\n reject: (reason: unknown) => void,\n progress: (p: P) => void,\n signal: AbortSignal,\n) => void;\n\n/**\n * Awaitable Promise subclass with abort and progress.\n *\n * Symbol.species returns plain Promise so chained .then/.catch/.finally\n * return regular promises and never try to synthesize a new\n * AbortablePromise (which would have no executor).\n *\n * Settlement contract:\n * - The first settlement wins. resolve/reject handed to the executor\n * are wrapped so that any subsequent call (whether by the executor,\n * by abort(), or by both racing) becomes a silent no-op.\n * - abort() rejects the public promise with AbortError immediately,\n * even if the executor never observes the AbortSignal. The executor\n * still receives the AbortSignal so it can stop real work\n * cooperatively (release a queue slot, abort fetch, post a worker\n * abort, etc.). Anything the executor does after that — including\n * a late resolve(value), a late reject(error), or a rejected inner\n * Promise inside AbortablePromise.run — is dropped silently.\n * - abort() after settlement is a no-op.\n */\nexport class AbortablePromise<T, P = never> extends Promise<T> {\n static override get [Symbol.species](): PromiseConstructor {\n return Promise;\n }\n\n readonly signal: AbortSignal;\n\n private readonly _ctrl: AbortController;\n private readonly _progressCbs: Set<(p: P) => void>;\n private readonly _state: { settled: boolean };\n private readonly _internalReject: (reason: unknown) => void;\n\n constructor(executor: AbortableExecutor<T, P>) {\n const ctrl = new AbortController();\n const progressCbs = new Set<(p: P) => void>();\n const state = { settled: false };\n let capturedReject!: (reason: unknown) => void;\n\n super((resolve, reject) => {\n capturedReject = reject;\n\n const wrappedResolve = (value: T | PromiseLike<T>) => {\n if (state.settled) return;\n state.settled = true;\n resolve(value);\n };\n const wrappedReject = (reason: unknown) => {\n if (state.settled) return;\n state.settled = true;\n reject(reason);\n };\n const progress = (p: P) => {\n if (state.settled) return;\n for (const cb of progressCbs) {\n try {\n cb(p);\n } catch {\n // ignore subscriber errors\n }\n }\n };\n\n executor(wrappedResolve, wrappedReject, progress, ctrl.signal);\n });\n\n this._ctrl = ctrl;\n this.signal = ctrl.signal;\n this._progressCbs = progressCbs;\n this._state = state;\n this._internalReject = capturedReject;\n }\n\n /**\n * Abort the underlying operation.\n *\n * - If the promise has already settled, this is a no-op.\n * - Otherwise the public promise rejects synchronously with an\n * AbortError (wrapping the supplied reason if it is not already an\n * AbortError) and the AbortSignal fires for any cooperative\n * cancellation the executor wired up.\n */\n abort(reason?: unknown): void {\n if (this._state.settled) return;\n if (this._ctrl.signal.aborted) return;\n\n const err = reason instanceof AbortError ? reason : new AbortError(reason);\n\n // Mark settled before signalling so any abort listener the executor\n // attached cannot race a late resolve/reject through the wrapped\n // settlers (they all consult state.settled).\n this._state.settled = true;\n this._ctrl.abort(err);\n this._internalReject(err);\n }\n\n /**\n * Subscribe to progress events. Returns an unsubscribe function.\n */\n onProgress(cb: (p: P) => void): () => void {\n this._progressCbs.add(cb);\n return () => {\n this._progressCbs.delete(cb);\n };\n }\n\n /**\n * Wrap a value in an already-resolved AbortablePromise. Mirrors Promise.resolve.\n */\n static resolveValue<T>(value: T | PromiseLike<T>): AbortablePromise<T> {\n return new AbortablePromise<T>((resolve) => resolve(value));\n }\n\n /**\n * Wrap a thrown reason in an already-rejected AbortablePromise.\n */\n static rejectReason<T = never>(reason: unknown): AbortablePromise<T> {\n return new AbortablePromise<T>((_resolve, reject) => reject(reason));\n }\n\n /**\n * Run an async function as an AbortablePromise so callers get .abort() and .signal.\n * The async function receives the AbortSignal (and a progress emitter) so it can\n * cooperate with the abort.\n *\n * If abort() fires while the inner async function is still running, the\n * public promise rejects with AbortError immediately. The inner async\n * function's eventual settlement (resolve or reject) is funneled through\n * the wrapped settlers and silently dropped — including a late rejection\n * from the underlying work, which prevents an UnhandledRejection because\n * the .then(resolve, reject) below \"handles\" it via the no-op.\n */\n static run<T, P = never>(\n fn: (signal: AbortSignal, progress: (p: P) => void) => Promise<T>,\n ): AbortablePromise<T, P> {\n return new AbortablePromise<T, P>((resolve, reject, progress, signal) => {\n fn(signal, progress).then(resolve, reject);\n });\n }\n}\n","import type {\n DocumentAccessReason,\n DocumentSecurityState,\n PdfPermissionAdvisory,\n PdfPermissionInfo,\n} from './DocumentSecurityService';\nimport type { PdfBits } from '../auth/scope';\nimport type { DocumentSecurityProbeInfo } from '../wire/worker-protocol';\n\nexport interface DocumentHeadLike {\n encryption: {\n state: DocumentSecurityState['encryption']['state'];\n requiresPassword: boolean | null;\n };\n permissions: DocumentSecurityState['permissions'];\n access: DocumentSecurityState['access'];\n}\n\nexport function securityStateFromHead(head: DocumentHeadLike): DocumentSecurityState {\n return {\n encryption: {\n state: head.encryption.state,\n requiresPassword: head.encryption.requiresPassword,\n },\n permissions: { ...head.permissions },\n access: {\n required: head.access.required,\n reasons: [...head.access.reasons],\n ...(head.access.endpoint ? { endpoint: head.access.endpoint } : {}),\n },\n };\n}\n\nexport function permissionInfoFromProbe(info: DocumentSecurityProbeInfo): PdfPermissionInfo | null {\n if (info.pdfPermissionsBits === null) return null;\n return {\n known: true,\n bits: info.pdfPermissionsBits,\n allAllowed: info.pdfPermissionsAllAllowed,\n openedAs: info.pdfOpenedAs,\n securityHandlerRevision: info.securityHandlerRevision,\n };\n}\n\n/**\n * Same as {@link permissionInfoFromProbe} but additionally populates\n * `flags` (typed PdfBits view) and `advisory` (capability-shaped\n * booleans for UI badges). Used by routes that have a decoded `PdfBits`\n * in hand — notably `/access`, which always does.\n *\n * Returns `null` for the same reason as the base function — when the\n * PDF hasn't been probed yet so bits are unknown.\n */\nexport function permissionInfoWithAdvisory(\n info: DocumentSecurityProbeInfo,\n pdfBits: PdfBits,\n): PdfPermissionInfo | null {\n const base = permissionInfoFromProbe(info);\n if (!base) return null;\n return {\n ...base,\n flags: pdfBits,\n advisory: advisoryFromPdfBits(pdfBits),\n };\n}\n\n/**\n * Translate a {@link PdfBits} view into the capability-shaped\n * {@link PdfPermissionAdvisory}. The rules here MUST mirror the bit\n * combinations the scope resolver uses for `pdf.permissions`\n * expansion — `doc.print.high` requires bit 12 AND bit 3, etc.\n */\nexport function advisoryFromPdfBits(b: PdfBits): PdfPermissionAdvisory {\n return {\n canPrint: b.bit3,\n canPrintHigh: b.bit12 && b.bit3,\n canCopy: b.bit5,\n canAnnotate: b.bit6,\n canFillForms: b.bit6 || b.bit9,\n canModifyForms: b.bit6 && b.bit4,\n canModifyPages: b.bit4,\n canAssemble: b.bit11,\n };\n}\n\nexport function securityStateFromProbe(\n info: DocumentSecurityProbeInfo,\n opts: { accessEndpoint?: string; cdnRequired?: boolean } = {},\n): DocumentSecurityState {\n const permission = permissionInfoFromProbe(info);\n const reasons: DocumentAccessReason[] = [];\n if (info.encryptionRequiresPassword === true && !permission) reasons.push('password');\n if (opts.cdnRequired) reasons.push('cdn');\n if (info.encryptionState === 'unknown') reasons.push('permissions-unknown');\n\n return {\n encryption: {\n state: info.encryptionState,\n requiresPassword: info.encryptionRequiresPassword,\n },\n permissions: {\n known: permission?.known ?? false,\n bits: permission?.bits ?? null,\n allAllowed: permission?.allAllowed ?? null,\n openedAs: permission?.openedAs ?? null,\n securityHandlerRevision: permission?.securityHandlerRevision ?? null,\n canUpgradeToOwner: info.encryptionState === 'encrypted' && info.pdfOpenedAs !== 'owner',\n },\n access: {\n required: reasons.length > 0,\n reasons,\n ...(reasons.length > 0 && opts.accessEndpoint ? { endpoint: opts.accessEndpoint } : {}),\n },\n };\n}\n","import { EngineError } from '../errors/EngineError';\nimport { EngineErrorCode } from '../errors/EngineErrorCode';\nimport type { PageRenderViewport } from '../dto/PageRender';\n\n/**\n * The engine's render-parameter policy.\n *\n * - `continuous` — any viewport renders exactly as requested. The LOCAL\n * engine always answers this: rendering is in-process, there is no\n * shared cache to protect, and exactness is the local product promise.\n * - `lattice` — the deployment treats a finite set of render points as\n * durable, CDN-shared artifacts. The bounded quantity\n * is OUTPUT PIXELS, never zoom:\n *\n * - `fullPage.widths` — full-page renders quantize on `viewport.width`\n * (a scale lattice bounds artifact COUNT but not SIZE: PDF page space\n * is effectively unbounded, so scale 1 of a poster page is a memory\n * bomb while width caps the dominant dimension by construction).\n * - `tiles` — RESERVED for the deep-zoom vertical: a scale-based\n * pyramid × fixed tile size, where per-job cost is constant. Absent\n * until the tiling plugin ships; reserving the shape keeps the SDK\n * contract from churning twice.\n * - `maxRenderPixels` — the worker-side output budget for degenerate\n * geometry (width bounds width, not height).\n *\n * The SDK never conforms a request implicitly — the same `render.image`\n * call must not return different pixels on local vs cloud. Conformance is\n * the caller's visible choice via {@link snapFullPageViewport}.\n */\nexport type EngineRenderPolicy =\n | { readonly kind: 'continuous' }\n | {\n readonly kind: 'lattice';\n readonly fullPage: { readonly widths: readonly number[] };\n readonly tiles?: {\n readonly tileSizes: readonly number[];\n readonly scales: readonly number[];\n };\n /**\n * Annotation-appearance lattice — SCALE-based, unlike full pages:\n * an appearance is sized by `annotation.rect × scale`, rects span\n * orders of magnitude (a 4pt caret vs a page-sized stamp), and the\n * composite must track the PAGE's effective render scale or\n * annotations sit blurry on a crisp raster. Small images → the\n * ladder affords finer, taller steps than pages ever could.\n */\n readonly appearances?: { readonly scales: readonly number[] };\n readonly maxRenderPixels?: number;\n readonly formats: readonly ('webp' | 'png')[];\n readonly background: 'white';\n readonly enforced: boolean;\n };\n\nexport const CONTINUOUS_RENDER_POLICY: EngineRenderPolicy = { kind: 'continuous' };\n\n/**\n * Document-scoped render policy surface (`doc.render`). Async because the\n * cloud engine learns its policy from `/v1/access`; the local engine\n * resolves immediately with `continuous`.\n *\n * Per-page rendering itself stays on `page(pon).render` — this service\n * carries POLICY, not pixels.\n */\nexport interface DocumentRenderService {\n policy(): Promise<EngineRenderPolicy>;\n}\n\n/**\n * Conform a FULL-PAGE viewport to a render policy — the ONE snap\n * implementation, shared by every engine and plugin. Pure and explicit\n * by design:\n *\n * - `continuous` → identity (local/cloud plugin code stays byte-identical).\n * - `lattice` → returns a `width`-kind viewport at the smallest ladder\n * width ≥ the requested detail (snap UP: always crisp, CSS downscales\n * for free), capped at the largest width — detail beyond the cap is the\n * tile pyramid's job, by design.\n * - `scale`-kind requests convert through the page's width in PDF user\n * units — pass `opts.pageWidth` (the caller has it from the layout);\n * omitting it for a scale viewport under a lattice policy is a\n * programmer error and throws `InvalidArg`.\n */\nexport function snapFullPageViewport(\n policy: EngineRenderPolicy,\n viewport: PageRenderViewport,\n opts?: { pageWidth?: number },\n): PageRenderViewport {\n if (policy.kind === 'continuous') return viewport;\n if (policy.fullPage.widths.length === 0) {\n throw new EngineError(EngineErrorCode.InvalidArg, 'render policy has an empty width ladder');\n }\n const widths = [...policy.fullPage.widths].sort((a, b) => a - b);\n\n let requested: number;\n if (viewport.kind === 'width') {\n requested = viewport.width;\n } else {\n const pageWidth = opts?.pageWidth;\n if (pageWidth === undefined || pageWidth <= 0) {\n throw new EngineError(\n EngineErrorCode.InvalidArg,\n 'snapping a scale viewport to a width lattice requires opts.pageWidth',\n );\n }\n requested = (viewport.scale ?? 1) * pageWidth;\n }\n\n const snapped = widths.find((width) => width >= requested) ?? widths[widths.length - 1]!;\n return { kind: 'width', width: snapped };\n}\n\n/**\n * Conform an annotation-appearance scale to the policy's appearance\n * lattice. Same discipline as {@link snapFullPageViewport}: identity on\n * continuous (and when the policy carries no appearance block), snap UP,\n * cap at the largest point. Callers derive `scale` from the page's\n * effective render scale (`snappedWidth / pageWidth`, × devicePixelRatio\n * as needed) so composites stay crisp against the page raster.\n */\nexport function snapAppearanceScale(policy: EngineRenderPolicy, scale: number): number {\n if (policy.kind === 'continuous' || policy.appearances === undefined) return scale;\n if (policy.appearances.scales.length === 0) {\n throw new EngineError(\n EngineErrorCode.InvalidArg,\n 'render policy has an empty appearance-scale lattice',\n );\n }\n const scales = [...policy.appearances.scales].sort((a, b) => a - b);\n return scales.find((s) => s >= scale) ?? scales[scales.length - 1]!;\n}\n\n/**\n * Conform a tile-pyramid scale to the policy's tile lattice — the third\n * member of the `snap<PolicyBlock><Quantity>` family. Identity on\n * continuous and while the deployment doesn't advertise a `tiles` block\n * (the block is reserved until the deep-zoom vertical ships server-side;\n * the tiling client uses its own default pyramid then — see\n * plugin-render). Snap UP, cap at the largest scale: per-tile cost is\n * constant by construction (`tileSize²` pixels regardless of level), so\n * the cap bounds artifact COUNT, not memory.\n */\nexport function snapTileScale(policy: EngineRenderPolicy, scale: number): number {\n if (policy.kind === 'continuous' || policy.tiles === undefined) return scale;\n if (policy.tiles.scales.length === 0) {\n throw new EngineError(\n EngineErrorCode.InvalidArg,\n 'render policy has an empty tile-scale lattice',\n );\n }\n const scales = [...policy.tiles.scales].sort((a, b) => a - b);\n return scales.find((s) => s >= scale) ?? scales[scales.length - 1]!;\n}\n","/**\n * Unified \"should I ask the user for a password?\" shape.\n *\n * A PDF has two distinct password moments:\n * 1. **Required** — the document is encrypted and we couldn't read\n * anything anonymously. The dev MUST gather a password and call\n * `unlock()` before any other operation succeeds.\n * 2. **Optional** — the document is open and readable, but more\n * permissions become available with the owner password. The dev\n * MAY surface an \"unlock for full access\" affordance.\n *\n * Plus the trivial third state: **none** — nothing to do.\n *\n * The discriminated union encodes the invariants:\n * - `required` and `optional` cannot both be true (a doc you can't\n * read can't be \"upgraded\" — you have to read first).\n * - `hint` is only present when meaningful (no hint in the `none` arm,\n * mandatory `owner` hint in `optional` since that's the only thing\n * an upgrade asks for).\n *\n * Computed identically on local + cloud via\n * {@link passwordPromptFromState} so the dev's UI gating code is\n * engine-agnostic.\n */\nimport type { DocumentSecurityState } from './DocumentSecurityService';\n\nexport type PasswordPrompt =\n | { readonly state: 'none' }\n | { readonly state: 'required'; readonly hint: 'user' | 'owner' | null }\n | { readonly state: 'optional'; readonly hint: 'owner' };\n\n/**\n * Derive the high-level password prompt from the raw security state.\n *\n * The function is pure and total — every `DocumentSecurityState`\n * maps to exactly one `PasswordPrompt`. Use this as the SINGLE source\n * of truth wherever the SDK exposes a \"do you need a password?\" flag:\n * both `LocalDocumentSecurityService` and `CloudDocumentSecurityService`\n * call it, so the contract can never drift.\n *\n * Mapping rules (top to bottom; first match wins):\n *\n * 1. encryption.state === 'none'\n * → { state: 'none' } the document isn't encrypted\n *\n * 2. !permissions.known\n * → { state: 'required', hint: null } we haven't probed yet; can't\n * tell user-vs-owner; show\n * generic prompt\n *\n * 3. requiresPassword && openedAs === 'none'\n * → { state: 'required', hint: 'user' } encrypted, anonymous open\n * failed → user pwd needed\n *\n * 4. openedAs === 'owner'\n * → { state: 'none' } already at the top — nothing more\n * to unlock\n *\n * 5. permissions.canUpgradeToOwner === true\n * → { state: 'optional', hint: 'owner' } open as user (or as none\n * for owner-pwd-only docs)\n * but more is available\n *\n * 6. fallthrough → { state: 'none' } open and nothing more available\n */\nexport function passwordPromptFromState(state: DocumentSecurityState): PasswordPrompt {\n if (state.encryption.state === 'none') {\n return { state: 'none' };\n }\n\n if (!state.permissions.known) {\n return { state: 'required', hint: null };\n }\n\n if (state.encryption.requiresPassword && state.permissions.openedAs === 'none') {\n return { state: 'required', hint: 'user' };\n }\n\n if (state.permissions.openedAs === 'owner') {\n return { state: 'none' };\n }\n\n if (state.permissions.canUpgradeToOwner) {\n return { state: 'optional', hint: 'owner' };\n }\n\n return { state: 'none' };\n}\n","/**\n * Wire-level packaging for messages crossing a Web Worker / Node\n * `worker_thread` boundary.\n *\n * `WirePack<P>` is the typed pair every producer hands to a transport:\n * the structured payload (validated against the wire schema) and an\n * explicit, ordered list of `Transferable` objects that the producer\n * intends to move (zero-copy) to the receiver.\n *\n * Why this is a first-class type and not a transport-side argument:\n *\n * - **Producer is the only one who knows.** Whether a particular\n * `ArrayBuffer` should be moved (zero-copy, sender's reference\n * detached) or copied (structured-cloned, both sides retain\n * access) is a semantic decision belonging to the code that\n * produced the buffer. Inferring it later — by walking the\n * payload looking for `ArrayBuffer` instances and assuming they\n * should all be transferred — is the v2 footgun this design\n * replaces.\n *\n * - **Type-checked at the boundary.** A handler returning\n * `WirePack<RenderResult>` cannot forget to declare its\n * transfer list; the producer literally writes\n * `wirePack({ ..., pixels }, [pixels.buffer])` in a single\n * return statement. Forgetting yields a structurally identical\n * copy (slow but correct), never a silent leak.\n *\n * - **Symmetric across the boundary.** Same `WirePack<P>` on the\n * request path (main → worker) and the response path (worker →\n * main). Inline transports treat `transfer` as a no-op since\n * there's no thread boundary to cross.\n *\n * - **Schema-orthogonal.** Zod schemas validate `payload` and\n * nothing else. `transfer` is not data; it's a memory-ownership\n * manifest, and the design keeps those concerns separate.\n *\n * The receiver of a `postMessage(payload, { transfer })` call gets\n * the payload back **with the listed buffers already moved into it**\n * — there's no second argument on the receiving end. So `WirePack`\n * only ever travels the producer-to-transport leg of the trip; the\n * consumer side just sees the unwrapped `payload`.\n */\nexport interface WirePack<P> {\n readonly payload: P;\n readonly transfer: readonly Transferable[];\n}\n\n/**\n * Singleton empty transfer list. Frozen so accidental in-place\n * mutation throws in strict mode rather than silently mutating the\n * default for future calls.\n */\nexport const EMPTY_TRANSFER: readonly Transferable[] = Object.freeze([]);\n\n/**\n * Producer-side helper: pair a typed payload with its transfer list.\n *\n * The `transfer` argument is optional; omitting it (or passing `[]`)\n * is the explicit, type-checked way to say \"I declare this message\n * carries no transferables.\" That's structurally identical to the\n * shape the v2 walker generated for non-binary messages, but here\n * the declaration is at construction time, in the producer's own\n * code, where the knowledge actually lives.\n *\n * wirePack({ kind: 'metadata.read', jobId, docId })\n * wirePack({ kind: 'open.fatMem', jobId, docId, bytes }, [bytes])\n * wirePack({ tag: 'page.render', pixels }, [pixels.buffer])\n */\nexport function wirePack<P>(\n payload: P,\n transfer: readonly Transferable[] = EMPTY_TRANSFER,\n): WirePack<P> {\n return { payload, transfer };\n}\n"],"mappings":"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"}
@@ -1,6 +1,6 @@
1
- import { $a as ResourceRef, $c as PdfQuad, $i as invalidatesWeakIndexRefs, $n as searchRectsForRange, $o as PageRenderQuery, $r as FormDataFormat, $s as checkSetGroup, Aa as ColorStyleFields, Ac as AnnotationReplyType, Ai as ListBoxFieldDTO, An as HighlightDraft, Ao as AnnotationAppearanceManifest, Ar as PdfTextSegment, As as pdfRectWidth, At as LineDraft, B as StampAnnotationDTO, Ba as AttachmentFileInfo, Bc as PdfRectDifferences, Bi as decodeFieldRefKey, Bn as PageFlattenStatus, Bo as knownWeakAnnotationState, Br as FormDataExport, Bs as OpenInputLayerSource, Bt as PolygonPatch, C as RedactDraft, Ca as AttachmentsCache, Cc as AnnotationRef, Ci as ComboBoxFieldDTO, Cn as UnderlineAnnotationDTO, Co as FontSpec, Cr as SearchMode, Cs as pdfQuadBounds, Ct as LinkAnnotationDTO, Da as FileAttachmentWireDraft, Dc as isValidPageObjectNumber, Di as FormFieldFlags, Do as AnnotationAppearanceImage, Dr as SearchSliceBudget, Ds as pdfRectHeight, E as WidgetDraft, Ea as FileAttachmentIcon, Ec as PageObjectNumber, Ei as FormFieldFamily, Eo as CachePins, Er as SearchSlice, Es as pdfRectFromOriginSize, Fa as GeometryStyleDraftFields, Fc as FreeTextIntent, Fi as ToggleFieldWidget, Fn as RedactionApplyScope, Fo as AnnotationAppearancesQuery, Fr as expandTextRangeToLine, Fs as MetadataPatch, Ft as PolylineAnnotationDTO, Ga as NormalizedPatch, Gc as StandardFont, Gi as AnnotationUpdateResult, Gn as PageRotateResult, Go as PageImageResult, Gr as FormRepairResult, Gs as caps, Gt as VertexPatchFields, H as StampFit, Ha as EmbeddedFileItem, Hc as Rect, Hi as AnnotationCreateResult, Hn as PageInsertResult, Ho as PageImageHandle, Hr as FormFieldDeleteResult, Hs as OpenInputToken, Ht as PolygonDraft, Ia as GeometryStyleFields, Ic as InkIntent, Ii as UnknownFieldDTO, In as RedactionApplyStatus, Io as AnnotationAppearancesResult, Ir as expandTextRangeToWord, Is as OpenInput, It as PolylineDraft, J as TextPatch, Ja as BinaryMetadata, Jc as CalloutLine, Ji as AppearanceOutcome, Jn as PageMoveResult, Jo as PageRaster, Jr as FormEffect, Js as pdfPermissions, Ka as normalizeAnnotationDraft, Kc as StrikeoutIntent, Ki as AppearanceAction, Kn as PageRotateInput, Ko as PageImageSource, Kr as FormSetValueResult, Ks as collab, La as GeometryStylePatchFields, Lc as LineEnding, Li as FormValueEntry, Ln as PageFlattenInput, Lo as PageState, Lr as textGlyphAt, Ls as OpenInputById, M as FileAttachmentPatch, Ma as FilledStyleDraftFields, Mc as CaretIntent, Mi as RadioFieldDTO, Mn as MetadataUpdateResult, Mo as AnnotationAppearanceMode, Mr as TextLayoutGlyph, Ms as PageBoxes, N as FileAttachmentAnnotationDTO, Na as FilledStyleFields, Nc as Color, Ni as SignatureFieldDTO, Nn as RedactionApplyItemResult, No as AnnotationAppearanceRaster, Nr as TextLayoutRun, Ns as PageLayout, Oa as WireAttachmentFile, Oc as AnnotationBorderStyle, Oi as FormFieldOption, On as HighlightPatch, Oo as AnnotationAppearanceImageOptions, Or as SearchSnippet, Os as pdfRectSize, Ot as LinePatch, Pa as FilledStylePatchFields, Pc as FreeTextFont, Pi as TextFieldDTO, Pn as RedactionApplyResult, Po as AnnotationAppearanceRenderOptions, Pr as buildPageTextLayout, Ps as PageRotation, Pt as PolylinePatch, Qa as BinarySource, Qc as PdfPoint, Qi as changesAnnotationList, Qn as searchContentEpoch, Qo as PageRenderOptions, Qr as FormFieldDisplay, Qs as checkCollab, R as StampPatch, Ra as AttachmentContent, Rc as LineEndings, Ri as FormFieldRef, Rn as PageFlattenItemResult, Ro as UNKNOWN_WEAK_ANNOTATION_STATE, Rr as textGlyphQuad, Rs as OpenInputBytes, S as RedactAnnotationDTO, Sa as AttachmentDeleteResult, Sc as AnnotationDraftBase, Si as CheckboxFieldDTO, Sn as UnderlinePatch, So as FontKey, Sr as SearchMatch, Ss as normalizePdfRect, St as LinkPatch, T as WidgetAnnotationDTO, Ta as FileAttachmentDraft, Tc as revisionTokensEqual, Ti as FormFieldDTO, To as PdfSaveMode, Tr as SearchRequest, Ts as pdfQuadFromCorners, U as StampWireDraft, Ua as EmbeddedFileRef, Uc as Rotation, Ui as AnnotationDeleteResult, Un as PageDeleteResult, Uo as PageImageObjectUrl, Ur as FormFieldUpdateResult, Us as OpenOptions, Ut as VertexAnnotationFields, V as StampDraft, Va as AttachmentFileSource, Vc as Point, Vi as encodeFieldRefKey, Vn as PageFlattenUsage, Vo as PageImageBlobSource, Vr as FormFieldCreateResult, Vs as OpenInputShare, Vt as PolygonAnnotationDTO, Wa as NormalizedDraft, Wc as Size, Wi as AnnotationMoveResult, Wn as PageDeleteInput, Wo as PageImageOptions, Wr as FormImportResult, Ws as TokenSource, Wt as VertexDraftFields, X as NoteIcon, Xa as sniffBinaryMetadata, Xc as InkStroke, Xi as semanticEqual, Xn as PageMoveInput, Xo as PageRenderEncodedFormat, Xr as FormEffectStatus, Xs as checkAnyCapability, Xt as SquareAnnotationDTO, Y as TextAnnotationDTO, Ya as BinaryMimeType, Yc as InkList, Yi as appearanceImpactOf, Yn as PageStructureCache, Yo as PageRenderBackground, Yr as FormEffectResult, Ys as CollabTarget, Yt as SquarePatch, Z as TextDraft, Za as BinaryPayload, Zc as LinePoints, Zi as AnnotationMutationKind, Zn as canonicalSearchQuery, Zo as PageRenderFormat, Zr as FormEffectsResult, Zs as checkCapability, Zt as SquareDraft, _a as AnnotationKindModule, _c as ParsedCollab, _i as WidgetAppearance, _n as SquigglyAnnotationDTO, _o as SerializedEngineError, _r as FoldedText, _s as charMapViolation, aa as PdfLinkTarget, ac as PermissionDenied, ai as RadioFieldPatch, al as NamedJavaScriptAction, an as ShapeDraftFields, ao as PDF_CODE_TO_SUBTYPE, ar as SearchQueryIssue, as as PageGeometrySnapshot, b as UnsupportedAnnotationDTO, ba as PatchOfKind, bc as ParsedWildcard, bi as WidgetStyleFields, bo as EngineErrorCode, br as foldText, bs as PdfOriginSize, c as AnnotationKind, ca as DocumentManifest, cc as PDF_BITS, ci as ComboBoxFieldDraft, cl as PdfActionType, co as subtypeFromCode, cr as SearchRegexValidation, cs as UprightGeometryRun, ct as FreeTextAnnotationDTO, d as AnnotationSubtypeOfKind, da as LayerScopes, dc as CollabAction, di as ListBoxFieldDraft, dl as PdfFieldActions, dn as StrikeoutAnnotationDTO, do as AnnotationIdentityQuality, dr as validateSearchRegex, ds as isRotatedGeometryRun, ea as shiftsExistingAnnotationIndices, ec as expandRawScope, ei as FormFieldValue, el as PdfRect, eo as WireResource, er as searchSegmentsForRange, es as PageRenderTarget, fa as AnnotationRelationKind, fc as CollabEntity, fi as RadioFieldDraft, fl as PdfPageActions, fn as StrikeoutDraft, fo as AnnotationStableId, fr as foldOptionsFor, fs as PageTextSnapshot, ga as refKey, gc as ParsedCapability, gi as FormSnapshot, gn as SquigglyPatch, go as EngineErrorOptions, gr as FoldOptions, gs as charBoundaryAtTextOffset, ha as classifyRelation, hc as IdentityClaims, hi as FormKind, ho as EngineError, hr as wordBefore, hs as boundaryTextOffset, ht as InkDraft, i as AnnotationDTO, ia as MutationMeta, ic as MissingIdentity, ii as ListBoxFieldPatch, il as DocumentActionsSnapshot, in as ShapeAnnotationFields, io as AnnotationSubtype, ir as SEARCH_REGEX_MAX_LENGTH, is as PageGeometryRun, ja as ColorStylePatchFields, jc as BlendMode, ji as PushButtonFieldDTO, jn as MetadataCache, jo as AnnotationAppearanceManifestEntry, jr as TextLayoutFrame, js as PageListSnapshot, ka as ColorStyleDraftFields, kc as AnnotationFlags, ki as FormFieldOrigin, kn as HighlightAnnotationDTO, ko as AnnotationAppearanceImagesResult, kr as PageTextLayout, ks as pdfRectToOriginSize, kt as LineAnnotationDTO, l as AnnotationPatch, la as ManifestPage, lc as decodePdfBits, li as FormFieldDraft, ll as PdfActionWarning, lo as AnnotationPatchBase, lr as matchRegex, ls as glyphLooseBounds, lt as FreeTextDraft, m as WireAnnotationPatch, ma as buildThreads, mc as DocCapability, mi as WidgetPlacement, ml as DocumentMetadataTrapped, mo as encodeStableIdKey, mr as wordAt, ms as CharMapAnchor, mt as InkAnnotationDTO, n as AnnotationListSnapshotAllPages, na as RefetchReason, nc as filterMatches, ni as ComboBoxFieldPatch, nl as PdfSize, nn as CircleAnnotationDTO, no as resolveBinarySource, nr as buildSnippet, ns as createPageImageHandle, nt as CaretAnnotationDTO, o as AnnotationDraft, oa as PdfLinkTargetWritable, oc as parseScope, oi as TextFieldPatch, ol as PdfActionNode, on as ShapePatchFields, oo as PDF_SUBTYPE_TO_CODE, or as SearchQueryValidation, os as RotatedGeometryGlyph, p as WireAnnotationDraft, pa as AnnotationThread, pc as CollabFilter, pi as TextFieldDraft, pl as DocumentMetadata, po as decodeStableIdKey, pr as matchLiteral, ps as CharBoundaryBias, pt as InkPatch, qa as normalizeAnnotationPatch, qc as TextAlignment, qi as AppearanceImpact, qn as PageMoveCache, qo as PageNetworkRenderFormat, qr as FormWidgetLinkResult, qs as materializePdfPermissions, ra as CacheDelta, rc as InvalidScope, ri as FormFieldPatch, rl as ActionReadBudget, rn as CircleDraft, ro as ANNOTATION_SUBTYPES, rr as matchPageText, rs as PageGeometryGlyph, rt as CaretDraft, sa as PdfDestination, sc as validateScopeArray, si as CheckboxFieldDraft, sl as PdfActionTree, so as PdfAnnotationSubtypeCode, sr as SearchRegexIssue, ss as RotatedGeometryRun, st as FreeTextPatch, t as AnnotationListPageSnapshot, ta as AnnotationListMutationMeta, tc as expandedCapabilities, ti as CheckboxFieldPatch, tl as PdfRotation, tn as CirclePatch, to as WireResourceMap, tr as SEARCH_SNIPPET_CONTEXT, ts as PageRenderViewport, tt as CaretPatch, ua as LayerScopePlane, uc as AnnotationActor, ui as FormFieldOptionInput, ul as PdfAnnotationActions, un as StrikeoutPatch, uo as AnnotationBase, ur as validateSearchQuery, us as glyphLooseQuad, v as UnsupportedPatch, va as DTOOfKind, vc as ParsedScope, vn as SquigglyDraft, vo as deserializeError, vr as SEARCH_FOLD_VERSION, vs as charRangeForTextOffsets, w as WidgetPatch, wa as normalizeAttachmentFileSource, wc as RevisionToken, wi as FormFieldBase, wn as UnderlineDraft, wo as DEFAULT_PDF_SAVE_MODE, wr as SearchQuery, ws as pdfQuadCorners, wt as LinkDraft, x as RedactPatch, xa as AttachmentCreateResult, xc as PdfBits, xi as WidgetStylePatchFields, xo as FontHandle, xr as toOriginalRange, xs as PdfQuadCorners, y as UnsupportedDraft, ya as DraftOfKind, yc as ParsedVirtual, yi as WidgetStyleDraftFields, yo as serializeError, yr as SearchMatchRange, ys as sliceTextByChars, z as StampWirePatch, za as AttachmentFileBase, zc as NO_ANNOTATION_FLAGS, zi as FormWidgetRef, zn as PageFlattenResult, zo as WeakAnnotationState, zr as textSegmentsForRange, zs as OpenInputLayerBytes } from "./AnnotationListSnapshot-CHjkcIaL.cjs";
2
- import { a as DocumentEncryptionState, c as DocumentSecurityState, d as PdfPermissionAdvisory, f as PdfPermissionInfo, g as AbortablePromise, h as AbortableExecutor, i as DocumentAccessReason, l as DocumentUnlockInput, m as passwordPromptFromState, n as CdnAdapter, o as DocumentOpenMode, p as PasswordPrompt, r as DocumentAccessInfo, s as DocumentSecurityService, t as CdnAccessInfo, u as DocumentUnlockResult } from "./DocumentSecurityService-B1uv4FaK.cjs";
3
- import { A as DocumentPagesService, C as CONTINUOUS_RENDER_POLICY, D as snapFullPageViewport, E as snapAppearanceScale, F as WeakAnnotationEditSession, I as DocumentActionsService, M as FormRepairOptions, N as DocumentAttachmentsService, O as snapTileScale, P as DocumentAnnotationsService, S as DocumentSearchService, T as EngineRenderPolicy, _ as PageTextService, a as DocumentHandle, b as PageAnnotationsService, c as DocumentEventInit, d as PageHandle, f as PieceInfoService, g as PieceInfoSnapshot, h as PieceInfoPatchValue, i as DocumentCapabilities, j as DocumentFormsService, k as DocumentRedactionService, l as DocumentEventType, m as PieceInfoPatch, n as EngineFactory, o as DocumentEventStream, p as PieceInfoEntry, r as FontService, s as DocumentEvent, t as Engine, u as EventOrigin, v as PageRenderService, w as DocumentRenderService, x as MetadataService, y as PageGeometryService } from "./Engine-BOaRwtKa.cjs";
1
+ import { $a as BinaryPayload, $c as LinePoints, $i as AnnotationMutationKind, $n as canonicalSearchQuery, $o as PageRenderFormat, $r as FormEffectsResult, $s as checkCapability, Aa as WireAttachmentFile, Ac as AnnotationBorderStyle, Ai as FormFieldOption, An as HighlightDraft, Ao as AnnotationAppearanceImageOptions, Ar as SearchSnippet, As as pdfRectSize, At as LineDraft, B as StampAnnotationDTO, Ba as AttachmentContent, Bc as LineEndings, Bi as FormFieldRef, Bn as PageFlattenStatus, Bo as UNKNOWN_WEAK_ANNOTATION_STATE, Br as textGlyphQuad, Bs as OpenInputBytes, Bt as PolygonPatch, C as RedactDraft, Ca as AttachmentCreateResult, Cc as PdfBits, Ci as WidgetStylePatchFields, Cn as UnderlineAnnotationDTO, Co as FontHandle, Cr as toOriginalRange, Cs as PdfQuadCorners, Ct as LinkAnnotationDTO, Da as FileAttachmentDraft, Dc as revisionTokensEqual, Di as FormFieldDTO, Do as PdfSaveMode, Dr as SearchRequest, Ds as pdfQuadFromCorners, E as WidgetDraft, Ea as normalizeAttachmentFileSource, Ec as RevisionToken, Ei as FormFieldBase, Eo as DEFAULT_PDF_SAVE_MODE, Er as SearchQuery, Es as pdfQuadCorners, Fa as FilledStyleFields, Fc as Color, Fi as SignatureFieldDTO, Fn as RedactionApplyScope, Fo as AnnotationAppearanceRaster, Fr as TextLayoutRun, Fs as PageLayout, Ft as PolylineAnnotationDTO, Ga as EmbeddedFileRef, Gc as Rotation, Gi as AnnotationDeleteResult, Gn as PageDeleteResult, Go as PageImageObjectUrl, Gr as FormFieldUpdateResult, Gs as OpenOptions, Gt as VertexPatchFields, H as StampFit, Ha as AttachmentFileInfo, Hc as PdfRectDifferences, Hi as decodeFieldRefKey, Hn as PAGE_INSERT_BLANK_MAX_COUNT, Ho as knownWeakAnnotationState, Hr as FormDataExport, Hs as OpenInputLayerSource, Ht as PolygonDraft, Ia as FilledStylePatchFields, Ic as FreeTextFont, Ii as TextFieldDTO, In as RedactionApplyStatus, Io as AnnotationAppearanceRenderOptions, Ir as buildPageTextLayout, Is as PageRotation, It as PolylineDraft, J as TextPatch, Ja as normalizeAnnotationDraft, Jc as StrikeoutIntent, Ji as AppearanceAction, Jn as PageRotateInput, Jo as PageImageSource, Jr as FormSetValueResult, Js as collab, Ka as NormalizedDraft, Kc as Size, Ki as AnnotationMoveResult, Kn as PageDeleteInput, Ko as PageImageOptions, Kr as FormImportResult, Ks as TokenSource, La as GeometryStyleDraftFields, Lc as FreeTextIntent, Li as ToggleFieldWidget, Ln as PageFlattenInput, Lo as AnnotationAppearancesQuery, Lr as expandTextRangeToLine, Ls as MetadataPatch, M as FileAttachmentPatch, Ma as ColorStyleFields, Mc as AnnotationReplyType, Mi as ListBoxFieldDTO, Mn as MetadataUpdateResult, Mo as AnnotationAppearanceManifest, Mr as PdfTextSegment, Ms as pdfRectWidth, N as FileAttachmentAnnotationDTO, Na as ColorStylePatchFields, Nc as BlendMode, Ni as PushButtonFieldDTO, Nn as RedactionApplyItemResult, No as AnnotationAppearanceManifestEntry, Nr as TextLayoutFrame, Ns as PageListSnapshot, Oa as FileAttachmentIcon, Oc as PageObjectNumber, Oi as FormFieldFamily, On as HighlightPatch, Oo as CachePins, Or as SearchSlice, Os as pdfRectFromOriginSize, Ot as LinePatch, Pa as FilledStyleDraftFields, Pc as CaretIntent, Pi as RadioFieldDTO, Pn as RedactionApplyResult, Po as AnnotationAppearanceMode, Pr as TextLayoutGlyph, Ps as PageBoxes, Pt as PolylinePatch, Qa as sniffBinaryMetadata, Qc as InkStroke, Qi as semanticEqual, Qn as PageMoveInput, Qo as PageRenderEncodedFormat, Qr as FormEffectStatus, Qs as checkAnyCapability, R as StampPatch, Ra as GeometryStyleFields, Rc as InkIntent, Ri as UnknownFieldDTO, Rn as PageFlattenItemResult, Ro as AnnotationAppearancesResult, Rr as expandTextRangeToWord, Rs as OpenInput, S as RedactAnnotationDTO, Sa as PatchOfKind, Sc as ParsedWildcard, Si as WidgetStyleFields, Sn as UnderlinePatch, So as EngineErrorCode, Sr as foldText, Ss as PdfOriginSize, St as LinkPatch, T as WidgetAnnotationDTO, Ta as AttachmentsCache, Tc as AnnotationRef, Ti as ComboBoxFieldDTO, To as FontSpec, Tr as SearchMode, Ts as pdfQuadBounds, U as StampWireDraft, Ua as AttachmentFileSource, Uc as Point, Ui as encodeFieldRefKey, Un as PageInsertBlankSpec, Uo as PageImageBlobSource, Ur as FormFieldCreateResult, Us as OpenInputShare, Ut as VertexAnnotationFields, V as StampDraft, Va as AttachmentFileBase, Vc as NO_ANNOTATION_FLAGS, Vi as FormWidgetRef, Vn as PageFlattenUsage, Vo as WeakAnnotationState, Vr as textSegmentsForRange, Vs as OpenInputLayerBytes, Vt as PolygonAnnotationDTO, Wa as EmbeddedFileItem, Wc as Rect, Wi as AnnotationCreateResult, Wn as PageInsertResult, Wo as PageImageHandle, Wr as FormFieldDeleteResult, Ws as OpenInputToken, Wt as VertexDraftFields, X as NoteIcon, Xa as BinaryMetadata, Xc as CalloutLine, Xi as AppearanceOutcome, Xn as PageMoveResult, Xo as PageRaster, Xr as FormEffect, Xs as pdfPermissions, Xt as SquareAnnotationDTO, Y as TextAnnotationDTO, Ya as normalizeAnnotationPatch, Yc as TextAlignment, Yi as AppearanceImpact, Yn as PageMoveCache, Yo as PageNetworkRenderFormat, Yr as FormWidgetLinkResult, Ys as materializePdfPermissions, Yt as SquarePatch, Z as TextDraft, Za as BinaryMimeType, Zc as InkList, Zi as appearanceImpactOf, Zn as PageStructureCache, Zo as PageRenderBackground, Zr as FormEffectResult, Zs as CollabTarget, Zt as SquareDraft, _a as classifyRelation, _c as IdentityClaims, _i as FormKind, _n as SquigglyAnnotationDTO, _o as EngineError, _r as wordBefore, _s as boundaryTextOffset, aa as CacheDelta, ac as InvalidScope, ai as FormFieldPatch, al as ActionReadBudget, an as ShapeDraftFields, ao as ANNOTATION_SUBTYPES, ar as matchPageText, as as PageGeometryGlyph, b as UnsupportedAnnotationDTO, ba as DTOOfKind, bc as ParsedScope, bo as deserializeError, br as SEARCH_FOLD_VERSION, bs as charRangeForTextOffsets, c as AnnotationKind, ca as PdfLinkTargetWritable, cc as parseScope, ci as TextFieldPatch, cl as PdfActionNode, co as PDF_SUBTYPE_TO_CODE, cr as SearchQueryValidation, cs as RotatedGeometryGlyph, ct as FreeTextAnnotationDTO, d as AnnotationSubtypeOfKind, da as ManifestPage, dc as decodePdfBits, di as FormFieldDraft, dl as PdfActionWarning, dn as StrikeoutAnnotationDTO, do as AnnotationPatchBase, dr as matchRegex, ds as glyphLooseBounds, ea as changesAnnotationList, ec as checkCollab, ei as FormFieldDisplay, el as PdfPoint, eo as BinarySource, er as searchContentEpoch, es as PageRenderOptions, fa as LayerScopePlane, fc as AnnotationActor, fi as FormFieldOptionInput, fl as PdfAnnotationActions, fn as StrikeoutDraft, fo as AnnotationBase, fr as validateSearchQuery, fs as glyphLooseQuad, ga as buildThreads, gc as DocCapability, gi as WidgetPlacement, gl as DocumentMetadataTrapped, gn as SquigglyPatch, go as encodeStableIdKey, gr as wordAt, gs as CharMapAnchor, ha as AnnotationThread, hc as CollabFilter, hi as TextFieldDraft, hl as DocumentMetadata, ho as decodeStableIdKey, hr as matchLiteral, hs as CharBoundaryBias, ht as InkDraft, i as AnnotationDTO, ia as RefetchReason, ic as filterMatches, ii as ComboBoxFieldPatch, il as PdfSize, in as ShapeAnnotationFields, io as resolveBinarySource, ir as buildSnippet, is as createPageImageHandle, ja as ColorStyleDraftFields, jc as AnnotationFlags, ji as FormFieldOrigin, jn as MetadataCache, jo as AnnotationAppearanceImagesResult, jr as PageTextLayout, js as pdfRectToOriginSize, ka as FileAttachmentWireDraft, kc as isValidPageObjectNumber, ki as FormFieldFlags, kn as HighlightAnnotationDTO, ko as AnnotationAppearanceImage, kr as SearchSliceBudget, ks as pdfRectHeight, kt as LineAnnotationDTO, l as AnnotationPatch, la as PdfDestination, lc as validateScopeArray, li as CheckboxFieldDraft, ll as PdfActionTree, lo as PdfAnnotationSubtypeCode, lr as SearchRegexIssue, ls as RotatedGeometryRun, lt as FreeTextDraft, m as WireAnnotationPatch, ma as AnnotationRelationKind, mc as CollabEntity, mi as RadioFieldDraft, ml as PdfPageActions, mo as AnnotationStableId, mr as foldOptionsFor, ms as PageTextSnapshot, mt as InkAnnotationDTO, n as AnnotationListSnapshotAllPages, na as shiftsExistingAnnotationIndices, nc as expandRawScope, ni as FormFieldValue, nl as PdfRect, nn as CircleAnnotationDTO, no as WireResource, nr as searchSegmentsForRange, ns as PageRenderTarget, nt as CaretAnnotationDTO, o as AnnotationDraft, oa as MutationMeta, oc as MissingIdentity, oi as ListBoxFieldPatch, ol as DocumentActionsSnapshot, on as ShapePatchFields, oo as AnnotationSubtype, or as SEARCH_REGEX_MAX_LENGTH, os as PageGeometryRun, p as WireAnnotationDraft, pa as LayerScopes, pc as CollabAction, pi as ListBoxFieldDraft, pl as PdfFieldActions, po as AnnotationIdentityQuality, pr as validateSearchRegex, ps as isRotatedGeometryRun, pt as InkPatch, qa as NormalizedPatch, qc as StandardFont, qi as AnnotationUpdateResult, qn as PageRotateResult, qo as PageImageResult, qr as FormRepairResult, qs as caps, ra as AnnotationListMutationMeta, rc as expandedCapabilities, ri as CheckboxFieldPatch, rl as PdfRotation, rn as CircleDraft, ro as WireResourceMap, rr as SEARCH_SNIPPET_CONTEXT, rs as PageRenderViewport, rt as CaretDraft, sa as PdfLinkTarget, sc as PermissionDenied, si as RadioFieldPatch, sl as NamedJavaScriptAction, so as PDF_CODE_TO_SUBTYPE, sr as SearchQueryIssue, ss as PageGeometrySnapshot, st as FreeTextPatch, t as AnnotationListPageSnapshot, ta as invalidatesWeakIndexRefs, tc as checkSetGroup, ti as FormDataFormat, tl as PdfQuad, tn as CirclePatch, to as ResourceRef, tr as searchRectsForRange, ts as PageRenderQuery, tt as CaretPatch, ua as DocumentManifest, uc as PDF_BITS, ui as ComboBoxFieldDraft, ul as PdfActionType, un as StrikeoutPatch, uo as subtypeFromCode, ur as SearchRegexValidation, us as UprightGeometryRun, v as UnsupportedPatch, va as refKey, vc as ParsedCapability, vi as FormSnapshot, vn as SquigglyDraft, vo as EngineErrorOptions, vr as FoldOptions, vs as charBoundaryAtTextOffset, w as WidgetPatch, wa as AttachmentDeleteResult, wc as AnnotationDraftBase, wi as CheckboxFieldDTO, wn as UnderlineDraft, wo as FontKey, wr as SearchMatch, ws as normalizePdfRect, wt as LinkDraft, x as RedactPatch, xa as DraftOfKind, xc as ParsedVirtual, xi as WidgetStyleDraftFields, xo as serializeError, xr as SearchMatchRange, xs as sliceTextByChars, y as UnsupportedDraft, ya as AnnotationKindModule, yc as ParsedCollab, yi as WidgetAppearance, yo as SerializedEngineError, yr as FoldedText, ys as charMapViolation, z as StampWirePatch, za as GeometryStylePatchFields, zc as LineEnding, zi as FormValueEntry, zn as PageFlattenResult, zo as PageState, zr as textGlyphAt, zs as OpenInputById } from "./AnnotationListSnapshot-Bwfnb1i-.cjs";
2
+ import { a as DocumentEncryptionState, c as DocumentSecurityState, d as PdfPermissionAdvisory, f as PdfPermissionInfo, g as AbortablePromise, h as AbortableExecutor, i as DocumentAccessReason, l as DocumentUnlockInput, m as passwordPromptFromState, n as CdnAdapter, o as DocumentOpenMode, p as PasswordPrompt, r as DocumentAccessInfo, s as DocumentSecurityService, t as CdnAccessInfo, u as DocumentUnlockResult } from "./DocumentSecurityService-DQNpYCXs.cjs";
3
+ import { A as DocumentPagesService, C as CONTINUOUS_RENDER_POLICY, D as snapFullPageViewport, E as snapAppearanceScale, F as WeakAnnotationEditSession, I as DocumentActionsService, M as FormRepairOptions, N as DocumentAttachmentsService, O as snapTileScale, P as DocumentAnnotationsService, S as DocumentSearchService, T as EngineRenderPolicy, _ as PageTextService, a as DocumentHandle, b as PageAnnotationsService, c as DocumentEventInit, d as PageHandle, f as PieceInfoService, g as PieceInfoSnapshot, h as PieceInfoPatchValue, i as DocumentCapabilities, j as DocumentFormsService, k as DocumentRedactionService, l as DocumentEventType, m as PieceInfoPatch, n as EngineFactory, o as DocumentEventStream, p as PieceInfoEntry, r as FontService, s as DocumentEvent, t as Engine, u as EventOrigin, v as PageRenderService, w as DocumentRenderService, x as MetadataService, y as PageGeometryService } from "./Engine-COFJU7sA.cjs";
4
4
  //#region src/promise/AbortError.d.ts
5
5
  declare class AbortError extends Error {
6
6
  readonly name = "AbortError";
@@ -555,6 +555,20 @@ interface PagesInsertWorkerRequest {
555
555
  destIndex?: number;
556
556
  artifactPath?: string;
557
557
  }
558
+ /** Create `count` (default 1) blank pages of `size` (PDF points) at
559
+ * `destIndex` (omitted → append). A structural MUTATION exactly like
560
+ * `pages.insert`, minus the bytes: pure parameters, so nothing transfers;
561
+ * layer sessions persist an artifact identically. */
562
+ interface PagesInsertBlankWorkerRequest {
563
+ kind: 'pages.insertBlank';
564
+ jobId: WorkerJobId;
565
+ docId: string;
566
+ layerName?: string;
567
+ size: PdfSize;
568
+ count?: number;
569
+ destIndex?: number;
570
+ artifactPath?: string;
571
+ }
558
572
  /**
559
573
  * `/PieceInfo` private application data (ISO 32000 §14.5). One job family
560
574
  * serves both levels: `pageObjectNumber` present → the page's `/PieceInfo`,
@@ -723,7 +737,7 @@ interface AttachmentFileWorkerPayload {
723
737
  interface LayerArtifactFileWorkerPayload {
724
738
  path: string;
725
739
  }
726
- type WorkerRequest = OpenWorkerRequest | MetadataReadWorkerRequest | MetadataUpdateWorkerRequest | ActionsReadWorkerRequest | AnnotationsListRawAllWorkerRequest | AnnotationsListRawPageWorkerRequest | AnnotationsListFullPageWorkerRequest | AnnotationsRenderAppearancesWorkerRequest | AnnotationsRenderAppearancesEncodedWorkerRequest | AnnotationsCreateWorkerRequest | AnnotationsUpdateWorkerRequest | AnnotationsDeleteWorkerRequest | AnnotationsMoveWorkerRequest | FormsListWorkerRequest | FormsSetValueWorkerRequest | FormsResetWorkerRequest | FormsApplyEffectsWorkerRequest | FormsExportWorkerRequest | FormsImportWorkerRequest | FormsRepairWorkerRequest | FormsCreateFieldWorkerRequest | FormsUpdateFieldWorkerRequest | FormsDeleteFieldWorkerRequest | FormsAttachWidgetWorkerRequest | FormsDetachWidgetWorkerRequest | PagesListWorkerRequest | PagesMoveWorkerRequest | PagesRotateWorkerRequest | PagesDeleteWorkerRequest | PagesFlattenWorkerRequest | RedactionApplyWorkerRequest | PagesExtractWorkerRequest | PagesInsertWorkerRequest | AttachmentsListWorkerRequest | AttachmentsReadFileWorkerRequest | AttachmentsCreateWorkerRequest | AttachmentsDeleteWorkerRequest | AnnotationsReadFileWorkerRequest | PieceInfoReadWorkerRequest | PieceInfoUpdateWorkerRequest | PieceInfoApplicationsWorkerRequest | PieceInfoClearWorkerRequest | PagesTextWorkerRequest | PagesGeometryWorkerRequest | PagesRenderWorkerRequest | PagesRenderEncodedWorkerRequest | SearchQueryWorkerRequest | DocumentSaveBufferWorkerRequest | DocumentSaveFileWorkerRequest | DocumentSaveLayerBufferWorkerRequest | DocumentProbeSecurityFileWorkerRequest | DocumentRenderPageFileWorkerRequest | DocumentRenderPageFileEncodedWorkerRequest | DocumentCheckPasswordPermissionsWorkerRequest | FontsRegisterWorkerRequest | FontsAddFallbackWorkerRequest | FontsClearFallbacksWorkerRequest | FontsClearWorkerRequest | CloseWorkerRequest | LayerCloseWorkerRequest | AbortWorkerRequest | ShutdownWorkerRequest;
740
+ type WorkerRequest = OpenWorkerRequest | MetadataReadWorkerRequest | MetadataUpdateWorkerRequest | ActionsReadWorkerRequest | AnnotationsListRawAllWorkerRequest | AnnotationsListRawPageWorkerRequest | AnnotationsListFullPageWorkerRequest | AnnotationsRenderAppearancesWorkerRequest | AnnotationsRenderAppearancesEncodedWorkerRequest | AnnotationsCreateWorkerRequest | AnnotationsUpdateWorkerRequest | AnnotationsDeleteWorkerRequest | AnnotationsMoveWorkerRequest | FormsListWorkerRequest | FormsSetValueWorkerRequest | FormsResetWorkerRequest | FormsApplyEffectsWorkerRequest | FormsExportWorkerRequest | FormsImportWorkerRequest | FormsRepairWorkerRequest | FormsCreateFieldWorkerRequest | FormsUpdateFieldWorkerRequest | FormsDeleteFieldWorkerRequest | FormsAttachWidgetWorkerRequest | FormsDetachWidgetWorkerRequest | PagesListWorkerRequest | PagesMoveWorkerRequest | PagesRotateWorkerRequest | PagesDeleteWorkerRequest | PagesFlattenWorkerRequest | RedactionApplyWorkerRequest | PagesExtractWorkerRequest | PagesInsertWorkerRequest | PagesInsertBlankWorkerRequest | AttachmentsListWorkerRequest | AttachmentsReadFileWorkerRequest | AttachmentsCreateWorkerRequest | AttachmentsDeleteWorkerRequest | AnnotationsReadFileWorkerRequest | PieceInfoReadWorkerRequest | PieceInfoUpdateWorkerRequest | PieceInfoApplicationsWorkerRequest | PieceInfoClearWorkerRequest | PagesTextWorkerRequest | PagesGeometryWorkerRequest | PagesRenderWorkerRequest | PagesRenderEncodedWorkerRequest | SearchQueryWorkerRequest | DocumentSaveBufferWorkerRequest | DocumentSaveFileWorkerRequest | DocumentSaveLayerBufferWorkerRequest | DocumentProbeSecurityFileWorkerRequest | DocumentRenderPageFileWorkerRequest | DocumentRenderPageFileEncodedWorkerRequest | DocumentCheckPasswordPermissionsWorkerRequest | FontsRegisterWorkerRequest | FontsAddFallbackWorkerRequest | FontsClearFallbacksWorkerRequest | FontsClearWorkerRequest | CloseWorkerRequest | LayerCloseWorkerRequest | AbortWorkerRequest | ShutdownWorkerRequest;
727
741
  type WorkerResultPayload = {
728
742
  tag: 'open';
729
743
  docId: string;
@@ -887,6 +901,11 @@ type WorkerResultPayload = {
887
901
  result: PageInsertResult;
888
902
  artifact?: LayerArtifactWorkerPayload;
889
903
  artifactFile?: LayerArtifactFileWorkerPayload;
904
+ } | {
905
+ tag: 'pages.insertBlank';
906
+ result: PageInsertResult;
907
+ artifact?: LayerArtifactWorkerPayload;
908
+ artifactFile?: LayerArtifactFileWorkerPayload;
890
909
  } | {
891
910
  tag: 'pieceInfo.read';
892
911
  snapshot: PieceInfoSnapshot | null;
@@ -1077,5 +1096,5 @@ declare const EMPTY_TRANSFER: readonly Transferable[];
1077
1096
  */
1078
1097
  declare function wirePack<P>(payload: P, transfer?: readonly Transferable[]): WirePack<P>;
1079
1098
  //#endregion
1080
- export { ANNOTATION_SUBTYPES, AbortError, type AbortWorkerRequest, type AbortableExecutor, AbortablePromise, type ActionReadBudget, type ActionsReadWorkerRequest, type AnnotationActor, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceManifest, type AnnotationAppearanceManifestEntry, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesEncodedResultWire, type AnnotationAppearancesQuery, type AnnotationAppearancesResult, type AnnotationBase, type AnnotationBorderStyle, type AnnotationCreateResult, type AnnotationDTO, type AnnotationDeleteResult, type AnnotationDraft, type AnnotationDraftBase, type AnnotationFlags, 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 AnnotationsCreateWorkerRequest, type AnnotationsDeleteWorkerRequest, type AnnotationsListFullPageWorkerRequest, type AnnotationsListRawAllWorkerRequest, type AnnotationsListRawPageWorkerRequest, type AnnotationsMoveWorkerRequest, type AnnotationsReadFileWorkerRequest, type AnnotationsRenderAppearancesEncodedWorkerRequest, type AnnotationsRenderAppearancesWorkerRequest, type AnnotationsUpdateWorkerRequest, type AppearanceAction, type AppearanceImpact, type AppearanceOutcome, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentFileWorkerPayload, type AttachmentsCache, type AttachmentsCreateWorkerRequest, type AttachmentsDeleteWorkerRequest, type AttachmentsListWorkerRequest, type AttachmentsReadFileWorkerRequest, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, CONTINUOUS_RENDER_POLICY, type CacheDelta, type CachePins, type CalloutLine, type CaretAnnotationDTO, type CaretDraft, type CaretIntent, type CaretPatch, type CdnAccessInfo, type CdnAdapter, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type CircleAnnotationDTO, type CircleDraft, type CirclePatch, type CloseWorkerRequest, type CollabAction, type CollabEntity, type CollabFilter, type CollabTarget, type Color, type ColorStyleDraftFields, type ColorStyleFields, type ColorStylePatchFields, type ComboBoxFieldDTO, type ComboBoxFieldDraft, type ComboBoxFieldPatch, DEFAULT_PDF_SAVE_MODE, type DTOOfKind, type DocCapability, type DocumentAccessInfo, type DocumentAccessReason, type DocumentActionsService, type DocumentActionsSnapshot, type DocumentAnnotationsService, type DocumentAttachmentsService, type DocumentCapabilities, type DocumentCheckPasswordPermissionsWorkerRequest, type DocumentEncryptionState, type DocumentEvent, type DocumentEventInit, type DocumentEventStream, type DocumentEventType, type DocumentFormsService, type DocumentHandle, type IdentityClaims as DocumentIdentity, type IdentityClaims, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DocumentOpenMode, type DocumentPagesService, type DocumentProbeSecurityFileWorkerRequest, type DocumentRedactionService, type DocumentRenderPageFileEncodedWorkerRequest, type DocumentRenderPageFileWorkerRequest, type DocumentRenderService, type DocumentSaveBufferWorkerRequest, type DocumentSaveFileWorkerRequest, type DocumentSaveLayerBufferWorkerRequest, type DocumentSearchService, type DocumentSecurityProbeInfo, type DocumentSecurityService, type DocumentSecurityState, type DocumentUnlockInput, type DocumentUnlockResult, type DraftOfKind, EMPTY_TRANSFER, type EmbeddedFileItem, type EmbeddedFileRef, type EncodedAppearanceWire, type EncodedImageWire, type Engine, EngineError, EngineErrorCode, type EngineErrorOptions, type EngineFactory, type EngineRenderPolicy, type EventOrigin, 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 FontService, type FontSpec, type FontsAddFallbackWorkerRequest, type FontsClearFallbacksWorkerRequest, type FontsClearWorkerRequest, type FontsRegisterWorkerRequest, 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 FormRepairOptions, type FormRepairResult, type FormSetValueResult, type FormSnapshot, type FormValueEntry, type FormWidgetLinkResult, type FormWidgetRef, type FormsApplyEffectsWorkerRequest, type FormsAttachWidgetWorkerRequest, type FormsCreateFieldWorkerRequest, type FormsDeleteFieldWorkerRequest, type FormsDetachWidgetWorkerRequest, type FormsExportWorkerRequest, type FormsImportWorkerRequest, type FormsListWorkerRequest, type FormsRepairWorkerRequest, type FormsResetWorkerRequest, type FormsSetValueWorkerRequest, type FormsUpdateFieldWorkerRequest, type FreeTextAnnotationDTO, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotationDTO, type HighlightDraft, type HighlightPatch, type InkAnnotationDTO, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type LayerArtifactFileWorkerPayload, type LayerArtifactWorkerPayload, type LayerCloseWorkerRequest, type LayerOpenSource, 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 MetadataReadWorkerRequest, type MetadataService, type MetadataUpdateResult, type MetadataUpdateWorkerRequest, MissingIdentity, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NormalizedDraft, type NormalizedPatch, type NoteIcon, type OpenFatMemoryWorkerRequest, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenLayerFileBaseWorkerRequest, type OpenLayerMemoryBaseWorkerRequest, type OpenOptions, type OpenWorkerRequest, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, type PageAnnotationsService, type PageBoxes, type PageDeleteInput, type PageDeleteResult, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageGeometryGlyph, type PageGeometryRun, type PageGeometryService, type PageGeometrySnapshot, type PageHandle, type PageImageBlobSource, type PageImageHandle, type PageImageObjectUrl, type PageImageOptions, type PageImageResult, type PageImageSource, type PageInsertResult, type PageLayout, type PageListSnapshot, type PageMoveCache, type PageMoveInput, type PageMoveResult, type PageNetworkRenderFormat, type PageObjectNumber, type PageRaster, type PageRenderBackground, type PageRenderEncodedFormat, type PageRenderFormat, type PageRenderOptions, type PageRenderQuery, type PageRenderService, type PageRenderTarget, type PageRenderViewport, type PageRotateInput, type PageRotateResult, type PageRotation, type PageState, type PageStructureCache, type PageTextLayout, type PageTextService, type PageTextSnapshot, type PagesDeleteWorkerRequest, type PagesExtractWorkerRequest, type PagesFlattenWorkerRequest, type PagesGeometryWorkerRequest, type PagesInsertWorkerRequest, type PagesListWorkerRequest, type PagesMoveWorkerRequest, type PagesRenderEncodedWorkerRequest, type PagesRenderWorkerRequest, type PagesRotateWorkerRequest, type PagesTextWorkerRequest, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PasswordPrompt, type PatchOfKind, type PdfActionNode, type PdfActionTree, type PdfActionType, type PdfActionWarning, type PdfAnnotationActions, PdfAnnotationSubtypeCode, type PdfBits, type PdfDestination, type PdfFieldActions, type PdfLinkTarget, type PdfLinkTargetWritable, type PdfOriginSize, type PdfPageActions, type PdfPermissionAdvisory, type PdfPermissionInfo, type PdfPoint, type PdfQuad, type PdfQuadCorners, type PdfRect, type PdfRectDifferences, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfTextSegment, PermissionDenied, type PieceInfoApplicationsWorkerRequest, type PieceInfoClearWorkerRequest, type PieceInfoEntry, type PieceInfoPatch, type PieceInfoPatchValue, type PieceInfoReadWorkerRequest, type PieceInfoService, type PieceInfoSnapshot, type PieceInfoUpdateWorkerRequest, 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 RedactionApplyWorkerRequest, type RefetchReason, type RenderEncode, type ResourceRef, 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 SearchQueryWorkerRequest, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchSlice, type SearchSliceBudget, type SearchSnippet, type SerializedEngineError, type ShapeAnnotationFields, type ShapeDraftFields, type ShapePatchFields, type ShutdownWorkerRequest, 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 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 WeakAnnotationEditSession, 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 WirePack, type WireResource, type WireResourceMap, type WorkerJobId, type WorkerLifecycleMessage, type WorkerRequest, type WorkerResponse, type WorkerResultPayload, advisoryFromPdfBits, appearanceImpactOf, boundaryTextOffset, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, deserializeError, encodeFieldRefKey, encodeStableIdKey, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isAbortError, isRotatedGeometryRun, isValidPageObjectNumber, knownWeakAnnotationState, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parseScope, passwordPromptFromState, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, permissionInfoFromProbe, permissionInfoWithAdvisory, refKey, resolveBinarySource, revisionTokensEqual, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, securityStateFromHead, securityStateFromProbe, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, snapAppearanceScale, snapFullPageViewport, snapTileScale, sniffBinaryMetadata, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wirePack, wordAt, wordBefore };
1099
+ export { ANNOTATION_SUBTYPES, AbortError, type AbortWorkerRequest, type AbortableExecutor, AbortablePromise, type ActionReadBudget, type ActionsReadWorkerRequest, type AnnotationActor, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceManifest, type AnnotationAppearanceManifestEntry, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesEncodedResultWire, type AnnotationAppearancesQuery, type AnnotationAppearancesResult, type AnnotationBase, type AnnotationBorderStyle, type AnnotationCreateResult, type AnnotationDTO, type AnnotationDeleteResult, type AnnotationDraft, type AnnotationDraftBase, type AnnotationFlags, 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 AnnotationsCreateWorkerRequest, type AnnotationsDeleteWorkerRequest, type AnnotationsListFullPageWorkerRequest, type AnnotationsListRawAllWorkerRequest, type AnnotationsListRawPageWorkerRequest, type AnnotationsMoveWorkerRequest, type AnnotationsReadFileWorkerRequest, type AnnotationsRenderAppearancesEncodedWorkerRequest, type AnnotationsRenderAppearancesWorkerRequest, type AnnotationsUpdateWorkerRequest, type AppearanceAction, type AppearanceImpact, type AppearanceOutcome, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentFileWorkerPayload, type AttachmentsCache, type AttachmentsCreateWorkerRequest, type AttachmentsDeleteWorkerRequest, type AttachmentsListWorkerRequest, type AttachmentsReadFileWorkerRequest, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, CONTINUOUS_RENDER_POLICY, type CacheDelta, type CachePins, type CalloutLine, type CaretAnnotationDTO, type CaretDraft, type CaretIntent, type CaretPatch, type CdnAccessInfo, type CdnAdapter, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type CircleAnnotationDTO, type CircleDraft, type CirclePatch, type CloseWorkerRequest, type CollabAction, type CollabEntity, type CollabFilter, type CollabTarget, type Color, type ColorStyleDraftFields, type ColorStyleFields, type ColorStylePatchFields, type ComboBoxFieldDTO, type ComboBoxFieldDraft, type ComboBoxFieldPatch, DEFAULT_PDF_SAVE_MODE, type DTOOfKind, type DocCapability, type DocumentAccessInfo, type DocumentAccessReason, type DocumentActionsService, type DocumentActionsSnapshot, type DocumentAnnotationsService, type DocumentAttachmentsService, type DocumentCapabilities, type DocumentCheckPasswordPermissionsWorkerRequest, type DocumentEncryptionState, type DocumentEvent, type DocumentEventInit, type DocumentEventStream, type DocumentEventType, type DocumentFormsService, type DocumentHandle, type IdentityClaims as DocumentIdentity, type IdentityClaims, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DocumentOpenMode, type DocumentPagesService, type DocumentProbeSecurityFileWorkerRequest, type DocumentRedactionService, type DocumentRenderPageFileEncodedWorkerRequest, type DocumentRenderPageFileWorkerRequest, type DocumentRenderService, type DocumentSaveBufferWorkerRequest, type DocumentSaveFileWorkerRequest, type DocumentSaveLayerBufferWorkerRequest, type DocumentSearchService, type DocumentSecurityProbeInfo, type DocumentSecurityService, type DocumentSecurityState, type DocumentUnlockInput, type DocumentUnlockResult, type DraftOfKind, EMPTY_TRANSFER, type EmbeddedFileItem, type EmbeddedFileRef, type EncodedAppearanceWire, type EncodedImageWire, type Engine, EngineError, EngineErrorCode, type EngineErrorOptions, type EngineFactory, type EngineRenderPolicy, type EventOrigin, 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 FontService, type FontSpec, type FontsAddFallbackWorkerRequest, type FontsClearFallbacksWorkerRequest, type FontsClearWorkerRequest, type FontsRegisterWorkerRequest, 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 FormRepairOptions, type FormRepairResult, type FormSetValueResult, type FormSnapshot, type FormValueEntry, type FormWidgetLinkResult, type FormWidgetRef, type FormsApplyEffectsWorkerRequest, type FormsAttachWidgetWorkerRequest, type FormsCreateFieldWorkerRequest, type FormsDeleteFieldWorkerRequest, type FormsDetachWidgetWorkerRequest, type FormsExportWorkerRequest, type FormsImportWorkerRequest, type FormsListWorkerRequest, type FormsRepairWorkerRequest, type FormsResetWorkerRequest, type FormsSetValueWorkerRequest, type FormsUpdateFieldWorkerRequest, type FreeTextAnnotationDTO, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotationDTO, type HighlightDraft, type HighlightPatch, type InkAnnotationDTO, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type LayerArtifactFileWorkerPayload, type LayerArtifactWorkerPayload, type LayerCloseWorkerRequest, type LayerOpenSource, 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 MetadataReadWorkerRequest, type MetadataService, type MetadataUpdateResult, type MetadataUpdateWorkerRequest, MissingIdentity, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NormalizedDraft, type NormalizedPatch, type NoteIcon, type OpenFatMemoryWorkerRequest, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenLayerFileBaseWorkerRequest, type OpenLayerMemoryBaseWorkerRequest, type OpenOptions, type OpenWorkerRequest, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, type PageAnnotationsService, type PageBoxes, type PageDeleteInput, type PageDeleteResult, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageGeometryGlyph, type PageGeometryRun, type PageGeometryService, type PageGeometrySnapshot, type PageHandle, 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 PageNetworkRenderFormat, type PageObjectNumber, type PageRaster, type PageRenderBackground, type PageRenderEncodedFormat, type PageRenderFormat, type PageRenderOptions, type PageRenderQuery, type PageRenderService, type PageRenderTarget, type PageRenderViewport, type PageRotateInput, type PageRotateResult, type PageRotation, type PageState, type PageStructureCache, type PageTextLayout, type PageTextService, type PageTextSnapshot, type PagesDeleteWorkerRequest, type PagesExtractWorkerRequest, type PagesFlattenWorkerRequest, type PagesGeometryWorkerRequest, type PagesInsertBlankWorkerRequest, type PagesInsertWorkerRequest, type PagesListWorkerRequest, type PagesMoveWorkerRequest, type PagesRenderEncodedWorkerRequest, type PagesRenderWorkerRequest, type PagesRotateWorkerRequest, type PagesTextWorkerRequest, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PasswordPrompt, type PatchOfKind, type PdfActionNode, type PdfActionTree, type PdfActionType, type PdfActionWarning, type PdfAnnotationActions, PdfAnnotationSubtypeCode, type PdfBits, type PdfDestination, type PdfFieldActions, type PdfLinkTarget, type PdfLinkTargetWritable, type PdfOriginSize, type PdfPageActions, type PdfPermissionAdvisory, type PdfPermissionInfo, type PdfPoint, type PdfQuad, type PdfQuadCorners, type PdfRect, type PdfRectDifferences, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfTextSegment, PermissionDenied, type PieceInfoApplicationsWorkerRequest, type PieceInfoClearWorkerRequest, type PieceInfoEntry, type PieceInfoPatch, type PieceInfoPatchValue, type PieceInfoReadWorkerRequest, type PieceInfoService, type PieceInfoSnapshot, type PieceInfoUpdateWorkerRequest, 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 RedactionApplyWorkerRequest, type RefetchReason, type RenderEncode, type ResourceRef, 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 SearchQueryWorkerRequest, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchSlice, type SearchSliceBudget, type SearchSnippet, type SerializedEngineError, type ShapeAnnotationFields, type ShapeDraftFields, type ShapePatchFields, type ShutdownWorkerRequest, 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 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 WeakAnnotationEditSession, 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 WirePack, type WireResource, type WireResourceMap, type WorkerJobId, type WorkerLifecycleMessage, type WorkerRequest, type WorkerResponse, type WorkerResultPayload, advisoryFromPdfBits, appearanceImpactOf, boundaryTextOffset, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, deserializeError, encodeFieldRefKey, encodeStableIdKey, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isAbortError, isRotatedGeometryRun, isValidPageObjectNumber, knownWeakAnnotationState, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parseScope, passwordPromptFromState, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, permissionInfoFromProbe, permissionInfoWithAdvisory, refKey, resolveBinarySource, revisionTokensEqual, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, securityStateFromHead, securityStateFromProbe, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, snapAppearanceScale, snapFullPageViewport, snapTileScale, sniffBinaryMetadata, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wirePack, wordAt, wordBefore };
1081
1100
  //# sourceMappingURL=runtime.d.cts.map
package/dist/runtime.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { $a as ResourceRef, $c as PdfQuad, $i as invalidatesWeakIndexRefs, $n as searchRectsForRange, $o as PageRenderQuery, $r as FormDataFormat, $s as checkSetGroup, Aa as ColorStyleFields, Ac as AnnotationReplyType, Ai as ListBoxFieldDTO, An as HighlightDraft, Ao as AnnotationAppearanceManifest, Ar as PdfTextSegment, As as pdfRectWidth, At as LineDraft, B as StampAnnotationDTO, Ba as AttachmentFileInfo, Bc as PdfRectDifferences, Bi as decodeFieldRefKey, Bn as PageFlattenStatus, Bo as knownWeakAnnotationState, Br as FormDataExport, Bs as OpenInputLayerSource, Bt as PolygonPatch, C as RedactDraft, Ca as AttachmentsCache, Cc as AnnotationRef, Ci as ComboBoxFieldDTO, Cn as UnderlineAnnotationDTO, Co as FontSpec, Cr as SearchMode, Cs as pdfQuadBounds, Ct as LinkAnnotationDTO, Da as FileAttachmentWireDraft, Dc as isValidPageObjectNumber, Di as FormFieldFlags, Do as AnnotationAppearanceImage, Dr as SearchSliceBudget, Ds as pdfRectHeight, E as WidgetDraft, Ea as FileAttachmentIcon, Ec as PageObjectNumber, Ei as FormFieldFamily, Eo as CachePins, Er as SearchSlice, Es as pdfRectFromOriginSize, Fa as GeometryStyleDraftFields, Fc as FreeTextIntent, Fi as ToggleFieldWidget, Fn as RedactionApplyScope, Fo as AnnotationAppearancesQuery, Fr as expandTextRangeToLine, Fs as MetadataPatch, Ft as PolylineAnnotationDTO, Ga as NormalizedPatch, Gc as StandardFont, Gi as AnnotationUpdateResult, Gn as PageRotateResult, Go as PageImageResult, Gr as FormRepairResult, Gs as caps, Gt as VertexPatchFields, H as StampFit, Ha as EmbeddedFileItem, Hc as Rect, Hi as AnnotationCreateResult, Hn as PageInsertResult, Ho as PageImageHandle, Hr as FormFieldDeleteResult, Hs as OpenInputToken, Ht as PolygonDraft, Ia as GeometryStyleFields, Ic as InkIntent, Ii as UnknownFieldDTO, In as RedactionApplyStatus, Io as AnnotationAppearancesResult, Ir as expandTextRangeToWord, Is as OpenInput, It as PolylineDraft, J as TextPatch, Ja as BinaryMetadata, Jc as CalloutLine, Ji as AppearanceOutcome, Jn as PageMoveResult, Jo as PageRaster, Jr as FormEffect, Js as pdfPermissions, Ka as normalizeAnnotationDraft, Kc as StrikeoutIntent, Ki as AppearanceAction, Kn as PageRotateInput, Ko as PageImageSource, Kr as FormSetValueResult, Ks as collab, La as GeometryStylePatchFields, Lc as LineEnding, Li as FormValueEntry, Ln as PageFlattenInput, Lo as PageState, Lr as textGlyphAt, Ls as OpenInputById, M as FileAttachmentPatch, Ma as FilledStyleDraftFields, Mc as CaretIntent, Mi as RadioFieldDTO, Mn as MetadataUpdateResult, Mo as AnnotationAppearanceMode, Mr as TextLayoutGlyph, Ms as PageBoxes, N as FileAttachmentAnnotationDTO, Na as FilledStyleFields, Nc as Color, Ni as SignatureFieldDTO, Nn as RedactionApplyItemResult, No as AnnotationAppearanceRaster, Nr as TextLayoutRun, Ns as PageLayout, Oa as WireAttachmentFile, Oc as AnnotationBorderStyle, Oi as FormFieldOption, On as HighlightPatch, Oo as AnnotationAppearanceImageOptions, Or as SearchSnippet, Os as pdfRectSize, Ot as LinePatch, Pa as FilledStylePatchFields, Pc as FreeTextFont, Pi as TextFieldDTO, Pn as RedactionApplyResult, Po as AnnotationAppearanceRenderOptions, Pr as buildPageTextLayout, Ps as PageRotation, Pt as PolylinePatch, Qa as BinarySource, Qc as PdfPoint, Qi as changesAnnotationList, Qn as searchContentEpoch, Qo as PageRenderOptions, Qr as FormFieldDisplay, Qs as checkCollab, R as StampPatch, Ra as AttachmentContent, Rc as LineEndings, Ri as FormFieldRef, Rn as PageFlattenItemResult, Ro as UNKNOWN_WEAK_ANNOTATION_STATE, Rr as textGlyphQuad, Rs as OpenInputBytes, S as RedactAnnotationDTO, Sa as AttachmentDeleteResult, Sc as AnnotationDraftBase, Si as CheckboxFieldDTO, Sn as UnderlinePatch, So as FontKey, Sr as SearchMatch, Ss as normalizePdfRect, St as LinkPatch, T as WidgetAnnotationDTO, Ta as FileAttachmentDraft, Tc as revisionTokensEqual, Ti as FormFieldDTO, To as PdfSaveMode, Tr as SearchRequest, Ts as pdfQuadFromCorners, U as StampWireDraft, Ua as EmbeddedFileRef, Uc as Rotation, Ui as AnnotationDeleteResult, Un as PageDeleteResult, Uo as PageImageObjectUrl, Ur as FormFieldUpdateResult, Us as OpenOptions, Ut as VertexAnnotationFields, V as StampDraft, Va as AttachmentFileSource, Vc as Point, Vi as encodeFieldRefKey, Vn as PageFlattenUsage, Vo as PageImageBlobSource, Vr as FormFieldCreateResult, Vs as OpenInputShare, Vt as PolygonAnnotationDTO, Wa as NormalizedDraft, Wc as Size, Wi as AnnotationMoveResult, Wn as PageDeleteInput, Wo as PageImageOptions, Wr as FormImportResult, Ws as TokenSource, Wt as VertexDraftFields, X as NoteIcon, Xa as sniffBinaryMetadata, Xc as InkStroke, Xi as semanticEqual, Xn as PageMoveInput, Xo as PageRenderEncodedFormat, Xr as FormEffectStatus, Xs as checkAnyCapability, Xt as SquareAnnotationDTO, Y as TextAnnotationDTO, Ya as BinaryMimeType, Yc as InkList, Yi as appearanceImpactOf, Yn as PageStructureCache, Yo as PageRenderBackground, Yr as FormEffectResult, Ys as CollabTarget, Yt as SquarePatch, Z as TextDraft, Za as BinaryPayload, Zc as LinePoints, Zi as AnnotationMutationKind, Zn as canonicalSearchQuery, Zo as PageRenderFormat, Zr as FormEffectsResult, Zs as checkCapability, Zt as SquareDraft, _a as AnnotationKindModule, _c as ParsedCollab, _i as WidgetAppearance, _n as SquigglyAnnotationDTO, _o as SerializedEngineError, _r as FoldedText, _s as charMapViolation, aa as PdfLinkTarget, ac as PermissionDenied, ai as RadioFieldPatch, al as NamedJavaScriptAction, an as ShapeDraftFields, ao as PDF_CODE_TO_SUBTYPE, ar as SearchQueryIssue, as as PageGeometrySnapshot, b as UnsupportedAnnotationDTO, ba as PatchOfKind, bc as ParsedWildcard, bi as WidgetStyleFields, bo as EngineErrorCode, br as foldText, bs as PdfOriginSize, c as AnnotationKind, ca as DocumentManifest, cc as PDF_BITS, ci as ComboBoxFieldDraft, cl as PdfActionType, co as subtypeFromCode, cr as SearchRegexValidation, cs as UprightGeometryRun, ct as FreeTextAnnotationDTO, d as AnnotationSubtypeOfKind, da as LayerScopes, dc as CollabAction, di as ListBoxFieldDraft, dl as PdfFieldActions, dn as StrikeoutAnnotationDTO, do as AnnotationIdentityQuality, dr as validateSearchRegex, ds as isRotatedGeometryRun, ea as shiftsExistingAnnotationIndices, ec as expandRawScope, ei as FormFieldValue, el as PdfRect, eo as WireResource, er as searchSegmentsForRange, es as PageRenderTarget, fa as AnnotationRelationKind, fc as CollabEntity, fi as RadioFieldDraft, fl as PdfPageActions, fn as StrikeoutDraft, fo as AnnotationStableId, fr as foldOptionsFor, fs as PageTextSnapshot, ga as refKey, gc as ParsedCapability, gi as FormSnapshot, gn as SquigglyPatch, go as EngineErrorOptions, gr as FoldOptions, gs as charBoundaryAtTextOffset, ha as classifyRelation, hc as IdentityClaims, hi as FormKind, ho as EngineError, hr as wordBefore, hs as boundaryTextOffset, ht as InkDraft, i as AnnotationDTO, ia as MutationMeta, ic as MissingIdentity, ii as ListBoxFieldPatch, il as DocumentActionsSnapshot, in as ShapeAnnotationFields, io as AnnotationSubtype, ir as SEARCH_REGEX_MAX_LENGTH, is as PageGeometryRun, ja as ColorStylePatchFields, jc as BlendMode, ji as PushButtonFieldDTO, jn as MetadataCache, jo as AnnotationAppearanceManifestEntry, jr as TextLayoutFrame, js as PageListSnapshot, ka as ColorStyleDraftFields, kc as AnnotationFlags, ki as FormFieldOrigin, kn as HighlightAnnotationDTO, ko as AnnotationAppearanceImagesResult, kr as PageTextLayout, ks as pdfRectToOriginSize, kt as LineAnnotationDTO, l as AnnotationPatch, la as ManifestPage, lc as decodePdfBits, li as FormFieldDraft, ll as PdfActionWarning, lo as AnnotationPatchBase, lr as matchRegex, ls as glyphLooseBounds, lt as FreeTextDraft, m as WireAnnotationPatch, ma as buildThreads, mc as DocCapability, mi as WidgetPlacement, ml as DocumentMetadataTrapped, mo as encodeStableIdKey, mr as wordAt, ms as CharMapAnchor, mt as InkAnnotationDTO, n as AnnotationListSnapshotAllPages, na as RefetchReason, nc as filterMatches, ni as ComboBoxFieldPatch, nl as PdfSize, nn as CircleAnnotationDTO, no as resolveBinarySource, nr as buildSnippet, ns as createPageImageHandle, nt as CaretAnnotationDTO, o as AnnotationDraft, oa as PdfLinkTargetWritable, oc as parseScope, oi as TextFieldPatch, ol as PdfActionNode, on as ShapePatchFields, oo as PDF_SUBTYPE_TO_CODE, or as SearchQueryValidation, os as RotatedGeometryGlyph, p as WireAnnotationDraft, pa as AnnotationThread, pc as CollabFilter, pi as TextFieldDraft, pl as DocumentMetadata, po as decodeStableIdKey, pr as matchLiteral, ps as CharBoundaryBias, pt as InkPatch, qa as normalizeAnnotationPatch, qc as TextAlignment, qi as AppearanceImpact, qn as PageMoveCache, qo as PageNetworkRenderFormat, qr as FormWidgetLinkResult, qs as materializePdfPermissions, ra as CacheDelta, rc as InvalidScope, ri as FormFieldPatch, rl as ActionReadBudget, rn as CircleDraft, ro as ANNOTATION_SUBTYPES, rr as matchPageText, rs as PageGeometryGlyph, rt as CaretDraft, sa as PdfDestination, sc as validateScopeArray, si as CheckboxFieldDraft, sl as PdfActionTree, so as PdfAnnotationSubtypeCode, sr as SearchRegexIssue, ss as RotatedGeometryRun, st as FreeTextPatch, t as AnnotationListPageSnapshot, ta as AnnotationListMutationMeta, tc as expandedCapabilities, ti as CheckboxFieldPatch, tl as PdfRotation, tn as CirclePatch, to as WireResourceMap, tr as SEARCH_SNIPPET_CONTEXT, ts as PageRenderViewport, tt as CaretPatch, ua as LayerScopePlane, uc as AnnotationActor, ui as FormFieldOptionInput, ul as PdfAnnotationActions, un as StrikeoutPatch, uo as AnnotationBase, ur as validateSearchQuery, us as glyphLooseQuad, v as UnsupportedPatch, va as DTOOfKind, vc as ParsedScope, vn as SquigglyDraft, vo as deserializeError, vr as SEARCH_FOLD_VERSION, vs as charRangeForTextOffsets, w as WidgetPatch, wa as normalizeAttachmentFileSource, wc as RevisionToken, wi as FormFieldBase, wn as UnderlineDraft, wo as DEFAULT_PDF_SAVE_MODE, wr as SearchQuery, ws as pdfQuadCorners, wt as LinkDraft, x as RedactPatch, xa as AttachmentCreateResult, xc as PdfBits, xi as WidgetStylePatchFields, xo as FontHandle, xr as toOriginalRange, xs as PdfQuadCorners, y as UnsupportedDraft, ya as DraftOfKind, yc as ParsedVirtual, yi as WidgetStyleDraftFields, yo as serializeError, yr as SearchMatchRange, ys as sliceTextByChars, z as StampWirePatch, za as AttachmentFileBase, zc as NO_ANNOTATION_FLAGS, zi as FormWidgetRef, zn as PageFlattenResult, zo as WeakAnnotationState, zr as textSegmentsForRange, zs as OpenInputLayerBytes } from "./AnnotationListSnapshot-CHjkcIaL.js";
2
- import { a as DocumentEncryptionState, c as DocumentSecurityState, d as PdfPermissionAdvisory, f as PdfPermissionInfo, g as AbortablePromise, h as AbortableExecutor, i as DocumentAccessReason, l as DocumentUnlockInput, m as passwordPromptFromState, n as CdnAdapter, o as DocumentOpenMode, p as PasswordPrompt, r as DocumentAccessInfo, s as DocumentSecurityService, t as CdnAccessInfo, u as DocumentUnlockResult } from "./DocumentSecurityService-CrxGktMI.js";
3
- import { A as DocumentPagesService, C as CONTINUOUS_RENDER_POLICY, D as snapFullPageViewport, E as snapAppearanceScale, F as WeakAnnotationEditSession, I as DocumentActionsService, M as FormRepairOptions, N as DocumentAttachmentsService, O as snapTileScale, P as DocumentAnnotationsService, S as DocumentSearchService, T as EngineRenderPolicy, _ as PageTextService, a as DocumentHandle, b as PageAnnotationsService, c as DocumentEventInit, d as PageHandle, f as PieceInfoService, g as PieceInfoSnapshot, h as PieceInfoPatchValue, i as DocumentCapabilities, j as DocumentFormsService, k as DocumentRedactionService, l as DocumentEventType, m as PieceInfoPatch, n as EngineFactory, o as DocumentEventStream, p as PieceInfoEntry, r as FontService, s as DocumentEvent, t as Engine, u as EventOrigin, v as PageRenderService, w as DocumentRenderService, x as MetadataService, y as PageGeometryService } from "./Engine-BE6r06QI.js";
1
+ import { $a as BinaryPayload, $c as LinePoints, $i as AnnotationMutationKind, $n as canonicalSearchQuery, $o as PageRenderFormat, $r as FormEffectsResult, $s as checkCapability, Aa as WireAttachmentFile, Ac as AnnotationBorderStyle, Ai as FormFieldOption, An as HighlightDraft, Ao as AnnotationAppearanceImageOptions, Ar as SearchSnippet, As as pdfRectSize, At as LineDraft, B as StampAnnotationDTO, Ba as AttachmentContent, Bc as LineEndings, Bi as FormFieldRef, Bn as PageFlattenStatus, Bo as UNKNOWN_WEAK_ANNOTATION_STATE, Br as textGlyphQuad, Bs as OpenInputBytes, Bt as PolygonPatch, C as RedactDraft, Ca as AttachmentCreateResult, Cc as PdfBits, Ci as WidgetStylePatchFields, Cn as UnderlineAnnotationDTO, Co as FontHandle, Cr as toOriginalRange, Cs as PdfQuadCorners, Ct as LinkAnnotationDTO, Da as FileAttachmentDraft, Dc as revisionTokensEqual, Di as FormFieldDTO, Do as PdfSaveMode, Dr as SearchRequest, Ds as pdfQuadFromCorners, E as WidgetDraft, Ea as normalizeAttachmentFileSource, Ec as RevisionToken, Ei as FormFieldBase, Eo as DEFAULT_PDF_SAVE_MODE, Er as SearchQuery, Es as pdfQuadCorners, Fa as FilledStyleFields, Fc as Color, Fi as SignatureFieldDTO, Fn as RedactionApplyScope, Fo as AnnotationAppearanceRaster, Fr as TextLayoutRun, Fs as PageLayout, Ft as PolylineAnnotationDTO, Ga as EmbeddedFileRef, Gc as Rotation, Gi as AnnotationDeleteResult, Gn as PageDeleteResult, Go as PageImageObjectUrl, Gr as FormFieldUpdateResult, Gs as OpenOptions, Gt as VertexPatchFields, H as StampFit, Ha as AttachmentFileInfo, Hc as PdfRectDifferences, Hi as decodeFieldRefKey, Hn as PAGE_INSERT_BLANK_MAX_COUNT, Ho as knownWeakAnnotationState, Hr as FormDataExport, Hs as OpenInputLayerSource, Ht as PolygonDraft, Ia as FilledStylePatchFields, Ic as FreeTextFont, Ii as TextFieldDTO, In as RedactionApplyStatus, Io as AnnotationAppearanceRenderOptions, Ir as buildPageTextLayout, Is as PageRotation, It as PolylineDraft, J as TextPatch, Ja as normalizeAnnotationDraft, Jc as StrikeoutIntent, Ji as AppearanceAction, Jn as PageRotateInput, Jo as PageImageSource, Jr as FormSetValueResult, Js as collab, Ka as NormalizedDraft, Kc as Size, Ki as AnnotationMoveResult, Kn as PageDeleteInput, Ko as PageImageOptions, Kr as FormImportResult, Ks as TokenSource, La as GeometryStyleDraftFields, Lc as FreeTextIntent, Li as ToggleFieldWidget, Ln as PageFlattenInput, Lo as AnnotationAppearancesQuery, Lr as expandTextRangeToLine, Ls as MetadataPatch, M as FileAttachmentPatch, Ma as ColorStyleFields, Mc as AnnotationReplyType, Mi as ListBoxFieldDTO, Mn as MetadataUpdateResult, Mo as AnnotationAppearanceManifest, Mr as PdfTextSegment, Ms as pdfRectWidth, N as FileAttachmentAnnotationDTO, Na as ColorStylePatchFields, Nc as BlendMode, Ni as PushButtonFieldDTO, Nn as RedactionApplyItemResult, No as AnnotationAppearanceManifestEntry, Nr as TextLayoutFrame, Ns as PageListSnapshot, Oa as FileAttachmentIcon, Oc as PageObjectNumber, Oi as FormFieldFamily, On as HighlightPatch, Oo as CachePins, Or as SearchSlice, Os as pdfRectFromOriginSize, Ot as LinePatch, Pa as FilledStyleDraftFields, Pc as CaretIntent, Pi as RadioFieldDTO, Pn as RedactionApplyResult, Po as AnnotationAppearanceMode, Pr as TextLayoutGlyph, Ps as PageBoxes, Pt as PolylinePatch, Qa as sniffBinaryMetadata, Qc as InkStroke, Qi as semanticEqual, Qn as PageMoveInput, Qo as PageRenderEncodedFormat, Qr as FormEffectStatus, Qs as checkAnyCapability, R as StampPatch, Ra as GeometryStyleFields, Rc as InkIntent, Ri as UnknownFieldDTO, Rn as PageFlattenItemResult, Ro as AnnotationAppearancesResult, Rr as expandTextRangeToWord, Rs as OpenInput, S as RedactAnnotationDTO, Sa as PatchOfKind, Sc as ParsedWildcard, Si as WidgetStyleFields, Sn as UnderlinePatch, So as EngineErrorCode, Sr as foldText, Ss as PdfOriginSize, St as LinkPatch, T as WidgetAnnotationDTO, Ta as AttachmentsCache, Tc as AnnotationRef, Ti as ComboBoxFieldDTO, To as FontSpec, Tr as SearchMode, Ts as pdfQuadBounds, U as StampWireDraft, Ua as AttachmentFileSource, Uc as Point, Ui as encodeFieldRefKey, Un as PageInsertBlankSpec, Uo as PageImageBlobSource, Ur as FormFieldCreateResult, Us as OpenInputShare, Ut as VertexAnnotationFields, V as StampDraft, Va as AttachmentFileBase, Vc as NO_ANNOTATION_FLAGS, Vi as FormWidgetRef, Vn as PageFlattenUsage, Vo as WeakAnnotationState, Vr as textSegmentsForRange, Vs as OpenInputLayerBytes, Vt as PolygonAnnotationDTO, Wa as EmbeddedFileItem, Wc as Rect, Wi as AnnotationCreateResult, Wn as PageInsertResult, Wo as PageImageHandle, Wr as FormFieldDeleteResult, Ws as OpenInputToken, Wt as VertexDraftFields, X as NoteIcon, Xa as BinaryMetadata, Xc as CalloutLine, Xi as AppearanceOutcome, Xn as PageMoveResult, Xo as PageRaster, Xr as FormEffect, Xs as pdfPermissions, Xt as SquareAnnotationDTO, Y as TextAnnotationDTO, Ya as normalizeAnnotationPatch, Yc as TextAlignment, Yi as AppearanceImpact, Yn as PageMoveCache, Yo as PageNetworkRenderFormat, Yr as FormWidgetLinkResult, Ys as materializePdfPermissions, Yt as SquarePatch, Z as TextDraft, Za as BinaryMimeType, Zc as InkList, Zi as appearanceImpactOf, Zn as PageStructureCache, Zo as PageRenderBackground, Zr as FormEffectResult, Zs as CollabTarget, Zt as SquareDraft, _a as classifyRelation, _c as IdentityClaims, _i as FormKind, _n as SquigglyAnnotationDTO, _o as EngineError, _r as wordBefore, _s as boundaryTextOffset, aa as CacheDelta, ac as InvalidScope, ai as FormFieldPatch, al as ActionReadBudget, an as ShapeDraftFields, ao as ANNOTATION_SUBTYPES, ar as matchPageText, as as PageGeometryGlyph, b as UnsupportedAnnotationDTO, ba as DTOOfKind, bc as ParsedScope, bo as deserializeError, br as SEARCH_FOLD_VERSION, bs as charRangeForTextOffsets, c as AnnotationKind, ca as PdfLinkTargetWritable, cc as parseScope, ci as TextFieldPatch, cl as PdfActionNode, co as PDF_SUBTYPE_TO_CODE, cr as SearchQueryValidation, cs as RotatedGeometryGlyph, ct as FreeTextAnnotationDTO, d as AnnotationSubtypeOfKind, da as ManifestPage, dc as decodePdfBits, di as FormFieldDraft, dl as PdfActionWarning, dn as StrikeoutAnnotationDTO, do as AnnotationPatchBase, dr as matchRegex, ds as glyphLooseBounds, ea as changesAnnotationList, ec as checkCollab, ei as FormFieldDisplay, el as PdfPoint, eo as BinarySource, er as searchContentEpoch, es as PageRenderOptions, fa as LayerScopePlane, fc as AnnotationActor, fi as FormFieldOptionInput, fl as PdfAnnotationActions, fn as StrikeoutDraft, fo as AnnotationBase, fr as validateSearchQuery, fs as glyphLooseQuad, ga as buildThreads, gc as DocCapability, gi as WidgetPlacement, gl as DocumentMetadataTrapped, gn as SquigglyPatch, go as encodeStableIdKey, gr as wordAt, gs as CharMapAnchor, ha as AnnotationThread, hc as CollabFilter, hi as TextFieldDraft, hl as DocumentMetadata, ho as decodeStableIdKey, hr as matchLiteral, hs as CharBoundaryBias, ht as InkDraft, i as AnnotationDTO, ia as RefetchReason, ic as filterMatches, ii as ComboBoxFieldPatch, il as PdfSize, in as ShapeAnnotationFields, io as resolveBinarySource, ir as buildSnippet, is as createPageImageHandle, ja as ColorStyleDraftFields, jc as AnnotationFlags, ji as FormFieldOrigin, jn as MetadataCache, jo as AnnotationAppearanceImagesResult, jr as PageTextLayout, js as pdfRectToOriginSize, ka as FileAttachmentWireDraft, kc as isValidPageObjectNumber, ki as FormFieldFlags, kn as HighlightAnnotationDTO, ko as AnnotationAppearanceImage, kr as SearchSliceBudget, ks as pdfRectHeight, kt as LineAnnotationDTO, l as AnnotationPatch, la as PdfDestination, lc as validateScopeArray, li as CheckboxFieldDraft, ll as PdfActionTree, lo as PdfAnnotationSubtypeCode, lr as SearchRegexIssue, ls as RotatedGeometryRun, lt as FreeTextDraft, m as WireAnnotationPatch, ma as AnnotationRelationKind, mc as CollabEntity, mi as RadioFieldDraft, ml as PdfPageActions, mo as AnnotationStableId, mr as foldOptionsFor, ms as PageTextSnapshot, mt as InkAnnotationDTO, n as AnnotationListSnapshotAllPages, na as shiftsExistingAnnotationIndices, nc as expandRawScope, ni as FormFieldValue, nl as PdfRect, nn as CircleAnnotationDTO, no as WireResource, nr as searchSegmentsForRange, ns as PageRenderTarget, nt as CaretAnnotationDTO, o as AnnotationDraft, oa as MutationMeta, oc as MissingIdentity, oi as ListBoxFieldPatch, ol as DocumentActionsSnapshot, on as ShapePatchFields, oo as AnnotationSubtype, or as SEARCH_REGEX_MAX_LENGTH, os as PageGeometryRun, p as WireAnnotationDraft, pa as LayerScopes, pc as CollabAction, pi as ListBoxFieldDraft, pl as PdfFieldActions, po as AnnotationIdentityQuality, pr as validateSearchRegex, ps as isRotatedGeometryRun, pt as InkPatch, qa as NormalizedPatch, qc as StandardFont, qi as AnnotationUpdateResult, qn as PageRotateResult, qo as PageImageResult, qr as FormRepairResult, qs as caps, ra as AnnotationListMutationMeta, rc as expandedCapabilities, ri as CheckboxFieldPatch, rl as PdfRotation, rn as CircleDraft, ro as WireResourceMap, rr as SEARCH_SNIPPET_CONTEXT, rs as PageRenderViewport, rt as CaretDraft, sa as PdfLinkTarget, sc as PermissionDenied, si as RadioFieldPatch, sl as NamedJavaScriptAction, so as PDF_CODE_TO_SUBTYPE, sr as SearchQueryIssue, ss as PageGeometrySnapshot, st as FreeTextPatch, t as AnnotationListPageSnapshot, ta as invalidatesWeakIndexRefs, tc as checkSetGroup, ti as FormDataFormat, tl as PdfQuad, tn as CirclePatch, to as ResourceRef, tr as searchRectsForRange, ts as PageRenderQuery, tt as CaretPatch, ua as DocumentManifest, uc as PDF_BITS, ui as ComboBoxFieldDraft, ul as PdfActionType, un as StrikeoutPatch, uo as subtypeFromCode, ur as SearchRegexValidation, us as UprightGeometryRun, v as UnsupportedPatch, va as refKey, vc as ParsedCapability, vi as FormSnapshot, vn as SquigglyDraft, vo as EngineErrorOptions, vr as FoldOptions, vs as charBoundaryAtTextOffset, w as WidgetPatch, wa as AttachmentDeleteResult, wc as AnnotationDraftBase, wi as CheckboxFieldDTO, wn as UnderlineDraft, wo as FontKey, wr as SearchMatch, ws as normalizePdfRect, wt as LinkDraft, x as RedactPatch, xa as DraftOfKind, xc as ParsedVirtual, xi as WidgetStyleDraftFields, xo as serializeError, xr as SearchMatchRange, xs as sliceTextByChars, y as UnsupportedDraft, ya as AnnotationKindModule, yc as ParsedCollab, yi as WidgetAppearance, yo as SerializedEngineError, yr as FoldedText, ys as charMapViolation, z as StampWirePatch, za as GeometryStylePatchFields, zc as LineEnding, zi as FormValueEntry, zn as PageFlattenResult, zo as PageState, zr as textGlyphAt, zs as OpenInputById } from "./AnnotationListSnapshot-Bwfnb1i-.js";
2
+ import { a as DocumentEncryptionState, c as DocumentSecurityState, d as PdfPermissionAdvisory, f as PdfPermissionInfo, g as AbortablePromise, h as AbortableExecutor, i as DocumentAccessReason, l as DocumentUnlockInput, m as passwordPromptFromState, n as CdnAdapter, o as DocumentOpenMode, p as PasswordPrompt, r as DocumentAccessInfo, s as DocumentSecurityService, t as CdnAccessInfo, u as DocumentUnlockResult } from "./DocumentSecurityService-CqLXyTVM.js";
3
+ import { A as DocumentPagesService, C as CONTINUOUS_RENDER_POLICY, D as snapFullPageViewport, E as snapAppearanceScale, F as WeakAnnotationEditSession, I as DocumentActionsService, M as FormRepairOptions, N as DocumentAttachmentsService, O as snapTileScale, P as DocumentAnnotationsService, S as DocumentSearchService, T as EngineRenderPolicy, _ as PageTextService, a as DocumentHandle, b as PageAnnotationsService, c as DocumentEventInit, d as PageHandle, f as PieceInfoService, g as PieceInfoSnapshot, h as PieceInfoPatchValue, i as DocumentCapabilities, j as DocumentFormsService, k as DocumentRedactionService, l as DocumentEventType, m as PieceInfoPatch, n as EngineFactory, o as DocumentEventStream, p as PieceInfoEntry, r as FontService, s as DocumentEvent, t as Engine, u as EventOrigin, v as PageRenderService, w as DocumentRenderService, x as MetadataService, y as PageGeometryService } from "./Engine-C25gzAFz.js";
4
4
  //#region src/promise/AbortError.d.ts
5
5
  declare class AbortError extends Error {
6
6
  readonly name = "AbortError";
@@ -555,6 +555,20 @@ interface PagesInsertWorkerRequest {
555
555
  destIndex?: number;
556
556
  artifactPath?: string;
557
557
  }
558
+ /** Create `count` (default 1) blank pages of `size` (PDF points) at
559
+ * `destIndex` (omitted → append). A structural MUTATION exactly like
560
+ * `pages.insert`, minus the bytes: pure parameters, so nothing transfers;
561
+ * layer sessions persist an artifact identically. */
562
+ interface PagesInsertBlankWorkerRequest {
563
+ kind: 'pages.insertBlank';
564
+ jobId: WorkerJobId;
565
+ docId: string;
566
+ layerName?: string;
567
+ size: PdfSize;
568
+ count?: number;
569
+ destIndex?: number;
570
+ artifactPath?: string;
571
+ }
558
572
  /**
559
573
  * `/PieceInfo` private application data (ISO 32000 §14.5). One job family
560
574
  * serves both levels: `pageObjectNumber` present → the page's `/PieceInfo`,
@@ -723,7 +737,7 @@ interface AttachmentFileWorkerPayload {
723
737
  interface LayerArtifactFileWorkerPayload {
724
738
  path: string;
725
739
  }
726
- type WorkerRequest = OpenWorkerRequest | MetadataReadWorkerRequest | MetadataUpdateWorkerRequest | ActionsReadWorkerRequest | AnnotationsListRawAllWorkerRequest | AnnotationsListRawPageWorkerRequest | AnnotationsListFullPageWorkerRequest | AnnotationsRenderAppearancesWorkerRequest | AnnotationsRenderAppearancesEncodedWorkerRequest | AnnotationsCreateWorkerRequest | AnnotationsUpdateWorkerRequest | AnnotationsDeleteWorkerRequest | AnnotationsMoveWorkerRequest | FormsListWorkerRequest | FormsSetValueWorkerRequest | FormsResetWorkerRequest | FormsApplyEffectsWorkerRequest | FormsExportWorkerRequest | FormsImportWorkerRequest | FormsRepairWorkerRequest | FormsCreateFieldWorkerRequest | FormsUpdateFieldWorkerRequest | FormsDeleteFieldWorkerRequest | FormsAttachWidgetWorkerRequest | FormsDetachWidgetWorkerRequest | PagesListWorkerRequest | PagesMoveWorkerRequest | PagesRotateWorkerRequest | PagesDeleteWorkerRequest | PagesFlattenWorkerRequest | RedactionApplyWorkerRequest | PagesExtractWorkerRequest | PagesInsertWorkerRequest | AttachmentsListWorkerRequest | AttachmentsReadFileWorkerRequest | AttachmentsCreateWorkerRequest | AttachmentsDeleteWorkerRequest | AnnotationsReadFileWorkerRequest | PieceInfoReadWorkerRequest | PieceInfoUpdateWorkerRequest | PieceInfoApplicationsWorkerRequest | PieceInfoClearWorkerRequest | PagesTextWorkerRequest | PagesGeometryWorkerRequest | PagesRenderWorkerRequest | PagesRenderEncodedWorkerRequest | SearchQueryWorkerRequest | DocumentSaveBufferWorkerRequest | DocumentSaveFileWorkerRequest | DocumentSaveLayerBufferWorkerRequest | DocumentProbeSecurityFileWorkerRequest | DocumentRenderPageFileWorkerRequest | DocumentRenderPageFileEncodedWorkerRequest | DocumentCheckPasswordPermissionsWorkerRequest | FontsRegisterWorkerRequest | FontsAddFallbackWorkerRequest | FontsClearFallbacksWorkerRequest | FontsClearWorkerRequest | CloseWorkerRequest | LayerCloseWorkerRequest | AbortWorkerRequest | ShutdownWorkerRequest;
740
+ type WorkerRequest = OpenWorkerRequest | MetadataReadWorkerRequest | MetadataUpdateWorkerRequest | ActionsReadWorkerRequest | AnnotationsListRawAllWorkerRequest | AnnotationsListRawPageWorkerRequest | AnnotationsListFullPageWorkerRequest | AnnotationsRenderAppearancesWorkerRequest | AnnotationsRenderAppearancesEncodedWorkerRequest | AnnotationsCreateWorkerRequest | AnnotationsUpdateWorkerRequest | AnnotationsDeleteWorkerRequest | AnnotationsMoveWorkerRequest | FormsListWorkerRequest | FormsSetValueWorkerRequest | FormsResetWorkerRequest | FormsApplyEffectsWorkerRequest | FormsExportWorkerRequest | FormsImportWorkerRequest | FormsRepairWorkerRequest | FormsCreateFieldWorkerRequest | FormsUpdateFieldWorkerRequest | FormsDeleteFieldWorkerRequest | FormsAttachWidgetWorkerRequest | FormsDetachWidgetWorkerRequest | PagesListWorkerRequest | PagesMoveWorkerRequest | PagesRotateWorkerRequest | PagesDeleteWorkerRequest | PagesFlattenWorkerRequest | RedactionApplyWorkerRequest | PagesExtractWorkerRequest | PagesInsertWorkerRequest | PagesInsertBlankWorkerRequest | AttachmentsListWorkerRequest | AttachmentsReadFileWorkerRequest | AttachmentsCreateWorkerRequest | AttachmentsDeleteWorkerRequest | AnnotationsReadFileWorkerRequest | PieceInfoReadWorkerRequest | PieceInfoUpdateWorkerRequest | PieceInfoApplicationsWorkerRequest | PieceInfoClearWorkerRequest | PagesTextWorkerRequest | PagesGeometryWorkerRequest | PagesRenderWorkerRequest | PagesRenderEncodedWorkerRequest | SearchQueryWorkerRequest | DocumentSaveBufferWorkerRequest | DocumentSaveFileWorkerRequest | DocumentSaveLayerBufferWorkerRequest | DocumentProbeSecurityFileWorkerRequest | DocumentRenderPageFileWorkerRequest | DocumentRenderPageFileEncodedWorkerRequest | DocumentCheckPasswordPermissionsWorkerRequest | FontsRegisterWorkerRequest | FontsAddFallbackWorkerRequest | FontsClearFallbacksWorkerRequest | FontsClearWorkerRequest | CloseWorkerRequest | LayerCloseWorkerRequest | AbortWorkerRequest | ShutdownWorkerRequest;
727
741
  type WorkerResultPayload = {
728
742
  tag: 'open';
729
743
  docId: string;
@@ -887,6 +901,11 @@ type WorkerResultPayload = {
887
901
  result: PageInsertResult;
888
902
  artifact?: LayerArtifactWorkerPayload;
889
903
  artifactFile?: LayerArtifactFileWorkerPayload;
904
+ } | {
905
+ tag: 'pages.insertBlank';
906
+ result: PageInsertResult;
907
+ artifact?: LayerArtifactWorkerPayload;
908
+ artifactFile?: LayerArtifactFileWorkerPayload;
890
909
  } | {
891
910
  tag: 'pieceInfo.read';
892
911
  snapshot: PieceInfoSnapshot | null;
@@ -1077,5 +1096,5 @@ declare const EMPTY_TRANSFER: readonly Transferable[];
1077
1096
  */
1078
1097
  declare function wirePack<P>(payload: P, transfer?: readonly Transferable[]): WirePack<P>;
1079
1098
  //#endregion
1080
- export { ANNOTATION_SUBTYPES, AbortError, type AbortWorkerRequest, type AbortableExecutor, AbortablePromise, type ActionReadBudget, type ActionsReadWorkerRequest, type AnnotationActor, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceManifest, type AnnotationAppearanceManifestEntry, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesEncodedResultWire, type AnnotationAppearancesQuery, type AnnotationAppearancesResult, type AnnotationBase, type AnnotationBorderStyle, type AnnotationCreateResult, type AnnotationDTO, type AnnotationDeleteResult, type AnnotationDraft, type AnnotationDraftBase, type AnnotationFlags, 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 AnnotationsCreateWorkerRequest, type AnnotationsDeleteWorkerRequest, type AnnotationsListFullPageWorkerRequest, type AnnotationsListRawAllWorkerRequest, type AnnotationsListRawPageWorkerRequest, type AnnotationsMoveWorkerRequest, type AnnotationsReadFileWorkerRequest, type AnnotationsRenderAppearancesEncodedWorkerRequest, type AnnotationsRenderAppearancesWorkerRequest, type AnnotationsUpdateWorkerRequest, type AppearanceAction, type AppearanceImpact, type AppearanceOutcome, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentFileWorkerPayload, type AttachmentsCache, type AttachmentsCreateWorkerRequest, type AttachmentsDeleteWorkerRequest, type AttachmentsListWorkerRequest, type AttachmentsReadFileWorkerRequest, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, CONTINUOUS_RENDER_POLICY, type CacheDelta, type CachePins, type CalloutLine, type CaretAnnotationDTO, type CaretDraft, type CaretIntent, type CaretPatch, type CdnAccessInfo, type CdnAdapter, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type CircleAnnotationDTO, type CircleDraft, type CirclePatch, type CloseWorkerRequest, type CollabAction, type CollabEntity, type CollabFilter, type CollabTarget, type Color, type ColorStyleDraftFields, type ColorStyleFields, type ColorStylePatchFields, type ComboBoxFieldDTO, type ComboBoxFieldDraft, type ComboBoxFieldPatch, DEFAULT_PDF_SAVE_MODE, type DTOOfKind, type DocCapability, type DocumentAccessInfo, type DocumentAccessReason, type DocumentActionsService, type DocumentActionsSnapshot, type DocumentAnnotationsService, type DocumentAttachmentsService, type DocumentCapabilities, type DocumentCheckPasswordPermissionsWorkerRequest, type DocumentEncryptionState, type DocumentEvent, type DocumentEventInit, type DocumentEventStream, type DocumentEventType, type DocumentFormsService, type DocumentHandle, type IdentityClaims as DocumentIdentity, type IdentityClaims, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DocumentOpenMode, type DocumentPagesService, type DocumentProbeSecurityFileWorkerRequest, type DocumentRedactionService, type DocumentRenderPageFileEncodedWorkerRequest, type DocumentRenderPageFileWorkerRequest, type DocumentRenderService, type DocumentSaveBufferWorkerRequest, type DocumentSaveFileWorkerRequest, type DocumentSaveLayerBufferWorkerRequest, type DocumentSearchService, type DocumentSecurityProbeInfo, type DocumentSecurityService, type DocumentSecurityState, type DocumentUnlockInput, type DocumentUnlockResult, type DraftOfKind, EMPTY_TRANSFER, type EmbeddedFileItem, type EmbeddedFileRef, type EncodedAppearanceWire, type EncodedImageWire, type Engine, EngineError, EngineErrorCode, type EngineErrorOptions, type EngineFactory, type EngineRenderPolicy, type EventOrigin, 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 FontService, type FontSpec, type FontsAddFallbackWorkerRequest, type FontsClearFallbacksWorkerRequest, type FontsClearWorkerRequest, type FontsRegisterWorkerRequest, 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 FormRepairOptions, type FormRepairResult, type FormSetValueResult, type FormSnapshot, type FormValueEntry, type FormWidgetLinkResult, type FormWidgetRef, type FormsApplyEffectsWorkerRequest, type FormsAttachWidgetWorkerRequest, type FormsCreateFieldWorkerRequest, type FormsDeleteFieldWorkerRequest, type FormsDetachWidgetWorkerRequest, type FormsExportWorkerRequest, type FormsImportWorkerRequest, type FormsListWorkerRequest, type FormsRepairWorkerRequest, type FormsResetWorkerRequest, type FormsSetValueWorkerRequest, type FormsUpdateFieldWorkerRequest, type FreeTextAnnotationDTO, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotationDTO, type HighlightDraft, type HighlightPatch, type InkAnnotationDTO, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type LayerArtifactFileWorkerPayload, type LayerArtifactWorkerPayload, type LayerCloseWorkerRequest, type LayerOpenSource, 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 MetadataReadWorkerRequest, type MetadataService, type MetadataUpdateResult, type MetadataUpdateWorkerRequest, MissingIdentity, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NormalizedDraft, type NormalizedPatch, type NoteIcon, type OpenFatMemoryWorkerRequest, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenLayerFileBaseWorkerRequest, type OpenLayerMemoryBaseWorkerRequest, type OpenOptions, type OpenWorkerRequest, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, type PageAnnotationsService, type PageBoxes, type PageDeleteInput, type PageDeleteResult, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageGeometryGlyph, type PageGeometryRun, type PageGeometryService, type PageGeometrySnapshot, type PageHandle, type PageImageBlobSource, type PageImageHandle, type PageImageObjectUrl, type PageImageOptions, type PageImageResult, type PageImageSource, type PageInsertResult, type PageLayout, type PageListSnapshot, type PageMoveCache, type PageMoveInput, type PageMoveResult, type PageNetworkRenderFormat, type PageObjectNumber, type PageRaster, type PageRenderBackground, type PageRenderEncodedFormat, type PageRenderFormat, type PageRenderOptions, type PageRenderQuery, type PageRenderService, type PageRenderTarget, type PageRenderViewport, type PageRotateInput, type PageRotateResult, type PageRotation, type PageState, type PageStructureCache, type PageTextLayout, type PageTextService, type PageTextSnapshot, type PagesDeleteWorkerRequest, type PagesExtractWorkerRequest, type PagesFlattenWorkerRequest, type PagesGeometryWorkerRequest, type PagesInsertWorkerRequest, type PagesListWorkerRequest, type PagesMoveWorkerRequest, type PagesRenderEncodedWorkerRequest, type PagesRenderWorkerRequest, type PagesRotateWorkerRequest, type PagesTextWorkerRequest, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PasswordPrompt, type PatchOfKind, type PdfActionNode, type PdfActionTree, type PdfActionType, type PdfActionWarning, type PdfAnnotationActions, PdfAnnotationSubtypeCode, type PdfBits, type PdfDestination, type PdfFieldActions, type PdfLinkTarget, type PdfLinkTargetWritable, type PdfOriginSize, type PdfPageActions, type PdfPermissionAdvisory, type PdfPermissionInfo, type PdfPoint, type PdfQuad, type PdfQuadCorners, type PdfRect, type PdfRectDifferences, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfTextSegment, PermissionDenied, type PieceInfoApplicationsWorkerRequest, type PieceInfoClearWorkerRequest, type PieceInfoEntry, type PieceInfoPatch, type PieceInfoPatchValue, type PieceInfoReadWorkerRequest, type PieceInfoService, type PieceInfoSnapshot, type PieceInfoUpdateWorkerRequest, 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 RedactionApplyWorkerRequest, type RefetchReason, type RenderEncode, type ResourceRef, 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 SearchQueryWorkerRequest, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchSlice, type SearchSliceBudget, type SearchSnippet, type SerializedEngineError, type ShapeAnnotationFields, type ShapeDraftFields, type ShapePatchFields, type ShutdownWorkerRequest, 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 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 WeakAnnotationEditSession, 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 WirePack, type WireResource, type WireResourceMap, type WorkerJobId, type WorkerLifecycleMessage, type WorkerRequest, type WorkerResponse, type WorkerResultPayload, advisoryFromPdfBits, appearanceImpactOf, boundaryTextOffset, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, deserializeError, encodeFieldRefKey, encodeStableIdKey, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isAbortError, isRotatedGeometryRun, isValidPageObjectNumber, knownWeakAnnotationState, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parseScope, passwordPromptFromState, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, permissionInfoFromProbe, permissionInfoWithAdvisory, refKey, resolveBinarySource, revisionTokensEqual, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, securityStateFromHead, securityStateFromProbe, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, snapAppearanceScale, snapFullPageViewport, snapTileScale, sniffBinaryMetadata, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wirePack, wordAt, wordBefore };
1099
+ export { ANNOTATION_SUBTYPES, AbortError, type AbortWorkerRequest, type AbortableExecutor, AbortablePromise, type ActionReadBudget, type ActionsReadWorkerRequest, type AnnotationActor, type AnnotationAppearanceImage, type AnnotationAppearanceImageOptions, type AnnotationAppearanceImagesResult, type AnnotationAppearanceManifest, type AnnotationAppearanceManifestEntry, type AnnotationAppearanceMode, type AnnotationAppearanceRaster, type AnnotationAppearanceRenderOptions, type AnnotationAppearancesEncodedResultWire, type AnnotationAppearancesQuery, type AnnotationAppearancesResult, type AnnotationBase, type AnnotationBorderStyle, type AnnotationCreateResult, type AnnotationDTO, type AnnotationDeleteResult, type AnnotationDraft, type AnnotationDraftBase, type AnnotationFlags, 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 AnnotationsCreateWorkerRequest, type AnnotationsDeleteWorkerRequest, type AnnotationsListFullPageWorkerRequest, type AnnotationsListRawAllWorkerRequest, type AnnotationsListRawPageWorkerRequest, type AnnotationsMoveWorkerRequest, type AnnotationsReadFileWorkerRequest, type AnnotationsRenderAppearancesEncodedWorkerRequest, type AnnotationsRenderAppearancesWorkerRequest, type AnnotationsUpdateWorkerRequest, type AppearanceAction, type AppearanceImpact, type AppearanceOutcome, type AttachmentContent, type AttachmentCreateResult, type AttachmentDeleteResult, type AttachmentFileBase, type AttachmentFileInfo, type AttachmentFileSource, type AttachmentFileWorkerPayload, type AttachmentsCache, type AttachmentsCreateWorkerRequest, type AttachmentsDeleteWorkerRequest, type AttachmentsListWorkerRequest, type AttachmentsReadFileWorkerRequest, type BinaryMetadata, type BinaryMimeType, type BinaryPayload, type BinarySource, type BlendMode, CONTINUOUS_RENDER_POLICY, type CacheDelta, type CachePins, type CalloutLine, type CaretAnnotationDTO, type CaretDraft, type CaretIntent, type CaretPatch, type CdnAccessInfo, type CdnAdapter, type CharBoundaryBias, type CharMapAnchor, type CheckboxFieldDTO, type CheckboxFieldDraft, type CheckboxFieldPatch, type CircleAnnotationDTO, type CircleDraft, type CirclePatch, type CloseWorkerRequest, type CollabAction, type CollabEntity, type CollabFilter, type CollabTarget, type Color, type ColorStyleDraftFields, type ColorStyleFields, type ColorStylePatchFields, type ComboBoxFieldDTO, type ComboBoxFieldDraft, type ComboBoxFieldPatch, DEFAULT_PDF_SAVE_MODE, type DTOOfKind, type DocCapability, type DocumentAccessInfo, type DocumentAccessReason, type DocumentActionsService, type DocumentActionsSnapshot, type DocumentAnnotationsService, type DocumentAttachmentsService, type DocumentCapabilities, type DocumentCheckPasswordPermissionsWorkerRequest, type DocumentEncryptionState, type DocumentEvent, type DocumentEventInit, type DocumentEventStream, type DocumentEventType, type DocumentFormsService, type DocumentHandle, type IdentityClaims as DocumentIdentity, type IdentityClaims, type DocumentManifest, type DocumentMetadata, type DocumentMetadataTrapped, type DocumentOpenMode, type DocumentPagesService, type DocumentProbeSecurityFileWorkerRequest, type DocumentRedactionService, type DocumentRenderPageFileEncodedWorkerRequest, type DocumentRenderPageFileWorkerRequest, type DocumentRenderService, type DocumentSaveBufferWorkerRequest, type DocumentSaveFileWorkerRequest, type DocumentSaveLayerBufferWorkerRequest, type DocumentSearchService, type DocumentSecurityProbeInfo, type DocumentSecurityService, type DocumentSecurityState, type DocumentUnlockInput, type DocumentUnlockResult, type DraftOfKind, EMPTY_TRANSFER, type EmbeddedFileItem, type EmbeddedFileRef, type EncodedAppearanceWire, type EncodedImageWire, type Engine, EngineError, EngineErrorCode, type EngineErrorOptions, type EngineFactory, type EngineRenderPolicy, type EventOrigin, 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 FontService, type FontSpec, type FontsAddFallbackWorkerRequest, type FontsClearFallbacksWorkerRequest, type FontsClearWorkerRequest, type FontsRegisterWorkerRequest, 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 FormRepairOptions, type FormRepairResult, type FormSetValueResult, type FormSnapshot, type FormValueEntry, type FormWidgetLinkResult, type FormWidgetRef, type FormsApplyEffectsWorkerRequest, type FormsAttachWidgetWorkerRequest, type FormsCreateFieldWorkerRequest, type FormsDeleteFieldWorkerRequest, type FormsDetachWidgetWorkerRequest, type FormsExportWorkerRequest, type FormsImportWorkerRequest, type FormsListWorkerRequest, type FormsRepairWorkerRequest, type FormsResetWorkerRequest, type FormsSetValueWorkerRequest, type FormsUpdateFieldWorkerRequest, type FreeTextAnnotationDTO, type FreeTextDraft, type FreeTextFont, type FreeTextIntent, type FreeTextPatch, type GeometryStyleDraftFields, type GeometryStyleFields, type GeometryStylePatchFields, type HighlightAnnotationDTO, type HighlightDraft, type HighlightPatch, type InkAnnotationDTO, type InkDraft, type InkIntent, type InkList, type InkPatch, type InkStroke, InvalidScope, type LayerArtifactFileWorkerPayload, type LayerArtifactWorkerPayload, type LayerCloseWorkerRequest, type LayerOpenSource, 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 MetadataReadWorkerRequest, type MetadataService, type MetadataUpdateResult, type MetadataUpdateWorkerRequest, MissingIdentity, type MutationMeta, NO_ANNOTATION_FLAGS, type NamedJavaScriptAction, type NormalizedDraft, type NormalizedPatch, type NoteIcon, type OpenFatMemoryWorkerRequest, type OpenInput, type OpenInputById, type OpenInputBytes, type OpenInputLayerBytes, type OpenInputLayerSource, type OpenInputShare, type OpenInputToken, type OpenLayerFileBaseWorkerRequest, type OpenLayerMemoryBaseWorkerRequest, type OpenOptions, type OpenWorkerRequest, PAGE_INSERT_BLANK_MAX_COUNT, PDF_BITS, PDF_CODE_TO_SUBTYPE, PDF_SUBTYPE_TO_CODE, type PageAnnotationsService, type PageBoxes, type PageDeleteInput, type PageDeleteResult, type PageFlattenInput, type PageFlattenItemResult, type PageFlattenResult, type PageFlattenStatus, type PageFlattenUsage, type PageGeometryGlyph, type PageGeometryRun, type PageGeometryService, type PageGeometrySnapshot, type PageHandle, 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 PageNetworkRenderFormat, type PageObjectNumber, type PageRaster, type PageRenderBackground, type PageRenderEncodedFormat, type PageRenderFormat, type PageRenderOptions, type PageRenderQuery, type PageRenderService, type PageRenderTarget, type PageRenderViewport, type PageRotateInput, type PageRotateResult, type PageRotation, type PageState, type PageStructureCache, type PageTextLayout, type PageTextService, type PageTextSnapshot, type PagesDeleteWorkerRequest, type PagesExtractWorkerRequest, type PagesFlattenWorkerRequest, type PagesGeometryWorkerRequest, type PagesInsertBlankWorkerRequest, type PagesInsertWorkerRequest, type PagesListWorkerRequest, type PagesMoveWorkerRequest, type PagesRenderEncodedWorkerRequest, type PagesRenderWorkerRequest, type PagesRotateWorkerRequest, type PagesTextWorkerRequest, type ParsedCapability, type ParsedCollab, type ParsedScope, type ParsedVirtual, type ParsedWildcard, type PasswordPrompt, type PatchOfKind, type PdfActionNode, type PdfActionTree, type PdfActionType, type PdfActionWarning, type PdfAnnotationActions, PdfAnnotationSubtypeCode, type PdfBits, type PdfDestination, type PdfFieldActions, type PdfLinkTarget, type PdfLinkTargetWritable, type PdfOriginSize, type PdfPageActions, type PdfPermissionAdvisory, type PdfPermissionInfo, type PdfPoint, type PdfQuad, type PdfQuadCorners, type PdfRect, type PdfRectDifferences, type PdfRotation, type PdfSaveMode, type PdfSize, type PdfTextSegment, PermissionDenied, type PieceInfoApplicationsWorkerRequest, type PieceInfoClearWorkerRequest, type PieceInfoEntry, type PieceInfoPatch, type PieceInfoPatchValue, type PieceInfoReadWorkerRequest, type PieceInfoService, type PieceInfoSnapshot, type PieceInfoUpdateWorkerRequest, 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 RedactionApplyWorkerRequest, type RefetchReason, type RenderEncode, type ResourceRef, 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 SearchQueryWorkerRequest, type SearchRegexIssue, type SearchRegexValidation, type SearchRequest, type SearchSlice, type SearchSliceBudget, type SearchSnippet, type SerializedEngineError, type ShapeAnnotationFields, type ShapeDraftFields, type ShapePatchFields, type ShutdownWorkerRequest, 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 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 WeakAnnotationEditSession, 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 WirePack, type WireResource, type WireResourceMap, type WorkerJobId, type WorkerLifecycleMessage, type WorkerRequest, type WorkerResponse, type WorkerResultPayload, advisoryFromPdfBits, appearanceImpactOf, boundaryTextOffset, buildPageTextLayout, buildSnippet, buildThreads, canonicalSearchQuery, caps, changesAnnotationList, charBoundaryAtTextOffset, charMapViolation, charRangeForTextOffsets, checkAnyCapability, checkCapability, checkCollab, checkSetGroup, classifyRelation, collab, createPageImageHandle, decodeFieldRefKey, decodePdfBits, decodeStableIdKey, deserializeError, encodeFieldRefKey, encodeStableIdKey, expandRawScope, expandTextRangeToLine, expandTextRangeToWord, expandedCapabilities, filterMatches, foldOptionsFor, foldText, glyphLooseBounds, glyphLooseQuad, invalidatesWeakIndexRefs, isAbortError, isRotatedGeometryRun, isValidPageObjectNumber, knownWeakAnnotationState, matchLiteral, matchPageText, matchRegex, materializePdfPermissions, normalizeAnnotationDraft, normalizeAnnotationPatch, normalizeAttachmentFileSource, normalizePdfRect, parseScope, passwordPromptFromState, pdfPermissions, pdfQuadBounds, pdfQuadCorners, pdfQuadFromCorners, pdfRectFromOriginSize, pdfRectHeight, pdfRectSize, pdfRectToOriginSize, pdfRectWidth, permissionInfoFromProbe, permissionInfoWithAdvisory, refKey, resolveBinarySource, revisionTokensEqual, searchContentEpoch, searchRectsForRange, searchSegmentsForRange, securityStateFromHead, securityStateFromProbe, semanticEqual, serializeError, shiftsExistingAnnotationIndices, sliceTextByChars, snapAppearanceScale, snapFullPageViewport, snapTileScale, sniffBinaryMetadata, subtypeFromCode, textGlyphAt, textGlyphQuad, textSegmentsForRange, toOriginalRange, validateScopeArray, validateSearchQuery, validateSearchRegex, wirePack, wordAt, wordBefore };
1081
1100
  //# sourceMappingURL=runtime.d.ts.map