@docx-editor.dev/core 2.26.0 → 2.28.0

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 (122) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.ts +30 -13
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.d.ts +20 -9
  6. package/dist/binding.js +1 -1
  7. package/dist/chunk-2GO5T2JU.cjs +1 -0
  8. package/dist/chunk-2RC2EPND.js +3 -0
  9. package/dist/chunk-4GBTELJV.cjs +28 -0
  10. package/dist/chunk-4R3TEXMN.js +18 -0
  11. package/dist/chunk-5CSUYANV.js +1 -0
  12. package/dist/chunk-6APGXLBB.cjs +3 -0
  13. package/dist/chunk-6AWEKBLB.cjs +1 -0
  14. package/dist/chunk-6EYYL7FL.js +1 -0
  15. package/dist/chunk-E7BQA6UP.js +2 -0
  16. package/dist/chunk-EO4C5QJW.cjs +2 -0
  17. package/dist/chunk-ETTO6GK3.js +1 -0
  18. package/dist/chunk-FIJZIQXA.cjs +18 -0
  19. package/dist/chunk-FRXAOVTB.js +28 -0
  20. package/dist/chunk-J6BVWIDB.js +2 -0
  21. package/dist/chunk-JGNVNT2A.cjs +2 -0
  22. package/dist/chunk-K5U2PLDP.cjs +2 -0
  23. package/dist/chunk-KKIJG3C6.js +2 -0
  24. package/dist/chunk-LWDSDCMO.js +27 -0
  25. package/dist/chunk-NBCVVZOM.cjs +1 -0
  26. package/dist/chunk-O2AL2HSJ.cjs +1 -0
  27. package/dist/{chunk-AJCCS53D.js → chunk-O5INAWZQ.js} +1 -1
  28. package/dist/chunk-QMLCVPCD.cjs +1 -0
  29. package/dist/chunk-RCHS4ZEH.cjs +27 -0
  30. package/dist/chunk-SRPILEWV.cjs +5 -0
  31. package/dist/chunk-TSLBZ26X.js +1 -0
  32. package/dist/chunk-VDNNLG6X.js +2 -0
  33. package/dist/chunk-VHAVHCQY.js +7 -0
  34. package/dist/chunk-VX43VBAX.cjs +7 -0
  35. package/dist/chunk-Z6WBFXJU.js +5 -0
  36. package/dist/chunk-ZUHOMK52.cjs +2 -0
  37. package/dist/collaboration/replication.cjs +1 -1
  38. package/dist/collaboration/replication.d.ts +50 -5
  39. package/dist/collaboration/replication.js +1 -1
  40. package/dist/collaboration.cjs +1 -1
  41. package/dist/collaboration.d.ts +98 -6
  42. package/dist/collaboration.js +1 -1
  43. package/dist/contracts/document.d.ts +17 -2
  44. package/dist/contracts/editor.d.ts +19 -9
  45. package/dist/contracts/interaction.d.ts +29 -0
  46. package/dist/contracts/modules.cjs +1 -1
  47. package/dist/contracts/modules.d.ts +29 -16
  48. package/dist/contracts/modules.js +1 -1
  49. package/dist/contracts/types.d.ts +10 -1
  50. package/dist/{custom-node-writes-Cy9imOjA.d.ts → custom-node-writes-cvL5rhcD.d.ts} +2 -2
  51. package/dist/{document-protection-Bp19Ad4I.d.ts → document-protection-BAGVGqaP.d.ts} +1 -1
  52. package/dist/{editor-DYUlyKmb.d.ts → editor-Ci7IZGmG.d.ts} +410 -163
  53. package/dist/editor.cjs +1 -1
  54. package/dist/editor.css +5 -5
  55. package/dist/editor.d.ts +417 -31
  56. package/dist/editor.js +1 -1
  57. package/dist/export.cjs +2 -2
  58. package/dist/export.d.ts +37 -15
  59. package/dist/export.js +2 -2
  60. package/dist/failure-NS2lsya4.d.ts +115 -0
  61. package/dist/{font-resolver-u_nE0PI1.d.ts → font-resolver-BVQB14qT.d.ts} +1 -1
  62. package/dist/{headless-document-view-R9bzzepb.d.ts → headless-document-view-qH331moE.d.ts} +2 -2
  63. package/dist/{image-resources-DfagDguq.d.ts → image-resources-BN-hUgCn.d.ts} +9 -9
  64. package/dist/{index-Docw8Dcb.d.ts → index-Bsg7oIKP.d.ts} +270 -115
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.d.ts +46 -18
  67. package/dist/index.js +1 -1
  68. package/dist/{layout-shaping-DWitwY73.d.ts → layout-shaping-BEyuiQOk.d.ts} +1 -1
  69. package/dist/layout.cjs +1 -1
  70. package/dist/layout.d.ts +177 -249
  71. package/dist/layout.js +1 -1
  72. package/dist/{note-properties-CmfvOJsi.d.ts → note-properties-4Y9o6Gyk.d.ts} +1 -1
  73. package/dist/{omml-equation-CZ6IG2ja.d.ts → omml-equation-CuzBL5DD.d.ts} +1 -1
  74. package/dist/output.cjs +1 -1
  75. package/dist/output.d.ts +18 -7
  76. package/dist/output.js +1 -1
  77. package/dist/{protocol-DniKeDb8.d.ts → protocol-Bqk4Izjc.d.ts} +48 -7
  78. package/dist/review-pane-D9jm8DcY.d.ts +128 -0
  79. package/dist/{review-paragraph-order-Dc8Q6tfM.d.ts → review-paragraph-order-DT-n6ouC.d.ts} +5 -2
  80. package/dist/{revision-projection-DfWxdBqA.d.ts → revision-projection-DZ4kKVev.d.ts} +74 -3
  81. package/dist/{semantic-cell-selection-Dy_BmmpL.d.ts → semantic-cell-selection-D9D1KSXq.d.ts} +8 -6
  82. package/dist/{semantic-interaction-CvFAj0GR.d.ts → semantic-interaction-CIC-PooQ.d.ts} +25 -34
  83. package/dist/{semantic-paint-Bk9wIXdZ.d.ts → semantic-paint-BME37OMv.d.ts} +57 -5
  84. package/dist/semantic-record-queries-CBlZqZNa.d.ts +177 -0
  85. package/dist/{semantic-records-COqi8pjP.d.ts → semantic-records-4B3WwFAi.d.ts} +84 -42
  86. package/dist/store.cjs +1 -1
  87. package/dist/store.d.ts +165 -137
  88. package/dist/store.js +1 -1
  89. package/dist/{tree-package-fragment-YPyYC1aD.d.ts → tree-package-fragment-BeeKxDw8.d.ts} +77 -57
  90. package/dist/{tree-session-contract-AeY2v0x9.d.ts → tree-session-contract-CVbmlMlq.d.ts} +7 -5
  91. package/dist/{types-barrel-BO73JqHG.d.ts → types-barrel-D3xCgQX6.d.ts} +595 -471
  92. package/package.json +3 -3
  93. package/dist/chunk-2BK4G4ZN.js +0 -2
  94. package/dist/chunk-2SJX44PC.cjs +0 -2
  95. package/dist/chunk-5BIASAN3.js +0 -1
  96. package/dist/chunk-6SEIXJTX.js +0 -1
  97. package/dist/chunk-73PG6L2X.js +0 -1
  98. package/dist/chunk-7RJSH72J.cjs +0 -5
  99. package/dist/chunk-AGKIHLWQ.cjs +0 -1
  100. package/dist/chunk-AN6WM4X4.js +0 -2
  101. package/dist/chunk-ANZ44KQT.cjs +0 -12
  102. package/dist/chunk-CYT3OQFZ.cjs +0 -1
  103. package/dist/chunk-DDGGSBAN.js +0 -12
  104. package/dist/chunk-EEAV3WIN.js +0 -3
  105. package/dist/chunk-ELQFXMJ5.cjs +0 -1
  106. package/dist/chunk-EYK4K2J6.js +0 -1
  107. package/dist/chunk-JNTETUNZ.cjs +0 -1
  108. package/dist/chunk-L6V3IJ3S.js +0 -5
  109. package/dist/chunk-LWCI65EL.js +0 -1
  110. package/dist/chunk-LZDI4P6I.cjs +0 -1
  111. package/dist/chunk-NS22DVWT.cjs +0 -2
  112. package/dist/chunk-QIE3YTU4.cjs +0 -2
  113. package/dist/chunk-QVBFPAGO.js +0 -5
  114. package/dist/chunk-RCCOLZEQ.js +0 -2
  115. package/dist/chunk-SUN62YU6.cjs +0 -5
  116. package/dist/chunk-TKQH7BNE.cjs +0 -1
  117. package/dist/chunk-TKR2MXX4.cjs +0 -3
  118. package/dist/chunk-UJL2GDIM.cjs +0 -25
  119. package/dist/chunk-WQTADNHK.cjs +0 -27
  120. package/dist/chunk-XSHXBJ2J.js +0 -25
  121. package/dist/chunk-YXZEBTDF.js +0 -27
  122. package/dist/failure-BIPVQbRm.d.ts +0 -65
