94 lines
532 KiB
Java
94 lines
532 KiB
Java
|
|
var hs=Object.defineProperty,gs=Object.defineProperties;var Ms=Object.getOwnPropertyDescriptors;var Qn=Object.getOwnPropertySymbols;var Ds=Object.prototype.hasOwnProperty,Ls=Object.prototype.propertyIsEnumerable;var pt=Math.pow,bn=(o,e,t)=>e in o?hs(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,x=(o,e)=>{for(var t in e||(e={}))Ds.call(e,t)&&bn(o,t,e[t]);if(Qn)for(var t of Qn(e))Ls.call(e,t)&&bn(o,t,e[t]);return o},oe=(o,e)=>gs(o,Ms(e));var ke=(o,e,t)=>new Promise((i,n)=>{var l=a=>{try{r(t.next(a))}catch(R){n(R)}},s=a=>{try{r(t.throw(a))}catch(R){n(R)}},r=a=>a.done?i(a.value):Promise.resolve(a.value).then(l,s);r((t=t.apply(o,e)).next())});import Ps from"./BasicTable-C6eG0bgK.js";import Os from"./TableAction-BiXnWkvt.js";import"./TableImg.vue_vue_type_style_index_0_lang-65ZOQtFn.js";import{a4 as Fs,v as ji,au as Mi,b6 as Ns,aG as io,d as En,u as Ss,s as Ts,dY as Xs,aR as ps,aS as Is,F as ms,aB as fs,bR as Ws}from"./index-X7Y8jykP.js";import{B as Si}from"./index-BDvqZ5j4.js";import{u as Ys}from"./useListPage-CK9oQ-1O.js";import Vs from"./EoaWordTemplateModal-C5a1QyyZ.js";import{a as Zs,c as Us,l as Qs,p as bs,b as Es,d as Cn,e as Cs,h as Ks,s as xs,i as ws,j as ys}from"./EoaWordTemplate.api-7qCUSDxF.js";import{b as It,r as Fe,e as Gt,y as ft,z as We,A as Ne,f as Re,u as b,B as Ti,d as Hs,K as Xi,C as qe,F as Rt,Q as I,G as at,D as Dt,T as Kn,R as Zt,E as rt,J as Gi,n as Gs,X as vs,O as vi,H as Js}from"./vue-vendor-DNhG1Cve.js";import{B as gn}from"./index-D9GWo192.js";import{B as Ci}from"./BasicForm-ClUSoD_-.js";import"./helper-DcLcf4v6.js";import{u as Ki}from"./useForm-D61zovon.js";import{u as Mn,a as Ji}from"./useDrawer-BDPywy9W.js";import{a as As,u as Ri}from"./useModal-DaJ3Bflg.js";import{L as Bs,c as _s,b as ks,d as zs}from"./index-BskC1_qK.js";import js from"./index-saD4h7VJ.js";import $s from"./index-DklMb9Qc.js";import"./index-CfNJyBRj.js";import{D as qs}from"./dropdown-jkliuVyN.js";import"./BasicTable.vue_vue_type_style_index_0_lang-B9DxrWas.js";import"./injectionKey-DPVn4AgL.js";import"./index-DSsDi_fL.js";import"./Group-UHkub2tu.js";import"./Checkbox-Dbxs4we4.js";import"./index-BuONesFs.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./index-BzChaRPg.js";import"./FormOutlined-Y84itqS0.js";import"./useTableContext-CncNVXgp.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./useTimeout-D5AmIBZw.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./index-DTjkSGYl.js";import"./eagerComputed-BTlOruLW.js";import"./fromPairs-Dx9PT-t0.js";import"./useMaxLevel-DE205ncc.js";import"./index-DfHu-LAS.js";import"./Group-DBzJABA_.js";import"./RadioButton-DRBix2Fq.js";import"./index-C7ckZv9Z.js";import"./DirectoryTree-nk_YTTIy.js";import"./FolderOpenOutlined-SzIPA7z0.js";import"./index-Cl-8Hzo4.js";import"./scrollTo-D49dA-9c.js";import"./operationUnit-vCu2co3e.js";import"./index-C69VKHba.js";import"./BasicForm.vue_vue_type_style_index_0_lang-B29PWQy0.js";import"./index-DO7ZhK45.js";import"./breakpointEnum-BhAg6bcX.js";import"./index-DsixALRt.js";import"./dayjs-jnKD3YGS.js";import"./index-aCD42OrZ.js";import"./quarterOfYear-BU2sPnff.js";import"./index-J2mOtM3w.js";import"./dayjs-ALi1pEeb.js";import"./clickOutside-DHfwTU6R.js";import"./onMountedOrActivated-DhSdLlqP.js";import"./throttle-De_jAmBh.js";import"./uuid-CODpppBC.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useAppInject-DPZGPcR3.js";import"./index-CuWaQdlK.js";import"./sortable.esm-DJNoJSdJ.js";import"./RedoOutlined-Cq2g4Slp.js";import"./index-CeNCCWzL.js";import"./useEventListener-BRXjwk7A.js";import"./useBreakpoint-DXhPW7nV.js";import"./uniqBy--vsL0WVB.js";import"./UpOutlined-B1UMbtrP.js";import"./TableAction.vue_vue_type_style_index_0_lang-BIWZ0bGo.js";import"./index-fAAIzD3j.js";import"./index-DfX9t4DO.js";import"./isNumeric-DjvBa-1E.js";import"./useTable-DbHE4FHE.js";import"./useMethods-D3efiSSd.js";import"./useApprovalSelection-D4w
|
|||
|
|
`,Dn=" ",wn=" ",tl=["·","、",":",":",",",",",".","。",";",";","?","?","!","!"],no={[wt.HALF]:1/2,[wt.ONE_THIRD]:1/3,[wt.QUARTER]:1/4},il={ENGLISH:"A-Za-z"},nl="日";var ge;(function(o){o.LEFT="left",o.CENTER="center",o.RIGHT="right",o.ALIGNMENT="alignment",o.JUSTIFY="justify"})(ge||(ge={}));const Ai=/[0-9.]/,ol=/[\uD800-\uDBFF][\uDC00-\uDFFF]/,sl=/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\
|
|||
|
|
]`);function oo(o,e){let t;return function(...i){t&&window.clearTimeout(t),t=window.setTimeout(()=>{o.apply(this,i)},e)}}function al(o,e){let t=0,i;return function(...n){const l=Date.now();l-t>=e?(window.clearTimeout(i),o.apply(this,n),t=l):(window.clearTimeout(i),i=window.setTimeout(()=>{o.apply(this,n),t=l},e))}}function $i(o,e){if(!o||typeof o!="object")return o;let t={};return Array.isArray(o)?t=o.map(i=>$i(i,e)):Object.keys(o).forEach(i=>{if(!e.includes(i))return t[i]=$i(o[i],e)}),t}function Te(o){if(!o||typeof o!="object")return o;let e={};return Array.isArray(o)?e=o.map(t=>Te(t)):Object.keys(o).forEach(t=>e[t]=Te(o[t])),e}function Bi(o){return o&&o.nodeType===1&&o.tagName.toLowerCase()==="body"}function Ii(o,e,t){if(o&&!Bi(o))for(o=o;o;){if(!e||e(o)||Bi(o))return e&&!e(o)&&Bi(o)?null:o;o=o.parentNode}return null}function Oe(){function o(){return((1+Math.random())*65536|0).toString(16).substring(1)}return o()+o()+"-"+o()+"-"+o()+"-"+o()+"-"+o()+o()+o()}function Pt(o){const e=[];if(Intl.Segmenter){const i=new Intl.Segmenter().segment(o);for(const{segment:n}of i)e.push(n)}else{const t=new Map;for(const n of o.matchAll(ll))t.set(n.index,n[0]);let i=0;for(;i<o.length;){const n=t.get(i);n?(e.push(n),i+=n.length):(e.push(o[i]),i++)}}return e}function so(o,e){const t=document.createElement("a");t.href=o,t.download=e,t.click()}function Rl(o,e){ul(3,o,e)}function ul(o,e,t){let i=0,n=0;const l=function(s){i=new Date().getTime()-n<300?i+1:0,n=new Date().getTime(),i>=o-1&&(t(s),i=0)};e.addEventListener("click",l)}function mi(o){return Object.prototype.toString.call(o)==="[object Object]"}function yn(o){return Array.isArray(o)}function lo(o,e){if(mi(o)&&mi(e)){const t=e;for(const[i,n]of Object.entries(o))t[i]?t[i]=lo(n,t[i]):t[i]=n}else yn(o)&&yn(e)&&e.push(...o);return e}function fi(o){setTimeout(()=>{o()},0)}function Hn(o){const e=["零","一","二","三","四","五","六","七","八","九"],t=["","十","百","千","万","十","百","千","亿","十","百","千","万","十","百","千","亿"];if(!o||isNaN(o))return"零";const i=o.toString().split("");let n="";for(let l=0;l<i.length;l++){const s=i.length-1-l;n=`${t[l]}${n}`,n=`${e[Number(i[s])]}${n}`}return n=n.replace(/零(千|百|十)/g,"零").replace(/十零/g,"十"),n=n.replace(/零+/g,"零"),n=n.replace(/零亿/g,"亿").replace(/零万/g,"万"),n=n.replace(/亿万/g,"亿"),n=n.replace(/零+$/,""),n=n.replace(/^一十/g,"十"),n}function ci(o,e,t){for(let i=0;i<o.length;i++){const n=o[i],l=e[n];l!==void 0?t[n]=l:delete t[n]}}function ut(o,e){const t={};for(const i in o)e.includes(i)&&(t[i]=o[i]);return t}function Qt(o,e){const t={};for(const i in o)e.includes(i)||(t[i]=o[i]);return t}function cl(o){const t=new TextEncoder().encode(o),i=Array.from(t,l=>String.fromCharCode(l));return window.btoa(i.join(""))}function dl(o){let e=o.parentElement;for(;e;){const i=window.getComputedStyle(e).getPropertyValue("overflow-y");if(e.scrollHeight>e.clientHeight&&(i==="auto"||i==="scroll"))return e;e=e.parentElement}return document.documentElement}function hl(o,e){return o.length!==e.length?!1:!o.some(t=>!e.includes(t))}function gl(o,e){if(!mi(o)||!mi(e))return!1;const t=Object.keys(o),i=Object.keys(e);return t.length!==i.length?!1:!t.some(n=>e[n]!==o[n])}function Ml(o,e){const t=o.x,i=o.x+o.width,n=o.y,l=o.y+o.height,s=e.x,r=e.x+e.width,a=e.y,R=e.y+e.height;return!(t>r||i<s||n>R||l<a)}const Dl=12,Ll={width:1,color:"#000000",dragWidth:2,dragColor:"#0000FF"},zt="editor-component",ee="ce",Pn=`${ee}-clipboard`;var Ke;(function(o){o.UP="top",o.DOWN="down",o.LEFT="left",o.RIGHT="right"})(Ke||(Ke={}));var S;(function(o){o.TEXT="text",o.IMAGE="image",o.TABLE="table",o.HYPERLINK="hyperlink",o.SUPERSCRIPT="superscript",o.SUBSCRIPT="subscript",o.SEPARATOR="separator",o.PAGE_BREAK="pageBreak",o.CONTROL="control",o.CHECKBOX="checkbox",o.RADIO="radio",o.LATEX="latex",o.TAB="tab",o.DATE="date",o.BLOCK="block",o.TITLE="title",o.LIST="list"})(S||(S={}));const bt=["bold","color","highlight","font","size","italic","underline","strikeout","textDecoration"],yt=["rowFlex","rowMargin"],Pl=["type","font","siz
|
|||
|
|
<rect width="${e}" height="${t}" fill="url(#mosaic)" />
|
|||
|
|
<defs>
|
|||
|
|
<pattern id="mosaic" x="${n}" y="${l}" width="16" height="16" patternUnits="userSpaceOnUse">
|
|||
|
|
<rect width="8" height="8" fill="#cccccc" />
|
|||
|
|
<rect width="8" height="8" fill="#cccccc" transform="translate(8, 8)" />
|
|||
|
|
</pattern>
|
|||
|
|
</defs>
|
|||
|
|
</svg>`,r=new Image;return r.src=`data:image/svg+xml;base64,${cl(s)}`,r}render(e,t,i,n){const{scale:l}=this.options,s=t.width*l,r=t.height*l;if(this.imageCache.has(t.id)){const a=this.imageCache.get(t.id);e.drawImage(a,i,n,s,r)}else{const a=new Promise((R,u)=>{const c=new Image;c.setAttribute("crossOrigin","Anonymous"),c.src=t.value,c.onload=()=>{this.imageCache.set(t.id,c),R(t),t.imgDisplay===ne.FLOAT_BOTTOM?this.draw.render({isCompute:!1,isSetCursor:!1,isSubmitHistory:!1}):e.drawImage(c,i,n,s,r)},c.onerror=d=>{const h=this.getFallbackImage(s,r);h.onload=()=>{e.drawImage(h,i,n,s,r),this.imageCache.set(t.id,h)},u(d)}});this.addImageObserver(a)}}}const Pi=82;function At(o){return en[o]==null&&pl(o),en[o]}function pl(o){const e=Il[o];if(e==null)return;const t=e.substring(3,5),i=1*t.charCodeAt(0)-Pi,n=1*t.charCodeAt(1)-Pi,l=e.substring(5),s=[[]];let r=1/0,a=-1/0,R=1/0,u=-1/0,c=0;for(;c<l.length;){const d=l.substring(c,c+2);if(d==" R")s.push([]);else{const h=d.charCodeAt(0)-Pi-i,g=d.charCodeAt(1)-Pi;r=Math.min(g,r),a=Math.max(g,a),R=Math.min(h,R),u=Math.max(h,u),s[s.length-1].push([h,g])}c+=2}en[o]={w:n-i,xmin:R,xmax:u,ymin:r,ymax:a,polylines:s}}const en={},Il={1:" 9MWRMNV RRMVV RPSTS",2:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",3:" 11MXVNTMRMPNOPOSPURVTVVU",4:" 12MWOMOV ROMRMTNUPUSTURVOV",5:" 12MWOMOV ROMUM ROQSQ ROVUV",6:" 9MVOMOV ROMUM ROQSQ",7:" 15MXVNTMRMPNOPOSPURVTVVUVR RSRVR",8:" 9MWOMOV RUMUV ROQUQ",9:" 3PTRMRV",10:" 7NUSMSTRVPVOTOS",11:" 9MWOMOV RUMOS RQQUV",12:" 6MVOMOV ROVUV",13:" 12LXNMNV RNMRV RVMRV RVMVV",14:" 9MWOMOV ROMUV RUMUV",15:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",16:" 10MWOMOV ROMSMUNUQSROR",17:" 17MXRMPNOPOSPURVSVUUVSVPUNSMRM RSTVW",18:" 13MWOMOV ROMSMUNUQSROR RRRUV",19:" 13MWUNSMQMONOOPPTRUSUUSVQVOU",20:" 6MWRMRV RNMVM",21:" 9MXOMOSPURVSVUUVSVM",22:" 6MWNMRV RVMRV",23:" 12LXNMPV RRMPV RRMTV RVMTV",24:" 6MWOMUV RUMOV",25:" 7MWNMRQRV RVMRQ",26:" 9MWUMOV ROMUM ROVUV",27:" 9MWRMNV RRMVV RPSTS",28:" 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV",29:" 6MVOMOV ROMUM",30:" 9MWRMNV RRMVV RNVVV",31:" 12MWOMOV ROMUM ROQSQ ROVUV",32:" 9MWUMOV ROMUM ROVUV",33:" 9MWOMOV RUMUV ROQUQ",34:" 20MXRMPNOPOSPURVSVUUVSVPUNSMRM RQQTR RTQQR",35:" 3PTRMRV",36:" 9MWOMOV RUMOS RQQUV",37:" 6MWRMNV RRMVV",38:" 12LXNMNV RNMRV RVMRV RVMVV",39:" 9MWOMOV ROMUV RUMUV",40:" 12MWOMUM RPQTR RTQPR ROVUV",41:" 14MXRMPNOPOSPURVSVUUVSVPUNSMRM",42:" 9MWOMOV RUMUV ROMUM",43:" 10MWOMOV ROMSMUNUQSROR",44:" 10MWOMRQOV ROMUM ROVUV",45:" 6MWRMRV RNMVM",46:" 15MWNONNOMPMQNRPRV RVOVNUMTMSNRP",47:" 13LXRMRV RPONPNSPTTTVSVPTOPO",48:" 6MWOMUV RUMOV",49:" 12LXRMRV RNOOPOSQTSTUSUPVO",50:" 13MXOVQVOROPPNRMSMUNVPVRTVVV",200:" 12MWRMPNOPOSPURVTUUSUPTNRM",201:" 4MWPORMRV",202:" 9MWONQMSMUNUPTROVUV",203:" 15MWONQMSMUNUPSQ RRQSQURUUSVQVOU",204:" 7MWSMSV RSMNSVS",205:" 14MWPMOQQPRPTQUSTURVQVOU RPMTM",206:" 14MWTMRMPNOPOSPURVTUUSTQRPPQOS",207:" 6MWUMQV ROMUM",208:" 19MWQMONOPQQSQUPUNSMQM RQQOROUQVSVUUURSQ",209:" 14MWUPTRRSPROPPNRMTNUPUSTURVPV",210:" 6PURURVSVSURU",211:" 7PUSVRVRUSUSWRY",212:" 12PURPRQSQSPRP RRURVSVSURU",213:" 13PURPRQSQSPRP RSVRVRUSUSWRY",214:" 12PURMRR RSMSR RRURVSVSURU",215:" 17NWPNRMSMUNUPRQRRSRSQUP RRURVSVSURU",216:" 3PTRMRQ",217:" 6NVPMPQ RTMTQ",218:" 10NVQMPNPPQQSQTPTNSMQM",219:" 16MWUNSMQMONOPQQTRUSUUSVQVOU RRLRW",220:" 3MWVLNW",221:" 7OVTLRNQPQSRUTW",222:" 7NUPLRNSPSSRUPW",223:" 3PTRLRW",224:" 3LXNRVR",225:" 6LXRNRV RNRVR",226:" 6LXNPVP RNTVT",227:" 6MWOOUU RUOOU",228:" 9MWRORU ROPUT RUPOT",229:" 6PURQRRSRSQRQ",230:" 7PUSMRORQSQSPRP",231:" 7PUSNRNRMSMSORQ",232:" 7LXSOVRSU RNRVR",233:" 12MXRLPW RULSW ROPVP ROSVS",234:" 21LXVRURTSSURVOVNUNSORRQSPSNRMPMONOPQSSUUVVV",235:" 20LXNNOQOSNV RVNUQUSVV RNNQOSOVN RNVQUSUVV",501:" 9I[RFJ[ RRFZ[ RMTWT",502:" 24G\\KFK[ RKFTFWGXHYJYLXNWOTP RKPTPWQXRYTYWXYWZT[K[",503:" 19H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZV",504:" 16G\\KFK[ RKFRFUGWIXKYNYSXVWXUZR[K[",505:" 12H[LFL[ RLFYF RLPTP RL[Y[",506:" 9HZLFL[ RLFYF RLPTP",507:" 23H]ZKYIWGUFQFOGMILKKNKSLVMXOZQ[U[WZYXZVZS RUSZS",508:" 9G]KFK[ RYFY[ RKPYP",509:" 3NVRFR[",510:" 11JZVFVVUYTZR[P[NZMYLVLT",511:" 9G\\KFK[ RY
|
|||
|
|
xmlns="http://www.w3.org/2000/svg"
|
|||
|
|
width="${a}" height="${R}"
|
|||
|
|
fill="none" stroke="${(t=e.FG_COLOR)!=null?t:"black"}" stroke-width="${(i=e.STROKE_W)!=null?i:1}"
|
|||
|
|
stroke-linecap="round" stroke-linejoin="round"
|
|||
|
|
>`;e.BG_COLOR&&(u+=`<rect x="0" y="0" width="${a}" height="${R}" fill="${e.BG_COLOR}" stroke="none"></rect>`),u+='<path d="';for(let c=0;c<this._polylines.length;c++){u+="M";for(let d=0;d<this._polylines[c].length;d++){const[h,g]=this._polylines[c][d];u+=Mt(n+h*s)+" "+Mt(l+g*r)+" "}}return u+='"/>',u+="</svg>",{svg:`data:image/svg+xml;base64,${window.btoa(u)}`,width:Math.ceil(a),height:Math.ceil(R)}}pdf(e){var t;e||(e={});const[i,n,l,s]=this.resolveScale(e),r=Mt(this._tree.bbox.w*l+i*2),a=Mt(this._tree.bbox.h*s+n*2);let R=`%PDF-1.1
|
|||
|
|
%%¥±ë
|
|||
|
|
1 0 obj
|
|||
|
|
<< /Type /Catalog
|
|||
|
|
/Pages 2 0 R
|
|||
|
|
>>endobj
|
|||
|
|
2 0 obj
|
|||
|
|
<< /Type /Pages
|
|||
|
|
/Kids [3 0 R]
|
|||
|
|
/Count 1
|
|||
|
|
/MediaBox [0 0 ${r} ${a}]
|
|||
|
|
>>
|
|||
|
|
endobj
|
|||
|
|
3 0 obj
|
|||
|
|
<< /Type /Page
|
|||
|
|
/Parent 2 0 R
|
|||
|
|
/Resources
|
|||
|
|
<< /Font
|
|||
|
|
<< /F1
|
|||
|
|
<< /Type /Font
|
|||
|
|
/Subtype /Type1
|
|||
|
|
/BaseFont /Times-Roman
|
|||
|
|
>>
|
|||
|
|
>>
|
|||
|
|
>>
|
|||
|
|
/Contents [`,u="",c=4;for(let d=0;d<this._polylines.length;d++){u+=`${c} 0 obj
|
|||
|
|
<< /Length 0 >>
|
|||
|
|
stream
|
|||
|
|
1 j 1 J ${(t=e.STROKE_W)!=null?t:1} w
|
|||
|
|
`;for(let h=0;h<this._polylines[d].length;h++){const[g,D]=this._polylines[d][h];u+=`${Mt(i+g*l)} ${Mt(a-(n+D*s))} ${h?"l":"m"} `}u+=`
|
|||
|
|
S
|
|||
|
|
endstream
|
|||
|
|
endobj
|
|||
|
|
`,R+=`${c} 0 R `,c++}return R+=`]
|
|||
|
|
>>
|
|||
|
|
endobj
|
|||
|
|
`,u+=`
|
|||
|
|
trailer
|
|||
|
|
<< /Root 1 0 R
|
|||
|
|
/Size 0
|
|||
|
|
>>startxref
|
|||
|
|
|
|||
|
|
%%EOF
|
|||
|
|
`,R+u}boxes(e){e||(e={});const[t,i,n,l]=this.resolveScale(e),s=[];for(let r=0;r<this._tree.chld.length;r++){const{x:a,y:R,w:u,h:c}=this._tree.chld[r].bbox;s.push({x:t+a*n,y:i+R*l,w:u*n,h:c*l})}return s}box(e){e||(e={});const[t,i,n,l]=this.resolveScale(e);return{x:t+this._tree.bbox.x*n,y:i+this._tree.bbox.y*l,w:this._tree.bbox.w*n,h:this._tree.bbox.h*l}}}class co extends ao{static convertLaTextToSVG(e){return new Ul(e).svg({SCALE_X:10,SCALE_Y:10,MARGIN_X:0,MARGIN_Y:0})}render(e,t,i,n){const{scale:l}=this.options,s=t.width*l,r=t.height*l;if(this.imageCache.has(t.value)){const a=this.imageCache.get(t.value);e.drawImage(a,i,n,s,r)}else{const a=new Promise((R,u)=>{const c=new Image;c.src=t.laTexSVG,c.onload=()=>{e.drawImage(c,i,n,s,r),this.imageCache.set(t.value,c),R(t)},c.onerror=d=>{u(d)}});this.addImageObserver(a)}}}var Nt;(function(o){o.UL="ul",o.OL="ol"})(Nt||(Nt={}));var Kt;(function(o){o.DISC="disc",o.CIRCLE="circle",o.SQUARE="square",o.CHECKBOX="checkbox"})(Kt||(Kt={}));var Gn;(function(o){o.DECIMAL="decimal"})(Gn||(Gn={}));var ot;(function(o){o.DISC="disc",o.CIRCLE="circle",o.SQUARE="square",o.DECIMAL="decimal",o.CHECKBOX="checkbox"})(ot||(ot={}));const nn={[Kt.DISC]:"•",[Kt.CIRCLE]:"◦",[Kt.SQUARE]:"▫︎",[Kt.CHECKBOX]:"☑️"},Ql={[Nt.OL]:"ol",[Nt.UL]:"ul"},bl={[ot.DISC]:"disc",[ot.CIRCLE]:"circle",[ot.SQUARE]:"square",[ot.DECIMAL]:"decimal",[ot.CHECKBOX]:"checkbox"};var Ie;(function(o){o.FIRST="first",o.SECOND="second",o.THIRD="third",o.FOURTH="fourth",o.FIFTH="fifth",o.SIXTH="sixth"})(Ie||(Ie={}));const El={defaultFirstSize:26,defaultSecondSize:24,defaultThirdSize:22,defaultFourthSize:20,defaultFifthSize:18,defaultSixthSize:16},ho={[Ie.FIRST]:"defaultFirstSize",[Ie.SECOND]:"defaultSecondSize",[Ie.THIRD]:"defaultThirdSize",[Ie.FOURTH]:"defaultFourthSize",[Ie.FIFTH]:"defaultFifthSize",[Ie.SIXTH]:"defaultSixthSize"},on={[Ie.FIRST]:1,[Ie.SECOND]:2,[Ie.THIRD]:3,[Ie.FOURTH]:4,[Ie.FIFTH]:5,[Ie.SIXTH]:6},Cl={H1:Ie.FIRST,H2:Ie.SECOND,H3:Ie.THIRD,H4:Ie.FOURTH,H5:Ie.FIFTH,H6:Ie.SIXTH};var Se;(function(o){o.TEXT="text",o.SELECT="select",o.CHECKBOX="checkbox",o.RADIO="radio",o.DATE="date"})(Se||(Se={}));var Q;(function(o){o.PREFIX="prefix",o.POSTFIX="postfix",o.PLACEHOLDER="placeholder",o.VALUE="value",o.CHECKBOX="checkbox",o.RADIO="radio"})(Q||(Q={}));var sn;(function(o){o.ROW_START="rowStart",o.VALUE_START="valueStart"})(sn||(sn={}));var Vi;(function(o){o.CONTAIN="contain",o.COVER="cover"})(Vi||(Vi={}));var Ut;(function(o){o.REPEAT="repeat",o.NO_REPEAT="no-repeat",o.REPEAT_X="repeat-x",o.REPEAT_Y="repeat-y"})(Ut||(Ut={}));const Kl={color:"#FFFFFF",image:"",size:Vi.COVER,repeat:Ut.NO_REPEAT,applyPageNumbers:[]};var xe;(function(o){o.TOP="top",o.MIDDLE="middle",o.BOTTOM="bottom"})(xe||(xe={}));const xl={width:14,height:14,gap:5,lineWidth:1,fillStyle:"#5175f4",strokeStyle:"#ffffff",verticalAlign:xe.BOTTOM},wl={placeholderColor:"#9c9b9b",bracketColor:"#000000",prefix:"{",postfix:"}",borderWidth:1,borderColor:"#000000",activeBackgroundColor:""},yl={bottom:30,maxHeightRadio:wt.HALF,disabled:!1,editable:!0},Hl={opacity:.1,backgroundColor:"#E99D00",activeOpacity:.5,activeBackgroundColor:"#E99D00",disabled:!1},Gl={top:30,maxHeightRadio:wt.HALF,disabled:!1,editable:!0},vl={disabled:!0,color:"#CCCCCC",lineWidth:1.5},Jl={font:"Microsoft YaHei",fontSize:12,lineDash:[3,1]},ln={PAGE_NO:"{pageNo}",PAGE_COUNT:"{pageCount}"},Al={bottom:60,size:12,font:"Microsoft YaHei",color:"#000000",rowFlex:ge.CENTER,format:ln.PAGE_NO,numberType:gi.ARABIC,disabled:!1,startPageNo:1,fromPageNo:0,maxPageNo:null},Bl={data:"",color:"#DCDFE6",opacity:1,size:16,font:"Microsoft YaHei"},_l={width:14,height:14,gap:5,lineWidth:1,fillStyle:"#5175f4",strokeStyle:"#000000",verticalAlign:xe.BOTTOM},kl={lineWidth:1,strokeStyle:"#000000"},zl={tdPadding:[0,5,5,5],defaultTrMinHeight:42,defaultColMinWidth:40},rn={data:"",color:"#AEB5C0",opacity:.3,size:200,font:"Microsoft YaHei",repeat:!1,gap:[10,10]},jl={tipDisabled:!0};var Zi;(function(o){o.PAGE="page",o.CONTINUITY="continuity"})(Zi||(Zi={}));const $l={size:12,font:"Microsoft YaHei",color:"#000000",disabled:!0,right:
|
|||
|
|
`?B:w,letterSpacing:y?L.gap:0,control:r.control,controlComponent:Q.VALUE})),Z++,s++}}}}else if(h===Se.RADIO){if(Array.isArray(g)&&g.length){const Y=T.reduce((Z,U)=>Z.concat(U.value.split("").map(m=>oe(x({},U),{value:m}))),[]);let V=0;for(let Z=0;Z<g.length;Z++){const U=g[Z];o.splice(s,0,oe(x(x({},O),N),{controlId:P,value:"",type:r.type,control:r.control,controlComponent:Q.RADIO,radio:{code:U.code,value:d===U.code}})),s++;const m=Pt(U.value);for(let X=0;X<m.length;X++){const K=m[X],w=X===m.length-1;o.splice(s,0,oe(x(x(x({},O),N),Y[V]),{controlId:P,value:K===`
|
|||
|
|
`?B:K,letterSpacing:w?M.gap:0,control:r.control,controlComponent:Q.VALUE})),V++,s++}}}}else{if((!u||!u.length)&&Array.isArray(g)&&g.length){const Y=g.find(V=>V.code===d);Y&&(T=[{value:Y.value}])}tt(T,oe(x({},e),{isHandleFirstElement:!1,isForceCompensation:!1}));for(let Y=0;Y<T.length;Y++){const V=T[Y],Z=V.value;o.splice(s,0,oe(x(x(x({},O),N),V),{controlId:P,value:Z===`
|
|||
|
|
`?B:Z,type:V.type||S.TEXT,control:r.control,controlComponent:Q.VALUE})),s++}}}else if(c){const T=oe(x({},N),{color:n.control.placeholderColor}),Y=Pt(c);for(let V=0;V<Y.length;V++){const Z=Y[V];o.splice(s,0,oe(x(x({},O),T),{controlId:P,value:Z===`
|
|||
|
|
`?B:Z,type:r.type,control:r.control,controlComponent:Q.PLACEHOLDER})),s++}}const f=Pt(R||D.postfix);for(let T=0;T<f.length;T++){const Y=f[T];o.splice(s,0,oe(x(x({},O),p),{controlId:P,value:Y,type:r.type,control:r.control,controlComponent:Q.POSTFIX})),s++}s--}else if((!r.type||dt.includes(r.type))&&r.value.length>1){o.splice(s,1);const a=Pt(r.value);for(let R=0;R<a.length;R++)o.splice(s+R,0,oe(x({},r),{value:a[R]}));r=o[s]}if((r.value===`
|
|||
|
|
`||r.value==`\r
|
|||
|
|
`)&&(r.value=B),(r.type===S.IMAGE||r.type===S.BLOCK)&&(r.id=Oe()),r.type===S.LATEX){const{svg:a,width:R,height:u}=co.convertLaTextToSVG(r.value);r.width=r.width||R,r.height=r.height||u,r.laTexSVG=a,r.id=Oe()}s++}}function er(o,e){const t=Object.keys(o),i=Object.keys(e);if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){const l=t[n];if(l!=="value"&&!(l==="groupIds"&&Array.isArray(o[l])&&Array.isArray(e[l])&&hl(o[l],e[l]))&&o[l]!==e[l])return!1}return!0}function kt(o,e={}){const{extraPickAttrs:t}=e,i=Ol;t&&i.push(...t);const n={value:o.value===B?`
|
|||
|
|
`:o.value};return i.forEach(l=>{const s=o[l];s!==void 0&&(n[l]=s)}),n}function Xe(o,e={}){const{extraPickAttrs:t}=e,i=Te(o),n=[];let l=0;for(;l<i.length;){let s=i[l];if(l===0&&s.value===B&&!s.listId&&(!s.type||s.type===S.TEXT)){l++;continue}if(s.titleId&&s.level){const a=s.titleId;if(a){const R=s.level,u={type:S.TITLE,title:s.title,value:"",level:R},c=[];for(;l<i.length;){const d=i[l];if(a!==d.titleId){l--;break}delete d.level,delete d.title,c.push(d),l++}u.valueList=Xe(c,e),s=u}}else if(s.listId&&s.listType){const a=s.listId;if(a){const R=s.listType,u=s.listStyle,c={type:S.LIST,value:"",listId:a,listType:R,listStyle:u},d=[];for(;l<i.length;){const h=i[l];if(a!==h.listId){l--;break}delete h.listType,delete h.listStyle,d.push(h),l++}c.valueList=Xe(d,e),s=c}}else if(s.type===S.TABLE){if(s.pagingId){let a=l+1,R=0;for(;a<i.length;){const u=i[a];if(u.pagingId===s.pagingId)s.height+=u.height,s.trList.push(...u.trList),a++,R++;else break}l+=R}if(s.trList)for(let a=0;a<s.trList.length;a++){const R=s.trList[a];delete R.id;for(let u=0;u<R.tdList.length;u++){const c=R.tdList[u],d={colspan:c.colspan,rowspan:c.rowspan,value:Xe(c.value,e)};Fl.forEach(h=>{const g=c[h];g!==void 0&&(d[h]=g)}),R.tdList[u]=d}}}else if(s.type===S.HYPERLINK){const a=s.hyperlinkId;if(a){const R={type:S.HYPERLINK,value:"",url:s.url},u=[];for(;l<i.length;){const c=i[l];if(a!==c.hyperlinkId){l--;break}delete c.type,delete c.url,u.push(c),l++}R.valueList=Xe(u,e),s=R}}else if(s.type===S.DATE){const a=s.dateId;if(a){const R={type:S.DATE,value:"",dateFormat:s.dateFormat},u=[];for(;l<i.length;){const c=i[l];if(a!==c.dateId){l--;break}delete c.type,delete c.dateFormat,u.push(c),l++}R.valueList=Xe(u,e),s=R}}else if(s.controlId){const a=s.controlId;if(a){const R=ut(s,Et),u=x(x({},s.control),R),c=oe(x({},ut(s,yt)),{type:S.CONTROL,value:"",control:u,controlId:a}),d=[];for(;l<i.length;){const h=i[l];if(a!==h.controlId){l--;break}h.controlComponent===Q.VALUE&&(delete h.control,delete h.controlId,d.push(h)),l++}c.control.value=Xe(d,e),s=kt(c,{extraPickAttrs:t})}}const r=kt(s,{extraPickAttrs:t});if(!s.type||s.type===S.TEXT||s.type===S.SUBSCRIPT||s.type===S.SUPERSCRIPT)for(;l<i.length;){const a=i[l+1];if(l++,a&&er(r,kt(a,{extraPickAttrs:t}))){const R=a.value===B?`
|
|||
|
|
`:a.value;r.value+=R}else break}else l++;n.push(r)}return n}function tr(o){switch(window.getComputedStyle(o).textAlign){case"left":case"start":return ge.LEFT;case"center":return ge.CENTER;case"right":case"end":return ge.RIGHT;case"justify":return ge.ALIGNMENT;case"justify-all":return ge.JUSTIFY;default:return ge.LEFT}}function go(o){return o===ge.ALIGNMENT?"justify":o}function ir(o){switch(o){case ge.LEFT:return"flex-start";case ge.CENTER:return"center";case ge.RIGHT:return"flex-end";case ge.ALIGNMENT:case ge.JUSTIFY:return"space-between";default:return"flex-start"}}function Mo(o){return!o.type||dt.includes(o.type)}function jt(o,e){const t=o[e];if(!t)return null;const i=o[e+1];return!t.listId&&t.value===B&&i&&i.value!==B?i:t}function ve(o,e,t,i){var n,l,s;let r=jt(o,t);if(!r)return;const{isBreakWhenWrap:a=!1,editorOptions:R}=i||{},{mode:u}=R||{};u!==Le.DESIGN&&((n=r.title)!=null&&n.disabled)&&(r=Qt(r,On));let c=!1;for(let d=0;d<e.length;d++){const h=e[d];if(a&&!r.listId&&Ln.test(h.value)&&(c=!0),c||!r.listId&&h.type===S.LIST){const D=[...Wi,...yt];ci(D,r,h),(l=h.valueList)==null||l.forEach(L=>{ci(D,r,L)});continue}(s=h.valueList)!=null&&s.length&&ve(o,h.valueList,t,i);const g=[...ro];$t(h)||g.push(...yt),ci(g,r,h)}}function nr(o,e){let t="span";o.type===S.SUPERSCRIPT?t="sup":o.type===S.SUBSCRIPT&&(t="sub");const i=document.createElement(t);return i.style.fontFamily=o.font||e.defaultFont,o.rowFlex&&(i.style.textAlign=go(o.rowFlex)),o.color&&(i.style.color=o.color),o.bold&&(i.style.fontWeight="600"),o.italic&&(i.style.fontStyle="italic"),i.style.fontSize=`${o.size||e.defaultSize}px`,o.highlight&&(i.style.backgroundColor=o.highlight),o.underline&&(i.style.textDecoration="underline"),o.strikeout&&(i.style.textDecoration+=" line-through"),i.innerText=o.value.replace(new RegExp(`${B}`,"g"),`
|
|||
|
|
`),i}function Do(o){let e=0;const t=new Map;for(let i=0;i<o.length;i++){const n=o[i];if(i===0){if(n.checkbox)continue;n.value=n.value.replace(Ln,"")}if(n.listWrap){const l=t.get(e)||[];l.push(n),t.set(e,l)}else{const l=n.value.split(`
|
|||
|
|
`);for(let s=0;s<l.length;s++){s>0&&(e+=1);const r=l[s],a=t.get(e)||[];a.push(oe(x({},n),{value:r})),t.set(e,a)}}}return t}function or(o){var e;const t=[];if(!o.length)return t;let i=((e=o[0])==null?void 0:e.rowFlex)||null;t.push({rowFlex:i,data:[o[0]]});for(let n=1;n<o.length;n++){const l=o[n],s=l.rowFlex||null;i===s&&!$t(l)&&!$t(o[n-1])?t[t.length-1].data.push(l):(t.push({rowFlex:s,data:[l]}),i=s)}for(let n=0;n<t.length;n++){const l=t[n];l.data=Xe(l.data)}return t}function di(o,e){const t=Fn(e);function i(s){var r,a,R,u,c,d,h,g,D;const L=document.createElement("div");for(let M=0;M<s.length;M++){const P=s[M];if(P.type===S.TABLE){const O=document.createElement("table");O.setAttribute("cellSpacing","0"),O.setAttribute("cellpadding","0"),O.setAttribute("border","0");const N="1px solid #000000";!P.borderType||P.borderType===ct.ALL?(O.style.borderTop=N,O.style.borderLeft=N):P.borderType===ct.EXTERNAL&&(O.style.border=N),O.style.width=`${P.width}px`;const p=document.createElement("colgroup");for(let f=0;f<P.colgroup.length;f++){const T=P.colgroup[f],Y=document.createElement("col");Y.setAttribute("width",`${T.width}`),p.append(Y)}O.append(p);const W=P.trList;for(let f=0;f<W.length;f++){const T=document.createElement("tr"),Y=W[f];T.style.height=`${Y.height}px`;for(let V=0;V<Y.tdList.length;V++){const Z=document.createElement("td");(!P.borderType||P.borderType===ct.ALL)&&(Z.style.borderBottom=Z.style.borderRight="1px solid");const U=Y.tdList[V];Z.colSpan=U.colspan,Z.rowSpan=U.rowspan,Z.style.verticalAlign=U.verticalAlign||"top",(r=U.borderTypes)!=null&&r.includes(it.TOP)&&(Z.style.borderTop=N),(a=U.borderTypes)!=null&&a.includes(it.RIGHT)&&(Z.style.borderRight=N),(R=U.borderTypes)!=null&&R.includes(it.BOTTOM)&&(Z.style.borderBottom=N),(u=U.borderTypes)!=null&&u.includes(it.LEFT)&&(Z.style.borderLeft=N);const m=di(U.value,e);Z.innerHTML=m.innerHTML,U.backgroundColor&&(Z.style.backgroundColor=U.backgroundColor),T.append(Z)}O.append(T)}L.append(O)}else if(P.type===S.HYPERLINK){const O=document.createElement("a");O.innerText=P.valueList.map(N=>N.value).join(""),P.url&&(O.href=P.url),L.append(O)}else if(P.type===S.TITLE){const O=document.createElement(`h${on[P.level]}`),N=i(P.valueList);O.innerHTML=N.innerHTML,L.append(O)}else if(P.type===S.LIST){const O=document.createElement(Ql[P.listType]);P.listStyle&&(O.style.listStyleType=bl[P.listStyle]);const N=Xe(P.valueList);Do(N).forEach(W=>{const f=document.createElement("li"),T=i(W);f.innerHTML=T.innerHTML,O.append(f)}),L.append(O)}else if(P.type===S.IMAGE){const O=document.createElement("img");P.value&&(O.src=P.value,O.width=P.width,O.height=P.height),L.append(O)}else if(P.type===S.SEPARATOR){const O=document.createElement("hr");L.append(O)}else if(P.type===S.CHECKBOX){const O=document.createElement("input");O.type="checkbox",(c=P.checkbox)!=null&&c.value&&O.setAttribute("checked","true"),L.append(O)}else if(P.type===S.RADIO){const O=document.createElement("input");O.type="radio",(d=P.radio)!=null&&d.value&&O.setAttribute("checked","true"),L.append(O)}else if(P.type===S.TAB){const O=document.createElement("span");O.innerHTML=`${wn}${wn}`,L.append(O)}else if(P.type===S.CONTROL){const O=document.createElement("span"),N=i(((h=P.control)==null?void 0:h.value)||[]);O.innerHTML=N.innerHTML,L.append(O)}else if(!P.type||P.type===S.LATEX||dt.includes(P.type)){let O="";if(P.type===S.DATE?O=((g=P.valueList)==null?void 0:g.map(p=>p.value).join(""))||"":O=P.value,!O)continue;const N=nr(P,t);((D=s[M-1])==null?void 0:D.type)===S.TITLE&&(O=O.replace(/^\n/,"")),N.innerText=O.replace(new RegExp(`${B}`,"g"),`
|
|||
|
|
`),L.append(N)}}return L}const n=document.createElement("div"),l=or(o);for(let s=0;s<l.length;s++){const r=l[s],a=!r.rowFlex||r.rowFlex===ge.LEFT,R=document.createElement("div");if(!a){const u=r.data[0];$t(u)?(R.style.display="flex",R.style.justifyContent=ir(u.rowFlex)):R.style.textAlign=go(r.rowFlex)}R.innerHTML=i(r.data).innerHTML,a?R.childNodes.forEach(u=>{n.append(u.cloneNode(!0))}):n.append(R)}return n}function sr(o){if(!o||o.nodeType!==3)return null;const e=o.parentNode,t=e.nodeName==="FONT"?e.parentNode:e,i=tr(t),n=o.textContent,l=window.getComputedStyle(t);if(!n||t.nodeName==="STYLE")return null;const s={value:n,color:l.color,bold:Number(l.fontWeight)>500,italic:l.fontStyle.includes("italic"),size:Math.floor(parseFloat(l.fontSize))};return t.nodeName==="SUB"||l.verticalAlign==="sub"?s.type=S.SUBSCRIPT:(t.nodeName==="SUP"||l.verticalAlign==="super")&&(s.type=S.SUPERSCRIPT),i!==ge.LEFT&&(s.rowFlex=i),l.backgroundColor!=="rgba(0, 0, 0, 0)"&&(s.highlight=l.backgroundColor),l.textDecorationLine.includes("underline")&&(s.underline=!0),l.textDecorationLine.includes("line-through")&&(s.strikeout=!0),s}function hi(o,e){const t=[];function i(s){if(s.nodeType===3){const r=sr(s);r&&t.push(r)}else if(s.nodeType===1){const r=s.childNodes;for(let a=0;a<r.length;a++){const R=r[a];if(R.nodeName==="BR")t.push({value:`
|
|||
|
|
`});else if(R.nodeName==="A"){const u=R,c=u.innerText;c&&t.push({type:S.HYPERLINK,value:"",valueList:[{value:c}],url:u.href})}else if(/H[1-6]/.test(R.nodeName)){const c=hi(lr(R,"div").outerHTML,e);t.push({value:"",type:S.TITLE,level:Cl[R.nodeName],valueList:c}),R.nextSibling&&!Tl.includes(R.nextSibling.nodeName)&&t.push({value:`
|
|||
|
|
`})}else if(R.nodeName==="UL"||R.nodeName==="OL"){const u=R,c={value:"",type:S.LIST,valueList:[]};R.nodeName==="OL"?c.listType=Nt.OL:(c.listType=Nt.UL,c.listStyle=u.style.listStyleType),u.querySelectorAll("li").forEach(d=>{const h=hi(d.innerHTML,e);h.forEach(g=>{g.value===`
|
|||
|
|
`&&(g.listWrap=!0)}),h.unshift({value:`
|
|||
|
|
`}),c.valueList.push(...h)}),t.push(c)}else if(R.nodeName==="HR")t.push({value:`
|
|||
|
|
`,type:S.SEPARATOR});else if(R.nodeName==="IMG"){const{src:u,width:c,height:d}=R;u&&c&&d&&t.push({width:c,height:d,value:u,type:S.IMAGE})}else if(R.nodeName==="TABLE"){const u=R,c={type:S.TABLE,value:`
|
|||
|
|
`,colgroup:[],trList:[]};if(u.querySelectorAll("tr").forEach(d=>{const h=window.getComputedStyle(d).height.replace("px",""),g={height:Number(h),tdList:[]};d.querySelectorAll("th,td").forEach(D=>{const L=D,M=hi(L.innerHTML,e),P={colspan:L.colSpan,rowspan:L.rowSpan,value:M};L.style.backgroundColor&&(P.backgroundColor=L.style.backgroundColor),g.tdList.push(P)}),c.trList.push(g)}),c.trList.length){const d=c.trList[0].tdList.reduce((g,D)=>g+D.colspan,0),h=Math.ceil(e.innerWidth/d);for(let g=0;g<d;g++)c.colgroup.push({width:h});t.push(c)}}else R.nodeName==="INPUT"&&R.type===Q.CHECKBOX?t.push({type:S.CHECKBOX,value:"",checkbox:{value:R.checked}}):R.nodeName==="INPUT"&&R.type===Q.RADIO?t.push({type:S.RADIO,value:"",radio:{value:R.checked}}):(i(R),R.nodeType===1&&a!==r.length-1&&window.getComputedStyle(R).display==="block"&&t.push({value:`
|
|||
|
|
`}))}}}const n=document.createElement("div");n.innerHTML=o,document.body.appendChild(n);const l=[];return n.childNodes.forEach(s=>{var r;s.nodeType!==1&&!((r=s.textContent)!=null&&r.trim())&&l.push(s)}),l.forEach(s=>s.remove()),i(n),n.remove(),t}function Oi(o){function e(t){var i,n,l,s,r;let a="";for(let R=0;R<t.length;R++){const u=t[R];if(u.type===S.TABLE){a+=`
|
|||
|
|
`;const c=u.trList;for(let d=0;d<c.length;d++){const h=c[d];for(let g=0;g<h.tdList.length;g++){const D=h.tdList[g],L=e(Xe(D.value)),M=g===0,P=h.tdList.length-1===g;a+=`${M?"":" "}${L}${P?`
|
|||
|
|
`:""}`}}}else if(u.type===S.TAB)a+=" ";else if(u.type===S.HYPERLINK)a+=u.valueList.map(c=>c.value).join("");else if(u.type===S.TITLE)a+=`${e(Xe(u.valueList))}`;else if(u.type===S.LIST){const c=Xe(u.valueList),d=Do(c);let h="";u.listType===Nt.UL&&(h=nn[u.listStyle]),d.forEach((g,D)=>{const L=d.size-1===D;a+=`
|
|||
|
|
${h||`${D+1}.`}${e(g)}${L?`
|
|||
|
|
`:""}`})}else if(u.type===S.CHECKBOX)a+=(i=u.checkbox)!=null&&i.value?"☑":"□";else if(u.type===S.RADIO)a+=(n=u.radio)!=null&&n.value?"☉":"○";else if(!u.type||u.type===S.LATEX||dt.includes(u.type)){let c="";u.type===S.CONTROL?c=((s=(l=u.control.value)==null?void 0:l[0])==null?void 0:s.value)||"":u.type===S.DATE?c=((r=u.valueList)==null?void 0:r.map(d=>d.value).join(""))||"":c=u.value,a+=c.replace(new RegExp(`${B}`,"g"),`
|
|||
|
|
`)}}return a}return e(Xe(o))}function _i(o){return $i(o,["metrics","style"])}function $t(o){return!!(o!=null&&o.type)&&(Sl.includes(o.type)||o.imgDisplay===ne.INLINE)}function lr(o,e){const t=document.createElement(e);for(let i=0;i<o.attributes.length;i++){const n=o.attributes[i];t.setAttribute(n.name,n.value)}return t.innerHTML=o.innerHTML,t}function Lo(o){const e=[];for(let t=0;t<o.length;t++){const i=o[t];i.imgDisplay===ne.SURROUND&&e.push(i)}return e}function rr(o,e){var t;for(let i=o.length-1;i>=0;i--)((t=o[i].imgFloatPosition)==null?void 0:t.pageNo)===e&&o.splice(i,1)}function ar(o){localStorage.setItem(Pn,JSON.stringify({text:o.text,elementList:o.elementList}))}function Po(){const o=localStorage.getItem(Pn);return o?JSON.parse(o):null}function Oo(){localStorage.removeItem(Pn)}function Rr(o,e,t){if(!o&&!e&&!t.length)return;const i=new Blob([o],{type:"text/plain"}),n=new Blob([e],{type:"text/html"});if(window.ClipboardItem){const l=new ClipboardItem({[i.type]:i,[n.type]:n});window.navigator.clipboard.write([l])}else{const l=document.createElement("div");l.setAttribute("contenteditable","true"),l.innerHTML=e,document.body.append(l);const s=window.getSelection(),r=document.createRange(),a=document.createElement("span");a.innerText=`
|
|||
|
|
`,l.append(a),r.selectNodeContents(l),s==null||s.removeAllRanges(),s==null||s.addRange(r),document.execCommand("copy"),l.remove()}ar({text:o,elementList:t})}function Fo(o,e){const t=di(o,e);document.body.append(t);const i=t.innerText;t.remove();const n=t.innerHTML;!i&&!n&&!o.length||Rr(i,n,Xe(o))}function ur(o){let e=!1;for(let t=0;t<o.items.length;t++)if(o.items[t].kind==="file"){e=!0;break}return e}function Nn(o,e){const t=o.getDraw();if(t.isReadonly()||t.isDisabled())return;const i=t.getRange(),{startIndex:n}=i.getRange(),l=t.getElementList();if(~n&&!i.getIsSelectAll()){const s=l[n];if(s!=null&&s.titleId||s!=null&&s.listId){let r=0;for(;r<e.length;){const a=e[r];if(s.titleId&&/^\n/.test(a.value))break;if(Xl.includes(a.type)){if(e.splice(r,1),a.valueList)for(let R=0;R<a.valueList.length;R++){const u=a.valueList[R];u.value===B||u.value===`
|
|||
|
|
`||(e.splice(r,0,u),r++)}r--}r++}}ve(l,e,n,{isBreakWhenWrap:!0,editorOptions:t.getOptions()})}t.insertElementList(e)}function No(o,e){const t=o.getDraw();if(t.isReadonly()||t.isDisabled())return;const i=hi(e,{innerWidth:t.getOriginalInnerWidth()});Nn(o,i)}function Sn(o,e){const t=o.getDraw();if(t.isReadonly()||t.isDisabled())return;const i=t.getRange(),{startIndex:n}=i.getRange(),l=t.getElementList(),s=new FileReader;s.readAsDataURL(e),s.onload=()=>{const r=new Image,a=s.result;r.src=a,r.onload=()=>{const R={value:a,type:S.IMAGE,width:r.width,height:r.height};~n&&ve(l,[R],n,{editorOptions:t.getOptions()}),t.insertElementList([R])}}}function cr(o,e){const t=o.getDraw();if(t.isReadonly()||t.isDisabled())return;const i=e.clipboardData;if(!i)return;const{paste:n}=t.getOverride();if(n){const s=n(e);if((s==null?void 0:s.preventDefault)!==!1)return}if(!ur(i)){const s=i.getData("text"),r=Po();if(s===(r==null?void 0:r.text)){Nn(o,r.elementList);return}}Oo();let l=!1;for(let s=0;s<i.items.length;s++)if(i.items[s].type==="text/html"){l=!0;break}for(let s=0;s<i.items.length;s++){const r=i.items[s];if(r.kind==="string"){if(r.type==="text/plain"&&!l){r.getAsString(a=>{o.input(a)});break}if(r.type==="text/html"&&l){r.getAsString(a=>{No(o,a)});break}}else if(r.kind==="file"&&r.type.includes("image")){const a=r.getAsFile();a&&Sn(o,a)}}}function dr(o,e){return ke(this,null,function*(){const t=o.getDraw();if(t.isReadonly()||t.isDisabled())return;const{paste:i}=t.getOverride();if(i){const s=i();if((s==null?void 0:s.preventDefault)!==!1)return}const n=yield navigator.clipboard.readText(),l=Po();if(n===(l==null?void 0:l.text)){Nn(o,l.elementList);return}if(Oo(),e!=null&&e.isPlainText)n&&o.input(n);else{const s=yield navigator.clipboard.read();let r=!1;for(const a of s)if(a.types.includes("text/html")){r=!0;break}for(const a of s)if(a.types.includes("text/plain")&&!r){const u=yield(yield a.getType("text/plain")).text();u&&o.input(u)}else if(a.types.includes("text/html")&&r){const u=yield(yield a.getType("text/html")).text();u&&No(o,u)}else if(a.types.some(R=>R.startsWith("image/"))){const R=a.types.find(c=>c.startsWith("image/")),u=yield a.getType(R);Sn(o,u)}}})}class hr{constructor(e,t){this.draw=e,this.container=e.getContainer(),this.canvasEvent=t;const i=document.createElement("textarea");i.autocomplete="off",i.classList.add(`${ee}-inputarea`),i.innerText="",this.container.append(i),this.agentCursorDom=i,i.onkeydown=n=>this._keyDown(n),i.oninput=oo(this._input.bind(this),0),i.onpaste=n=>this._paste(n),i.addEventListener("compositionstart",this._compositionstart.bind(this)),i.addEventListener("compositionend",this._compositionend.bind(this))}getAgentCursorDom(){return this.agentCursorDom}_keyDown(e){this.canvasEvent.keydown(e)}_input(e){const t=e.data;t&&this.canvasEvent.input(t)}_paste(e){this.draw.isReadonly()||!e.clipboardData||(cr(this.canvasEvent,e),e.preventDefault())}_compositionstart(){this.canvasEvent.compositionstart()}_compositionend(e){this.canvasEvent.compositionend(e)}}class gr{constructor(e,t){this.ANIMATION_CLASS=`${ee}-cursor--animation`,this.draw=e,this.container=e.getContainer(),this.position=e.getPosition(),this.options=e.getOptions(),this.cursorDom=document.createElement("div"),this.cursorDom.classList.add(`${ee}-cursor`),this.container.append(this.cursorDom),this.cursorAgent=new hr(e,t),this.blinkTimeout=null}getCursorDom(){return this.cursorDom}getAgentDom(){return this.cursorAgent.getAgentCursorDom()}getAgentIsActive(){return this.getAgentDom()===document.activeElement}getAgentDomValue(){return this.getAgentDom().value}clearAgentDomValue(){this.getAgentDom().value=""}_blinkStart(){this.cursorDom.classList.add(this.ANIMATION_CLASS)}_blinkStop(){this.cursorDom.classList.remove(this.ANIMATION_CLASS)}_setBlinkTimeout(){this._clearBlinkTimeout(),this.blinkTimeout=window.setTimeout(()=>{this._blinkStart()},500)}_clearBlinkTimeout(){this.blinkTimeout&&(this._blinkStop(),window.clearTimeout(this.blinkTimeout),this.blinkTimeout=null)}drawCursor(e){let t=this.position.getCursorPosition();if(!t)return;const{scale:i,cursor:n}=th
|
|||
|
|
`,B),{startIndex:g,endIndex:D}=r.getRange(),L=i.getElementList(),M=jt(L,D);if(!M)return;const P=i.isDesignMode(),O=Pt(h).map(W=>{var f,T;const Y={value:W};if(P||!((f=M.title)!=null&&f.disabled)&&!((T=M.control)!=null&&T.disabled)){const V=L[D+1];(!M.type||M.type===a||M.type===R&&(V==null?void 0:V.type)===R||M.type===d&&(V==null?void 0:V.type)===d||M.type===u&&(V==null?void 0:V.type)===u||M.type===c&&(V==null?void 0:V.type)===c)&&Pl.forEach(Z=>{if(Z==="groupIds"&&!(V!=null&&V.groupIds))return;const U=M[Z];U!==void 0&&(Y[Z]=U)}),s&&(Y.underline=!0)}return Y}),N=i.getControl();let p;if(N.getActiveControl()&&N.getIsRangeWithinControl())p=N.setValue(O);else{const W=g+1;g!==D&&i.spliceElementList(L,W,D-g),ve(L,O,g,{editorOptions:i.getOptions()}),i.spliceElementList(L,W,0,...O),p=g+O.length}~p&&(r.setRange(p,p),i.render({curIndex:p,isSubmitHistory:!s})),s&&(e.compositionInfo={elementList:L,value:h,startIndex:p-O.length,endIndex:p})}function To(o){if(!o.compositionInfo)return;const{elementList:e,startIndex:t,endIndex:i}=o.compositionInfo;e.splice(t+1,i-t),o.getDraw().getRange().setRange(t,t),o.compositionInfo=null}function fr(o){const e=o.getDraw(),t=e.getRange(),{startIndex:i,endIndex:n}=t.getRange();if(!~i&&!~i||e.isReadonly()||!t.getIsCanInput())return;const l=e.getElementList();let s=i,r=n;if(i===n){const d=e.getPosition().getPositionList(),h=d[i],g=h.rowNo,D=h.pageNo,L=[];for(let P=0;P<d.length;P++){const O=d[P];if(O.pageNo>D)break;O.pageNo===D&&O.rowNo===g&&L.push(P)}const M=L[0]-1;s=M<0?0:M,r=L[L.length-1]}const a=e.getOptions();Fo(l.slice(s+1,r+1),a);const R=e.getControl();let u;R.getActiveControl()&&R.getIsRangeWithinControl()?u=R.cut():(e.spliceElementList(l,s+1,r-s),u=s),t.setRange(u,u),e.render({curIndex:u})}function Wr(o){const e=o.getDraw(),{copy:t}=e.getOverride();if(t){const s=t();if((s==null?void 0:s.preventDefault)!==!1)return}const i=e.getRange();let n=null;if(i.getRange().isCrossRowCol){const s=i.getRangeTableElement();if(!s)return;const r=e.getTableParticle().getRangeRowCol();if(!r)return;const a={type:S.TABLE,value:"",colgroup:[],trList:[]},R=r[0],u=R[0].colIndex,c=R[R.length-1],d=c.colIndex+c.colspan-1;for(let h=u;h<=d;h++)a.colgroup.push(s.colgroup[h]);for(let h=0;h<r.length;h++){const g=r[h],D=s.trList[g[0].rowIndex],L={tdList:[],height:D.height,minHeight:D.minHeight};for(let M=0;M<g.length;M++)L.tdList.push(g[M]);a.trList.push(L)}n=Xe([a])}else n=i.getIsCollapsed()?i.getRangeRowElementList():i.getSelectionElementList();n!=null&&n.length&&Fo(n,e.getOptions())}function Yr(o,e){var t,i;const n=e.getDraw(),{drop:l}=n.getOverride();if(l){const r=l(o);if((r==null?void 0:r.preventDefault)!==!1)return}o.preventDefault();const s=(t=o.dataTransfer)==null?void 0:t.getData("text");if(s)e.input(s);else{const r=(i=o.dataTransfer)==null?void 0:i.files;if(!r)return;for(let a=0;a<r.length;a++){const R=r[a];R.type.startsWith("image")&&Sn(e,R)}}}function Vr(o){var e;if(!Intl.Segmenter)return null;const t=o.getDraw(),i=t.getPosition().getCursorPosition();if(!i)return null;const l=t.getRange().getRangeParagraphInfo();if(!l)return null;const s=((e=l==null?void 0:l.elementList)==null?void 0:e.map(h=>!h.type||h.type!==S.CONTROL&&dt.includes(h.type)?h.value:B).join(""))||"";if(!s)return null;const r=i.index,a=l.startIndex,u=new Intl.Segmenter(void 0,{granularity:"word"}).segment(s);let c=-1,d=-1;for(const{segment:h,index:g,isWordLike:D}of u){const L=g+a;if(D&&r>=L&&r<L+h.length){c=L-1,d=c+h.length;break}}return~c&&~d?{startIndex:c,endIndex:d}:null}function Zr(o){const e=o.getDraw(),t=e.getPosition().getCursorPosition();if(!t)return null;const{value:i,index:n}=t,l=e.getLetterReg();let s=0,r=0;const a=Ai.test(i);if(a||l.test(i)){const u=e.getElementList();let c=n-1;for(;c>0;){const h=u[c].value;if(a&&Ai.test(h)||!a&&l.test(h))s++,c--;else break}let d=n+1;for(;d<u.length;){const h=u[d].value;if(a&&Ai.test(h)||!a&&l.test(h))r++,d++;else break}}const R=n-s-1;return R<0?null:{startIndex:R,endIndex:n+r}}function Ur(o,e){const t=o.getDraw(),i=t.getPosition(),n=i.getPositionByXY({x:e.offsetX,y:e.offsetY});if(n.isImage&&n.isDirectHit){t
|
|||
|
|
* {
|
|||
|
|
margin: 0;
|
|||
|
|
padding: 0;
|
|||
|
|
}
|
|||
|
|
@page {
|
|||
|
|
margin: 0;
|
|||
|
|
size: ${R.size} ${n===Ft.HORIZONTAL?"landscape":"portrait"};
|
|||
|
|
}`;u.append(document.createTextNode(c)),setTimeout(()=>{r.write(`${u.outerHTML}${a.innerHTML}`),s.print(),r.close(),window.addEventListener("mouseover",()=>{l==null||l.remove()},{once:!0})})}class $a{constructor(e){this.draw=e,this.range=e.getRange(),this.position=e.getPosition(),this.historyManager=e.getHistoryManager(),this.canvasEvent=e.getCanvasEvent(),this.options=e.getOptions(),this.control=e.getControl(),this.workerManager=e.getWorkerManager(),this.searchManager=e.getSearch(),this.i18n=e.getI18n(),this.zone=e.getZone(),this.tableOperate=e.getTableOperate()}mode(e){this.draw.setMode(e)}cut(){this.draw.isReadonly()||this.draw.isDisabled()||this.canvasEvent.cut()}copy(){this.canvasEvent.copy()}paste(e){this.draw.isReadonly()||this.draw.isDisabled()||dr(this.canvasEvent,e)}selectAll(){this.canvasEvent.selectAll()}backspace(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const t=this.draw.getElementList(),{startIndex:i,endIndex:n}=this.range.getRange(),l=i===n;if(l&&t[i].value===B&&i===0)return;l?this.draw.spliceElementList(t,i,1):this.draw.spliceElementList(t,i+1,n-i);const s=l?i-1:i;this.range.setRange(s,s),this.draw.render({curIndex:s})}setRange(e,t,i,n,l,s,r){if(e<0||t<0||t<e)return;this.range.setRange(e,t,i,n,l,s,r);const a=e===t;this.draw.render({curIndex:a?e:void 0,isCompute:!1,isSubmitHistory:!1,isSetCursor:a})}replaceRange(e){this.setRange(e.startIndex,e.endIndex,e.tableId,e.startTdIndex,e.endTdIndex,e.startTrIndex,e.endTrIndex)}setPositionContext(e){const{tableId:t,startTrIndex:i,startTdIndex:n}=e,l=this.draw.getOriginalElementList();if(t){const s=l.findIndex(u=>u.id===t);if(!~s)return;const a=l[s].trList[i],R=a.tdList[n];this.position.setPositionContext({isTable:!0,index:s,trIndex:i,tdIndex:n,tdId:R.id,trId:a.id,tableId:t})}else this.position.setPositionContext({isTable:!1})}forceUpdate(e){const{isSubmitHistory:t=!1}=e||{};this.range.clearRange(),this.draw.render({isSubmitHistory:t,isSetCursor:!1})}blur(){this.range.clearRange(),this.draw.getCursor().recoveryCursor()}undo(){this.draw.isReadonly()||this.historyManager.undo()}redo(){this.draw.isReadonly()||this.historyManager.redo()}painter(e){if(!e.isDblclick&&this.draw.getPainterStyle()){this.canvasEvent.clearPainterStyle();return}const t=this.range.getSelection();if(!t)return;const i={};t.forEach(n=>{bt.forEach(s=>{const r=s;i[r]===void 0&&(i[r]=n[r])})}),this.draw.setPainterStyle(i,e)}applyPainterStyle(){this.draw.isReadonly()||this.draw.isDisabled()||this.canvasEvent.applyPainterStyle()}format(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const t=this.range.getSelectionElementList();let i={},n=[];if(t!=null&&t.length)n=t,i={isSetCursor:!1};else{const{endIndex:l}=this.range.getRange(),r=this.draw.getElementList()[l];(r==null?void 0:r.value)===B&&(n.push(r),i={curIndex:l})}n.length&&(n.forEach(l=>{bt.forEach(s=>{delete l[s]})}),this.draw.render(i))}font(e){if(this.draw.isReadonly()||this.draw.isDisabled())return;const i=this.range.getSelectionElementList();if(i!=null&&i.length)i.forEach(n=>{n.font=e}),this.draw.render({isSetCursor:!1});else{const{endIndex:n}=this.range.getRange(),s=this.draw.getElementList()[n];(s==null?void 0:s.value)===B&&(s.font=e,this.draw.render({curIndex:n,isCompute:!1}))}}size(e){const{minSize:t,maxSize:i,defaultSize:n}=this.options;if(e<t||e>i||this.draw.isReadonly()||this.draw.isDisabled())return;let s={},r=[];const a=this.range.getTextLikeSelectionElementList();if(a!=null&&a.length)r=a,s={isSetCursor:!1};else{const{endIndex:u}=this.range.getRange(),d=this.draw.getElementList()[u];(d==null?void 0:d.value)===B&&(r.push(d),s={curIndex:u})}if(!r.length)return;let R=!1;r.forEach(u=>{!u.size&&e===n||u.size&&u.size===e||(u.size=e,R=!0)}),R&&this.draw.render(s)}sizeAdd(){if(this.draw.isReadonly()||this.draw.isDisabled())return;const t=this.range.getTextLikeSelectionElementList();let i={},n=[];if(t!=null&&t.length)n=t,i={isSetCursor:!1};else{const{endIndex:a}=this.range.getRange(),u=this.draw.getElementList()[a];(u==null?void 0:u.value)===B&&(n.push(u),i={curIndex:a})}if(!n.length)return;const{defaultSize:l,maxSi
|