@eigenpal/docx-js-editor 0.0.31 → 0.0.32
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/{chunk-CQR767EJ.mjs → chunk-2HDYCD2Q.mjs} +1 -1
- package/dist/chunk-37SLIJPH.mjs +58 -0
- package/dist/{chunk-KCUPCJFL.mjs → chunk-6AJI5NPH.mjs} +1 -1
- package/dist/chunk-7MGFEP2R.mjs +26 -0
- package/dist/chunk-7QTNB64A.mjs +9 -0
- package/dist/chunk-EEV6TUOX.mjs +261 -0
- package/dist/chunk-EF3LLEN7.js +4 -0
- package/dist/{chunk-ZKKL54FH.js → chunk-EV3CM6TU.js} +1 -1
- package/dist/chunk-HWWZOJMR.mjs +4 -0
- package/dist/{chunk-N2UPYG75.js → chunk-KCOGY3V2.js} +2 -2
- package/dist/chunk-KUL2SDYC.js +26 -0
- package/dist/chunk-P7WEP4JU.js +9 -0
- package/dist/{chunk-FFNGY4AB.mjs → chunk-RTFUE3KK.mjs} +1 -1
- package/dist/{chunk-XGL3EGKF.js → chunk-UMDJQ3Q4.js} +4 -4
- package/dist/chunk-WH2EK2HU.js +261 -0
- package/dist/chunk-ZJNGMDRE.js +58 -0
- package/dist/core-plugins-reexport.js +1 -1
- package/dist/core-plugins-reexport.mjs +1 -1
- package/dist/core-reexport.js +1 -1
- package/dist/core-reexport.mjs +1 -1
- package/dist/headless-reexport.js +2 -2
- package/dist/headless-reexport.mjs +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/mcp-reexport.js +3 -3
- package/dist/mcp-reexport.mjs +2 -2
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/selectionRects-DEX5THEG.js +1 -0
- package/dist/selectionRects-SQTAHMCH.mjs +1 -0
- package/dist/styles.css +1 -1
- package/dist/ui.js +1 -1
- package/dist/ui.mjs +1 -1
- package/package.json +2 -1
- package/dist/chunk-2KHL5RSD.js +0 -4
- package/dist/chunk-3Y6ZBC3P.js +0 -9
- package/dist/chunk-6CSL7T4S.mjs +0 -9
- package/dist/chunk-7HZRJTOL.mjs +0 -4
- package/dist/chunk-A2DPBJHE.mjs +0 -258
- package/dist/chunk-DJI7XTMH.js +0 -59
- package/dist/chunk-HIITS47V.js +0 -258
- package/dist/chunk-NKJBKWYY.js +0 -26
- package/dist/chunk-OBTGZZLM.mjs +0 -26
- package/dist/chunk-TQATISQV.mjs +0 -59
- package/dist/selectionRects-D45BP6HQ.js +0 -1
- package/dist/selectionRects-Z72BKRLU.mjs +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var chunkHIITS47V_js=require('./chunk-HIITS47V.js');require('./chunk-ZKKL54FH.js');var chunkXGL3EGKF_js=require('./chunk-XGL3EGKF.js'),chunk2KHL5RSD_js=require('./chunk-2KHL5RSD.js'),chunkCTYOM6BE_js=require('./chunk-CTYOM6BE.js'),chunkPJVI53AH_js=require('./chunk-PJVI53AH.js'),chunkFVUGBRDD_js=require('./chunk-FVUGBRDD.js');require('./chunk-QVPR2W5S.js');var chunk3Y6ZBC3P_js=require('./chunk-3Y6ZBC3P.js'),chunk4VUZBV2S_js=require('./chunk-4VUZBV2S.js'),chunkN2UPYG75_js=require('./chunk-N2UPYG75.js'),chunkPB7VMDDP_js=require('./chunk-PB7VMDDP.js'),chunkDJI7XTMH_js=require('./chunk-DJI7XTMH.js'),chunkAARNCPWR_js=require('./chunk-AARNCPWR.js'),chunkNKJBKWYY_js=require('./chunk-NKJBKWYY.js'),chunkBUEMG4NW_js=require('./chunk-BUEMG4NW.js'),chunkSE5EN2QL_js=require('./chunk-SE5EN2QL.js');require('./chunk-IFPN3NT3.js'),require('./chunk-H5NTJZO4.js');var ae=require('react'),prosemirrorState=require('prosemirror-state'),prosemirrorView=require('prosemirror-view'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var ae__default=/*#__PURE__*/_interopDefault(ae);var yi=/[\p{L}\p{N}''\-]/u,hi=/\s/;function R(e){return !e||e.length===0?false:yi.test(e)}function v(e){return !e||e.length===0?false:hi.test(e)}function S(e,t){if(!e||e.length===0)return [0,0];t=Math.max(0,Math.min(t,e.length-1));let o=e[t];if(v(o)){let r=t,n=t;for(;r>0&&v(e[r-1]);)r--;for(;n<e.length&&v(e[n]);)n++;return [r,n]}if(R(o)){let r=t,n=t;for(;r>0&&R(e[r-1]);)r--;for(;n<e.length&&R(e[n]);)n++;return [r,n]}return [t,t+1]}function Ti(e,t){let[o,r]=S(e,t);return e.slice(o,r)}function Si(e,t){let[o,r]=S(e,t);return {word:e.slice(o,r),startIndex:o,endIndex:r}}function L(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0),o=t.startContainer;if(o.nodeType===Node.TEXT_NODE){let r=o.textContent||"",n=t.startOffset,[i,a]=S(r,n);if(a>i)return t.setStart(o,i),t.setEnd(o,a),e.removeAllRanges(),e.addRange(t),true}if(o.nodeType===Node.ELEMENT_NODE){let r=o,n=B(r);if(n.length>0){let i=t.startOffset,a=null,l=i;if(i<r.childNodes.length){let s=r.childNodes[i];if(s.nodeType===Node.TEXT_NODE)a=s,l=0;else if(s instanceof Element){let c=B(s);c.length>0&&(a=c[0],l=0);}}if(!a&&n.length>0&&(a=n[0],l=0),a){let s=a.textContent||"",[c,d]=S(s,l);if(d>c){let g=document.createRange();return g.setStart(a,c),g.setEnd(a,d),e.removeAllRanges(),e.addRange(g),true}}}}return false}function xi(e,t){let o=window.getSelection();if(!o)return false;let r=e.textContent||"",[n,i]=S(r,t);if(i>n){let a=document.createRange();return a.setStart(e,n),a.setEnd(e,i),o.removeAllRanges(),o.addRange(a),true}return false}function bi(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0);if(t.collapsed)return L();let o=t.startContainer,r=t.endContainer,n=t.startOffset,i=t.endOffset;if(o.nodeType===Node.TEXT_NODE){let a=o.textContent||"",[l]=S(a,t.startOffset);n=l;}if(r.nodeType===Node.TEXT_NODE){let a=r.textContent||"",l=Math.max(0,t.endOffset-1),[,s]=S(a,l);i=s;}try{return t.setStart(o,n),t.setEnd(r,i),e.removeAllRanges(),e.addRange(t),!0}catch(a){return console.warn("Could not expand selection to word boundaries:",a),false}}function W(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.getRangeAt(0).commonAncestorContainer,r=Pi(o);if(r){let n=document.createRange();return n.selectNodeContents(r),e.removeAllRanges(),e.addRange(n),true}return false}function Pi(e){if(!e)return null;let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute("data-paragraph-index"))return t;t=t.parentNode;}return null}function B(e){let t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=o.nextNode();)r.nodeType===Node.TEXT_NODE&&t.push(r);return t}var O=0,x=null,k=null,Ci=500;function _(){O=0,k=null,x&&(clearTimeout(x),x=null);}function F(e){return e.target!==k&&_(),O++,k=e.target,x&&clearTimeout(x),x=setTimeout(_,Ci),Math.min(O,3)}function Ei(){return e=>{e.ctrlKey||e.metaKey||e.altKey||L();}}function Ri(){return e=>{if(F(e)===3){if(e.ctrlKey||e.metaKey||e.altKey)return;W();}}}function y(e){return e?/[\p{L}\p{N}_]/u.test(e):false}function M(e){return e?/\s/.test(e):false}function vi(e){return e?/[\p{P}]/u.test(e):false}function wi(e,t){if(t<=0)return 0;t>e.length&&(t=e.length);let o=t;for(;o>0&&M(e[o-1]);)o--;if(o===0)return 0;for(;o>0&&y(e[o-1]);)o--;return o}function Ii(e,t){if(t>=e.length)return e.length;t<0&&(t=0);let o=t;for(;o<e.length&&y(e[o]);)o++;for(;o<e.length&&M(e[o]);)o++;return o}function U(e,t){if(t>=e.length)return e.length;let o=t;for(;o<e.length&&y(e[o]);)o++;for(;o<e.length&&!y(e[o]);)o++;return o}function V(e,t){if(t<=0)return 0;let o=t;for(;o>0&&!y(e[o-1]);)o--;for(;o>0&&y(e[o-1]);)o--;return o}function z(e,t){if(!window.getSelection())return null;let r=document.createRange();if(e.nodeType===Node.TEXT_NODE){r.setStart(e,Math.min(t,e.textContent?.length||0)),r.collapse(true);let i=r.getBoundingClientRect().top,a=0,l=t;for(;a<l;){let s=Math.floor((a+l)/2);r.setStart(e,s),r.collapse(true);let c=r.getBoundingClientRect();Math.abs(c.top-i)<2?l=s:a=s+1;}return {node:e,offset:a}}return null}function G(e,t){if(!window.getSelection())return null;let r=e.textContent?.length||0,n=document.createRange();if(e.nodeType===Node.TEXT_NODE){n.setStart(e,Math.min(t,r)),n.collapse(true);let a=n.getBoundingClientRect().top,l=t,s=r;for(;l<s;){let c=Math.ceil((l+s)/2);n.setStart(e,c),n.collapse(true);let d=n.getBoundingClientRect();Math.abs(d.top-a)<2?l=c:s=c-1;}return {node:e,offset:l}}return null}function Ai(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let t=e.getRangeAt(0);return {node:t.startContainer,offset:t.startOffset,anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,text:e.toString()}}function w(e,t){let o=window.getSelection();if(!o)return;let r=document.createRange(),n=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;r.setStart(e,Math.min(t,n)),r.collapse(true),o.removeAllRanges(),o.addRange(r);}function I(e,t){let o=window.getSelection();if(!(!o||!o.anchorNode))try{o.extend(e,Math.min(t,e.textContent?.length||0));}catch{let r=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;o.setBaseAndExtent(o.anchorNode,o.anchorOffset,e,Math.min(t,r));}}function $(e,t=false){let o=window.getSelection();if(!o||o.rangeCount===0)return false;let r=o.focusNode;if(!r||r.nodeType!==Node.TEXT_NODE)return false;let n=r.textContent||"",i=o.focusOffset,a;return e==="left"?a=V(n,i):a=U(n,i),t?I(r,a):w(r,a),true}function Z(e,t=false){let o=window.getSelection();if(!o||o.rangeCount===0)return false;let r=o.focusNode;if(!r)return false;if(r.nodeType===Node.TEXT_NODE){let a=e==="start"?z(r,o.focusOffset):G(r,o.focusOffset);if(a)return t?I(a.node,a.offset):w(a.node,a.offset),true}let n=r.textContent||"",i=e==="start"?0:n.length;return t?I(r,i):w(r,i),true}function X(e){let{key:t,ctrlKey:o,metaKey:r,shiftKey:n,altKey:i}=e,a=o||r;switch(t){case "ArrowLeft":if(a)return {direction:"left",unit:"word",extend:n};break;case "ArrowRight":if(a)return {direction:"right",unit:"word",extend:n};break;case "Home":return a?{direction:"left",unit:"document",extend:n}:{direction:"left",unit:"line",extend:n};case "End":return a?{direction:"right",unit:"document",extend:n}:{direction:"right",unit:"line",extend:n}}return null}function Ni(e,t){let o=X(e);if(!o)return false;switch(o.unit){case "word":if((o.direction==="left"||o.direction==="right")&&$(o.direction,o.extend))return e.preventDefault(),true;break;case "line":let r=o.direction==="left"?"start":"end";if(Z(r,o.extend))return e.preventDefault(),true;break;case "document":if(o.direction==="left"&&t?.onDocumentStart)return e.preventDefault(),t.onDocumentStart(),true;if(o.direction==="right"&&t?.onDocumentEnd)return e.preventDefault(),t.onDocumentEnd(),true;break}return false}function Di(e){let{key:t,ctrlKey:o,metaKey:r}=e;return !!((o||r)&&(t==="ArrowLeft"||t==="ArrowRight")||t==="Home"||t==="End")}function Oi(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.focusNode;if(!t||t.nodeType!==Node.TEXT_NODE)return false;let o=t.textContent||"",r=e.focusOffset,n=r,i=r;for(;n>0&&y(o[n-1]);)n--;for(;i<o.length&&y(o[i]);)i++;if(n===i)return false;let a=document.createRange();return a.setStart(t,n),a.setEnd(t,i),e.removeAllRanges(),e.addRange(a),true}function ki(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let t=e.focusNode;if(!t||t.nodeType!==Node.TEXT_NODE)return null;let o=t.textContent||"",r=e.focusOffset,n=r,i=r;for(;n>0&&y(o[n-1]);)n--;for(;i<o.length&&y(o[i]);)i++;return n===i?null:o.slice(n,i)}function Li(e,t){let o=e.ctrlKey||e.metaKey,r=t.ctrlKey||t.metaKey;return e.key.toLowerCase()===t.key.toLowerCase()&&o===!!r&&e.shiftKey===!!t.shiftKey&&e.altKey===!!t.altKey}var f={wordLeft:{key:"ArrowLeft",ctrlKey:true},wordRight:{key:"ArrowRight",ctrlKey:true},selectWordLeft:{key:"ArrowLeft",ctrlKey:true,shiftKey:true},selectWordRight:{key:"ArrowRight",ctrlKey:true,shiftKey:true},lineStart:{key:"Home"},lineEnd:{key:"End"},selectToLineStart:{key:"Home",shiftKey:true},selectToLineEnd:{key:"End",shiftKey:true},documentStart:{key:"Home",ctrlKey:true},documentEnd:{key:"End",ctrlKey:true},selectToDocumentStart:{key:"Home",ctrlKey:true,shiftKey:true},selectToDocumentEnd:{key:"End",ctrlKey:true,shiftKey:true}};function m(e){let t=[];if(e.ctrlKey||e.metaKey){let r=typeof navigator<"u"&&/Mac/i.test(navigator.platform);t.push(r?"\u2318":"Ctrl");}e.shiftKey&&t.push("Shift"),e.altKey&&t.push("Alt");let o=e.key;return o==="ArrowLeft"?o="\u2190":o==="ArrowRight"?o="\u2192":o==="ArrowUp"?o="\u2191":o==="ArrowDown"&&(o="\u2193"),t.push(o),t.join("+")}function Mi(){return [{action:"Move by word (left)",shortcut:m(f.wordLeft)},{action:"Move by word (right)",shortcut:m(f.wordRight)},{action:"Select word (left)",shortcut:m(f.selectWordLeft)},{action:"Select word (right)",shortcut:m(f.selectWordRight)},{action:"Go to line start",shortcut:m(f.lineStart)},{action:"Go to line end",shortcut:m(f.lineEnd)},{action:"Select to line start",shortcut:m(f.selectToLineStart)},{action:"Select to line end",shortcut:m(f.selectToLineEnd)},{action:"Go to document start",shortcut:m(f.documentStart)},{action:"Go to document end",shortcut:m(f.documentEnd)},{action:"Select to document start",shortcut:m(f.selectToDocumentStart)},{action:"Select to document end",shortcut:m(f.selectToDocumentEnd)}]}var Y=/\{([#/^@]?)([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)\}/g,p=new prosemirrorState.PluginKey("template");function _i(e,t,o){return `${e}:${t}:${o}`}function q(e){let t=[];e.descendants((s,c)=>(s.isText&&s.text&&t.push({text:s.text,pos:c}),true));let o="",r=[];for(let s of t){for(let c=0;c<s.text.length;c++)r.push(s.pos+c);o+=s.text;}let n=[],i=[],a=new Map,l;for(Y.lastIndex=0;(l=Y.exec(o))!==null;){let[s,c,d]=l,g=r[l.index],h=r[l.index+s.length-1]+1,u;c==="#"?u="sectionStart":c==="/"?u="sectionEnd":c==="^"?u="invertedStart":c==="@"?u="raw":u="variable";let T=`${u}:${d}`,H=a.get(T)??0;a.set(T,H+1);let E={id:_i(u,d,H),type:u,name:d,rawTag:s,from:g,to:h};if(u==="sectionStart"||u==="invertedStart")E.nestedVars=[],i.push(E);else if(u==="sectionEnd"){for(let P=i.length-1;P>=0;P--)if(i[P].name===d){i.splice(P,1);break}}else u==="variable"&&i.length>0&&(i[i.length-1].nestedVars?.push(d),E.insideSection=true);n.push(E);}return n}function Wi(e){switch(e){case "sectionStart":case "sectionEnd":return "#3b82f6";case "invertedStart":return "#8b5cf6";case "raw":return "#ef4444";default:return "#f59e0b"}}function K(e,t,o,r){let n=[];for(let i of t){let a=i.id===o,l=i.id===r,s=Wi(i.type),c=["docx-template-tag"];a&&c.push("hovered"),l&&c.push("selected"),n.push(prosemirrorView.Decoration.inline(i.from,i.to,{class:c.join(" "),"data-tag-id":i.id,style:`background-color: ${s}22; border-radius: 2px;`}));}return prosemirrorView.DecorationSet.create(e,n)}function Fi(e,t){if(e.length!==t.length)return false;for(let o=0;o<e.length;o++)if(e[o].id!==t[o].id)return false;return true}function A(){return new prosemirrorState.Plugin({key:p,state:{init(e,t){let o=q(t.doc);return {tags:o,decorations:K(t.doc,o)}},apply(e,t,o,r){if(e.docChanged){let i=q(r.doc),a=Fi(t.tags,i);return {tags:i,decorations:a?t.decorations.map(e.mapping,e.doc):K(r.doc,i,t.hoveredId,t.selectedId),hoveredId:t.hoveredId,selectedId:t.selectedId}}let n=e.getMeta(p);if(n){let i=n.hoveredId??t.hoveredId,a=n.selectedId??t.selectedId;return {...t,hoveredId:i,selectedId:a,decorations:K(r.doc,t.tags,i,a)}}return {...t,decorations:t.decorations.map(e.mapping,e.doc)}}},props:{decorations(e){return p.getState(e)?.decorations??prosemirrorView.DecorationSet.empty},handleClick(e,t){let r=(p.getState(e.state)?.tags??[]).find(i=>t>=i.from&&t<=i.to);return r?(e.dispatch(e.state.tr.setMeta(p,{selectedId:r.id})),true):(p.getState(e.state)?.selectedId&&e.dispatch(e.state.tr.setMeta(p,{selectedId:void 0})),false)},handleDOMEvents:{mouseover(e,t){let r=t.target.closest?.("[data-tag-id]")?.getAttribute("data-tag-id")||void 0,n=p.getState(e.state)?.hoveredId;return r!==n&&e.dispatch(e.state.tr.setMeta(p,{hoveredId:r})),false},mouseout(e,t){return t.relatedTarget?.closest?.("[data-tag-id]")||p.getState(e.state)?.hoveredId&&e.dispatch(e.state.tr.setMeta(p,{hoveredId:void 0})),false}}}})}function J(e){return p.getState(e)?.tags??[]}function C(e,t){e.dispatch(e.state.tr.setMeta(p,{hoveredId:t}));}function N(e,t){e.dispatch(e.state.tr.setMeta(p,{selectedId:t}));}var D=`
|
|
1
|
+
'use strict';var chunkWH2EK2HU_js=require('./chunk-WH2EK2HU.js');require('./chunk-EV3CM6TU.js');var chunkUMDJQ3Q4_js=require('./chunk-UMDJQ3Q4.js'),chunkEF3LLEN7_js=require('./chunk-EF3LLEN7.js'),chunkCTYOM6BE_js=require('./chunk-CTYOM6BE.js'),chunkPJVI53AH_js=require('./chunk-PJVI53AH.js'),chunkFVUGBRDD_js=require('./chunk-FVUGBRDD.js');require('./chunk-QVPR2W5S.js');var chunkP7WEP4JU_js=require('./chunk-P7WEP4JU.js'),chunk4VUZBV2S_js=require('./chunk-4VUZBV2S.js'),chunkKCOGY3V2_js=require('./chunk-KCOGY3V2.js'),chunkPB7VMDDP_js=require('./chunk-PB7VMDDP.js'),chunkZJNGMDRE_js=require('./chunk-ZJNGMDRE.js'),chunkAARNCPWR_js=require('./chunk-AARNCPWR.js'),chunkKUL2SDYC_js=require('./chunk-KUL2SDYC.js'),chunkBUEMG4NW_js=require('./chunk-BUEMG4NW.js'),chunkSE5EN2QL_js=require('./chunk-SE5EN2QL.js');require('./chunk-IFPN3NT3.js'),require('./chunk-H5NTJZO4.js');var ae=require('react'),prosemirrorState=require('prosemirror-state'),prosemirrorView=require('prosemirror-view'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var ae__default=/*#__PURE__*/_interopDefault(ae);var yi=/[\p{L}\p{N}''\-]/u,hi=/\s/;function R(e){return !e||e.length===0?false:yi.test(e)}function v(e){return !e||e.length===0?false:hi.test(e)}function S(e,t){if(!e||e.length===0)return [0,0];t=Math.max(0,Math.min(t,e.length-1));let o=e[t];if(v(o)){let r=t,n=t;for(;r>0&&v(e[r-1]);)r--;for(;n<e.length&&v(e[n]);)n++;return [r,n]}if(R(o)){let r=t,n=t;for(;r>0&&R(e[r-1]);)r--;for(;n<e.length&&R(e[n]);)n++;return [r,n]}return [t,t+1]}function Ti(e,t){let[o,r]=S(e,t);return e.slice(o,r)}function Si(e,t){let[o,r]=S(e,t);return {word:e.slice(o,r),startIndex:o,endIndex:r}}function L(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0),o=t.startContainer;if(o.nodeType===Node.TEXT_NODE){let r=o.textContent||"",n=t.startOffset,[i,a]=S(r,n);if(a>i)return t.setStart(o,i),t.setEnd(o,a),e.removeAllRanges(),e.addRange(t),true}if(o.nodeType===Node.ELEMENT_NODE){let r=o,n=B(r);if(n.length>0){let i=t.startOffset,a=null,l=i;if(i<r.childNodes.length){let s=r.childNodes[i];if(s.nodeType===Node.TEXT_NODE)a=s,l=0;else if(s instanceof Element){let c=B(s);c.length>0&&(a=c[0],l=0);}}if(!a&&n.length>0&&(a=n[0],l=0),a){let s=a.textContent||"",[c,d]=S(s,l);if(d>c){let g=document.createRange();return g.setStart(a,c),g.setEnd(a,d),e.removeAllRanges(),e.addRange(g),true}}}}return false}function xi(e,t){let o=window.getSelection();if(!o)return false;let r=e.textContent||"",[n,i]=S(r,t);if(i>n){let a=document.createRange();return a.setStart(e,n),a.setEnd(e,i),o.removeAllRanges(),o.addRange(a),true}return false}function bi(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0);if(t.collapsed)return L();let o=t.startContainer,r=t.endContainer,n=t.startOffset,i=t.endOffset;if(o.nodeType===Node.TEXT_NODE){let a=o.textContent||"",[l]=S(a,t.startOffset);n=l;}if(r.nodeType===Node.TEXT_NODE){let a=r.textContent||"",l=Math.max(0,t.endOffset-1),[,s]=S(a,l);i=s;}try{return t.setStart(o,n),t.setEnd(r,i),e.removeAllRanges(),e.addRange(t),!0}catch(a){return console.warn("Could not expand selection to word boundaries:",a),false}}function W(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.getRangeAt(0).commonAncestorContainer,r=Pi(o);if(r){let n=document.createRange();return n.selectNodeContents(r),e.removeAllRanges(),e.addRange(n),true}return false}function Pi(e){if(!e)return null;let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute("data-paragraph-index"))return t;t=t.parentNode;}return null}function B(e){let t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=o.nextNode();)r.nodeType===Node.TEXT_NODE&&t.push(r);return t}var O=0,x=null,k=null,Ci=500;function _(){O=0,k=null,x&&(clearTimeout(x),x=null);}function F(e){return e.target!==k&&_(),O++,k=e.target,x&&clearTimeout(x),x=setTimeout(_,Ci),Math.min(O,3)}function Ei(){return e=>{e.ctrlKey||e.metaKey||e.altKey||L();}}function Ri(){return e=>{if(F(e)===3){if(e.ctrlKey||e.metaKey||e.altKey)return;W();}}}function y(e){return e?/[\p{L}\p{N}_]/u.test(e):false}function M(e){return e?/\s/.test(e):false}function vi(e){return e?/[\p{P}]/u.test(e):false}function wi(e,t){if(t<=0)return 0;t>e.length&&(t=e.length);let o=t;for(;o>0&&M(e[o-1]);)o--;if(o===0)return 0;for(;o>0&&y(e[o-1]);)o--;return o}function Ii(e,t){if(t>=e.length)return e.length;t<0&&(t=0);let o=t;for(;o<e.length&&y(e[o]);)o++;for(;o<e.length&&M(e[o]);)o++;return o}function U(e,t){if(t>=e.length)return e.length;let o=t;for(;o<e.length&&y(e[o]);)o++;for(;o<e.length&&!y(e[o]);)o++;return o}function V(e,t){if(t<=0)return 0;let o=t;for(;o>0&&!y(e[o-1]);)o--;for(;o>0&&y(e[o-1]);)o--;return o}function z(e,t){if(!window.getSelection())return null;let r=document.createRange();if(e.nodeType===Node.TEXT_NODE){r.setStart(e,Math.min(t,e.textContent?.length||0)),r.collapse(true);let i=r.getBoundingClientRect().top,a=0,l=t;for(;a<l;){let s=Math.floor((a+l)/2);r.setStart(e,s),r.collapse(true);let c=r.getBoundingClientRect();Math.abs(c.top-i)<2?l=s:a=s+1;}return {node:e,offset:a}}return null}function G(e,t){if(!window.getSelection())return null;let r=e.textContent?.length||0,n=document.createRange();if(e.nodeType===Node.TEXT_NODE){n.setStart(e,Math.min(t,r)),n.collapse(true);let a=n.getBoundingClientRect().top,l=t,s=r;for(;l<s;){let c=Math.ceil((l+s)/2);n.setStart(e,c),n.collapse(true);let d=n.getBoundingClientRect();Math.abs(d.top-a)<2?l=c:s=c-1;}return {node:e,offset:l}}return null}function Ai(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let t=e.getRangeAt(0);return {node:t.startContainer,offset:t.startOffset,anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,text:e.toString()}}function w(e,t){let o=window.getSelection();if(!o)return;let r=document.createRange(),n=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;r.setStart(e,Math.min(t,n)),r.collapse(true),o.removeAllRanges(),o.addRange(r);}function I(e,t){let o=window.getSelection();if(!(!o||!o.anchorNode))try{o.extend(e,Math.min(t,e.textContent?.length||0));}catch{let r=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;o.setBaseAndExtent(o.anchorNode,o.anchorOffset,e,Math.min(t,r));}}function $(e,t=false){let o=window.getSelection();if(!o||o.rangeCount===0)return false;let r=o.focusNode;if(!r||r.nodeType!==Node.TEXT_NODE)return false;let n=r.textContent||"",i=o.focusOffset,a;return e==="left"?a=V(n,i):a=U(n,i),t?I(r,a):w(r,a),true}function Z(e,t=false){let o=window.getSelection();if(!o||o.rangeCount===0)return false;let r=o.focusNode;if(!r)return false;if(r.nodeType===Node.TEXT_NODE){let a=e==="start"?z(r,o.focusOffset):G(r,o.focusOffset);if(a)return t?I(a.node,a.offset):w(a.node,a.offset),true}let n=r.textContent||"",i=e==="start"?0:n.length;return t?I(r,i):w(r,i),true}function X(e){let{key:t,ctrlKey:o,metaKey:r,shiftKey:n,altKey:i}=e,a=o||r;switch(t){case "ArrowLeft":if(a)return {direction:"left",unit:"word",extend:n};break;case "ArrowRight":if(a)return {direction:"right",unit:"word",extend:n};break;case "Home":return a?{direction:"left",unit:"document",extend:n}:{direction:"left",unit:"line",extend:n};case "End":return a?{direction:"right",unit:"document",extend:n}:{direction:"right",unit:"line",extend:n}}return null}function Ni(e,t){let o=X(e);if(!o)return false;switch(o.unit){case "word":if((o.direction==="left"||o.direction==="right")&&$(o.direction,o.extend))return e.preventDefault(),true;break;case "line":let r=o.direction==="left"?"start":"end";if(Z(r,o.extend))return e.preventDefault(),true;break;case "document":if(o.direction==="left"&&t?.onDocumentStart)return e.preventDefault(),t.onDocumentStart(),true;if(o.direction==="right"&&t?.onDocumentEnd)return e.preventDefault(),t.onDocumentEnd(),true;break}return false}function Di(e){let{key:t,ctrlKey:o,metaKey:r}=e;return !!((o||r)&&(t==="ArrowLeft"||t==="ArrowRight")||t==="Home"||t==="End")}function Oi(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.focusNode;if(!t||t.nodeType!==Node.TEXT_NODE)return false;let o=t.textContent||"",r=e.focusOffset,n=r,i=r;for(;n>0&&y(o[n-1]);)n--;for(;i<o.length&&y(o[i]);)i++;if(n===i)return false;let a=document.createRange();return a.setStart(t,n),a.setEnd(t,i),e.removeAllRanges(),e.addRange(a),true}function ki(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let t=e.focusNode;if(!t||t.nodeType!==Node.TEXT_NODE)return null;let o=t.textContent||"",r=e.focusOffset,n=r,i=r;for(;n>0&&y(o[n-1]);)n--;for(;i<o.length&&y(o[i]);)i++;return n===i?null:o.slice(n,i)}function Li(e,t){let o=e.ctrlKey||e.metaKey,r=t.ctrlKey||t.metaKey;return e.key.toLowerCase()===t.key.toLowerCase()&&o===!!r&&e.shiftKey===!!t.shiftKey&&e.altKey===!!t.altKey}var f={wordLeft:{key:"ArrowLeft",ctrlKey:true},wordRight:{key:"ArrowRight",ctrlKey:true},selectWordLeft:{key:"ArrowLeft",ctrlKey:true,shiftKey:true},selectWordRight:{key:"ArrowRight",ctrlKey:true,shiftKey:true},lineStart:{key:"Home"},lineEnd:{key:"End"},selectToLineStart:{key:"Home",shiftKey:true},selectToLineEnd:{key:"End",shiftKey:true},documentStart:{key:"Home",ctrlKey:true},documentEnd:{key:"End",ctrlKey:true},selectToDocumentStart:{key:"Home",ctrlKey:true,shiftKey:true},selectToDocumentEnd:{key:"End",ctrlKey:true,shiftKey:true}};function m(e){let t=[];if(e.ctrlKey||e.metaKey){let r=typeof navigator<"u"&&/Mac/i.test(navigator.platform);t.push(r?"\u2318":"Ctrl");}e.shiftKey&&t.push("Shift"),e.altKey&&t.push("Alt");let o=e.key;return o==="ArrowLeft"?o="\u2190":o==="ArrowRight"?o="\u2192":o==="ArrowUp"?o="\u2191":o==="ArrowDown"&&(o="\u2193"),t.push(o),t.join("+")}function Mi(){return [{action:"Move by word (left)",shortcut:m(f.wordLeft)},{action:"Move by word (right)",shortcut:m(f.wordRight)},{action:"Select word (left)",shortcut:m(f.selectWordLeft)},{action:"Select word (right)",shortcut:m(f.selectWordRight)},{action:"Go to line start",shortcut:m(f.lineStart)},{action:"Go to line end",shortcut:m(f.lineEnd)},{action:"Select to line start",shortcut:m(f.selectToLineStart)},{action:"Select to line end",shortcut:m(f.selectToLineEnd)},{action:"Go to document start",shortcut:m(f.documentStart)},{action:"Go to document end",shortcut:m(f.documentEnd)},{action:"Select to document start",shortcut:m(f.selectToDocumentStart)},{action:"Select to document end",shortcut:m(f.selectToDocumentEnd)}]}var Y=/\{([#/^@]?)([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)\}/g,p=new prosemirrorState.PluginKey("template");function _i(e,t,o){return `${e}:${t}:${o}`}function q(e){let t=[];e.descendants((s,c)=>(s.isText&&s.text&&t.push({text:s.text,pos:c}),true));let o="",r=[];for(let s of t){for(let c=0;c<s.text.length;c++)r.push(s.pos+c);o+=s.text;}let n=[],i=[],a=new Map,l;for(Y.lastIndex=0;(l=Y.exec(o))!==null;){let[s,c,d]=l,g=r[l.index],h=r[l.index+s.length-1]+1,u;c==="#"?u="sectionStart":c==="/"?u="sectionEnd":c==="^"?u="invertedStart":c==="@"?u="raw":u="variable";let T=`${u}:${d}`,H=a.get(T)??0;a.set(T,H+1);let E={id:_i(u,d,H),type:u,name:d,rawTag:s,from:g,to:h};if(u==="sectionStart"||u==="invertedStart")E.nestedVars=[],i.push(E);else if(u==="sectionEnd"){for(let P=i.length-1;P>=0;P--)if(i[P].name===d){i.splice(P,1);break}}else u==="variable"&&i.length>0&&(i[i.length-1].nestedVars?.push(d),E.insideSection=true);n.push(E);}return n}function Wi(e){switch(e){case "sectionStart":case "sectionEnd":return "#3b82f6";case "invertedStart":return "#8b5cf6";case "raw":return "#ef4444";default:return "#f59e0b"}}function K(e,t,o,r){let n=[];for(let i of t){let a=i.id===o,l=i.id===r,s=Wi(i.type),c=["docx-template-tag"];a&&c.push("hovered"),l&&c.push("selected"),n.push(prosemirrorView.Decoration.inline(i.from,i.to,{class:c.join(" "),"data-tag-id":i.id,style:`background-color: ${s}22; border-radius: 2px;`}));}return prosemirrorView.DecorationSet.create(e,n)}function Fi(e,t){if(e.length!==t.length)return false;for(let o=0;o<e.length;o++)if(e[o].id!==t[o].id)return false;return true}function A(){return new prosemirrorState.Plugin({key:p,state:{init(e,t){let o=q(t.doc);return {tags:o,decorations:K(t.doc,o)}},apply(e,t,o,r){if(e.docChanged){let i=q(r.doc),a=Fi(t.tags,i);return {tags:i,decorations:a?t.decorations.map(e.mapping,e.doc):K(r.doc,i,t.hoveredId,t.selectedId),hoveredId:t.hoveredId,selectedId:t.selectedId}}let n=e.getMeta(p);if(n){let i=n.hoveredId??t.hoveredId,a=n.selectedId??t.selectedId;return {...t,hoveredId:i,selectedId:a,decorations:K(r.doc,t.tags,i,a)}}return {...t,decorations:t.decorations.map(e.mapping,e.doc)}}},props:{decorations(e){return p.getState(e)?.decorations??prosemirrorView.DecorationSet.empty},handleClick(e,t){let r=(p.getState(e.state)?.tags??[]).find(i=>t>=i.from&&t<=i.to);return r?(e.dispatch(e.state.tr.setMeta(p,{selectedId:r.id})),true):(p.getState(e.state)?.selectedId&&e.dispatch(e.state.tr.setMeta(p,{selectedId:void 0})),false)},handleDOMEvents:{mouseover(e,t){let r=t.target.closest?.("[data-tag-id]")?.getAttribute("data-tag-id")||void 0,n=p.getState(e.state)?.hoveredId;return r!==n&&e.dispatch(e.state.tr.setMeta(p,{hoveredId:r})),false},mouseout(e,t){return t.relatedTarget?.closest?.("[data-tag-id]")||p.getState(e.state)?.hoveredId&&e.dispatch(e.state.tr.setMeta(p,{hoveredId:void 0})),false}}}})}function J(e){return p.getState(e)?.tags??[]}function C(e,t){e.dispatch(e.state.tr.setMeta(p,{hoveredId:t}));}function N(e,t){e.dispatch(e.state.tr.setMeta(p,{selectedId:t}));}var D=`
|
|
2
2
|
.docx-template-tag {
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
transition: background-color 0.1s;
|
|
@@ -109,4 +109,4 @@ Iterates over ${e.name}[]. Access nested properties via ${e.name}.property`:e.ra
|
|
|
109
109
|
${D}
|
|
110
110
|
${ne}
|
|
111
111
|
${oe}
|
|
112
|
-
`}}var qi=le();var fa="0.0.2";Object.defineProperty(exports,"DEFAULT_SELECTION_STYLE",{enumerable:true,get:function(){return chunkHIITS47V_js.w}});Object.defineProperty(exports,"DocxEditor",{enumerable:true,get:function(){return chunkHIITS47V_js.j}});Object.defineProperty(exports,"EditorToolbar",{enumerable:true,get:function(){return chunkHIITS47V_js.a}});Object.defineProperty(exports,"ErrorBoundary",{enumerable:true,get:function(){return chunkHIITS47V_js.d}});Object.defineProperty(exports,"ErrorProvider",{enumerable:true,get:function(){return chunkHIITS47V_js.c}});Object.defineProperty(exports,"HIGH_CONTRAST_SELECTION_STYLE",{enumerable:true,get:function(){return chunkHIITS47V_js.x}});Object.defineProperty(exports,"PLUGIN_HOST_STYLES",{enumerable:true,get:function(){return chunkHIITS47V_js.U}});Object.defineProperty(exports,"ParseErrorDisplay",{enumerable:true,get:function(){return chunkHIITS47V_js.e}});Object.defineProperty(exports,"PluginHost",{enumerable:true,get:function(){return chunkHIITS47V_js.V}});Object.defineProperty(exports,"SELECTION_CSS_VARS",{enumerable:true,get:function(){return chunkHIITS47V_js.y}});Object.defineProperty(exports,"UnsupportedFeatureWarning",{enumerable:true,get:function(){return chunkHIITS47V_js.f}});Object.defineProperty(exports,"ZOOM_PRESETS",{enumerable:true,get:function(){return chunkHIITS47V_js.m}});Object.defineProperty(exports,"areSelectionStylesInjected",{enumerable:true,get:function(){return chunkHIITS47V_js.P}});Object.defineProperty(exports,"clampZoom",{enumerable:true,get:function(){return chunkHIITS47V_js.v}});Object.defineProperty(exports,"clearSelection",{enumerable:true,get:function(){return chunkHIITS47V_js.K}});Object.defineProperty(exports,"createSelectionChangeHandler",{enumerable:true,get:function(){return chunkHIITS47V_js.Q}});Object.defineProperty(exports,"findNearestZoomPreset",{enumerable:true,get:function(){return chunkHIITS47V_js.p}});Object.defineProperty(exports,"formatZoom",{enumerable:true,get:function(){return chunkHIITS47V_js.s}});Object.defineProperty(exports,"generateOverlayElements",{enumerable:true,get:function(){return chunkHIITS47V_js.S}});Object.defineProperty(exports,"generateSelectionCSS",{enumerable:true,get:function(){return chunkHIITS47V_js.D}});Object.defineProperty(exports,"getHighlightRectStyle",{enumerable:true,get:function(){return chunkHIITS47V_js.C}});Object.defineProperty(exports,"getMergedSelectionRects",{enumerable:true,get:function(){return chunkHIITS47V_js.B}});Object.defineProperty(exports,"getNextZoomPreset",{enumerable:true,get:function(){return chunkHIITS47V_js.q}});Object.defineProperty(exports,"getPreviousZoomPreset",{enumerable:true,get:function(){return chunkHIITS47V_js.r}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunkHIITS47V_js.F}});Object.defineProperty(exports,"getSelectionBoundingRect",{enumerable:true,get:function(){return chunkHIITS47V_js.H}});Object.defineProperty(exports,"getSelectionRects",{enumerable:true,get:function(){return chunkHIITS47V_js.z}});Object.defineProperty(exports,"getUserFriendlyMessage",{enumerable:true,get:function(){return chunkHIITS47V_js.h}});Object.defineProperty(exports,"getZoomPresets",{enumerable:true,get:function(){return chunkHIITS47V_js.o}});Object.defineProperty(exports,"hasActiveSelection",{enumerable:true,get:function(){return chunkHIITS47V_js.E}});Object.defineProperty(exports,"highlightTextRange",{enumerable:true,get:function(){return chunkHIITS47V_js.I}});Object.defineProperty(exports,"injectSelectionStyles",{enumerable:true,get:function(){return chunkHIITS47V_js.N}});Object.defineProperty(exports,"isParseError",{enumerable:true,get:function(){return chunkHIITS47V_js.g}});Object.defineProperty(exports,"isSelectionBackwards",{enumerable:true,get:function(){return chunkHIITS47V_js.L}});Object.defineProperty(exports,"isSelectionWithin",{enumerable:true,get:function(){return chunkHIITS47V_js.G}});Object.defineProperty(exports,"isZoomPreset",{enumerable:true,get:function(){return chunkHIITS47V_js.u}});Object.defineProperty(exports,"mergeAdjacentRects",{enumerable:true,get:function(){return chunkHIITS47V_js.A}});Object.defineProperty(exports,"normalizeSelectionDirection",{enumerable:true,get:function(){return chunkHIITS47V_js.M}});Object.defineProperty(exports,"parseZoom",{enumerable:true,get:function(){return chunkHIITS47V_js.t}});Object.defineProperty(exports,"removeSelectionStyles",{enumerable:true,get:function(){return chunkHIITS47V_js.O}});Object.defineProperty(exports,"renderAsync",{enumerable:true,get:function(){return chunkHIITS47V_js.k}});Object.defineProperty(exports,"selectRange",{enumerable:true,get:function(){return chunkHIITS47V_js.J}});Object.defineProperty(exports,"useAutoSave",{enumerable:true,get:function(){return chunkHIITS47V_js.l}});Object.defineProperty(exports,"useClipboard",{enumerable:true,get:function(){return chunkHIITS47V_js.T}});Object.defineProperty(exports,"useErrorNotifications",{enumerable:true,get:function(){return chunkHIITS47V_js.b}});Object.defineProperty(exports,"useSelectionHighlight",{enumerable:true,get:function(){return chunkHIITS47V_js.R}});Object.defineProperty(exports,"useTableSelection",{enumerable:true,get:function(){return chunkHIITS47V_js.i}});Object.defineProperty(exports,"useWheelZoom",{enumerable:true,get:function(){return chunkHIITS47V_js.n}});Object.defineProperty(exports,"ColorPicker",{enumerable:true,get:function(){return chunkXGL3EGKF_js.k}});Object.defineProperty(exports,"ContextMenu",{enumerable:true,get:function(){return chunkXGL3EGKF_js.a}});Object.defineProperty(exports,"InsertImageDialog",{enumerable:true,get:function(){return chunkXGL3EGKF_js.V}});Object.defineProperty(exports,"InsertSymbolDialog",{enumerable:true,get:function(){return chunkXGL3EGKF_js.da}});Object.defineProperty(exports,"InsertTableDialog",{enumerable:true,get:function(){return chunkXGL3EGKF_js.O}});Object.defineProperty(exports,"KeyboardShortcutsDialog",{enumerable:true,get:function(){return chunkXGL3EGKF_js.qa}});Object.defineProperty(exports,"LoadingIndicator",{enumerable:true,get:function(){return chunkXGL3EGKF_js.B}});Object.defineProperty(exports,"PasteSpecialDialog",{enumerable:true,get:function(){return chunkXGL3EGKF_js.ka}});Object.defineProperty(exports,"PrintButton",{enumerable:true,get:function(){return chunkXGL3EGKF_js.l}});Object.defineProperty(exports,"PrintStyles",{enumerable:true,get:function(){return chunkXGL3EGKF_js.m}});Object.defineProperty(exports,"ResponsePreview",{enumerable:true,get:function(){return chunkXGL3EGKF_js.g}});Object.defineProperty(exports,"ResponsiveToolbar",{enumerable:true,get:function(){return chunkXGL3EGKF_js.J}});Object.defineProperty(exports,"ResponsiveToolbarGroup",{enumerable:true,get:function(){return chunkXGL3EGKF_js.K}});Object.defineProperty(exports,"SYMBOL_CATEGORIES",{enumerable:true,get:function(){return chunkXGL3EGKF_js.ca}});Object.defineProperty(exports,"TableInsertButtons",{enumerable:true,get:function(){return chunkXGL3EGKF_js.u}});Object.defineProperty(exports,"TableMergeButton",{enumerable:true,get:function(){return chunkXGL3EGKF_js.t}});Object.defineProperty(exports,"UnsavedIndicator",{enumerable:true,get:function(){return chunkXGL3EGKF_js.v}});Object.defineProperty(exports,"calculateFitDimensions",{enumerable:true,get:function(){return chunkXGL3EGKF_js._}});Object.defineProperty(exports,"clampTableConfig",{enumerable:true,get:function(){return chunkXGL3EGKF_js.S}});Object.defineProperty(exports,"createChangeTracker",{enumerable:true,get:function(){return chunkXGL3EGKF_js.A}});Object.defineProperty(exports,"createDefaultTableConfig",{enumerable:true,get:function(){return chunkXGL3EGKF_js.Q}});Object.defineProperty(exports,"createErrorResponse",{enumerable:true,get:function(){return chunkXGL3EGKF_js.j}});Object.defineProperty(exports,"createMockResponse",{enumerable:true,get:function(){return chunkXGL3EGKF_js.i}});Object.defineProperty(exports,"createToolbarItem",{enumerable:true,get:function(){return chunkXGL3EGKF_js.L}});Object.defineProperty(exports,"createToolbarItems",{enumerable:true,get:function(){return chunkXGL3EGKF_js.M}});Object.defineProperty(exports,"dataUrlToBlob",{enumerable:true,get:function(){return chunkXGL3EGKF_js.$}});Object.defineProperty(exports,"delay",{enumerable:true,get:function(){return chunkXGL3EGKF_js.H}});Object.defineProperty(exports,"formatFileSize",{enumerable:true,get:function(){return chunkXGL3EGKF_js.ba}});Object.defineProperty(exports,"formatPrintPageRange",{enumerable:true,get:function(){return chunkXGL3EGKF_js.r}});Object.defineProperty(exports,"formatShortcutKeys",{enumerable:true,get:function(){return chunkXGL3EGKF_js.xa}});Object.defineProperty(exports,"formatTableDimensions",{enumerable:true,get:function(){return chunkXGL3EGKF_js.T}});Object.defineProperty(exports,"getActionShortcut",{enumerable:true,get:function(){return chunkXGL3EGKF_js.c}});Object.defineProperty(exports,"getAllActions",{enumerable:true,get:function(){return chunkXGL3EGKF_js.f}});Object.defineProperty(exports,"getAllCategories",{enumerable:true,get:function(){return chunkXGL3EGKF_js.wa}});Object.defineProperty(exports,"getAllIndicatorPositions",{enumerable:true,get:function(){return chunkXGL3EGKF_js.z}});Object.defineProperty(exports,"getAllIndicatorVariants",{enumerable:true,get:function(){return chunkXGL3EGKF_js.y}});Object.defineProperty(exports,"getAllLoadingSizes",{enumerable:true,get:function(){return chunkXGL3EGKF_js.G}});Object.defineProperty(exports,"getAllLoadingVariants",{enumerable:true,get:function(){return chunkXGL3EGKF_js.F}});Object.defineProperty(exports,"getAllPasteOptions",{enumerable:true,get:function(){return chunkXGL3EGKF_js.na}});Object.defineProperty(exports,"getCategoryLabel",{enumerable:true,get:function(){return chunkXGL3EGKF_js.va}});Object.defineProperty(exports,"getCommonShortcuts",{enumerable:true,get:function(){return chunkXGL3EGKF_js.ua}});Object.defineProperty(exports,"getDefaultActions",{enumerable:true,get:function(){return chunkXGL3EGKF_js.e}});Object.defineProperty(exports,"getDefaultPasteOption",{enumerable:true,get:function(){return chunkXGL3EGKF_js.oa}});Object.defineProperty(exports,"getDefaultPrintOptions",{enumerable:true,get:function(){return chunkXGL3EGKF_js.p}});Object.defineProperty(exports,"getDefaultShortcuts",{enumerable:true,get:function(){return chunkXGL3EGKF_js.sa}});Object.defineProperty(exports,"getImageAcceptString",{enumerable:true,get:function(){return chunkXGL3EGKF_js.Z}});Object.defineProperty(exports,"getImageDimensions",{enumerable:true,get:function(){return chunkXGL3EGKF_js.aa}});Object.defineProperty(exports,"getLoadingVariantLabel",{enumerable:true,get:function(){return chunkXGL3EGKF_js.E}});Object.defineProperty(exports,"getPasteOption",{enumerable:true,get:function(){return chunkXGL3EGKF_js.ma}});Object.defineProperty(exports,"getRecommendedPriority",{enumerable:true,get:function(){return chunkXGL3EGKF_js.N}});Object.defineProperty(exports,"getShortcutsByCategory",{enumerable:true,get:function(){return chunkXGL3EGKF_js.ta}});Object.defineProperty(exports,"getSupportedImageExtensions",{enumerable:true,get:function(){return chunkXGL3EGKF_js.Y}});Object.defineProperty(exports,"getSymbolCategories",{enumerable:true,get:function(){return chunkXGL3EGKF_js.fa}});Object.defineProperty(exports,"getSymbolUnicodeInfo",{enumerable:true,get:function(){return chunkXGL3EGKF_js.ha}});Object.defineProperty(exports,"getSymbolsByCategory",{enumerable:true,get:function(){return chunkXGL3EGKF_js.ga}});Object.defineProperty(exports,"getTablePresets",{enumerable:true,get:function(){return chunkXGL3EGKF_js.U}});Object.defineProperty(exports,"getVariantLabel",{enumerable:true,get:function(){return chunkXGL3EGKF_js.x}});Object.defineProperty(exports,"isActionAvailable",{enumerable:true,get:function(){return chunkXGL3EGKF_js.d}});Object.defineProperty(exports,"isPasteSpecialShortcut",{enumerable:true,get:function(){return chunkXGL3EGKF_js.pa}});Object.defineProperty(exports,"isPrintSupported",{enumerable:true,get:function(){return chunkXGL3EGKF_js.s}});Object.defineProperty(exports,"isValidImageFile",{enumerable:true,get:function(){return chunkXGL3EGKF_js.X}});Object.defineProperty(exports,"isValidTableConfig",{enumerable:true,get:function(){return chunkXGL3EGKF_js.R}});Object.defineProperty(exports,"openPrintWindow",{enumerable:true,get:function(){return chunkXGL3EGKF_js.o}});Object.defineProperty(exports,"parsePageRange",{enumerable:true,get:function(){return chunkXGL3EGKF_js.q}});Object.defineProperty(exports,"searchSymbols",{enumerable:true,get:function(){return chunkXGL3EGKF_js.ia}});Object.defineProperty(exports,"symbolFromCodePoint",{enumerable:true,get:function(){return chunkXGL3EGKF_js.ja}});Object.defineProperty(exports,"triggerPrint",{enumerable:true,get:function(){return chunkXGL3EGKF_js.n}});Object.defineProperty(exports,"useContextMenu",{enumerable:true,get:function(){return chunkXGL3EGKF_js.b}});Object.defineProperty(exports,"useInsertImageDialog",{enumerable:true,get:function(){return chunkXGL3EGKF_js.W}});Object.defineProperty(exports,"useInsertSymbolDialog",{enumerable:true,get:function(){return chunkXGL3EGKF_js.ea}});Object.defineProperty(exports,"useInsertTableDialog",{enumerable:true,get:function(){return chunkXGL3EGKF_js.P}});Object.defineProperty(exports,"useKeyboardShortcutsDialog",{enumerable:true,get:function(){return chunkXGL3EGKF_js.ra}});Object.defineProperty(exports,"useLoading",{enumerable:true,get:function(){return chunkXGL3EGKF_js.C}});Object.defineProperty(exports,"useLoadingOperations",{enumerable:true,get:function(){return chunkXGL3EGKF_js.D}});Object.defineProperty(exports,"usePasteSpecial",{enumerable:true,get:function(){return chunkXGL3EGKF_js.la}});Object.defineProperty(exports,"useResponsePreview",{enumerable:true,get:function(){return chunkXGL3EGKF_js.h}});Object.defineProperty(exports,"useResponsiveToolbar",{enumerable:true,get:function(){return chunkXGL3EGKF_js.I}});Object.defineProperty(exports,"useUnsavedChanges",{enumerable:true,get:function(){return chunkXGL3EGKF_js.w}});Object.defineProperty(exports,"AdvancedColorPicker",{enumerable:true,get:function(){return chunk2KHL5RSD_js.k}});Object.defineProperty(exports,"AlignmentButtons",{enumerable:true,get:function(){return chunk2KHL5RSD_js.l}});Object.defineProperty(exports,"CLIPBOARD_TYPES",{enumerable:true,get:function(){return chunk2KHL5RSD_js.K}});Object.defineProperty(exports,"FontPicker",{enumerable:true,get:function(){return chunk2KHL5RSD_js.g}});Object.defineProperty(exports,"FontSizePicker",{enumerable:true,get:function(){return chunk2KHL5RSD_js.j}});Object.defineProperty(exports,"FormattingBar",{enumerable:true,get:function(){return chunk2KHL5RSD_js.y}});Object.defineProperty(exports,"HorizontalRuler",{enumerable:true,get:function(){return chunk2KHL5RSD_js.E}});Object.defineProperty(exports,"INTERNAL_CLIPBOARD_TYPE",{enumerable:true,get:function(){return chunk2KHL5RSD_js.J}});Object.defineProperty(exports,"LineSpacingPicker",{enumerable:true,get:function(){return chunk2KHL5RSD_js.o}});Object.defineProperty(exports,"ListButtons",{enumerable:true,get:function(){return chunk2KHL5RSD_js.m}});Object.defineProperty(exports,"StylePicker",{enumerable:true,get:function(){return chunk2KHL5RSD_js.p}});Object.defineProperty(exports,"TableBorderColorPicker",{enumerable:true,get:function(){return chunk2KHL5RSD_js.s}});Object.defineProperty(exports,"TableBorderPicker",{enumerable:true,get:function(){return chunk2KHL5RSD_js.r}});Object.defineProperty(exports,"TableBorderWidthPicker",{enumerable:true,get:function(){return chunk2KHL5RSD_js.t}});Object.defineProperty(exports,"TableCellFillPicker",{enumerable:true,get:function(){return chunk2KHL5RSD_js.u}});Object.defineProperty(exports,"TableMoreDropdown",{enumerable:true,get:function(){return chunk2KHL5RSD_js.v}});Object.defineProperty(exports,"TableToolbar",{enumerable:true,get:function(){return chunk2KHL5RSD_js.da}});Object.defineProperty(exports,"TextContextMenu",{enumerable:true,get:function(){return chunk2KHL5RSD_js.Z}});Object.defineProperty(exports,"Toolbar",{enumerable:true,get:function(){return chunk2KHL5RSD_js.D}});Object.defineProperty(exports,"ToolbarButton",{enumerable:true,get:function(){return chunk2KHL5RSD_js.A}});Object.defineProperty(exports,"ToolbarGroup",{enumerable:true,get:function(){return chunk2KHL5RSD_js.B}});Object.defineProperty(exports,"ToolbarSeparator",{enumerable:true,get:function(){return chunk2KHL5RSD_js.C}});Object.defineProperty(exports,"ZoomControl",{enumerable:true,get:function(){return chunk2KHL5RSD_js.q}});Object.defineProperty(exports,"addColumn",{enumerable:true,get:function(){return chunk2KHL5RSD_js.ja}});Object.defineProperty(exports,"addRow",{enumerable:true,get:function(){return chunk2KHL5RSD_js.ha}});Object.defineProperty(exports,"cleanWordHtml",{enumerable:true,get:function(){return chunk2KHL5RSD_js.W}});Object.defineProperty(exports,"copyParagraphs",{enumerable:true,get:function(){return chunk2KHL5RSD_js.N}});Object.defineProperty(exports,"copyRuns",{enumerable:true,get:function(){return chunk2KHL5RSD_js.M}});Object.defineProperty(exports,"createClipboardHandlers",{enumerable:true,get:function(){return chunk2KHL5RSD_js.Y}});Object.defineProperty(exports,"createDefaultListState",{enumerable:true,get:function(){return chunk2KHL5RSD_js.n}});Object.defineProperty(exports,"createTableContext",{enumerable:true,get:function(){return chunk2KHL5RSD_js.ea}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunk2KHL5RSD_js.ka}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunk2KHL5RSD_js.ia}});Object.defineProperty(exports,"getCellAt",{enumerable:true,get:function(){return chunk2KHL5RSD_js.ga}});Object.defineProperty(exports,"getColumnCount",{enumerable:true,get:function(){return chunk2KHL5RSD_js.fa}});Object.defineProperty(exports,"getDefaultTextContextMenuItems",{enumerable:true,get:function(){return chunk2KHL5RSD_js.ba}});Object.defineProperty(exports,"getMarginInUnits",{enumerable:true,get:function(){return chunk2KHL5RSD_js.H}});Object.defineProperty(exports,"getRulerDimensions",{enumerable:true,get:function(){return chunk2KHL5RSD_js.G}});Object.defineProperty(exports,"getTextActionLabel",{enumerable:true,get:function(){return chunk2KHL5RSD_js.$}});Object.defineProperty(exports,"getTextActionShortcut",{enumerable:true,get:function(){return chunk2KHL5RSD_js.aa}});Object.defineProperty(exports,"handlePasteEvent",{enumerable:true,get:function(){return chunk2KHL5RSD_js.S}});Object.defineProperty(exports,"htmlToRuns",{enumerable:true,get:function(){return chunk2KHL5RSD_js.X}});Object.defineProperty(exports,"isEditorHtml",{enumerable:true,get:function(){return chunk2KHL5RSD_js.V}});Object.defineProperty(exports,"isTextActionAvailable",{enumerable:true,get:function(){return chunk2KHL5RSD_js.ca}});Object.defineProperty(exports,"isWordHtml",{enumerable:true,get:function(){return chunk2KHL5RSD_js.U}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunk2KHL5RSD_js.la}});Object.defineProperty(exports,"paragraphsToClipboardContent",{enumerable:true,get:function(){return chunk2KHL5RSD_js.P}});Object.defineProperty(exports,"parseClipboardHtml",{enumerable:true,get:function(){return chunk2KHL5RSD_js.T}});Object.defineProperty(exports,"parseMarginFromUnits",{enumerable:true,get:function(){return chunk2KHL5RSD_js.I}});Object.defineProperty(exports,"positionToMargin",{enumerable:true,get:function(){return chunk2KHL5RSD_js.F}});Object.defineProperty(exports,"readFromClipboard",{enumerable:true,get:function(){return chunk2KHL5RSD_js.R}});Object.defineProperty(exports,"runsToClipboardContent",{enumerable:true,get:function(){return chunk2KHL5RSD_js.O}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunk2KHL5RSD_js.ma}});Object.defineProperty(exports,"useTextContextMenu",{enumerable:true,get:function(){return chunk2KHL5RSD_js._}});Object.defineProperty(exports,"writeToClipboard",{enumerable:true,get:function(){return chunk2KHL5RSD_js.Q}});Object.defineProperty(exports,"FindReplaceDialog",{enumerable:true,get:function(){return chunkCTYOM6BE_js.n}});Object.defineProperty(exports,"createDefaultFindOptions",{enumerable:true,get:function(){return chunkCTYOM6BE_js.a}});Object.defineProperty(exports,"createSearchPattern",{enumerable:true,get:function(){return chunkCTYOM6BE_js.c}});Object.defineProperty(exports,"escapeRegexString",{enumerable:true,get:function(){return chunkCTYOM6BE_js.b}});Object.defineProperty(exports,"findAllMatches",{enumerable:true,get:function(){return chunkCTYOM6BE_js.d}});Object.defineProperty(exports,"findInDocument",{enumerable:true,get:function(){return chunkCTYOM6BE_js.j}});Object.defineProperty(exports,"findInParagraph",{enumerable:true,get:function(){return chunkCTYOM6BE_js.k}});Object.defineProperty(exports,"getDefaultHighlightOptions",{enumerable:true,get:function(){return chunkCTYOM6BE_js.i}});Object.defineProperty(exports,"getMatchCountText",{enumerable:true,get:function(){return chunkCTYOM6BE_js.g}});Object.defineProperty(exports,"isEmptySearch",{enumerable:true,get:function(){return chunkCTYOM6BE_js.h}});Object.defineProperty(exports,"replaceAllInContent",{enumerable:true,get:function(){return chunkCTYOM6BE_js.e}});Object.defineProperty(exports,"replaceFirstInContent",{enumerable:true,get:function(){return chunkCTYOM6BE_js.f}});Object.defineProperty(exports,"scrollToMatch",{enumerable:true,get:function(){return chunkCTYOM6BE_js.l}});Object.defineProperty(exports,"useFindReplace",{enumerable:true,get:function(){return chunkCTYOM6BE_js.m}});Object.defineProperty(exports,"HyperlinkDialog",{enumerable:true,get:function(){return chunkPJVI53AH_js.d}});Object.defineProperty(exports,"useHyperlinkDialog",{enumerable:true,get:function(){return chunkPJVI53AH_js.m}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunkFVUGBRDD_js.x}});Object.defineProperty(exports,"countPageBreaks",{enumerable:true,get:function(){return chunkFVUGBRDD_js.n}});Object.defineProperty(exports,"createColumnBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.b}});Object.defineProperty(exports,"createHorizontalRule",{enumerable:true,get:function(){return chunkFVUGBRDD_js.g}});Object.defineProperty(exports,"createLineBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.c}});Object.defineProperty(exports,"createPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.a}});Object.defineProperty(exports,"createPageBreakParagraph",{enumerable:true,get:function(){return chunkFVUGBRDD_js.e}});Object.defineProperty(exports,"createPageBreakRun",{enumerable:true,get:function(){return chunkFVUGBRDD_js.d}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunkFVUGBRDD_js.F}});Object.defineProperty(exports,"findPageBreaks",{enumerable:true,get:function(){return chunkFVUGBRDD_js.o}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunkFVUGBRDD_js.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunkFVUGBRDD_js.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunkFVUGBRDD_js.E}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunkFVUGBRDD_js.m}});Object.defineProperty(exports,"insertHorizontalRule",{enumerable:true,get:function(){return chunkFVUGBRDD_js.h}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.f}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunkFVUGBRDD_js.w}});Object.defineProperty(exports,"isBreakContent",{enumerable:true,get:function(){return chunkFVUGBRDD_js.l}});Object.defineProperty(exports,"isColumnBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.j}});Object.defineProperty(exports,"isLineBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.k}});Object.defineProperty(exports,"isPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.i}});Object.defineProperty(exports,"removePageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.p}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunk3Y6ZBC3P_js.f}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunk3Y6ZBC3P_js.m}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunk3Y6ZBC3P_js.l}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunk3Y6ZBC3P_js.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunk3Y6ZBC3P_js.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunk3Y6ZBC3P_js.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunk3Y6ZBC3P_js.k}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunk4VUZBV2S_js.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunk4VUZBV2S_js.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.j}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.f}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunk4VUZBV2S_js.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunk4VUZBV2S_js.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunk4VUZBV2S_js.g}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.b}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.c}});Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkN2UPYG75_js.o}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkPB7VMDDP_js.e}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkPB7VMDDP_js.a}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkPB7VMDDP_js.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkPB7VMDDP_js.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkPB7VMDDP_js.f}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkDJI7XTMH_js.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkDJI7XTMH_js.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkDJI7XTMH_js.a}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkAARNCPWR_js.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkAARNCPWR_js.b}});Object.defineProperty(exports,"canRenderFont",{enumerable:true,get:function(){return chunkNKJBKWYY_js.i}});Object.defineProperty(exports,"getLoadedFonts",{enumerable:true,get:function(){return chunkNKJBKWYY_js.g}});Object.defineProperty(exports,"isFontLoaded",{enumerable:true,get:function(){return chunkNKJBKWYY_js.e}});Object.defineProperty(exports,"isFontsLoading",{enumerable:true,get:function(){return chunkNKJBKWYY_js.f}});Object.defineProperty(exports,"loadFont",{enumerable:true,get:function(){return chunkNKJBKWYY_js.c}});Object.defineProperty(exports,"loadFontFromBuffer",{enumerable:true,get:function(){return chunkNKJBKWYY_js.j}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkNKJBKWYY_js.d}});Object.defineProperty(exports,"onFontsLoaded",{enumerable:true,get:function(){return chunkNKJBKWYY_js.h}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkNKJBKWYY_js.n}});Object.defineProperty(exports,"preloadCommonFonts",{enumerable:true,get:function(){return chunkNKJBKWYY_js.k}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkNKJBKWYY_js.m}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.a}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkBUEMG4NW_js.c}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.c}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkSE5EN2QL_js.e}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkSE5EN2QL_js.k}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.h}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkSE5EN2QL_js.d}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkSE5EN2QL_js.b}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.g}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkSE5EN2QL_js.f}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.a}});exports.NAVIGATION_SHORTCUTS=f;exports.TEMPLATE_DECORATION_STYLES=D;exports.VERSION=fa;exports.createDoubleClickWordSelector=Ei;exports.createTemplatePlugin=le;exports.createTemplateProseMirrorPlugin=A;exports.createTripleClickParagraphSelector=Ri;exports.describeShortcut=m;exports.expandSelectionToWord=Oi;exports.expandSelectionToWordBoundaries=bi;exports.extendSelectionTo=I;exports.findNextWordStart=U;exports.findPreviousWordStart=V;exports.findVisualLineEnd=G;exports.findVisualLineStart=z;exports.findWordAt=Si;exports.findWordBoundaries=S;exports.findWordEnd=Ii;exports.findWordStart=wi;exports.getNavigationShortcutDescriptions=Mi;exports.getSelectionInfo=Ai;exports.getTemplatePluginTags=J;exports.getWordAt=Ti;exports.getWordAtCursor=ki;exports.handleClickForMultiClick=F;exports.handleNavigationKey=Ni;exports.isNavigationKey=Di;exports.isPunctuation=vi;exports.isWhitespace=v;exports.isWhitespaceChar=M;exports.isWordChar=y;exports.isWordCharacter=R;exports.matchesShortcut=Li;exports.moveByWord=$;exports.moveToLineEdge=Z;exports.parseNavigationAction=X;exports.selectParagraphAtCursor=W;exports.selectWordAtCursor=L;exports.selectWordInTextNode=xi;exports.setHoveredElement=C;exports.setSelectedElement=N;exports.setSelectionPosition=w;exports.templatePlugin=qi;exports.templatePluginKey=p;
|
|
112
|
+
`}}var qi=le();var fa="0.0.2";Object.defineProperty(exports,"DEFAULT_SELECTION_STYLE",{enumerable:true,get:function(){return chunkWH2EK2HU_js.w}});Object.defineProperty(exports,"DocxEditor",{enumerable:true,get:function(){return chunkWH2EK2HU_js.j}});Object.defineProperty(exports,"EditorToolbar",{enumerable:true,get:function(){return chunkWH2EK2HU_js.a}});Object.defineProperty(exports,"ErrorBoundary",{enumerable:true,get:function(){return chunkWH2EK2HU_js.d}});Object.defineProperty(exports,"ErrorProvider",{enumerable:true,get:function(){return chunkWH2EK2HU_js.c}});Object.defineProperty(exports,"HIGH_CONTRAST_SELECTION_STYLE",{enumerable:true,get:function(){return chunkWH2EK2HU_js.x}});Object.defineProperty(exports,"PLUGIN_HOST_STYLES",{enumerable:true,get:function(){return chunkWH2EK2HU_js.U}});Object.defineProperty(exports,"ParseErrorDisplay",{enumerable:true,get:function(){return chunkWH2EK2HU_js.e}});Object.defineProperty(exports,"PluginHost",{enumerable:true,get:function(){return chunkWH2EK2HU_js.V}});Object.defineProperty(exports,"SELECTION_CSS_VARS",{enumerable:true,get:function(){return chunkWH2EK2HU_js.y}});Object.defineProperty(exports,"UnsupportedFeatureWarning",{enumerable:true,get:function(){return chunkWH2EK2HU_js.f}});Object.defineProperty(exports,"ZOOM_PRESETS",{enumerable:true,get:function(){return chunkWH2EK2HU_js.m}});Object.defineProperty(exports,"areSelectionStylesInjected",{enumerable:true,get:function(){return chunkWH2EK2HU_js.P}});Object.defineProperty(exports,"clampZoom",{enumerable:true,get:function(){return chunkWH2EK2HU_js.v}});Object.defineProperty(exports,"clearSelection",{enumerable:true,get:function(){return chunkWH2EK2HU_js.K}});Object.defineProperty(exports,"createSelectionChangeHandler",{enumerable:true,get:function(){return chunkWH2EK2HU_js.Q}});Object.defineProperty(exports,"findNearestZoomPreset",{enumerable:true,get:function(){return chunkWH2EK2HU_js.p}});Object.defineProperty(exports,"formatZoom",{enumerable:true,get:function(){return chunkWH2EK2HU_js.s}});Object.defineProperty(exports,"generateOverlayElements",{enumerable:true,get:function(){return chunkWH2EK2HU_js.S}});Object.defineProperty(exports,"generateSelectionCSS",{enumerable:true,get:function(){return chunkWH2EK2HU_js.D}});Object.defineProperty(exports,"getHighlightRectStyle",{enumerable:true,get:function(){return chunkWH2EK2HU_js.C}});Object.defineProperty(exports,"getMergedSelectionRects",{enumerable:true,get:function(){return chunkWH2EK2HU_js.B}});Object.defineProperty(exports,"getNextZoomPreset",{enumerable:true,get:function(){return chunkWH2EK2HU_js.q}});Object.defineProperty(exports,"getPreviousZoomPreset",{enumerable:true,get:function(){return chunkWH2EK2HU_js.r}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunkWH2EK2HU_js.F}});Object.defineProperty(exports,"getSelectionBoundingRect",{enumerable:true,get:function(){return chunkWH2EK2HU_js.H}});Object.defineProperty(exports,"getSelectionRects",{enumerable:true,get:function(){return chunkWH2EK2HU_js.z}});Object.defineProperty(exports,"getUserFriendlyMessage",{enumerable:true,get:function(){return chunkWH2EK2HU_js.h}});Object.defineProperty(exports,"getZoomPresets",{enumerable:true,get:function(){return chunkWH2EK2HU_js.o}});Object.defineProperty(exports,"hasActiveSelection",{enumerable:true,get:function(){return chunkWH2EK2HU_js.E}});Object.defineProperty(exports,"highlightTextRange",{enumerable:true,get:function(){return chunkWH2EK2HU_js.I}});Object.defineProperty(exports,"injectSelectionStyles",{enumerable:true,get:function(){return chunkWH2EK2HU_js.N}});Object.defineProperty(exports,"isParseError",{enumerable:true,get:function(){return chunkWH2EK2HU_js.g}});Object.defineProperty(exports,"isSelectionBackwards",{enumerable:true,get:function(){return chunkWH2EK2HU_js.L}});Object.defineProperty(exports,"isSelectionWithin",{enumerable:true,get:function(){return chunkWH2EK2HU_js.G}});Object.defineProperty(exports,"isZoomPreset",{enumerable:true,get:function(){return chunkWH2EK2HU_js.u}});Object.defineProperty(exports,"mergeAdjacentRects",{enumerable:true,get:function(){return chunkWH2EK2HU_js.A}});Object.defineProperty(exports,"normalizeSelectionDirection",{enumerable:true,get:function(){return chunkWH2EK2HU_js.M}});Object.defineProperty(exports,"parseZoom",{enumerable:true,get:function(){return chunkWH2EK2HU_js.t}});Object.defineProperty(exports,"removeSelectionStyles",{enumerable:true,get:function(){return chunkWH2EK2HU_js.O}});Object.defineProperty(exports,"renderAsync",{enumerable:true,get:function(){return chunkWH2EK2HU_js.k}});Object.defineProperty(exports,"selectRange",{enumerable:true,get:function(){return chunkWH2EK2HU_js.J}});Object.defineProperty(exports,"useAutoSave",{enumerable:true,get:function(){return chunkWH2EK2HU_js.l}});Object.defineProperty(exports,"useClipboard",{enumerable:true,get:function(){return chunkWH2EK2HU_js.T}});Object.defineProperty(exports,"useErrorNotifications",{enumerable:true,get:function(){return chunkWH2EK2HU_js.b}});Object.defineProperty(exports,"useSelectionHighlight",{enumerable:true,get:function(){return chunkWH2EK2HU_js.R}});Object.defineProperty(exports,"useTableSelection",{enumerable:true,get:function(){return chunkWH2EK2HU_js.i}});Object.defineProperty(exports,"useWheelZoom",{enumerable:true,get:function(){return chunkWH2EK2HU_js.n}});Object.defineProperty(exports,"ColorPicker",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.k}});Object.defineProperty(exports,"ContextMenu",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.a}});Object.defineProperty(exports,"InsertImageDialog",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.V}});Object.defineProperty(exports,"InsertSymbolDialog",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.da}});Object.defineProperty(exports,"InsertTableDialog",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.O}});Object.defineProperty(exports,"KeyboardShortcutsDialog",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.qa}});Object.defineProperty(exports,"LoadingIndicator",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.B}});Object.defineProperty(exports,"PasteSpecialDialog",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.ka}});Object.defineProperty(exports,"PrintButton",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.l}});Object.defineProperty(exports,"PrintStyles",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.m}});Object.defineProperty(exports,"ResponsePreview",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.g}});Object.defineProperty(exports,"ResponsiveToolbar",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.J}});Object.defineProperty(exports,"ResponsiveToolbarGroup",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.K}});Object.defineProperty(exports,"SYMBOL_CATEGORIES",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.ca}});Object.defineProperty(exports,"TableInsertButtons",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.u}});Object.defineProperty(exports,"TableMergeButton",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.t}});Object.defineProperty(exports,"UnsavedIndicator",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.v}});Object.defineProperty(exports,"calculateFitDimensions",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js._}});Object.defineProperty(exports,"clampTableConfig",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.S}});Object.defineProperty(exports,"createChangeTracker",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.A}});Object.defineProperty(exports,"createDefaultTableConfig",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.Q}});Object.defineProperty(exports,"createErrorResponse",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.j}});Object.defineProperty(exports,"createMockResponse",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.i}});Object.defineProperty(exports,"createToolbarItem",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.L}});Object.defineProperty(exports,"createToolbarItems",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.M}});Object.defineProperty(exports,"dataUrlToBlob",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.$}});Object.defineProperty(exports,"delay",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.H}});Object.defineProperty(exports,"formatFileSize",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.ba}});Object.defineProperty(exports,"formatPrintPageRange",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.r}});Object.defineProperty(exports,"formatShortcutKeys",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.xa}});Object.defineProperty(exports,"formatTableDimensions",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.T}});Object.defineProperty(exports,"getActionShortcut",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.c}});Object.defineProperty(exports,"getAllActions",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.f}});Object.defineProperty(exports,"getAllCategories",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.wa}});Object.defineProperty(exports,"getAllIndicatorPositions",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.z}});Object.defineProperty(exports,"getAllIndicatorVariants",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.y}});Object.defineProperty(exports,"getAllLoadingSizes",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.G}});Object.defineProperty(exports,"getAllLoadingVariants",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.F}});Object.defineProperty(exports,"getAllPasteOptions",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.na}});Object.defineProperty(exports,"getCategoryLabel",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.va}});Object.defineProperty(exports,"getCommonShortcuts",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.ua}});Object.defineProperty(exports,"getDefaultActions",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.e}});Object.defineProperty(exports,"getDefaultPasteOption",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.oa}});Object.defineProperty(exports,"getDefaultPrintOptions",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.p}});Object.defineProperty(exports,"getDefaultShortcuts",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.sa}});Object.defineProperty(exports,"getImageAcceptString",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.Z}});Object.defineProperty(exports,"getImageDimensions",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.aa}});Object.defineProperty(exports,"getLoadingVariantLabel",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.E}});Object.defineProperty(exports,"getPasteOption",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.ma}});Object.defineProperty(exports,"getRecommendedPriority",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.N}});Object.defineProperty(exports,"getShortcutsByCategory",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.ta}});Object.defineProperty(exports,"getSupportedImageExtensions",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.Y}});Object.defineProperty(exports,"getSymbolCategories",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.fa}});Object.defineProperty(exports,"getSymbolUnicodeInfo",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.ha}});Object.defineProperty(exports,"getSymbolsByCategory",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.ga}});Object.defineProperty(exports,"getTablePresets",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.U}});Object.defineProperty(exports,"getVariantLabel",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.x}});Object.defineProperty(exports,"isActionAvailable",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.d}});Object.defineProperty(exports,"isPasteSpecialShortcut",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.pa}});Object.defineProperty(exports,"isPrintSupported",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.s}});Object.defineProperty(exports,"isValidImageFile",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.X}});Object.defineProperty(exports,"isValidTableConfig",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.R}});Object.defineProperty(exports,"openPrintWindow",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.o}});Object.defineProperty(exports,"parsePageRange",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.q}});Object.defineProperty(exports,"searchSymbols",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.ia}});Object.defineProperty(exports,"symbolFromCodePoint",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.ja}});Object.defineProperty(exports,"triggerPrint",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.n}});Object.defineProperty(exports,"useContextMenu",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.b}});Object.defineProperty(exports,"useInsertImageDialog",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.W}});Object.defineProperty(exports,"useInsertSymbolDialog",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.ea}});Object.defineProperty(exports,"useInsertTableDialog",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.P}});Object.defineProperty(exports,"useKeyboardShortcutsDialog",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.ra}});Object.defineProperty(exports,"useLoading",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.C}});Object.defineProperty(exports,"useLoadingOperations",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.D}});Object.defineProperty(exports,"usePasteSpecial",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.la}});Object.defineProperty(exports,"useResponsePreview",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.h}});Object.defineProperty(exports,"useResponsiveToolbar",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.I}});Object.defineProperty(exports,"useUnsavedChanges",{enumerable:true,get:function(){return chunkUMDJQ3Q4_js.w}});Object.defineProperty(exports,"AdvancedColorPicker",{enumerable:true,get:function(){return chunkEF3LLEN7_js.k}});Object.defineProperty(exports,"AlignmentButtons",{enumerable:true,get:function(){return chunkEF3LLEN7_js.l}});Object.defineProperty(exports,"CLIPBOARD_TYPES",{enumerable:true,get:function(){return chunkEF3LLEN7_js.K}});Object.defineProperty(exports,"FontPicker",{enumerable:true,get:function(){return chunkEF3LLEN7_js.g}});Object.defineProperty(exports,"FontSizePicker",{enumerable:true,get:function(){return chunkEF3LLEN7_js.j}});Object.defineProperty(exports,"FormattingBar",{enumerable:true,get:function(){return chunkEF3LLEN7_js.y}});Object.defineProperty(exports,"HorizontalRuler",{enumerable:true,get:function(){return chunkEF3LLEN7_js.E}});Object.defineProperty(exports,"INTERNAL_CLIPBOARD_TYPE",{enumerable:true,get:function(){return chunkEF3LLEN7_js.J}});Object.defineProperty(exports,"LineSpacingPicker",{enumerable:true,get:function(){return chunkEF3LLEN7_js.o}});Object.defineProperty(exports,"ListButtons",{enumerable:true,get:function(){return chunkEF3LLEN7_js.m}});Object.defineProperty(exports,"StylePicker",{enumerable:true,get:function(){return chunkEF3LLEN7_js.p}});Object.defineProperty(exports,"TableBorderColorPicker",{enumerable:true,get:function(){return chunkEF3LLEN7_js.s}});Object.defineProperty(exports,"TableBorderPicker",{enumerable:true,get:function(){return chunkEF3LLEN7_js.r}});Object.defineProperty(exports,"TableBorderWidthPicker",{enumerable:true,get:function(){return chunkEF3LLEN7_js.t}});Object.defineProperty(exports,"TableCellFillPicker",{enumerable:true,get:function(){return chunkEF3LLEN7_js.u}});Object.defineProperty(exports,"TableMoreDropdown",{enumerable:true,get:function(){return chunkEF3LLEN7_js.v}});Object.defineProperty(exports,"TableToolbar",{enumerable:true,get:function(){return chunkEF3LLEN7_js.da}});Object.defineProperty(exports,"TextContextMenu",{enumerable:true,get:function(){return chunkEF3LLEN7_js.Z}});Object.defineProperty(exports,"Toolbar",{enumerable:true,get:function(){return chunkEF3LLEN7_js.D}});Object.defineProperty(exports,"ToolbarButton",{enumerable:true,get:function(){return chunkEF3LLEN7_js.A}});Object.defineProperty(exports,"ToolbarGroup",{enumerable:true,get:function(){return chunkEF3LLEN7_js.B}});Object.defineProperty(exports,"ToolbarSeparator",{enumerable:true,get:function(){return chunkEF3LLEN7_js.C}});Object.defineProperty(exports,"ZoomControl",{enumerable:true,get:function(){return chunkEF3LLEN7_js.q}});Object.defineProperty(exports,"addColumn",{enumerable:true,get:function(){return chunkEF3LLEN7_js.ja}});Object.defineProperty(exports,"addRow",{enumerable:true,get:function(){return chunkEF3LLEN7_js.ha}});Object.defineProperty(exports,"cleanWordHtml",{enumerable:true,get:function(){return chunkEF3LLEN7_js.W}});Object.defineProperty(exports,"copyParagraphs",{enumerable:true,get:function(){return chunkEF3LLEN7_js.N}});Object.defineProperty(exports,"copyRuns",{enumerable:true,get:function(){return chunkEF3LLEN7_js.M}});Object.defineProperty(exports,"createClipboardHandlers",{enumerable:true,get:function(){return chunkEF3LLEN7_js.Y}});Object.defineProperty(exports,"createDefaultListState",{enumerable:true,get:function(){return chunkEF3LLEN7_js.n}});Object.defineProperty(exports,"createTableContext",{enumerable:true,get:function(){return chunkEF3LLEN7_js.ea}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkEF3LLEN7_js.ka}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkEF3LLEN7_js.ia}});Object.defineProperty(exports,"getCellAt",{enumerable:true,get:function(){return chunkEF3LLEN7_js.ga}});Object.defineProperty(exports,"getColumnCount",{enumerable:true,get:function(){return chunkEF3LLEN7_js.fa}});Object.defineProperty(exports,"getDefaultTextContextMenuItems",{enumerable:true,get:function(){return chunkEF3LLEN7_js.ba}});Object.defineProperty(exports,"getMarginInUnits",{enumerable:true,get:function(){return chunkEF3LLEN7_js.H}});Object.defineProperty(exports,"getRulerDimensions",{enumerable:true,get:function(){return chunkEF3LLEN7_js.G}});Object.defineProperty(exports,"getTextActionLabel",{enumerable:true,get:function(){return chunkEF3LLEN7_js.$}});Object.defineProperty(exports,"getTextActionShortcut",{enumerable:true,get:function(){return chunkEF3LLEN7_js.aa}});Object.defineProperty(exports,"handlePasteEvent",{enumerable:true,get:function(){return chunkEF3LLEN7_js.S}});Object.defineProperty(exports,"htmlToRuns",{enumerable:true,get:function(){return chunkEF3LLEN7_js.X}});Object.defineProperty(exports,"isEditorHtml",{enumerable:true,get:function(){return chunkEF3LLEN7_js.V}});Object.defineProperty(exports,"isTextActionAvailable",{enumerable:true,get:function(){return chunkEF3LLEN7_js.ca}});Object.defineProperty(exports,"isWordHtml",{enumerable:true,get:function(){return chunkEF3LLEN7_js.U}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkEF3LLEN7_js.la}});Object.defineProperty(exports,"paragraphsToClipboardContent",{enumerable:true,get:function(){return chunkEF3LLEN7_js.P}});Object.defineProperty(exports,"parseClipboardHtml",{enumerable:true,get:function(){return chunkEF3LLEN7_js.T}});Object.defineProperty(exports,"parseMarginFromUnits",{enumerable:true,get:function(){return chunkEF3LLEN7_js.I}});Object.defineProperty(exports,"positionToMargin",{enumerable:true,get:function(){return chunkEF3LLEN7_js.F}});Object.defineProperty(exports,"readFromClipboard",{enumerable:true,get:function(){return chunkEF3LLEN7_js.R}});Object.defineProperty(exports,"runsToClipboardContent",{enumerable:true,get:function(){return chunkEF3LLEN7_js.O}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkEF3LLEN7_js.ma}});Object.defineProperty(exports,"useTextContextMenu",{enumerable:true,get:function(){return chunkEF3LLEN7_js._}});Object.defineProperty(exports,"writeToClipboard",{enumerable:true,get:function(){return chunkEF3LLEN7_js.Q}});Object.defineProperty(exports,"FindReplaceDialog",{enumerable:true,get:function(){return chunkCTYOM6BE_js.n}});Object.defineProperty(exports,"createDefaultFindOptions",{enumerable:true,get:function(){return chunkCTYOM6BE_js.a}});Object.defineProperty(exports,"createSearchPattern",{enumerable:true,get:function(){return chunkCTYOM6BE_js.c}});Object.defineProperty(exports,"escapeRegexString",{enumerable:true,get:function(){return chunkCTYOM6BE_js.b}});Object.defineProperty(exports,"findAllMatches",{enumerable:true,get:function(){return chunkCTYOM6BE_js.d}});Object.defineProperty(exports,"findInDocument",{enumerable:true,get:function(){return chunkCTYOM6BE_js.j}});Object.defineProperty(exports,"findInParagraph",{enumerable:true,get:function(){return chunkCTYOM6BE_js.k}});Object.defineProperty(exports,"getDefaultHighlightOptions",{enumerable:true,get:function(){return chunkCTYOM6BE_js.i}});Object.defineProperty(exports,"getMatchCountText",{enumerable:true,get:function(){return chunkCTYOM6BE_js.g}});Object.defineProperty(exports,"isEmptySearch",{enumerable:true,get:function(){return chunkCTYOM6BE_js.h}});Object.defineProperty(exports,"replaceAllInContent",{enumerable:true,get:function(){return chunkCTYOM6BE_js.e}});Object.defineProperty(exports,"replaceFirstInContent",{enumerable:true,get:function(){return chunkCTYOM6BE_js.f}});Object.defineProperty(exports,"scrollToMatch",{enumerable:true,get:function(){return chunkCTYOM6BE_js.l}});Object.defineProperty(exports,"useFindReplace",{enumerable:true,get:function(){return chunkCTYOM6BE_js.m}});Object.defineProperty(exports,"HyperlinkDialog",{enumerable:true,get:function(){return chunkPJVI53AH_js.d}});Object.defineProperty(exports,"useHyperlinkDialog",{enumerable:true,get:function(){return chunkPJVI53AH_js.m}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunkFVUGBRDD_js.x}});Object.defineProperty(exports,"countPageBreaks",{enumerable:true,get:function(){return chunkFVUGBRDD_js.n}});Object.defineProperty(exports,"createColumnBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.b}});Object.defineProperty(exports,"createHorizontalRule",{enumerable:true,get:function(){return chunkFVUGBRDD_js.g}});Object.defineProperty(exports,"createLineBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.c}});Object.defineProperty(exports,"createPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.a}});Object.defineProperty(exports,"createPageBreakParagraph",{enumerable:true,get:function(){return chunkFVUGBRDD_js.e}});Object.defineProperty(exports,"createPageBreakRun",{enumerable:true,get:function(){return chunkFVUGBRDD_js.d}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunkFVUGBRDD_js.F}});Object.defineProperty(exports,"findPageBreaks",{enumerable:true,get:function(){return chunkFVUGBRDD_js.o}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunkFVUGBRDD_js.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunkFVUGBRDD_js.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunkFVUGBRDD_js.E}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunkFVUGBRDD_js.m}});Object.defineProperty(exports,"insertHorizontalRule",{enumerable:true,get:function(){return chunkFVUGBRDD_js.h}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.f}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunkFVUGBRDD_js.w}});Object.defineProperty(exports,"isBreakContent",{enumerable:true,get:function(){return chunkFVUGBRDD_js.l}});Object.defineProperty(exports,"isColumnBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.j}});Object.defineProperty(exports,"isLineBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.k}});Object.defineProperty(exports,"isPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.i}});Object.defineProperty(exports,"removePageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.p}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkP7WEP4JU_js.f}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.m}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.l}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkP7WEP4JU_js.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkP7WEP4JU_js.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkP7WEP4JU_js.k}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunk4VUZBV2S_js.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunk4VUZBV2S_js.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.j}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.f}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunk4VUZBV2S_js.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunk4VUZBV2S_js.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunk4VUZBV2S_js.g}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.b}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.c}});Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkKCOGY3V2_js.o}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkPB7VMDDP_js.e}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkPB7VMDDP_js.a}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkPB7VMDDP_js.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkPB7VMDDP_js.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkPB7VMDDP_js.f}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkZJNGMDRE_js.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkZJNGMDRE_js.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkZJNGMDRE_js.a}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkAARNCPWR_js.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkAARNCPWR_js.b}});Object.defineProperty(exports,"canRenderFont",{enumerable:true,get:function(){return chunkKUL2SDYC_js.i}});Object.defineProperty(exports,"getLoadedFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.g}});Object.defineProperty(exports,"isFontLoaded",{enumerable:true,get:function(){return chunkKUL2SDYC_js.e}});Object.defineProperty(exports,"isFontsLoading",{enumerable:true,get:function(){return chunkKUL2SDYC_js.f}});Object.defineProperty(exports,"loadFont",{enumerable:true,get:function(){return chunkKUL2SDYC_js.c}});Object.defineProperty(exports,"loadFontFromBuffer",{enumerable:true,get:function(){return chunkKUL2SDYC_js.j}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.d}});Object.defineProperty(exports,"onFontsLoaded",{enumerable:true,get:function(){return chunkKUL2SDYC_js.h}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkKUL2SDYC_js.n}});Object.defineProperty(exports,"preloadCommonFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.k}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkKUL2SDYC_js.m}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.a}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkBUEMG4NW_js.c}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.c}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkSE5EN2QL_js.e}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkSE5EN2QL_js.k}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.h}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkSE5EN2QL_js.d}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkSE5EN2QL_js.b}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.g}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkSE5EN2QL_js.f}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.a}});exports.NAVIGATION_SHORTCUTS=f;exports.TEMPLATE_DECORATION_STYLES=D;exports.VERSION=fa;exports.createDoubleClickWordSelector=Ei;exports.createTemplatePlugin=le;exports.createTemplateProseMirrorPlugin=A;exports.createTripleClickParagraphSelector=Ri;exports.describeShortcut=m;exports.expandSelectionToWord=Oi;exports.expandSelectionToWordBoundaries=bi;exports.extendSelectionTo=I;exports.findNextWordStart=U;exports.findPreviousWordStart=V;exports.findVisualLineEnd=G;exports.findVisualLineStart=z;exports.findWordAt=Si;exports.findWordBoundaries=S;exports.findWordEnd=Ii;exports.findWordStart=wi;exports.getNavigationShortcutDescriptions=Mi;exports.getSelectionInfo=Ai;exports.getTemplatePluginTags=J;exports.getWordAt=Ti;exports.getWordAtCursor=ki;exports.handleClickForMultiClick=F;exports.handleNavigationKey=Ni;exports.isNavigationKey=Di;exports.isPunctuation=vi;exports.isWhitespace=v;exports.isWhitespaceChar=M;exports.isWordChar=y;exports.isWordCharacter=R;exports.matchesShortcut=Li;exports.moveByWord=$;exports.moveToLineEdge=Z;exports.parseNavigationAction=X;exports.selectParagraphAtCursor=W;exports.selectWordAtCursor=L;exports.selectWordInTextNode=xi;exports.setHoveredElement=C;exports.setSelectedElement=N;exports.setSelectionPosition=w;exports.templatePlugin=qi;exports.templatePluginKey=p;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export{w as DEFAULT_SELECTION_STYLE,j as DocxEditor,a as EditorToolbar,d as ErrorBoundary,c as ErrorProvider,x as HIGH_CONTRAST_SELECTION_STYLE,U as PLUGIN_HOST_STYLES,e as ParseErrorDisplay,V as PluginHost,y as SELECTION_CSS_VARS,f as UnsupportedFeatureWarning,m as ZOOM_PRESETS,P as areSelectionStylesInjected,v as clampZoom,K as clearSelection,Q as createSelectionChangeHandler,p as findNearestZoomPreset,s as formatZoom,S as generateOverlayElements,D as generateSelectionCSS,C as getHighlightRectStyle,B as getMergedSelectionRects,q as getNextZoomPreset,r as getPreviousZoomPreset,F as getSelectedText,H as getSelectionBoundingRect,z as getSelectionRects,h as getUserFriendlyMessage,o as getZoomPresets,E as hasActiveSelection,I as highlightTextRange,N as injectSelectionStyles,g as isParseError,L as isSelectionBackwards,G as isSelectionWithin,u as isZoomPreset,A as mergeAdjacentRects,M as normalizeSelectionDirection,t as parseZoom,O as removeSelectionStyles,k as renderAsync,J as selectRange,l as useAutoSave,T as useClipboard,b as useErrorNotifications,R as useSelectionHighlight,i as useTableSelection,n as useWheelZoom}from'./chunk-A2DPBJHE.mjs';import'./chunk-CQR767EJ.mjs';export{k as ColorPicker,a as ContextMenu,V as InsertImageDialog,da as InsertSymbolDialog,O as InsertTableDialog,qa as KeyboardShortcutsDialog,B as LoadingIndicator,ka as PasteSpecialDialog,l as PrintButton,m as PrintStyles,g as ResponsePreview,J as ResponsiveToolbar,K as ResponsiveToolbarGroup,ca as SYMBOL_CATEGORIES,u as TableInsertButtons,t as TableMergeButton,v as UnsavedIndicator,_ as calculateFitDimensions,S as clampTableConfig,A as createChangeTracker,Q as createDefaultTableConfig,j as createErrorResponse,i as createMockResponse,L as createToolbarItem,M as createToolbarItems,$ as dataUrlToBlob,H as delay,ba as formatFileSize,r as formatPrintPageRange,xa as formatShortcutKeys,T as formatTableDimensions,c as getActionShortcut,f as getAllActions,wa as getAllCategories,z as getAllIndicatorPositions,y as getAllIndicatorVariants,G as getAllLoadingSizes,F as getAllLoadingVariants,na as getAllPasteOptions,va as getCategoryLabel,ua as getCommonShortcuts,e as getDefaultActions,oa as getDefaultPasteOption,p as getDefaultPrintOptions,sa as getDefaultShortcuts,Z as getImageAcceptString,aa as getImageDimensions,E as getLoadingVariantLabel,ma as getPasteOption,N as getRecommendedPriority,ta as getShortcutsByCategory,Y as getSupportedImageExtensions,fa as getSymbolCategories,ha as getSymbolUnicodeInfo,ga as getSymbolsByCategory,U as getTablePresets,x as getVariantLabel,d as isActionAvailable,pa as isPasteSpecialShortcut,s as isPrintSupported,X as isValidImageFile,R as isValidTableConfig,o as openPrintWindow,q as parsePageRange,ia as searchSymbols,ja as symbolFromCodePoint,n as triggerPrint,b as useContextMenu,W as useInsertImageDialog,ea as useInsertSymbolDialog,P as useInsertTableDialog,ra as useKeyboardShortcutsDialog,C as useLoading,D as useLoadingOperations,la as usePasteSpecial,h as useResponsePreview,I as useResponsiveToolbar,w as useUnsavedChanges}from'./chunk-KCUPCJFL.mjs';export{k as AdvancedColorPicker,l as AlignmentButtons,K as CLIPBOARD_TYPES,g as FontPicker,j as FontSizePicker,y as FormattingBar,E as HorizontalRuler,J as INTERNAL_CLIPBOARD_TYPE,o as LineSpacingPicker,m as ListButtons,p as StylePicker,s as TableBorderColorPicker,r as TableBorderPicker,t as TableBorderWidthPicker,u as TableCellFillPicker,v as TableMoreDropdown,da as TableToolbar,Z as TextContextMenu,D as Toolbar,A as ToolbarButton,B as ToolbarGroup,C as ToolbarSeparator,q as ZoomControl,ja as addColumn,ha as addRow,W as cleanWordHtml,N as copyParagraphs,M as copyRuns,Y as createClipboardHandlers,n as createDefaultListState,ea as createTableContext,ka as deleteColumn,ia as deleteRow,ga as getCellAt,fa as getColumnCount,ba as getDefaultTextContextMenuItems,H as getMarginInUnits,G as getRulerDimensions,$ as getTextActionLabel,aa as getTextActionShortcut,S as handlePasteEvent,X as htmlToRuns,V as isEditorHtml,ca as isTextActionAvailable,U as isWordHtml,la as mergeCells,P as paragraphsToClipboardContent,T as parseClipboardHtml,I as parseMarginFromUnits,F as positionToMargin,R as readFromClipboard,O as runsToClipboardContent,ma as splitCell,_ as useTextContextMenu,Q as writeToClipboard}from'./chunk-7HZRJTOL.mjs';export{n as FindReplaceDialog,a as createDefaultFindOptions,c as createSearchPattern,b as escapeRegexString,d as findAllMatches,j as findInDocument,k as findInParagraph,i as getDefaultHighlightOptions,g as getMatchCountText,h as isEmptySearch,e as replaceAllInContent,f as replaceFirstInContent,l as scrollToMatch,m as useFindReplace}from'./chunk-XWBCP563.mjs';export{d as HyperlinkDialog,m as useHyperlinkDialog}from'./chunk-AZRYS2WF.mjs';export{x as TABLE_DATA_ATTRIBUTES,n as countPageBreaks,b as createColumnBreak,g as createHorizontalRule,c as createLineBreak,a as createPageBreak,e as createPageBreakParagraph,d as createPageBreakRun,F as createSelectionFromDOM,o as findPageBreaks,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,m as hasPageBreakBefore,h as insertHorizontalRule,f as insertPageBreak,w as isAutoSaveSupported,l as isBreakContent,j as isColumnBreak,k as isLineBreak,i as isPageBreak,p as removePageBreak}from'./chunk-QTSXJRP6.mjs';import'./chunk-6WPRCJ5A.mjs';export{f as DocumentAgent,m as buildExtendedSelectionContext,l as buildSelectionContext,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary}from'./chunk-6CSL7T4S.mjs';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-QAZ4233N.mjs';export{o as docxtemplaterPlugin}from'./chunk-FFNGY4AB.mjs';export{e as getTemplateTags,a as processTemplate,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-DLVLK5FT.mjs';export{b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties}from'./chunk-TQATISQV.mjs';export{a as executeCommand,b as executeCommands}from'./chunk-M5F4SK3W.mjs';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-OBTGZZLM.mjs';export{a as PluginRegistry,b as pluginRegistry,c as registerPlugins}from'./chunk-W53SI3XW.mjs';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-LYBG4YI7.mjs';import'./chunk-WOHFANC5.mjs';import'./chunk-TAUMSKRE.mjs';import ae,{useState,useCallback,useMemo,useEffect}from'react';import {PluginKey,TextSelection,Plugin}from'prosemirror-state';import {DecorationSet,Decoration}from'prosemirror-view';import {jsx,jsxs}from'react/jsx-runtime';var yi=/[\p{L}\p{N}''\-]/u,hi=/\s/;function R(e){return !e||e.length===0?false:yi.test(e)}function v(e){return !e||e.length===0?false:hi.test(e)}function S(e,t){if(!e||e.length===0)return [0,0];t=Math.max(0,Math.min(t,e.length-1));let o=e[t];if(v(o)){let r=t,n=t;for(;r>0&&v(e[r-1]);)r--;for(;n<e.length&&v(e[n]);)n++;return [r,n]}if(R(o)){let r=t,n=t;for(;r>0&&R(e[r-1]);)r--;for(;n<e.length&&R(e[n]);)n++;return [r,n]}return [t,t+1]}function Ti(e,t){let[o,r]=S(e,t);return e.slice(o,r)}function Si(e,t){let[o,r]=S(e,t);return {word:e.slice(o,r),startIndex:o,endIndex:r}}function L(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0),o=t.startContainer;if(o.nodeType===Node.TEXT_NODE){let r=o.textContent||"",n=t.startOffset,[i,a]=S(r,n);if(a>i)return t.setStart(o,i),t.setEnd(o,a),e.removeAllRanges(),e.addRange(t),true}if(o.nodeType===Node.ELEMENT_NODE){let r=o,n=B(r);if(n.length>0){let i=t.startOffset,a=null,l=i;if(i<r.childNodes.length){let s=r.childNodes[i];if(s.nodeType===Node.TEXT_NODE)a=s,l=0;else if(s instanceof Element){let c=B(s);c.length>0&&(a=c[0],l=0);}}if(!a&&n.length>0&&(a=n[0],l=0),a){let s=a.textContent||"",[c,d]=S(s,l);if(d>c){let g=document.createRange();return g.setStart(a,c),g.setEnd(a,d),e.removeAllRanges(),e.addRange(g),true}}}}return false}function xi(e,t){let o=window.getSelection();if(!o)return false;let r=e.textContent||"",[n,i]=S(r,t);if(i>n){let a=document.createRange();return a.setStart(e,n),a.setEnd(e,i),o.removeAllRanges(),o.addRange(a),true}return false}function bi(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0);if(t.collapsed)return L();let o=t.startContainer,r=t.endContainer,n=t.startOffset,i=t.endOffset;if(o.nodeType===Node.TEXT_NODE){let a=o.textContent||"",[l]=S(a,t.startOffset);n=l;}if(r.nodeType===Node.TEXT_NODE){let a=r.textContent||"",l=Math.max(0,t.endOffset-1),[,s]=S(a,l);i=s;}try{return t.setStart(o,n),t.setEnd(r,i),e.removeAllRanges(),e.addRange(t),!0}catch(a){return console.warn("Could not expand selection to word boundaries:",a),false}}function W(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.getRangeAt(0).commonAncestorContainer,r=Pi(o);if(r){let n=document.createRange();return n.selectNodeContents(r),e.removeAllRanges(),e.addRange(n),true}return false}function Pi(e){if(!e)return null;let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute("data-paragraph-index"))return t;t=t.parentNode;}return null}function B(e){let t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=o.nextNode();)r.nodeType===Node.TEXT_NODE&&t.push(r);return t}var O=0,x=null,k=null,Ci=500;function _(){O=0,k=null,x&&(clearTimeout(x),x=null);}function F(e){return e.target!==k&&_(),O++,k=e.target,x&&clearTimeout(x),x=setTimeout(_,Ci),Math.min(O,3)}function Ei(){return e=>{e.ctrlKey||e.metaKey||e.altKey||L();}}function Ri(){return e=>{if(F(e)===3){if(e.ctrlKey||e.metaKey||e.altKey)return;W();}}}function y(e){return e?/[\p{L}\p{N}_]/u.test(e):false}function M(e){return e?/\s/.test(e):false}function vi(e){return e?/[\p{P}]/u.test(e):false}function wi(e,t){if(t<=0)return 0;t>e.length&&(t=e.length);let o=t;for(;o>0&&M(e[o-1]);)o--;if(o===0)return 0;for(;o>0&&y(e[o-1]);)o--;return o}function Ii(e,t){if(t>=e.length)return e.length;t<0&&(t=0);let o=t;for(;o<e.length&&y(e[o]);)o++;for(;o<e.length&&M(e[o]);)o++;return o}function U(e,t){if(t>=e.length)return e.length;let o=t;for(;o<e.length&&y(e[o]);)o++;for(;o<e.length&&!y(e[o]);)o++;return o}function V(e,t){if(t<=0)return 0;let o=t;for(;o>0&&!y(e[o-1]);)o--;for(;o>0&&y(e[o-1]);)o--;return o}function z(e,t){if(!window.getSelection())return null;let r=document.createRange();if(e.nodeType===Node.TEXT_NODE){r.setStart(e,Math.min(t,e.textContent?.length||0)),r.collapse(true);let i=r.getBoundingClientRect().top,a=0,l=t;for(;a<l;){let s=Math.floor((a+l)/2);r.setStart(e,s),r.collapse(true);let c=r.getBoundingClientRect();Math.abs(c.top-i)<2?l=s:a=s+1;}return {node:e,offset:a}}return null}function G(e,t){if(!window.getSelection())return null;let r=e.textContent?.length||0,n=document.createRange();if(e.nodeType===Node.TEXT_NODE){n.setStart(e,Math.min(t,r)),n.collapse(true);let a=n.getBoundingClientRect().top,l=t,s=r;for(;l<s;){let c=Math.ceil((l+s)/2);n.setStart(e,c),n.collapse(true);let d=n.getBoundingClientRect();Math.abs(d.top-a)<2?l=c:s=c-1;}return {node:e,offset:l}}return null}function Ai(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let t=e.getRangeAt(0);return {node:t.startContainer,offset:t.startOffset,anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,text:e.toString()}}function w(e,t){let o=window.getSelection();if(!o)return;let r=document.createRange(),n=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;r.setStart(e,Math.min(t,n)),r.collapse(true),o.removeAllRanges(),o.addRange(r);}function I(e,t){let o=window.getSelection();if(!(!o||!o.anchorNode))try{o.extend(e,Math.min(t,e.textContent?.length||0));}catch{let r=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;o.setBaseAndExtent(o.anchorNode,o.anchorOffset,e,Math.min(t,r));}}function $(e,t=false){let o=window.getSelection();if(!o||o.rangeCount===0)return false;let r=o.focusNode;if(!r||r.nodeType!==Node.TEXT_NODE)return false;let n=r.textContent||"",i=o.focusOffset,a;return e==="left"?a=V(n,i):a=U(n,i),t?I(r,a):w(r,a),true}function Z(e,t=false){let o=window.getSelection();if(!o||o.rangeCount===0)return false;let r=o.focusNode;if(!r)return false;if(r.nodeType===Node.TEXT_NODE){let a=e==="start"?z(r,o.focusOffset):G(r,o.focusOffset);if(a)return t?I(a.node,a.offset):w(a.node,a.offset),true}let n=r.textContent||"",i=e==="start"?0:n.length;return t?I(r,i):w(r,i),true}function X(e){let{key:t,ctrlKey:o,metaKey:r,shiftKey:n,altKey:i}=e,a=o||r;switch(t){case "ArrowLeft":if(a)return {direction:"left",unit:"word",extend:n};break;case "ArrowRight":if(a)return {direction:"right",unit:"word",extend:n};break;case "Home":return a?{direction:"left",unit:"document",extend:n}:{direction:"left",unit:"line",extend:n};case "End":return a?{direction:"right",unit:"document",extend:n}:{direction:"right",unit:"line",extend:n}}return null}function Ni(e,t){let o=X(e);if(!o)return false;switch(o.unit){case "word":if((o.direction==="left"||o.direction==="right")&&$(o.direction,o.extend))return e.preventDefault(),true;break;case "line":let r=o.direction==="left"?"start":"end";if(Z(r,o.extend))return e.preventDefault(),true;break;case "document":if(o.direction==="left"&&t?.onDocumentStart)return e.preventDefault(),t.onDocumentStart(),true;if(o.direction==="right"&&t?.onDocumentEnd)return e.preventDefault(),t.onDocumentEnd(),true;break}return false}function Di(e){let{key:t,ctrlKey:o,metaKey:r}=e;return !!((o||r)&&(t==="ArrowLeft"||t==="ArrowRight")||t==="Home"||t==="End")}function Oi(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.focusNode;if(!t||t.nodeType!==Node.TEXT_NODE)return false;let o=t.textContent||"",r=e.focusOffset,n=r,i=r;for(;n>0&&y(o[n-1]);)n--;for(;i<o.length&&y(o[i]);)i++;if(n===i)return false;let a=document.createRange();return a.setStart(t,n),a.setEnd(t,i),e.removeAllRanges(),e.addRange(a),true}function ki(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let t=e.focusNode;if(!t||t.nodeType!==Node.TEXT_NODE)return null;let o=t.textContent||"",r=e.focusOffset,n=r,i=r;for(;n>0&&y(o[n-1]);)n--;for(;i<o.length&&y(o[i]);)i++;return n===i?null:o.slice(n,i)}function Li(e,t){let o=e.ctrlKey||e.metaKey,r=t.ctrlKey||t.metaKey;return e.key.toLowerCase()===t.key.toLowerCase()&&o===!!r&&e.shiftKey===!!t.shiftKey&&e.altKey===!!t.altKey}var f={wordLeft:{key:"ArrowLeft",ctrlKey:true},wordRight:{key:"ArrowRight",ctrlKey:true},selectWordLeft:{key:"ArrowLeft",ctrlKey:true,shiftKey:true},selectWordRight:{key:"ArrowRight",ctrlKey:true,shiftKey:true},lineStart:{key:"Home"},lineEnd:{key:"End"},selectToLineStart:{key:"Home",shiftKey:true},selectToLineEnd:{key:"End",shiftKey:true},documentStart:{key:"Home",ctrlKey:true},documentEnd:{key:"End",ctrlKey:true},selectToDocumentStart:{key:"Home",ctrlKey:true,shiftKey:true},selectToDocumentEnd:{key:"End",ctrlKey:true,shiftKey:true}};function m(e){let t=[];if(e.ctrlKey||e.metaKey){let r=typeof navigator<"u"&&/Mac/i.test(navigator.platform);t.push(r?"\u2318":"Ctrl");}e.shiftKey&&t.push("Shift"),e.altKey&&t.push("Alt");let o=e.key;return o==="ArrowLeft"?o="\u2190":o==="ArrowRight"?o="\u2192":o==="ArrowUp"?o="\u2191":o==="ArrowDown"&&(o="\u2193"),t.push(o),t.join("+")}function Mi(){return [{action:"Move by word (left)",shortcut:m(f.wordLeft)},{action:"Move by word (right)",shortcut:m(f.wordRight)},{action:"Select word (left)",shortcut:m(f.selectWordLeft)},{action:"Select word (right)",shortcut:m(f.selectWordRight)},{action:"Go to line start",shortcut:m(f.lineStart)},{action:"Go to line end",shortcut:m(f.lineEnd)},{action:"Select to line start",shortcut:m(f.selectToLineStart)},{action:"Select to line end",shortcut:m(f.selectToLineEnd)},{action:"Go to document start",shortcut:m(f.documentStart)},{action:"Go to document end",shortcut:m(f.documentEnd)},{action:"Select to document start",shortcut:m(f.selectToDocumentStart)},{action:"Select to document end",shortcut:m(f.selectToDocumentEnd)}]}var Y=/\{([#/^@]?)([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)\}/g,p=new PluginKey("template");function _i(e,t,o){return `${e}:${t}:${o}`}function q(e){let t=[];e.descendants((s,c)=>(s.isText&&s.text&&t.push({text:s.text,pos:c}),true));let o="",r=[];for(let s of t){for(let c=0;c<s.text.length;c++)r.push(s.pos+c);o+=s.text;}let n=[],i=[],a=new Map,l;for(Y.lastIndex=0;(l=Y.exec(o))!==null;){let[s,c,d]=l,g=r[l.index],h=r[l.index+s.length-1]+1,u;c==="#"?u="sectionStart":c==="/"?u="sectionEnd":c==="^"?u="invertedStart":c==="@"?u="raw":u="variable";let T=`${u}:${d}`,H=a.get(T)??0;a.set(T,H+1);let E={id:_i(u,d,H),type:u,name:d,rawTag:s,from:g,to:h};if(u==="sectionStart"||u==="invertedStart")E.nestedVars=[],i.push(E);else if(u==="sectionEnd"){for(let P=i.length-1;P>=0;P--)if(i[P].name===d){i.splice(P,1);break}}else u==="variable"&&i.length>0&&(i[i.length-1].nestedVars?.push(d),E.insideSection=true);n.push(E);}return n}function Wi(e){switch(e){case "sectionStart":case "sectionEnd":return "#3b82f6";case "invertedStart":return "#8b5cf6";case "raw":return "#ef4444";default:return "#f59e0b"}}function K(e,t,o,r){let n=[];for(let i of t){let a=i.id===o,l=i.id===r,s=Wi(i.type),c=["docx-template-tag"];a&&c.push("hovered"),l&&c.push("selected"),n.push(Decoration.inline(i.from,i.to,{class:c.join(" "),"data-tag-id":i.id,style:`background-color: ${s}22; border-radius: 2px;`}));}return DecorationSet.create(e,n)}function Fi(e,t){if(e.length!==t.length)return false;for(let o=0;o<e.length;o++)if(e[o].id!==t[o].id)return false;return true}function A(){return new Plugin({key:p,state:{init(e,t){let o=q(t.doc);return {tags:o,decorations:K(t.doc,o)}},apply(e,t,o,r){if(e.docChanged){let i=q(r.doc),a=Fi(t.tags,i);return {tags:i,decorations:a?t.decorations.map(e.mapping,e.doc):K(r.doc,i,t.hoveredId,t.selectedId),hoveredId:t.hoveredId,selectedId:t.selectedId}}let n=e.getMeta(p);if(n){let i=n.hoveredId??t.hoveredId,a=n.selectedId??t.selectedId;return {...t,hoveredId:i,selectedId:a,decorations:K(r.doc,t.tags,i,a)}}return {...t,decorations:t.decorations.map(e.mapping,e.doc)}}},props:{decorations(e){return p.getState(e)?.decorations??DecorationSet.empty},handleClick(e,t){let r=(p.getState(e.state)?.tags??[]).find(i=>t>=i.from&&t<=i.to);return r?(e.dispatch(e.state.tr.setMeta(p,{selectedId:r.id})),true):(p.getState(e.state)?.selectedId&&e.dispatch(e.state.tr.setMeta(p,{selectedId:void 0})),false)},handleDOMEvents:{mouseover(e,t){let r=t.target.closest?.("[data-tag-id]")?.getAttribute("data-tag-id")||void 0,n=p.getState(e.state)?.hoveredId;return r!==n&&e.dispatch(e.state.tr.setMeta(p,{hoveredId:r})),false},mouseout(e,t){return t.relatedTarget?.closest?.("[data-tag-id]")||p.getState(e.state)?.hoveredId&&e.dispatch(e.state.tr.setMeta(p,{hoveredId:void 0})),false}}}})}function J(e){return p.getState(e)?.tags??[]}function C(e,t){e.dispatch(e.state.tr.setMeta(p,{hoveredId:t}));}function N(e,t){e.dispatch(e.state.tr.setMeta(p,{selectedId:t}));}var D=`
|
|
1
|
+
export{w as DEFAULT_SELECTION_STYLE,j as DocxEditor,a as EditorToolbar,d as ErrorBoundary,c as ErrorProvider,x as HIGH_CONTRAST_SELECTION_STYLE,U as PLUGIN_HOST_STYLES,e as ParseErrorDisplay,V as PluginHost,y as SELECTION_CSS_VARS,f as UnsupportedFeatureWarning,m as ZOOM_PRESETS,P as areSelectionStylesInjected,v as clampZoom,K as clearSelection,Q as createSelectionChangeHandler,p as findNearestZoomPreset,s as formatZoom,S as generateOverlayElements,D as generateSelectionCSS,C as getHighlightRectStyle,B as getMergedSelectionRects,q as getNextZoomPreset,r as getPreviousZoomPreset,F as getSelectedText,H as getSelectionBoundingRect,z as getSelectionRects,h as getUserFriendlyMessage,o as getZoomPresets,E as hasActiveSelection,I as highlightTextRange,N as injectSelectionStyles,g as isParseError,L as isSelectionBackwards,G as isSelectionWithin,u as isZoomPreset,A as mergeAdjacentRects,M as normalizeSelectionDirection,t as parseZoom,O as removeSelectionStyles,k as renderAsync,J as selectRange,l as useAutoSave,T as useClipboard,b as useErrorNotifications,R as useSelectionHighlight,i as useTableSelection,n as useWheelZoom}from'./chunk-EEV6TUOX.mjs';import'./chunk-2HDYCD2Q.mjs';export{k as ColorPicker,a as ContextMenu,V as InsertImageDialog,da as InsertSymbolDialog,O as InsertTableDialog,qa as KeyboardShortcutsDialog,B as LoadingIndicator,ka as PasteSpecialDialog,l as PrintButton,m as PrintStyles,g as ResponsePreview,J as ResponsiveToolbar,K as ResponsiveToolbarGroup,ca as SYMBOL_CATEGORIES,u as TableInsertButtons,t as TableMergeButton,v as UnsavedIndicator,_ as calculateFitDimensions,S as clampTableConfig,A as createChangeTracker,Q as createDefaultTableConfig,j as createErrorResponse,i as createMockResponse,L as createToolbarItem,M as createToolbarItems,$ as dataUrlToBlob,H as delay,ba as formatFileSize,r as formatPrintPageRange,xa as formatShortcutKeys,T as formatTableDimensions,c as getActionShortcut,f as getAllActions,wa as getAllCategories,z as getAllIndicatorPositions,y as getAllIndicatorVariants,G as getAllLoadingSizes,F as getAllLoadingVariants,na as getAllPasteOptions,va as getCategoryLabel,ua as getCommonShortcuts,e as getDefaultActions,oa as getDefaultPasteOption,p as getDefaultPrintOptions,sa as getDefaultShortcuts,Z as getImageAcceptString,aa as getImageDimensions,E as getLoadingVariantLabel,ma as getPasteOption,N as getRecommendedPriority,ta as getShortcutsByCategory,Y as getSupportedImageExtensions,fa as getSymbolCategories,ha as getSymbolUnicodeInfo,ga as getSymbolsByCategory,U as getTablePresets,x as getVariantLabel,d as isActionAvailable,pa as isPasteSpecialShortcut,s as isPrintSupported,X as isValidImageFile,R as isValidTableConfig,o as openPrintWindow,q as parsePageRange,ia as searchSymbols,ja as symbolFromCodePoint,n as triggerPrint,b as useContextMenu,W as useInsertImageDialog,ea as useInsertSymbolDialog,P as useInsertTableDialog,ra as useKeyboardShortcutsDialog,C as useLoading,D as useLoadingOperations,la as usePasteSpecial,h as useResponsePreview,I as useResponsiveToolbar,w as useUnsavedChanges}from'./chunk-6AJI5NPH.mjs';export{k as AdvancedColorPicker,l as AlignmentButtons,K as CLIPBOARD_TYPES,g as FontPicker,j as FontSizePicker,y as FormattingBar,E as HorizontalRuler,J as INTERNAL_CLIPBOARD_TYPE,o as LineSpacingPicker,m as ListButtons,p as StylePicker,s as TableBorderColorPicker,r as TableBorderPicker,t as TableBorderWidthPicker,u as TableCellFillPicker,v as TableMoreDropdown,da as TableToolbar,Z as TextContextMenu,D as Toolbar,A as ToolbarButton,B as ToolbarGroup,C as ToolbarSeparator,q as ZoomControl,ja as addColumn,ha as addRow,W as cleanWordHtml,N as copyParagraphs,M as copyRuns,Y as createClipboardHandlers,n as createDefaultListState,ea as createTableContext,ka as deleteColumn,ia as deleteRow,ga as getCellAt,fa as getColumnCount,ba as getDefaultTextContextMenuItems,H as getMarginInUnits,G as getRulerDimensions,$ as getTextActionLabel,aa as getTextActionShortcut,S as handlePasteEvent,X as htmlToRuns,V as isEditorHtml,ca as isTextActionAvailable,U as isWordHtml,la as mergeCells,P as paragraphsToClipboardContent,T as parseClipboardHtml,I as parseMarginFromUnits,F as positionToMargin,R as readFromClipboard,O as runsToClipboardContent,ma as splitCell,_ as useTextContextMenu,Q as writeToClipboard}from'./chunk-HWWZOJMR.mjs';export{n as FindReplaceDialog,a as createDefaultFindOptions,c as createSearchPattern,b as escapeRegexString,d as findAllMatches,j as findInDocument,k as findInParagraph,i as getDefaultHighlightOptions,g as getMatchCountText,h as isEmptySearch,e as replaceAllInContent,f as replaceFirstInContent,l as scrollToMatch,m as useFindReplace}from'./chunk-XWBCP563.mjs';export{d as HyperlinkDialog,m as useHyperlinkDialog}from'./chunk-AZRYS2WF.mjs';export{x as TABLE_DATA_ATTRIBUTES,n as countPageBreaks,b as createColumnBreak,g as createHorizontalRule,c as createLineBreak,a as createPageBreak,e as createPageBreakParagraph,d as createPageBreakRun,F as createSelectionFromDOM,o as findPageBreaks,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,m as hasPageBreakBefore,h as insertHorizontalRule,f as insertPageBreak,w as isAutoSaveSupported,l as isBreakContent,j as isColumnBreak,k as isLineBreak,i as isPageBreak,p as removePageBreak}from'./chunk-QTSXJRP6.mjs';import'./chunk-6WPRCJ5A.mjs';export{f as DocumentAgent,m as buildExtendedSelectionContext,l as buildSelectionContext,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary}from'./chunk-7QTNB64A.mjs';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-QAZ4233N.mjs';export{o as docxtemplaterPlugin}from'./chunk-RTFUE3KK.mjs';export{e as getTemplateTags,a as processTemplate,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-DLVLK5FT.mjs';export{b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties}from'./chunk-37SLIJPH.mjs';export{a as executeCommand,b as executeCommands}from'./chunk-M5F4SK3W.mjs';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-7MGFEP2R.mjs';export{a as PluginRegistry,b as pluginRegistry,c as registerPlugins}from'./chunk-W53SI3XW.mjs';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-LYBG4YI7.mjs';import'./chunk-WOHFANC5.mjs';import'./chunk-TAUMSKRE.mjs';import ae,{useState,useCallback,useMemo,useEffect}from'react';import {PluginKey,TextSelection,Plugin}from'prosemirror-state';import {DecorationSet,Decoration}from'prosemirror-view';import {jsx,jsxs}from'react/jsx-runtime';var yi=/[\p{L}\p{N}''\-]/u,hi=/\s/;function R(e){return !e||e.length===0?false:yi.test(e)}function v(e){return !e||e.length===0?false:hi.test(e)}function S(e,t){if(!e||e.length===0)return [0,0];t=Math.max(0,Math.min(t,e.length-1));let o=e[t];if(v(o)){let r=t,n=t;for(;r>0&&v(e[r-1]);)r--;for(;n<e.length&&v(e[n]);)n++;return [r,n]}if(R(o)){let r=t,n=t;for(;r>0&&R(e[r-1]);)r--;for(;n<e.length&&R(e[n]);)n++;return [r,n]}return [t,t+1]}function Ti(e,t){let[o,r]=S(e,t);return e.slice(o,r)}function Si(e,t){let[o,r]=S(e,t);return {word:e.slice(o,r),startIndex:o,endIndex:r}}function L(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0),o=t.startContainer;if(o.nodeType===Node.TEXT_NODE){let r=o.textContent||"",n=t.startOffset,[i,a]=S(r,n);if(a>i)return t.setStart(o,i),t.setEnd(o,a),e.removeAllRanges(),e.addRange(t),true}if(o.nodeType===Node.ELEMENT_NODE){let r=o,n=B(r);if(n.length>0){let i=t.startOffset,a=null,l=i;if(i<r.childNodes.length){let s=r.childNodes[i];if(s.nodeType===Node.TEXT_NODE)a=s,l=0;else if(s instanceof Element){let c=B(s);c.length>0&&(a=c[0],l=0);}}if(!a&&n.length>0&&(a=n[0],l=0),a){let s=a.textContent||"",[c,d]=S(s,l);if(d>c){let g=document.createRange();return g.setStart(a,c),g.setEnd(a,d),e.removeAllRanges(),e.addRange(g),true}}}}return false}function xi(e,t){let o=window.getSelection();if(!o)return false;let r=e.textContent||"",[n,i]=S(r,t);if(i>n){let a=document.createRange();return a.setStart(e,n),a.setEnd(e,i),o.removeAllRanges(),o.addRange(a),true}return false}function bi(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.getRangeAt(0);if(t.collapsed)return L();let o=t.startContainer,r=t.endContainer,n=t.startOffset,i=t.endOffset;if(o.nodeType===Node.TEXT_NODE){let a=o.textContent||"",[l]=S(a,t.startOffset);n=l;}if(r.nodeType===Node.TEXT_NODE){let a=r.textContent||"",l=Math.max(0,t.endOffset-1),[,s]=S(a,l);i=s;}try{return t.setStart(o,n),t.setEnd(r,i),e.removeAllRanges(),e.addRange(t),!0}catch(a){return console.warn("Could not expand selection to word boundaries:",a),false}}function W(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.getRangeAt(0).commonAncestorContainer,r=Pi(o);if(r){let n=document.createRange();return n.selectNodeContents(r),e.removeAllRanges(),e.addRange(n),true}return false}function Pi(e){if(!e)return null;let t=e;for(;t;){if(t instanceof Element&&t.hasAttribute("data-paragraph-index"))return t;t=t.parentNode;}return null}function B(e){let t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),r;for(;r=o.nextNode();)r.nodeType===Node.TEXT_NODE&&t.push(r);return t}var O=0,x=null,k=null,Ci=500;function _(){O=0,k=null,x&&(clearTimeout(x),x=null);}function F(e){return e.target!==k&&_(),O++,k=e.target,x&&clearTimeout(x),x=setTimeout(_,Ci),Math.min(O,3)}function Ei(){return e=>{e.ctrlKey||e.metaKey||e.altKey||L();}}function Ri(){return e=>{if(F(e)===3){if(e.ctrlKey||e.metaKey||e.altKey)return;W();}}}function y(e){return e?/[\p{L}\p{N}_]/u.test(e):false}function M(e){return e?/\s/.test(e):false}function vi(e){return e?/[\p{P}]/u.test(e):false}function wi(e,t){if(t<=0)return 0;t>e.length&&(t=e.length);let o=t;for(;o>0&&M(e[o-1]);)o--;if(o===0)return 0;for(;o>0&&y(e[o-1]);)o--;return o}function Ii(e,t){if(t>=e.length)return e.length;t<0&&(t=0);let o=t;for(;o<e.length&&y(e[o]);)o++;for(;o<e.length&&M(e[o]);)o++;return o}function U(e,t){if(t>=e.length)return e.length;let o=t;for(;o<e.length&&y(e[o]);)o++;for(;o<e.length&&!y(e[o]);)o++;return o}function V(e,t){if(t<=0)return 0;let o=t;for(;o>0&&!y(e[o-1]);)o--;for(;o>0&&y(e[o-1]);)o--;return o}function z(e,t){if(!window.getSelection())return null;let r=document.createRange();if(e.nodeType===Node.TEXT_NODE){r.setStart(e,Math.min(t,e.textContent?.length||0)),r.collapse(true);let i=r.getBoundingClientRect().top,a=0,l=t;for(;a<l;){let s=Math.floor((a+l)/2);r.setStart(e,s),r.collapse(true);let c=r.getBoundingClientRect();Math.abs(c.top-i)<2?l=s:a=s+1;}return {node:e,offset:a}}return null}function G(e,t){if(!window.getSelection())return null;let r=e.textContent?.length||0,n=document.createRange();if(e.nodeType===Node.TEXT_NODE){n.setStart(e,Math.min(t,r)),n.collapse(true);let a=n.getBoundingClientRect().top,l=t,s=r;for(;l<s;){let c=Math.ceil((l+s)/2);n.setStart(e,c),n.collapse(true);let d=n.getBoundingClientRect();Math.abs(d.top-a)<2?l=c:s=c-1;}return {node:e,offset:l}}return null}function Ai(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let t=e.getRangeAt(0);return {node:t.startContainer,offset:t.startOffset,anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,text:e.toString()}}function w(e,t){let o=window.getSelection();if(!o)return;let r=document.createRange(),n=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;r.setStart(e,Math.min(t,n)),r.collapse(true),o.removeAllRanges(),o.addRange(r);}function I(e,t){let o=window.getSelection();if(!(!o||!o.anchorNode))try{o.extend(e,Math.min(t,e.textContent?.length||0));}catch{let r=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;o.setBaseAndExtent(o.anchorNode,o.anchorOffset,e,Math.min(t,r));}}function $(e,t=false){let o=window.getSelection();if(!o||o.rangeCount===0)return false;let r=o.focusNode;if(!r||r.nodeType!==Node.TEXT_NODE)return false;let n=r.textContent||"",i=o.focusOffset,a;return e==="left"?a=V(n,i):a=U(n,i),t?I(r,a):w(r,a),true}function Z(e,t=false){let o=window.getSelection();if(!o||o.rangeCount===0)return false;let r=o.focusNode;if(!r)return false;if(r.nodeType===Node.TEXT_NODE){let a=e==="start"?z(r,o.focusOffset):G(r,o.focusOffset);if(a)return t?I(a.node,a.offset):w(a.node,a.offset),true}let n=r.textContent||"",i=e==="start"?0:n.length;return t?I(r,i):w(r,i),true}function X(e){let{key:t,ctrlKey:o,metaKey:r,shiftKey:n,altKey:i}=e,a=o||r;switch(t){case "ArrowLeft":if(a)return {direction:"left",unit:"word",extend:n};break;case "ArrowRight":if(a)return {direction:"right",unit:"word",extend:n};break;case "Home":return a?{direction:"left",unit:"document",extend:n}:{direction:"left",unit:"line",extend:n};case "End":return a?{direction:"right",unit:"document",extend:n}:{direction:"right",unit:"line",extend:n}}return null}function Ni(e,t){let o=X(e);if(!o)return false;switch(o.unit){case "word":if((o.direction==="left"||o.direction==="right")&&$(o.direction,o.extend))return e.preventDefault(),true;break;case "line":let r=o.direction==="left"?"start":"end";if(Z(r,o.extend))return e.preventDefault(),true;break;case "document":if(o.direction==="left"&&t?.onDocumentStart)return e.preventDefault(),t.onDocumentStart(),true;if(o.direction==="right"&&t?.onDocumentEnd)return e.preventDefault(),t.onDocumentEnd(),true;break}return false}function Di(e){let{key:t,ctrlKey:o,metaKey:r}=e;return !!((o||r)&&(t==="ArrowLeft"||t==="ArrowRight")||t==="Home"||t==="End")}function Oi(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let t=e.focusNode;if(!t||t.nodeType!==Node.TEXT_NODE)return false;let o=t.textContent||"",r=e.focusOffset,n=r,i=r;for(;n>0&&y(o[n-1]);)n--;for(;i<o.length&&y(o[i]);)i++;if(n===i)return false;let a=document.createRange();return a.setStart(t,n),a.setEnd(t,i),e.removeAllRanges(),e.addRange(a),true}function ki(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let t=e.focusNode;if(!t||t.nodeType!==Node.TEXT_NODE)return null;let o=t.textContent||"",r=e.focusOffset,n=r,i=r;for(;n>0&&y(o[n-1]);)n--;for(;i<o.length&&y(o[i]);)i++;return n===i?null:o.slice(n,i)}function Li(e,t){let o=e.ctrlKey||e.metaKey,r=t.ctrlKey||t.metaKey;return e.key.toLowerCase()===t.key.toLowerCase()&&o===!!r&&e.shiftKey===!!t.shiftKey&&e.altKey===!!t.altKey}var f={wordLeft:{key:"ArrowLeft",ctrlKey:true},wordRight:{key:"ArrowRight",ctrlKey:true},selectWordLeft:{key:"ArrowLeft",ctrlKey:true,shiftKey:true},selectWordRight:{key:"ArrowRight",ctrlKey:true,shiftKey:true},lineStart:{key:"Home"},lineEnd:{key:"End"},selectToLineStart:{key:"Home",shiftKey:true},selectToLineEnd:{key:"End",shiftKey:true},documentStart:{key:"Home",ctrlKey:true},documentEnd:{key:"End",ctrlKey:true},selectToDocumentStart:{key:"Home",ctrlKey:true,shiftKey:true},selectToDocumentEnd:{key:"End",ctrlKey:true,shiftKey:true}};function m(e){let t=[];if(e.ctrlKey||e.metaKey){let r=typeof navigator<"u"&&/Mac/i.test(navigator.platform);t.push(r?"\u2318":"Ctrl");}e.shiftKey&&t.push("Shift"),e.altKey&&t.push("Alt");let o=e.key;return o==="ArrowLeft"?o="\u2190":o==="ArrowRight"?o="\u2192":o==="ArrowUp"?o="\u2191":o==="ArrowDown"&&(o="\u2193"),t.push(o),t.join("+")}function Mi(){return [{action:"Move by word (left)",shortcut:m(f.wordLeft)},{action:"Move by word (right)",shortcut:m(f.wordRight)},{action:"Select word (left)",shortcut:m(f.selectWordLeft)},{action:"Select word (right)",shortcut:m(f.selectWordRight)},{action:"Go to line start",shortcut:m(f.lineStart)},{action:"Go to line end",shortcut:m(f.lineEnd)},{action:"Select to line start",shortcut:m(f.selectToLineStart)},{action:"Select to line end",shortcut:m(f.selectToLineEnd)},{action:"Go to document start",shortcut:m(f.documentStart)},{action:"Go to document end",shortcut:m(f.documentEnd)},{action:"Select to document start",shortcut:m(f.selectToDocumentStart)},{action:"Select to document end",shortcut:m(f.selectToDocumentEnd)}]}var Y=/\{([#/^@]?)([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)\}/g,p=new PluginKey("template");function _i(e,t,o){return `${e}:${t}:${o}`}function q(e){let t=[];e.descendants((s,c)=>(s.isText&&s.text&&t.push({text:s.text,pos:c}),true));let o="",r=[];for(let s of t){for(let c=0;c<s.text.length;c++)r.push(s.pos+c);o+=s.text;}let n=[],i=[],a=new Map,l;for(Y.lastIndex=0;(l=Y.exec(o))!==null;){let[s,c,d]=l,g=r[l.index],h=r[l.index+s.length-1]+1,u;c==="#"?u="sectionStart":c==="/"?u="sectionEnd":c==="^"?u="invertedStart":c==="@"?u="raw":u="variable";let T=`${u}:${d}`,H=a.get(T)??0;a.set(T,H+1);let E={id:_i(u,d,H),type:u,name:d,rawTag:s,from:g,to:h};if(u==="sectionStart"||u==="invertedStart")E.nestedVars=[],i.push(E);else if(u==="sectionEnd"){for(let P=i.length-1;P>=0;P--)if(i[P].name===d){i.splice(P,1);break}}else u==="variable"&&i.length>0&&(i[i.length-1].nestedVars?.push(d),E.insideSection=true);n.push(E);}return n}function Wi(e){switch(e){case "sectionStart":case "sectionEnd":return "#3b82f6";case "invertedStart":return "#8b5cf6";case "raw":return "#ef4444";default:return "#f59e0b"}}function K(e,t,o,r){let n=[];for(let i of t){let a=i.id===o,l=i.id===r,s=Wi(i.type),c=["docx-template-tag"];a&&c.push("hovered"),l&&c.push("selected"),n.push(Decoration.inline(i.from,i.to,{class:c.join(" "),"data-tag-id":i.id,style:`background-color: ${s}22; border-radius: 2px;`}));}return DecorationSet.create(e,n)}function Fi(e,t){if(e.length!==t.length)return false;for(let o=0;o<e.length;o++)if(e[o].id!==t[o].id)return false;return true}function A(){return new Plugin({key:p,state:{init(e,t){let o=q(t.doc);return {tags:o,decorations:K(t.doc,o)}},apply(e,t,o,r){if(e.docChanged){let i=q(r.doc),a=Fi(t.tags,i);return {tags:i,decorations:a?t.decorations.map(e.mapping,e.doc):K(r.doc,i,t.hoveredId,t.selectedId),hoveredId:t.hoveredId,selectedId:t.selectedId}}let n=e.getMeta(p);if(n){let i=n.hoveredId??t.hoveredId,a=n.selectedId??t.selectedId;return {...t,hoveredId:i,selectedId:a,decorations:K(r.doc,t.tags,i,a)}}return {...t,decorations:t.decorations.map(e.mapping,e.doc)}}},props:{decorations(e){return p.getState(e)?.decorations??DecorationSet.empty},handleClick(e,t){let r=(p.getState(e.state)?.tags??[]).find(i=>t>=i.from&&t<=i.to);return r?(e.dispatch(e.state.tr.setMeta(p,{selectedId:r.id})),true):(p.getState(e.state)?.selectedId&&e.dispatch(e.state.tr.setMeta(p,{selectedId:void 0})),false)},handleDOMEvents:{mouseover(e,t){let r=t.target.closest?.("[data-tag-id]")?.getAttribute("data-tag-id")||void 0,n=p.getState(e.state)?.hoveredId;return r!==n&&e.dispatch(e.state.tr.setMeta(p,{hoveredId:r})),false},mouseout(e,t){return t.relatedTarget?.closest?.("[data-tag-id]")||p.getState(e.state)?.hoveredId&&e.dispatch(e.state.tr.setMeta(p,{hoveredId:void 0})),false}}}})}function J(e){return p.getState(e)?.tags??[]}function C(e,t){e.dispatch(e.state.tr.setMeta(p,{hoveredId:t}));}function N(e,t){e.dispatch(e.state.tr.setMeta(p,{selectedId:t}));}var D=`
|
|
2
2
|
.docx-template-tag {
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
transition: background-color 0.1s;
|
package/dist/mcp-reexport.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZJNGMDRE_js=require('./chunk-ZJNGMDRE.js'),chunkAARNCPWR_js=require('./chunk-AARNCPWR.js'),chunkKUL2SDYC_js=require('./chunk-KUL2SDYC.js'),chunkBUEMG4NW_js=require('./chunk-BUEMG4NW.js');require('./chunk-SE5EN2QL.js'),require('./chunk-IFPN3NT3.js'),require('./chunk-H5NTJZO4.js');var u={type:"string",description:"Document ID returned from docx_load"},x={type:"object",properties:{paragraphIndex:{type:"number",description:"Index of the paragraph (0-indexed)",minimum:0},offset:{type:"number",description:"Character offset within the paragraph",minimum:0}},required:["paragraphIndex","offset"]},h={type:"object",properties:{start:x,end:x},required:["start","end"]},D={name:"docx_load",description:`Load a DOCX document from base64-encoded content.
|
|
2
2
|
Returns a document ID that can be used with other tools.
|
|
3
|
-
The document remains in session memory until closed.`,inputSchema:{type:"object",properties:{content:{type:"string",description:"Base64-encoded DOCX file content"},source:{type:"string",description:"Optional source filename or identifier for reference"}},required:["content"]},handler:async(r,s)=>{let{content:e,source:c}=r;try{let t=atob(e),n=new Uint8Array(t.length);for(let l=0;l<t.length;l++)n[l]=t.charCodeAt(l);let o=n.buffer,a=await
|
|
4
|
-
Returns the document as a base64 string that can be saved to a file.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r,c=s.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};try{let t;c.buffer?t=await
|
|
3
|
+
The document remains in session memory until closed.`,inputSchema:{type:"object",properties:{content:{type:"string",description:"Base64-encoded DOCX file content"},source:{type:"string",description:"Optional source filename or identifier for reference"}},required:["content"]},handler:async(r,s)=>{let{content:e,source:c}=r;try{let t=atob(e),n=new Uint8Array(t.length);for(let l=0;l<t.length;l++)n[l]=t.charCodeAt(l);let o=n.buffer,a=await chunkKUL2SDYC_js.n(o),d=`doc_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;s.session.documents.set(d,{id:d,document:a,buffer:o,source:c,lastModified:Date.now()});let p=a.package.document.content.filter(l=>l.type==="paragraph").length;return {content:[{type:"text",text:JSON.stringify({documentId:d,source:c,paragraphCount:p,message:"Document loaded successfully"})}]}}catch(t){return {isError:true,content:[{type:"text",text:`Failed to load document: ${t.message}`}]}}},annotations:{category:"core",readOnly:false,complexity:"low"}},C={name:"docx_save",description:`Export the document to base64-encoded DOCX format.
|
|
4
|
+
Returns the document as a base64 string that can be saved to a file.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r,c=s.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};try{let t;c.buffer?t=await chunkZJNGMDRE_js.i(c.document):t=await chunkZJNGMDRE_js.r(c.document);let n=new Uint8Array(t),o="";for(let d=0;d<n.length;d++)o+=String.fromCharCode(n[d]);let a=btoa(o);return {content:[{type:"text",text:JSON.stringify({documentId:e,base64:a,size:t.byteLength,message:"Document exported successfully"})}]}}catch(t){return {isError:true,content:[{type:"text",text:`Failed to save document: ${t.message}`}]}}},annotations:{category:"core",readOnly:true,complexity:"low"}},R={name:"docx_close",description:`Close a document and free its memory.
|
|
5
5
|
Use this when done working with a document.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r;return s.session.documents.has(e)?(s.session.documents.delete(e),{content:[{type:"text",text:JSON.stringify({documentId:e,message:"Document closed"})}]}):{isError:true,content:[{type:"text",text:`Document not found: ${e}`}]}},annotations:{category:"core",readOnly:false,complexity:"low"}},k={name:"docx_get_info",description:`Get metadata and statistics about a document.
|
|
6
6
|
Returns paragraph count, word count, table count, and other useful info.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r,c=s.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};let t=c.document,n=t.package.document,o=n.content.filter(p=>p.type==="paragraph"),a=n.content.filter(p=>p.type==="table"),d=0;for(let p of o)if(p.type==="paragraph"){let l=P(p);d+=l.split(/\s+/).filter(y=>y.length>0).length;}return {content:[{type:"text",text:JSON.stringify({documentId:e,paragraphCount:o.length,tableCount:a.length,wordCount:d,hasStyles:!!t.package.styles,hasTheme:!!t.package.theme,source:c.source,lastModified:c.lastModified})}]}},annotations:{category:"core",readOnly:true,complexity:"low"}},$={name:"docx_get_text",description:`Get the plain text content of the document.
|
|
7
7
|
Returns all text concatenated with paragraph breaks.
|
package/dist/mcp-reexport.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {i,r}from'./chunk-37SLIJPH.mjs';import {a}from'./chunk-M5F4SK3W.mjs';import {n}from'./chunk-7MGFEP2R.mjs';import {b}from'./chunk-W53SI3XW.mjs';import'./chunk-LYBG4YI7.mjs';import'./chunk-WOHFANC5.mjs';import'./chunk-TAUMSKRE.mjs';var u={type:"string",description:"Document ID returned from docx_load"},x={type:"object",properties:{paragraphIndex:{type:"number",description:"Index of the paragraph (0-indexed)",minimum:0},offset:{type:"number",description:"Character offset within the paragraph",minimum:0}},required:["paragraphIndex","offset"]},h={type:"object",properties:{start:x,end:x},required:["start","end"]},D={name:"docx_load",description:`Load a DOCX document from base64-encoded content.
|
|
2
2
|
Returns a document ID that can be used with other tools.
|
|
3
3
|
The document remains in session memory until closed.`,inputSchema:{type:"object",properties:{content:{type:"string",description:"Base64-encoded DOCX file content"},source:{type:"string",description:"Optional source filename or identifier for reference"}},required:["content"]},handler:async(r,s)=>{let{content:e,source:c}=r;try{let t=atob(e),n$1=new Uint8Array(t.length);for(let l=0;l<t.length;l++)n$1[l]=t.charCodeAt(l);let o=n$1.buffer,a=await n(o),d=`doc_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;s.session.documents.set(d,{id:d,document:a,buffer:o,source:c,lastModified:Date.now()});let p=a.package.document.content.filter(l=>l.type==="paragraph").length;return {content:[{type:"text",text:JSON.stringify({documentId:d,source:c,paragraphCount:p,message:"Document loaded successfully"})}]}}catch(t){return {isError:true,content:[{type:"text",text:`Failed to load document: ${t.message}`}]}}},annotations:{category:"core",readOnly:false,complexity:"low"}},C={name:"docx_save",description:`Export the document to base64-encoded DOCX format.
|
|
4
|
-
Returns the document as a base64 string that can be saved to a file.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r,c=s.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};try{let t;c.buffer?t=await
|
|
4
|
+
Returns the document as a base64 string that can be saved to a file.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r$1,s)=>{let{documentId:e}=r$1,c=s.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};try{let t;c.buffer?t=await i(c.document):t=await r(c.document);let n=new Uint8Array(t),o="";for(let d=0;d<n.length;d++)o+=String.fromCharCode(n[d]);let a=btoa(o);return {content:[{type:"text",text:JSON.stringify({documentId:e,base64:a,size:t.byteLength,message:"Document exported successfully"})}]}}catch(t){return {isError:true,content:[{type:"text",text:`Failed to save document: ${t.message}`}]}}},annotations:{category:"core",readOnly:true,complexity:"low"}},R={name:"docx_close",description:`Close a document and free its memory.
|
|
5
5
|
Use this when done working with a document.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r;return s.session.documents.has(e)?(s.session.documents.delete(e),{content:[{type:"text",text:JSON.stringify({documentId:e,message:"Document closed"})}]}):{isError:true,content:[{type:"text",text:`Document not found: ${e}`}]}},annotations:{category:"core",readOnly:false,complexity:"low"}},k={name:"docx_get_info",description:`Get metadata and statistics about a document.
|
|
6
6
|
Returns paragraph count, word count, table count, and other useful info.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r,c=s.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};let t=c.document,n=t.package.document,o=n.content.filter(p=>p.type==="paragraph"),a=n.content.filter(p=>p.type==="table"),d=0;for(let p of o)if(p.type==="paragraph"){let l=P(p);d+=l.split(/\s+/).filter(y=>y.length>0).length;}return {content:[{type:"text",text:JSON.stringify({documentId:e,paragraphCount:o.length,tableCount:a.length,wordCount:d,hasStyles:!!t.package.styles,hasTheme:!!t.package.theme,source:c.source,lastModified:c.lastModified})}]}},annotations:{category:"core",readOnly:true,complexity:"low"}},$={name:"docx_get_text",description:`Get the plain text content of the document.
|
|
7
7
|
Returns all text concatenated with paragraph breaks.
|
package/dist/react.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkWH2EK2HU_js=require('./chunk-WH2EK2HU.js');require('./chunk-EV3CM6TU.js'),require('./chunk-EF3LLEN7.js'),require('./chunk-CTYOM6BE.js'),require('./chunk-PJVI53AH.js');var chunkFVUGBRDD_js=require('./chunk-FVUGBRDD.js');require('./chunk-P7WEP4JU.js'),require('./chunk-4VUZBV2S.js'),require('./chunk-KCOGY3V2.js'),require('./chunk-PB7VMDDP.js'),require('./chunk-ZJNGMDRE.js'),require('./chunk-AARNCPWR.js');var chunkKUL2SDYC_js=require('./chunk-KUL2SDYC.js');require('./chunk-BUEMG4NW.js'),require('./chunk-SE5EN2QL.js'),require('./chunk-IFPN3NT3.js'),require('./chunk-H5NTJZO4.js');Object.defineProperty(exports,"DocxEditor",{enumerable:true,get:function(){return chunkWH2EK2HU_js.j}});Object.defineProperty(exports,"ErrorBoundary",{enumerable:true,get:function(){return chunkWH2EK2HU_js.d}});Object.defineProperty(exports,"ErrorProvider",{enumerable:true,get:function(){return chunkWH2EK2HU_js.c}});Object.defineProperty(exports,"PLUGIN_HOST_STYLES",{enumerable:true,get:function(){return chunkWH2EK2HU_js.U}});Object.defineProperty(exports,"ParseErrorDisplay",{enumerable:true,get:function(){return chunkWH2EK2HU_js.e}});Object.defineProperty(exports,"PluginHost",{enumerable:true,get:function(){return chunkWH2EK2HU_js.V}});Object.defineProperty(exports,"UnsupportedFeatureWarning",{enumerable:true,get:function(){return chunkWH2EK2HU_js.f}});Object.defineProperty(exports,"ZOOM_PRESETS",{enumerable:true,get:function(){return chunkWH2EK2HU_js.m}});Object.defineProperty(exports,"clampZoom",{enumerable:true,get:function(){return chunkWH2EK2HU_js.v}});Object.defineProperty(exports,"findNearestZoomPreset",{enumerable:true,get:function(){return chunkWH2EK2HU_js.p}});Object.defineProperty(exports,"formatZoom",{enumerable:true,get:function(){return chunkWH2EK2HU_js.s}});Object.defineProperty(exports,"generateOverlayElements",{enumerable:true,get:function(){return chunkWH2EK2HU_js.S}});Object.defineProperty(exports,"getNextZoomPreset",{enumerable:true,get:function(){return chunkWH2EK2HU_js.q}});Object.defineProperty(exports,"getPreviousZoomPreset",{enumerable:true,get:function(){return chunkWH2EK2HU_js.r}});Object.defineProperty(exports,"getUserFriendlyMessage",{enumerable:true,get:function(){return chunkWH2EK2HU_js.h}});Object.defineProperty(exports,"getZoomPresets",{enumerable:true,get:function(){return chunkWH2EK2HU_js.o}});Object.defineProperty(exports,"isParseError",{enumerable:true,get:function(){return chunkWH2EK2HU_js.g}});Object.defineProperty(exports,"isZoomPreset",{enumerable:true,get:function(){return chunkWH2EK2HU_js.u}});Object.defineProperty(exports,"parseZoom",{enumerable:true,get:function(){return chunkWH2EK2HU_js.t}});Object.defineProperty(exports,"renderAsync",{enumerable:true,get:function(){return chunkWH2EK2HU_js.k}});Object.defineProperty(exports,"useAutoSave",{enumerable:true,get:function(){return chunkWH2EK2HU_js.l}});Object.defineProperty(exports,"useClipboard",{enumerable:true,get:function(){return chunkWH2EK2HU_js.T}});Object.defineProperty(exports,"useErrorNotifications",{enumerable:true,get:function(){return chunkWH2EK2HU_js.b}});Object.defineProperty(exports,"useSelectionHighlight",{enumerable:true,get:function(){return chunkWH2EK2HU_js.R}});Object.defineProperty(exports,"useTableSelection",{enumerable:true,get:function(){return chunkWH2EK2HU_js.i}});Object.defineProperty(exports,"useWheelZoom",{enumerable:true,get:function(){return chunkWH2EK2HU_js.n}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunkFVUGBRDD_js.x}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunkFVUGBRDD_js.F}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunkFVUGBRDD_js.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunkFVUGBRDD_js.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunkFVUGBRDD_js.E}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunkFVUGBRDD_js.w}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkKUL2SDYC_js.m}});
|
package/dist/react.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{j as DocxEditor,d as ErrorBoundary,c as ErrorProvider,U as PLUGIN_HOST_STYLES,e as ParseErrorDisplay,V as PluginHost,f as UnsupportedFeatureWarning,m as ZOOM_PRESETS,v as clampZoom,p as findNearestZoomPreset,s as formatZoom,S as generateOverlayElements,q as getNextZoomPreset,r as getPreviousZoomPreset,h as getUserFriendlyMessage,o as getZoomPresets,g as isParseError,u as isZoomPreset,t as parseZoom,k as renderAsync,l as useAutoSave,T as useClipboard,b as useErrorNotifications,R as useSelectionHighlight,i as useTableSelection,n as useWheelZoom}from'./chunk-
|
|
1
|
+
export{j as DocxEditor,d as ErrorBoundary,c as ErrorProvider,U as PLUGIN_HOST_STYLES,e as ParseErrorDisplay,V as PluginHost,f as UnsupportedFeatureWarning,m as ZOOM_PRESETS,v as clampZoom,p as findNearestZoomPreset,s as formatZoom,S as generateOverlayElements,q as getNextZoomPreset,r as getPreviousZoomPreset,h as getUserFriendlyMessage,o as getZoomPresets,g as isParseError,u as isZoomPreset,t as parseZoom,k as renderAsync,l as useAutoSave,T as useClipboard,b as useErrorNotifications,R as useSelectionHighlight,i as useTableSelection,n as useWheelZoom}from'./chunk-EEV6TUOX.mjs';import'./chunk-2HDYCD2Q.mjs';import'./chunk-HWWZOJMR.mjs';import'./chunk-XWBCP563.mjs';import'./chunk-AZRYS2WF.mjs';export{x as TABLE_DATA_ATTRIBUTES,F as createSelectionFromDOM,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,w as isAutoSaveSupported}from'./chunk-QTSXJRP6.mjs';import'./chunk-7QTNB64A.mjs';import'./chunk-QAZ4233N.mjs';import'./chunk-RTFUE3KK.mjs';import'./chunk-DLVLK5FT.mjs';import'./chunk-37SLIJPH.mjs';import'./chunk-M5F4SK3W.mjs';export{m as toArrayBuffer}from'./chunk-7MGFEP2R.mjs';import'./chunk-W53SI3XW.mjs';import'./chunk-LYBG4YI7.mjs';import'./chunk-WOHFANC5.mjs';import'./chunk-TAUMSKRE.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkEV3CM6TU_js=require('./chunk-EV3CM6TU.js');require('./chunk-H5NTJZO4.js');Object.defineProperty(exports,"getCaretPosition",{enumerable:true,get:function(){return chunkEV3CM6TU_js.q}});Object.defineProperty(exports,"groupRectsByPage",{enumerable:true,get:function(){return chunkEV3CM6TU_js.s}});Object.defineProperty(exports,"isMultiPageSelection",{enumerable:true,get:function(){return chunkEV3CM6TU_js.r}});Object.defineProperty(exports,"selectionToRects",{enumerable:true,get:function(){return chunkEV3CM6TU_js.p}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{q as getCaretPosition,s as groupRectsByPage,r as isMultiPageSelection,p as selectionToRects}from'./chunk-2HDYCD2Q.mjs';import'./chunk-TAUMSKRE.mjs';
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ep-root .\!visible{visibility:visible!important}.ep-root .visible{visibility:visible}.ep-root .collapse{visibility:collapse}.ep-root .static{position:static}.ep-root .fixed{position:fixed}.ep-root .absolute{position:absolute}.ep-root .relative{position:relative}.ep-root .sticky{position:sticky}.ep-root .right-2{right:.5rem}.ep-root .z-50{z-index:50}.ep-root .-mx-1{margin-left:-.25rem;margin-right:-.25rem}.ep-root .mx-1\.5{margin-left:.375rem;margin-right:.375rem}.ep-root .mx-2{margin-left:.5rem;margin-right:.5rem}.ep-root .my-1{margin-top:.25rem;margin-bottom:.25rem}.ep-root .-ml-1{margin-left:-.25rem}.ep-root .mb-1{margin-bottom:.25rem}.ep-root .ml-auto{margin-left:auto}.ep-root .block{display:block}.ep-root .inline-block{display:inline-block}.ep-root .\!inline{display:inline!important}.ep-root .inline{display:inline}.ep-root .flex{display:flex}.ep-root .inline-flex{display:inline-flex}.ep-root .\!table{display:table!important}.ep-root .table{display:table}.ep-root .grid{display:grid}.ep-root .inline-grid{display:inline-grid}.ep-root .contents{display:contents}.ep-root .hidden{display:none}.ep-root .h-10{height:2.5rem}.ep-root .h-11{height:2.75rem}.ep-root .h-3\.5{height:.875rem}.ep-root .h-4{height:1rem}.ep-root .h-5{height:1.25rem}.ep-root .h-6{height:1.5rem}.ep-root .h-7{height:1.75rem}.ep-root .h-8{height:2rem}.ep-root .h-9{height:2.25rem}.ep-root .h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.ep-root .h-px{height:1px}.ep-root .max-h-72{max-height:18rem}.ep-root .max-h-\[300px\]{max-height:300px}.ep-root .max-h-\[400px\]{max-height:400px}.ep-root .min-h-\[36px\]{min-height:36px}.ep-root .w-10{width:2.5rem}.ep-root .w-3\.5{width:.875rem}.ep-root .w-4{width:1rem}.ep-root .w-5{width:1.25rem}.ep-root .w-7{width:1.75rem}.ep-root .w-9{width:2.25rem}.ep-root .w-full{width:100%}.ep-root .w-px{width:1px}.ep-root .min-w-0{min-width:0}.ep-root .min-w-\[100px\]{min-width:100px}.ep-root .min-w-\[260px\]{min-width:260px}.ep-root .min-w-\[55px\]{min-width:55px}.ep-root .min-w-\[70px\]{min-width:70px}.ep-root .min-w-\[8rem\]{min-width:8rem}.ep-root .min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.ep-root .max-w-\[300px\]{max-width:300px}.ep-root .flex-1{flex:1 1 0%}.ep-root .flex-shrink{flex-shrink:1}.ep-root .flex-shrink-0{flex-shrink:0}.ep-root .shrink{flex-shrink:1}.ep-root .shrink-0{flex-shrink:0}.ep-root .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ep-root .cursor-not-allowed{cursor:not-allowed}.ep-root .cursor-pointer{cursor:pointer}.ep-root .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ep-root .select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.ep-root .resize{resize:both}.ep-root .flex-col{flex-direction:column}.ep-root .flex-wrap{flex-wrap:wrap}.ep-root .items-center{align-items:center}.ep-root .items-stretch{align-items:stretch}.ep-root .justify-center{justify-content:center}.ep-root .justify-between{justify-content:space-between}.ep-root .gap-0{gap:0}.ep-root .gap-0\.5{gap:.125rem}.ep-root .gap-1{gap:.25rem}.ep-root .gap-2{gap:.5rem}.ep-root .gap-px{gap:1px}.ep-root .overflow-hidden{overflow:hidden}.ep-root .overflow-x-auto{overflow-x:auto}.ep-root .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ep-root .whitespace-nowrap{white-space:nowrap}.ep-root .rounded{border-radius:.25rem}.ep-root .rounded-full{border-radius:9999px}.ep-root .rounded-lg{border-radius:var(--radius)}.ep-root .rounded-md{border-radius:calc(var(--radius) - 2px)}.ep-root .rounded-none{border-radius:0}.ep-root .rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.ep-root .rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.ep-root .\!border{border-width:1px!important}.ep-root .border{border-width:1px}.ep-root .border-0{border-width:0}.ep-root .border-b{border-bottom-width:1px}.ep-root .border-r{border-right-width:1px}.ep-root .border-input{border-color:hsl(var(--input))}.ep-root .border-slate-100{--tw-border-opacity:1;border-color:rgb(241 245 249/var(--tw-border-opacity,1))}.ep-root .border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}.ep-root .border-slate-200\/50{border-color:rgba(226,232,240,.5)}.ep-root .border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.ep-root .bg-\[\#f1f5f9\]{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.ep-root .bg-background{background-color:hsl(var(--background))}.ep-root .bg-destructive{background-color:hsl(var(--destructive))}.ep-root .bg-doc-bg{background-color:var(--doc-bg)}.ep-root .bg-primary{background-color:hsl(var(--primary))}.ep-root .bg-secondary{background-color:hsl(var(--secondary))}.ep-root .bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.ep-root .bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.ep-root .bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.ep-root .bg-transparent{background-color:transparent}.ep-root .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.ep-root .p-1{padding:.25rem}.ep-root .px-1{padding-left:.25rem;padding-right:.25rem}.ep-root .px-1\.5{padding-left:.375rem;padding-right:.375rem}.ep-root .px-2{padding-left:.5rem;padding-right:.5rem}.ep-root .px-3{padding-left:.75rem;padding-right:.75rem}.ep-root .px-4{padding-left:1rem;padding-right:1rem}.ep-root .px-5{padding-left:1.25rem;padding-right:1.25rem}.ep-root .px-8{padding-left:2rem;padding-right:2rem}.ep-root .py-0{padding-top:0;padding-bottom:0}.ep-root .py-1{padding-top:.25rem;padding-bottom:.25rem}.ep-root .py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.ep-root .py-2{padding-top:.5rem;padding-bottom:.5rem}.ep-root .py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.ep-root .pb-1{padding-bottom:.25rem}.ep-root .pl-3{padding-left:.75rem}.ep-root .pr-1{padding-right:.25rem}.ep-root .pt-2{padding-top:.5rem}.ep-root .text-left{text-align:left}.ep-root .text-center{text-align:center}.ep-root .text-base{font-size:1rem;line-height:1.5rem}.ep-root .text-sm{font-size:.875rem;line-height:1.25rem}.ep-root .text-xs{font-size:.75rem;line-height:1rem}.ep-root .font-medium{font-weight:500}.ep-root .font-normal{font-weight:400}.ep-root .uppercase{text-transform:uppercase}.ep-root .lowercase{text-transform:lowercase}.ep-root .capitalize{text-transform:capitalize}.ep-root .italic{font-style:italic}.ep-root .ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.ep-root .leading-tight{line-height:1.25}.ep-root .text-destructive-foreground{color:hsl(var(--destructive-foreground))}.ep-root .text-primary{color:hsl(var(--primary))}.ep-root .text-primary-foreground{color:hsl(var(--primary-foreground))}.ep-root .text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.ep-root .text-secondary-foreground{color:hsl(var(--secondary-foreground))}.ep-root .text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.ep-root .text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.ep-root .text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.ep-root .text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.ep-root .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.ep-root .underline{text-decoration-line:underline}.ep-root .line-through{text-decoration-line:line-through}.ep-root .underline-offset-4{text-underline-offset:4px}.ep-root .opacity-30{opacity:.3}.ep-root .opacity-50{opacity:.5}.ep-root .shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.ep-root .shadow-lg,.ep-root .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.ep-root .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.ep-root .outline-none{outline:2px solid transparent;outline-offset:2px}.ep-root .\!outline{outline-style:solid!important}.ep-root .outline{outline-style:solid}.ep-root .ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.ep-root .blur{--tw-blur:blur(8px)}.ep-root .blur,.ep-root .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.ep-root .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ep-root .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ep-root .duration-150{transition-duration:.15s}.ep-root .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ep-root .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.ep-root .zoom-in{--tw-enter-scale:0}.ep-root .zoom-out{--tw-exit-scale:0}.ep-root .duration-150{animation-duration:.15s}.ep-root .ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ep-root .ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.ep-root .running{animation-play-state:running}.ep-root{--background:0 0% 100%;--foreground:222.2 84% 4.9%;--card:0 0% 100%;--card-foreground:222.2 84% 4.9%;--popover:0 0% 100%;--popover-foreground:222.2 84% 4.9%;--primary:221.2 83.2% 53.3%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:210 40% 96.1%;--accent-foreground:222.2 47.4% 11.2%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 40% 98%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:221.2 83.2% 53.3%;--radius:0.5rem;--doc-bg:#f8f9fa;--doc-primary:#1a73e8;--doc-primary-hover:#1557b0;--doc-primary-light:#e8f0fe;--doc-text:#202124;--doc-text-muted:#5f6368;--doc-text-subtle:#9aa0a6;--doc-text-placeholder:#999;--doc-border:#e0e0e0;--doc-border-light:#dadce0;--doc-border-dark:#d0d0d0;--doc-border-input:#ccc;--doc-bg-subtle:#f5f5f5;--doc-bg-hover:#f1f3f4;--doc-bg-input:#f8f9fa;--doc-error:#c5221f;--doc-error-bg:#fce8e6;--doc-success:#34a853;--doc-success-bg:#e8f5e9;--doc-warning:#f9a825;--doc-warning-bg:#fff8e1;--doc-link:#0563c1}[contenteditable=true]{caret-color:#000;outline:none;caret-shape:bar}.docx-run-editable[contenteditable=true]{caret-color:#000;min-height:1em;display:inline}.docx-paragraph-empty [contenteditable=true]{min-height:1em;min-width:1px;display:inline-block}.docx-paragraph-editable{cursor:text}.docx-run-editable[contenteditable=true]:focus{outline:none}.docx-paragraph-editable:focus-within{outline:none}.docx-run ::selection,.docx-run-editable ::selection,.docx-run-editable::selection,.docx-run::selection,[contenteditable=true] ::selection,[contenteditable=true]::selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-run ::-moz-selection,.docx-run-editable ::-moz-selection,.docx-run-editable::-moz-selection,.docx-run::-moz-selection,[contenteditable=true] ::-moz-selection,[contenteditable=true]::-moz-selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-paragraph ::selection,.docx-paragraph-editable ::selection,.docx-paragraph-editable::selection,.docx-paragraph::selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-paragraph ::-moz-selection,.docx-paragraph-editable ::-moz-selection,.docx-paragraph-editable::-moz-selection,.docx-paragraph::-moz-selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-hyperlink ::selection,.docx-hyperlink::selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-hyperlink ::-moz-selection,.docx-hyperlink::-moz-selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-run-highlighted ::selection,.docx-run-highlighted::selection{background-color:rgba(26,115,232,.5)!important;color:inherit!important}.docx-run-highlighted ::-moz-selection,.docx-run-highlighted::-moz-selection{background-color:rgba(26,115,232,.5)!important;color:inherit!important}.docx-run-dark-bg ::selection,.docx-run-dark-bg::selection{background-color:rgba(100,181,246,.5)!important;color:inherit!important}.docx-run-dark-bg ::-moz-selection,.docx-run-dark-bg::-moz-selection{background-color:rgba(100,181,246,.5)!important;color:inherit!important}.docx-run-bold ::selection,.docx-run-bold::selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-run-bold ::-moz-selection,.docx-run-bold::-moz-selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-run-italic ::selection,.docx-run-italic::selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-run-italic ::-moz-selection,.docx-run-italic::-moz-selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-find-highlight{background-color:rgba(255,235,59,.5)!important;border-radius:2px}.docx-find-highlight-current{background-color:rgba(255,152,0,.6)!important;border-radius:2px;outline:2px solid rgba(255,152,0,.8)}.docx-ai-selection-preview{background-color:rgba(156,39,176,.2);border-bottom:2px dashed rgba(156,39,176,.6)}.docx-selection-overlay-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:hidden}.docx-selection-overlay-rect{position:absolute;background-color:rgba(66,133,244,.25);pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.docx-run-highlighted[contenteditable=true]{caret-color:#333}.docx-run-dark-bg[contenteditable=true]{caret-color:#fff}.docx-editor{cursor:default}.docx-editor-page{cursor:text}.docx-bookmark-end,.docx-bookmark-start,.docx-drawing-placeholder,.docx-field,.docx-list-marker,.docx-shape-placeholder{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.docx-run-has-variable [contenteditable=false]{cursor:default;-webkit-user-select:all;-moz-user-select:all;user-select:all}.layout-table-cell-selected{position:relative;outline:2px solid rgba(66,133,244,.6);outline-offset:-2px}.layout-table-cell-selected:after{content:"";position:absolute;inset:0;background-color:rgba(66,133,244,.15);pointer-events:none}.layout-table-resize-handle{background-color:transparent;transition:background-color .15s}.layout-table-resize-handle.dragging,.layout-table-resize-handle:hover{background-color:rgba(66,133,244,.6)}.layout-table-edge-handle-bottom,.layout-table-row-resize-handle{background-color:transparent;transition:background-color .15s}.layout-table-edge-handle-bottom.dragging,.layout-table-edge-handle-bottom:hover,.layout-table-row-resize-handle.dragging,.layout-table-row-resize-handle:hover{background-color:rgba(66,133,244,.6)}.layout-table-edge-handle-right{background-color:transparent;transition:background-color .15s}.layout-table-edge-handle-right.dragging,.layout-table-edge-handle-right:hover{background-color:rgba(66,133,244,.6)}.paged-editor--readonly .layout-table-edge-handle-bottom,.paged-editor--readonly .layout-table-edge-handle-right,.paged-editor--readonly .layout-table-resize-handle,.paged-editor--readonly .layout-table-row-resize-handle{display:none!important}.paged-editor--readonly .layout-page-footer,.paged-editor--readonly .layout-page-header{cursor:default;pointer-events:none}.paged-editor--readonly .layout-page-content{cursor:default}.docx-outline-heading-btn:hover{background-color:#f1f3f4}@media (max-width:1280px){.docx-outline-nav{display:none!important}}.layout-page-content{cursor:text}.layout-page-footer,.layout-page-header{cursor:pointer;transition:background-color .15s ease}.layout-page-footer:hover,.layout-page-header:hover{background-color:rgba(37,99,235,.06)}.layout-page-header:empty:hover:after{content:"Double-click to add header";display:block;text-align:center;color:#9ca3af;font-size:11px;padding:4px 0}.layout-page-footer:empty:hover:after{content:"Double-click to add footer";display:block;text-align:center;color:#9ca3af;font-size:11px;padding:4px 0}.hf-editor-pm .ProseMirror{outline:none;min-height:40px;padding:4px}.hf-editor-pm .ProseMirror:focus{outline:none}.hf-editor-pm .ProseMirror p{display:block;margin:0;padding:0;min-height:1em;white-space:pre-wrap;word-wrap:break-word;line-height:normal}.paged-editor--hf-editing .layout-page-content{opacity:.4;pointer-events:none;transition:opacity .15s ease}.paged-editor--editing-header .layout-page-header{border-bottom:1px dotted #4285f4}.paged-editor--editing-footer .layout-page-footer{border-top:1px dotted #4285f4}.paged-editor--editing-footer .layout-page-footer>*,.paged-editor--editing-header .layout-page-header>*{visibility:hidden}.paged-editor--hf-editing .layout-page-footer:hover,.paged-editor--hf-editing .layout-page-header:hover{background-color:transparent}.docx-section-break{position:relative}.docx-section-break:after{content:"Section Break (" attr(data-section-break) ")";display:block;text-align:center;font-size:9px;color:var(--doc-text-muted,#9ca3af);border-top:1px dashed var(--doc-border,#d1d5db);margin-top:4px;padding-top:2px;pointer-events:none}.ep-hyperlink-popup__icon-btn:hover{background:#f1f3f4}.ep-root .first\:pl-0:first-child{padding-left:0}.ep-root .last\:border-r-0:last-child{border-right-width:0}.ep-root .hover\:border-slate-300:hover{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.ep-root .hover\:bg-accent:hover{background-color:hsl(var(--accent))}.ep-root .hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.ep-root .hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.ep-root .hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.ep-root .hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.ep-root .hover\:bg-slate-100\/80:hover{background-color:rgba(241,245,249,.8)}.ep-root .hover\:bg-slate-50:hover{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.ep-root .hover\:bg-slate-800:hover{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}.ep-root .hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.ep-root .hover\:text-slate-900:hover{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.ep-root .hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.ep-root .hover\:underline:hover{text-decoration-line:underline}.ep-root .focus\:bg-slate-100:focus{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.ep-root .focus\:bg-slate-100\/80:focus{background-color:rgba(241,245,249,.8)}.ep-root .focus\:bg-white:focus{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.ep-root .focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.ep-root .focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ep-root .focus\:ring-slate-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(203 213 225/var(--tw-ring-opacity,1))}.ep-root .focus\:ring-slate-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(148 163 184/var(--tw-ring-opacity,1))}.ep-root .focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.ep-root .focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ep-root .focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.ep-root .focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.ep-root .disabled\:pointer-events-none:disabled{pointer-events:none}.ep-root .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.ep-root .disabled\:opacity-50:disabled{opacity:.5}.ep-root .data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.ep-root .data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.ep-root .data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.ep-root .data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ep-root .data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.ep-root .data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.ep-root .data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.ep-root .data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.ep-root .data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.ep-root .data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.ep-root .data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.ep-root .data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.ep-root .data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.ep-root .data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.ep-root :is(.\[\&\>span\]\:truncate>span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
1
|
+
.ep-root .\!visible{visibility:visible!important}.ep-root .visible{visibility:visible}.ep-root .collapse{visibility:collapse}.ep-root .static{position:static}.ep-root .fixed{position:fixed}.ep-root .absolute{position:absolute}.ep-root .relative{position:relative}.ep-root .sticky{position:sticky}.ep-root .right-2{right:.5rem}.ep-root .z-50{z-index:50}.ep-root .-mx-1{margin-left:-.25rem;margin-right:-.25rem}.ep-root .mx-1\.5{margin-left:.375rem;margin-right:.375rem}.ep-root .mx-2{margin-left:.5rem;margin-right:.5rem}.ep-root .my-1{margin-top:.25rem;margin-bottom:.25rem}.ep-root .-ml-1{margin-left:-.25rem}.ep-root .mb-1{margin-bottom:.25rem}.ep-root .ml-auto{margin-left:auto}.ep-root .\!block{display:block!important}.ep-root .block{display:block}.ep-root .inline-block{display:inline-block}.ep-root .\!inline{display:inline!important}.ep-root .inline{display:inline}.ep-root .flex{display:flex}.ep-root .inline-flex{display:inline-flex}.ep-root .\!table{display:table!important}.ep-root .table{display:table}.ep-root .grid{display:grid}.ep-root .inline-grid{display:inline-grid}.ep-root .contents{display:contents}.ep-root .hidden{display:none}.ep-root .h-10{height:2.5rem}.ep-root .h-11{height:2.75rem}.ep-root .h-3\.5{height:.875rem}.ep-root .h-4{height:1rem}.ep-root .h-5{height:1.25rem}.ep-root .h-6{height:1.5rem}.ep-root .h-7{height:1.75rem}.ep-root .h-8{height:2rem}.ep-root .h-9{height:2.25rem}.ep-root .h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.ep-root .h-px{height:1px}.ep-root .max-h-72{max-height:18rem}.ep-root .max-h-\[300px\]{max-height:300px}.ep-root .max-h-\[400px\]{max-height:400px}.ep-root .min-h-\[36px\]{min-height:36px}.ep-root .w-10{width:2.5rem}.ep-root .w-3\.5{width:.875rem}.ep-root .w-4{width:1rem}.ep-root .w-5{width:1.25rem}.ep-root .w-7{width:1.75rem}.ep-root .w-9{width:2.25rem}.ep-root .w-full{width:100%}.ep-root .w-px{width:1px}.ep-root .min-w-0{min-width:0}.ep-root .min-w-\[100px\]{min-width:100px}.ep-root .min-w-\[260px\]{min-width:260px}.ep-root .min-w-\[55px\]{min-width:55px}.ep-root .min-w-\[70px\]{min-width:70px}.ep-root .min-w-\[8rem\]{min-width:8rem}.ep-root .min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.ep-root .max-w-\[300px\]{max-width:300px}.ep-root .flex-1{flex:1 1 0%}.ep-root .flex-shrink{flex-shrink:1}.ep-root .flex-shrink-0{flex-shrink:0}.ep-root .shrink{flex-shrink:1}.ep-root .shrink-0{flex-shrink:0}.ep-root .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ep-root .cursor-not-allowed{cursor:not-allowed}.ep-root .cursor-pointer{cursor:pointer}.ep-root .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ep-root .select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.ep-root .resize{resize:both}.ep-root .flex-col{flex-direction:column}.ep-root .flex-wrap{flex-wrap:wrap}.ep-root .items-center{align-items:center}.ep-root .items-stretch{align-items:stretch}.ep-root .justify-center{justify-content:center}.ep-root .justify-between{justify-content:space-between}.ep-root .gap-0{gap:0}.ep-root .gap-0\.5{gap:.125rem}.ep-root .gap-1{gap:.25rem}.ep-root .gap-2{gap:.5rem}.ep-root .gap-px{gap:1px}.ep-root .overflow-hidden{overflow:hidden}.ep-root .overflow-x-auto{overflow-x:auto}.ep-root .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ep-root .whitespace-nowrap{white-space:nowrap}.ep-root .rounded{border-radius:.25rem}.ep-root .rounded-full{border-radius:9999px}.ep-root .rounded-lg{border-radius:var(--radius)}.ep-root .rounded-md{border-radius:calc(var(--radius) - 2px)}.ep-root .rounded-none{border-radius:0}.ep-root .rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.ep-root .rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.ep-root .\!border{border-width:1px!important}.ep-root .border{border-width:1px}.ep-root .border-0{border-width:0}.ep-root .border-b{border-bottom-width:1px}.ep-root .border-r{border-right-width:1px}.ep-root .border-input{border-color:hsl(var(--input))}.ep-root .border-slate-100{--tw-border-opacity:1;border-color:rgb(241 245 249/var(--tw-border-opacity,1))}.ep-root .border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}.ep-root .border-slate-200\/50{border-color:rgba(226,232,240,.5)}.ep-root .border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.ep-root .bg-\[\#f1f5f9\]{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.ep-root .bg-background{background-color:hsl(var(--background))}.ep-root .bg-destructive{background-color:hsl(var(--destructive))}.ep-root .bg-doc-bg{background-color:var(--doc-bg)}.ep-root .bg-primary{background-color:hsl(var(--primary))}.ep-root .bg-secondary{background-color:hsl(var(--secondary))}.ep-root .bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.ep-root .bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.ep-root .bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.ep-root .bg-transparent{background-color:transparent}.ep-root .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.ep-root .p-1{padding:.25rem}.ep-root .px-1{padding-left:.25rem;padding-right:.25rem}.ep-root .px-1\.5{padding-left:.375rem;padding-right:.375rem}.ep-root .px-2{padding-left:.5rem;padding-right:.5rem}.ep-root .px-3{padding-left:.75rem;padding-right:.75rem}.ep-root .px-4{padding-left:1rem;padding-right:1rem}.ep-root .px-5{padding-left:1.25rem;padding-right:1.25rem}.ep-root .px-8{padding-left:2rem;padding-right:2rem}.ep-root .py-0{padding-top:0;padding-bottom:0}.ep-root .py-1{padding-top:.25rem;padding-bottom:.25rem}.ep-root .py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.ep-root .py-2{padding-top:.5rem;padding-bottom:.5rem}.ep-root .py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.ep-root .pb-1{padding-bottom:.25rem}.ep-root .pl-3{padding-left:.75rem}.ep-root .pr-1{padding-right:.25rem}.ep-root .pt-2{padding-top:.5rem}.ep-root .text-left{text-align:left}.ep-root .text-center{text-align:center}.ep-root .text-base{font-size:1rem;line-height:1.5rem}.ep-root .text-sm{font-size:.875rem;line-height:1.25rem}.ep-root .text-xs{font-size:.75rem;line-height:1rem}.ep-root .font-medium{font-weight:500}.ep-root .font-normal{font-weight:400}.ep-root .uppercase{text-transform:uppercase}.ep-root .lowercase{text-transform:lowercase}.ep-root .capitalize{text-transform:capitalize}.ep-root .italic{font-style:italic}.ep-root .ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.ep-root .leading-tight{line-height:1.25}.ep-root .text-destructive-foreground{color:hsl(var(--destructive-foreground))}.ep-root .text-primary{color:hsl(var(--primary))}.ep-root .text-primary-foreground{color:hsl(var(--primary-foreground))}.ep-root .text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.ep-root .text-secondary-foreground{color:hsl(var(--secondary-foreground))}.ep-root .text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.ep-root .text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.ep-root .text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.ep-root .text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.ep-root .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.ep-root .underline{text-decoration-line:underline}.ep-root .line-through{text-decoration-line:line-through}.ep-root .underline-offset-4{text-underline-offset:4px}.ep-root .opacity-30{opacity:.3}.ep-root .opacity-50{opacity:.5}.ep-root .shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.ep-root .shadow-lg,.ep-root .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.ep-root .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.ep-root .outline-none{outline:2px solid transparent;outline-offset:2px}.ep-root .\!outline{outline-style:solid!important}.ep-root .outline{outline-style:solid}.ep-root .ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.ep-root .blur{--tw-blur:blur(8px)}.ep-root .blur,.ep-root .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.ep-root .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ep-root .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ep-root .duration-150{transition-duration:.15s}.ep-root .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ep-root .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.ep-root .zoom-in{--tw-enter-scale:0}.ep-root .zoom-out{--tw-exit-scale:0}.ep-root .duration-150{animation-duration:.15s}.ep-root .ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ep-root .ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.ep-root .running{animation-play-state:running}.ep-root{--background:0 0% 100%;--foreground:222.2 84% 4.9%;--card:0 0% 100%;--card-foreground:222.2 84% 4.9%;--popover:0 0% 100%;--popover-foreground:222.2 84% 4.9%;--primary:221.2 83.2% 53.3%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 46.9%;--accent:210 40% 96.1%;--accent-foreground:222.2 47.4% 11.2%;--destructive:0 84.2% 60.2%;--destructive-foreground:210 40% 98%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:221.2 83.2% 53.3%;--radius:0.5rem;--doc-bg:#f8f9fa;--doc-primary:#1a73e8;--doc-primary-hover:#1557b0;--doc-primary-light:#e8f0fe;--doc-text:#202124;--doc-text-muted:#5f6368;--doc-text-subtle:#9aa0a6;--doc-text-placeholder:#999;--doc-border:#e0e0e0;--doc-border-light:#dadce0;--doc-border-dark:#d0d0d0;--doc-border-input:#ccc;--doc-bg-subtle:#f5f5f5;--doc-bg-hover:#f1f3f4;--doc-bg-input:#f8f9fa;--doc-error:#c5221f;--doc-error-bg:#fce8e6;--doc-success:#34a853;--doc-success-bg:#e8f5e9;--doc-warning:#f9a825;--doc-warning-bg:#fff8e1;--doc-link:#0563c1}[contenteditable=true]{caret-color:#000;outline:none;caret-shape:bar}.docx-run-editable[contenteditable=true]{caret-color:#000;min-height:1em;display:inline}.docx-paragraph-empty [contenteditable=true]{min-height:1em;min-width:1px;display:inline-block}.docx-paragraph-editable{cursor:text}.docx-run-editable[contenteditable=true]:focus{outline:none}.docx-paragraph-editable:focus-within{outline:none}.docx-run ::selection,.docx-run-editable ::selection,.docx-run-editable::selection,.docx-run::selection,[contenteditable=true] ::selection,[contenteditable=true]::selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-run ::-moz-selection,.docx-run-editable ::-moz-selection,.docx-run-editable::-moz-selection,.docx-run::-moz-selection,[contenteditable=true] ::-moz-selection,[contenteditable=true]::-moz-selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-paragraph ::selection,.docx-paragraph-editable ::selection,.docx-paragraph-editable::selection,.docx-paragraph::selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-paragraph ::-moz-selection,.docx-paragraph-editable ::-moz-selection,.docx-paragraph-editable::-moz-selection,.docx-paragraph::-moz-selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-hyperlink ::selection,.docx-hyperlink::selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-hyperlink ::-moz-selection,.docx-hyperlink::-moz-selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-run-highlighted ::selection,.docx-run-highlighted::selection{background-color:rgba(26,115,232,.5)!important;color:inherit!important}.docx-run-highlighted ::-moz-selection,.docx-run-highlighted::-moz-selection{background-color:rgba(26,115,232,.5)!important;color:inherit!important}.docx-run-dark-bg ::selection,.docx-run-dark-bg::selection{background-color:rgba(100,181,246,.5)!important;color:inherit!important}.docx-run-dark-bg ::-moz-selection,.docx-run-dark-bg::-moz-selection{background-color:rgba(100,181,246,.5)!important;color:inherit!important}.docx-run-bold ::selection,.docx-run-bold::selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-run-bold ::-moz-selection,.docx-run-bold::-moz-selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-run-italic ::selection,.docx-run-italic::selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-run-italic ::-moz-selection,.docx-run-italic::-moz-selection{background-color:rgba(26,115,232,.3)!important;color:inherit!important}.docx-find-highlight{background-color:rgba(255,235,59,.5)!important;border-radius:2px}.docx-find-highlight-current{background-color:rgba(255,152,0,.6)!important;border-radius:2px;outline:2px solid rgba(255,152,0,.8)}.docx-ai-selection-preview{background-color:rgba(156,39,176,.2);border-bottom:2px dashed rgba(156,39,176,.6)}.docx-selection-overlay-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:hidden}.docx-selection-overlay-rect{position:absolute;background-color:rgba(66,133,244,.25);pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.docx-run-highlighted[contenteditable=true]{caret-color:#333}.docx-run-dark-bg[contenteditable=true]{caret-color:#fff}.docx-editor{cursor:default}.docx-editor-page{cursor:text}.docx-bookmark-end,.docx-bookmark-start,.docx-drawing-placeholder,.docx-field,.docx-list-marker,.docx-shape-placeholder{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.docx-run-has-variable [contenteditable=false]{cursor:default;-webkit-user-select:all;-moz-user-select:all;user-select:all}.layout-table-cell-selected{position:relative;outline:2px solid rgba(66,133,244,.6);outline-offset:-2px}.layout-table-cell-selected:after{content:"";position:absolute;inset:0;background-color:rgba(66,133,244,.15);pointer-events:none}.layout-table-resize-handle{background-color:transparent;transition:background-color .15s}.layout-table-resize-handle.dragging,.layout-table-resize-handle:hover{background-color:rgba(66,133,244,.6)}.layout-table-edge-handle-bottom,.layout-table-row-resize-handle{background-color:transparent;transition:background-color .15s}.layout-table-edge-handle-bottom.dragging,.layout-table-edge-handle-bottom:hover,.layout-table-row-resize-handle.dragging,.layout-table-row-resize-handle:hover{background-color:rgba(66,133,244,.6)}.layout-table-edge-handle-right{background-color:transparent;transition:background-color .15s}.layout-table-edge-handle-right.dragging,.layout-table-edge-handle-right:hover{background-color:rgba(66,133,244,.6)}.paged-editor--readonly .layout-table-edge-handle-bottom,.paged-editor--readonly .layout-table-edge-handle-right,.paged-editor--readonly .layout-table-resize-handle,.paged-editor--readonly .layout-table-row-resize-handle{display:none!important}.paged-editor--readonly .layout-page-footer,.paged-editor--readonly .layout-page-header{cursor:default;pointer-events:none}.paged-editor--readonly .layout-page-content{cursor:default}.docx-outline-heading-btn:hover{background-color:#f1f3f4}@media (max-width:1280px){.docx-outline-nav{display:none!important}}.layout-page-content{cursor:text}.layout-page-footer,.layout-page-header{cursor:pointer;transition:background-color .15s ease}.layout-page-footer:hover,.layout-page-header:hover{background-color:rgba(37,99,235,.06)}.layout-page-header:empty:hover:after{content:"Double-click to add header";display:block;text-align:center;color:#9ca3af;font-size:11px;padding:4px 0}.layout-page-footer:empty:hover:after{content:"Double-click to add footer";display:block;text-align:center;color:#9ca3af;font-size:11px;padding:4px 0}.hf-editor-pm .ProseMirror{outline:none;min-height:40px;padding:4px}.hf-editor-pm .ProseMirror:focus{outline:none}.hf-editor-pm .ProseMirror p{display:block;margin:0;padding:0;min-height:1em;white-space:pre-wrap;word-wrap:break-word;line-height:normal}.paged-editor--hf-editing .layout-page-content{opacity:.4;pointer-events:none;transition:opacity .15s ease}.paged-editor--editing-header .layout-page-header{border-bottom:1px dotted #4285f4}.paged-editor--editing-footer .layout-page-footer{border-top:1px dotted #4285f4}.paged-editor--editing-footer .layout-page-footer>*,.paged-editor--editing-header .layout-page-header>*{visibility:hidden}.paged-editor--hf-editing .layout-page-footer:hover,.paged-editor--hf-editing .layout-page-header:hover{background-color:transparent}.docx-section-break{position:relative}.docx-section-break:after{content:"Section Break (" attr(data-section-break) ")";display:block;text-align:center;font-size:9px;color:var(--doc-text-muted,#9ca3af);border-top:1px dashed var(--doc-border,#d1d5db);margin-top:4px;padding-top:2px;pointer-events:none}.ep-hyperlink-popup__icon-btn:hover{background:#f1f3f4}.ep-root .first\:pl-0:first-child{padding-left:0}.ep-root .last\:border-r-0:last-child{border-right-width:0}.ep-root .hover\:border-slate-300:hover{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.ep-root .hover\:bg-accent:hover{background-color:hsl(var(--accent))}.ep-root .hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.ep-root .hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.ep-root .hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.ep-root .hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.ep-root .hover\:bg-slate-100\/80:hover{background-color:rgba(241,245,249,.8)}.ep-root .hover\:bg-slate-50:hover{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.ep-root .hover\:bg-slate-800:hover{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}.ep-root .hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.ep-root .hover\:text-slate-900:hover{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.ep-root .hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.ep-root .hover\:underline:hover{text-decoration-line:underline}.ep-root .focus\:bg-slate-100:focus{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.ep-root .focus\:bg-slate-100\/80:focus{background-color:rgba(241,245,249,.8)}.ep-root .focus\:bg-white:focus{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.ep-root .focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.ep-root .focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ep-root .focus\:ring-slate-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(203 213 225/var(--tw-ring-opacity,1))}.ep-root .focus\:ring-slate-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(148 163 184/var(--tw-ring-opacity,1))}.ep-root .focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.ep-root .focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ep-root .focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.ep-root .focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.ep-root .disabled\:pointer-events-none:disabled{pointer-events:none}.ep-root .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.ep-root .disabled\:opacity-50:disabled{opacity:.5}.ep-root .data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.ep-root .data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.ep-root .data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.ep-root .data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.ep-root .data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.ep-root .data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.ep-root .data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.ep-root .data-\[state\=closed\]\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.ep-root .data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.ep-root .data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.ep-root .data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.ep-root .data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.ep-root .data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.ep-root .data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.ep-root :is(.\[\&\>span\]\:truncate>span){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|