@eigenpal/docx-editor-agents 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/LICENSE +13 -16
  2. package/README.md +1 -1
  3. package/dist/bridge.d.mts +1 -1
  4. package/dist/bridge.d.ts +1 -1
  5. package/dist/bridge.js +1 -1
  6. package/dist/bridge.mjs +1 -1
  7. package/dist/chunk-EPRXZTIE.js +1 -0
  8. package/dist/chunk-F22XEI77.mjs +5 -0
  9. package/dist/chunk-FUL3O7MO.js +5 -0
  10. package/dist/{chunk-W6AWGFM4.js → chunk-NKRT67UB.js} +2 -2
  11. package/dist/chunk-QPFWFH5W.mjs +72 -0
  12. package/dist/{chunk-MQIZY6IO.mjs → chunk-UIE7JPED.mjs} +1 -1
  13. package/dist/{chunk-RP4LYHUB.js → chunk-VGEZQUGC.js} +1 -1
  14. package/dist/chunk-XDZHYYU6.mjs +1 -0
  15. package/dist/{chunk-J2BSSNNF.mjs → chunk-XQG2G2LT.mjs} +1 -1
  16. package/dist/chunk-YNUYVVTY.js +72 -0
  17. package/dist/executor-SBR6X4JZ.mjs +1 -0
  18. package/dist/executor-ZTSOZMKE.js +1 -0
  19. package/dist/headless-B66Z373X.mjs +1 -0
  20. package/dist/headless-Y3JKFH2E.js +1 -0
  21. package/dist/index.d.mts +2 -2
  22. package/dist/index.d.ts +2 -2
  23. package/dist/index.js +1 -1
  24. package/dist/index.mjs +1 -1
  25. package/dist/mcp.d.mts +1 -1
  26. package/dist/mcp.d.ts +1 -1
  27. package/dist/react.d.mts +2 -2
  28. package/dist/react.d.ts +2 -2
  29. package/dist/react.js +1 -1
  30. package/dist/react.mjs +1 -1
  31. package/dist/{server-B7RHNVSu.d.mts → server-BELKcdSd.d.mts} +49 -0
  32. package/dist/{server-B7RHNVSu.d.ts → server-BELKcdSd.d.ts} +49 -0
  33. package/dist/server.d.mts +1 -1
  34. package/dist/server.d.ts +1 -1
  35. package/dist/server.js +1 -1
  36. package/dist/server.mjs +1 -1
  37. package/dist/vue.js +2 -2
  38. package/dist/vue.mjs +18 -20
  39. package/package.json +2 -2
  40. package/dist/chunk-4UY5MI2V.mjs +0 -71
  41. package/dist/chunk-6Z6UJ4RC.js +0 -5
  42. package/dist/chunk-EKCQF23W.mjs +0 -5
  43. package/dist/chunk-NISW2GF6.js +0 -1
  44. package/dist/chunk-ONK67NAB.js +0 -71
  45. package/dist/chunk-X4YGLGUM.mjs +0 -1
  46. package/dist/executor-QBMOTUCJ.js +0 -1
  47. package/dist/executor-RSQI3VOF.mjs +0 -1
  48. package/dist/headless-2IWI27NG.mjs +0 -1
  49. package/dist/headless-JZRG6TNP.js +0 -1
