@eigenpal/docx-js-editor 0.0.21 → 0.0.23

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 (83) hide show
  1. package/README.md +3 -1
  2. package/dist/{ClipboardManager-B1jZrC6h.d.cts → ClipboardManager-Bbo5MM_U.d.cts} +1 -1
  3. package/dist/{ClipboardManager-jqJVxB6g.d.ts → ClipboardManager-CR843H7H.d.ts} +1 -1
  4. package/dist/{DocumentAgent-CrbsDniO.d.ts → DocumentAgent-cHf96hwL.d.cts} +4 -2
  5. package/dist/{DocumentAgent-CnJ9AEl_.d.cts → DocumentAgent-lHtXgMFN.d.ts} +4 -2
  6. package/dist/PageSetupDialog-RLMYJ3BA.cjs +1 -0
  7. package/dist/PageSetupDialog-ZZTFPZKJ.js +1 -0
  8. package/dist/{agentApi-DfsWRyrP.d.cts → agentApi-DmDuQm0e.d.cts} +2 -0
  9. package/dist/{agentApi-DfsWRyrP.d.ts → agentApi-DmDuQm0e.d.ts} +2 -0
  10. package/dist/chunk-2JOQ7WKO.js +258 -0
  11. package/dist/{chunk-HT2Z33YM.cjs → chunk-3C2VHZX6.cjs} +4 -4
  12. package/dist/chunk-3X3LTNK4.js +26 -0
  13. package/dist/chunk-4VUZBV2S.js +1 -0
  14. package/dist/{chunk-TAF6KYDM.cjs → chunk-5ILXHRJS.cjs} +2 -2
  15. package/dist/{chunk-7KJ3YVDQ.js → chunk-6TUCNECX.js} +2 -2
  16. package/dist/chunk-C6ELWJWO.js +3 -0
  17. package/dist/chunk-I5YZ4MRV.cjs +3 -0
  18. package/dist/chunk-IA4LPH2A.cjs +1 -0
  19. package/dist/chunk-JIKVCUR6.js +9 -0
  20. package/dist/chunk-KL2RYY6G.cjs +9 -0
  21. package/dist/chunk-KR32M3S4.cjs +1 -0
  22. package/dist/chunk-PGEORVCG.js +59 -0
  23. package/dist/chunk-PIVLDW7B.cjs +26 -0
  24. package/dist/chunk-PUVSVHHB.cjs +59 -0
  25. package/dist/{chunk-32HMU2UV.js → chunk-R56SLH64.js} +1 -1
  26. package/dist/chunk-RHLMVYVZ.cjs +258 -0
  27. package/dist/chunk-SE5EN2QL.js +1 -0
  28. package/dist/{clipboard-DkfAv07F.d.cts → clipboard-Bj2X5pLO.d.cts} +1 -1
  29. package/dist/{clipboard-BE8E-szx.d.ts → clipboard-DriRE6eS.d.ts} +1 -1
  30. package/dist/{colorResolver-CYttioMe.d.ts → colorResolver-BTTqW66Q.d.ts} +4 -3
  31. package/dist/{colorResolver-Dr8kQZAQ.d.cts → colorResolver-yl7Xh_Qg.d.cts} +4 -3
  32. package/dist/core-plugins-reexport.cjs +1 -1
  33. package/dist/core-plugins-reexport.d.cts +4 -4
  34. package/dist/core-plugins-reexport.d.ts +4 -4
  35. package/dist/core-plugins-reexport.js +1 -1
  36. package/dist/core-reexport.cjs +1 -1
  37. package/dist/core-reexport.d.cts +10 -10
  38. package/dist/core-reexport.d.ts +10 -10
  39. package/dist/core-reexport.js +1 -1
  40. package/dist/{fontLoader-BsqQnB4v.d.ts → fontLoader-DQJOS1sb.d.ts} +1 -1
  41. package/dist/{fontLoader-DECXIoMr.d.cts → fontLoader-Daq8y8C2.d.cts} +1 -1
  42. package/dist/headless-reexport.cjs +2 -2
  43. package/dist/headless-reexport.d.cts +7 -7
  44. package/dist/headless-reexport.d.ts +7 -7
  45. package/dist/headless-reexport.js +1 -1
  46. package/dist/index.cjs +2 -2
  47. package/dist/index.d.cts +11 -11
  48. package/dist/index.d.ts +11 -11
  49. package/dist/index.js +1 -1
  50. package/dist/mcp-reexport.cjs +3 -3
  51. package/dist/mcp-reexport.d.cts +2 -2
  52. package/dist/mcp-reexport.d.ts +2 -2
  53. package/dist/mcp-reexport.js +3 -3
  54. package/dist/{react-CAlVCYa4.d.cts → react-BYRZYSPG.d.cts} +20 -7
  55. package/dist/{react-C6bgHDFl.d.ts → react-Bj9uDtjg.d.ts} +20 -7
  56. package/dist/react.cjs +1 -1
  57. package/dist/react.d.cts +5 -5
  58. package/dist/react.d.ts +5 -5
  59. package/dist/react.js +1 -1
  60. package/dist/{registry-gRbkCooh.d.ts → registry-C2DPl-QW.d.ts} +1 -1
  61. package/dist/{registry-BU-FbHh-.d.cts → registry-CXGC344v.d.cts} +1 -1
  62. package/dist/styles.css +1 -1
  63. package/dist/{types-7wjInVMW.d.ts → types-BpokDLqL.d.ts} +1 -1
  64. package/dist/{types-DEEpBL9H.d.cts → types-COQvtZji.d.cts} +1 -1
  65. package/dist/ui.cjs +1 -1
  66. package/dist/ui.d.cts +9 -5
  67. package/dist/ui.d.ts +9 -5
  68. package/dist/ui.js +1 -1
  69. package/dist/{variableDetector-BXJaTkiB.d.ts → variableDetector-BYzE_RXw.d.ts} +1 -1
  70. package/dist/{variableDetector-B4oQJa2e.d.cts → variableDetector-C8ST_dnq.d.cts} +1 -1
  71. package/package.json +3 -2
  72. package/dist/chunk-2Y6FLZ5Q.js +0 -3
  73. package/dist/chunk-6NDMKJIE.js +0 -9
  74. package/dist/chunk-6NYA53QC.cjs +0 -258
  75. package/dist/chunk-EH3NY2DQ.cjs +0 -26
  76. package/dist/chunk-FXJAIFPR.js +0 -59
  77. package/dist/chunk-GICVJSFJ.cjs +0 -9
  78. package/dist/chunk-JRRTZZ72.cjs +0 -1
  79. package/dist/chunk-P3AEZKQO.cjs +0 -3
  80. package/dist/chunk-Q7YYC75E.js +0 -258
  81. package/dist/chunk-UTWPV2I4.js +0 -26
  82. package/dist/chunk-Y6QBJGMO.cjs +0 -59
  83. package/dist/chunk-ZTVQA46Q.js +0 -1
@@ -0,0 +1 @@
1
+ function u(n){return n/1440*96}function o(n){return n/96*1440}function P(n){return n==null||isNaN(n)?0:Math.round(n*96/914400)}function _(n){return n/96*914400}function I(n){return n/914400*1440}function E(n){return n/1440*914400}function i(n){return n/72*96}function m(n){return n/144*96}function N(n){return n/2}function H(n){return n/576*96}function t(n,e=2){let r=Math.pow(10,e);return Math.round(n*r)/r}function b(n){return `${t(n)}px`}export{u as a,o as b,P as c,_ as d,I as e,E as f,i as g,m as h,N as i,H as j,b as k};
@@ -1,5 +1,5 @@
1
1
  import React__default, { CSSProperties, ReactNode } from 'react';
2
- import { e as Table, U as TableCell, b as Run, a as Paragraph } from './agentApi-DfsWRyrP.cjs';
2
+ import { e as Table, U as TableCell, b as Run, a as Paragraph } from './agentApi-DmDuQm0e.cjs';
3
3
 
