@eigenpal/docx-editor-agents 1.6.0 → 1.6.2
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.
- package/dist/bridge.js +1 -1
- package/dist/bridge.mjs +1 -1
- package/dist/{chunk-CGBO6ID5.mjs → chunk-6RO2FMJG.mjs} +1 -1
- package/dist/{chunk-B56JZP3K.js → chunk-A2KTJJC7.js} +2 -2
- package/dist/chunk-BDMT6WE2.js +5 -0
- package/dist/chunk-GZTML5EK.mjs +5 -0
- package/dist/{chunk-WDPSOX2B.mjs → chunk-JIETIVMD.mjs} +1 -1
- package/dist/chunk-OTY7UCJK.js +75 -0
- package/dist/{chunk-6RMDMHUK.mjs → chunk-RY7EZPCQ.mjs} +1 -1
- package/dist/{chunk-MMJQ47Q7.js → chunk-TWHGYIYZ.js} +1 -1
- package/dist/chunk-XS4NSRQA.mjs +75 -0
- package/dist/{chunk-VAQTAQZG.js → chunk-ZA744Z6T.js} +1 -1
- package/dist/executor-L53UXDW4.js +1 -0
- package/dist/executor-XNEM6ZJD.mjs +1 -0
- package/dist/headless-E5AU7W3V.js +1 -0
- package/dist/{headless-GFPWSIA3.mjs → headless-KVWT373Y.mjs} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/server.js +1 -1
- package/dist/server.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-4C2IJ7OV.js +0 -75
- package/dist/chunk-ICDWMZPG.mjs +0 -75
- package/dist/chunk-J773ZJGL.mjs +0 -5
- package/dist/chunk-YU3OJ2DE.js +0 -5
- package/dist/executor-3N3ESB3N.mjs +0 -1
- package/dist/executor-KLVHM2GK.js +0 -1
- package/dist/headless-BS5JJGVC.js +0 -1
package/dist/chunk-J773ZJGL.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import {U as U$1,V,H as H$1,I,va}from'./chunk-ICDWMZPG.mjs';import {m as m$1}from'./chunk-6RMDMHUK.mjs';function m(o){return o.type==="insertion"||o.type==="deletion"||o.type==="moveFrom"||o.type==="moveTo"}function b(o){let t=[];for(let r of o)r.type==="run"?t.push(H$1(r)):r.type==="hyperlink"&&t.push(I(r));return t.join("")}function P(o,t){let r=0;for(let n of o.content)if(n.type==="paragraph"){if(r===t)return n;r++;}else if(n.type==="table"){for(let a of n.rows)for(let e of a.cells)for(let i of e.content)if(i.type==="paragraph"){if(r===t)return i;r++;}}else r++;throw new Error(`Paragraph index ${t} out of bounds (max: ${r-1})`)}function L(o,t,r){let n=0;for(let a of o)if(a.type==="paragraph"){if(r(a,n)===false)return;n++;}else if(a.type==="table"){for(let e of a.rows)for(let i of e.cells)for(let s of i.content)if(s.type==="paragraph"){if(r(s,n)===false)return;n++;}}else t&&n++;}function F(o,t){L(o.content,true,t);}function k(o,t){L(o.content,false,t);}function me(o,t={}){let{fromIndex:r,toIndex:n,includeTrackedChanges:a=true,includeCommentAnchors:e=true}=t,i=[],s=0;for(let c of o.content)if(c.type==="paragraph")j(s,r,n)&&i.push(q(c,s,a,e)),s++;else if(c.type==="table"){j(s,r,n)&&i.push(ee(c,s,a,e));for(let l of c.rows)for(let u of l.cells)for(let f of u.content)f.type==="paragraph"&&s++;}else s++;return i}function j(o,t,r){return (t===void 0||o>=t)&&(r===void 0||o<=r)}function q(o,t,r,n){let a=H(o,r,n),e=o.formatting?.styleId,i=o.paraId;return U$1(e)?{type:"heading",index:t,paraId:i,level:V(e)??1,text:a}:o.listRendering?{type:"list-item",index:t,paraId:i,text:a,listLevel:o.listRendering.level??0,listType:o.listRendering.isBullet?"bullet":"number"}:{type:"paragraph",index:t,paraId:i,text:a}}function ee(o,t,r,n){let a=[],e=[];for(let i of o.rows){let s=[],c=[];for(let l of i.cells){let u=[],f;for(let d of l.content)d.type==="paragraph"&&(f===void 0&&(f=d.paraId),u.push(H(d,r,n)));s.push(u.join(`
|
|
2
|
-
`)),c.push(f);}a.push(s),e.push(c);}return {type:"table",index:t,rows:a,cellParaIds:e}}function xe(o){let t=[],r=n=>n.paraId?n.paraId:String(n.index);for(let n of o)switch(n.type){case "heading":t.push(`[${r(n)}] (h${n.level}) ${n.text}`);break;case "paragraph":t.push(`[${r(n)}] ${n.text}`);break;case "list-item":{let a=" ".repeat(n.listLevel),e=n.listType==="bullet"?"\u2022":"-";t.push(`[${r(n)}] ${a}${e} ${n.text}`);break}case "table":{let a=n.index;for(let e=0;e<n.rows.length;e++)for(let i=0;i<n.rows[e].length;i++){let c=n.rows[e][i].split(`
|
|
3
|
-
`),l=n.cellParaIds?.[e]?.[i];for(let u=0;u<c.length;u++){let f=u===0&&l?l:String(a);t.push(`[${f}] (table, row ${e+1}, col ${i+1}) ${c[u]}`),a++;}}break}}return t.join(`
|
|
4
|
-
`)}function H(o,t,r){let n=[],a=new Set;for(let e of o.content){if(e.type==="commentRangeStart"&&r){a.add(e.id),n.push(`[comment:${e.id}]`);continue}if(e.type==="commentRangeEnd"&&r){a.has(e.id)&&(a.delete(e.id),n.push("[/comment]"));continue}if(e.type==="run")n.push(H$1(e));else if(e.type==="hyperlink")n.push(I(e));else if(m(e)){let i=b(e.content);e.type==="insertion"||e.type==="moveTo"?t&&n.push(`[+${i}+]{by:${e.info.author}}`):t?n.push(`[-${i}-]{by:${e.info.author}}`):n.push(i);}}return n.join("")}var C=class extends Error{constructor(t,r){let n=r!==void 0?` in paragraph ${r}`:" in document";super(`Text not found${n}: "${t}"`),this.name="TextNotFoundError";}},N=class extends Error{constructor(t){super(`Tracked change not found: id=${t}`),this.name="ChangeNotFoundError";}},R=class extends Error{constructor(t){super(`Comment not found: id=${t}`),this.name="CommentNotFoundError";}};function X(o){let t=[],r=0;for(let n=0;n<o.content.length;n++){let a=o.content[n];if(a.type==="run"){let e=H$1(a);t.push({contentIndex:n,run:a,text:e,startPos:r}),r+=e.length;}else if(a.type==="hyperlink")for(let e=0;e<a.children.length;e++){let i=a.children[e];if(i.type==="run"){let s=H$1(i);t.push({contentIndex:n,run:i,text:s,startPos:r}),r+=s.length;}}else if(m(a)){if(a.type==="insertion"||a.type==="moveTo")continue;for(let e=0;e<a.content.length;e++){let i=a.content[e];if(i.type==="run"){let s=H$1(i);t.push({contentIndex:n,run:i,text:s,startPos:r}),r+=s.length;}else if(i.type==="hyperlink"){for(let s of i.children)if(s.type==="run"){let c=H$1(s);t.push({contentIndex:n,run:s,text:c,startPos:r}),r+=c.length;}}}}}return t}function w(o){return X(o).map(t=>t.text).join("")}function te(o,t,r){let n=X(o),a=n.map(u=>u.text).join(""),e=ne(a,t);if(!e)throw new C(t,r);let i=-1,s=0;for(let u=0;u<n.length;u++)if(e.start<n[u].startPos+n[u].text.length){i=u,s=e.start-n[u].startPos;break}let c=-1,l=0;for(let u=n.length-1;u>=0;u--)if(e.end>n[u].startPos){c=u,l=e.end-n[u].startPos;break}if(i===-1||c===-1)throw new C(t,r);return {startRunIndex:n[i].contentIndex,startOffset:s,endRunIndex:n[c].contentIndex,endOffset:l}}function Pe(o,t,r){let n=te(o,t,r),{startRunIndex:a,endRunIndex:e}=n,{startOffset:i,endOffset:s}=n,c=o.content[e];if(c.type==="run"){let u=H$1(c);if(s<u.length){let f=z(u.slice(s),c);W(c,u.slice(0,s)),o.content.splice(e+1,0,f);}}let l=o.content[a];if(l.type==="run"&&i>0){let u=H$1(l),f=z(u.slice(0,i),l);W(l,u.slice(i)),o.content.splice(a,0,f),a++,e++;}return {startIndex:a,endIndex:e}}function z(o,t){return {type:"run",content:[{type:"text",text:o}],formatting:t.formatting?{...t.formatting}:void 0}}function W(o,t){let r=o.content.find(n=>n.type==="text");r&&(r.text=t);}function G(o){let t=[],r=[],n=true;for(let a=0;a<o.length;a++){let e=o[a];if(!"\u200B\u200C\u200D\uFEFF\xAD".includes(e)){if("\u201C\u201D\u201E\u201F".includes(e)&&(e='"'),"\u2018\u2019\u201A\u201B".includes(e)&&(e="'"),"\u2013\u2014\u2012\u2015".includes(e)&&(e="-"),e==="\u2026"){t.push(".",".","."),r.push(a,a,a),n=false;continue}if(/\s/.test(e)||e==="\xA0"){n||(t.push(" "),r.push(a),n=true);continue}t.push(e.toLowerCase()),r.push(a),n=false;}}return t.length>0&&t[t.length-1]===" "&&(t.pop(),r.pop()),{text:t.join(""),posMap:r}}function U(o,t,r,n){let a=o.posMap[t],e=o.posMap[t+r-1]+1;for(;e<n.length&&"\u200B\u200C\u200D\uFEFF\xAD".includes(n[e]);)e++;return {start:a,end:e}}function ne(o,t){if(!t||!o)return null;let r=o.indexOf(t);if(r!==-1)return {start:r,end:r+t.length};let n=G(o),a=G(t);if(!a.text)return null;let e=n.text.indexOf(a.text);if(e!==-1)return U(n,e,a.text.length,o);let i=a.text.split(" ");if(i.length>=3)for(let s=1;s<=Math.min(2,i.length-2);s++){let c=i.slice(0,-s).join(" "),l=n.text.indexOf(c);if(l!==-1)return U(n,l,c.length,o)}return null}function Fe(o,t,r){let n=new Map,a=(i,s,c)=>{let l=null;for(let u of i.content)if(m(u)){l===null&&(l=w(i));let f=b(u.content),d=u.info.id,x=`${c.noteType??"body"}:${c.noteId??""}:${d}`,g=n.get(x);g&&g.paragraphIndex===s?g.text+=f:n.set(x,{id:d,type:u.type,author:u.info.author,date:u.info.date??null,text:f,context:l,paragraphIndex:s,...c.noteId!==void 0?{noteId:c.noteId}:{},...c.noteType!==void 0?{noteType:c.noteType}:{}});}};if(F(o,(i,s)=>a(i,s,{})),t?.includeFootnotes&&r?.footnotes)for(let i of r.footnotes)k(i,(s,c)=>a(s,c,{noteId:i.id,noteType:"footnote"}));if(t?.includeEndnotes&&r?.endnotes)for(let i of r.endnotes)k(i,(s,c)=>a(s,c,{noteId:i.id,noteType:"endnote"}));return Array.from(n.values()).filter(i=>!(t?.author&&i.author!==t.author||t?.type&&i.type!==t.type))}function ke(o,t){let r=o.comments??[];if(r.length===0)return [];let n=oe(o),a=[],e=new Map;for(let s of r)if(s.parentId!==void 0){let c=e.get(s.parentId)??[];c.push(s),e.set(s.parentId,c);}else a.push(s);return a.map(s=>{let c=n.get(s.id),l=(e.get(s.id)??[]).map(u=>({id:u.id,author:u.author,date:u.date??null,text:J(u)}));return {id:s.id,author:s.author,date:s.date??null,text:J(s),anchoredText:c?.text??"",paragraphIndex:c?.paragraphIndex??-1,replies:l,done:s.done??false}}).filter(s=>!(t?.author&&s.author!==t.author||t?.done!==void 0&&s.done!==t.done))}function J(o){return o.content.map(t=>w(t)).join(`
|
|
5
|
-
`)}function oe(o){let t=new Map,r=new Map;return F(o,(n,a)=>{for(let e of n.content)if(e.type==="commentRangeStart")r.set(e.id,{paragraphIndex:a,parts:[]});else if(e.type==="commentRangeEnd"){let i=r.get(e.id);i&&(t.set(e.id,{text:i.parts.join(""),paragraphIndex:i.paragraphIndex}),r.delete(e.id));}else if(e.type==="run"){let i=H$1(e);for(let s of r.values())s.parts.push(i);}else if(e.type==="hyperlink"){let i=e.children.filter(s=>s.type==="run").map(H$1).join("");for(let s of r.values())s.parts.push(i);}else if(m(e)){if(e.type==="insertion"||e.type==="moveTo")continue;let i=b(e.content);for(let s of r.values())s.parts.push(i);}}),t}function re(o){let t=o.toDocument().package?.document;if(!t)return new Map;let r=new Map,n=0;for(let a of t.content)if(a.type==="paragraph"){let e=a.paraId;r.set(e??String(n),n),n++;}else if(a.type==="table")for(let e of a.rows)for(let i of e.cells)for(let s of i.content)s.type==="paragraph"&&n++;else n++;return r}function ae(o){let t=[],r=n=>{for(let a of n.content)a.type==="text"&&t.push(a.text??"");};for(let n of o.content)if(n.type==="run")r(n);else if(n.type==="hyperlink")for(let a of n.children)a.type==="run"&&r(a);else if(n.type==="deletion"||n.type==="moveFrom"){for(let a of n.content)if(a.type==="run")r(a);else if(a.type==="hyperlink")for(let e of a.children)e.type==="run"&&r(e);}return t.join("")}function B(o,t){let n={type:"run",content:[{type:"text",text:t,preserveSpace:/^\s|\s$/.test(t)}]};return o.formatting&&(n.formatting={...o.formatting}),o.propertyChanges&&(n.propertyChanges=[...o.propertyChanges]),n}function ie(o){return o.content.map(t=>t.type==="text"?t.text:"").join("")}function M(o,t,r,n,a){let e=ie(o);if(!e)return;let i=a.value,s=i+e.length;n.push({run:o,parent:t,index:r,text:e,start:i,end:s}),a.value=s;}function K(o,t,r){o.children.forEach((n,a)=>{n.type==="run"&&M(n,o.children,a,t,r);});}function D(o,t){let r=[],n={value:0};return o.content.forEach((a,e)=>{a.type==="run"?M(a,o.content,e,r,n):a.type==="hyperlink"?K(a,r,n):(a.type==="deletion"||a.type==="moveFrom"||t&&(a.type==="insertion"||a.type==="moveTo"))&&a.content.forEach((i,s)=>{i.type==="run"?M(i,a.content,s,r,n):i.type==="hyperlink"&&K(i,r,n);});}),r}function se(o,t){let r={...o??{}};t.bold!==void 0&&(r.bold=t.bold||void 0),t.italic!==void 0&&(r.italic=t.italic||void 0),t.underline!==void 0&&(t.underline?r.underline={style:typeof t.underline=="object"&&t.underline.style?t.underline.style:"single"}:delete r.underline),t.strike!==void 0&&(r.strike=t.strike||void 0),t.color!==void 0&&(t.color&&(t.color.rgb||t.color.themeColor)?r.color={rgb:t.color.rgb,themeColor:t.color.themeColor}:delete r.color),t.highlight!==void 0&&(t.highlight?r.highlight=va(t.highlight)||t.highlight:delete r.highlight),t.fontSize!==void 0&&(t.fontSize>0?r.fontSize=m$1(t.fontSize):delete r.fontSize),t.fontFamily!==void 0&&(t.fontFamily&&(t.fontFamily.ascii||t.fontFamily.hAnsi)?r.fontFamily={ascii:t.fontFamily.ascii,hAnsi:t.fontFamily.hAnsi??t.fontFamily.ascii}:delete r.fontFamily);for(let n of Object.keys(r))r[n]===void 0&&delete r[n];return Object.keys(r).length>0?r:void 0}function S(o,t){o.formatting=se(o.formatting,t);}function ce(o,t,r,n){let a=o.run.content.every(s=>s.type==="text");if(t<=0&&r>=o.text.length||!a){S(o.run,n);return}let e=[];t>0&&e.push(B(o.run,o.text.slice(0,t)));let i=B(o.run,o.text.slice(t,r));S(i,n),e.push(i),r<o.text.length&&e.push(B(o.run,o.text.slice(r))),o.parent.splice(o.index,1,...e);}function ue(o,t,r,n){let e=D(o,false).filter(i=>i.start<r&&i.end>t);if(e.length===0)return true;for(let i=e.length-1;i>=0;i--){let s=e[i];ce(s,Math.max(0,t-s.start),Math.min(s.text.length,r-s.start),n);}return true}function le(o,t){let r=D(o,true);for(let n of r)S(n.run,t);return true}function fe(o,t){if(!t)return null;let n=D(o,false).map(e=>e.text).join(""),a=n.indexOf(t);return a===-1||n.indexOf(t,a+1)!==-1?null:{from:a,to:a+t.length}}function pe(o,t){return o?!!o.styles?.some(r=>r.styleId===t&&r.type==="paragraph"):true}function De(o){let t=new Set,r=null;function n(){return r===null&&(r=re(o)),r}function a(){if(t.size===0)return;let e=o.getComments(),i=o.getChanges(),s={commentCount:e.length,changeCount:i.length,comments:e,changes:i};for(let c of t)try{c(s);}catch(l){console.error("reviewerBridge content listener threw:",l);}}return {getContentAsText(e){return o.getContentAsText(e)},getContent(e){return o.getContent(e)},getComments(e){return o.getComments(e)},getChanges(e){return o.getChanges(e)},findText(e,i){if(!e)return [];let s=i?.caseSensitive??false,c=i?.limit??20,l=s?e:e.toLowerCase(),u=o.toDocument().package?.document;if(!u)return [];let f=[],d=40,x=0;for(let g of u.content){if(f.length>=c)break;if(g.type==="table"){for(let Y of g.rows)for(let Z of Y.cells)for(let _ of Z.content)_.type==="paragraph"&&x++;continue}if(g.type!=="paragraph"){x++;continue}let E=g,Q=x++,y=ae(E),$=s?y:y.toLowerCase(),h=$.indexOf(l);if(h===-1||$.indexOf(l,h+1)!==-1)continue;let V=y.slice(h,h+e.length);f.push({paraId:E.paraId??String(Q),match:V,before:y.slice(Math.max(0,h-d),h),after:y.slice(h+e.length,h+e.length+d)});}return f},getSelection(){return null},addComment(e){let i=n().get(e.paraId);if(i===void 0)return null;try{let s=o.addComment({paragraphIndex:i,text:e.text,author:e.author,search:e.search});return a(),s}catch{return null}},replyTo(e,i){try{let s=o.replyTo(e,i);return a(),s}catch{return null}},resolveComment(e){let s=o.toDocument().package?.document?.comments?.find(c=>c.id===e);if(!s)throw new R(e);s.done=true,a();},proposeChange(e){let i=n().get(e.paraId);if(i===void 0)return false;let s=e.search==="",c=e.replaceWith==="";if(s&&c)return false;try{return s?o.proposeInsertion({paragraphIndex:i,insertText:e.replaceWith,author:e.author}):c?o.proposeDeletion({paragraphIndex:i,search:e.search,author:e.author}):o.replace({paragraphIndex:i,search:e.search,replaceWith:e.replaceWith,author:e.author}),a(),true}catch{return false}},scrollTo(e){return n().has(e)},applyFormatting(e){let i=n().get(e.paraId);if(i===void 0)return false;let s=o.toDocument().package?.document;if(!s)return false;try{let c=s?P(s,i):null;if(!c)return false;if(e.search){let l=fe(c,e.search);if(!l)return false;ue(c,l.from,l.to,e.marks);}else le(c,e.marks);return a(),true}catch{return false}},setParagraphStyle(e){let i=n().get(e.paraId);if(i===void 0)return false;let s=o.toDocument(),c=s.package?.document;if(!c||!pe(s.package?.styles,e.styleId))return false;try{let l=P(c,i);return l.formatting={...l.formatting??{},styleId:e.styleId},a(),true}catch{return false}},insertBreak(e){let i=n().get(e.paraId);if(i===void 0)return false;let s=o.toDocument().package?.document;if(!s)return false;try{let c=P(s,i);if(!c)return false;if(e.type==="sectionNextPage"||e.type==="sectionContinuous"){let f=e.type==="sectionNextPage"?"nextPage":"continuous";return c.sectionProperties={...c.sectionProperties??{},sectionStart:f},a(),true}let l=s.content.indexOf(c);if(l===-1)return false;let u={type:"paragraph",content:[{type:"run",content:[{type:"break",breakType:"page"}]}]};return s.content.splice(l+1,0,u),r=null,a(),true}catch{return false}},getPage(){return null},getPages(){return []},getTotalPages(){return 0},getCurrentPage(){return 0},onContentChange(e){return t.add(e),()=>{t.delete(e);}},onSelectionChange(){return ()=>{}}}}export{m as a,P as b,F as c,k as d,me as e,xe as f,C as g,N as h,R as i,te as j,Pe as k,Fe as l,ke as m,De as n};
|
package/dist/chunk-YU3OJ2DE.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk4C2IJ7OV_js=require('./chunk-4C2IJ7OV.js'),chunkMMJQ47Q7_js=require('./chunk-MMJQ47Q7.js');function m(o){return o.type==="insertion"||o.type==="deletion"||o.type==="moveFrom"||o.type==="moveTo"}function b(o){let t=[];for(let r of o)r.type==="run"?t.push(chunk4C2IJ7OV_js.H(r)):r.type==="hyperlink"&&t.push(chunk4C2IJ7OV_js.I(r));return t.join("")}function P(o,t){let r=0;for(let n of o.content)if(n.type==="paragraph"){if(r===t)return n;r++;}else if(n.type==="table"){for(let a of n.rows)for(let e of a.cells)for(let i of e.content)if(i.type==="paragraph"){if(r===t)return i;r++;}}else r++;throw new Error(`Paragraph index ${t} out of bounds (max: ${r-1})`)}function L(o,t,r){let n=0;for(let a of o)if(a.type==="paragraph"){if(r(a,n)===false)return;n++;}else if(a.type==="table"){for(let e of a.rows)for(let i of e.cells)for(let s of i.content)if(s.type==="paragraph"){if(r(s,n)===false)return;n++;}}else t&&n++;}function F(o,t){L(o.content,true,t);}function k(o,t){L(o.content,false,t);}function me(o,t={}){let{fromIndex:r,toIndex:n,includeTrackedChanges:a=true,includeCommentAnchors:e=true}=t,i=[],s=0;for(let c of o.content)if(c.type==="paragraph")j(s,r,n)&&i.push(q(c,s,a,e)),s++;else if(c.type==="table"){j(s,r,n)&&i.push(ee(c,s,a,e));for(let l of c.rows)for(let u of l.cells)for(let f of u.content)f.type==="paragraph"&&s++;}else s++;return i}function j(o,t,r){return (t===void 0||o>=t)&&(r===void 0||o<=r)}function q(o,t,r,n){let a=H(o,r,n),e=o.formatting?.styleId,i=o.paraId;return chunk4C2IJ7OV_js.U(e)?{type:"heading",index:t,paraId:i,level:chunk4C2IJ7OV_js.V(e)??1,text:a}:o.listRendering?{type:"list-item",index:t,paraId:i,text:a,listLevel:o.listRendering.level??0,listType:o.listRendering.isBullet?"bullet":"number"}:{type:"paragraph",index:t,paraId:i,text:a}}function ee(o,t,r,n){let a=[],e=[];for(let i of o.rows){let s=[],c=[];for(let l of i.cells){let u=[],f;for(let d of l.content)d.type==="paragraph"&&(f===void 0&&(f=d.paraId),u.push(H(d,r,n)));s.push(u.join(`
|
|
2
|
-
`)),c.push(f);}a.push(s),e.push(c);}return {type:"table",index:t,rows:a,cellParaIds:e}}function xe(o){let t=[],r=n=>n.paraId?n.paraId:String(n.index);for(let n of o)switch(n.type){case "heading":t.push(`[${r(n)}] (h${n.level}) ${n.text}`);break;case "paragraph":t.push(`[${r(n)}] ${n.text}`);break;case "list-item":{let a=" ".repeat(n.listLevel),e=n.listType==="bullet"?"\u2022":"-";t.push(`[${r(n)}] ${a}${e} ${n.text}`);break}case "table":{let a=n.index;for(let e=0;e<n.rows.length;e++)for(let i=0;i<n.rows[e].length;i++){let c=n.rows[e][i].split(`
|
|
3
|
-
`),l=n.cellParaIds?.[e]?.[i];for(let u=0;u<c.length;u++){let f=u===0&&l?l:String(a);t.push(`[${f}] (table, row ${e+1}, col ${i+1}) ${c[u]}`),a++;}}break}}return t.join(`
|
|
4
|
-
`)}function H(o,t,r){let n=[],a=new Set;for(let e of o.content){if(e.type==="commentRangeStart"&&r){a.add(e.id),n.push(`[comment:${e.id}]`);continue}if(e.type==="commentRangeEnd"&&r){a.has(e.id)&&(a.delete(e.id),n.push("[/comment]"));continue}if(e.type==="run")n.push(chunk4C2IJ7OV_js.H(e));else if(e.type==="hyperlink")n.push(chunk4C2IJ7OV_js.I(e));else if(m(e)){let i=b(e.content);e.type==="insertion"||e.type==="moveTo"?t&&n.push(`[+${i}+]{by:${e.info.author}}`):t?n.push(`[-${i}-]{by:${e.info.author}}`):n.push(i);}}return n.join("")}var C=class extends Error{constructor(t,r){let n=r!==void 0?` in paragraph ${r}`:" in document";super(`Text not found${n}: "${t}"`),this.name="TextNotFoundError";}},N=class extends Error{constructor(t){super(`Tracked change not found: id=${t}`),this.name="ChangeNotFoundError";}},R=class extends Error{constructor(t){super(`Comment not found: id=${t}`),this.name="CommentNotFoundError";}};function X(o){let t=[],r=0;for(let n=0;n<o.content.length;n++){let a=o.content[n];if(a.type==="run"){let e=chunk4C2IJ7OV_js.H(a);t.push({contentIndex:n,run:a,text:e,startPos:r}),r+=e.length;}else if(a.type==="hyperlink")for(let e=0;e<a.children.length;e++){let i=a.children[e];if(i.type==="run"){let s=chunk4C2IJ7OV_js.H(i);t.push({contentIndex:n,run:i,text:s,startPos:r}),r+=s.length;}}else if(m(a)){if(a.type==="insertion"||a.type==="moveTo")continue;for(let e=0;e<a.content.length;e++){let i=a.content[e];if(i.type==="run"){let s=chunk4C2IJ7OV_js.H(i);t.push({contentIndex:n,run:i,text:s,startPos:r}),r+=s.length;}else if(i.type==="hyperlink"){for(let s of i.children)if(s.type==="run"){let c=chunk4C2IJ7OV_js.H(s);t.push({contentIndex:n,run:s,text:c,startPos:r}),r+=c.length;}}}}}return t}function w(o){return X(o).map(t=>t.text).join("")}function te(o,t,r){let n=X(o),a=n.map(u=>u.text).join(""),e=ne(a,t);if(!e)throw new C(t,r);let i=-1,s=0;for(let u=0;u<n.length;u++)if(e.start<n[u].startPos+n[u].text.length){i=u,s=e.start-n[u].startPos;break}let c=-1,l=0;for(let u=n.length-1;u>=0;u--)if(e.end>n[u].startPos){c=u,l=e.end-n[u].startPos;break}if(i===-1||c===-1)throw new C(t,r);return {startRunIndex:n[i].contentIndex,startOffset:s,endRunIndex:n[c].contentIndex,endOffset:l}}function Pe(o,t,r){let n=te(o,t,r),{startRunIndex:a,endRunIndex:e}=n,{startOffset:i,endOffset:s}=n,c=o.content[e];if(c.type==="run"){let u=chunk4C2IJ7OV_js.H(c);if(s<u.length){let f=z(u.slice(s),c);W(c,u.slice(0,s)),o.content.splice(e+1,0,f);}}let l=o.content[a];if(l.type==="run"&&i>0){let u=chunk4C2IJ7OV_js.H(l),f=z(u.slice(0,i),l);W(l,u.slice(i)),o.content.splice(a,0,f),a++,e++;}return {startIndex:a,endIndex:e}}function z(o,t){return {type:"run",content:[{type:"text",text:o}],formatting:t.formatting?{...t.formatting}:void 0}}function W(o,t){let r=o.content.find(n=>n.type==="text");r&&(r.text=t);}function G(o){let t=[],r=[],n=true;for(let a=0;a<o.length;a++){let e=o[a];if(!"\u200B\u200C\u200D\uFEFF\xAD".includes(e)){if("\u201C\u201D\u201E\u201F".includes(e)&&(e='"'),"\u2018\u2019\u201A\u201B".includes(e)&&(e="'"),"\u2013\u2014\u2012\u2015".includes(e)&&(e="-"),e==="\u2026"){t.push(".",".","."),r.push(a,a,a),n=false;continue}if(/\s/.test(e)||e==="\xA0"){n||(t.push(" "),r.push(a),n=true);continue}t.push(e.toLowerCase()),r.push(a),n=false;}}return t.length>0&&t[t.length-1]===" "&&(t.pop(),r.pop()),{text:t.join(""),posMap:r}}function U(o,t,r,n){let a=o.posMap[t],e=o.posMap[t+r-1]+1;for(;e<n.length&&"\u200B\u200C\u200D\uFEFF\xAD".includes(n[e]);)e++;return {start:a,end:e}}function ne(o,t){if(!t||!o)return null;let r=o.indexOf(t);if(r!==-1)return {start:r,end:r+t.length};let n=G(o),a=G(t);if(!a.text)return null;let e=n.text.indexOf(a.text);if(e!==-1)return U(n,e,a.text.length,o);let i=a.text.split(" ");if(i.length>=3)for(let s=1;s<=Math.min(2,i.length-2);s++){let c=i.slice(0,-s).join(" "),l=n.text.indexOf(c);if(l!==-1)return U(n,l,c.length,o)}return null}function Fe(o,t,r){let n=new Map,a=(i,s,c)=>{let l=null;for(let u of i.content)if(m(u)){l===null&&(l=w(i));let f=b(u.content),d=u.info.id,x=`${c.noteType??"body"}:${c.noteId??""}:${d}`,g=n.get(x);g&&g.paragraphIndex===s?g.text+=f:n.set(x,{id:d,type:u.type,author:u.info.author,date:u.info.date??null,text:f,context:l,paragraphIndex:s,...c.noteId!==void 0?{noteId:c.noteId}:{},...c.noteType!==void 0?{noteType:c.noteType}:{}});}};if(F(o,(i,s)=>a(i,s,{})),t?.includeFootnotes&&r?.footnotes)for(let i of r.footnotes)k(i,(s,c)=>a(s,c,{noteId:i.id,noteType:"footnote"}));if(t?.includeEndnotes&&r?.endnotes)for(let i of r.endnotes)k(i,(s,c)=>a(s,c,{noteId:i.id,noteType:"endnote"}));return Array.from(n.values()).filter(i=>!(t?.author&&i.author!==t.author||t?.type&&i.type!==t.type))}function ke(o,t){let r=o.comments??[];if(r.length===0)return [];let n=oe(o),a=[],e=new Map;for(let s of r)if(s.parentId!==void 0){let c=e.get(s.parentId)??[];c.push(s),e.set(s.parentId,c);}else a.push(s);return a.map(s=>{let c=n.get(s.id),l=(e.get(s.id)??[]).map(u=>({id:u.id,author:u.author,date:u.date??null,text:J(u)}));return {id:s.id,author:s.author,date:s.date??null,text:J(s),anchoredText:c?.text??"",paragraphIndex:c?.paragraphIndex??-1,replies:l,done:s.done??false}}).filter(s=>!(t?.author&&s.author!==t.author||t?.done!==void 0&&s.done!==t.done))}function J(o){return o.content.map(t=>w(t)).join(`
|
|
5
|
-
`)}function oe(o){let t=new Map,r=new Map;return F(o,(n,a)=>{for(let e of n.content)if(e.type==="commentRangeStart")r.set(e.id,{paragraphIndex:a,parts:[]});else if(e.type==="commentRangeEnd"){let i=r.get(e.id);i&&(t.set(e.id,{text:i.parts.join(""),paragraphIndex:i.paragraphIndex}),r.delete(e.id));}else if(e.type==="run"){let i=chunk4C2IJ7OV_js.H(e);for(let s of r.values())s.parts.push(i);}else if(e.type==="hyperlink"){let i=e.children.filter(s=>s.type==="run").map(chunk4C2IJ7OV_js.H).join("");for(let s of r.values())s.parts.push(i);}else if(m(e)){if(e.type==="insertion"||e.type==="moveTo")continue;let i=b(e.content);for(let s of r.values())s.parts.push(i);}}),t}function re(o){let t=o.toDocument().package?.document;if(!t)return new Map;let r=new Map,n=0;for(let a of t.content)if(a.type==="paragraph"){let e=a.paraId;r.set(e??String(n),n),n++;}else if(a.type==="table")for(let e of a.rows)for(let i of e.cells)for(let s of i.content)s.type==="paragraph"&&n++;else n++;return r}function ae(o){let t=[],r=n=>{for(let a of n.content)a.type==="text"&&t.push(a.text??"");};for(let n of o.content)if(n.type==="run")r(n);else if(n.type==="hyperlink")for(let a of n.children)a.type==="run"&&r(a);else if(n.type==="deletion"||n.type==="moveFrom"){for(let a of n.content)if(a.type==="run")r(a);else if(a.type==="hyperlink")for(let e of a.children)e.type==="run"&&r(e);}return t.join("")}function B(o,t){let n={type:"run",content:[{type:"text",text:t,preserveSpace:/^\s|\s$/.test(t)}]};return o.formatting&&(n.formatting={...o.formatting}),o.propertyChanges&&(n.propertyChanges=[...o.propertyChanges]),n}function ie(o){return o.content.map(t=>t.type==="text"?t.text:"").join("")}function M(o,t,r,n,a){let e=ie(o);if(!e)return;let i=a.value,s=i+e.length;n.push({run:o,parent:t,index:r,text:e,start:i,end:s}),a.value=s;}function K(o,t,r){o.children.forEach((n,a)=>{n.type==="run"&&M(n,o.children,a,t,r);});}function D(o,t){let r=[],n={value:0};return o.content.forEach((a,e)=>{a.type==="run"?M(a,o.content,e,r,n):a.type==="hyperlink"?K(a,r,n):(a.type==="deletion"||a.type==="moveFrom"||t&&(a.type==="insertion"||a.type==="moveTo"))&&a.content.forEach((i,s)=>{i.type==="run"?M(i,a.content,s,r,n):i.type==="hyperlink"&&K(i,r,n);});}),r}function se(o,t){let r={...o??{}};t.bold!==void 0&&(r.bold=t.bold||void 0),t.italic!==void 0&&(r.italic=t.italic||void 0),t.underline!==void 0&&(t.underline?r.underline={style:typeof t.underline=="object"&&t.underline.style?t.underline.style:"single"}:delete r.underline),t.strike!==void 0&&(r.strike=t.strike||void 0),t.color!==void 0&&(t.color&&(t.color.rgb||t.color.themeColor)?r.color={rgb:t.color.rgb,themeColor:t.color.themeColor}:delete r.color),t.highlight!==void 0&&(t.highlight?r.highlight=chunk4C2IJ7OV_js.va(t.highlight)||t.highlight:delete r.highlight),t.fontSize!==void 0&&(t.fontSize>0?r.fontSize=chunkMMJQ47Q7_js.m(t.fontSize):delete r.fontSize),t.fontFamily!==void 0&&(t.fontFamily&&(t.fontFamily.ascii||t.fontFamily.hAnsi)?r.fontFamily={ascii:t.fontFamily.ascii,hAnsi:t.fontFamily.hAnsi??t.fontFamily.ascii}:delete r.fontFamily);for(let n of Object.keys(r))r[n]===void 0&&delete r[n];return Object.keys(r).length>0?r:void 0}function S(o,t){o.formatting=se(o.formatting,t);}function ce(o,t,r,n){let a=o.run.content.every(s=>s.type==="text");if(t<=0&&r>=o.text.length||!a){S(o.run,n);return}let e=[];t>0&&e.push(B(o.run,o.text.slice(0,t)));let i=B(o.run,o.text.slice(t,r));S(i,n),e.push(i),r<o.text.length&&e.push(B(o.run,o.text.slice(r))),o.parent.splice(o.index,1,...e);}function ue(o,t,r,n){let e=D(o,false).filter(i=>i.start<r&&i.end>t);if(e.length===0)return true;for(let i=e.length-1;i>=0;i--){let s=e[i];ce(s,Math.max(0,t-s.start),Math.min(s.text.length,r-s.start),n);}return true}function le(o,t){let r=D(o,true);for(let n of r)S(n.run,t);return true}function fe(o,t){if(!t)return null;let n=D(o,false).map(e=>e.text).join(""),a=n.indexOf(t);return a===-1||n.indexOf(t,a+1)!==-1?null:{from:a,to:a+t.length}}function pe(o,t){return o?!!o.styles?.some(r=>r.styleId===t&&r.type==="paragraph"):true}function De(o){let t=new Set,r=null;function n(){return r===null&&(r=re(o)),r}function a(){if(t.size===0)return;let e=o.getComments(),i=o.getChanges(),s={commentCount:e.length,changeCount:i.length,comments:e,changes:i};for(let c of t)try{c(s);}catch(l){console.error("reviewerBridge content listener threw:",l);}}return {getContentAsText(e){return o.getContentAsText(e)},getContent(e){return o.getContent(e)},getComments(e){return o.getComments(e)},getChanges(e){return o.getChanges(e)},findText(e,i){if(!e)return [];let s=i?.caseSensitive??false,c=i?.limit??20,l=s?e:e.toLowerCase(),u=o.toDocument().package?.document;if(!u)return [];let f=[],d=40,x=0;for(let g of u.content){if(f.length>=c)break;if(g.type==="table"){for(let Y of g.rows)for(let Z of Y.cells)for(let _ of Z.content)_.type==="paragraph"&&x++;continue}if(g.type!=="paragraph"){x++;continue}let E=g,Q=x++,y=ae(E),$=s?y:y.toLowerCase(),h=$.indexOf(l);if(h===-1||$.indexOf(l,h+1)!==-1)continue;let V=y.slice(h,h+e.length);f.push({paraId:E.paraId??String(Q),match:V,before:y.slice(Math.max(0,h-d),h),after:y.slice(h+e.length,h+e.length+d)});}return f},getSelection(){return null},addComment(e){let i=n().get(e.paraId);if(i===void 0)return null;try{let s=o.addComment({paragraphIndex:i,text:e.text,author:e.author,search:e.search});return a(),s}catch{return null}},replyTo(e,i){try{let s=o.replyTo(e,i);return a(),s}catch{return null}},resolveComment(e){let s=o.toDocument().package?.document?.comments?.find(c=>c.id===e);if(!s)throw new R(e);s.done=true,a();},proposeChange(e){let i=n().get(e.paraId);if(i===void 0)return false;let s=e.search==="",c=e.replaceWith==="";if(s&&c)return false;try{return s?o.proposeInsertion({paragraphIndex:i,insertText:e.replaceWith,author:e.author}):c?o.proposeDeletion({paragraphIndex:i,search:e.search,author:e.author}):o.replace({paragraphIndex:i,search:e.search,replaceWith:e.replaceWith,author:e.author}),a(),true}catch{return false}},scrollTo(e){return n().has(e)},applyFormatting(e){let i=n().get(e.paraId);if(i===void 0)return false;let s=o.toDocument().package?.document;if(!s)return false;try{let c=s?P(s,i):null;if(!c)return false;if(e.search){let l=fe(c,e.search);if(!l)return false;ue(c,l.from,l.to,e.marks);}else le(c,e.marks);return a(),true}catch{return false}},setParagraphStyle(e){let i=n().get(e.paraId);if(i===void 0)return false;let s=o.toDocument(),c=s.package?.document;if(!c||!pe(s.package?.styles,e.styleId))return false;try{let l=P(c,i);return l.formatting={...l.formatting??{},styleId:e.styleId},a(),true}catch{return false}},insertBreak(e){let i=n().get(e.paraId);if(i===void 0)return false;let s=o.toDocument().package?.document;if(!s)return false;try{let c=P(s,i);if(!c)return false;if(e.type==="sectionNextPage"||e.type==="sectionContinuous"){let f=e.type==="sectionNextPage"?"nextPage":"continuous";return c.sectionProperties={...c.sectionProperties??{},sectionStart:f},a(),true}let l=s.content.indexOf(c);if(l===-1)return false;let u={type:"paragraph",content:[{type:"run",content:[{type:"break",breakType:"page"}]}]};return s.content.splice(l+1,0,u),r=null,a(),true}catch{return false}},getPage(){return null},getPages(){return []},getTotalPages(){return 0},getCurrentPage(){return 0},onContentChange(e){return t.add(e),()=>{t.delete(e);}},onSelectionChange(){return ()=>{}}}}exports.a=m;exports.b=P;exports.c=F;exports.d=k;exports.e=me;exports.f=xe;exports.g=C;exports.h=N;exports.i=R;exports.j=te;exports.k=Pe;exports.l=Fe;exports.m=ke;exports.n=De;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{o as executeCommand,p as executeCommands}from'./chunk-6RMDMHUK.mjs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkMMJQ47Q7_js=require('./chunk-MMJQ47Q7.js');Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.o}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.p}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk4C2IJ7OV_js=require('./chunk-4C2IJ7OV.js'),chunk4QRVKNI4_js=require('./chunk-4QRVKNI4.js'),chunkMMJQ47Q7_js=require('./chunk-MMJQ47Q7.js');Object.defineProperty(exports,"ContentControlBoundError",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.ga}});Object.defineProperty(exports,"ContentControlLockedError",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.ea}});Object.defineProperty(exports,"ContentControlNotFoundError",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.da}});Object.defineProperty(exports,"ContentControlTypeError",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.fa}});Object.defineProperty(exports,"ContentControlValueError",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.ja}});Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Qa}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.x}});Object.defineProperty(exports,"RepeatingSectionError",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.oa}});Object.defineProperty(exports,"VERSION",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Sa}});Object.defineProperty(exports,"addRepeatingSectionItem",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.pa}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.i}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Ha}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.E}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.h}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.D}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.B}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Ia}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Na}});Object.defineProperty(exports,"countCharacters",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.M}});Object.defineProperty(exports,"countWords",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.L}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.y}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.z}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Ka}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Ra}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.ua}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.f}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.ta}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.La}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Ea}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Da}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Fa}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.j}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.k}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.l}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.m}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.v}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.n}});Object.defineProperty(exports,"findContentControl",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.ca}});Object.defineProperty(exports,"findContentControls",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.ba}});Object.defineProperty(exports,"formatSdtDate",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.ka}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.r}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Pa}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Oa}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.A}});Object.defineProperty(exports,"getBlockIndexForParagraph",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.$}});Object.defineProperty(exports,"getBodyCharacterCount",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.O}});Object.defineProperty(exports,"getBodyText",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.K}});Object.defineProperty(exports,"getBodyWordCount",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.N}});Object.defineProperty(exports,"getContentControlText",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.aa}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Ba}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.C}});Object.defineProperty(exports,"getDocumentWatermark",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.ra}});Object.defineProperty(exports,"getFormattingAtPosition",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.R}});Object.defineProperty(exports,"getHyperlinkAtPosition",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.T}});Object.defineProperty(exports,"getHyperlinkText",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.I}});Object.defineProperty(exports,"getParagraphAtIndex",{enumerable:true,get:function(){return chunk4C2IJ7OV_js._}});Object.defineProperty(exports,"getParagraphText",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.G}});Object.defineProperty(exports,"getParagraphs",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Z}});Object.defineProperty(exports,"getRunText",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.H}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.F}});Object.defineProperty(exports,"getTableText",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.J}});Object.defineProperty(exports,"getTextAfter",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Q}});Object.defineProperty(exports,"getTextBefore",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.P}});Object.defineProperty(exports,"hasHyperlinks",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.X}});Object.defineProperty(exports,"hasImages",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.W}});Object.defineProperty(exports,"hasTables",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Y}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.o}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.za}});Object.defineProperty(exports,"isHeadingStyle",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.U}});Object.defineProperty(exports,"isPositionInHyperlink",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.S}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Ma}});Object.defineProperty(exports,"isRepeatingSection",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.ma}});Object.defineProperty(exports,"isRepeatingSectionItem",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.na}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.p}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Aa}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Ja}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Ga}});Object.defineProperty(exports,"mapHexToHighlightName",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.va}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.Ca}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.w}});Object.defineProperty(exports,"parseHeadingLevel",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.V}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.s}});Object.defineProperty(exports,"removeContentControl",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.ia}});Object.defineProperty(exports,"removeRepeatingSectionItem",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.qa}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.u}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.d}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.t}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.wa}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.xa}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.ya}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.q}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.a}});Object.defineProperty(exports,"setContentControlContent",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.ha}});Object.defineProperty(exports,"setContentControlValue",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.la}});Object.defineProperty(exports,"setDocumentWatermark",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.sa}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunk4C2IJ7OV_js.e}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunk4C2IJ7OV_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 chunkMMJQ47Q7_js.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.d}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.g}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.i}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.o}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.p}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.n}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.l}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.h}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.f}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.b}});Object.defineProperty(exports,"pointsToHalfPoints",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.m}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.k}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.c}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.j}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkMMJQ47Q7_js.e}});
|