@@ -1 +0,0 @@
1
- var D=class{constructor(){this.plugins=new Map;this.commandHandlers=new Map;this.eventListeners=new Set;this.initialized=new Set;}register(e,r){let n=[];if(!e.id)return {success:false,error:"Plugin must have an id"};if(this.plugins.has(e.id))return {success:false,error:`Plugin '${e.id}' is already registered`};if(e.dependencies){for(let t of e.dependencies)if(!this.plugins.has(t))return {success:false,error:`Plugin '${e.id}' requires '${t}' which is not registered`}}if(e.commandHandlers)for(let[t,s]of Object.entries(e.commandHandlers)){if(this.commandHandlers.has(t)){let i=this.commandHandlers.get(t);n.push(`Command '${t}' from '${e.id}' overrides handler from '${i.pluginId}'`);}this.commandHandlers.set(t,{pluginId:e.id,handler:s});}if(this.plugins.set(e.id,e),e.initialize&&!this.initialized.has(e.id))try{let t=e.initialize();t instanceof Promise?t.then(()=>{this.initialized.add(e.id);}).catch(s=>{this.emit({type:"error",pluginId:e.id,error:s});}):this.initialized.add(e.id);}catch(t){this.emit({type:"error",pluginId:e.id,error:t});}return r?.debug&&console.log(`[PluginRegistry] Registered plugin: ${e.id}`),this.emit({type:"registered",plugin:e}),{success:true,plugin:e,warnings:n.length>0?n:void 0}}unregister(e){let r=this.plugins.get(e);if(!r)return false;for(let[n,t]of this.plugins)if(t.dependencies?.includes(e))return console.warn(`Cannot unregister '${e}': '${n}' depends on it`),false;for(let[n,{pluginId:t}]of this.commandHandlers)t===e&&this.commandHandlers.delete(n);if(r.destroy)try{let n=r.destroy();n instanceof Promise&&n.catch(t=>{this.emit({type:"error",pluginId:e,error:t});});}catch(n){this.emit({type:"error",pluginId:e,error:n});}return this.plugins.delete(e),this.initialized.delete(e),this.emit({type:"unregistered",pluginId:e}),true}get(e){return this.plugins.get(e)}getAll(){return Array.from(this.plugins.values())}has(e){return this.plugins.has(e)}get size(){return this.plugins.size}getCommandHandler(e){return this.commandHandlers.get(e)?.handler}getCommandTypes(){return Array.from(this.commandHandlers.keys())}hasCommandHandler(e){return this.commandHandlers.has(e)}getMcpTools(){let e=[];for(let r of this.plugins.values())r.mcpTools&&e.push(...r.mcpTools);return e}getMcpToolsForPlugin(e){return this.plugins.get(e)?.mcpTools||[]}getMcpTool(e){for(let r of this.plugins.values())if(r.mcpTools){let n=r.mcpTools.find(t=>t.name===e);if(n)return n}}addEventListener(e){this.eventListeners.add(e);}removeEventListener(e){this.eventListeners.delete(e);}emit(e){for(let r of this.eventListeners)try{r(e);}catch(n){console.error("[PluginRegistry] Event listener error:",n);}}clear(){for(let e of this.plugins.values())if(e.destroy)try{e.destroy();}catch{}this.plugins.clear(),this.commandHandlers.clear(),this.initialized.clear();}getDebugInfo(){return {plugins:Array.from(this.plugins.keys()),commandTypes:Array.from(this.commandHandlers.keys()),mcpTools:this.getMcpTools().map(e=>e.name),initialized:Array.from(this.initialized)}}},C=new D;function U(o,e){return o.map(r=>C.register(r,e))}function W(o){return e=>C.register(e,o)}function h(o){return JSON.parse(JSON.stringify(o))}function g(o,e){let r=0;for(let n=0;n<o.content.length;n++)if(o.content[n].type==="paragraph"){if(r===e)return n;r++;}return -1}function y(o){let e="";for(let r of o.content)if(r.type==="run")for(let n of r.content)n.type==="text"&&(e+=n.text);else if(r.type==="hyperlink"){for(let n of r.children)if(n.type==="run")for(let t of n.content)t.type==="text"&&(e+=t.text);}return e}function T(o,e){return {type:"run",formatting:e,content:[{type:"text",text:o}]}}function I(o,e,r,n){let t=[],s=0,i=false;for(let a of o.content)if(a.type==="run"){let p=a.content.filter(l=>l.type==="text").map(l=>l.text).join(""),c=s,u=s+p.length;if(!i&&e>=c&&e<=u){let l=e-c;l>0&&t.push({...a,content:[{type:"text",text:p.slice(0,l)}]}),t.push(T(r,n||a.formatting)),l<p.length&&t.push({...a,content:[{type:"text",text:p.slice(l)}]}),i=true;}else t.push(a);s=u;}else t.push(a);return i||t.push(T(r,n)),t}function d(o,e,r){let n=[],t=0;for(let s of o.content)if(s.type==="run"){let i=s.content.filter(c=>c.type==="text").map(c=>c.text).join(""),a=t,p=t+i.length;if(p<=e||a>=r)n.push(s);else {let c="";a<e&&(c+=i.slice(0,e-a)),p>r&&(c+=i.slice(r-a)),c.length>0&&n.push({...s,content:[{type:"text",text:c}]});}t=p;}else n.push(s);return n}function w(o,e,r,n){let t=[],s=0;for(let i of o.content)if(i.type==="run"){let a=i.content.filter(u=>u.type==="text").map(u=>u.text).join(""),p=s,c=s+a.length;if(c<=e||p>=r)t.push(i);else if(p>=e&&c<=r)t.push({...i,formatting:{...i.formatting,...n}});else {let u=Math.max(e,p),l=Math.min(r,c);p<u&&t.push({...i,content:[{type:"text",text:a.slice(0,u-p)}]}),t.push({...i,formatting:{...i.formatting,...n},content:[{type:"text",text:a.slice(u-p,l-p)}]}),c>l&&t.push({...i,content:[{type:"text",text:a.slice(l-p)}]});}s=c;}else t.push(i);return t}function R(o,e){let r=h(o),n=r.package.document,t=g(n,e.position.paragraphIndex);if(t===-1)throw new Error(`Paragraph index ${e.position.paragraphIndex} not found`);let s=n.content[t];return s.content=I(s,e.position.offset,e.text,e.formatting),r}function _(o,e){let r=h(o),n=r.package.document,{start:t,end:s}=e.range;if(t.paragraphIndex===s.paragraphIndex){let i=g(n,t.paragraphIndex);if(i===-1)throw new Error(`Paragraph index ${t.paragraphIndex} not found`);let a=n.content[i];a.content=d(a,t.offset,s.offset),a.content=I(a,t.offset,e.text,e.formatting);}else {let i=g(n,t.paragraphIndex),a=n.content[i],p=y(a);a.content=d(a,t.offset,p.length),a.content=I(a,t.offset,e.text,e.formatting);let c=[];for(let u=t.paragraphIndex+1;u<=s.paragraphIndex;u++)c.push(g(n,u));for(let u=c.length-1;u>=0;u--)c[u]!==-1&&n.content.splice(c[u],1);}return r}function v(o,e){let r=h(o),n=r.package.document,{start:t,end:s}=e.range;if(t.paragraphIndex===s.paragraphIndex){let i=g(n,t.paragraphIndex);if(i===-1)throw new Error(`Paragraph index ${t.paragraphIndex} not found`);let a=n.content[i];a.content=d(a,t.offset,s.offset);}else {let i=g(n,t.paragraphIndex),a=n.content[i],p=y(a);a.content=d(a,t.offset,p.length);let c=g(n,s.paragraphIndex),u=n.content[c];u.content=d(u,0,s.offset),a.content.push(...u.content);let l=[];for(let f=t.paragraphIndex+1;f<=s.paragraphIndex;f++)l.push(g(n,f));for(let f=l.length-1;f>=0;f--)l[f]!==-1&&n.content.splice(l[f],1);}return r}function S(o,e){let r=h(o),n=r.package.document,{start:t,end:s}=e.range;if(t.paragraphIndex===s.paragraphIndex){let i=g(n,t.paragraphIndex);if(i===-1)throw new Error(`Paragraph index ${t.paragraphIndex} not found`);let a=n.content[i];a.content=w(a,t.offset,s.offset,e.formatting);}else for(let i=t.paragraphIndex;i<=s.paragraphIndex;i++){let a=g(n,i);if(a===-1)continue;let p=n.content[a],c=y(p),u=0,l=c.length;i===t.paragraphIndex&&(u=t.offset),i===s.paragraphIndex&&(l=s.offset),p.content=w(p,u,l,e.formatting);}return r}function N(o,e){let r=h(o),n=r.package.document,t=g(n,e.paragraphIndex);if(t===-1)throw new Error(`Paragraph index ${e.paragraphIndex} not found`);let s=n.content[t];if(s.formatting={...s.formatting,...e.formatting},"numPr"in e.formatting){let i=e.formatting.numPr;if(i&&i.numId!==void 0&&i.numId!==0){let a=i.ilvl??0,p=i.numId===1,c=p?"\u2022":"1.";if(r.package.numbering){let u=r.package.numbering.nums.find(l=>l.numId===i.numId);if(u){let l=r.package.numbering.abstractNums.find(f=>f.abstractNumId===u.abstractNumId);if(l){let f=l.levels.find(m=>m.ilvl===a);f&&(c=f.lvlText||c);}}}s.listRendering={level:a,numId:i.numId,marker:c,isBullet:p};}else delete s.listRendering;}return r}function A(o,e){let r=h(o),n=r.package.document,t=g(n,e.paragraphIndex);if(t===-1)throw new Error(`Paragraph index ${e.paragraphIndex} not found`);let s=n.content[t];return s.formatting={...s.formatting,styleId:e.styleId},r}function Q(o){return o/1440*96}function Y(o){return o/96*1440}function Z(o){return o==null||isNaN(o)?0:Math.round(o*96/914400)}function E(o){return Math.round(o/96*914400)}function ee(o){return Math.round(o/914400*1440)}function te(o){return Math.round(o/1440*914400)}function ne(o){return o/72*96}function re(o){return o/144*96}function X(o,e=2){let r=Math.pow(10,e);return Math.round(o*r)/r}function oe(o){return `${X(o)}px`}function M(o,e){let r=h(o),n=r.package.document,t=[];for(let a=0;a<e.rows;a++){let p=[];for(let c=0;c<e.columns;c++){let u=e.data?.[a]?.[c]||"";p.push({type:"tableCell",content:[{type:"paragraph",content:u?[T(u)]:[]}]});}t.push({type:"tableRow",formatting:a===0&&e.hasHeader?{header:true}:void 0,cells:p});}let s={type:"table",rows:t},i=g(n,e.position.paragraphIndex);return i===-1?n.content.push(s):n.content.splice(i+1,0,s),r}function $(o,e){let r=h(o),n=r.package.document,t=g(n,e.position.paragraphIndex);if(t===-1)throw new Error(`Paragraph index ${e.position.paragraphIndex} not found`);let s=n.content[t],a={type:"run",content:[{type:"drawing",image:{type:"image",rId:`rId_img_${Date.now()}`,src:e.src,alt:e.alt,size:{width:E(e.width||100),height:E(e.height||100)},wrap:{type:"inline"}}}]},p=I(s,e.position.offset,"",void 0),c=false,u=0;for(let l=0;l<p.length;l++){let f=p[l];if(f.type==="run"){let m=f.content.filter(x=>x.type==="text").map(x=>x.text).join("");if(u+=m.length,!c&&u>=e.position.offset){p.splice(l+1,0,a),c=true;break}}}return c||p.push(a),s.content=p,r}function B(o,e){let r=h(o),n=r.package.document,{start:t,end:s}=e.range;if(t.paragraphIndex!==s.paragraphIndex)throw new Error("Hyperlinks cannot span multiple paragraphs");let i=g(n,t.paragraphIndex);if(i===-1)throw new Error(`Paragraph index ${t.paragraphIndex} not found`);let a=n.content[i],p=y(a),c=e.displayText||p.slice(t.offset,s.offset);a.content=d(a,t.offset,s.offset);let u={type:"hyperlink",href:e.url,tooltip:e.tooltip,children:[T(c)]},l=false,f=0,m=[];for(let x of a.content)if(x.type==="run"){let b=x.content.filter(P=>P.type==="text").map(P=>P.text).join(""),H=f+b.length;if(!l&&f<=t.offset&&t.offset<=H){let P=t.offset-f;P>0&&m.push({...x,content:[{type:"text",text:b.slice(0,P)}]}),m.push(u),P<b.length&&m.push({...x,content:[{type:"text",text:b.slice(P)}]}),l=true;}else m.push(x);f=H;}else m.push(x);return l||m.push(u),a.content=m,r}function F(o,e){let r=h(o),n=r.package.document,{start:t}=e.range,s=g(n,t.paragraphIndex);if(s===-1)throw new Error(`Paragraph index ${t.paragraphIndex} not found`);let i=n.content[s],a=[];for(let p of i.content)if(p.type==="hyperlink")for(let c of p.children)c.type==="run"&&a.push(c);else a.push(p);return i.content=a,r}function k(o,e){let r=h(o),n=r.package.document,t=g(n,e.position.paragraphIndex);if(t===-1)throw new Error(`Paragraph index ${e.position.paragraphIndex} not found`);let s=n.content[t],i=y(s),a=d({content:[...s.content]},e.position.offset,i.length),p=d({content:[...s.content]},0,e.position.offset);s.content=a;let c={type:"paragraph",formatting:s.formatting,content:p};return n.content.splice(t+1,0,c),r}function L(o,e){let r=h(o),n=r.package.document,t=g(n,e.paragraphIndex);if(t===-1)throw new Error(`Paragraph index ${e.paragraphIndex} not found`);let s=n.content[t],i=[];for(let a=1;a<=e.count;a++){let p=g(n,e.paragraphIndex+a);if(p!==-1){let c=n.content[p];s.content.push(...c.content),i.push(p);}}for(let a=i.length-1;a>=0;a--)n.content.splice(i[a],1);return r}function V(o,e){return k(o,{position:e.position})}function z(o,e){let r=h(o);return r.templateVariables||(r.templateVariables=[]),r.templateVariables.includes(e.name)||r.templateVariables.push(e.name),r}function O(o,e){let r=h(o),n=r.package.document;function t(a){for(let p of a.content)if(p.type==="text")for(let[c,u]of Object.entries(e.values)){let l=new RegExp(`\\{${c}\\}`,"g");p.text=p.text.replace(l,u);}}function s(a){for(let p of a.content)if(p.type==="run")t(p);else if(p.type==="hyperlink")for(let c of p.children)c.type==="run"&&t(c);}function i(a){if(a.type==="paragraph")s(a);else if(a.type==="table")for(let p of a.rows)for(let c of p.cells)for(let u of c.content)i(u);}for(let a of n.content)i(a);return r}function j(o,e){let r=C.getCommandHandler(e.type);if(r)return r(o,e);switch(e.type){case "insertText":return R(o,e);case "replaceText":return _(o,e);case "deleteText":return v(o,e);case "formatText":return S(o,e);case "formatParagraph":return N(o,e);case "applyStyle":return A(o,e);case "insertTable":return M(o,e);case "insertImage":return $(o,e);case "insertHyperlink":return B(o,e);case "removeHyperlink":return F(o,e);case "insertParagraphBreak":return k(o,e);case "mergeParagraphs":return L(o,e);case "splitParagraph":return V(o,e);case "setVariable":return z(o,e);case "applyVariables":return O(o,e);default:{let n=e;throw new Error(`Unknown command type: ${n.type}`)}}}function Pe(o,e){return e.reduce((r,n)=>j(r,n),o)}export{D as a,C as b,U as c,W as d,Q as e,Y as f,Z as g,E as h,ee as i,te as j,ne as k,re as l,oe as m,j as n,Pe as o};
@@ -1 +0,0 @@
1
- 'use strict';var chunkNISW2GF6_js=require('./chunk-NISW2GF6.js');Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkNISW2GF6_js.n}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkNISW2GF6_js.o}});
@@ -1 +0,0 @@
1
- export{n as executeCommand,o as executeCommands}from'./chunk-X4YGLGUM.mjs';
@@ -1 +0,0 @@
1
- export{wa as DEFAULT_AI_ACTIONS,x as DocumentAgent,ya as VERSION,i as attemptSelectiveSave,na as blendColors,E as buildExtendedSelectionContext,h as buildPatchedDocumentXml,D as buildSelectionContext,B as buildSelectionContextFromContext,oa as colorsEqual,ta as comparePositions,M as countCharacters,L as countWords,y as createAgent,z as createAgentFromDocument,qa as createCollapsedRange,xa as createCommand,ba as createDocumentWithText,f as createDocx,aa as createEmptyDocument,ra as createRange,ka as createRgbColor,ja as createThemeColor,la as darkenColor,j as detectVariables,k as detectVariablesDetailed,l as detectVariablesInBody,m as detectVariablesInParagraph,v as documentHasVariables,n as extractVariablesFromText,r as formatVariable,va as getActionDescription,ua as getActionLabel,A as getAgentContext,$ as getBlockIndexForParagraph,O as getBodyCharacterCount,K as getBodyText,N as getBodyWordCount,ha as getContrastingColor,C as getDocumentSummary,R as getFormattingAtPosition,T as getHyperlinkAtPosition,I as getHyperlinkText,_ as getParagraphAtIndex,G as getParagraphText,Z as getParagraphs,H as getRunText,F as getSelectionFormattingSummary,J as getTableText,Q as getTextAfter,P as getTextBefore,X as hasHyperlinks,W as hasImages,Y as hasTables,o as hasTemplateVariables,fa as isBlack,U as isHeadingStyle,S as isPositionInHyperlink,sa as isPositionInRange,p as isValidVariableName,ga as isWhite,pa as isZodSchema,ma as lightenColor,ia as parseColorString,w as parseDocx,V as parseHeadingLevel,s as parseVariable,u as removeVariables,d as repackDocx,t as replaceVariables,ca as resolveColor,da as resolveHighlightColor,ea as resolveShadingColor,q as sanitizeVariableName,b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties,e as updateMultipleFiles,g as validatePatchSafety}from'./chunk-4UY5MI2V.mjs';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-UILTIEBD.mjs';export{a as PluginRegistry,d as createPluginRegistrar,g as emuToPixels,i as emuToTwips,n as executeCommand,o as executeCommands,m as formatPx,l as halfPointsToPixels,h as pixelsToEmu,f as pixelsToTwips,b as pluginRegistry,k as pointsToPixels,c as registerPlugins,j as twipsToEmu,e as twipsToPixels}from'./chunk-X4YGLGUM.mjs';
@@ -1 +0,0 @@
1
- 'use strict';var chunkONK67NAB_js=require('./chunk-ONK67NAB.js'),chunk4QRVKNI4_js=require('./chunk-4QRVKNI4.js'),chunkNISW2GF6_js=require('./chunk-NISW2GF6.js');Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunkONK67NAB_js.wa}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkONK67NAB_js.x}});Object.defineProperty(exports,"VERSION",{enumerable:true,get:function(){return chunkONK67NAB_js.ya}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkONK67NAB_js.i}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkONK67NAB_js.na}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkONK67NAB_js.E}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkONK67NAB_js.h}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkONK67NAB_js.D}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkONK67NAB_js.B}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkONK67NAB_js.oa}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunkONK67NAB_js.ta}});Object.defineProperty(exports,"countCharacters",{enumerable:true,get:function(){return chunkONK67NAB_js.M}});Object.defineProperty(exports,"countWords",{enumerable:true,get:function(){return chunkONK67NAB_js.L}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkONK67NAB_js.y}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkONK67NAB_js.z}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunkONK67NAB_js.qa}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunkONK67NAB_js.xa}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkONK67NAB_js.ba}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkONK67NAB_js.f}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkONK67NAB_js.aa}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunkONK67NAB_js.ra}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkONK67NAB_js.ka}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkONK67NAB_js.ja}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkONK67NAB_js.la}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunkONK67NAB_js.j}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunkONK67NAB_js.k}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunkONK67NAB_js.l}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunkONK67NAB_js.m}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunkONK67NAB_js.v}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunkONK67NAB_js.n}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunkONK67NAB_js.r}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunkONK67NAB_js.va}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunkONK67NAB_js.ua}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkONK67NAB_js.A}});Object.defineProperty(exports,"getBlockIndexForParagraph",{enumerable:true,get:function(){return chunkONK67NAB_js.$}});Object.defineProperty(exports,"getBodyCharacterCount",{enumerable:true,get:function(){return chunkONK67NAB_js.O}});Object.defineProperty(exports,"getBodyText",{enumerable:true,get:function(){return chunkONK67NAB_js.K}});Object.defineProperty(exports,"getBodyWordCount",{enumerable:true,get:function(){return chunkONK67NAB_js.N}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkONK67NAB_js.ha}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkONK67NAB_js.C}});Object.defineProperty(exports,"getFormattingAtPosition",{enumerable:true,get:function(){return chunkONK67NAB_js.R}});Object.defineProperty(exports,"getHyperlinkAtPosition",{enumerable:true,get:function(){return chunkONK67NAB_js.T}});Object.defineProperty(exports,"getHyperlinkText",{enumerable:true,get:function(){return chunkONK67NAB_js.I}});Object.defineProperty(exports,"getParagraphAtIndex",{enumerable:true,get:function(){return chunkONK67NAB_js._}});Object.defineProperty(exports,"getParagraphText",{enumerable:true,get:function(){return chunkONK67NAB_js.G}});Object.defineProperty(exports,"getParagraphs",{enumerable:true,get:function(){return chunkONK67NAB_js.Z}});Object.defineProperty(exports,"getRunText",{enumerable:true,get:function(){return chunkONK67NAB_js.H}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkONK67NAB_js.F}});Object.defineProperty(exports,"getTableText",{enumerable:true,get:function(){return chunkONK67NAB_js.J}});Object.defineProperty(exports,"getTextAfter",{enumerable:true,get:function(){return chunkONK67NAB_js.Q}});Object.defineProperty(exports,"getTextBefore",{enumerable:true,get:function(){return chunkONK67NAB_js.P}});Object.defineProperty(exports,"hasHyperlinks",{enumerable:true,get:function(){return chunkONK67NAB_js.X}});Object.defineProperty(exports,"hasImages",{enumerable:true,get:function(){return chunkONK67NAB_js.W}});Object.defineProperty(exports,"hasTables",{enumerable:true,get:function(){return chunkONK67NAB_js.Y}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunkONK67NAB_js.o}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkONK67NAB_js.fa}});Object.defineProperty(exports,"isHeadingStyle",{enumerable:true,get:function(){return chunkONK67NAB_js.U}});Object.defineProperty(exports,"isPositionInHyperlink",{enumerable:true,get:function(){return chunkONK67NAB_js.S}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunkONK67NAB_js.sa}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunkONK67NAB_js.p}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkONK67NAB_js.ga}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkONK67NAB_js.pa}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkONK67NAB_js.ma}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkONK67NAB_js.ia}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkONK67NAB_js.w}});Object.defineProperty(exports,"parseHeadingLevel",{enumerable:true,get:function(){return chunkONK67NAB_js.V}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunkONK67NAB_js.s}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunkONK67NAB_js.u}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkONK67NAB_js.d}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunkONK67NAB_js.t}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkONK67NAB_js.ca}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkONK67NAB_js.da}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkONK67NAB_js.ea}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunkONK67NAB_js.q}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkONK67NAB_js.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkONK67NAB_js.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkONK67NAB_js.a}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkONK67NAB_js.e}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkONK67NAB_js.g}});Object.defineProperty(exports,"createTemplateProcessor",{enumerable:true,get:function(){return chunk4QRVKNI4_js.j}});Object.defineProperty(exports,"getMissingVariables",{enumerable:true,get:function(){return chunk4QRVKNI4_js.g}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunk4QRVKNI4_js.e}});Object.defineProperty(exports,"previewTemplate",{enumerable:true,get:function(){return chunk4QRVKNI4_js.h}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunk4QRVKNI4_js.a}});Object.defineProperty(exports,"processTemplateAdvanced",{enumerable:true,get:function(){return chunk4QRVKNI4_js.i}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunk4QRVKNI4_js.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunk4QRVKNI4_js.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunk4QRVKNI4_js.f}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkNISW2GF6_js.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkNISW2GF6_js.d}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkNISW2GF6_js.g}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkNISW2GF6_js.i}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkNISW2GF6_js.n}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkNISW2GF6_js.o}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkNISW2GF6_js.m}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkNISW2GF6_js.l}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkNISW2GF6_js.h}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkNISW2GF6_js.f}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkNISW2GF6_js.b}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkNISW2GF6_js.k}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkNISW2GF6_js.c}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkNISW2GF6_js.j}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkNISW2GF6_js.e}});