4
4
  /**
5
5
  * PageNumberIndicator Component
@@ -1,5 +1,5 @@
1
1
  import React__default, { CSSProperties, ReactNode } from 'react';
2
- import { e as Table, U as TableCell, b as Run, a as Paragraph } from './agentApi-DfsWRyrP.js';
2
+ import { e as Table, U as TableCell, b as Run, a as Paragraph } from './agentApi-DmDuQm0e.js';
3
3
 
4
4
  /**
5
5
  * PageNumberIndicator Component
@@ -1,5 +1,5 @@
1
- import { D as Document, d as DocumentBody, C as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, G as SelectionContext, T as TextFormatting, ae as ColorValue, X as Theme, af as ThemeColorSlot, ab as ThemeColorScheme } from './agentApi-DfsWRyrP.js';
2
- import { g as DocxInput } from './DocumentAgent-CrbsDniO.js';
1
+ import { D as Document, d as DocumentBody, C as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, G as SelectionContext, T as TextFormatting, ae as ColorValue, X as Theme, af as ThemeColorSlot, ab as ThemeColorScheme } from './agentApi-DmDuQm0e.js';
2
+ import { g as DocxInput } from './DocumentAgent-lHtXgMFN.js';
3
3
 
4
4
  /**
5
5
  * Main Parser Orchestrator - Unified parseDocx function
@@ -453,8 +453,9 @@ declare function pixelsToTwips(px: number): number;
453
453
  * Convert EMUs to pixels (at 96 DPI)
454
454
  *
455
455
  * 1 inch = 914400 EMUs = 96 pixels
456
+ * Returns 0 for null/undefined/NaN inputs.
456
457
  */
457
- declare function emuToPixels(emu: number): number;
458
+ declare function emuToPixels(emu: number | undefined | null): number;
458
459
  /**
459
460
  * Convert pixels to EMUs
460
461
  */
@@ -1,5 +1,5 @@
1
- import { D as Document, d as DocumentBody, C as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, G as SelectionContext, T as TextFormatting, ae as ColorValue, X as Theme, af as ThemeColorSlot, ab as ThemeColorScheme } from './agentApi-DfsWRyrP.cjs';
2
- import { g as DocxInput } from './DocumentAgent-CnJ9AEl_.cjs';
1
+ import { D as Document, d as DocumentBody, C as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, G as SelectionContext, T as TextFormatting, ae as ColorValue, X as Theme, af as ThemeColorSlot, ab as ThemeColorScheme } from './agentApi-DmDuQm0e.cjs';
2
+ import { g as DocxInput } from './DocumentAgent-cHf96hwL.cjs';
3
3
 
4
4
  /**
5
5
  * Main Parser Orchestrator - Unified parseDocx function
@@ -453,8 +453,9 @@ declare function pixelsToTwips(px: number): number;
453
453
  * Convert EMUs to pixels (at 96 DPI)
454
454
  *
455
455
  * 1 inch = 914400 EMUs = 96 pixels
456
+ * Returns 0 for null/undefined/NaN inputs.
456
457
  */
457
- declare function emuToPixels(emu: number): number;
458
+ declare function emuToPixels(emu: number | undefined | null): number;
458
459
  /**
459
460
  * Convert pixels to EMUs
460
461
  */
@@ -1 +1 @@
1
- 'use strict';var chunkTAF6KYDM_cjs=require('./chunk-TAF6KYDM.cjs');require('./chunk-B7TICMXD.cjs'),require('./chunk-EH3NY2DQ.cjs');var chunkYS7FDEZ4_cjs=require('./chunk-YS7FDEZ4.cjs');require('./chunk-XQNCLN4T.cjs'),require('./chunk-PCJ5ACUV.cjs');Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.o}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.n}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});
1
+ 'use strict';var chunk5ILXHRJS_cjs=require('./chunk-5ILXHRJS.cjs');require('./chunk-B7TICMXD.cjs'),require('./chunk-PIVLDW7B.cjs');var chunkYS7FDEZ4_cjs=require('./chunk-YS7FDEZ4.cjs');require('./chunk-KR32M3S4.cjs'),require('./chunk-XQNCLN4T.cjs'),require('./chunk-PCJ5ACUV.cjs');Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.o}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.n}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});
@@ -1,7 +1,7 @@
1
- import { C as CorePlugin } from './types-DEEpBL9H.cjs';
2
- export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-DEEpBL9H.cjs';
3
- export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-BU-FbHh-.cjs';
4
- import './agentApi-DfsWRyrP.cjs';
1
+ import { C as CorePlugin } from './types-COQvtZji.cjs';
2
+ export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-COQvtZji.cjs';
3
+ export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-CXGC344v.cjs';
4
+ import './agentApi-DmDuQm0e.cjs';
5
5
 