package/dist/store.d.ts CHANGED
@@ -1,17 +1,31 @@
1
- import { e as ResourceLimits } from './image-resources-DfagDguq.js';
2
- export { C as CreateImageResourceCacheOptions, D as DEFAULT_IMAGE_RESOURCE_LIMITS, f as DEFAULT_LIMITS, H as HARD_CEILINGS, g as IMAGE_RESOURCE_HARD_CEILINGS, a as ImageDecodePort, I as ImageResourceLimits, h as ImageResourceLookup, b as ImageResourceState, M as MAX_SVG_SNIFF_BYTES, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, i as ValidatedRasterHeader, j as createImageResourceCache, k as hasBoundedSvgRoot, l as imageResourceLookupFor, m as liveDrawingReferenceCount, r as resolveImageResourceLimits, n as resolveLimits, s as sniffImageMime, o as validateGifHeader, p as validateJpegHeader, q as validatePngHeader, v as validateRasterHeader } from './image-resources-DfagDguq.js';
3
- import { O as OoxmlPart, N as OoxmlNode, aM as OoxmlInvariantResult, at as OoxmlParagraphNode, aN as OoxmlFldCharNode, aO as OoxmlFldSimpleNode, aP as OoxmlInstrTextNode, aQ as OoxmlInvariantIssue, Z as OoxmlElement, W as TreeDocOp, a5 as TreeOpRejection, aR as TreeOpResult, Q as OoxmlPackage, aS as RelationshipRecord, V as OoxmlGenericElementNode, aT as OoxmlHardBreakNode, aU as OoxmlAttribute, X as OoxmlProperty, f as ReviewRange, R as ReviewModelInput, a as ReviewItem, C as CommentRecord, e as ReviewPosition, aV as CommentThreadState, c as ReviewCommentItem, b as ReviewRevisionItem, aB as DrawingTreeDocOp, aC as ImpactClass, aa as ImageWrapTarget } from './types-barrel-BO73JqHG.js';
4
- export { aW as ACCEPTED_PARAGRAPH_PROPERTIES, aX as ACCEPTED_RUN_PROPERTIES, aY as CONTENT_CONTROL_ID_MAX, aZ as CONTENT_CONTROL_PROPERTY_ORDER, a_ as CommentAnchor, a$ as CommentPosition, b0 as CommitTextFormFieldOp, b1 as ContentControlCheckbox, b2 as ContentControlCheckboxState, b3 as ContentControlDataBinding, b4 as ContentControlDateFormat, b5 as ContentControlEntry, b6 as ContentControlKind, b7 as ContentControlLevel, b8 as ContentControlListItem, b9 as ContentControlLock, ba as ContentControlProperties, bb as ContentTypeError, bc as ContentTypeIndex, bd as ContentTypeRecords, be as DEFAULT_OOXML_PACKAGE_LIMITS, bf as DEFAULT_ZIP_LIMITS, bg as DefaultRecord, bh as DeleteTextOp, aI as DrawingImageEffects, a9 as DrawingKind, ac as DrawingLocks, ab as DrawingPositionInput, bi as HYPERLINK_RELATIONSHIP_TYPE, bj as HyperlinkKind, bk as HyperlinkTarget, bl as IMAGE_RELATIONSHIP_TYPE, aE as IMAGE_WRAP_TARGETS, bm as ImageRelationshipResolution, bn as IndexResult, bo as InsertBuildingBlockOp, bp as InsertTextOp, bq as LegacyCheckboxFieldRange, br as MAX_CONTENT_CONTROLS_PER_PART, bs as MAX_CONTENT_CONTROL_NESTING, bt as NameRejection, bu as NameResult, bv as OFFICE_RELATIONSHIP_NAMESPACE_URI, bw as OOXML_NODE_IDENTITY_RULES, bx as OoxmlBodyNode, by as OoxmlBookmarkEndNode, bz as OoxmlBookmarkStartNode, bA as OoxmlContentControlCalendarNode, bB as OoxmlContentControlCheckboxNode, bC as OoxmlContentControlCheckedNode, bD as OoxmlContentControlCheckedStateNode, bE as OoxmlContentControlComboBoxNode, $ as OoxmlContentControlContentNode, bF as OoxmlContentControlDataBindingNode, bG as OoxmlContentControlDateFormatNode, bH as OoxmlContentControlDateNode, bI as OoxmlContentControlDropDownListNode, bJ as OoxmlContentControlEndPropertiesNode, bK as OoxmlContentControlLidNode, bL as OoxmlContentControlListItemNode, _ as OoxmlContentControlNode, bM as OoxmlContentControlPropertiesNode, bN as OoxmlContentControlStoreMappedDataAsNode, bO as OoxmlContentControlTextNode, bP as OoxmlContentControlUncheckedStateNode, av as OoxmlContinuationSeparatorNode, bQ as OoxmlDocumentNode, aw as OoxmlEndnotesNode, bR as OoxmlExternalTarget, ax as OoxmlFootnotesNode, bS as OoxmlGenericExtensionAttribute, bT as OoxmlHyperlinkNode, bU as OoxmlInvariantIssueCode, bV as OoxmlKnownNodeAttribute, bW as OoxmlNamespaceBinding, U as OoxmlNodeId, bX as OoxmlNodeIdentityRules, au as OoxmlNoteNode, ay as OoxmlNoteRefNode, az as OoxmlNoteReferenceNode, a1 as OoxmlPackageLimits, Y as OoxmlPackageRejection, bY as OoxmlPackageResult, bZ as OoxmlParagraphPropertiesNode, b_ as OoxmlPartMetadata, b$ as OoxmlReadRejection, c0 as OoxmlReadResult, c1 as OoxmlRunNode, c2 as OoxmlRunPropertiesNode, aA as OoxmlSeparatorNode, c3 as OoxmlTabNode, c4 as OoxmlTextElementNode, c5 as OoxmlTextNode, c6 as OoxmlWmlValAttribute, c7 as OoxmlXmlSpaceAttribute, c8 as OverrideRecord, c9 as RelationshipError, ca as RelationshipSetResult, cb as RelationshipTargetResolver, cc as ResolveResult, cd as ResolvedRelationship, d as ReviewCustomItem, g as ReviewRevisionKind, h as RevisionAddress, a2 as RevisionBatchEntry, a3 as RevisionBatchResult, a4 as RevisionBatchSkipReason, ce as SetLegacyCheckboxOp, cf as SetLegacyDropdownOp, cg as SetTextFormFieldDefaultOp, a8 as SourceCrop, ch as TABLE_BORDER_STYLES, ci as TabStopWrite, aG as TableBorderStyle, cj as TargetMode, ck as TextFormFieldOptions, cl as TextFormFieldRange, cm as TextFormFieldType, cn as TreeDocOpKind, co as TreeOpEffect, cp as W15_NAMESPACE_URI, cq as WML_NAMESPACE_URI, cr as XMLNS_NAMESPACE_URI, cs as XML_NAMESPACE_URI, ct as XmlLimits, cu as XmlNode, cv as XmlRejection, cw as XmlResult, cx as ZipLimits, cy as ZipReadResult, cz as ZipRejection, cA as allocateContentControlId, cB as asciiFold, cC as buildContentTypeIndex, cD as buildRelationshipSet, cE as childElements, cF as commentAnchorsOfStory, cG as commentsOfPart, cH as contentControlContentChildren, cI as contentControlContentNodeOf, cJ as contentControlEndPropertiesNodeOf, cK as contentControlLevelOf, cL as contentControlPropertiesNodeOf, cM as contentControlPropertiesOf, cN as contentControlTextOf, cO as contentControlsIn, cP as detectDuplicateNames, cQ as extensionKey, cR as findContentControl, cS as findElement, cT as firstReviewRange, cU as flattenContentControls, cV as hasAnyComment, cW as hyperlinkAnchorOf, cX as hyperlinkRelationshipIdOf, cY as hyperlinkTargetOf, cZ as isContentControlContentNode, c_ as isContentControlNode, c$ as isContentControlWrapper, d0 as isContentRevisionKind, d1 as isHyperlinkNode, d2 as isRangeMarkerKind, d3 as isValidMime, d4 as legacyCheckboxFieldsOf, d5 as lockForbidsEdit, d6 as lockForbidsRemoval, d7 as normalizePartName, d8 as orderedContentControlProperties, d9 as parseContentControlId, da as partNameKey, db as planRevisionBatch, dc as projectDrawing, dd as readOnOffChild, de as readOoxmlPackage, df as readOoxmlPart, dg as readXml, dh as readZip, di as resolveContentControlLock, dj as resolveContentType, dk as resolveImageRelationship, dl as resolveInternalTarget, dm as resolveRelationship, dn as reviewItemKey, dp as reviewItemRanges, dq as textContent, dr as textFormFieldsOf, ds as threadStateOfPart, dt as validateExternalTarget, du as withPart, dv as writeOoxmlPackage, dw as writeZip } from './types-barrel-BO73JqHG.js';
5
- import { b as TreeModelChange, f as TreeDocumentStore, T as TreePackageStore, S as StoryScope } from './tree-package-fragment-YPyYC1aD.js';
6
- export { k as AtomicNoteSpan, C as CascadeDeletedNoteReferencesOptions, D as DEFAULT_MAX_EDITABLE_STORY_PARTS, l as DrawingPropertyIdResult, F as FragmentPasteInput, j as FragmentPasteResult, m as HeaderFooterKind, n as HeaderFooterLifecycleImpact, o as HeaderFooterLifecycleOp, p as HeaderFooterLifecycleRejection, q as HeaderFooterLifecycleResult, c as HeaderFooterParts, d as HeaderFooterSectionResolution, s as HeaderFooterSlotMeta, e as HeaderFooterVariant, t as HistoryCaptureKind, H as HistoryGroup, M as MAX_FRAGMENT_DECODED_BYTES, u as MAX_NOTES_PER_PART, v as MAX_NOTE_REFERENCE_PARTS, w as MAX_NOTE_REFERENCE_SCAN, x as NOTE_ATOM_CHAR, y as NOTE_CONTINUATION_SEPARATOR_ID, z as NOTE_ID_MAX, B as NOTE_ID_MIN, E as NOTE_SEPARATOR_ID, G as NoteDiagnostic, J as NoteDiagnosticCode, N as NoteKind, K as NoteLifecycleImpact, L as NoteLifecycleOp, O as NoteLifecycleOptions, P as NoteLifecycleRejection, Q as NoteLifecycleResult, U as NoteReferenceHit, V as NoteReferenceScanBudget, W as NoteType, X as PackageTransactResult, Y as RemotePackageAttribution, g as SelectionMark, Z as StoryResolveResult, a as StoryTargetRejection, _ as TreeDocumentStoreOptions, $ as TreePackageStoreOptions, a0 as TreeStoryRef, h as TreeTransactOptions, a1 as TreeTransactResult, a2 as TreeTransactionContext, a3 as allocateDrawingPropertyId, a4 as allocateNoteId, a5 as applyFragmentPaste, a6 as applyHeaderFooterLifecycleOp, a7 as applyNoteLifecycleOp, a8 as atomicNoteSpansOf, a9 as cascadeDeletedNoteReferences, aa as collectNoteReferences, ab as collectPackageNoteReferences, ac as collectSectionPropertyNodes, ad as createNoteReferenceScanBudget, ae as customMarkFollows, af as diagnoseNoteReferences, ag as findNoteById, ah as formatNoteScopeId, ai as isContinuationSeparatorNode, aj as isEndnotesNode, ak as isFootnotesNode, al as isHeaderFooterLifecycleOp, am as isNormalNote, an as isNoteAtomNode, ao as isNoteLifecycleOp, ap as isNoteNode, aq as isNoteRefNode, ar as isNoteReferenceNode, as as isSeparatorNode, at as normalNoteIds, au as noteAtomText, av as noteIdOf, aw as noteKindOf, ax as noteRefKindOf, ay as noteReferenceKindOf, az as noteTypeOf, aA as notesOf, aB as notesPartHasId, aC as observeHistoryGroup, aD as parseNoteId, aE as parseNoteScopeId, r as reportHistoryGroup, aF as resolveHeaderFooterParts, aG as resolveHeaderFooterPartsBySection, aH as resolveHeaderFooterResolutionBySection, aI as resolveNotesPart, aJ as withBinaryPart, aK as withEmbeddedImage, aL as withoutUnreferencedImagePart } from './tree-package-fragment-YPyYC1aD.js';
7
- import { O as OmmlEquationProjection } from './omml-equation-CZ6IG2ja.js';
8
- export { D as DEFAULT_OMML_LIMITS, E as EquationExpression, L as LinearMathOmmlResult, a as LinearMathParseResult, b as LinearMathRejection, c as OFFICE_MATH_NAMESPACE_URI, d as OmmlLimits, e as equationExpressionToLinearMath, l as linearMathToOmml, p as parseLinearMath, f as projectOmmlEquation } from './omml-equation-CZ6IG2ja.js';
9
- import { I as InsertCustomNodeWrite, C as CustomNodeWriteResult } from './custom-node-writes-Cy9imOjA.js';
10
- export { b as BookmarkAnchor, B as BookmarkIndex, c as CustomNodePayloadRead, d as CustomNodePayloadWrite, a as CustomNodeSweepOutcome, e as CustomNodeSweepResult, f as CustomNodeWriteRejection, D as DocumentTrackingSettings, E as EmbeddedFont, F as FontStyleKey, L as ListKind, M as MAX_CUSTOM_NODE_LABEL_LENGTH, g as MAX_CUSTOM_NODE_PAYLOAD_LENGTH, N as NO_TRACKING_SETTINGS, R as ReadEmbeddedFontsOptions, h as buildBookmarkIndex, i as customNodePayloadsByControl, j as customNodePayloadsOf, k as deobfuscateFont, l as ensureListDefinition, m as ensureNumberingLevel, n as insertCustomNodeWrite, r as readEmbeddedFonts, o as readTrackingSettings, p as removeCustomNodeWrite, s as sweepCustomNodePayloads } from './custom-node-writes-Cy9imOjA.js';
11
- export { c as collectFlowBlocks, a as commentBodyText, b as commentInitials, d as contentControlContentOf, e as deepParagraphOrderOfPart, i as isContentControl, f as isContentControlContent, p as paragraphOrderOfPart, w as walkAllStoryParagraphs, g as walkParagraphInline, h as walkStoryBlocks } from './review-paragraph-order-Dc8Q6tfM.js';
12
- export { D as DocumentProperties, E as EnsuredHyperlinkRelationship, a as HeadlessDocumentRejection, H as HeadlessDocumentView, b as HeadlessThemeFonts, O as OpenHeadlessDocumentResult, c as authorableHyperlinkTarget, e as ensureHyperlinkRelationship, h as headlessViewOfStore, o as openHeadlessDocument, r as relationshipTargetIn } from './headless-document-view-R9bzzepb.js';
13
- export { A as AuthoredNoteProperties, D as DEFAULT_ENDNOTE_PROPERTIES, a as DEFAULT_FOOTNOTE_PROPERTIES, E as EndnotePosition, F as FootnotePosition, N as NoteNumRestart, R as ResolvedEndnoteProperties, b as ResolvedFootnoteProperties, c as authoredDocumentEndnoteProperties, d as authoredDocumentFootnoteProperties, e as authoredEndnotePropertiesFromSectPr, f as authoredFootnotePropertiesFromSectPr, i as isLegalEndnotePosition, g as isLegalFootnotePosition, h as isLegalNumRestart, p as parseAuthoredNoteProperties, r as resolveEndnoteProperties, j as resolveFootnoteProperties, s as settingsPartOf } from './note-properties-CmfvOJsi.js';
14
- export { a as DocumentProtectionEdit, D as DocumentProtectionState, N as NO_DOCUMENT_PROTECTION, r as readDocumentProtection } from './document-protection-Bp19Ad4I.js';
1
+ /**
2
+ * `@docx-editor.dev/core/store` — the canonical OOXML tree and the only write path into it.
3
+ *
4
+ * Bytes become a typed-where-layout-needs-it, generic-everywhere-else tree. Every mutation is a
5
+ * `TreeDocOp` addressed by node id plus UTF-16 offset, applied in one transaction, so a batch
6
+ * refused halfway leaves the document exactly as it was.
7
+ *
8
+ * This is also the trust boundary: zip and XML limits, entity-free parsing, OPC name validation,
9
+ * and inert executable content all live here, because everything downstream assumes a sanitized
10
+ * projection.
11
+ *
12
+ * @packageDocumentation
13
+ * @public
14
+ */
15
+ import { e as ResourceLimits } from './image-resources-BN-hUgCn.js';
16
+ export { C as CreateImageResourceCacheOptions, D as DEFAULT_IMAGE_RESOURCE_LIMITS, f as DEFAULT_LIMITS, H as HARD_CEILINGS, g as IMAGE_RESOURCE_HARD_CEILINGS, a as ImageDecodePort, I as ImageResourceLimits, h as ImageResourceLookup, b as ImageResourceState, M as MAX_SVG_SNIFF_BYTES, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, i as ValidatedRasterHeader, j as createImageResourceCache, k as hasBoundedSvgRoot, l as imageResourceLookupFor, m as liveDrawingReferenceCount, r as resolveImageResourceLimits, n as resolveLimits, s as sniffImageMime, o as validateGifHeader, p as validateJpegHeader, q as validatePngHeader, v as validateRasterHeader } from './image-resources-BN-hUgCn.js';
17
+ import { O as OoxmlPart, N as OoxmlNode, aP as OoxmlInvariantResult, aQ as OoxmlInvariantIssue, Z as OoxmlElement, ab as OoxmlParagraphNode, aR as OoxmlFldCharNode, aS as OoxmlFldSimpleNode, aT as OoxmlInstrTextNode, W as TreeDocOp, a8 as TreeOpRejection, aU as TreeOpResult, Q as OoxmlPackage, aV as RelationshipRecord, V as OoxmlGenericElementNode, aW as OoxmlHardBreakNode, aX as OoxmlAttribute, X as OoxmlProperty, f as ReviewRange, R as ReviewModelInput, a as ReviewItem, C as CommentRecord, e as ReviewPosition, aY as CommentThreadState, c as ReviewCommentItem, b as ReviewRevisionItem, aj as DrawingTreeDocOp, ak as ImpactClass, an as ImageWrapTarget } from './types-barrel-D3xCgQX6.js';
18
+ export { aZ as ACCEPTED_PARAGRAPH_PROPERTIES, a_ as ACCEPTED_RUN_PROPERTIES, a$ as CONTENT_CONTROL_ID_MAX, b0 as CONTENT_CONTROL_PROPERTY_ORDER, b1 as CommentAnchor, b2 as CommentPosition, b3 as CommitTextFormFieldOp, b4 as ContentControlCheckbox, b5 as ContentControlCheckboxState, b6 as ContentControlDataBinding, b7 as ContentControlDateFormat, b8 as ContentControlEntry, b9 as ContentControlKind, ba as ContentControlLevel, bb as ContentControlListItem, bc as ContentControlLock, bd as ContentControlProperties, be as ContentTypeError, bf as ContentTypeIndex, bg as ContentTypeRecords, bh as DEFAULT_OOXML_PACKAGE_LIMITS, bi as DEFAULT_ZIP_LIMITS, bj as DefaultRecord, bk as DeleteTextOp, aL as DrawingImageEffects, am as DrawingKind, ap as DrawingLocks, ao as DrawingPositionInput, bl as HYPERLINK_RELATIONSHIP_TYPE, bm as HyperlinkKind, bn as HyperlinkTarget, bo as IMAGE_RELATIONSHIP_TYPE, aH as IMAGE_WRAP_TARGETS, bp as ImageRelationshipResolution, bq as IndexResult, br as InsertBuildingBlockOp, bs as InsertTextOp, bt as LegacyCheckboxFieldRange, bu as MAX_CONTENT_CONTROLS_PER_PART, bv as MAX_CONTENT_CONTROL_NESTING, bw as NameRejection, bx as NameResult, by as OFFICE_RELATIONSHIP_NAMESPACE_URI, bz as OOXML_NODE_IDENTITY_RULES, bA as OoxmlBodyNode, bB as OoxmlBookmarkEndNode, bC as OoxmlBookmarkStartNode, bD as OoxmlContentControlCalendarNode, bE as OoxmlContentControlCheckboxNode, bF as OoxmlContentControlCheckedNode, bG as OoxmlContentControlCheckedStateNode, bH as OoxmlContentControlComboBoxNode, $ as OoxmlContentControlContentNode, bI as OoxmlContentControlDataBindingNode, bJ as OoxmlContentControlDateFormatNode, bK as OoxmlContentControlDateNode, bL as OoxmlContentControlDropDownListNode, bM as OoxmlContentControlEndPropertiesNode, bN as OoxmlContentControlLidNode, bO as OoxmlContentControlListItemNode, _ as OoxmlContentControlNode, bP as OoxmlContentControlPropertiesNode, bQ as OoxmlContentControlStoreMappedDataAsNode, bR as OoxmlContentControlTextNode, bS as OoxmlContentControlUncheckedStateNode, ad as OoxmlContinuationSeparatorNode, bT as OoxmlDocumentNode, ae as OoxmlEndnotesNode, bU as OoxmlExternalTarget, af as OoxmlFootnotesNode, bV as OoxmlGenericExtensionAttribute, bW as OoxmlHyperlinkNode, bX as OoxmlInvariantIssueCode, bY as OoxmlKnownNodeAttribute, bZ as OoxmlNamespaceBinding, U as OoxmlNodeId, b_ as OoxmlNodeIdentityRules, ac as OoxmlNoteNode, ag as OoxmlNoteRefNode, ah as OoxmlNoteReferenceNode, a1 as OoxmlPackageLimits, Y as OoxmlPackageRejection, b$ as OoxmlPackageResult, c0 as OoxmlParagraphPropertiesNode, c1 as OoxmlPartMetadata, c2 as OoxmlReadRejection, c3 as OoxmlReadResult, c4 as OoxmlRunNode, c5 as OoxmlRunPropertiesNode, ai as OoxmlSeparatorNode, c6 as OoxmlTabNode, c7 as OoxmlTextElementNode, c8 as OoxmlTextNode, c9 as OoxmlWmlValAttribute, ca as OoxmlXmlSpaceAttribute, cb as OverrideRecord, cc as RelationshipError, cd as RelationshipSetResult, ce as RelationshipTargetResolver, cf as ResolveResult, cg as ResolvedRelationship, d as ReviewCustomItem, g as ReviewRevisionKind, h as RevisionAddress, a2 as RevisionAuthorEntry, a3 as RevisionAuthorResult, a4 as RevisionAuthorSkipReason, a5 as RevisionBatchEntry, a6 as RevisionBatchResult, a7 as RevisionBatchSkipReason, ch as SetLegacyCheckboxOp, ci as SetLegacyDropdownOp, cj as SetTextFormFieldDefaultOp, al as SourceCrop, ck as TABLE_BORDER_STYLES, cl as TabStopWrite, aJ as TableBorderStyle, cm as TargetMode, cn as TextFormFieldOptions, co as TextFormFieldRange, cp as TextFormFieldType, cq as TreeDocOpKind, cr as TreeOpEffect, cs as W15_NAMESPACE_URI, ct as WML_NAMESPACE_URI, cu as XMLNS_NAMESPACE_URI, cv as XML_NAMESPACE_URI, cw as XmlLimits, cx as XmlNode, cy as XmlRejection, cz as XmlResult, cA as ZipLimits, cB as ZipReadResult, cC as ZipRejection, cD as allocateContentControlId, cE as asciiFold, cF as buildContentTypeIndex, cG as buildRelationshipSet, cH as childElements, cI as commentAnchorsOfStory, cJ as commentsOfPart, cK as contentControlContentChildren, cL as contentControlContentNodeOf, cM as contentControlEndPropertiesNodeOf, cN as contentControlLevelOf, cO as contentControlPropertiesNodeOf, cP as contentControlPropertiesOf, cQ as contentControlTextOf, cR as contentControlsIn, cS as detectDuplicateNames, cT as extensionKey, cU as findContentControl, cV as findElement, cW as firstReviewRange, cX as flattenContentControls, cY as hasAnyComment, cZ as hyperlinkAnchorOf, c_ as hyperlinkRelationshipIdOf, c$ as hyperlinkTargetOf, d0 as isContentControlContentNode, d1 as isContentControlNode, d2 as isContentControlWrapper, d3 as isContentRevisionKind, d4 as isHyperlinkNode, d5 as isRangeMarkerKind, d6 as isValidMime, d7 as legacyCheckboxFieldsOf, d8 as lockForbidsEdit, d9 as lockForbidsRemoval, da as normalizePartName, db as orderedContentControlProperties, dc as parseContentControlId, dd as partNameKey, de as planRevisionAuthorChange, df as planRevisionBatch, dg as projectDrawing, dh as readOnOffChild, di as readOoxmlPackage, dj as readOoxmlPart, dk as readXml, dl as readZip, dm as resolveContentControlLock, dn as resolveContentType, dp as resolveImageRelationship, dq as resolveInternalTarget, dr as resolveRelationship, ds as reviewItemKey, dt as reviewItemRanges, du as textContent, dv as textFormFieldsOf, dw as threadStateOfPart, dx as validateExternalTarget, dy as withPart, dz as writeOoxmlPackage, dA as writeZip } from './types-barrel-D3xCgQX6.js';
19
+ import { k as FieldResultsMode, e as TreeModelChange, f as TreeDocumentStore, T as TreePackageStore, S as StoryScope } from './tree-package-fragment-BeeKxDw8.js';
20
+ export { l as AtomicNoteSpan, C as CascadeDeletedNoteReferencesOptions, D as DEFAULT_MAX_EDITABLE_STORY_PARTS, m as DrawingPropertyIdResult, F as FragmentPasteInput, j as FragmentPasteResult, n as HeaderFooterKind, o as HeaderFooterLifecycleImpact, p as HeaderFooterLifecycleOp, q as HeaderFooterLifecycleRejection, s as HeaderFooterLifecycleResult, H as HeaderFooterParts, b as HeaderFooterSectionResolution, t as HeaderFooterSlotMeta, c as HeaderFooterVariant, u as HistoryCaptureKind, d as HistoryGroup, M as MAX_FRAGMENT_DECODED_BYTES, v as MAX_NOTES_PER_PART, w as MAX_NOTE_REFERENCE_PARTS, x as MAX_NOTE_REFERENCE_SCAN, y as NOTE_ATOM_CHAR, z as NOTE_CONTINUATION_SEPARATOR_ID, B as NOTE_ID_MAX, E as NOTE_ID_MIN, G as NOTE_SEPARATOR_ID, J as NoteDiagnostic, K as NoteDiagnosticCode, N as NoteKind, L as NoteLifecycleImpact, O as NoteLifecycleOp, P as NoteLifecycleOptions, Q as NoteLifecycleRejection, U as NoteLifecycleResult, V as NoteReferenceHit, W as NoteReferenceScanBudget, X as NoteType, Y as PackageTransactResult, Z as RemotePackageAttribution, g as SelectionMark, _ as StoryResolveResult, a as StoryTargetRejection, $ as TreeDocumentStoreOptions, a0 as TreePackageStoreOptions, a1 as TreeStoryRef, h as TreeTransactOptions, a2 as TreeTransactResult, a3 as TreeTransactionContext, a4 as allocateDrawingPropertyId, a5 as allocateNoteId, a6 as applyFragmentPaste, a7 as applyHeaderFooterLifecycleOp, a8 as applyNoteLifecycleOp, a9 as atomicNoteSpansOf, aa as cascadeDeletedNoteReferences, ab as collectNoteReferences, ac as collectPackageNoteReferences, ad as collectSectionPropertyNodes, ae as createNoteReferenceScanBudget, af as customMarkFollows, ag as diagnoseNoteReferences, ah as findNoteById, ai as formatNoteScopeId, aj as isContinuationSeparatorNode, ak as isEndnotesNode, al as isFootnotesNode, am as isHeaderFooterLifecycleOp, an as isNormalNote, ao as isNoteAtomNode, ap as isNoteLifecycleOp, aq as isNoteNode, ar as isNoteRefNode, as as isNoteReferenceNode, at as isSeparatorNode, au as normalNoteIds, av as noteAtomText, aw as noteIdOf, ax as noteKindOf, ay as noteRefKindOf, az as noteReferenceKindOf, aA as noteTypeOf, aB as notesOf, aC as notesPartHasId, aD as observeHistoryGroup, aE as parseNoteId, aF as parseNoteScopeId, r as reportHistoryGroup, aG as resolveHeaderFooterParts, aH as resolveHeaderFooterPartsBySection, aI as resolveHeaderFooterResolutionBySection, aJ as resolveNotesPart, aK as withBinaryPart, aL as withEmbeddedImage, aM as withoutUnreferencedImagePart } from './tree-package-fragment-BeeKxDw8.js';
21
+ import { O as OmmlEquationProjection } from './omml-equation-CuzBL5DD.js';
22
+ export { D as DEFAULT_OMML_LIMITS, E as EquationExpression, L as LinearMathOmmlResult, a as LinearMathParseResult, b as LinearMathRejection, c as OFFICE_MATH_NAMESPACE_URI, d as OmmlLimits, e as equationExpressionToLinearMath, l as linearMathToOmml, p as parseLinearMath, f as projectOmmlEquation } from './omml-equation-CuzBL5DD.js';
23
+ import { I as InsertCustomNodeWrite, C as CustomNodeWriteResult } from './custom-node-writes-cvL5rhcD.js';
24
+ export { b as BookmarkAnchor, B as BookmarkIndex, c as CustomNodePayloadRead, d as CustomNodePayloadWrite, a as CustomNodeSweepOutcome, e as CustomNodeSweepResult, f as CustomNodeWriteRejection, D as DocumentTrackingSettings, E as EmbeddedFont, F as FontStyleKey, L as ListKind, M as MAX_CUSTOM_NODE_LABEL_LENGTH, g as MAX_CUSTOM_NODE_PAYLOAD_LENGTH, N as NO_TRACKING_SETTINGS, R as ReadEmbeddedFontsOptions, h as buildBookmarkIndex, i as customNodePayloadsByControl, j as customNodePayloadsOf, k as deobfuscateFont, l as ensureListDefinition, m as ensureNumberingLevel, n as insertCustomNodeWrite, r as readEmbeddedFonts, o as readTrackingSettings, p as removeCustomNodeWrite, s as sweepCustomNodePayloads } from './custom-node-writes-cvL5rhcD.js';
25
+ export { c as collectFlowBlocks, a as commentBodyText, b as commentInitials, d as contentControlContentOf, e as deepParagraphOrderOfPart, i as isContentControl, f as isContentControlContent, p as paragraphOrderOfPart, w as walkAllStoryParagraphs, g as walkParagraphInline, h as walkStoryBlocks } from './review-paragraph-order-DT-n6ouC.js';
26
+ export { D as DocumentProperties, E as EnsuredHyperlinkRelationship, a as HeadlessDocumentRejection, H as HeadlessDocumentView, b as HeadlessThemeFonts, O as OpenHeadlessDocumentResult, c as authorableHyperlinkTarget, e as ensureHyperlinkRelationship, h as headlessViewOfStore, o as openHeadlessDocument, r as relationshipTargetIn } from './headless-document-view-qH331moE.js';
27
+ export { A as AuthoredNoteProperties, D as DEFAULT_ENDNOTE_PROPERTIES, a as DEFAULT_FOOTNOTE_PROPERTIES, E as EndnotePosition, F as FootnotePosition, N as NoteNumRestart, R as ResolvedEndnoteProperties, b as ResolvedFootnoteProperties, c as authoredDocumentEndnoteProperties, d as authoredDocumentFootnoteProperties, e as authoredEndnotePropertiesFromSectPr, f as authoredFootnotePropertiesFromSectPr, i as isLegalEndnotePosition, g as isLegalFootnotePosition, h as isLegalNumRestart, p as parseAuthoredNoteProperties, r as resolveEndnoteProperties, j as resolveFootnoteProperties, s as settingsPartOf } from './note-properties-4Y9o6Gyk.js';
28
+ export { a as DocumentProtectionEdit, D as DocumentProtectionState, N as NO_DOCUMENT_PROTECTION, r as readDocumentProtection } from './document-protection-BAGVGqaP.js';
15
29
  import './editor-scope-OHPwVQ5l.js';
16
30
 
17
31
  /**
@@ -37,6 +51,119 @@ declare function ooxmlTreesEqual(left: OoxmlPart | OoxmlNode, right: OoxmlPart |
37
51
  */
38
52
  declare function validateOoxmlPart(part: OoxmlPart): OoxmlInvariantResult;
39
53
 
54
+ /** An edited part, or the invariant violations that rejected the edit. */
55
+ type OoxmlEditResult = {
56
+ readonly ok: true;
57
+ readonly part: OoxmlPart;
58
+ } | {
59
+ readonly ok: false;
60
+ readonly issues: readonly OoxmlInvariantIssue[];
61
+ };
62
+ /**
63
+ * How an edit primitive validates its result.
64
+ *
65
+ * By default every primitive runs the full-part invariant validation before handing its
66
+ * result back — the safe reading for an isolated call. A TRANSACTION applying many ops pays
67
+ * that full-tree walk once per primitive, which is what made a hundred-paragraph paste
68
+ * quadratic; it defers instead, and runs the same validation ONCE on the final tree before
69
+ * anything is published. Deferring is only sound for a caller that owns a commit boundary:
70
+ * nothing may escape between the unvalidated intermediate and the validated result.
71
+ */
72
+ interface EditOptions {
73
+ readonly deferValidation?: boolean;
74
+ /**
75
+ * A shared minter for `@w:id` on a NEW revision, for the ops of one transaction.
76
+ *
77
+ * `nextRevisionId` walks the whole part to find the highest id in use, and a formatting
78
+ * write emits one op per run — so a Select All + Bold in suggesting mode paid a
79
+ * document-wide walk thousands of times over. The transaction hands its ops one minter
80
+ * instead, and it is DROPPED the moment an op that can import foreign revision ids runs
81
+ * (a paste carries its own), because a stale minter would hand out an id the document had
82
+ * just started using — and two revisions sharing an address are one card in the pane.
83
+ *
84
+ * Absent means "mint your own": every applier falls back to its own walk, which is what a
85
+ * caller outside a transaction gets.
86
+ */
87
+ readonly revisionIds?: () => string;
88
+ /**
89
+ * The transaction's revision-id bookkeeping for the tracked TEXT ops, where `revisionIds`
90
+ * above hands the property ops one shared id for their whole group.
91
+ *
92
+ * Absent means "mint your own and remember nothing", which is what a caller outside a
93
+ * transaction gets: every applier falls back to its own walk of the part.
94
+ */
95
+ readonly trackedRevisionIds?: TransactionRevisionIds;
96
+ /**
97
+ * How the op addresses saved field results (`field-result-mode.ts`). Absent keeps the mode
98
+ * of the enclosing store call, which is `atomic` outside any editable transaction.
99
+ */
100
+ readonly fieldResults?: FieldResultsMode;
101
+ }
102
+ /**
103
+ * What one transaction knows about the revision ids its tracked text ops write.
104
+ *
105
+ * TWO questions, and they are the same bookkeeping. `nextRevisionId` walks the whole part, so
106
+ * a replacement — a `deleteText` and an `insertText` in one transaction — walked it twice, and
107
+ * on a five-hundred-page document that doubled the cost of every one. And an insertion aimed
108
+ * at the front edge of a deletion relocates past it only when that deletion is THIS
109
+ * transaction's own: typing over a selection. Backspace, then a keystroke, is two
110
+ * transactions, and there the typed text belongs in FRONT of the struck character, as Word
111
+ * writes it. Adjacency alone cannot tell the two apart; the ids can.
112
+ */
113
+ interface TransactionRevisionIds {
114
+ /** A fresh `@w:id`, from this transaction's one walk of the part. */
115
+ mint(): string;
116
+ /**
117
+ * Record a wrapper this transaction wrote, by its FULL `CT_TrackChange` identity — id,
118
+ * author and date, as `revisionKey` spells it. Not by the id alone: that number comes out
119
+ * of the file, nothing makes it unique, and a strike joining `w:id="3"` in one paragraph
120
+ * would otherwise claim an unrelated `w:id="3"` elsewhere as this edit's own.
121
+ */
122
+ wrote(key: string): void;
123
+ /** Whether this transaction wrote a wrapper with that identity. */
124
+ wroteUnder(key: string): boolean;
125
+ }
126
+ /** Every node id currently present in the part. */
127
+ declare function collectNodeIds(part: OoxmlPart): Set<string>;
128
+ /**
129
+ * Mint ids for nodes an edit introduces.
130
+ *
131
+ * Deterministic and collision-checked against the whole part: a structural-path id from the
132
+ * original parse (`/word/document.xml#0.1.2`) and a minted one (`/word/document.xml#new:3`)
133
+ * can never coincide, and the counter skips anything already taken so repeated edits in one
134
+ * session stay unique.
135
+ *
136
+ * Allocators share reservations across edited roots and restored roots. Preview edits,
137
+ * detached nodes, and undo branches must not reuse an identity that collaboration retains.
138
+ *
139
+ * Checks the part's node index directly rather than copying every id into a fresh set: the
140
+ * copy was O(document) per op, and an allocator is created for every op.
141
+ */
142
+ declare function createNodeIdAllocator(part: OoxmlPart, family?: 'new' | 'paste'): () => string;
143
+ /** Whether a node id exists in the part. */
144
+ declare function hasNode(part: OoxmlPart, nodeId: string): boolean;
145
+ /** Read a node back out of a part by id. */
146
+ declare function findNode(part: OoxmlPart, nodeId: string): OoxmlNode | null;
147
+ /** The element that holds a node, or null for the root and for unknown ids. */
148
+ declare function parentNodeOf(part: OoxmlPart, nodeId: string): OoxmlElement | null;
149
+ /** Replace one node's children wholesale. */
150
+ declare function replaceChildren(part: OoxmlPart, nodeId: string, children: readonly OoxmlNode[], options?: EditOptions): OoxmlEditResult;
151
+ /** Insert children into a node at `index` (clamped to the child list). */
152
+ declare function insertChildren(part: OoxmlPart, nodeId: string, index: number, children: readonly OoxmlNode[], options?: EditOptions): OoxmlEditResult;
153
+ /** Replace one node with another, keeping its position among its siblings. */
154
+ declare function replaceNode(part: OoxmlPart, nodeId: string, replacement: OoxmlNode, options?: EditOptions): OoxmlEditResult;
155
+ /** Remove a node and its subtree. */
156
+ declare function removeNode(part: OoxmlPart, nodeId: string, options?: EditOptions): OoxmlEditResult;
157
+ /**
158
+ * Apply several primitives as ONE atomic step.
159
+ *
160
+ * Each edit runs against the result of the previous one, and the whole sequence is
161
+ * validated once at the end. If any step fails, the ORIGINAL part is what the caller keeps
162
+ * — there is no partially-edited intermediate to publish. This is the shape a multi-`DocOp`
163
+ * store transaction needs.
164
+ */
165
+ declare function applyEdits(part: OoxmlPart, edits: readonly ((current: OoxmlPart) => OoxmlEditResult)[], options?: EditOptions): OoxmlEditResult;
166
+
40
167
  /** UTF-16 placeholder for one atomic field unit in `paragraphTextOf` / segments. */