6
6
  /**
7
7
  * Docxtemplater Plugin
@@ -1,7 +1,7 @@
1
- import { C as CorePlugin } from './types-7wjInVMW.js';
2
- export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-7wjInVMW.js';
3
- export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-gRbkCooh.js';
4
- import './agentApi-DfsWRyrP.js';
1
+ import { C as CorePlugin } from './types-BpokDLqL.js';
2
+ export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-BpokDLqL.js';
3
+ export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-C2DPl-QW.js';
4
+ import './agentApi-DmDuQm0e.js';
5
5
 
6
6
  /**
7
7
  * Docxtemplater Plugin
@@ -1 +1 @@
1
- export{o as docxtemplaterPlugin,n as isZodSchema}from'./chunk-7KJ3YVDQ.js';import'./chunk-CLDB6TL7.js';import'./chunk-UTWPV2I4.js';export{a as PluginRegistry,d as createPluginRegistrar,b as pluginRegistry,c as registerPlugins}from'./chunk-BUEMG4NW.js';import'./chunk-USRMBYI6.js';import'./chunk-H5NTJZO4.js';
1
+ export{o as docxtemplaterPlugin,n as isZodSchema}from'./chunk-6TUCNECX.js';import'./chunk-CLDB6TL7.js';import'./chunk-3X3LTNK4.js';export{a as PluginRegistry,d as createPluginRegistrar,b as pluginRegistry,c as registerPlugins}from'./chunk-BUEMG4NW.js';import'./chunk-SE5EN2QL.js';import'./chunk-USRMBYI6.js';import'./chunk-H5NTJZO4.js';
@@ -1 +1 @@
1
- 'use strict';var chunk2VHQ7YOQ_cjs=require('./chunk-2VHQ7YOQ.cjs'),chunkGICVJSFJ_cjs=require('./chunk-GICVJSFJ.cjs'),chunkJRRTZZ72_cjs=require('./chunk-JRRTZZ72.cjs'),chunkTAF6KYDM_cjs=require('./chunk-TAF6KYDM.cjs'),chunkB7TICMXD_cjs=require('./chunk-B7TICMXD.cjs'),chunkY6QBJGMO_cjs=require('./chunk-Y6QBJGMO.cjs'),chunkP7ZF45KZ_cjs=require('./chunk-P7ZF45KZ.cjs'),chunkEH3NY2DQ_cjs=require('./chunk-EH3NY2DQ.cjs'),chunkYS7FDEZ4_cjs=require('./chunk-YS7FDEZ4.cjs');require('./chunk-XQNCLN4T.cjs'),require('./chunk-PCJ5ACUV.cjs');Object.defineProperty(exports,"AutoSaveManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.r}});Object.defineProperty(exports,"EditorCoordinator",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.L}});Object.defineProperty(exports,"ErrorManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.H}});Object.defineProperty(exports,"LayoutCoordinator",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.K}});Object.defineProperty(exports,"PluginLifecycleManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.J}});Object.defineProperty(exports,"Subscribable",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.q}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.x}});Object.defineProperty(exports,"TableSelectionManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.C}});Object.defineProperty(exports,"VERSION",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.M}});Object.defineProperty(exports,"countPageBreaks",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.n}});Object.defineProperty(exports,"createColumnBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.b}});Object.defineProperty(exports,"createHorizontalRule",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.g}});Object.defineProperty(exports,"createLineBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.c}});Object.defineProperty(exports,"createPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.a}});Object.defineProperty(exports,"createPageBreakParagraph",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.e}});Object.defineProperty(exports,"createPageBreakRun",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.d}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.F}});Object.defineProperty(exports,"deleteTableFromDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.B}});Object.defineProperty(exports,"extractFormattingFromElement",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.D}});Object.defineProperty(exports,"findPageBreaks",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.o}});Object.defineProperty(exports,"findTableFromClick",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.y}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.E}});Object.defineProperty(exports,"getTableFromDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.z}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.m}});Object.defineProperty(exports,"injectStyles",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.I}});Object.defineProperty(exports,"insertHorizontalRule",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.h}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.f}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.w}});Object.defineProperty(exports,"isBreakContent",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.l}});Object.defineProperty(exports,"isColumnBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.j}});Object.defineProperty(exports,"isLineBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.k}});Object.defineProperty(exports,"isPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.i}});Object.defineProperty(exports,"removePageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.p}});Object.defineProperty(exports,"rgbToHex",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.G}});Object.defineProperty(exports,"updateTableInDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.A}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.f}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.c}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.m}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.b}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.l}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.k}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.a}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.j}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.t}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.v}});Object.defineProperty(exports,"ensureHexPrefix",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.m}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.B}});Object.defineProperty(exports,"generateThemeTintShadeMatrix",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.p}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.f}});Object.defineProperty(exports,"getThemeTintShadeHex",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.o}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.y}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.g}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.u}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.s}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.x}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.b}});Object.defineProperty(exports,"resolveHighlightToCss",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.n}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.c}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.w}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.r}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.m}});Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.o}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.g}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.h}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.e}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.a}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.f}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.f}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.d}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.a}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.e}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.b}});Object.defineProperty(exports,"canRenderFont",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.k}});Object.defineProperty(exports,"getLoadedFonts",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.i}});Object.defineProperty(exports,"isFontLoaded",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.g}});Object.defineProperty(exports,"isFontsLoading",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.h}});Object.defineProperty(exports,"loadFont",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.e}});Object.defineProperty(exports,"loadFontFromBuffer",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.l}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.f}});Object.defineProperty(exports,"onFontsLoaded",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.j}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.p}});Object.defineProperty(exports,"preloadCommonFonts",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.m}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.o}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});
1
+ 'use strict';var chunk2VHQ7YOQ_cjs=require('./chunk-2VHQ7YOQ.cjs'),chunkKL2RYY6G_cjs=require('./chunk-KL2RYY6G.cjs'),chunkIA4LPH2A_cjs=require('./chunk-IA4LPH2A.cjs'),chunk5ILXHRJS_cjs=require('./chunk-5ILXHRJS.cjs'),chunkB7TICMXD_cjs=require('./chunk-B7TICMXD.cjs'),chunkPUVSVHHB_cjs=require('./chunk-PUVSVHHB.cjs'),chunkP7ZF45KZ_cjs=require('./chunk-P7ZF45KZ.cjs'),chunkPIVLDW7B_cjs=require('./chunk-PIVLDW7B.cjs'),chunkYS7FDEZ4_cjs=require('./chunk-YS7FDEZ4.cjs'),chunkKR32M3S4_cjs=require('./chunk-KR32M3S4.cjs');require('./chunk-XQNCLN4T.cjs'),require('./chunk-PCJ5ACUV.cjs');Object.defineProperty(exports,"AutoSaveManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.r}});Object.defineProperty(exports,"EditorCoordinator",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.L}});Object.defineProperty(exports,"ErrorManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.H}});Object.defineProperty(exports,"LayoutCoordinator",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.K}});Object.defineProperty(exports,"PluginLifecycleManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.J}});Object.defineProperty(exports,"Subscribable",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.q}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.x}});Object.defineProperty(exports,"TableSelectionManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.C}});Object.defineProperty(exports,"VERSION",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.M}});Object.defineProperty(exports,"countPageBreaks",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.n}});Object.defineProperty(exports,"createColumnBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.b}});Object.defineProperty(exports,"createHorizontalRule",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.g}});Object.defineProperty(exports,"createLineBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.c}});Object.defineProperty(exports,"createPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.a}});Object.defineProperty(exports,"createPageBreakParagraph",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.e}});Object.defineProperty(exports,"createPageBreakRun",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.d}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.F}});Object.defineProperty(exports,"deleteTableFromDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.B}});Object.defineProperty(exports,"extractFormattingFromElement",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.D}});Object.defineProperty(exports,"findPageBreaks",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.o}});Object.defineProperty(exports,"findTableFromClick",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.y}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.E}});Object.defineProperty(exports,"getTableFromDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.z}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.m}});Object.defineProperty(exports,"injectStyles",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.I}});Object.defineProperty(exports,"insertHorizontalRule",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.h}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.f}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.w}});Object.defineProperty(exports,"isBreakContent",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.l}});Object.defineProperty(exports,"isColumnBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.j}});Object.defineProperty(exports,"isLineBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.k}});Object.defineProperty(exports,"isPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.i}});Object.defineProperty(exports,"removePageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.p}});Object.defineProperty(exports,"rgbToHex",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.G}});Object.defineProperty(exports,"updateTableInDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.A}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.f}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.c}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.m}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.b}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.l}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.k}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.a}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.j}});Object.defineProperty(exports,"ensureHexPrefix",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.m}});Object.defineProperty(exports,"generateThemeTintShadeMatrix",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.p}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.f}});Object.defineProperty(exports,"getThemeTintShadeHex",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.o}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.g}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.b}});Object.defineProperty(exports,"resolveHighlightToCss",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.n}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.c}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.m}});Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.o}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.g}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.h}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.e}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.a}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.f}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.l}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.f}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.a}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.h}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.b}});Object.defineProperty(exports,"canRenderFont",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.i}});Object.defineProperty(exports,"getLoadedFonts",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.g}});Object.defineProperty(exports,"isFontLoaded",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.e}});Object.defineProperty(exports,"isFontsLoading",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.f}});Object.defineProperty(exports,"loadFont",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.c}});Object.defineProperty(exports,"loadFontFromBuffer",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.j}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.d}});Object.defineProperty(exports,"onFontsLoaded",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.h}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.n}});Object.defineProperty(exports,"preloadCommonFonts",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.k}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.m}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.c}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.e}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.k}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.h}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.d}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.b}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.g}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.f}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.a}});
@@ -1,14 +1,14 @@
1
- import { D as Document } from './agentApi-DfsWRyrP.cjs';
2
- export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, a3 as BookmarkEnd, a4 as BookmarkStart, n as DeleteTextCommand, d as DocumentBody, o as DocxPackage, E as Endnote, a5 as Field, a6 as FooterReference, F as Footnote, q as FormatTextCommand, a7 as HeaderFooter, a8 as HeaderReference, H as Hyperlink, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, v as ParagraphContext, w as ParagraphFormatting, P as Position, R as Range, y as Relationship, z as ReplaceTextCommand, b as Run, c as RunContent, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, a9 as Shape, K as Style, M as StyleDefinitions, Q as SuggestedAction, e as Table, U as TableCell, V as TableRow, aa as TextBox, W as TextContent, T as TextFormatting, X as Theme, ab as ThemeColorScheme, ac as ThemeFont, ad as ThemeFontScheme } from './agentApi-DfsWRyrP.cjs';
3
- export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, a0 as ThemeMatrixCell, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, a1 as ensureHexPrefix, p as executeCommand, q as executeCommands, r as formatPx, a2 as generateThemeTintShadeMatrix, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, a3 as getThemeTintShadeHex, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, a4 as resolveHighlightToCss, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-Dr8kQZAQ.cjs';
4
- import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-B1jZrC6h.cjs';
5
- export { A as AutoSaveManager, b as AutoSaveManagerOptions, c as AutoSaveSnapshot, d as AutoSaveStatus, C as CellCoordinates, e as ClipboardSelection, f as EditorHandle, g as EditorPluginCore, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, n as TableSelectionManager, o as TableSelectionSnapshot, p as createSelectionFromDOM, q as deleteTableFromDocument, r as extractFormattingFromElement, s as findTableFromClick, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, y as getTableFromDocument, z as isAutoSaveSupported, B as rgbToHex, D as updateTableInDocument } from './ClipboardManager-B1jZrC6h.cjs';
6
- export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-DEEpBL9H.cjs';
7
- export { D as DocumentAgent, g as DocxInput, d as attemptSelectiveSave, t as toArrayBuffer } from './DocumentAgent-CnJ9AEl_.cjs';
8
- export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './fontLoader-DECXIoMr.cjs';
1
+ import { D as Document } from './agentApi-DmDuQm0e.cjs';
2
+ export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, a3 as BookmarkEnd, a4 as BookmarkStart, n as DeleteTextCommand, d as DocumentBody, o as DocxPackage, E as Endnote, a5 as Field, a6 as FooterReference, F as Footnote, q as FormatTextCommand, a7 as HeaderFooter, a8 as HeaderReference, H as Hyperlink, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, v as ParagraphContext, w as ParagraphFormatting, P as Position, R as Range, y as Relationship, z as ReplaceTextCommand, b as Run, c as RunContent, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, a9 as Shape, K as Style, M as StyleDefinitions, Q as SuggestedAction, e as Table, U as TableCell, V as TableRow, aa as TextBox, W as TextContent, T as TextFormatting, X as Theme, ab as ThemeColorScheme, ac as ThemeFont, ad as ThemeFontScheme } from './agentApi-DmDuQm0e.cjs';
3
+ export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, a0 as ThemeMatrixCell, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, a1 as ensureHexPrefix, p as executeCommand, q as executeCommands, r as formatPx, a2 as generateThemeTintShadeMatrix, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, a3 as getThemeTintShadeHex, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, a4 as resolveHighlightToCss, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-yl7Xh_Qg.cjs';
4
+ import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-Bbo5MM_U.cjs';
5
+ export { A as AutoSaveManager, b as AutoSaveManagerOptions, c as AutoSaveSnapshot, d as AutoSaveStatus, C as CellCoordinates, e as ClipboardSelection, f as EditorHandle, g as EditorPluginCore, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, n as TableSelectionManager, o as TableSelectionSnapshot, p as createSelectionFromDOM, q as deleteTableFromDocument, r as extractFormattingFromElement, s as findTableFromClick, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, y as getTableFromDocument, z as isAutoSaveSupported, B as rgbToHex, D as updateTableInDocument } from './ClipboardManager-Bbo5MM_U.cjs';
6
+ export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-COQvtZji.cjs';
7
+ export { D as DocumentAgent, g as DocxInput, d as attemptSelectiveSave, t as toArrayBuffer } from './DocumentAgent-cHf96hwL.cjs';
8
+ export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './fontLoader-Daq8y8C2.cjs';
9
9
  import { EditorView } from 'prosemirror-view';
10
- export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-BU-FbHh-.cjs';
11
- export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-B4oQJa2e.cjs';
10
+ export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-CXGC344v.cjs';
11
+ export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-C8ST_dnq.cjs';
12
12
  export { docxtemplaterPlugin } from './core-plugins-reexport.cjs';
13
13
  import 'prosemirror-state';
14
14
  import 'prosemirror-model';
@@ -1,14 +1,14 @@
1
- import { D as Document } from './agentApi-DfsWRyrP.js';
2
- export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, a3 as BookmarkEnd, a4 as BookmarkStart, n as DeleteTextCommand, d as DocumentBody, o as DocxPackage, E as Endnote, a5 as Field, a6 as FooterReference, F as Footnote, q as FormatTextCommand, a7 as HeaderFooter, a8 as HeaderReference, H as Hyperlink, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, v as ParagraphContext, w as ParagraphFormatting, P as Position, R as Range, y as Relationship, z as ReplaceTextCommand, b as Run, c as RunContent, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, a9 as Shape, K as Style, M as StyleDefinitions, Q as SuggestedAction, e as Table, U as TableCell, V as TableRow, aa as TextBox, W as TextContent, T as TextFormatting, X as Theme, ab as ThemeColorScheme, ac as ThemeFont, ad as ThemeFontScheme } from './agentApi-DfsWRyrP.js';
3
- export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, a0 as ThemeMatrixCell, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, a1 as ensureHexPrefix, p as executeCommand, q as executeCommands, r as formatPx, a2 as generateThemeTintShadeMatrix, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, a3 as getThemeTintShadeHex, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, a4 as resolveHighlightToCss, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-CYttioMe.js';
4
- import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-jqJVxB6g.js';
5
- export { A as AutoSaveManager, b as AutoSaveManagerOptions, c as AutoSaveSnapshot, d as AutoSaveStatus, C as CellCoordinates, e as ClipboardSelection, f as EditorHandle, g as EditorPluginCore, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, n as TableSelectionManager, o as TableSelectionSnapshot, p as createSelectionFromDOM, q as deleteTableFromDocument, r as extractFormattingFromElement, s as findTableFromClick, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, y as getTableFromDocument, z as isAutoSaveSupported, B as rgbToHex, D as updateTableInDocument } from './ClipboardManager-jqJVxB6g.js';
6
- export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-7wjInVMW.js';
7
- export { D as DocumentAgent, g as DocxInput, d as attemptSelectiveSave, t as toArrayBuffer } from './DocumentAgent-CrbsDniO.js';
8
- export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './fontLoader-BsqQnB4v.js';
1
+ import { D as Document } from './agentApi-DmDuQm0e.js';
2
+ export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, a3 as BookmarkEnd, a4 as BookmarkStart, n as DeleteTextCommand, d as DocumentBody, o as DocxPackage, E as Endnote, a5 as Field, a6 as FooterReference, F as Footnote, q as FormatTextCommand, a7 as HeaderFooter, a8 as HeaderReference, H as Hyperlink, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, v as ParagraphContext, w as ParagraphFormatting, P as Position, R as Range, y as Relationship, z as ReplaceTextCommand, b as Run, c as RunContent, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, a9 as Shape, K as Style, M as StyleDefinitions, Q as SuggestedAction, e as Table, U as TableCell, V as TableRow, aa as TextBox, W as TextContent, T as TextFormatting, X as Theme, ab as ThemeColorScheme, ac as ThemeFont, ad as ThemeFontScheme } from './agentApi-DmDuQm0e.js';
3
+ export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, a0 as ThemeMatrixCell, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, a1 as ensureHexPrefix, p as executeCommand, q as executeCommands, r as formatPx, a2 as generateThemeTintShadeMatrix, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, a3 as getThemeTintShadeHex, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, a4 as resolveHighlightToCss, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-BTTqW66Q.js';
4
+ import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-CR843H7H.js';
5
+ export { A as AutoSaveManager, b as AutoSaveManagerOptions, c as AutoSaveSnapshot, d as AutoSaveStatus, C as CellCoordinates, e as ClipboardSelection, f as EditorHandle, g as EditorPluginCore, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, n as TableSelectionManager, o as TableSelectionSnapshot, p as createSelectionFromDOM, q as deleteTableFromDocument, r as extractFormattingFromElement, s as findTableFromClick, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, y as getTableFromDocument, z as isAutoSaveSupported, B as rgbToHex, D as updateTableInDocument } from './ClipboardManager-CR843H7H.js';
6
+ export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-BpokDLqL.js';
7
+ export { D as DocumentAgent, g as DocxInput, d as attemptSelectiveSave, t as toArrayBuffer } from './DocumentAgent-lHtXgMFN.js';
8
+ export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './fontLoader-DQJOS1sb.js';
9
9
  import { EditorView } from 'prosemirror-view';
10
- export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-gRbkCooh.js';
11
- export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-BXJaTkiB.js';
10
+ export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-C2DPl-QW.js';
11
+ export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-BYzE_RXw.js';
12
12
  export { docxtemplaterPlugin } from './core-plugins-reexport.js';
13
13
  import 'prosemirror-state';
14
14
  import 'prosemirror-model';
@@ -1 +1 @@
1
- export{r as AutoSaveManager,L as EditorCoordinator,H as ErrorManager,K as LayoutCoordinator,J as PluginLifecycleManager,q as Subscribable,x as TABLE_DATA_ATTRIBUTES,C as TableSelectionManager,M as VERSION,n as countPageBreaks,b as createColumnBreak,g as createHorizontalRule,c as createLineBreak,a as createPageBreak,e as createPageBreakParagraph,d as createPageBreakRun,F as createSelectionFromDOM,B as deleteTableFromDocument,D as extractFormattingFromElement,o as findPageBreaks,y as findTableFromClick,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,z as getTableFromDocument,m as hasPageBreakBefore,I as injectStyles,h as insertHorizontalRule,f as insertPageBreak,w as isAutoSaveSupported,l as isBreakContent,j as isColumnBreak,k as isLineBreak,i as isPageBreak,p as removePageBreak,G as rgbToHex,A as updateTableInDocument}from'./chunk-FVUGBRDD.js';export{f as DocumentAgent,c as attemptSelectiveSave,m as buildExtendedSelectionContext,b as buildPatchedDocumentXml,l as buildSelectionContext,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary,a as validatePatchSafety}from'./chunk-6NDMKJIE.js';export{l as blendColors,q as colorsEqual,i as createRgbColor,h as createThemeColor,j as darkenColor,t as emuToPixels,v as emuToTwips,m as ensureHexPrefix,B as formatPx,p as generateThemeTintShadeMatrix,f as getContrastingColor,o as getThemeTintShadeHex,y as halfPointsToPixels,d as isBlack,e as isWhite,k as lightenColor,g as parseColorString,u as pixelsToEmu,s as pixelsToTwips,x as pointsToPixels,a as resolveColor,b as resolveHighlightColor,n as resolveHighlightToCss,c as resolveShadingColor,w as twipsToEmu,r as twipsToPixels}from'./chunk-ZTVQA46Q.js';export{a as detectVariables,b as detectVariablesDetailed,c as detectVariablesInBody,d as detectVariablesInParagraph,m as documentHasVariables,o as docxtemplaterPlugin,e as extractVariablesFromText,i as formatVariable,f as hasTemplateVariables,g as isValidVariableName,j as parseVariable,l as removeVariables,k as replaceVariables,h as sanitizeVariableName}from'./chunk-7KJ3YVDQ.js';export{e as getTemplateTags,a as processTemplate,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-CLDB6TL7.js';export{f as createDocx,d as repackDocx,b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties,e as updateMultipleFiles}from'./chunk-FXJAIFPR.js';export{a as executeCommand,b as executeCommands}from'./chunk-AARNCPWR.js';export{k as canRenderFont,i as getLoadedFonts,g as isFontLoaded,h as isFontsLoading,e as loadFont,l as loadFontFromBuffer,f as loadFonts,j as onFontsLoaded,p as parseDocx,m as preloadCommonFonts,o as toArrayBuffer}from'./chunk-UTWPV2I4.js';export{a as PluginRegistry,b as pluginRegistry,c as registerPlugins}from'./chunk-BUEMG4NW.js';import'./chunk-USRMBYI6.js';import'./chunk-H5NTJZO4.js';
1
+ export{r as AutoSaveManager,L as EditorCoordinator,H as ErrorManager,K as LayoutCoordinator,J as PluginLifecycleManager,q as Subscribable,x as TABLE_DATA_ATTRIBUTES,C as TableSelectionManager,M as VERSION,n as countPageBreaks,b as createColumnBreak,g as createHorizontalRule,c as createLineBreak,a as createPageBreak,e as createPageBreakParagraph,d as createPageBreakRun,F as createSelectionFromDOM,B as deleteTableFromDocument,D as extractFormattingFromElement,o as findPageBreaks,y as findTableFromClick,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,z as getTableFromDocument,m as hasPageBreakBefore,I as injectStyles,h as insertHorizontalRule,f as insertPageBreak,w as isAutoSaveSupported,l as isBreakContent,j as isColumnBreak,k as isLineBreak,i as isPageBreak,p as removePageBreak,G as rgbToHex,A as updateTableInDocument}from'./chunk-FVUGBRDD.js';export{f as DocumentAgent,c as attemptSelectiveSave,m as buildExtendedSelectionContext,b as buildPatchedDocumentXml,l as buildSelectionContext,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary,a as validatePatchSafety}from'./chunk-JIKVCUR6.js';export{l as blendColors,q as colorsEqual,i as createRgbColor,h as createThemeColor,j as darkenColor,m as ensureHexPrefix,p as generateThemeTintShadeMatrix,f as getContrastingColor,o as getThemeTintShadeHex,d as isBlack,e as isWhite,k as lightenColor,g as parseColorString,a as resolveColor,b as resolveHighlightColor,n as resolveHighlightToCss,c as resolveShadingColor}from'./chunk-4VUZBV2S.js';export{a as detectVariables,b as detectVariablesDetailed,c as detectVariablesInBody,d as detectVariablesInParagraph,m as documentHasVariables,o as docxtemplaterPlugin,e as extractVariablesFromText,i as formatVariable,f as hasTemplateVariables,g as isValidVariableName,j as parseVariable,l as removeVariables,k as replaceVariables,h as sanitizeVariableName}from'./chunk-6TUCNECX.js';export{e as getTemplateTags,a as processTemplate,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-CLDB6TL7.js';export{l as createDocx,f as repackDocx,b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties,h as updateMultipleFiles}from'./chunk-PGEORVCG.js';export{a as executeCommand,b as executeCommands}from'./chunk-AARNCPWR.js';export{i as canRenderFont,g as getLoadedFonts,e as isFontLoaded,f as isFontsLoading,c as loadFont,j as loadFontFromBuffer,d as loadFonts,h as onFontsLoaded,n as parseDocx,k as preloadCommonFonts,m as toArrayBuffer}from'./chunk-3X3LTNK4.js';export{a as PluginRegistry,b as pluginRegistry,c as registerPlugins}from'./chunk-BUEMG4NW.js';export{c as emuToPixels,e as emuToTwips,k as formatPx,h as halfPointsToPixels,d as pixelsToEmu,b as pixelsToTwips,g as pointsToPixels,f as twipsToEmu,a as twipsToPixels}from'./chunk-SE5EN2QL.js';import'./chunk-USRMBYI6.js';import'./chunk-H5NTJZO4.js';
@@ -1,4 +1,4 @@
1
- import { D as Document, B as BreakContent, a as Paragraph, b as Run, c as RunContent } from './agentApi-DfsWRyrP.js';
1
+ import { D as Document, B as BreakContent, a as Paragraph, b as Run, c as RunContent } from './agentApi-DmDuQm0e.js';
2
2
 
3
3
  /**
4
4
  * Insert Operations Utility
@@ -1,4 +1,4 @@
1
- import { D as Document, B as BreakContent, a as Paragraph, b as Run, c as RunContent } from './agentApi-DfsWRyrP.cjs';
1
+ import { D as Document, B as BreakContent, a as Paragraph, b as Run, c as RunContent } from './agentApi-DmDuQm0e.cjs';
2
2
 
3
3
  /**
4
4
  * Insert Operations Utility
@@ -1,4 +1,4 @@
1
- 'use strict';var chunkNVAQQYBJ_cjs=require('./chunk-NVAQQYBJ.cjs'),chunkGICVJSFJ_cjs=require('./chunk-GICVJSFJ.cjs'),chunkJRRTZZ72_cjs=require('./chunk-JRRTZZ72.cjs'),chunkTAF6KYDM_cjs=require('./chunk-TAF6KYDM.cjs'),chunkB7TICMXD_cjs=require('./chunk-B7TICMXD.cjs'),chunkY6QBJGMO_cjs=require('./chunk-Y6QBJGMO.cjs'),chunkP7ZF45KZ_cjs=require('./chunk-P7ZF45KZ.cjs'),chunkEH3NY2DQ_cjs=require('./chunk-EH3NY2DQ.cjs'),chunkYS7FDEZ4_cjs=require('./chunk-YS7FDEZ4.cjs');require('./chunk-XQNCLN4T.cjs'),require('./chunk-PCJ5ACUV.cjs');function l(n){let e=[];for(let t of n.content)t.type==="run"?e.push(c(t)):t.type==="hyperlink"&&e.push(g(t));return e.join("")}function c(n){return n.content.filter(e=>e.type==="text").map(e=>e.text).join("")}function g(n){let e=[];for(let t of n.children)t.type==="run"&&e.push(c(t));return e.join("")}function f(n){let e=[];for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&e.push(l(r));return e.join(" ")}function Ne(n){let e=[];for(let t of n.content)t.type==="paragraph"?e.push(l(t)):t.type==="table"&&e.push(f(t));return e.join(`
1
+ 'use strict';var chunkNVAQQYBJ_cjs=require('./chunk-NVAQQYBJ.cjs'),chunkKL2RYY6G_cjs=require('./chunk-KL2RYY6G.cjs'),chunkIA4LPH2A_cjs=require('./chunk-IA4LPH2A.cjs'),chunk5ILXHRJS_cjs=require('./chunk-5ILXHRJS.cjs'),chunkB7TICMXD_cjs=require('./chunk-B7TICMXD.cjs'),chunkPUVSVHHB_cjs=require('./chunk-PUVSVHHB.cjs'),chunkP7ZF45KZ_cjs=require('./chunk-P7ZF45KZ.cjs'),chunkPIVLDW7B_cjs=require('./chunk-PIVLDW7B.cjs'),chunkYS7FDEZ4_cjs=require('./chunk-YS7FDEZ4.cjs'),chunkKR32M3S4_cjs=require('./chunk-KR32M3S4.cjs');require('./chunk-XQNCLN4T.cjs'),require('./chunk-PCJ5ACUV.cjs');function l(n){let e=[];for(let t of n.content)t.type==="run"?e.push(c(t)):t.type==="hyperlink"&&e.push(g(t));return e.join("")}function c(n){return n.content.filter(e=>e.type==="text").map(e=>e.text).join("")}function g(n){let e=[];for(let t of n.children)t.type==="run"&&e.push(c(t));return e.join("")}function f(n){let e=[];for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&e.push(l(r));return e.join(" ")}function Ne(n){let e=[];for(let t of n.content)t.type==="paragraph"?e.push(l(t)):t.type==="table"&&e.push(f(t));return e.join(`
2
2
  `)}function m(n){return n.split(/\s+/).filter(t=>t.length>0).length}function qe(n,e=true){return e?n.length:n.replace(/\s/g,"").length}function Ze(n){let e=0;for(let t of n.content)t.type==="paragraph"?e+=m(l(t)):t.type==="table"&&(e+=_e(t));return e}function _e(n){let e=0;for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&(e+=m(l(r)));return e}function Je(n){let e=0;for(let t of n.content)t.type==="paragraph"?e+=l(t).length:t.type==="table"&&(e+=Ue(t));return e}function Ue(n){let e=0;for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&(e+=l(r).length);return e}function Xe(n,e,t){let o=[],r=0,i=n[e.paragraphIndex];if(i){let s=l(i).slice(0,e.offset);o.unshift(s),r+=s.length;}for(let p=e.paragraphIndex-1;p>=0&&r<t;p--){let s=n[p];if(!s)continue;let u=l(s);o.unshift(u),r+=u.length;}let a=o.join(`
3
3
  `);return a.length>t?"..."+a.slice(-t):a}function Ge(n,e,t){let o=[],r=0,i=n[e.paragraphIndex];if(i){let s=l(i).slice(e.offset);o.push(s),r+=s.length;}for(let p=e.paragraphIndex+1;p<n.length&&r<t;p++){let s=n[p];if(!s)continue;let u=l(s);o.push(u),r+=u.length;}let a=o.join(`
4
- `);return a.length>t?a.slice(0,t)+"...":a}function Ke(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o),i=t+r.length;if(e>=t&&e<i)return o.formatting||{};t=i;}else if(o.type==="hyperlink"){let r=g(o),i=t+r.length;if(e>=t&&e<i){for(let a of o.children)if(a.type==="run")return a.formatting||{}}t=i;}return {}}function Qe(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return true;t=a;}return false}function Ye(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return o;t=a;}}function $e(n){return n?n.toLowerCase().includes("heading"):false}function et(n){if(!n)return;let e=n.match(/heading\s*(\d)/i);if(e)return parseInt(e[1],10)}function tt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="run"){for(let o of t.content)if(o.type==="drawing")return true}}return false}function nt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="hyperlink")return true}return false}function ot(n){return n.content.some(e=>e.type==="table")}function x(n){return n.content.filter(e=>e.type==="paragraph")}function rt(n,e){return x(n)[e]}function at(n,e){let t=0;for(let o=0;o<n.content.length;o++)if(n.content[o].type==="paragraph"){if(t===e)return o;t++;}return -1}var st="0.0.2";Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.g}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.d}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.a}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.h}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.b}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.f}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.e}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.c}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.f}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.c}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.m}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.b}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.l}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.j}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.g}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.h}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.k}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.n}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkGICVJSFJ_cjs.a}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.j}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.t}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.v}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.B}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.f}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.y}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.g}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.u}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.s}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.x}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.b}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.c}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.w}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkJRRTZZ72_cjs.r}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.m}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.g}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.n}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunkTAF6KYDM_cjs.h}});Object.defineProperty(exports,"createTemplateProcessor",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.j}});Object.defineProperty(exports,"getMissingVariables",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.g}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.e}});Object.defineProperty(exports,"previewTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.h}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.a}});Object.defineProperty(exports,"processTemplateAdvanced",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.i}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.f}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.f}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.d}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.a}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkY6QBJGMO_cjs.e}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.b}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkEH3NY2DQ_cjs.p}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});exports.VERSION=st;exports.countCharacters=qe;exports.countWords=m;exports.getBlockIndexForParagraph=at;exports.getBodyCharacterCount=Je;exports.getBodyText=Ne;exports.getBodyWordCount=Ze;exports.getFormattingAtPosition=Ke;exports.getHyperlinkAtPosition=Ye;exports.getHyperlinkText=g;exports.getParagraphAtIndex=rt;exports.getParagraphText=l;exports.getParagraphs=x;exports.getRunText=c;exports.getTableText=f;exports.getTextAfter=Ge;exports.getTextBefore=Xe;exports.hasHyperlinks=nt;exports.hasImages=tt;exports.hasTables=ot;exports.isHeadingStyle=$e;exports.isPositionInHyperlink=Qe;exports.parseHeadingLevel=et;
4
+ `);return a.length>t?a.slice(0,t)+"...":a}function Ke(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o),i=t+r.length;if(e>=t&&e<i)return o.formatting||{};t=i;}else if(o.type==="hyperlink"){let r=g(o),i=t+r.length;if(e>=t&&e<i){for(let a of o.children)if(a.type==="run")return a.formatting||{}}t=i;}return {}}function Qe(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return true;t=a;}return false}function Ye(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return o;t=a;}}function $e(n){return n?n.toLowerCase().includes("heading"):false}function et(n){if(!n)return;let e=n.match(/heading\s*(\d)/i);if(e)return parseInt(e[1],10)}function tt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="run"){for(let o of t.content)if(o.type==="drawing")return true}}return false}function nt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="hyperlink")return true}return false}function ot(n){return n.content.some(e=>e.type==="table")}function x(n){return n.content.filter(e=>e.type==="paragraph")}function rt(n,e){return x(n)[e]}function at(n,e){let t=0;for(let o=0;o<n.content.length;o++)if(n.content[o].type==="paragraph"){if(t===e)return o;t++;}return -1}var st="0.0.2";Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.g}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.d}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.a}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.h}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.b}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.f}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.e}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.c}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.f}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.c}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.m}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.b}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.l}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.j}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.g}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.h}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.k}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.n}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.a}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.j}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.f}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.g}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.b}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.c}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.m}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.g}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.n}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.h}});Object.defineProperty(exports,"createTemplateProcessor",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.j}});Object.defineProperty(exports,"getMissingVariables",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.g}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.e}});Object.defineProperty(exports,"previewTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.h}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.a}});Object.defineProperty(exports,"processTemplateAdvanced",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.i}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.f}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.l}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.f}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.a}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.h}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.b}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.n}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.c}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.e}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.k}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.h}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.d}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.b}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.g}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.f}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.a}});exports.VERSION=st;exports.countCharacters=qe;exports.countWords=m;exports.getBlockIndexForParagraph=at;exports.getBodyCharacterCount=Je;exports.getBodyText=Ne;exports.getBodyWordCount=Ze;exports.getFormattingAtPosition=Ke;exports.getHyperlinkAtPosition=Ye;exports.getHyperlinkText=g;exports.getParagraphAtIndex=rt;exports.getParagraphText=l;exports.getParagraphs=x;exports.getRunText=c;exports.getTableText=f;exports.getTextAfter=Ge;exports.getTextBefore=Xe;exports.hasHyperlinks=nt;exports.hasImages=tt;exports.hasTables=ot;exports.isHeadingStyle=$e;exports.isPositionInHyperlink=Qe;exports.parseHeadingLevel=et;
@@ -1,10 +1,10 @@
1
- import { d as DocumentBody, a as Paragraph, T as TextFormatting, H as Hyperlink, b as Run, e as Table, P as Position } from './agentApi-DfsWRyrP.cjs';
2
- export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, k as ApplyVariablesCommand, l as BlockContent, m as DEFAULT_AI_ACTIONS, n as DeleteTextCommand, D as Document, o as DocxPackage, E as Endnote, F as Footnote, p as FormatParagraphCommand, q as FormatTextCommand, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, v as ParagraphContext, w as ParagraphFormatting, x as ParagraphOutline, R as Range, y as Relationship, z as ReplaceTextCommand, c as RunContent, S as SectionInfo, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, K as Style, M as StyleDefinitions, O as StyleInfo, Q as SuggestedAction, U as TableCell, V as TableRow, W as TextContent, X as Theme, Y as comparePositions, Z as createCollapsedRange, _ as createCommand, $ as createRange, a0 as getActionDescription, a1 as getActionLabel, a2 as isPositionInRange } from './agentApi-DfsWRyrP.cjs';
3
- export { A as AgentContextOptions, S as ContextSelectionOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, F as FormattingSummary, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, T as TemplateError, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, f as buildSelectionContextFromContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, k as createTemplateProcessor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, v as getMissingVariables, w as getSelectionFormattingSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, L as previewTemplate, M as processTemplate, N as processTemplateAdvanced, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-Dr8kQZAQ.cjs';
4
- export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-DEEpBL9H.cjs';
5
- export { D as DocumentAgent, F as FormattedTextSegment, I as InsertHyperlinkOptions, a as InsertImageOptions, b as InsertTableOptions, c as InsertTextOptions, d as attemptSelectiveSave, e as createAgent, f as createAgentFromDocument } from './DocumentAgent-CnJ9AEl_.cjs';
6
- export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-BU-FbHh-.cjs';
7
- export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-B4oQJa2e.cjs';
1
+ import { d as DocumentBody, a as Paragraph, T as TextFormatting, H as Hyperlink, b as Run, e as Table, P as Position } from './agentApi-DmDuQm0e.cjs';
2
+ export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, k as ApplyVariablesCommand, l as BlockContent, m as DEFAULT_AI_ACTIONS, n as DeleteTextCommand, D as Document, o as DocxPackage, E as Endnote, F as Footnote, p as FormatParagraphCommand, q as FormatTextCommand, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, v as ParagraphContext, w as ParagraphFormatting, x as ParagraphOutline, R as Range, y as Relationship, z as ReplaceTextCommand, c as RunContent, S as SectionInfo, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, K as Style, M as StyleDefinitions, O as StyleInfo, Q as SuggestedAction, U as TableCell, V as TableRow, W as TextContent, X as Theme, Y as comparePositions, Z as createCollapsedRange, _ as createCommand, $ as createRange, a0 as getActionDescription, a1 as getActionLabel, a2 as isPositionInRange } from './agentApi-DmDuQm0e.cjs';
3
+ export { A as AgentContextOptions, S as ContextSelectionOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, F as FormattingSummary, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, T as TemplateError, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, f as buildSelectionContextFromContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, k as createTemplateProcessor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, v as getMissingVariables, w as getSelectionFormattingSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, L as previewTemplate, M as processTemplate, N as processTemplateAdvanced, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-yl7Xh_Qg.cjs';
4
+ export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-COQvtZji.cjs';
5
+ export { D as DocumentAgent, F as FormattedTextSegment, I as InsertHyperlinkOptions, a as InsertImageOptions, b as InsertTableOptions, c as InsertTextOptions, d as attemptSelectiveSave, e as createAgent, f as createAgentFromDocument } from './DocumentAgent-cHf96hwL.cjs';
6
+ export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-CXGC344v.cjs';
7
+ export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-C8ST_dnq.cjs';
8
8
 
9
9
  /**
10
10
  * Shared Text Utilities for Agent Module
@@ -1,10 +1,10 @@
1
- import { d as DocumentBody, a as Paragraph, T as TextFormatting, H as Hyperlink, b as Run, e as Table, P as Position } from './agentApi-DfsWRyrP.js';
2
- export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, k as ApplyVariablesCommand, l as BlockContent, m as DEFAULT_AI_ACTIONS, n as DeleteTextCommand, D as Document, o as DocxPackage, E as Endnote, F as Footnote, p as FormatParagraphCommand, q as FormatTextCommand, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, v as ParagraphContext, w as ParagraphFormatting, x as ParagraphOutline, R as Range, y as Relationship, z as ReplaceTextCommand, c as RunContent, S as SectionInfo, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, K as Style, M as StyleDefinitions, O as StyleInfo, Q as SuggestedAction, U as TableCell, V as TableRow, W as TextContent, X as Theme, Y as comparePositions, Z as createCollapsedRange, _ as createCommand, $ as createRange, a0 as getActionDescription, a1 as getActionLabel, a2 as isPositionInRange } from './agentApi-DfsWRyrP.js';
3
- export { A as AgentContextOptions, S as ContextSelectionOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, F as FormattingSummary, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, T as TemplateError, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, f as buildSelectionContextFromContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, k as createTemplateProcessor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, v as getMissingVariables, w as getSelectionFormattingSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, L as previewTemplate, M as processTemplate, N as processTemplateAdvanced, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-CYttioMe.js';
4
- export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-7wjInVMW.js';
5
- export { D as DocumentAgent, F as FormattedTextSegment, I as InsertHyperlinkOptions, a as InsertImageOptions, b as InsertTableOptions, c as InsertTextOptions, d as attemptSelectiveSave, e as createAgent, f as createAgentFromDocument } from './DocumentAgent-CrbsDniO.js';
6
- export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-gRbkCooh.js';
7
- export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-BXJaTkiB.js';
1
+ import { d as DocumentBody, a as Paragraph, T as TextFormatting, H as Hyperlink, b as Run, e as Table, P as Position } from './agentApi-DmDuQm0e.js';
2
+ export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, k as ApplyVariablesCommand, l as BlockContent, m as DEFAULT_AI_ACTIONS, n as DeleteTextCommand, D as Document, o as DocxPackage, E as Endnote, F as Footnote, p as FormatParagraphCommand, q as FormatTextCommand, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, v as ParagraphContext, w as ParagraphFormatting, x as ParagraphOutline, R as Range, y as Relationship, z as ReplaceTextCommand, c as RunContent, S as SectionInfo, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, K as Style, M as StyleDefinitions, O as StyleInfo, Q as SuggestedAction, U as TableCell, V as TableRow, W as TextContent, X as Theme, Y as comparePositions, Z as createCollapsedRange, _ as createCommand, $ as createRange, a0 as getActionDescription, a1 as getActionLabel, a2 as isPositionInRange } from './agentApi-DmDuQm0e.js';
3
+ export { A as AgentContextOptions, S as ContextSelectionOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, F as FormattingSummary, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, T as TemplateError, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, f as buildSelectionContextFromContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, k as createTemplateProcessor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, v as getMissingVariables, w as getSelectionFormattingSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, L as previewTemplate, M as processTemplate, N as processTemplateAdvanced, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-BTTqW66Q.js';
4
+ export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-BpokDLqL.js';
5
+ export { D as DocumentAgent, F as FormattedTextSegment, I as InsertHyperlinkOptions, a as InsertImageOptions, b as InsertTableOptions, c as InsertTextOptions, d as attemptSelectiveSave, e as createAgent, f as createAgentFromDocument } from './DocumentAgent-lHtXgMFN.js';
6
+ export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-C2DPl-QW.js';
7
+ export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-BYzE_RXw.js';
8
8
 
9
9
  /**
10
10
  * Shared Text Utilities for Agent Module
@@ -1,4 +1,4 @@
1
- export{g as DEFAULT_AI_ACTIONS,d as comparePositions,a as createCollapsedRange,h as createCommand,b as createRange,f as getActionDescription,e as getActionLabel,c as isPositionInRange}from'./chunk-QVPR2W5S.js';export{f as DocumentAgent,c as attemptSelectiveSave,m as buildExtendedSelectionContext,b as buildPatchedDocumentXml,l as buildSelectionContext,j as buildSelectionContextFromContext,g as createAgent,h as createAgentFromDocument,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary,n as getSelectionFormattingSummary,a as validatePatchSafety}from'./chunk-6NDMKJIE.js';export{l as blendColors,q as colorsEqual,i as createRgbColor,h as createThemeColor,j as darkenColor,t as emuToPixels,v as emuToTwips,B as formatPx,f as getContrastingColor,y as halfPointsToPixels,d as isBlack,e as isWhite,k as lightenColor,g as parseColorString,u as pixelsToEmu,s as pixelsToTwips,x as pointsToPixels,a as resolveColor,b as resolveHighlightColor,c as resolveShadingColor,w as twipsToEmu,r as twipsToPixels}from'./chunk-ZTVQA46Q.js';export{a as detectVariables,b as detectVariablesDetailed,c as detectVariablesInBody,d as detectVariablesInParagraph,m as documentHasVariables,e as extractVariablesFromText,i as formatVariable,f as hasTemplateVariables,g as isValidVariableName,n as isZodSchema,j as parseVariable,l as removeVariables,k as replaceVariables,h as sanitizeVariableName}from'./chunk-7KJ3YVDQ.js';export{j as createTemplateProcessor,g as getMissingVariables,e as getTemplateTags,h as previewTemplate,a as processTemplate,i as processTemplateAdvanced,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-CLDB6TL7.js';export{f as createDocx,d as repackDocx,b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties,e as updateMultipleFiles}from'./chunk-FXJAIFPR.js';export{a as executeCommand,b as executeCommands}from'./chunk-AARNCPWR.js';export{p as parseDocx}from'./chunk-UTWPV2I4.js';export{a as PluginRegistry,d as createPluginRegistrar,b as pluginRegistry,c as registerPlugins}from'./chunk-BUEMG4NW.js';import'./chunk-USRMBYI6.js';import'./chunk-H5NTJZO4.js';function l(n){let e=[];for(let t of n.content)t.type==="run"?e.push(c(t)):t.type==="hyperlink"&&e.push(g(t));return e.join("")}function c(n){return n.content.filter(e=>e.type==="text").map(e=>e.text).join("")}function g(n){let e=[];for(let t of n.children)t.type==="run"&&e.push(c(t));return e.join("")}function f(n){let e=[];for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&e.push(l(r));return e.join(" ")}function Ne(n){let e=[];for(let t of n.content)t.type==="paragraph"?e.push(l(t)):t.type==="table"&&e.push(f(t));return e.join(`
1
+ export{g as DEFAULT_AI_ACTIONS,d as comparePositions,a as createCollapsedRange,h as createCommand,b as createRange,f as getActionDescription,e as getActionLabel,c as isPositionInRange}from'./chunk-QVPR2W5S.js';export{f as DocumentAgent,c as attemptSelectiveSave,m as buildExtendedSelectionContext,b as buildPatchedDocumentXml,l as buildSelectionContext,j as buildSelectionContextFromContext,g as createAgent,h as createAgentFromDocument,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary,n as getSelectionFormattingSummary,a as validatePatchSafety}from'./chunk-JIKVCUR6.js';export{l as blendColors,q as colorsEqual,i as createRgbColor,h as createThemeColor,j as darkenColor,f as getContrastingColor,d as isBlack,e as isWhite,k as lightenColor,g as parseColorString,a as resolveColor,b as resolveHighlightColor,c as resolveShadingColor}from'./chunk-4VUZBV2S.js';export{a as detectVariables,b as detectVariablesDetailed,c as detectVariablesInBody,d as detectVariablesInParagraph,m as documentHasVariables,e as extractVariablesFromText,i as formatVariable,f as hasTemplateVariables,g as isValidVariableName,n as isZodSchema,j as parseVariable,l as removeVariables,k as replaceVariables,h as sanitizeVariableName}from'./chunk-6TUCNECX.js';export{j as createTemplateProcessor,g as getMissingVariables,e as getTemplateTags,h as previewTemplate,a as processTemplate,i as processTemplateAdvanced,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-CLDB6TL7.js';export{l as createDocx,f as repackDocx,b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties,h as updateMultipleFiles}from'./chunk-PGEORVCG.js';export{a as executeCommand,b as executeCommands}from'./chunk-AARNCPWR.js';export{n as parseDocx}from'./chunk-3X3LTNK4.js';export{a as PluginRegistry,d as createPluginRegistrar,b as pluginRegistry,c as registerPlugins}from'./chunk-BUEMG4NW.js';export{c as emuToPixels,e as emuToTwips,k as formatPx,h as halfPointsToPixels,d as pixelsToEmu,b as pixelsToTwips,g as pointsToPixels,f as twipsToEmu,a as twipsToPixels}from'./chunk-SE5EN2QL.js';import'./chunk-USRMBYI6.js';import'./chunk-H5NTJZO4.js';function l(n){let e=[];for(let t of n.content)t.type==="run"?e.push(c(t)):t.type==="hyperlink"&&e.push(g(t));return e.join("")}function c(n){return n.content.filter(e=>e.type==="text").map(e=>e.text).join("")}function g(n){let e=[];for(let t of n.children)t.type==="run"&&e.push(c(t));return e.join("")}function f(n){let e=[];for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&e.push(l(r));return e.join(" ")}function Ne(n){let e=[];for(let t of n.content)t.type==="paragraph"?e.push(l(t)):t.type==="table"&&e.push(f(t));return e.join(`
2
2
  `)}function m(n){return n.split(/\s+/).filter(t=>t.length>0).length}function qe(n,e=true){return e?n.length:n.replace(/\s/g,"").length}function Ze(n){let e=0;for(let t of n.content)t.type==="paragraph"?e+=m(l(t)):t.type==="table"&&(e+=_e(t));return e}function _e(n){let e=0;for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&(e+=m(l(r)));return e}function Je(n){let e=0;for(let t of n.content)t.type==="paragraph"?e+=l(t).length:t.type==="table"&&(e+=Ue(t));return e}function Ue(n){let e=0;for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&(e+=l(r).length);return e}function Xe(n,e,t){let o=[],r=0,i=n[e.paragraphIndex];if(i){let s=l(i).slice(0,e.offset);o.unshift(s),r+=s.length;}for(let p=e.paragraphIndex-1;p>=0&&r<t;p--){let s=n[p];if(!s)continue;let u=l(s);o.unshift(u),r+=u.length;}let a=o.join(`
3
3
  `);return a.length>t?"..."+a.slice(-t):a}function Ge(n,e,t){let o=[],r=0,i=n[e.paragraphIndex];if(i){let s=l(i).slice(e.offset);o.push(s),r+=s.length;}for(let p=e.paragraphIndex+1;p<n.length&&r<t;p++){let s=n[p];if(!s)continue;let u=l(s);o.push(u),r+=u.length;}let a=o.join(`
4
4
  `);return a.length>t?a.slice(0,t)+"...":a}function Ke(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o),i=t+r.length;if(e>=t&&e<i)return o.formatting||{};t=i;}else if(o.type==="hyperlink"){let r=g(o),i=t+r.length;if(e>=t&&e<i){for(let a of o.children)if(a.type==="run")return a.formatting||{}}t=i;}return {}}function Qe(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return true;t=a;}return false}function Ye(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return o;t=a;}}function $e(n){return n?n.toLowerCase().includes("heading"):false}function et(n){if(!n)return;let e=n.match(/heading\s*(\d)/i);if(e)return parseInt(e[1],10)}function tt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="run"){for(let o of t.content)if(o.type==="drawing")return true}}return false}function nt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="hyperlink")return true}return false}function ot(n){return n.content.some(e=>e.type==="table")}function x(n){return n.content.filter(e=>e.type==="paragraph")}function rt(n,e){return x(n)[e]}function at(n,e){let t=0;for(let o=0;o<n.content.length;o++)if(n.content[o].type==="paragraph"){if(t===e)return o;t++;}return -1}var st="0.0.2";export{st as VERSION,qe as countCharacters,m as countWords,at as getBlockIndexForParagraph,Je as getBodyCharacterCount,Ne as getBodyText,Ze as getBodyWordCount,Ke as getFormattingAtPosition,Ye as getHyperlinkAtPosition,g as getHyperlinkText,rt as getParagraphAtIndex,l as getParagraphText,x as getParagraphs,c as getRunText,f as getTableText,Ge as getTextAfter,Xe as getTextBefore,nt as hasHyperlinks,tt as hasImages,ot as hasTables,$e as isHeadingStyle,Qe as isPositionInHyperlink,et as parseHeadingLevel};