41
168
  declare const FIELD_ATOM_CHAR = "\uFFFC";
42
169
  /**
@@ -130,6 +257,7 @@ interface AtomicFieldSpan {
130
257
  declare function atomicFieldSpansOf(paragraph: OoxmlParagraphNode, options?: {
131
258
  readonly maxNesting?: number;
132
259
  readonly maxInstructionChars?: number;
260
+ readonly fieldResults?: FieldResultsMode;
133
261
  }): readonly AtomicFieldSpan[];
134
262
  /** Whether `fldCharType` is a legal ST_FldCharType value (used by tests / guards). */
135
263
  declare function isLegalFldCharType(value: string): boolean;
@@ -226,131 +354,26 @@ declare function inlineControlEndingAt(paragraph: OoxmlParagraphNode, offset: nu
226
354
  /** The forward-delete mirror: the control whose content STARTS exactly at `offset`. */
227
355
  declare function inlineControlStartingAt(paragraph: OoxmlParagraphNode, offset: number): InlineControlSpan | null;
228
356
 
229
- /** An edited part, or the invariant violations that rejected the edit. */
230
- type OoxmlEditResult = {
231
- readonly ok: true;
232
- readonly part: OoxmlPart;
233
- } | {
234
- readonly ok: false;
235
- readonly issues: readonly OoxmlInvariantIssue[];
236
- };
237
- /**
238
- * How an edit primitive validates its result.
239
- *
240
- * By default every primitive runs the full-part invariant validation before handing its
241
- * result back — the safe reading for an isolated call. A TRANSACTION applying many ops pays
242
- * that full-tree walk once per primitive, which is what made a hundred-paragraph paste
243
- * quadratic; it defers instead, and runs the same validation ONCE on the final tree before
244
- * anything is published. Deferring is only sound for a caller that owns a commit boundary:
245
- * nothing may escape between the unvalidated intermediate and the validated result.
246
- */
247
- interface EditOptions {
248
- readonly deferValidation?: boolean;
249
- /**
250
- * A shared minter for `@w:id` on a NEW revision, for the ops of one transaction.
251
- *
252
- * `nextRevisionId` walks the whole part to find the highest id in use, and a formatting
253
- * write emits one op per run — so a Select All + Bold in suggesting mode paid a
254
- * document-wide walk thousands of times over. The transaction hands its ops one minter
255
- * instead, and it is DROPPED the moment an op that can import foreign revision ids runs
256
- * (a paste carries its own), because a stale minter would hand out an id the document had
257
- * just started using — and two revisions sharing an address are one card in the pane.
258
- *
259
- * Absent means "mint your own": every applier falls back to its own walk, which is what a
260
- * caller outside a transaction gets.
261
- */
262
- readonly revisionIds?: () => string;
263
- /**
264
- * The transaction's revision-id bookkeeping for the tracked TEXT ops, where `revisionIds`
265
- * above hands the property ops one shared id for their whole group.
266
- *
267
- * Absent means "mint your own and remember nothing", which is what a caller outside a
268
- * transaction gets: every applier falls back to its own walk of the part.
269
- */
270
- readonly trackedRevisionIds?: TransactionRevisionIds;
271
- }
272
- /**
273
- * What one transaction knows about the revision ids its tracked text ops write.
274
- *
275
- * TWO questions, and they are the same bookkeeping. `nextRevisionId` walks the whole part, so
276
- * a replacement — a `deleteText` and an `insertText` in one transaction — walked it twice, and
277
- * on a five-hundred-page document that doubled the cost of every one. And an insertion aimed
278
- * at the front edge of a deletion relocates past it only when that deletion is THIS
279
- * transaction's own: typing over a selection. Backspace, then a keystroke, is two
280
- * transactions, and there the typed text belongs in FRONT of the struck character, as Word
281
- * writes it. Adjacency alone cannot tell the two apart; the ids can.
282
- */
283
- interface TransactionRevisionIds {
284
- /** A fresh `@w:id`, from this transaction's one walk of the part. */
285
- mint(): string;
286
- /**
287
- * Record a wrapper this transaction wrote, by its FULL `CT_TrackChange` identity — id,
288
- * author and date, as `revisionKey` spells it. Not by the id alone: that number comes out
289
- * of the file, nothing makes it unique, and a strike joining `w:id="3"` in one paragraph
290
- * would otherwise claim an unrelated `w:id="3"` elsewhere as this edit's own.
291
- */
292
- wrote(key: string): void;
293
- /** Whether this transaction wrote a wrapper with that identity. */
294
- wroteUnder(key: string): boolean;
295
- }
296
- /** Every node id currently present in the part. */
297
- declare function collectNodeIds(part: OoxmlPart): Set<string>;
298
- /**
299
- * Mint ids for nodes an edit introduces.
300
- *
301
- * Deterministic and collision-checked against the whole part: a structural-path id from the
302
- * original parse (`/word/document.xml#0.1.2`) and a minted one (`/word/document.xml#new:3`)
303
- * can never coincide, and the counter skips anything already taken so repeated edits in one
304
- * session stay unique.
305
- *
306
- * Allocators share reservations across edited roots and restored roots. Preview edits,
307
- * detached nodes, and undo branches must not reuse an identity that collaboration retains.
308
- *
309
- * Checks the part's node index directly rather than copying every id into a fresh set: the
310
- * copy was O(document) per op, and an allocator is created for every op.
311
- */
312
- declare function createNodeIdAllocator(part: OoxmlPart, family?: 'new' | 'paste'): () => string;
313
- /** Whether a node id exists in the part. */
314
- declare function hasNode(part: OoxmlPart, nodeId: string): boolean;
315
- /** Read a node back out of a part by id. */
316
- declare function findNode(part: OoxmlPart, nodeId: string): OoxmlNode | null;
317
- /** The element that holds a node, or null for the root and for unknown ids. */
318
- declare function parentNodeOf(part: OoxmlPart, nodeId: string): OoxmlElement | null;
319
- /** Replace one node's children wholesale. */
320
- declare function replaceChildren(part: OoxmlPart, nodeId: string, children: readonly OoxmlNode[], options?: EditOptions): OoxmlEditResult;
321
- /** Insert children into a node at `index` (clamped to the child list). */
322
- declare function insertChildren(part: OoxmlPart, nodeId: string, index: number, children: readonly OoxmlNode[], options?: EditOptions): OoxmlEditResult;
323
- /** Replace one node with another, keeping its position among its siblings. */
324
- declare function replaceNode(part: OoxmlPart, nodeId: string, replacement: OoxmlNode, options?: EditOptions): OoxmlEditResult;
325
- /** Remove a node and its subtree. */
326
- declare function removeNode(part: OoxmlPart, nodeId: string, options?: EditOptions): OoxmlEditResult;
327
- /**
328
- * Apply several primitives as ONE atomic step.
329
- *
330
- * Each edit runs against the result of the previous one, and the whole sequence is
331
- * validated once at the end. If any step fails, the ORIGINAL part is what the caller keeps
332
- * — there is no partially-edited intermediate to publish. This is the shape a multi-`DocOp`
333
- * store transaction needs.
334
- */
335
- declare function applyEdits(part: OoxmlPart, edits: readonly ((current: OoxmlPart) => OoxmlEditResult)[], options?: EditOptions): OoxmlEditResult;
336
-
337
357
  /** Structural validation, run before any tree work so a rejection changes nothing. */
338
358
  declare function validateTreeOp(part: OoxmlPart, op: TreeDocOp): TreeOpRejection | null;
339
359
 
340
360
  /**
341
- * Apply one validated op to a part.
361
+ * Paragraph text as the ops address it, for tests and callers computing offsets.
342
362
  *
343
- * Validation runs first and returns before any tree work, so a rejected op is a true no-op:
344
- * the caller keeps the part it passed in, unchanged and still frozen.
345
- *
346
- * `options.deferValidation` passes through to the edit primitives: a transaction applying
347
- * many ops re-validates the whole part once at its commit boundary rather than after every
348
- * primitive, which is the difference between a paste that is linear and one that is
349
- * quadratic in document size.
363
+ * `fieldResults` defaults to the mode of the store call in progress, which is `atomic` outside
364
+ * any editable transaction: every field is one unit, the raw text collaboration and
365
+ * automation read. `editable` reads saved field results as text, as an editor in that mode
366
+ * addresses them.
367
+ */
368
+ declare function paragraphTextOf(part: OoxmlPart, paragraphId: string, options?: {
369
+ readonly fieldResults?: FieldResultsMode;
370
+ }): string | null;
371
+
372
+ /**
373
+ * Apply one op. `options.fieldResults` installs the field-result addressing mode for the
374
+ * op's whole run (`field-result-mode.ts`); absent keeps the enclosing mode.
350
375
  */
351
376
  declare function applyTreeOp(part: OoxmlPart, op: TreeDocOp, options?: EditOptions): TreeOpResult;
352
- /** Paragraph text as the ops address it, for tests and callers computing offsets. */
353
- declare function paragraphTextOf(part: OoxmlPart, paragraphId: string): string | null;
354
377
 
355
378
  /**
356
379
  * Every kind of thing the registry gives a stable identity to.
@@ -1199,7 +1222,12 @@ declare function withNewPart(pkg: OoxmlPackage, partName: string, root: OoxmlEle
1199
1222
  */
1200
1223
  declare function validatePackageInvariants(pkg: OoxmlPackage): PackageInvariantResult;
1201
1224
 
1202
- /** Whether a string is a valid XML NCName — a name with no colon. */
1225
+ /**
1226
+ * Whether a string is a valid XML NCName in the strict ASCII profile — a name with no colon.
1227
+ *
1228
+ * This is the rule for names the engine itself writes or accepts from a caller. Names read
1229
+ * from a document use {@link isXmlNCName}, which admits every XML 1.0 name.
1230
+ */
1203
1231
  declare function isValidNCName(name: string): boolean;
1204
1232
  /** A QName is an optional `prefix:` (both NCNames) — never attacker-derived. */
1205
1233
  declare function isValidQName(name: string): boolean;
@@ -2500,8 +2528,8 @@ declare function locateSites(part: OoxmlPart): ReadonlyMap<string, SiteLocation>
2500
2528
  /**
2501
2529
  * Every revision in one story, one card per DECISION.
2502
2530
  *
2503
- * Sites sharing an `(id, author, date)` and revision kind coalesce into one decision
2504
- * containing every canonical site and affected range.
2531
+ * Sites sharing an `(id, author, date)` and revision kind retain their source sites.
2532
+ * Unchanged text separates inline decisions even when their source attributes match.
2505
2533
  *
2506
2534
  * Cached by part root except for paragraph-scoped synthetic roots. Results are shared
2507
2535
  * and readonly; part names are checked because ranges embed them.
@@ -2672,7 +2700,7 @@ declare function formsProtectionEnabled(root: OoxmlNode | null | undefined): boo
2672
2700
  declare function sectionProtectsForms(part: OoxmlPart, nodeId: string): boolean;
2673
2701
 
2674
2702
  /** Every {@link TreeDocOpKind}, for validation and exhaustiveness checks. */
2675
- declare const TREE_DOC_OP_KINDS: readonly ["replaceStoryBlocks", "insertText", "deleteText", "setParagraphMarkRevision", "proposeParagraphMerge", "insertCommentMarker", "acceptRevision", "rejectRevision", "acceptAllRevisions", "rejectAllRevisions", "insertTab", "insertHardBreak", "insertPageBreak", "insertPageField", "setFieldCode", "setListLevel", "setListNumbering", "setParagraphTabStops", "setParagraphMarkProperties", "splitParagraph", "splitParagraphMany", "joinParagraphs", "setRunProperties", "setParagraphProperties", "setSectionProperties", "setSectionMark", "insertHyperlink", "setHyperlinkTarget", "removeHyperlink", "setMathEquation", "removeMathEquation", "setContentControlValue", "removeContentControl", "insertInlineContentControl", "addRepeatingSectionItem", "removeRepeatingSectionItem", "deleteBlock", "insertTable", "insertTableRow", "deleteTableRow", "insertTableColumn", "deleteTableColumn", "setTableColumnWidths", "setTableRightEdgeWidth", "setTableRowHeight", "setTableProperties", "authorTable", "setTableCellBorders", "setTableCellFill", "setTableCellVerticalAlignment", "createHeaderFooter", "deleteHeaderFooter", "linkToPrevious", "unlinkFromPrevious", "setSectionFurnitureOptions", "setDocumentProtection", "insertNote", "deleteNote", "convertNote", "convertAllNotes", "setNoteProperties", "setContentControlProperties", "insertContentControl", "insertFragment", "insertDrawing", "replaceDrawingResource", "deleteDrawing", "resizeDrawing", "cropDrawing", "positionDrawing", "setDrawingWrap", "setDrawingMetadata", "setDrawingLocks", "transformDrawing", "insertToc", "replaceTocResult", "rewriteTocPageNumbers", "refreshFieldResults", "setTextFormFieldDefault", "commitTextFormField", "setLegacyCheckbox", "setLegacyDropdown", "insertBuildingBlock"];
2703
+ declare const TREE_DOC_OP_KINDS: readonly ["replaceStoryBlocks", "insertText", "deleteText", "setParagraphMarkRevision", "proposeParagraphMerge", "insertCommentMarker", "acceptRevision", "rejectRevision", "acceptAllRevisions", "rejectAllRevisions", "setRevisionAttribution", "insertTab", "insertHardBreak", "insertPageBreak", "insertPageField", "setFieldCode", "setListLevel", "setListNumbering", "setParagraphTabStops", "setParagraphMarkProperties", "splitParagraph", "splitParagraphMany", "joinParagraphs", "setRunProperties", "setParagraphProperties", "setSectionProperties", "setSectionMark", "insertHyperlink", "setHyperlinkTarget", "removeHyperlink", "setMathEquation", "removeMathEquation", "setContentControlValue", "removeContentControl", "insertInlineContentControl", "addRepeatingSectionItem", "removeRepeatingSectionItem", "deleteBlock", "insertTable", "insertTableRow", "deleteTableRow", "insertTableColumn", "deleteTableColumn", "setTableColumnWidths", "setTableRightEdgeWidth", "setTableRowHeight", "setTableProperties", "authorTable", "setTableCellBorders", "setTableCellFill", "setTableCellVerticalAlignment", "createHeaderFooter", "deleteHeaderFooter", "linkToPrevious", "unlinkFromPrevious", "setSectionFurnitureOptions", "setDocumentProtection", "insertNote", "deleteNote", "convertNote", "convertAllNotes", "setNoteProperties", "setContentControlProperties", "insertContentControl", "insertFragment", "insertDrawing", "replaceDrawingResource", "deleteDrawing", "resizeDrawing", "cropDrawing", "positionDrawing", "setDrawingWrap", "setDrawingMetadata", "setDrawingLocks", "transformDrawing", "insertToc", "replaceTocResult", "rewriteTocPageNumbers", "refreshFieldResults", "setTextFormFieldDefault", "commitTextFormField", "setLegacyCheckbox", "setLegacyDropdown", "insertBuildingBlock"];
2676
2704
 
2677
- export { ALL_FROZEN_IDS, AUTHORABLE_PARAGRAPH_PROPERTIES, AUTHORABLE_RUN_PROPERTIES, BoundedCounter, Budget, BudgetError, CANONICAL_MUTATION_ORIGINS, COMPARATORS, CUSTOM_NODE_XPATH_PREFIX, CUSTOM_XML_PROPS_REL, CUSTOM_XML_PROPS_TYPE, CUSTOM_XML_REL, CancellationController, CancellationError, CommentRecord, CommentThreadState, CustomNodeWriteResult, DANGEROUS_KEYS, DATASTORE_NAMESPACE_URI, DEFAULT_FORMATTING_DISPLAY_MODE, DEFAULT_VIEW_SETTINGS, DEPENDENCY_KEY_IDS, DangerousKeyError, DeterministicClock, DeterministicMemoryMeter, DrawingTreeDocOp, FIELD_ATOM_CHAR, ID_KINDS, INERT_EXECUTABLE_KINDS, ImageWrapTarget, ImpactClass, InsertCustomNodeWrite, LIMIT_KEYS, LIMIT_SPECS, LimitExceededError, MAX_STORY_SDT_NESTING, NON_CANONICAL_ORIGINS, ORIGIN_IDS, OmmlEquationProjection, OoxmlAttribute, OoxmlElement, OoxmlFldCharNode, OoxmlFldSimpleNode, OoxmlGenericElementNode, OoxmlHardBreakNode, OoxmlInstrTextNode, OoxmlInvariantIssue, OoxmlInvariantResult, OoxmlNode, OoxmlPackage, OoxmlParagraphNode, OoxmlPart, OoxmlProperty, PAGE_BREAK_CHAR, PortRegistry, PortResolutionError, PrefixAllocator, RESULT_IDS, RUNTIME_PORT_IDS, RegistryError, RelationshipRecord, ResourceLimits, ReviewCommentItem, ReviewItem, ReviewModelInput, ReviewPosition, ReviewRange, ReviewRevisionItem, SEARCH_MATCH_LIMIT, SEARCH_QUERY_MAX, SequentialIdentity, StoryScope, TOC_LEVEL_INDENT_TWIPS, TOC_MAX_BOOKMARKS_PER_REFRESH, TOC_MAX_ENTRIES, TOC_MAX_FIELD_NESTING, TOC_MAX_INSTRUCTION_CHARS, TOC_MAX_PAGE_PASSES, TREE_DOC_OP_KINDS, TWIPS_PER_POINT, TreeDocOp, TreeDocumentStore, TreeModelChange, TreeOpRejection, TreeOpResult, TreePackageStore, addComment, addPackageComment, applyEdits, applyTreeOp, assertLimitInvariants, assertValidId, assertValidQName, atomicFieldSpansOf, authoredProperties, beginOperation, bodyStoryRoot, bookmarkPairNodes, boundCustomXmlNodeIdOf, boundCustomXmlNodeIds, boundCustomXmlNodeIdsInPackage, buildTocContentControl, buildTocEntryParagraph, buildingBlockGalleryOf, buildingBlocksForControl, buildingBlocksOf, canonicalOoxmlFingerprint, canonicalize, cascadeEmptiedComments, collectNodeIds, collectReviewItems, collectRevisionSites, collectStoryParagraphs, commentItemsOf, commentPartNameOf, commentsExtendedPartNameOf, compareArtifacts, compareSemVer, containsCssFetch, contentTypesPartBytes, createNodeIdAllocator, customNodeBinding, customXmlDataParts, customXmlLabelXPath, customXmlNodes, customXmlPrefixMappings, datastoreItemIdFor, deleteCommentThread, deletePackageComments, deriveOoxmlIndexes, detectBodyTocs, diffSemanticDigests, digestPart, directParagraphMarkProperties, directParagraphProperties, displayMathAlignment, drawingOpImpact, endOperation, equationsOfAtom, escapeCssString, escapeXml, extractFragmentPackage, fieldAtomText, fieldOnOffAttribute, findCustomXmlDataPart, findDetectedToc, findNode, findOccurrences, fingerprint, fldCharType, fldSimpleInstr, fnv1a32, foldCase, formatOwnedRunIds, formattableRanges, formsProtectionEnabled, glossaryPartOf, hardBreakAttributes, hardBreakKind, hardBreakText, hasCommentPart, hasLegacyFormFieldData, hasNode, hashAuthored, indexStyles, inlineControlEndingAt, inlineControlStartingAt, insertChildren, insertPackageCustomNode, instrTextValue, isAuthorableRunProperty, isDangerousKey, isDrawingTreeDocOp, isEvaluableField, isFieldChrome, isFldChar, isFldCharNode, isFldSimple, isFldSimpleNode, isInertExecutable, isInstrText, isInstrTextNode, isLegalFldCharType, isOmmlDisplay, isOmmlEquationAtom, isPageBreakNode, isSearchableQuery, isStoryPart, isValidId, isValidNCName, isValidParaId, isValidQName, isWholeWord, linkRevisionReplies, locateSites, makeLimitCounter, materializeGlossaryPlaceholders, mergeFragmentIntoPackage, mergedFontProperty, mergedMultiSettingProperty, mergedParagraphMarkProperties, mergedProperties, mintParaId, mintedParagraphIdentityAttributes, nextCommentId, normalizeParagraphIdentity, nullRecord, ooxmlTreesEqual, paraIdOf, paragraphOffsetIndex, paragraphTextOf, parentNodeOf, parseSemVer, parseTocInstruction, planTocEntries, points, pointsToTwips, projectOmmlAtom, projectOmmlDisplay, propertyContainer, readCustomXmlNode, readTwipsMeasure, readViewSettings, relationshipsOf, relsPartNameFor, removeNode, removePackageCustomNode, replaceChildren, replaceNode, replayFixture, resolve, resolveContentTypeOf, resolveTocRowHeadings, revisionItemsOf, runAddressRanges, runPropertyEdits, runsCovering, sanitizeHref, satisfies, scrubExport, sectionProtectsForms, segmentsOf, semanticDigest, serializeOoxmlPart, setCommentResolved, setPackageCommentResolved, stableHash, storyParagraphs, storyRootsOf, stylesPartOf, textboxStoriesInPart, toSafeRecord, tocEntryText, tocLeftIndentTwips, twips, twipsToPoints, usedParaIds, validateDrawingOp, validateFixture, validateOoxmlPart, validatePackageInvariants, validateTreeOp, w14RootPrefix, withContentTypeOverride, withCustomXmlDataPart, withCustomXmlNode, withExportedCustomNodes, withNewPart, withRelationship, withoutCustomXmlDataPart, withoutCustomXmlNode, withoutOrphanCustomXmlNodes, wrapTargetToAnchorSpec };
2705
+ export { ALL_FROZEN_IDS, AUTHORABLE_PARAGRAPH_PROPERTIES, AUTHORABLE_RUN_PROPERTIES, BoundedCounter, Budget, BudgetError, CANONICAL_MUTATION_ORIGINS, COMPARATORS, CUSTOM_NODE_XPATH_PREFIX, CUSTOM_XML_PROPS_REL, CUSTOM_XML_PROPS_TYPE, CUSTOM_XML_REL, CancellationController, CancellationError, CommentRecord, CommentThreadState, CustomNodeWriteResult, DANGEROUS_KEYS, DATASTORE_NAMESPACE_URI, DEFAULT_FORMATTING_DISPLAY_MODE, DEFAULT_VIEW_SETTINGS, DEPENDENCY_KEY_IDS, DangerousKeyError, DeterministicClock, DeterministicMemoryMeter, DrawingTreeDocOp, FIELD_ATOM_CHAR, FieldResultsMode, ID_KINDS, INERT_EXECUTABLE_KINDS, ImageWrapTarget, ImpactClass, InsertCustomNodeWrite, LIMIT_KEYS, LIMIT_SPECS, LimitExceededError, MAX_STORY_SDT_NESTING, NON_CANONICAL_ORIGINS, ORIGIN_IDS, OmmlEquationProjection, OoxmlAttribute, OoxmlElement, OoxmlFldCharNode, OoxmlFldSimpleNode, OoxmlGenericElementNode, OoxmlHardBreakNode, OoxmlInstrTextNode, OoxmlInvariantIssue, OoxmlInvariantResult, OoxmlNode, OoxmlPackage, OoxmlParagraphNode, OoxmlPart, OoxmlProperty, PAGE_BREAK_CHAR, PortRegistry, PortResolutionError, PrefixAllocator, RESULT_IDS, RUNTIME_PORT_IDS, RegistryError, RelationshipRecord, ResourceLimits, ReviewCommentItem, ReviewItem, ReviewModelInput, ReviewPosition, ReviewRange, ReviewRevisionItem, SEARCH_MATCH_LIMIT, SEARCH_QUERY_MAX, SequentialIdentity, StoryScope, TOC_LEVEL_INDENT_TWIPS, TOC_MAX_BOOKMARKS_PER_REFRESH, TOC_MAX_ENTRIES, TOC_MAX_FIELD_NESTING, TOC_MAX_INSTRUCTION_CHARS, TOC_MAX_PAGE_PASSES, TREE_DOC_OP_KINDS, TWIPS_PER_POINT, TreeDocOp, TreeDocumentStore, TreeModelChange, TreeOpRejection, TreeOpResult, TreePackageStore, addComment, addPackageComment, applyEdits, applyTreeOp, assertLimitInvariants, assertValidId, assertValidQName, atomicFieldSpansOf, authoredProperties, beginOperation, bodyStoryRoot, bookmarkPairNodes, boundCustomXmlNodeIdOf, boundCustomXmlNodeIds, boundCustomXmlNodeIdsInPackage, buildTocContentControl, buildTocEntryParagraph, buildingBlockGalleryOf, buildingBlocksForControl, buildingBlocksOf, canonicalOoxmlFingerprint, canonicalize, cascadeEmptiedComments, collectNodeIds, collectReviewItems, collectRevisionSites, collectStoryParagraphs, commentItemsOf, commentPartNameOf, commentsExtendedPartNameOf, compareArtifacts, compareSemVer, containsCssFetch, contentTypesPartBytes, createNodeIdAllocator, customNodeBinding, customXmlDataParts, customXmlLabelXPath, customXmlNodes, customXmlPrefixMappings, datastoreItemIdFor, deleteCommentThread, deletePackageComments, deriveOoxmlIndexes, detectBodyTocs, diffSemanticDigests, digestPart, directParagraphMarkProperties, directParagraphProperties, displayMathAlignment, drawingOpImpact, endOperation, equationsOfAtom, escapeCssString, escapeXml, extractFragmentPackage, fieldAtomText, fieldOnOffAttribute, findCustomXmlDataPart, findDetectedToc, findNode, findOccurrences, fingerprint, fldCharType, fldSimpleInstr, fnv1a32, foldCase, formatOwnedRunIds, formattableRanges, formsProtectionEnabled, glossaryPartOf, hardBreakAttributes, hardBreakKind, hardBreakText, hasCommentPart, hasLegacyFormFieldData, hasNode, hashAuthored, indexStyles, inlineControlEndingAt, inlineControlStartingAt, insertChildren, insertPackageCustomNode, instrTextValue, isAuthorableRunProperty, isDangerousKey, isDrawingTreeDocOp, isEvaluableField, isFieldChrome, isFldChar, isFldCharNode, isFldSimple, isFldSimpleNode, isInertExecutable, isInstrText, isInstrTextNode, isLegalFldCharType, isOmmlDisplay, isOmmlEquationAtom, isPageBreakNode, isSearchableQuery, isStoryPart, isValidId, isValidNCName, isValidParaId, isValidQName, isWholeWord, linkRevisionReplies, locateSites, makeLimitCounter, materializeGlossaryPlaceholders, mergeFragmentIntoPackage, mergedFontProperty, mergedMultiSettingProperty, mergedParagraphMarkProperties, mergedProperties, mintParaId, mintedParagraphIdentityAttributes, nextCommentId, normalizeParagraphIdentity, nullRecord, ooxmlTreesEqual, paraIdOf, paragraphOffsetIndex, paragraphTextOf, parentNodeOf, parseSemVer, parseTocInstruction, planTocEntries, points, pointsToTwips, projectOmmlAtom, projectOmmlDisplay, propertyContainer, readCustomXmlNode, readTwipsMeasure, readViewSettings, relationshipsOf, relsPartNameFor, removeNode, removePackageCustomNode, replaceChildren, replaceNode, replayFixture, resolve, resolveContentTypeOf, resolveTocRowHeadings, revisionItemsOf, runAddressRanges, runPropertyEdits, runsCovering, sanitizeHref, satisfies, scrubExport, sectionProtectsForms, segmentsOf, semanticDigest, serializeOoxmlPart, setCommentResolved, setPackageCommentResolved, stableHash, storyParagraphs, storyRootsOf, stylesPartOf, textboxStoriesInPart, toSafeRecord, tocEntryText, tocLeftIndentTwips, twips, twipsToPoints, usedParaIds, validateDrawingOp, validateFixture, validateOoxmlPart, validatePackageInvariants, validateTreeOp, w14RootPrefix, withContentTypeOverride, withCustomXmlDataPart, withCustomXmlNode, withExportedCustomNodes, withNewPart, withRelationship, withoutCustomXmlDataPart, withoutCustomXmlNode, withoutOrphanCustomXmlNodes, wrapTargetToAnchorSpec };
2678
2706
  export type { AddCommentRequest, AddCommentResult, AnchorSnapshot, AtomicFieldSpan, AuditPort, AuthorizationPort, BuildingBlock, BuildingBlockGalleryFilter, CancellationPhase, CancellationPort, CancellationToken, CapabilityId, ClockPort, CommentAnchorRequest, CommentDeletionOwner, ComparatorDescriptor, ComparatorMode, ComparatorName, ComparisonResult, ConformanceFixture, ContentItem, Contribution, CustomNodeBinding, CustomNodeExportPolicy, CustomNodeExportRequest, CustomNodeExportResult, CustomXmlDataPart, CustomXmlDataPartResult, CustomXmlNode, DetectedToc, DigestDifference, DocumentViewSettings, EditOptions, EncodedEnvelope, EnforcementPhase, ExternalResourceConsentPort, FeatureBundle, FixtureExpectation, FixtureOutcome, FixtureSource, FixtureStep, FldCharType, FontPort, FormattingDisplayMode, FormattingRevisionAuthorFilter, FragmentCoverage, FragmentExtractRejection, FragmentExtractResult, FragmentMergeRejection, FragmentMergeResult, HardBreakKind, HrefProjection, IdKind, IdentityPort, ImagePort, InertExecutableKind, InlineControlSpan, Json, LimitSpec, LimitUnit, LinkableReviewItem, ModelChangeSummary, OffsetSpan, OoxmlEditResult, OoxmlIndexes, OoxmlStoryKind, OoxmlStoryRoot, OperationContext, OperationInit, PackageCommentDelete, PackageInvariantCode, PackageInvariantIssue, PackageInvariantResult, ParagraphDigest, ParagraphIndexEntry, ParagraphOffsetIndex, PersistencePort, Points, RegistryErrorCode, ReplacementPolicy, ReplayOutcome, ReplayReport, ReplayStore, Reservation, ResolveOptions, ResolvedRegistry, ResourceAccountingPort, RunPropertyEdit, SchedulingPort, ScrubResult, Segment, SemVer, SemanticDigest, SetCommentResolvedResult, ShapingPort, StoryDigest, StoryIndexEntry, StyleIndexEntry, TextMatchOptions, TextOccurrence, TextOccurrences, TextboxStoryRoot, TocEntryPlan, TocInstruction, TocOutlineHeading, TransactionRevisionIds, TransportPort, Twips, ValidationResult };
package/dist/store.js CHANGED
@@ -1 +1 @@
1
- export{o as Budget,n as BudgetError,F as COMPARATORS,q as CancellationController,p as CancellationError,W as DEFAULT_MAX_EDITABLE_STORY_PARTS,t as DeterministicClock,A as DeterministicMemoryMeter,f as ID_KINDS,y as LIMIT_KEYS,x as LIMIT_SPECS,ka as MAX_CUSTOM_NODE_LABEL_LENGTH,ja as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,T as MAX_FRAGMENT_DECODED_BYTES,s as PortRegistry,r as PortResolutionError,l as RegistryError,Sa as SEARCH_MATCH_LIMIT,Ra as SEARCH_QUERY_MAX,u as SequentialIdentity,V as TreeDocumentStore,X as TreePackageStore,ba as addComment,ga as addPackageComment,U as applyFragmentPaste,B as assertLimitInvariants,h as assertValidId,v as beginOperation,C as canonicalize,Oa as collectReviewItems,Ha as commentBodyText,Ja as commentInitials,Na as commentItemsOf,ea as commentPartNameOf,fa as commentsExtendedPartNameOf,G as compareArtifacts,j as compareSemVer,oa as customNodePayloadsByControl,pa as customNodePayloadsOf,ia as deletePackageComments,w as endOperation,R as extractFragmentPackage,Wa as findOccurrences,H as fingerprint,va as firstReviewRange,Ta as foldCase,da as hasCommentPart,K as hashAuthored,bb as headlessViewOfStore,la as insertCustomNodeWrite,qa as insertPackageCustomNode,Va as isSearchableQuery,g as isValidId,Ua as isWholeWord,Qa as linkRevisionReplies,Ka as locateSites,z as makeLimitCounter,Xa as materializeGlossaryPlaceholders,S as mergeFragmentIntoPackage,aa as nextCommentId,ab as openHeadlessDocument,i as parseSemVer,Ya as planRevisionBatch,ma as removeCustomNodeWrite,ra as removePackageCustomNode,J as replayFixture,m as resolve,ta as reviewItemKey,ua as reviewItemRanges,Ma as revisionItemsOf,k as satisfies,ca as setCommentResolved,ha as setPackageCommentResolved,D as stableHash,na as sweepCustomNodePayloads,I as validateFixture}from'./chunk-L6V3IJ3S.js';export{ah as ACCEPTED_PARAGRAPH_PROPERTIES,$g as ACCEPTED_RUN_PROPERTIES,h as ALL_FROZEN_IDS,bh as AUTHORABLE_PARAGRAPH_PROPERTIES,ch as AUTHORABLE_RUN_PROPERTIES,p as BoundedCounter,c as CANONICAL_MUTATION_ORIGINS,Ab as CONTENT_CONTROL_ID_MAX,Sb as CONTENT_CONTROL_PROPERTY_ORDER,ii as CUSTOM_NODE_XPATH_PREFIX,Uh as CUSTOM_XML_PROPS_REL,Vh as CUSTOM_XML_PROPS_TYPE,Th as CUSTOM_XML_REL,G as DANGEROUS_KEYS,Wh as DATASTORE_NAMESPACE_URI,tg as DEFAULT_ENDNOTE_PROPERTIES,sg as DEFAULT_FOOTNOTE_PROPERTIES,Yg as DEFAULT_FORMATTING_DISPLAY_MODE,m as DEFAULT_IMAGE_RESOURCE_LIMITS,j as DEFAULT_LIMITS,Ae as DEFAULT_OMML_LIMITS,ke as DEFAULT_OOXML_PACKAGE_LIMITS,Oh as DEFAULT_VIEW_SETTINGS,zd as DEFAULT_ZIP_LIMITS,g as DEPENDENCY_KEY_IDS,H as DangerousKeyError,Te as FIELD_ATOM_CHAR,i as HARD_CEILINGS,gd as HYPERLINK_RELATIONSHIP_TYPE,C as IMAGE_RELATIONSHIP_TYPE,l as IMAGE_RESOURCE_HARD_CEILINGS,nd as IMAGE_WRAP_TARGETS,S as INERT_EXECUTABLE_KINDS,o as LimitExceededError,zb as MAX_CONTENT_CONTROLS_PER_PART,yb as MAX_CONTENT_CONTROL_NESTING,sc as MAX_NOTES_PER_PART,Gg as MAX_NOTE_REFERENCE_PARTS,Fg as MAX_NOTE_REFERENCE_SCAN,xc as MAX_STORY_SDT_NESTING,Md as MAX_SVG_SNIFF_BYTES,d as NON_CANONICAL_ORIGINS,Vb as NOTE_ATOM_CHAR,Zb as NOTE_CONTINUATION_SEPARATOR_ID,Xb as NOTE_ID_MAX,Wb as NOTE_ID_MIN,Yb as NOTE_SEPARATOR_ID,og as NO_DOCUMENT_PROTECTION,Mh as NO_TRACKING_SETTINGS,ze as OFFICE_MATH_NAMESPACE_URI,fd as OFFICE_RELATIONSHIP_NAMESPACE_URI,za as OOXML_NODE_IDENTITY_RULES,b as ORIGIN_IDS,cb as PAGE_BREAK_CHAR,ca as PrefixAllocator,e as RESULT_IDS,f as RUNTIME_PORT_IDS,Fj as TABLE_BORDER_STYLES,Vf as TOC_LEVEL_INDENT_TWIPS,qf as TOC_MAX_BOOKMARKS_PER_REFRESH,pf as TOC_MAX_ENTRIES,rf as TOC_MAX_FIELD_NESTING,of as TOC_MAX_INSTRUCTION_CHARS,sf as TOC_MAX_PAGE_PASSES,_g as TREE_DOC_OP_KINDS,Vc as TWIPS_PER_POINT,Ch as W15_NAMESPACE_URI,fa as WML_NAMESPACE_URI,ha as XMLNS_NAMESPACE_URI,ga as XML_NAMESPACE_URI,Ub as allocateContentControlId,_d as allocateDrawingPropertyId,tc as allocateNoteId,Ra as applyEdits,rg as applyHeaderFooterLifecycleOp,xh as applyNoteLifecycleOp,Yj as applyTreeOp,t as asciiFold,ba as assertValidQName,mf as atomicFieldSpansOf,rc as atomicNoteSpansOf,kg as authorableHyperlinkTarget,zg as authoredDocumentEndnoteProperties,yg as authoredDocumentFootnoteProperties,wg as authoredEndnotePropertiesFromSectPr,vg as authoredFootnotePropertiesFromSectPr,fh as authoredProperties,Bc as bodyStoryRoot,$f as bookmarkPairNodes,mi as boundCustomXmlNodeIdOf,ki as boundCustomXmlNodeIds,li as boundCustomXmlNodeIdsInPackage,Uf as buildBookmarkIndex,A as buildContentTypeIndex,D as buildRelationshipSet,Yf as buildTocContentControl,Xf as buildTocEntryParagraph,ig as buildingBlockGalleryOf,jg as buildingBlocksForControl,hg as buildingBlocksOf,ua as canonicalOoxmlFingerprint,yh as cascadeDeletedNoteReferences,Lh as cascadeEmptiedComments,Z as childElements,Jc as collectFlowBlocks,Ha as collectNodeIds,Jg as collectNoteReferences,Lg as collectPackageNoteReferences,$i as collectRevisionSites,Me as collectSectionPropertyNodes,Dc as collectStoryParagraphs,Dh as commentAnchorsOfStory,Fh as commentsOfPart,R as containsCssFetch,Eb as contentControlContentChildren,Ib as contentControlContentNodeOf,Hc as contentControlContentOf,Hb as contentControlEndPropertiesNodeOf,Lb as contentControlLevelOf,Gb as contentControlPropertiesNodeOf,Kb as contentControlPropertiesOf,Ob as contentControlTextOf,Mb as contentControlsIn,oe as contentTypesPartBytes,Xd as createImageResourceCache,Ia as createNodeIdAllocator,Hg as createNoteReferenceScanBudget,oc as customMarkFollows,ji as customNodeBinding,Zh as customXmlDataParts,gi as customXmlLabelXPath,bi as customXmlNodes,hi as customXmlPrefixMappings,Xh as datastoreItemIdFor,oj as deepParagraphOrderOfPart,Ih as deleteCommentThread,Re as deobfuscateFont,Pc as deriveOoxmlIndexes,vf as detectBodyTocs,v as detectDuplicateNames,Mg as diagnoseNoteReferences,dg as diffSemanticDigests,bg as digestPart,hh as directParagraphMarkProperties,gh as directParagraphProperties,Je as displayMathAlignment,Nj as drawingOpImpact,lg as ensureHyperlinkRelationship,eg as ensureListDefinition,fg as ensureNumberingLevel,De as equationExpressionToLinearMath,He as equationsOfAtom,Q as escapeCssString,M as escapeXml,z as extensionKey,df as fieldAtomText,cf as fieldOnOffAttribute,Nb as findContentControl,_h as findCustomXmlDataPart,wf as findDetectedToc,Y as findElement,Ka as findNode,wc as findNoteById,Fb as flattenContentControls,Ue as fldCharType,bf as fldSimpleInstr,jb as fnv1a32,$b as formatNoteScopeId,lh as formatOwnedRunIds,uh as formattableRanges,sj as formsProtectionEnabled,gg as glossaryPartOf,gb as hardBreakAttributes,db as hardBreakKind,fb as hardBreakText,Hh as hasAnyComment,Nd as hasBoundedSvgRoot,ff as hasLegacyFormFieldData,Ja as hasNode,id as hyperlinkAnchorOf,jd as hyperlinkRelationshipIdOf,kd as hyperlinkTargetOf,Vd as imageResourceLookupFor,Nc as indexStyles,Sf as inlineControlEndingAt,Tf as inlineControlStartingAt,Oa as insertChildren,af as instrTextValue,dh as isAuthorableRunProperty,Fc as isContentControl,Gc as isContentControlContent,Cb as isContentControlContentNode,Bb as isContentControlNode,Db as isContentControlWrapper,na as isContentRevisionKind,hc as isContinuationSeparatorNode,I as isDangerousKey,Sj as isDrawingTreeDocOp,cc as isEndnotesNode,U as isEvaluableField,ef as isFieldChrome,Ye as isFldChar,Ve as isFldCharNode,$e as isFldSimple,Xe as isFldSimpleNode,bc as isFootnotesNode,qg as isHeaderFooterLifecycleOp,hd as isHyperlinkNode,T as isInertExecutable,Ze as isInstrText,We as isInstrTextNode,Cg as isLegalEndnotePosition,nf as isLegalFldCharType,Dg as isLegalFootnotePosition,Eg as isLegalNumRestart,lc as isNormalNote,qc as isNoteAtomNode,wh as isNoteLifecycleOp,dc as isNoteNode,fc as isNoteRefNode,ec as isNoteReferenceNode,Fe as isOmmlDisplay,Ge as isOmmlEquationAtom,eb as isPageBreakNode,ra as isRangeMarkerKind,gc as isSeparatorNode,Ac as isStoryPart,y as isValidMime,$ as isValidNCName,hb as isValidParaId,aa as isValidQName,xi as legacyCheckboxFieldsOf,Ee as linearMathToOmml,Ud as liveDrawingReferenceCount,Qb as lockForbidsEdit,Rb as lockForbidsRemoval,jh as mergedFontProperty,mh as mergedMultiSettingProperty,nh as mergedParagraphMarkProperties,ih as mergedProperties,kb as mintParaId,ob as mintedParagraphIdentityAttributes,Og as normalNoteIds,qb as normalizeParagraphIdentity,r as normalizePartName,pc as noteAtomText,jc as noteIdOf,ic as noteKindOf,nc as noteRefKindOf,mc as noteReferenceKindOf,kc as noteTypeOf,uc as notesOf,Ng as notesPartHasId,J as nullRecord,fk as observeHistoryGroup,va as ooxmlTreesEqual,Tb as orderedContentControlProperties,ib as paraIdOf,Of as paragraphOffsetIndex,nj as paragraphOrderOfPart,Zj as paragraphTextOf,La as parentNodeOf,ug as parseAuthoredNoteProperties,Jb as parseContentControlId,Ce as parseLinearMath,_b as parseNoteId,ac as parseNoteScopeId,tf as parseTocInstruction,u as partNameKey,_f as planTocEntries,Xc as points,Zc as pointsToTwips,wd as projectDrawing,Ke as projectOmmlAtom,Ie as projectOmmlDisplay,Be as projectOmmlEquation,eh as propertyContainer,ci as readCustomXmlNode,pg as readDocumentProtection,Se as readEmbeddedFonts,sa as readOnOffChild,le as readOoxmlPackage,Aa as readOoxmlPart,Nh as readTrackingSettings,_c as readTwipsMeasure,Ph as readViewSettings,X as readXml,Ad as readZip,mg as relationshipTargetIn,pe as relationshipsOf,re as relsPartNameFor,Qa as removeNode,Na as replaceChildren,Pa as replaceNode,gk as reportHistoryGroup,Pb as resolveContentControlLock,B as resolveContentType,qe as resolveContentTypeOf,Bg as resolveEndnoteProperties,Ag as resolveFootnoteProperties,Qe as resolveHeaderFooterParts,Pe as resolveHeaderFooterPartsBySection,Oe as resolveHeaderFooterResolutionBySection,F as resolveImageRelationship,n as resolveImageResourceLimits,w as resolveInternalTarget,k as resolveLimits,Ig as resolveNotesPart,E as resolveRelationship,ag as resolveTocRowHeadings,kh as runAddressRanges,sh as runPropertyEdits,vh as runsCovering,L as sanitizeHref,V as scrubExport,tj as sectionProtectsForms,Mf as segmentsOf,cg as semanticDigest,ta as serializeOoxmlPart,xg as settingsPartOf,Od as sniffImageMime,Cc as storyParagraphs,zc as storyRootsOf,Oc as stylesPartOf,_ as textContent,vi as textFormFieldsOf,Sh as textboxStoriesInPart,Gh as threadStateOfPart,K as toSafeRecord,Zf as tocEntryText,Wf as tocLeftIndentTwips,Wc as twips,Yc as twipsToPoints,lb as usedParaIds,Oj as validateDrawingOp,x as validateExternalTarget,Qd as validateGifHeader,Rd as validateJpegHeader,xa as validateOoxmlPart,ye as validatePackageInvariants,Pd as validatePngHeader,Td as validateRasterHeader,dk as validateTreeOp,mb as w14RootPrefix,Lc as walkAllStoryParagraphs,Mc as walkParagraphInline,Kc as walkStoryBlocks,be as withBinaryPart,se as withContentTypeOverride,$h as withCustomXmlDataPart,di as withCustomXmlNode,ce as withEmbeddedImage,ni as withExportedCustomNodes,xe as withNewPart,ne as withPart,we as withRelationship,ai as withoutCustomXmlDataPart,ei as withoutCustomXmlNode,fi as withoutOrphanCustomXmlNodes,he as withoutUnreferencedImagePart,Rj as wrapTargetToAnchorSpec,me as writeOoxmlPackage,Bd as writeZip}from'./chunk-DDGGSBAN.js';
1
+ export{j as Budget,i as BudgetError,A as COMPARATORS,l as CancellationController,k as CancellationError,S as DEFAULT_MAX_EDITABLE_STORY_PARTS,o as DeterministicClock,v as DeterministicMemoryMeter,a as ID_KINDS,t as LIMIT_KEYS,s as LIMIT_SPECS,ga as MAX_CUSTOM_NODE_LABEL_LENGTH,fa as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,P as MAX_FRAGMENT_DECODED_BYTES,n as PortRegistry,m as PortResolutionError,g as RegistryError,pa as SEARCH_MATCH_LIMIT,oa as SEARCH_QUERY_MAX,p as SequentialIdentity,R as TreeDocumentStore,T as TreePackageStore,Z as addComment,ca as addPackageComment,Q as applyFragmentPaste,w as assertLimitInvariants,c as assertValidId,q as beginOperation,x as canonicalize,aa as commentPartNameOf,ba as commentsExtendedPartNameOf,B as compareArtifacts,e as compareSemVer,ka as customNodePayloadsByControl,la as customNodePayloadsOf,ea as deletePackageComments,r as endOperation,N as extractFragmentPackage,ta as findOccurrences,C as fingerprint,qa as foldCase,$ as hasCommentPart,F as hashAuthored,Ca as headlessViewOfStore,ha as insertCustomNodeWrite,ma as insertPackageCustomNode,sa as isSearchableQuery,b as isValidId,ra as isWholeWord,u as makeLimitCounter,ua as materializeGlossaryPlaceholders,O as mergeFragmentIntoPackage,Y as nextCommentId,Ba as openHeadlessDocument,d as parseSemVer,va as planRevisionBatch,ia as removeCustomNodeWrite,na as removePackageCustomNode,E as replayFixture,h as resolve,f as satisfies,_ as setCommentResolved,da as setPackageCommentResolved,y as stableHash,ja as sweepCustomNodePayloads,D as validateFixture}from'./chunk-J6BVWIDB.js';export{xh as ACCEPTED_PARAGRAPH_PROPERTIES,wh as ACCEPTED_RUN_PROPERTIES,m as ALL_FROZEN_IDS,yh as AUTHORABLE_PARAGRAPH_PROPERTIES,zh as AUTHORABLE_RUN_PROPERTIES,u as BoundedCounter,h as CANONICAL_MUTATION_ORIGINS,Pb as CONTENT_CONTROL_ID_MAX,fc as CONTENT_CONTROL_PROPERTY_ORDER,Ei as CUSTOM_NODE_XPATH_PREFIX,oi as CUSTOM_XML_PROPS_REL,pi as CUSTOM_XML_PROPS_TYPE,ni as CUSTOM_XML_REL,L as DANGEROUS_KEYS,qi as DATASTORE_NAMESPACE_URI,Pg as DEFAULT_ENDNOTE_PROPERTIES,Og as DEFAULT_FOOTNOTE_PROPERTIES,th as DEFAULT_FORMATTING_DISPLAY_MODE,r as DEFAULT_IMAGE_RESOURCE_LIMITS,o as DEFAULT_LIMITS,Se as DEFAULT_OMML_LIMITS,Be as DEFAULT_OOXML_PACKAGE_LIMITS,ii as DEFAULT_VIEW_SETTINGS,Qd as DEFAULT_ZIP_LIMITS,l as DEPENDENCY_KEY_IDS,M as DangerousKeyError,nf as FIELD_ATOM_CHAR,n as HARD_CEILINGS,xd as HYPERLINK_RELATIONSHIP_TYPE,H as IMAGE_RELATIONSHIP_TYPE,q as IMAGE_RESOURCE_HARD_CEILINGS,Ed as IMAGE_WRAP_TARGETS,X as INERT_EXECUTABLE_KINDS,t as LimitExceededError,Ob as MAX_CONTENT_CONTROLS_PER_PART,Nb as MAX_CONTENT_CONTROL_NESTING,Hc as MAX_NOTES_PER_PART,ah as MAX_NOTE_REFERENCE_PARTS,$g as MAX_NOTE_REFERENCE_SCAN,Mc as MAX_STORY_SDT_NESTING,be as MAX_SVG_SNIFF_BYTES,i as NON_CANONICAL_ORIGINS,ic as NOTE_ATOM_CHAR,mc as NOTE_CONTINUATION_SEPARATOR_ID,kc as NOTE_ID_MAX,jc as NOTE_ID_MIN,lc as NOTE_SEPARATOR_ID,Kg as NO_DOCUMENT_PROTECTION,gi as NO_TRACKING_SETTINGS,Re as OFFICE_MATH_NAMESPACE_URI,wd as OFFICE_RELATIONSHIP_NAMESPACE_URI,Ha as OOXML_NODE_IDENTITY_RULES,g as ORIGIN_IDS,mb as PAGE_BREAK_CHAR,ha as PrefixAllocator,j as RESULT_IDS,k as RUNTIME_PORT_IDS,Ck as TABLE_BORDER_STYLES,pg as TOC_LEVEL_INDENT_TWIPS,Mf as TOC_MAX_BOOKMARKS_PER_REFRESH,Lf as TOC_MAX_ENTRIES,Nf as TOC_MAX_FIELD_NESTING,Kf as TOC_MAX_INSTRUCTION_CHARS,Of as TOC_MAX_PAGE_PASSES,vh as TREE_DOC_OP_KINDS,id as TWIPS_PER_POINT,Yh as W15_NAMESPACE_URI,la as WML_NAMESPACE_URI,na as XMLNS_NAMESPACE_URI,ma as XML_NAMESPACE_URI,hc as allocateContentControlId,pe as allocateDrawingPropertyId,Ic as allocateNoteId,$a as applyEdits,Ng as applyHeaderFooterLifecycleOp,Uh as applyNoteLifecycleOp,el as applyTreeOp,y as asciiFold,ga as assertValidQName,If as atomicFieldSpansOf,Gc as atomicNoteSpansOf,Gg as authorableHyperlinkTarget,Vg as authoredDocumentEndnoteProperties,Ug as authoredDocumentFootnoteProperties,Sg as authoredEndnotePropertiesFromSectPr,Rg as authoredFootnotePropertiesFromSectPr,Ch as authoredProperties,Qc as bodyStoryRoot,vg as bookmarkPairNodes,Ii as boundCustomXmlNodeIdOf,Gi as boundCustomXmlNodeIds,Hi as boundCustomXmlNodeIdsInPackage,og as buildBookmarkIndex,F as buildContentTypeIndex,I as buildRelationshipSet,sg as buildTocContentControl,rg as buildTocEntryParagraph,Eg as buildingBlockGalleryOf,Fg as buildingBlocksForControl,Dg as buildingBlocksOf,Ca as canonicalOoxmlFingerprint,Vh as cascadeDeletedNoteReferences,fi as cascadeEmptiedComments,ca as childElements,Yc as collectFlowBlocks,Qa as collectNodeIds,dh as collectNoteReferences,fh as collectPackageNoteReferences,gk as collectReviewItems,Zj as collectRevisionSites,cf as collectSectionPropertyNodes,Sc as collectStoryParagraphs,Zh as commentAnchorsOfStory,Lj as commentBodyText,Nj as commentInitials,fk as commentItemsOf,$h as commentsOfPart,W as containsCssFetch,Tb as contentControlContentChildren,Xb as contentControlContentNodeOf,Wc as contentControlContentOf,Wb as contentControlEndPropertiesNodeOf,_b as contentControlLevelOf,Vb as contentControlPropertiesNodeOf,Zb as contentControlPropertiesOf,bc as contentControlTextOf,$b as contentControlsIn,Ge as contentTypesPartBytes,me as createImageResourceCache,Ra as createNodeIdAllocator,bh as createNoteReferenceScanBudget,Dc as customMarkFollows,Fi as customNodeBinding,ti as customXmlDataParts,Ci as customXmlLabelXPath,xi as customXmlNodes,Di as customXmlPrefixMappings,ri as datastoreItemIdFor,lj as deepParagraphOrderOfPart,ci as deleteCommentThread,hf as deobfuscateFont,cd as deriveOoxmlIndexes,Rf as detectBodyTocs,A as detectDuplicateNames,gh as diagnoseNoteReferences,zg as diffSemanticDigests,xg as digestPart,Eh as directParagraphMarkProperties,Dh as directParagraphProperties,$e as displayMathAlignment,Qk as drawingOpImpact,Hg as ensureHyperlinkRelationship,Ag as ensureListDefinition,Bg as ensureNumberingLevel,Ve as equationExpressionToLinearMath,Ze as equationsOfAtom,V as escapeCssString,R as escapeXml,E as extensionKey,zf as fieldAtomText,yf as fieldOnOffAttribute,ac as findContentControl,ui as findCustomXmlDataPart,Sf as findDetectedToc,ba as findElement,Ta as findNode,Lc as findNoteById,zj as firstReviewRange,Ub as flattenContentControls,of as fldCharType,xf as fldSimpleInstr,xb as fnv1a32,oc as formatNoteScopeId,Ih as formatOwnedRunIds,Rh as formattableRanges,pj as formsProtectionEnabled,Cg as glossaryPartOf,qb as hardBreakAttributes,nb as hardBreakKind,pb as hardBreakText,bi as hasAnyComment,ce as hasBoundedSvgRoot,Bf as hasLegacyFormFieldData,Sa as hasNode,zd as hyperlinkAnchorOf,Ad as hyperlinkRelationshipIdOf,Bd as hyperlinkTargetOf,ke as imageResourceLookupFor,ad as indexStyles,mg as inlineControlEndingAt,ng as inlineControlStartingAt,Ya as insertChildren,wf as instrTextValue,Ah as isAuthorableRunProperty,Uc as isContentControl,Vc as isContentControlContent,Rb as isContentControlContentNode,Qb as isContentControlNode,Sb as isContentControlWrapper,va as isContentRevisionKind,wc as isContinuationSeparatorNode,N as isDangerousKey,Vk as isDrawingTreeDocOp,rc as isEndnotesNode,Z as isEvaluableField,Af as isFieldChrome,sf as isFldChar,pf as isFldCharNode,vf as isFldSimple,rf as isFldSimpleNode,qc as isFootnotesNode,Mg as isHeaderFooterLifecycleOp,yd as isHyperlinkNode,Y as isInertExecutable,tf as isInstrText,qf as isInstrTextNode,Yg as isLegalEndnotePosition,Jf as isLegalFldCharType,Zg as isLegalFootnotePosition,_g as isLegalNumRestart,Ac as isNormalNote,Fc as isNoteAtomNode,Th as isNoteLifecycleOp,sc as isNoteNode,uc as isNoteRefNode,tc as isNoteReferenceNode,Xe as isOmmlDisplay,Ye as isOmmlEquationAtom,ob as isPageBreakNode,za as isRangeMarkerKind,vc as isSeparatorNode,Pc as isStoryPart,D as isValidMime,ea as isValidNCName,vb as isValidParaId,fa as isValidQName,jj as legacyCheckboxFieldsOf,We as linearMathToOmml,ik as linkRevisionReplies,je as liveDrawingReferenceCount,ck as locateSites,dc as lockForbidsEdit,ec as lockForbidsRemoval,Gh as mergedFontProperty,Jh as mergedMultiSettingProperty,Kh as mergedParagraphMarkProperties,Fh as mergedProperties,yb as mintParaId,Cb as mintedParagraphIdentityAttributes,ih as normalNoteIds,Eb as normalizeParagraphIdentity,w as normalizePartName,Ec as noteAtomText,yc as noteIdOf,xc as noteKindOf,Cc as noteRefKindOf,Bc as noteReferenceKindOf,zc as noteTypeOf,Jc as notesOf,hh as notesPartHasId,O as nullRecord,gl as observeHistoryGroup,Da as ooxmlTreesEqual,gc as orderedContentControlProperties,wb as paraIdOf,jg as paragraphOffsetIndex,kj as paragraphOrderOfPart,Vi as paragraphTextOf,Ua as parentNodeOf,Qg as parseAuthoredNoteProperties,Yb as parseContentControlId,Ue as parseLinearMath,nc as parseNoteId,pc as parseNoteScopeId,Pf as parseTocInstruction,z as partNameKey,kk as planRevisionAuthorChange,ug as planTocEntries,kd as points,md as pointsToTwips,Nd as projectDrawing,af as projectOmmlAtom,_e as projectOmmlDisplay,Te as projectOmmlEquation,Bh as propertyContainer,yi as readCustomXmlNode,Lg as readDocumentProtection,if as readEmbeddedFonts,Aa as readOnOffChild,Ce as readOoxmlPackage,Ia as readOoxmlPart,hi as readTrackingSettings,nd as readTwipsMeasure,ji as readViewSettings,aa as readXml,Rd as readZip,Ig as relationshipTargetIn,He as relationshipsOf,Je as relsPartNameFor,_a as removeNode,Xa as replaceChildren,Za as replaceNode,hl as reportHistoryGroup,cc as resolveContentControlLock,G as resolveContentType,Ie as resolveContentTypeOf,Xg as resolveEndnoteProperties,Wg as resolveFootnoteProperties,gf as resolveHeaderFooterParts,ff as resolveHeaderFooterPartsBySection,ef as resolveHeaderFooterResolutionBySection,K as resolveImageRelationship,s as resolveImageResourceLimits,B as resolveInternalTarget,p as resolveLimits,ch as resolveNotesPart,J as resolveRelationship,wg as resolveTocRowHeadings,xj as reviewItemKey,yj as reviewItemRanges,ek as revisionItemsOf,Hh as runAddressRanges,Ph as runPropertyEdits,Sh as runsCovering,Q as sanitizeHref,_ as scrubExport,qj as sectionProtectsForms,hg as segmentsOf,yg as semanticDigest,Ba as serializeOoxmlPart,Tg as settingsPartOf,de as sniffImageMime,Rc as storyParagraphs,Oc as storyRootsOf,bd as stylesPartOf,da as textContent,hj as textFormFieldsOf,mi as textboxStoriesInPart,ai as threadStateOfPart,P as toSafeRecord,tg as tocEntryText,qg as tocLeftIndentTwips,jd as twips,ld as twipsToPoints,zb as usedParaIds,Rk as validateDrawingOp,C as validateExternalTarget,fe as validateGifHeader,ge as validateJpegHeader,Fa as validateOoxmlPart,Qe as validatePackageInvariants,ee as validatePngHeader,ie as validateRasterHeader,Wk as validateTreeOp,Ab as w14RootPrefix,_c as walkAllStoryParagraphs,$c as walkParagraphInline,Zc as walkStoryBlocks,se as withBinaryPart,Ke as withContentTypeOverride,vi as withCustomXmlDataPart,zi as withCustomXmlNode,te as withEmbeddedImage,Ji as withExportedCustomNodes,Pe as withNewPart,Fe as withPart,Oe as withRelationship,wi as withoutCustomXmlDataPart,Ai as withoutCustomXmlNode,Bi as withoutOrphanCustomXmlNodes,ye as withoutUnreferencedImagePart,Uk as wrapTargetToAnchorSpec,Ee as writeOoxmlPackage,Sd as writeZip}from'./chunk-4R3TEXMN.js';