@ones-editor/editor 1.1.44 → 1.1.45
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/index.js
CHANGED
|
@@ -719,7 +719,7 @@ ${s}
|
|
|
719
719
|
|
|
720
720
|
> ${r}
|
|
721
721
|
|
|
722
|
-
`}})}class UG{constructor(t){m(this,"_grid",[]);m(this,"_needFixSpanData",!1);Array.from(t.rows).forEach((e,r)=>{Array.from(e.cells).forEach(i=>{this._addCell(r,i)})})}_addCell(t,e){const r=this._getNextColIndex(t),i=e.colSpan,o=e.rowSpan;for(let s=0;s<o;s++)for(let l=0;l<i;l++){const c=t+s,d=r+l;if(this._getCell({row:c,col:d})){this._needFixSpanData=!0,console.warn(`invalid table data, cell data already exists, ${c}, ${d}`);continue}this._setCell({row:c,col:d},{cell:e,virtual:!(l===0&&s===0)})}}_getNextColIndex(t){const e=this._grid[t];if(!e)return 0;let r=0;for(let i=0;i<e.length;i++)if(e[i])r+=1;else return r;return r}_setCell(t,e){if(!(e.cell.colSpan===0||e.cell.rowSpan===0)){for(;this._grid.length<=t.row;)this._grid.push([]);for(let r=0;r<this._grid.length;r++){const i=this._grid[r];for(;i.length<=t.col;)i.push(null)}this._grid[t.row][t.col]=e}}_getCell(t){var r;const e=this._grid[t.row];return e&&(r=e[t.col])!=null?r:null}get rowCount(){return this._grid.length}get colCount(){return this._grid[0].length}getCellData(t){const e=this._getCell(t);return e||null}getCellSpan(t){const e=this._getCell(t);if(!e)return{colSpan:1,rowSpan:1};if(e.virtual)return{colSpan:1,rowSpan:1};const r=()=>{let l=t.col+1;for(;;){const c=this._getCell({row:t.row,col:l});if(!c||c.cell!==e.cell)return l-t.col;l+=1}},i=()=>{let l=t.row+1;for(;;){const c=this._getCell({row:l,col:t.col});if(!c||c.cell!==e.cell)return l-t.row;l+=1}},o=r(),s=i();return o!==e.cell.colSpan&&console.warn(`invalid colSpan: ${o} -> ${e.cell.colSpan}`),s!==e.cell.rowSpan&&console.warn(`invalid rowSpan: ${s} -> ${e.cell.rowSpan}`),{colSpan:o,rowSpan:s}}getColumnWidth(t){const i=Array(this.rowCount).fill(0).map((s,l)=>{const c=this.getCellData({row:l,col:t});if(c&&!c.virtual){const d=c.cell.getAttribute("width")||c.cell.style.width;if(d){if(d.endsWith("%")){const C=d.substr(0,d.length-1),E=Number.parseInt(C,10);if(E>0&&E<=100)return Math.floor(720*E/100)}const h=Number.parseInt(d,10);if(h)return h}return c.cell.getBoundingClientRect().width}return 1e9}),o=Math.min(...i);return o===1e9||Number.isNaN(o)||o<30?0:o}}function OG(n){return new UG(n)}function Rw(n,t){var c;const e=OG(n),r=[],i={},o=e.rowCount,s=e.colCount,l=Array(s).fill(100);for(let d=0;d<o;d++)for(let h=0;h<s;h++){let C;const E=e.getCellData({row:d,col:h});if(E&&E.virtual)continue;E&&!E.virtual&&(C=t.htmlToBlocks(E.cell.innerHTML.trim(),t)),(!C||C.length===0)&&(C=[{id:it(),type:"text",text:[]}]);const A=it();r.push(A);const{colSpan:v,rowSpan:R}=e.getCellSpan({row:d,col:h});R>1&&(i[`${A}_rowSpan`]=R),v>1&&(i[`${A}_colSpan`]=v),t.doc.blocks[A]=C,E&&!E.virtual&&(l[h]=Math.max(l[h],yw((c=t.font)!=null?c:"",C)))}for(let d=0;d<e.colCount;d++)l[d]=e.getColumnWidth(d)||l[d];return r.length===0?[]:[{cols:e.colCount,rows:e.rowCount,id:it(),type:"table",children:r,...i,colsWidth:l}]}function ww(n,t){var e;if(n.tagName==="TABLE"){const r={blocks:{root:[]},meta:{},comments:{}},i=Rw(n,{doc:r,...t});if(i.length===0||((e=i[0].children)==null?void 0:e.length)===0)return;r.blocks.root=i;const o=JSON.stringify(r),s=qi(o),l=document.createElement("div");l.classList.add("highlight-text-wizdoc");const c=document.createElement("pre");l.appendChild(c),c.innerText=s,n.insertAdjacentElement("beforebegin",l),n.remove();return}Array.from(n.children).forEach(r=>ww(r,t))}function Sw(n){if(n instanceof HTMLStyleElement){n.remove();return}Array.from(n.children).forEach(Sw)}function Lw(n){if(n instanceof HTMLElement){if(n.style.display==="none"){n.remove();return}if(n.style.visibility==="hidden"){n.remove();return}}Array.from(n.children).forEach(Lw)}function NG(n,t){const e=Cm(n);return e.querySelectorAll("td.js-line-number").forEach(i=>i.remove()),e.querySelectorAll("div.copy-button").forEach(i=>i.remove()),e.querySelectorAll("div.code-copy-button").forEach(i=>i.remove()),e.querySelectorAll("noscript").forEach(i=>i.remove()),Array.from(e.children).forEach(Lw),Array.from(e.children).forEach(i=>ww(i,t)),Array.from(e.children).forEach(Sw),kw(e),fv(e)}const go=new v9.default;go.use(RG),go.use(wG),go.use(SG),go.use(LG),go.use(IG),go.use(DG),go.use(_G),go.use(MG),go.use(u9.gfm);function PG(n,t){const e=Iw(n,t);if(!e)return[];const{root:r,...i}=e.blocks;return t.doc.blocks={...t.doc.blocks,...i},r}function Iw(n,t){let e=n;const r=new DOMParser().parseFromString(n,"text/html").querySelectorAll("meta");if(r.length&&Array.from(r).some(o=>o.getAttribute("content")==="PowerPoint.Slide")){const o=n.indexOf("<!--StartFragment-->"),s=n.indexOf("<!--EndFragment-->");o!==-1&&s!==-1&&(e=n.substring(o+20,s))}const i=go.turndown(e);return GA(i,{htmlToDoc:o=>Dw(o,t)})}function Dw(n,t){const e=NG(n,{font:t==null?void 0:t.font,htmlToBlocks:PG});return Iw(e)}function _w(n){return n.indexOf('xmlns:o="urn:schemas-microsoft-com:office:office"')!==-1}function WA(n){return["A","B","DEL","I","U","S","SPAN","SUB","SUP","FONT","BR"].indexOf(n.tagName)!==-1}function FG(n){return["P","H1","H2","H3","H4","H5","H6","H7","H8","LI"].indexOf(n.tagName)!==-1}function Mw(n){return n.replace(/\r\n\s*/g,"").replace(/\n\s*/g,"").replace(/\r\s*/g,"")}function KG(n){if(!n.tagName)return!1;if(n.tagName.toLocaleLowerCase()==="img")return!0;const t=n.querySelectorAll("img");for(let e=0;e<t.length;e+=1){const r=t[e];if(!r.src||r.getAttribute("width")==="0"||r.getAttribute("height")==="0")return!1}return t.length}function VG(n){return(n.tagName.toLocaleLowerCase()==="img"?[n]:Array.from(n.querySelectorAll("img"))).map(i=>({id:it(),type:"embed",embedType:"image",embedData:{src:i.src,width:i.width,height:i.height}}))}function Uw(n){var e;return Array.from(((e=n.getAttribute("style"))!=null?e:"").split(" ")).findIndex(r=>r.startsWith("level"))!==-1}function $G(n){var e;const t=Array.from(((e=n.getAttribute("style"))!=null?e:"").split(" "));for(let r=0;r<t.length;r++){const i=t[r];if(i.startsWith("mso-list:"))return i}return""}function Ow(n){var e,r;const t=Array.from(((e=n.getAttribute("style"))!=null?e:"").split(" "));for(let i=0;i<t.length;i++){const o=t[i];if(o.startsWith("level")){const s=(r=Number.parseInt(o.substring(5),10))!=null?r:void 0;if(s)return s}}return 1}function HG(n,t){n.setAttribute("data-group-id",t)}function jG(n){const t={},e=i=>{Array.from(Object.keys(t)).forEach(o=>{Number.parseInt(o,10)>i&&delete t[o]})};let r="";Array.from(n.children).forEach(i=>{if(Uw(i)){const o=$G(i);r!==o&&(e(0),r=o);const s=Ow(i);e(s);let l=t[`${s}`];l||(l=it(),t[`${s}`]=l),HG(i,l)}})}function Nw(n){const t=n.querySelector('[style="mso-list:Ignore"]');if(t){const e=t.innerText;return e&&e.trim()!=="-"}return!0}function zG(n){var r;if(!Nw(n))return 1;const e=n.querySelector('[style^="mso-list:Ignore"]');if(e){const i=e.innerText;if(i)return(r=Number.parseInt(i,10))!=null?r:1}return 1}function Pw(n){if(!Uw(n))return{};const t=Ow(n),e=n.getAttribute("data-group-id")||it();return{start:zG(n),level:t,groupId:e,ordered:Nw(n),type:"list"}}const GG=D("office-list");function Fw(n){return n instanceof HTMLOListElement||n instanceof HTMLUListElement}function WG(n,t){p(GG,Fw(n),"not list group element");let e=!1,r=1;const i=it();n instanceof HTMLOListElement&&(e=!0,r=n.start);const o=n,s=[];let l;return Array.from(o.children).forEach(c=>{if(c instanceof HTMLLIElement){const h=Pw(c),C=t.textElementToBlocks(c,t);l||(l=h.level);const E=C[0];s.push({...E,type:"list",ordered:e,level:l,groupId:i,start:r}),r+=1,s.push(...C.slice(1));return}const d=t.blockElementToBlocks(c,t);s.push(...d)}),s}function Kw(n,t){if(n.nodeName==="META")return[];if(n instanceof HTMLTableElement)return Rw(n,t);if(Fw(n))return[...WG(n,t)];if(KG(n))return[...VG(n)];if(FG(n))return[...t.textElementToBlocks(n,t)];if(!n.children)return[];const e=[];return Array.from(n.children).forEach(r=>{const i=Kw(r,t);e.push(...i)}),e}function Vw(n,t){const e=[];return n.forEach(r=>{var i;if(r instanceof Element)if(WA(r)){const o=document.createElement("p");o.appendChild(r);const s=t.blockElementToBlocks(o,t);e.push(...s)}else{const o=t.blockElementToBlocks(r,t);e.push(...o)}else if(r instanceof Text){const o=no(Mw((i=r.textContent)!=null?i:""));e.push(o)}}),e}function $w(n){return n instanceof Element?WA(n):n.nodeType===Node.TEXT_NODE}function qG(n){var t;return n.nodeType===Node.TEXT_NODE&&((t=n.textContent)==null?void 0:t.trim())===""}function Hw(n){const t=Array.from(n.childNodes);for(let e=0;e<t.length;e++){const r=t[e];if(!$w(r))continue;let i=e+1;for(;i<t.length&&$w(t[i]);)i+=1;if(qG(r)&&i===e+1)continue;const o=document.createElement("p");r instanceof Element?r.insertAdjacentElement("beforebegin",o):n.insertBefore(o,r);for(let s=e;s<i;s++)o.appendChild(t[s]);e=i-1}}function XG(n,t){const e=Cm(n);return Hw(e),Vw(Array.from(e.childNodes),t)}function YG(n){if(!(n instanceof HTMLElement))return{};const t={};if(n.style.textAlign==="right"?t.align="right":n.style.textAlign==="center"&&(t.align="center"),n.style.marginLeft){const e=Math.ceil(Number.parseInt(n.style.marginLeft,10)/20);e>=1&&e<=12&&(t.padding=e)}return t}function QG(n,t){return t&&Object.keys(t).length>0?{insert:n,attributes:t}:{insert:n}}function JG(n,t){if(n.nodeName==="B")return{...t,"style-bold":!0};if(n.nodeName==="I")return{...t,"style-italic":!0};if(n.nodeName==="U")return{...t,"style-underline":!0};if(n.nodeName==="S"||n.nodeName==="DEL")return{...t,"style-strikethrough":!0};if(n.nodeName==="SUB")return{...t,"style-sub":!0};if(n.nodeName==="SUP")return{...t,"style-super":!0};if(n.nodeName==="BR")return{...t,created:Date.now(),id:it(),box:!0,type:"br"};if(n.nodeName==="A"&&n.href){const r=n.href;if(r.startsWith("http:")||r.startsWith("https:"))return{...t,link:n.href}}const e={...t};return n instanceof HTMLSpanElement?(n.style.backgroundColor&&(e["inline-style-background-color"]=n.style.backgroundColor),n.style.color&&(e["inline-style-color"]=n.style.color),n.style.fontSize&&(e["inline-style-font-size"]=n.style.fontSize),n.style.fontFamily&&(e["inline-style-font-family"]=n.style.fontFamily),e):t}function jw(n,t,e){var i;if(n instanceof HTMLSpanElement&&n.getAttribute("style")==="mso-list:Ignore")return;const r=JG(n,t);if(n instanceof Text&&n.nodeValue||n.nodeName==="BR"){const o=Mw((i=n.nodeValue)!=null?i:" ");o&&e.push(QG(o,r));return}n.childNodes.length>0&&Array.from(n.childNodes).forEach(o=>{jw(o,r,e)})}function zw(n){return n instanceof Element?WA(n):!0}function qA(n){return!zw(n)}function ZG(n){if(n.length===0)return[];if(n.length===1)return[n];const t=[];let e=[n[0]],r=qA(n[0]);for(let i=1;i<n.length;i++){const o=n[i];r===qA(o)?e.push(o):(t.push(e),e=[o],r=qA(o))}return t.push(e),t}function tW(n,t){const e={};if(n.tagName.startsWith("H")){const o=Number.parseInt(n.tagName.substr(1),10);o>=1&&o<=8&&(e.heading=o)}const r=ZG(Array.from(n.childNodes)),i=[];return r.forEach((o,s)=>{if(zw(o[0])){const l=[],c={};Array.from(n.childNodes).forEach(h=>{jw(h,c,l)});let d={};s===0&&(d=Pw(n)),i.push({id:it(),type:"text",text:l,...d,...e,...YG(n)})}o.forEach(l=>{const c=t.blockElementToBlocks(l,t);i.push(...c)})}),i}function eW(n,t){const e=Cm(n);jG(e),Hw(e);const r={blocks:{root:[]},meta:{},comments:{}},i={font:t==null?void 0:t.font,doc:r,blockElementToBlocks:Kw,textElementToBlocks:tW,htmlToBlocks:XG},o=Vw(Array.from(e.children),i);if(o.length!==0)return r.blocks.root=o,r}const nW=D("html-to-doc");function Gw(n,t){if(!n)return null;const e=Jz(n);if(e)return e;if(_w(n)){const r=eW(n,t);if(r)return r}try{return Dw(n,t)}catch(r){nW.error(r)}return null}class rW{async fromData(t,e){const r={},i=e.getData("text/html");if(i){const o=Gw(i,{font:t.rootContainer});o&&(_w(i)?r["text/office-html"]=o:r["text/html"]=o)}return r}}class iW{async fromData(t,e){const r=e.getData("text/plain");if(!r)return;const i=GA(r,{font:t.rootContainer,htmlToDoc:Gw});if(!!i)return{"text/markdown":i}}}function oW(n){return/^([\d\w\u4e00-\u9fa5\s]*[\u4e00-\u9fa5\s]{1}|)((https|http|ftp)?:\/\/)[^\s]+/.test(n)}function sW(n){const t=[],e=n.split(/https|http|ftp/)[0],r=n.substring(e.length).trim();if(e&&e.length){const o=Xr(e,null);t.push(o,Xr(" ",null))}const i=Xr(r,{link:r});return t.push(i,Xr(" ",null)),t}class lW{async fromData(t,e,r){const{toPlainText:i=!1}=r||{},o={},s=e.getData("text/plain");if(s){const d={blocks:{root:s.replace(/\r\n/g,`
|
|
722
|
+
`}})}class UG{constructor(t){m(this,"_grid",[]);m(this,"_needFixSpanData",!1);Array.from(t.rows).forEach((e,r)=>{Array.from(e.cells).forEach(i=>{this._addCell(r,i)})})}_addCell(t,e){const r=this._getNextColIndex(t),i=e.colSpan,o=e.rowSpan;for(let s=0;s<o;s++)for(let l=0;l<i;l++){const c=t+s,d=r+l;if(this._getCell({row:c,col:d})){this._needFixSpanData=!0,console.warn(`invalid table data, cell data already exists, ${c}, ${d}`);continue}this._setCell({row:c,col:d},{cell:e,virtual:!(l===0&&s===0)})}}_getNextColIndex(t){const e=this._grid[t];if(!e)return 0;let r=0;for(let i=0;i<e.length;i++)if(e[i])r+=1;else return r;return r}_setCell(t,e){if(!(e.cell.colSpan===0||e.cell.rowSpan===0)){for(;this._grid.length<=t.row;)this._grid.push([]);for(let r=0;r<this._grid.length;r++){const i=this._grid[r];for(;i.length<=t.col;)i.push(null)}this._grid[t.row][t.col]=e}}_getCell(t){var r;const e=this._grid[t.row];return e&&(r=e[t.col])!=null?r:null}get rowCount(){return this._grid.length}get colCount(){return this._grid[0].length}getCellData(t){const e=this._getCell(t);return e||null}getCellSpan(t){const e=this._getCell(t);if(!e)return{colSpan:1,rowSpan:1};if(e.virtual)return{colSpan:1,rowSpan:1};const r=()=>{let l=t.col+1;for(;;){const c=this._getCell({row:t.row,col:l});if(!c||c.cell!==e.cell)return l-t.col;l+=1}},i=()=>{let l=t.row+1;for(;;){const c=this._getCell({row:l,col:t.col});if(!c||c.cell!==e.cell)return l-t.row;l+=1}},o=r(),s=i();return o!==e.cell.colSpan&&console.warn(`invalid colSpan: ${o} -> ${e.cell.colSpan}`),s!==e.cell.rowSpan&&console.warn(`invalid rowSpan: ${s} -> ${e.cell.rowSpan}`),{colSpan:o,rowSpan:s}}getColumnWidth(t){const i=Array(this.rowCount).fill(0).map((s,l)=>{const c=this.getCellData({row:l,col:t});if(c&&!c.virtual){const d=c.cell.getAttribute("width")||c.cell.style.width;if(d){if(d.endsWith("%")){const C=d.substr(0,d.length-1),E=Number.parseInt(C,10);if(E>0&&E<=100)return Math.floor(720*E/100)}const h=Number.parseInt(d,10);if(h)return h}return c.cell.getBoundingClientRect().width}return 1e9}),o=Math.min(...i);return o===1e9||Number.isNaN(o)||o<30?0:o}}function OG(n){return new UG(n)}function Rw(n,t){var c;const e=OG(n),r=[],i={},o=e.rowCount,s=e.colCount,l=Array(s).fill(100);for(let d=0;d<o;d++)for(let h=0;h<s;h++){let C;const E=e.getCellData({row:d,col:h});if(E&&E.virtual)continue;E&&!E.virtual&&(C=t.htmlToBlocks(E.cell.innerHTML.trim(),t)),(!C||C.length===0)&&(C=[{id:it(),type:"text",text:[]}]);const A=it();r.push(A);const{colSpan:v,rowSpan:R}=e.getCellSpan({row:d,col:h});R>1&&(i[`${A}_rowSpan`]=R),v>1&&(i[`${A}_colSpan`]=v),t.doc.blocks[A]=C,E&&!E.virtual&&(l[h]=Math.max(l[h],yw((c=t.font)!=null?c:"",C)))}for(let d=0;d<e.colCount;d++)l[d]=e.getColumnWidth(d)||l[d];return r.length===0?[]:[{cols:e.colCount,rows:e.rowCount,id:it(),type:"table",children:r,...i,colsWidth:l}]}function ww(n,t){var e;if(n.tagName==="TABLE"){const r={blocks:{root:[]},meta:{},comments:{}},i=Rw(n,{doc:r,...t});if(i.length===0||((e=i[0].children)==null?void 0:e.length)===0)return;r.blocks.root=i;const o=JSON.stringify(r),s=qi(o),l=document.createElement("div");l.classList.add("highlight-text-wizdoc");const c=document.createElement("pre");l.appendChild(c),c.innerText=s,n.insertAdjacentElement("beforebegin",l),n.remove();return}Array.from(n.children).forEach(r=>ww(r,t))}function Sw(n){if(n instanceof HTMLStyleElement){n.remove();return}Array.from(n.children).forEach(Sw)}function Lw(n){if(n instanceof HTMLElement){if(n.style.display==="none"){n.remove();return}if(n.style.visibility==="hidden"){n.remove();return}}Array.from(n.children).forEach(Lw)}function NG(n,t){const e=Cm(n);return e.querySelectorAll("td.js-line-number").forEach(i=>i.remove()),e.querySelectorAll("div.copy-button").forEach(i=>i.remove()),e.querySelectorAll("div.code-copy-button").forEach(i=>i.remove()),e.querySelectorAll("noscript").forEach(i=>i.remove()),Array.from(e.children).forEach(Lw),Array.from(e.children).forEach(i=>ww(i,t)),Array.from(e.children).forEach(Sw),kw(e),fv(e)}const go=new v9.default;go.use(RG),go.use(wG),go.use(SG),go.use(LG),go.use(IG),go.use(DG),go.use(_G),go.use(MG),go.use(u9.gfm);function PG(n,t){const e=Iw(n,t);if(!e)return[];const{root:r,...i}=e.blocks;return t.doc.blocks={...t.doc.blocks,...i},r}function Iw(n,t){let e=n;const r=new DOMParser().parseFromString(n,"text/html").querySelectorAll("meta");if(r.length&&Array.from(r).some(o=>o.getAttribute("content")==="PowerPoint.Slide")){const o=n.indexOf("<!--StartFragment-->"),s=n.indexOf("<!--EndFragment-->");o!==-1&&s!==-1&&(e=n.substring(o+20,s))}const i=go.turndown(e);return GA(i,{htmlToDoc:o=>Dw(o,t)})}function Dw(n,t){const e=NG(n,{font:t==null?void 0:t.font,htmlToBlocks:PG});return Iw(e)}function _w(n){return n.indexOf('xmlns:o="urn:schemas-microsoft-com:office:office"')!==-1}function WA(n){return["A","B","DEL","I","U","S","SPAN","SUB","SUP","FONT","BR"].indexOf(n.tagName)!==-1}function FG(n){return["P","H1","H2","H3","H4","H5","H6","H7","H8","LI"].indexOf(n.tagName)!==-1}function Mw(n){return n.replace(/\r\n\s*/g,"").replace(/\n\s*/g,"").replace(/\r\s*/g,"")}function KG(n){if(!n.tagName)return!1;if(n.tagName.toLocaleLowerCase()==="img")return!0;const t=n.querySelectorAll("img");for(let e=0;e<t.length;e+=1){const r=t[e];if(!r.src||r.getAttribute("width")==="0"||r.getAttribute("height")==="0")return!1}return t.length}function VG(n){return(n.tagName.toLocaleLowerCase()==="img"?[n]:Array.from(n.querySelectorAll("img"))).map(i=>({id:it(),type:"embed",embedType:"image",embedData:{src:i.src,width:i.width,height:i.height}}))}function Uw(n){var e;return Array.from(((e=n.getAttribute("style"))!=null?e:"").split(" ")).findIndex(r=>r.startsWith("level"))!==-1}function $G(n){var e;const t=Array.from(((e=n.getAttribute("style"))!=null?e:"").split(" "));for(let r=0;r<t.length;r++){const i=t[r];if(i.startsWith("mso-list:"))return i}return""}function Ow(n){var e,r;const t=Array.from(((e=n.getAttribute("style"))!=null?e:"").split(" "));for(let i=0;i<t.length;i++){const o=t[i];if(o.startsWith("level")){const s=(r=Number.parseInt(o.substring(5),10))!=null?r:void 0;if(s)return s}}return 1}function HG(n,t){n.setAttribute("data-group-id",t)}function jG(n){const t={},e=i=>{Array.from(Object.keys(t)).forEach(o=>{Number.parseInt(o,10)>i&&delete t[o]})};let r="";Array.from(n.children).forEach(i=>{if(Uw(i)){const o=$G(i);r!==o&&(e(0),r=o);const s=Ow(i);e(s);let l=t[`${s}`];l||(l=it(),t[`${s}`]=l),HG(i,l)}})}function Nw(n){const t=n.querySelector('[style="mso-list:Ignore"]');if(t){const e=t.innerText;return e&&e.trim()!=="-"}return!0}function zG(n){var r;if(!Nw(n))return 1;const e=n.querySelector('[style^="mso-list:Ignore"]');if(e){const i=e.innerText;if(i)return(r=Number.parseInt(i,10))!=null?r:1}return 1}function Pw(n){if(!Uw(n))return{};const t=Ow(n),e=n.getAttribute("data-group-id")||it();return{start:zG(n),level:t,groupId:e,ordered:Nw(n),type:"list"}}const GG=D("office-list");function Fw(n){return n instanceof HTMLOListElement||n instanceof HTMLUListElement}function WG(n,t){p(GG,Fw(n),"not list group element");let e=!1,r=1;const i=it();n instanceof HTMLOListElement&&(e=!0,r=n.start);const o=n,s=[];let l=1;return Array.from(o.children).forEach(c=>{if(c instanceof HTMLLIElement){Pw(c);const h=t.textElementToBlocks(c,t),C=h[0];s.push({...C,type:"list",ordered:e,level:l,groupId:i,start:r}),r+=1,s.push(...h.slice(1));return}const d=t.blockElementToBlocks(c,t);s.push(...d)}),s}function Kw(n,t){if(n.nodeName==="META")return[];if(n instanceof HTMLTableElement)return Rw(n,t);if(Fw(n))return[...WG(n,t)];if(KG(n))return[...VG(n)];if(FG(n))return[...t.textElementToBlocks(n,t)];if(!n.children)return[];const e=[];return Array.from(n.children).forEach(r=>{const i=Kw(r,t);e.push(...i)}),e}function Vw(n,t){const e=[];return n.forEach(r=>{var i;if(r instanceof Element)if(WA(r)){const o=document.createElement("p");o.appendChild(r);const s=t.blockElementToBlocks(o,t);e.push(...s)}else{const o=t.blockElementToBlocks(r,t);e.push(...o)}else if(r instanceof Text){const o=no(Mw((i=r.textContent)!=null?i:""));e.push(o)}}),e}function $w(n){return n instanceof Element?WA(n):n.nodeType===Node.TEXT_NODE}function qG(n){var t;return n.nodeType===Node.TEXT_NODE&&((t=n.textContent)==null?void 0:t.trim())===""}function Hw(n){const t=Array.from(n.childNodes);for(let e=0;e<t.length;e++){const r=t[e];if(!$w(r))continue;let i=e+1;for(;i<t.length&&$w(t[i]);)i+=1;if(qG(r)&&i===e+1)continue;const o=document.createElement("p");r instanceof Element?r.insertAdjacentElement("beforebegin",o):n.insertBefore(o,r);for(let s=e;s<i;s++)o.appendChild(t[s]);e=i-1}}function XG(n,t){const e=Cm(n);return Hw(e),Vw(Array.from(e.childNodes),t)}function YG(n){if(!(n instanceof HTMLElement))return{};const t={};if(n.style.textAlign==="right"?t.align="right":n.style.textAlign==="center"&&(t.align="center"),n.style.marginLeft){const e=Math.ceil(Number.parseInt(n.style.marginLeft,10)/20);e>=1&&e<=12&&(t.padding=e)}return t}function QG(n,t){return t&&Object.keys(t).length>0?{insert:n,attributes:t}:{insert:n}}function JG(n,t){if(n.nodeName==="B")return{...t,"style-bold":!0};if(n.nodeName==="I")return{...t,"style-italic":!0};if(n.nodeName==="U")return{...t,"style-underline":!0};if(n.nodeName==="S"||n.nodeName==="DEL")return{...t,"style-strikethrough":!0};if(n.nodeName==="SUB")return{...t,"style-sub":!0};if(n.nodeName==="SUP")return{...t,"style-super":!0};if(n.nodeName==="BR")return{...t,created:Date.now(),id:it(),box:!0,type:"br"};if(n.nodeName==="A"&&n.href){const r=n.href;if(r.startsWith("http:")||r.startsWith("https:"))return{...t,link:n.href}}const e={...t};return n instanceof HTMLSpanElement?(n.style.backgroundColor&&(e["inline-style-background-color"]=n.style.backgroundColor),n.style.color&&(e["inline-style-color"]=n.style.color),n.style.fontSize&&(e["inline-style-font-size"]=n.style.fontSize),n.style.fontFamily&&(e["inline-style-font-family"]=n.style.fontFamily),e):t}function jw(n,t,e){var i;if(n instanceof HTMLSpanElement&&n.getAttribute("style")==="mso-list:Ignore")return;const r=JG(n,t);if(n instanceof Text&&n.nodeValue||n.nodeName==="BR"){const o=Mw((i=n.nodeValue)!=null?i:" ");o&&e.push(QG(o,r));return}n.childNodes.length>0&&Array.from(n.childNodes).forEach(o=>{jw(o,r,e)})}function zw(n){return n instanceof Element?WA(n):!0}function qA(n){return!zw(n)}function ZG(n){if(n.length===0)return[];if(n.length===1)return[n];const t=[];let e=[n[0]],r=qA(n[0]);for(let i=1;i<n.length;i++){const o=n[i];r===qA(o)?e.push(o):(t.push(e),e=[o],r=qA(o))}return t.push(e),t}function tW(n,t){const e={};if(n.tagName.startsWith("H")){const o=Number.parseInt(n.tagName.substr(1),10);o>=1&&o<=8&&(e.heading=o)}const r=ZG(Array.from(n.childNodes)),i=[];return r.forEach((o,s)=>{if(zw(o[0])){const l=[],c={};Array.from(n.childNodes).forEach(h=>{jw(h,c,l)});let d={};s===0&&(d=Pw(n)),i.push({id:it(),type:"text",text:l,...d,...e,...YG(n)})}o.forEach(l=>{const c=t.blockElementToBlocks(l,t);i.push(...c)})}),i}function eW(n,t){const e=Cm(n);jG(e),Hw(e);const r={blocks:{root:[]},meta:{},comments:{}},i={font:t==null?void 0:t.font,doc:r,blockElementToBlocks:Kw,textElementToBlocks:tW,htmlToBlocks:XG},o=Vw(Array.from(e.children),i);if(o.length!==0)return r.blocks.root=o,r}const nW=D("html-to-doc");function Gw(n,t){if(!n)return null;const e=Jz(n);if(e)return e;if(_w(n)){const r=eW(n,t);if(r)return r}try{return Dw(n,t)}catch(r){nW.error(r)}return null}class rW{async fromData(t,e){const r={},i=e.getData("text/html");if(i){const o=Gw(i,{font:t.rootContainer});o&&(_w(i)?r["text/office-html"]=o:r["text/html"]=o)}return r}}class iW{async fromData(t,e){const r=e.getData("text/plain");if(!r)return;const i=GA(r,{font:t.rootContainer,htmlToDoc:Gw});if(!!i)return{"text/markdown":i}}}function oW(n){return/^([\d\w\u4e00-\u9fa5\s]*[\u4e00-\u9fa5\s]{1}|)((https|http|ftp)?:\/\/)[^\s]+/.test(n)}function sW(n){const t=[],e=n.split(/https|http|ftp/)[0],r=n.substring(e.length).trim();if(e&&e.length){const o=Xr(e,null);t.push(o,Xr(" ",null))}const i=Xr(r,{link:r});return t.push(i,Xr(" ",null)),t}class lW{async fromData(t,e,r){const{toPlainText:i=!1}=r||{},o={},s=e.getData("text/plain");if(s){const d={blocks:{root:s.replace(/\r\n/g,`
|
|
723
723
|
`).replace(/\r/g,`
|
|
724
724
|
`).split(`
|
|
725
725
|
`).map(h=>{const C={id:it(),type:"text"};if(oW(h)&&!i)return C.text=sW(h),C;const E=h?[Xr(h,null)]:[];return C.text=E,C})},meta:{},comments:{}};o["text/plain"]=d}return o}}function aW(n){const t=[];for(let e=0;e<n.length;e++){const r=n[e];r.type.toLocaleLowerCase().startsWith("image/")&&t.push(r)}return t}class XA{constructor(t){t.dataConverter.addConverter(new rW),t.dataConverter.addConverter(new lW),t.dataConverter.addConverter(new iW)}async handleBeforePaste(t,e,r,i){if(!e)return!1;const o=e.clipboardData;if(o){if(o.getData("text/html").indexOf("<ones-editor-doc")>0)return!1;const l=aW(i);if(l.length>0&&!r["text/office-html"])return await this.handleInsertImages(t,l),!0}return!1}async handleInsertImages(t,e){const{start:r,end:i}=t.selection.range,o=t.selection.focusedBlock;let s=at(o),c=Rt(o);const d=et(s);if(d&&Ot(d)==="code")return;if(r.blockId===i.blockId&&Le(o))c+=1;else{t.clearSelectedContents();const{blockId:C}=t.selection.range.start,E=t.getBlockById(C);c=Rt(E),s=at(E),Be(t,E)||(c+=1),ie(s)&&c===0&&(c+=1)}const h=Et(s);for(let C=0;C<e.length;C++){const E=e[C],A=await C1(t,"image",h,c+C,{file:E});A&&t3(t,A,"image",{id:"replace-image",name:"Replace image",data:{block:A,image:E}})}}}class cW extends je.TypedEmitter{constructor(t){super(),this.editor=t}onUpdateBlockText(t,e,r){const i=this.editor.getCustom("find-dialog");if(!i||!i.isVisible())return;const o=Js(Ci(this.editor,t),e);!st(this.editor,o)||!r.some(l=>l.insert||l.delete)||this.emit("onDocChanged",o)}onInsertBlock(t,e,r,i){const o=this.editor.getCustom("find-dialog");!o||!o.isVisible()||this.emit("onDocInserted")}onDeleteBlock(t,e,r){const i=Js(Ci(this.editor,t),e),o=this.editor.getCustom("find-dialog");!o||!o.isVisible()||this.emit("onDocDeleted",i)}}function Ww(n){return de.isSafari&&!!n&&Date.now()-n<100}const qw=D("highlight-data");class Rg{constructor(t){m(this,"data",new Map);this.editor=t}add(t,e,r){const i={id:it(),blockId:dt(t),oldText:this.editor.getBlockText(t),start:e,end:r};return this.data.set(i.id,i),i}get(t){const e=this.data.get(t);return p(qw,e,`no highligh data: ${t}`),e}remove(t){this.data.delete(t)}clearBlockData(t){Array.from(this.data.values()).forEach(e=>{e.blockId===t&&this.data.delete(e.id)})}destroy(){}static getData(t){return t.addCustom("highligh-data",()=>new Rg(t))}}function uW(n,t,e,r,i){const s=Rg.getData(n).add(t,e,r);return i.setAttribute("data-highlight-id",s.id),s}function wg(n,t){const e=t.getAttribute("data-highlight-id");return p(qw,e,"invalid highlight elem, no id"),Rg.getData(n).get(e)}const Ia=D("highligh-dom");function fW(n){return Mt(n,"editor-highlight")}function ls(n){const t=n.rootContainer.querySelectorAll(".editor-highlight");return Array.from(t)}function dW(n,t){p(Ia,t,"invalid block");const e=t.querySelectorAll(".editor-highlight");return Array.from(e)}function hW(n){const t=n.rootContainer.querySelectorAll(".editor-replace-result-highlight");return Array.from(t)}function Sg(n){const t=n.querySelectorAll(".editor-highlight");return Array.from(t)}function mW(n){Sg(n).forEach(t=>{t.remove()})}function Xw(n){return ls(n).length}function kl(n){const t=n.rootContainer.querySelectorAll(".editor-highlight");return Array.from(t).map(r=>{const i=Mt(r,"editor-highlight-box")?"box":"text";return{ele:r,type:i}})}function gW(n,t){p(Ia,t>=0,`invalid highlight index: ${t}`);const e=ls(n);return e.length===0?null:(p(Ia,t<e.length,`invalid highlight index: ${t}/${e.length}`),e[t])}function pW(n,t,{left:e,top:r,width:i,height:o},s){const l=["editor-highlight-child"];s&&l.push("editor-highlight-readonly");const c=B("div",l,n);c.style.top=`${r}px`,c.style.left=`${e}px`,c.style.width=`${i}px`,c.style.height=`${o}px`}function Yw(n,t,e,r,i){p(Ia,r>0,`invalid end: ${r}`);const o=ve(t),s=t.getBoundingClientRect(),l=Vo(n,t,Ie(n,t,e,r)),c=i==="find"?["editor-highlight"]:["editor-replace-result-highlight"],d=Uf(t,r),{prev:h}=d;h||p(Ia,!1,"invalid offset, no prev child at offset"),yr(h)&&c.push("editor-highlight-box");const C=B("div",c,o);l.forEach(E=>{pW(C,t,{left:E.left-s.left,width:E.width,top:E.top-s.top,height:E.height})}),uW(n,t,e,r,C)}function CW(n,t,e,r){return Yw(n,t,e,r,"find")}function Qw(n,t,e,r){return Yw(n,t,e,r,"replace")}function Lg(n,t){ls(n).forEach(s=>{Mt(s,"active")&&ut(s,"active")}),q(t,"active"),p(Ia,t.firstChild instanceof HTMLElement,"invalid highligh dom, invalid elem child");const r=t.firstChild;let o=r.getBoundingClientRect().y;o===0&&(o=r.getBoundingClientRect().y),jf(n,r,{animation:!0})}function Qd(n){const t=n.rootContainer.querySelector(".editor-highlight.active");return t||null}function Jw(n){return p(Ia,n,"no highlight elem"),Mt(n,"editor-highlight-readonly")}const wu=D("highligh-text");function Zw(n){hW(n).forEach(e=>{e.remove()})}function Ig(n,t){ls(n).forEach(r=>{r.remove()}),t!=null&&t.keepReplaceResult||Zw(n)}function t4(n,t,e){dW(n,t).forEach(i=>{i.remove()}),e!=null&&e.keepReplaceResult||Zw(n)}function Jd(n){const t=Qd(n);if(!t)return-1;const r=ls(n).indexOf(t);return p(wu,r!==-1,`invalid highlight index: ${r}`),r}function EW(n){const t=ls(n);if(t.length===0)return 0;const e=Qd(n);let r=e?t.indexOf(e):-1;!e||r===-1||r===t.length-1?r=0:r+=1;const i=t[r];return Lg(n,i),r}function AW(n){const t=ls(n);if(t.length===0)return 0;const e=Qd(n);let r=e?t.indexOf(e):-1;!e||r===-1||r===0?r=t.length-1:r-=1;const i=t[r];return Lg(n,i),r}function YA(n,t){const e=ls(n);e.length>0&&t<e.length&&Lg(n,e[t])}function xW(n,t,e){const r=Qd(n);if(!r)return!1;const i=et(r);if(p(wu,i,"no parent block"),!n.isBlockWritable(i))return!1;const o=Xw(n);let s=Jd(n);if(!Jw(r)&&n.isBlockWritable(i)){const d=wg(n,r),h=n.getBlockText(i),{start:C,end:E}=wg(n,r),[A,v]=zn.transformOffset(d.oldText,h,[C,E]),R=Q3(h,A,v-A);if(Re(R).toLowerCase()!==t.toLowerCase())return!1;const S=Pm(h,A,v,e);n.setBlockText(i,S),mW(i),QA(n,i,t),e&&Qw(n,i,A,A+e.length)}const l=Xw(n);s>=l?s=0:l>o&&(s+=1);const c=gW(n,s);return c&&Lg(n,c),!0}function bW(n,t,e,r){if(!st(n,t)||!n.isBlockWritable(t))return 0;const i=n.getBlockText(t);p(wu,i,"no block text");const o={count:0},s=X5(n,i,e,r,o);return Re(i)===Re(s)?0:(n.setBlockText(t,s),o.count)}function vW(n,t,e){if(p(wu,fW(t),"not a highlight elem"),Jw(t))return;p(wu,e>0,"invalid highlight length");const r=wg(n,t),i=et(t);p(wu,i,"no parent block"),Qw(n,i,r.start,r.start+e)}function BW(n,t){kl(n).forEach(r=>{r.type!=="box"&&vW(n,r.ele,t)})}function yW(n,t,e){if(n.readonly)return 0;const r=o=>{let s=0;return ke(o).forEach(c=>{Pt(n,c)?_n(n,c).forEach(h=>{s+=r(h)}):s+=bW(n,c,t,e)}),s},i=r(n.rootContainer);return e.length>0&&BW(n,e.length),i}function TW(n){const t=n.selection.range.end,e=n.getBlockById(t.blockId),r=t.isSimple()?t.offset:1,i=Sg(e);for(let l=0;l<i.length;l++){const c=i[l],{end:d}=wg(n,c);if(d>=r)return c}const o=w1(n,{simpleBlockOnly:!0}),s=o.indexOf(e);if(s===-1)return null;for(let l=s+1;l<o.length;l++){const c=o[l],d=Sg(c);if(d.length>0)return d[0]}return null}function kW(n){const t=ls(n),e=TW(n);return e?t.indexOf(e):0}function QA(n,t,e){if(!!e&&st(n,t)){const r=n.getBlockText(t),i=vC(n,r,e);i.length>0&&i.forEach(({start:o,end:s})=>{CW(n,t,o,s)})}}function e4(n,t){if(Ig(n),!t)return;w1(n,{simpleBlockOnly:!0,visibleOnly:!0}).forEach(r=>{QA(n,r,t)})}class n4{constructor(t){m(this,"dialog",null);m(this,"root");m(this,"oldText","");m(this,"_compositionEndTime",0);m(this,"components");m(this,"handleFindChanged",()=>{this.doSearch({keepReplaceResult:!1,gotoFirstSearchResult:!0})});m(this,"handleCompositionEnd",()=>{this._compositionEndTime=Date.now(),this.handleFindChanged()});m(this,"handleDocChanged",t=>{setTimeout(()=>{if(xf(t))return;t4(this.editor,t),QA(this.editor,t,this.components.findInput.value);const e=kl(this.editor),r=e.length;t.querySelectorAll(".editor-highlight").length===r&&YA(this.editor,0);const i=Jd(this.editor);i!==-1&&this.updateSearchStatus(i,e)})});m(this,"handleDocInserted",()=>{const t=setTimeout(()=>{clearTimeout(t),Ig(this.editor,{keepReplaceResult:!0}),e4(this.editor,this.components.findInput.value);const e=Jd(this.editor);if(e!==-1){const r=kl(this.editor);this.updateSearchStatus(e,r),YA(this.editor,e)}})});m(this,"handleDocDeleted",t=>{const e=setTimeout(()=>{if(!Sg(t).length){clearTimeout(e);return}t4(this.editor,t);const i=Jd(this.editor);if(i!==-1){const o=kl(this.editor);this.updateSearchStatus(i,o)}})});m(this,"handleInput",t=>{if(t.isComposing||Ww(this._compositionEndTime)){this.doSearch.cancel();return}this.handleFindChanged()});m(this,"handleFind",()=>{this.findNext({keepSearchResult:!1})});m(this,"handleReplace",()=>{const t=this.components.findInput.value;if(!t||!Qd(this.editor))return;const r=this.components.replaceInput.value;if(t===r)return;if(xW(this.editor,t,r)){const o=Jd(this.editor),s=kl(this.editor);this.updateSearchStatus(o,s)}r.includes(t)&&this.findNext({keepSearchResult:!0})});m(this,"handleReplaceAll",()=>{const t=this.components.findInput.value;if(!t)return;const e=this.components.replaceInput.value;t!==e&&this.editor.undoManager.runInGroup(()=>{yW(this.editor,t,e)>0&&(this.oldText="",this.doSearchNow({keepReplaceResult:!0,gotoFirstSearchResult:!0}))})});m(this,"doSearch",Pe.default(this.doSearchNow,300));m(this,"handleDocumentKeyDown",t=>{pm(t)&&this.hide()});this.editor=t;const e=B("div",["editor-find-dialog"],null),r=B("div",["editor-find-content"],e),i=B("div",["editor-find-dialog-row"],r),o=ea(x0,["editor-find-dialog-button-close"],e),s=B("label",["editor-find-dialog-label"],i,_.t("find.findLabel"));s.htmlFor="";const l=B("div",["editor-find-dialog-input-container"],i),c=B("input",["editor-find-dialog-input"],l);c.type="text",c.placeholder=_.t("find.findPlaceholder");const d=B("div",["editor-find-dialog-status"],l),h=ea(xT,["editor-find-dialog-icon-button"],d),C=B("div",["editor-find-dialog-curr"],d,"0/0"),E=ea(bT,["editor-find-dialog-icon-button"],d);let A;_.t("find.moreButton")?A=B("button",["editor-find-dialog-button"],i,_.t("find.moreButton")):A=ea(tE,["editor-find-dialog-icon-button-border"],i);const v=B("div",["editor-find-dialog-row"],r),R=B("label",["editor-find-dialog-label"],v,_.t("find.replaceLabel"));R.htmlFor="";const S=B("div",["editor-find-dialog-input-container"],v),M=B("input",["editor-find-dialog-input"],S);M.type="text",M.placeholder=_.t("find.replacePlaceholder");const U=B("div",["editor-find-dialog-row","editor-find-dialog-action"],r);B("div",["editor-find-dialog-space"],U);const V=B("button",["editor-find-dialog-button"],U,_.t("find.findButton")),nt=B("button",["editor-find-dialog-button"],U,_.t("find.replaceButton")),Y=B("button",["editor-find-dialog-button","editor-find-dialog-primary-button"],U,_.t("find.replaceAllButton"));A.onclick=()=>{this.showReplace()},o.onclick=()=>{this.hide()},c.onkeydown=ft=>{if(ft.isComposing||Ww(this._compositionEndTime)){this.doSearch.cancel();return}zp(ft)?(this.doSearch.cancel(),this.doSearchNow({keepReplaceResult:!1,gotoFirstSearchResult:!0})):pm(ft)&&this.hide()},c.oninput=this.handleInput,c.onpaste=this.handleFindChanged,c.oncut=this.handleFindChanged,c.addEventListener("compositionend",this.handleCompositionEnd),c.maxLength=50,V.onclick=this.handleFind,nt.onclick=this.handleReplace,Y.onclick=this.handleReplaceAll,M.maxLength=50,E.onclick=()=>{this.gotoNext()},h.onclick=()=>{this.gotoPrev()},this.components={findInput:c,findPrev:h,findCurrent:C,findNext:E,replaceInput:M,findButton:V,replaceButton:nt,replaceAllButton:Y,closeButton:o,showReplaceButton:A,rowReplace:v,rowActions:U,statusContainer:d},this.root=e;const X=new cW(t);t.doc.registerCallback(X),X.addListener("onDocChanged",this.handleDocChanged),X.addListener("onDocInserted",this.handleDocInserted),X.addListener("onDocDeleted",this.handleDocDeleted)}findNext(t){this.doSearch.cancel(),this.doSearchNow({keepReplaceResult:t.keepSearchResult,gotoFirstSearchResult:!0})}doSearchNow(t){const e=this.components.findInput.value;if(e||this.clearFind(t),this.oldText===e){this.gotoNext();return}this.oldText=e,e4(this.editor,e);const r=kl(this.editor),i=kW(this.editor);t.gotoFirstSearchResult&&YA(this.editor,i),this.updateSearchStatus(i,r)}gotoNext(){const t=EW(this.editor),e=kl(this.editor);this.updateSearchStatus(t,e)}gotoPrev(){const t=AW(this.editor),e=kl(this.editor);this.updateSearchStatus(t,e)}updateSearchStatus(t,e){var s;this.oldText?this.components.statusContainer.style.display="flex":this.components.statusContainer.style.display="none";const r=e.length,i=e.filter(l=>l.type==="box").length,o=((s=e[t])==null?void 0:s.type)==="box";if(r-i<=0)r===0?(this.components.findCurrent.innerText="0 / 0",this.components.findButton.disabled=!0):(this.components.findCurrent.innerText=`${t+1} / ${r}`,this.components.findButton.disabled=!1),this.components.replaceAllButton.disabled=!0,this.components.replaceButton.disabled=!0;else{this.components.findCurrent.innerText=`${t+1} / ${r}`;const l=this.editor.readonly;this.components.replaceAllButton.disabled=l,this.components.replaceButton.disabled=l||o,this.components.findButton.disabled=!1}}clearFind(t){Ig(this.editor),this.updateSearchStatus(0,[])}showFindOnly(){this.components.rowReplace.style.display="none",this.components.rowActions.style.display="none",this.components.showReplaceButton.style.display="flex"}showReplace(){this.components.rowReplace.style.display="flex",this.components.rowActions.style.display="flex",this.components.showReplaceButton.style.display="none",this.components.replaceInput.focus(),this.components.replaceInput.select()}hideSearchResult(){this.components.statusContainer.style.display="none"}showSearchResult(){this.components.statusContainer.style.display="flex"}show(t){document.addEventListener("keydown",this.handleDocumentKeyDown);const e=this.editor.getSelectedText();e.length>0&&e.length<50&&(this.components.findInput.value=e),this.root.style.display="flex",t!=null&&t.showFindAndReplace?(this.showReplace(),this.components.findInput.value&&setTimeout(()=>{this.components.replaceInput.focus()})):this.showFindOnly(),this.hideSearchResult(),this.oldText="",this.doSearchNow({keepReplaceResult:!1,gotoFirstSearchResult:!0});const r=this.editor.readonly,i=this.components.findInput.value;this.components.replaceButton.disabled=r||!i,this.components.replaceAllButton.disabled=r||!i,this.components.replaceInput.disabled=r,this.dialog||(this.dialog=new pd(this.root,{disablePageScroll:!1}));const o=this.editor.options.componentsOptions.findDialog,s=(o==null?void 0:o.popoverTarget)||this.editor.rootContainer,l=()=>{var E,A,v,R;const c=o==null?void 0:o.getReferenceClientRect;if(c&&((A=(E=this.dialog)==null?void 0:E.tippyInstance)==null?void 0:A.popper))return c(s,(R=(v=this.dialog)==null?void 0:v.tippyInstance)==null?void 0:R.popper);const d=s.getBoundingClientRect(),h=d.top<0?12:d.top+12,C=d.right-this.root.clientWidth-12;return new DOMRect(C,h,0,0)};this.dialog.show(s,{getReferenceClientRect:l}),setTimeout(()=>{this.components.findInput.focus(),this.components.findInput.select()},300)}hide(){var t;(t=this.dialog)==null||t.close("cancelBar"),Ig(this.editor),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.editor.focus()}isVisible(){return this.dialog&&this.dialog.isVisible}research(){this.oldText="",this.doSearch({keepReplaceResult:!0,gotoFirstSearchResult:!1})}destroy(){var t;(t=this.dialog)==null||t.destroy()}}const RW={find:{findLabel:"\u67E5\u627E:",replaceLabel:"\u66FF\u6362:",findButton:"\u67E5\u627E",replaceButton:"\u66FF\u6362",replaceAllButton:"\u5168\u90E8\u66FF\u6362",moreButton:"",findPlaceholder:"\u5728\u6587\u6863\u5185\u67E5\u627E",replacePlaceholder:"\u66FF\u6362\u4E3A"}},wW={find:{findLabel:"Search:",replaceLabel:"Replace:",findButton:"Search",replaceButton:"Replace",replaceAllButton:"Replace all",moreButton:"",findPlaceholder:"Search text in document",replacePlaceholder:"Replace with"}},SW={find:{findLabel:"\u691C\u7D22\uFF1A",replaceLabel:"\u7F6E\u63DB\uFF1A",findButton:"\u691C\u7D22",replaceButton:"\u7F6E\u63DB",replaceAllButton:"\u3059\u3079\u3066\u3092\u7F6E\u63DB",moreButton:"",findPlaceholder:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3092\u691C\u7D22",replacePlaceholder:"\u306B\u7F6E\u63DB"}};_.mergeLang({"zh-CN":RW,"en-US":wW,"ja-JP":SW});function r4(n){const t=n.addCustom("find-dialog",()=>new n4(n));return ei(n)||t.show(),!0}function LW(n){const t=n.addCustom("find-dialog",()=>new n4(n));return ei(n)||t.show({showFindAndReplace:!0}),!0}const i4={"CtrlOrCmd+F":r4,"CtrlOrCmd+Shift+H":LW},Vat="";function IW(n){r4(n)}const DW=D("context-menu-utils");async function _W(){try{const n=await navigator.clipboard.readText(),e=(await navigator.clipboard.read())[0].types;return!n.trim()&&e.length===1&&e.includes("text/plain")}catch(n){return DW.warn(`Failed to read clipboard data: ${n}`),!0}}function o4(n,t){const e=document.createElement("a");e.href=n,e.download=t,e.click()}function MW(n){return new Promise((t,e)=>{const r=new FileReader;r.onload=()=>{const i=r.result;t(i)},r.onerror=()=>{e(new Error("Failed to read Blob as string."))},r.readAsText(n)})}function UW(n,t=10){const e=Math.random().toString(36).slice(2,2+t),r=n.split("/")[1];return`${e}.${r}`}async function OW(){const t=(await navigator.clipboard.read())[0],e=t.types,r=new DataTransfer;for(let i=0;i<e.length;i++){const o=e[i],s=await t.getType(o);if(o.startsWith("image/")){const c=UW(o),d=new File([s],c,{type:o});r.items.add(d);continue}const l=await MW(s);r.setData(o,l)}return r}const s4=D("context-menu-actions");async function l4(n){n.inputHandlers.onCopyWithoutEvent()}async function NW(n){n.selection.range.isCollapsed()||wC(n)}async function PW(n){l4(n),Jm(n)}function FW(n,t){p(s4,t,"block can not be null"),p(s4,Le(t),"block should be embed type");const e=[],r=n.getBlockData(t),i=r.embedType,o=n.editorEmbeds.getEmbedClass(i);if(o.getResources)o.getResources(n,r).forEach(s=>{e.push(s)});else{const l=r.embedData.src;l&&typeof l=="string"&&e.push(l)}return e}async function KW(n,t){const e=FW(n,t);if(e&&e.length){const r=e[0],i=n.doc.buildResourceUrl(r);o4(i,r)}}function VW(n){OW().then(t=>{const e=new ClipboardEvent("paste",{clipboardData:t,bubbles:!0});n.input.inputElement.dispatchEvent(e)})}const $W=D("context-menu");class HW{constructor(t){m(this,"t",_.t);m(this,"clipboardPermission",{read:"prompt",write:"granted"});m(this,"isSecureContext",window.isSecureContext);m(this,"externalActionHandleMap",new Map);m(this,"handleActionByExternal",t=>{const{data:e}=t;if(e&&e.externalType){const r=e.externalType,i=this.externalActionHandleMap.get(r);if(i)return i(this.editor,this.editor.selection.focusedBlock,t)}return!1});m(this,"getPasteCommandItem",async()=>{const t=this.hasClipboardReadPermission;let e;Af()||ta()?e=!0:e=t?await _W():!1;const r=this.isSecureContext&&this.clipboardPermission.read!=="denied"&&!e,i=this.t("contextMenu.paste"),o=gn("CtrlOrCmd+V");let s=this.isSecureContext?"":this.secureEnvTips(o,i);return!s&&(!t||e)&&(s=this.t("copyCutProperty.limitedEnvTips",{shortCut:o})),{id:"paste",name:i,subText:o,states:r?[]:["disabled"],disableReason:s}});m(this,"getCommandItems",async()=>{const t=await this.getPasteCommandItem(),e=this.editor.readonly?[]:[this.cutCommandItem,t],r=[...this.copyTypeCommandItems,...e];return this.getExternalContextMenuOptions(r),r.push(this.stepItem,...this.selectionCommandItems),r});m(this,"getExternalContextMenuOptions",t=>{const e=this.editor.selection.focusedBlock,r=ae(this.editor,e);if(r&&r.getBlockProperties){const i=r.getBlockProperties(this.editor,e);if(i){const{blockCommands:o}=i;if(o&&o["context-menu"]){const{commands:s,executeCommand:l,group:c}=o["context-menu"];if(s.length){const d=s.map(h=>({...h,data:{...h.data||{},externalType:c}}));t.push(this.stepItem,...d)}this.externalActionHandleMap.set(c,l)}}}});m(this,"isFocusImageBlock",()=>{const t=this.editor.selection,e=t.focusedBlock;return Le(e)&&ln(e)==="image"&&t.range.getSelectedBlocks().length===1});m(this,"isFocusImageTypeEmbed",()=>{const e=this.editor.selection.focusedBlock,r=["mermaid","flowchart","drawio"];return Le(e)&&r.includes(ln(e))});this.editor=t,this.clipboardSupport()}get hasClipboardReadPermission(){return this.clipboardPermission.read==="granted"}get hasClipboardWritePermission(){return this.clipboardPermission.write==="granted"}clipboardSupport(){if(!navigator.clipboard){this.clipboardPermission={write:"denied",read:"denied"};return}if(!navigator.permissions){this.clipboardPermission={write:"granted",read:"denied"};return}try{const t=navigator.permissions.query({name:"clipboard-read"}),e=navigator.permissions.query({name:"clipboard-write"});Promise.all([t,e]).then(r=>{const i=r[0],o=r[1];this.clipboardPermission={read:i.state,write:o.state},i.state!=="granted"&&(i.onchange=s=>{this.clipboardPermission.read=s.target.state}),o.state!=="granted"&&(i.onchange=s=>{this.clipboardPermission.write=s.target.state})}).catch(r=>{this.clipboardPermission.read="denied",$W.log(r)})}catch{this.clipboardPermission={write:"granted",read:"denied"}}}get isRangeCollapsed(){return this.editor.selection.range.isCollapsed()}get imageTypeCommandItems(){const t=this.isSecureContext&&this.hasClipboardWritePermission;return[{id:"copy-image",name:this.t("contextMenu.copyImage"),subText:gn("CtrlOrCmd+C"),states:t?[]:["disabled"],disableReason:this.isSecureContext&&this.hasClipboardWritePermission?"":this.secureEnvTips(this.t("contextMenu.copyImage"),gn("CtrlOrCmd+C"))},{id:"copy-image-url",name:this.t("contextMenu.copyImageUrl"),states:t?[]:["disabled"]},{id:"image-save-as",name:this.t("contextMenu.imageSaveAs")},{id:"new-tab-open-image",name:this.t("contextMenu.newTabOpenImage")}]}get copyTypeCommandItems(){const t=this.isSecureContext&&!this.isRangeCollapsed;if(this.isFocusImageBlock())return this.imageTypeCommandItems;const e=this.t("copyCutProperty.copy"),r=gn("CtrlOrCmd+C"),i=[{id:"copy",name:e,subText:r,states:t?[]:["disabled"],disableReason:this.isSecureContext&&this.hasClipboardWritePermission?"":this.secureEnvTips(r,e)}];this.isFocusImageTypeEmbed()&&i.push({id:"image-save-as",name:this.t("contextMenu.imageSaveAs")});const s=this.t("contextMenu.copyMarkdown"),l=gn("CtrlOrCmd+Shift+C");return i.push({id:"copy-markdown",name:s,subText:l,states:t?[]:["disabled"],disableReason:this.isSecureContext&&this.hasClipboardWritePermission?"":this.secureEnvTips(l,s)}),i}get cutCommandItem(){let t=this.isSecureContext&&!this.isRangeCollapsed;const r=this.editor.selection.range.getSelectedBlocks().some(l=>!this.editor.isBlockWritable(l.block));r&&(t=!1);const i=this.t("copyCutProperty.cut"),o=gn("CtrlOrCmd+X");let s="";return t||(!this.isSecureContext||!this.hasClipboardWritePermission?s=this.secureEnvTips(o,i):r&&(s=this.t("contextMenu.uneditableBlockSelected"))),{id:"cut",name:this.t("copyCutProperty.cut"),subText:gn("CtrlOrCmd+X"),states:t?[]:["disabled"],disableReason:s}}get stepItem(){return{id:"step",name:"",type:"separator"}}get selectionCommandItems(){let t=!1;const e=this.editor.selection;e.range.isCollapsed()&&(t=!0),e.range.start.isSimple()&&e.range.end.isSimple()&&(t=e.range.start.offset>0&&e.range.getSelectedBlocks().length===1);const r=[{id:"select-block",name:this.t("contextMenu.selectBlock"),states:t?[]:["disabled"]}];return r.push({id:"select-all",name:this.t("contextMenu.selectAll")}),r}destroy(){this.externalActionHandleMap.clear()}secureEnvTips(t,e){return this.t("copyCutProperty.unsafeEnvTips",{shortCut:t,operation:e})}}const $at="";class JA{constructor(t){m(this,"contextMenu");m(this,"contextMenuCommandItems");m(this,"destroy",()=>{this.contextMenuCommandItems.destroy(),this.contextMenu.off("show",this.handleContextMenuShown),this.contextMenu.off("click",this.handleContextMenuClick),this.contextMenu.off("close",this.handleContextMenuClose),document.removeEventListener("contextmenu",this.handleContextMenu)});m(this,"updateEditorCaret",t=>{const{x:e,y:r,target:i}=t,o=k1(this.editor,e,r);if(!o)return;const s=this.editor.getBlockById(o.focus.blockId),l=this.editor.selection.range;let c=!1;i instanceof HTMLImageElement&&Ot(s)==="embed"&&ln(s)==="image"?c=!1:l.isSimple()?c=l.getSelectedBlocks().some(d=>Pt(this.editor,d.block)?d.block.contains(s):d.block.id===(o==null?void 0:o.focus.blockId)&&d.start.offset<=o.focus.offset&&d.end.offset>=o.focus.offset):c=l.getSelectedContainers().some(h=>h.contains(s)),c||this.editor.selectionHandler.handleMouseDown(t,{autoScroll:!1})});m(this,"handleContextMenu",t=>{if(de.isMobile||!this.editor.findCustom("editor-context-menu"))return;const r=t.target;if(this.editor.findCustom("toolbar-handler")&&this.editor.getCustom("toolbar-handler").isInToolbar(t)){t.preventDefault();return}if(this.editor.findCustom("block-menu")){const o=this.editor.getCustom("block-menu");if(o.blockMenu.isInMenu(r)||o.emptyBlockMenu.isInMenu(r)){t.preventDefault();return}}if(this.isInEditor(t)){t.preventDefault(),this.updateEditorCaret(t),this.contextMenu.manualShow(document.body,{theme:"light",point:{x:t.clientX,y:t.clientY}});return}this.isInMenu(t)&&t.preventDefault()});m(this,"isInMenu",t=>this.contextMenu.isInCommandBar(t.target));m(this,"isInEditor",t=>{const e=t.target;if(!e)return!1;let r=e.closest("div.editor-root"),i=this.editor.rootElement===r;if(!i&&e.classList.contains("editor-disable-scroll")){const s=Fe(t.x,t.y);r=(s==null?void 0:s.closest("div.editor-root"))||null,i=this.editor.rootElement===r}const o=t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement;return i&&!o});m(this,"handleContextMenuShown",async()=>{this.editor.findCustom("toolbar-handler")&&this.editor.getCustom("toolbar-handler").hide();const t=await this.contextMenuCommandItems.getCommandItems();this.contextMenu.updateItems(t)});m(this,"handleContextMenuClick",(t,e)=>{if(this.contextMenuCommandItems.handleActionByExternal(e))return;const{id:r}=e;switch(r){case"copy":l4(this.editor);break;case"copy-markdown":NW(this.editor);break;case"cut":if(this.handleImageEmbedAction(r))break;PW(this.editor);break;case"paste":VW(this.editor);break;case"copy-image":case"copy-image-url":case"image-save-as":case"new-tab-open-image":this.handleImageEmbedAction(r);break;case"select-all":r0(this.editor,this.editor.rootContainer);break;case"select-block":bC(this.editor);break}});m(this,"handleContextMenuClose",()=>{this.editor.focus()});this.editor=t,this.contextMenu=new dl([],void 0,{id:`right-context-menu-${t.clientId}`,classes:[_.getCurrentLang(),"editor-context-menu"]}),this.contextMenu.on("show",this.handleContextMenuShown),this.contextMenu.on("click",this.handleContextMenuClick),this.contextMenu.on("close",this.handleContextMenuClose),document.addEventListener("contextmenu",this.handleContextMenu),this.contextMenuCommandItems=new HW(t)}handleImageEmbedAction(t){const e=this.editor.selection.focusedBlock;if(Le(e)&&ln(e)==="image"){const r=e,i=Xe.getImageObject(this.editor,r),o=i.getSelectedIndex(),s=i.getImages();if(o!==-1){let l=r.querySelectorAll("img")[o].src;if(l){switch(l=this.editor.doc.buildResourceUrl(l),t){case"cut":Tg(this.editor,null),kg(this.editor);break;case"copy-image":Tg(this.editor,null);break;case"copy-image-url":Tf([{type:"text/plain",data:new Blob([l],{type:"text/plain"})}]);break;case"image-save-as":o4(l,s[o].src);break;case"new-tab-open-image":window.open(l);break}return!0}}}else switch(t){case"image-save-as":KW(this.editor,e);break}return!1}}const jW={contextMenu:{copyMarkdown:"\u590D\u5236\u4E3A Markdown",paste:"\u7C98\u8D34",copyImage:"\u590D\u5236\u56FE\u7247",copyImageUrl:"\u590D\u5236\u56FE\u7247\u5730\u5740",imageSaveAs:"\u56FE\u7247\u53E6\u5B58\u4E3A",newTabOpenImage:"\u65B0\u6807\u7B7E\u9875\u6253\u5F00\u56FE\u7247",selectBlock:"\u9009\u4E2D\u533A\u5757",selectAll:"\u9009\u4E2D\u5168\u6587",uneditableBlockSelected:"\u9009\u4E2D\u533A\u57DF\u5305\u542B\u9501\u5B9A\u533A\u5757\uFF0C\u6682\u4E0D\u652F\u6301\u526A\u5207"}},zW={contextMenu:{copyMarkdown:"Copy as Markdown",paste:"paste",copyImage:"Copy image",copyImageUrl:"Copy image address",imageSaveAs:"Save image as",newTabOpenImage:"Open image in a new tab",selectBlock:"Select the block",selectAll:"Select all",uneditableBlockSelected:"The selected area contains locked blocks, and cutting is not currently supported"}},GW={contextMenu:{copyMarkdown:"Markdown \u3068\u3057\u3066\u30B3\u30D4\u30FC",paste:"\u8CBC\u308A\u4ED8\u3051",copyImage:"\u753B\u50CF\u3092\u30B3\u30D4\u30FC",copyImageUrl:"\u753B\u50CF\u30A2\u30C9\u30EC\u30B9\u3092\u30B3\u30D4\u30FC",imageSaveAs:"\u540D\u524D\u3092\u4ED8\u3051\u3066\u753B\u50CF\u3092\u4FDD\u5B58",newTabOpenImage:"\u65B0\u3057\u3044\u30BF\u30D6\u3067\u753B\u50CF\u3092\u958B\u304F",selectBlock:"\u30D6\u30ED\u30C3\u30AF\u3092\u9078\u629E",selectAll:"\u30C6\u30AD\u30B9\u30C8\u3092\u5168\u9078\u629E",uneditableBlockSelected:"\u9078\u629E\u3057\u305F\u30A8\u30EA\u30A2\u306B\u30ED\u30C3\u30AF\u3055\u308C\u305F\u30D6\u30ED\u30C3\u30AF\u304C\u542B\u307E\u308C\u3066\u3044\u308B\u305F\u3081\u3001\u5207\u308A\u53D6\u308A\u304C\u3067\u304D\u307E\u305B\u3093"}};_.mergeLang({"zh-CN":jW,"en-US":zW,"ja-JP":GW});function ZA(n,t){return t.map(e=>{var o,s;const r=ae(n,e),i=(o=r.getBlockProperties)==null?void 0:o.call(r,n,e);return Le(e)||Pt(n,e)?i!=null&&i.abstract?`[${i.abstract}]`:"":(s=i==null?void 0:i.abstract)!=null?s:""}).join(" ")}function Dg(n){const{editor:t,commentGroupId:e,abstract:r="text"}=n,i=it(),o=t.doc.getUser(),s=Date.now(),l=e!=null?e:i;return{id:i,groupId:l,userId:o.userId,displayName:o.displayName,avatarUrl:o.avatarUrl,abstract:r,created:s,modified:s}}function a4(n,t,e){const r=e.id,o=n.getBlockData(t).comments;let s;o?s=[...o,r]:s=[r];const l={comments:s};n.updateBlockData(t,l)}function tx(n,t,e){const r=ZA(n,[t]),i=Dg({editor:n,abstract:r});a4(n,t,i);const o=Xo();return e.localCreateComment(i,o),i}const WW=D("standard-block-actions");class qW{constructor(t,e){m(this,"executeCommand",(t,e,r)=>{const i=r.data;try{this.editorComments.showCommentList();const o=t.getBlockById(i);tx(t,o,this.provider)}catch(o){WW.error(`failed to execute block command: ${JSON.stringify(o)}`)}});this.provider=t,this.editorComments=e}commands(t,e){const r=dt(e);return{group:"block-comment-actions",commands:[{id:"comment",name:_.t("comment.quickMenuCommand"),data:r,order:100,states:t.readonly?["disabled"]:[]}],executeCommand:this.executeCommand}}}class XW{async handleBeforePasteDoc(t,e){return Object.values(e.blocks).forEach(r=>{r.forEach(i=>{delete i.comments,i.text&&i.text.forEach(o=>{if(o.attributes){const s=o.attributes;Object.keys(s).forEach(l=>{l.startsWith("comment-")&&delete s[l]})}})})}),!1}}var ge=(n=>(n.SwitchUp="switch-up",n.SwitchDown="switch-down",n.CommentItemReply="comment-item-reply",n.CommentItemMore="comment-item-more",n.CommentItemOk="comment-item-ok",n.CommentItemCancel="comment-item-cancel",n.CommentItemDelete="comment-item-delete",n.CommentItemEdit="comment-item-edit",n.QuickReply="quick-reply",n.QuickReplyOk="quick-reply-ok",n.QuickReplyCancel="quick-reply-cancel",n))(ge||{});const ex="group-item-action",c4="last-comment-item",YW="disabled",u4=500;function Su(n){return n.id!==n.groupId}function f4(n,t=".comment-item-root"){return n.querySelectorAll(t).length}function QW(n){const t=n.closest(".comment-item-root");return t?t.id:null}function as(n,t){n.setAttribute(ex,t)}function JW(n){return n.closest(`[${ex}]`)}function ZW(n){var t;return(t=n.getAttribute(ex))!=null?t:""}function tq(n){return n.disabled||n.classList.contains(YW)}function d4(n,t){const e=n.rootContainer.querySelector(`[comment-${t.toLocaleLowerCase()}=${t}]`);if(!e)return null;const r=e.closest('[data-type="editor-block"]');return r?r.id:null}function h4(n){return Array.from(n.attributes).map(e=>e.name).filter(e=>e.startsWith("comment-")).map(e=>e.replace("comment-",""))}const m4=D("doc-comments");function g4(n,t,e,r){if(t.comments){const o=t.comments;Array.isArray(o)&&o.forEach(s=>{r.has(s)||(r.add(s),e.push(s))})}t.text&&t.text.forEach(s=>{if(s.attributes){const l="comment-";Object.entries(s.attributes).forEach(([c,d])=>{if(c.startsWith(l)){const h=d;r.has(h)||(r.add(h),e.push(h))}})}});const i=t.children;!i||i.forEach(o=>{n.blocks[o].forEach(l=>{g4(n,l,e,r)})})}function eq(n){const t=[],e=new Set;n.blocks.root.forEach(i=>{g4(n,i,t,e)});const r=new Map;return t.forEach((i,o)=>r.set(i,o)),r}function nq(n){const t=new Map;n.forEach(i=>{if(Su(i)){const o=t.get(i.groupId);o?o.push(i):t.set(i.groupId,[i])}});const e=[];return n.forEach(i=>{var o;if(!Su(i)){const s=(o=t.get(i.id))!=null?o:[];t.delete(i.id);const l={...i,children:s};e.push(l)}}),Array.from(t.values()).forEach(i=>{const o=i[0],s=i.slice(1),l={...o,children:s};e.push(l)}),e}function Rl(n,t){const e=n.doc.toJSON(),r=eq(e);return nq(t.getComments()).filter(s=>r.has(s.groupId)).sort((s,l)=>{const c=r.get(s.groupId),d=r.get(l.groupId);return p(m4,c!==void 0,`comment not exists in doc, ${s.groupId}`),p(m4,d!==void 0,`comment not exists in doc, ${l.groupId}`),c-d})}function p4(n){const{children:t,...e}=n,r=[e];return t.forEach(i=>{r.push(i)}),r}function rq(n,t){return Rl(n,t).length}function nx(n,t){const e=[],r=n.getBlockById(t.blockId);if(st(n,r)){const o=t.blockId,s=t.offset,l=n.getBlockById(o),c=n.getBlockText(l),d=Hc(c,s);d&&Object.entries(d).forEach(([h,C])=>{h.startsWith("comment-")&&e.push(C)})}const i=r.attributes;for(let o=0;o<i.length;o++){const s=i[o];s.name.startsWith("comment-")&&e.push(s.value)}return e}function C4(n){const t=n.selection.range;if(!t.isSimple())return[];if(t.start.blockId!==t.end.blockId)return[];if(t.isCollapsed())return nx(n,t.start);const{start:e,end:r}=t,i=nx(n,e),o=nx(n,r);return Mp.default(i,o)}const iq=D("active-comments");function E4(n,t){n.rootContainer.querySelectorAll(`span.comment[comment-${t}],[data-type=editor-block].comment[comment-${t}]`).forEach(r=>{ut(r,"active")})}function A4(n,t,e){const r=n.rootContainer.querySelector("span.comment.active,[data-type=editor-block].comment.active");if(!t)r&&h4(r).forEach(o=>E4(n,o));else{const i=t.toLocaleLowerCase();if(r){const s=h4(r);if(s.length===1&&s[0]===i)return;s.forEach(l=>E4(n,l))}const o=n.rootContainer.querySelectorAll(`span.comment[comment-${i}],[data-type=editor-block].comment[comment-${i}]`);if(o.length){o.forEach(l=>{q(l,"active")});const s=o[0];if(ca(s)){const l=mt(s,0,"normal");n.selection.setSelection(l,void 0,{noScroll:e==="next"})}else if(C4(n).indexOf(t)===-1){const c=et(s);p(iq,c,"block not found");const d=ga(c,s),h=mt(c,d.start,"normal");n.selection.setSelection(h,void 0,{noScroll:e==="next"})}if(n.focus(),e==="next"){const l=s.getBoundingClientRect(),c=n.scrollContainer.clientHeight;l.top>c/2&&ia(s,{elementToScroll:n.scrollContainer,verticalOffset:-n.scrollContainer.clientHeight/2})}}}}const Hat="";D("comment-editor");const{t:oq}=_,rx="comment-editor-readonly",Zd="comment-editor-editing";class ix{constructor(t,e,r){m(this,"root");m(this,"components");m(this,"handleEditorBlur",()=>{this.inactiveEditor()});m(this,"handleEditorFocus",()=>{this.editor.readonly||this.activeEditor()});m(this,"activeEditor",()=>{Mt(this.root,Zd)||q(this.root,Zd)});m(this,"inactiveEditor",()=>{ut(this.root,Zd)});m(this,"handleInsertImg",async()=>{const{editor:t}=this.components,e=Et(t.rootContainer),r=await Uc("image/*",{container:this.root});if(!r){t.focus();return}const i={src:"",widthPercent:50},o={id:it(),type:"embed",embedType:"image",embedData:i},s=t.options.componentsOptions.image;s!=null&&s.defaultAlign&&(o.align=s.defaultAlign);const l=t.getFocusedBlock(),c=t.getBlockIndex(l),d=t.insertBlock(e,c+1,o);Xe.getImageObject(t,d).replaceImage(0,r),t.focus()});m(this,"handleReadonlyChange",t=>{t.readonly?(ut(this.root,Zd),q(this.root,rx)):(q(this.root,Zd),ut(this.root,rx))});m(this,"setDoc",t=>{const{components:{editor:e}}=this;e.doc.externalDoc.setDoc(t)});m(this,"getDoc",()=>{const{components:{editor:t}}=this;return t.doc.toJSON()});m(this,"isEmpty",()=>G1(this.getDoc()));m(this,"edit",()=>{const{editor:t}=this.components;t.readonly=!1,AC(t),this.activeEditor(),t.focus()});m(this,"clear",()=>{const t=Xo();this.setDoc(t)});m(this,"readonly",()=>{const{editor:t}=this.components;t.readonly=!0});m(this,"destroy",()=>{const{root:t,components:{editor:e,insertImgButton:r}}=this;r.onclick=null,e.destroy(),t.remove()});this.mainEditor=t,this.commentsProvider=e,this.doc=r,this.root=B("div",["comment-editor",rx],null),this.components=this.createEditor()}createEditor(){const t=B("div",["comment-editor-root"],this.root),{commentsProvider:e,mainEditor:r}=this,i=e.createCommentEditor(t,new LC(this.doc));i.readonly=!0,i.addListener("readonlyChanged",this.handleReadonlyChange),i.addListener("focus",this.handleEditorFocus),i.addListener("blur",this.handleEditorBlur);const o=Sa(this.root,"comment-editor-img",oq("comment.image"),IT,void 0,r.clientId);return o.classList.add("comment-editor-img"),o.onclick=this.handleInsertImg,{editor:i,insertImgButton:o}}get editor(){return this.components.editor}}class sq{constructor(t){m(this,"handleBeforeKeyDown",(t,e)=>{if(Wi(e,"Enter")){const{quickReply:r,updateLastCommentItem:i}=this.groupItem;return r.getReplyEditor().isEmpty()?(r.hideReplyEditor(),!0):(r.reply(),i(),!0)}return!1});this.groupItem=t}}class lq{constructor(t,e,r){m(this,"handleBeforeKeyDown",(t,e)=>{if(Wi(e,"Enter")){const{quickReply:r}=this.groupItem,{comment:i,getCommentEditor:o}=this.commentItem,s=o();if(s.isEmpty())this.commentsProvider.localDeleteComment(i.id);else{const l=s.getDoc();this.commentsProvider.localUpdateComment(i,l),s.readonly()}return r.show(),!0}return!1});this.commentsProvider=t,this.groupItem=e,this.commentItem=r}}const aq=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -960,4 +960,4 @@ ${o.mermaidText}
|
|
|
960
960
|
${o.flowchartText}
|
|
961
961
|
\`\`\`\`\`\``}return""}const tZ={embedType:"flowchart",convertFrom:QJ,handleUpdateBlock:YJ,createEmbedContent:XJ,getBlockProperties:JJ,convertTo:ZJ},eZ=D("plantuml-helper");function $S(n,t){var l;let r=((l=(n.getComponentOptions("plantuml")||{}).cdn)==null?void 0:l.plantuml)||DJ;r.endsWith("/")||(r+="/");const i=B9.default.encode(t);p(eZ,i,i),r+=i;const s=new URLSearchParams(document.location.search).get("doc");return Gp(r,{id:`${s}-${it()}`})}async function nZ(n,t){try{const e=await kx(n,t);return(await n.doc.uploadResource(e)).resourceId}catch{return Promise.resolve(t)}}class Nu extends Lx{constructor(t){super(t,"plantuml","plantumlText")}static get(t,e){return t.addCustom(`plantuml-${e.id}`,()=>new Nu(t))}code2ObjectUrl(t){return Promise.resolve($S(this.editor,t))}code2ResourceId(t){const e=$S(this.editor,t);return nZ(this.editor,e)}destroy(){}}function rZ(n,t,e){Nu.get(n,e).createEmbedContent(t,e)}function iZ(n,t,e){const r=Nu.get(n,e),i=zt(t);return r.updateEmbedContent(i,e),!0}function oZ(n,t,e){const{data:r}=e,i=n.getBlockString(t).trim();if(!r||r.embedType!=="plantuml"||i!=="```plantuml"||!st(n,t))return null;const o={src:"",plantumlText:""};return{blockData:{id:it(),type:"embed",embedType:"plantuml",embedData:o},onConverted:(c,d)=>{Nu.get(c,c.getBlockData(d)).editGraph(zt(d))}}}function sZ(n,t){return Nu.get(n,n.getBlockData(t)).getBlockProperties(t)}function lZ(n,t,e,r){const{embedData:i}=t,o=i;if(r==="html")return o.src?`<img src="${n.doc.buildResourceUrl(o.src,{withToken:!0})}" />`:o.flowchartText?`<div>${o.flowchartText}</div>`:"<p>[plantuml]</p>";if(r==="markdown"){if(o.src)return`})`;if(o.flowchartText)return`\`\`\`plantuml\`\`\`
|
|
962
962
|
${o.flowchartText}
|
|
963
|
-
\`\`\`\`\`\``}return""}const aZ={embedType:"plantuml",convertFrom:oZ,handleUpdateBlock:iZ,createEmbedContent:rZ,getBlockProperties:sZ,convertTo:lZ},mct="",cZ="hr",uZ={dividingLine:{type:"\u5206\u5272\u7EBF",abstract:"\u5206\u5272\u7EBF"}},fZ={dividingLine:{type:"Dividing-Line",abstract:"Dividing-Line"}},dZ={dividingLine:{type:"\u533A\u5207\u308A\u7DDA",abstract:"\u533A\u5207\u308A\u7DDA"}};_.mergeLang({"zh-CN":uZ,"en-US":fZ,"ja-JP":dZ});function hZ(n,t){const e=B("div",["editor-embed-container"],t);B("hr",["editor-embed-hr"],e)}function mZ(n,t,e,r){return r==="html"?"<hr />":r==="markdown"?"---":"------------"}function gZ(){return{name:"hr",insertEmbedCommandItems:[{id:"insert-hr",name:_.t("dividingLine.type"),icon:qT,order:500,group:"common",subText:tr("insert-hr")}],handleInsertEmptyEmbed:async(n,t)=>{const{containerId:e,blockIndex:r}=t;return n.insertEmbed(e,r,cZ,{})}}}function pZ(n,t,e){const{data:r}=e;if(!r||r.embedType!=="dividing-line"||!st(n,t))return null;const i={};return{blockData:{id:it(),type:"embed",embedType:"hr",embedData:i}}}function CZ(){return{abstract:_.t("dividingLine.abstract")}}const EZ={embedType:"hr",createEmbedContent:hZ,convertTo:mZ,getOptions:gZ,convertFrom:pZ,getBlockProperties:CZ},gct="",pct="",AZ={media:{upload:{failed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>',maxSizeFailed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7\u9650\u5236\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6</div>'},load:{failed:'<div class="line-1">{name}\u52A0\u8F7D\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>'},audio:{menuItem:"\u97F3\u9891",abstract:"\u97F3\u9891"},video:{menuItem:"\u89C6\u9891",abstract:"\u89C6\u9891"}}},xZ={media:{upload:{failed:'<div class="line-1">{name} upload failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>',maxSizeFailed:'<div class="line-1">{name} upload failed</div><div class="line-2">The file size exceeds limit. Please choose another file.</div>'},load:{failed:'<div class="line-1">{name} loading failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>'},audio:{menuItem:"Audio",abstract:"Audio"},video:{menuItem:"Video",abstract:"Video"}}},bZ={media:{upload:{failed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>',maxSizeFailed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u30D5\u30A1\u30A4\u30EB\u306E\u30B5\u30A4\u30BA\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u308B\u305F\u3081\u3001\u4ED6\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044</div>'},load:{failed:'<div class="line-1">{name}\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>'},audio:{menuItem:"\u97F3\u58F0",abstract:"\u97F3\u58F0"},video:{menuItem:"\u52D5\u753B",abstract:"\u52D5\u753B"}}};_.mergeLang({"zh-CN":AZ,"en-US":xZ,"ja-JP":bZ});var Ui=(n=>(n.AUDIO="audio",n.VIDEO="video",n))(Ui||{}),ah=(n=>(n.Empty="empty",n.Progress="progress",n.Error="error",n))(ah||{});const HS=10*1024*1024,vZ=["wav","mp3","aac","ogg","webm","flac"],BZ=["ogg","mp4","webm"],yZ=()=>{};function jS(n){var h,C,E,A,v,R;const t=(h=n.getComponentOptions("media"))!=null?h:{},{allowedMedias:e,maxSize:r,callbacks:i}=t,o=(C=e==null?void 0:e.audio)!=null?C:vZ,s=(E=e==null?void 0:e.video)!=null?E:BZ,l=(A=r==null?void 0:r.audio)!=null?A:HS,c=(v=r==null?void 0:r.video)!=null?v:HS,d=(R=i==null?void 0:i.onError)!=null?R:yZ;return{allowedMedias:{audio:o,video:s},maxSize:{audio:l,video:c},callbacks:{onError:d}}}function TZ(n,t){const e=o=>o.map(s=>`.${s}`).join(","),{allowedMedias:r}=jS(n),i=r[t];return i?e(i):"*"}function kZ(n,t,e){const{maxSize:r,callbacks:i,allowedMedias:o}=jS(t),{[e]:s}=r,{[e]:l}=o;if(s&&n.size>s){const d=new Error("media is too large");throw d.code=`MaxMediaSize-${e}`,i!=null&&i.onError&&(i==null||i.onError(t,d)),d}const c=kf(n.name);if(l&&!l.includes(c.toLowerCase())){const d=new Error(`media file is not allowed: ${c}`);throw d.code="NotAllowedFile",i!=null&&i.onError&&(i==null||i.onError(t,d)),d}}function RZ(n){return n===ah.Empty||n===ah.Error}const xn=D("media");class wZ extends je.TypedEmitter{constructor(e){super();m(this,"mediaContainer",null);m(this,"media",null);m(this,"abstract",null);m(this,"handleMediaLoadError",(e,r)=>{if(!r.target||!(r.target instanceof Node)||!(r.target instanceof Element?r.target:r.target.parentElement))return;const o=et(r.target);if(!o||!o.contains(this.mediaContainer))return;const s=this.renderError();this.updateMediaContent(s),this.emit("mediaError",e,"load_error",dt(o))});m(this,"handleUploadFile",async e=>{p(xn,this.abstract,"no abstract"),p(xn,this.mediaContainer,"The media element not exist");const{editor:r}=this.options,i=et(this.mediaContainer);p(xn,i,"The block element not exist");const o=r.getBlockData(i);try{const{resourceId:s}=await r.doc.uploadResource(e,{onProgress:C=>{this.renderProgress(C,e)}}),{name:l,type:c,size:d}=e,h={...o,embedData:{...o.embedData,src:s,fileName:l,fileSize:d,fileType:c}};r.updateBlockData(i,h)}catch(s){xn.error(s),this.emit("mediaError",r,"upload_error",o.id),this.renderRetry(e,s)}ut(i,"media-block-uploading")});m(this,"destroy",()=>{this.mediaContainer=null});this.options=e}bindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.addEventListener(this.media,"error",this.handleMediaLoadError)}unbindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.removeEventListener(this.media,"error",this.handleMediaLoadError)}updateMediaContent(e){p(xn,this.mediaContainer,"The media element not exist"),this.mediaContainer.innerHTML="",this.mediaContainer.append(e)}renderError(){p(xn,this.abstract,"no abstract");const{editor:e,createMediaElement:r}=this.options,{mediaIcon:i,mediaName:o}=this.abstract;p(xn,this.mediaContainer,"The media element not exist");const s=et(this.mediaContainer);p(xn,s,"The block element not exist");const l=e.getBlockData(s),c=B("div",["media-error","embed-selected-content","embed-hover-content"],null),d=B("span",["media-error-icon"],c);d.innerHTML=i;const h=B("div",[],c);h.innerHTML=_.t("media.load.failed",{name:o}),c.appendChild(h);const C=h.querySelector(".retry-upload");return p(xn,C,"The element not exist"),e.domEvents.addEventListener(C,"click",(E,A)=>{const v=B("div",["media-element"],null),R=this.getResourceUrl(l),S=r(E,v,l,R);this.unbindMediaEvent(),this.media=S,this.bindMediaEvent(),this.updateMediaContent(v)}),this.setFullScreen(),c}renderRetry(e,r){var E,A;p(xn,this.abstract,"no abstract");const{editor:i}=this.options,{mediaIcon:o,mediaName:s}=this.abstract,l=B("div",["media-error","embed-selected-content","embed-hover-content"],null),c=B("span",["media-error-icon"],l);c.innerHTML=o;const d=B("div",[],l);let h=_.t("media.upload.failed",{name:s});(((E=r.response)==null?void 0:E.status)===420||((A=r.response)==null?void 0:A.status)===413)&&(h=_.t("media.upload.maxSizeFailed",{name:s})),d.innerHTML=h,l.appendChild(d);const C=d.querySelector(".retry-upload");C&&i.domEvents.addEventListener(C,"click",()=>{i.readonly||(p(xn,this.abstract,"no abstract"),this.handleUploadFile(e))}),this.updateMediaContent(l),this.setFullScreen()}renderProgress(e,r){p(xn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope .media-progress"),o=e===-1||e===100?100:e;if(i){const{updateProgressElement:s}=this.options;s(i,o)}else{const{createProgressElement:s}=this.options,l=et(this.mediaContainer);p(xn,l,"The element not exist"),q(l,"media-block-uploading");const c=B("div",["media-progress"],null);s(c,o,r),this.updateMediaContent(c)}this.setFullScreen()}renderMediaElement(e,r){p(xn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope > .media-element"),{createMediaElement:o,updateMediaElement:s,editor:l}=this.options,c=this.getResourceUrl(e,r);if(i){const d=s(l,i,e,c);this.unbindMediaEvent(),this.media=d,this.bindMediaEvent()}else{const d=B("div",["media-element"],null),h=o(l,d,e,c);this.unbindMediaEvent(),this.media=h,this.bindMediaEvent(),this.updateMediaContent(d)}}renderEmpty(e){p(xn,this.abstract,"no abstract"),p(xn,this.mediaContainer,"The media element not exist");const r=B("div",["media-empty","embed-selected-content","embed-hover-content"],this.mediaContainer);r.innerHTML=this.abstract.mediaIcon,this.updateMediaContent(r);const{editor:i}=this.options;i.findBlockById(e.id)&&this.emit("mediaError",i,"empty",e.id),this.setFullScreen()}getResourceUrl(e,r){const{src:i}=e.embedData,{editor:o}=this.options;return o.doc.buildResourceUrl(i,{syncNewResources:async(s,l)=>{var d,h;if(!r)return;await o.doc.addResources([s]);const c=(h=(d=o.doc).getServerMeta)==null?void 0:h.call(d).appId;if(l!==e.embedData.src&&c&&e.embedData.src.includes(c)){const C=et(r);if(C&&!o.readonly&&o.isBlockWritable(C)){const E=xt.default(e);E.embedData.src=s,o.updateBlockData(C,E)}}}})}setFullScreen(){p(xn,this.mediaContainer,"The media element not exist"),q(this.mediaContainer,"full-screen")}removeFullScreen(){p(xn,this.mediaContainer,"The media element not exist"),ut(this.mediaContainer,"full-screen")}updateBlockAlign(e,r){const i=et(r);p(xn,i,"The block element not exist");const{align:o}=e;e.embedType==="video"&&(i.hasAttribute("data-style-align")&&i.removeAttribute("data-style-align"),i.setAttribute("data-style-align",o))}render(e,r){const{src:i}=e.embedData;(!this.mediaContainer||!r.contains(this.mediaContainer))&&(this.mediaContainer=B("div",["media"],r)),this.updateBlockAlign(e,r),RZ(i)?i===ah.Empty&&this.renderEmpty(e):this.renderMediaElement(e,r)}setAbstract(e){this.abstract=e}}D("media-embed");const SZ="left";class zS{constructor(){m(this,"handleInsertEmptyEmbed",async(t,e)=>{var C;const{containerId:r,blockIndex:i}=e;let o;(C=e.data)!=null&&C.file&&(o=e.data.file);const s=TZ(t,this.embedType);if(o=o!=null?o:await Uc(s,{}),!o)return null;const{mediaType:l}=this.getAbstract();try{kZ(o,t,l)}catch{return null}const c={id:it(),type:"embed",embedType:this.embedType,embedData:{src:ah.Empty}};l==="video"&&(c.align=SZ);const d=t.insertBlock(r,i,c);return await this.getMedia(t,c.id).handleUploadFile(o),d})}getMedia(t,e){const r=t.addCustom(`media-${e}`,()=>new wZ({editor:t,createMediaElement:this.createMediaElement,updateMediaElement:this.updateMediaElement,createProgressElement:this.createProgressElement,updateProgressElement:this.updateProgressElement}));return r.setAbstract({...this.getAbstract()}),r}getOptions(){const{menuItem:t,mediaIcon:e,mediaName:r,order:i,group:o}=this.getAbstract();return{name:r,insertEmbedCommandItems:[{id:`insert-${this.embedType}`,name:t,icon:e,order:i,group:o,subText:tr(`insert-${this.embedType}`)}],handleInsertEmptyEmbed:this.handleInsertEmptyEmbed}}createEmbedContent(t,e,r){const{id:i}=r;this.getMedia(t,i).render(r,e)}handleUpdateBlock(t,e,r){const{id:i}=r,o=this.getMedia(t,i),s=zt(e);return o.render(r,s),!0}handleDeleteBlock(t,e){const r=e.id,i=this.getMedia(t,r);i.removeAllListeners(),i.destroy()}convertTo(t,e,r,i){const o=e.embedData,s=t.doc.buildResourceUrl(o.src,{withToken:!0});return i==="html"?`<${o.type} src="${s}" />`:i==="markdown"?``:s}}function GS(n,t){const e=B("div",["uploading-progress-mask"],n),r=B("div",["uploading-progress-bar"],e),i=B("div",["uploading-progress-bar-value"],r);i.style.width=`${t}%`}function WS(n,t){const e=n.querySelector(".uploading-progress-bar-value");e&&(e.style.width=`${t}%`)}const LZ=D("media-audio");class IZ extends zS{constructor(){super(...arguments);m(this,"embedType",Ui.AUDIO);m(this,"updateProgressElement",WS);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["audio-container","embed-hover-content","embed-selected-content"],r),l=B("audio",[],s);return l.innerHTML="Your browser does not support the <code>audio</code> element.",l.controls=!0,l.src=o,setTimeout(()=>{this.getMedia(e,i.id).setFullScreen()}),l})}getAbstract(){return{mediaIcon:zT,mediaName:_.t(`media.${Ui.AUDIO}.menuItem`),menuItem:_.t(`media.${Ui.AUDIO}.menuItem`),order:800,mediaType:Ui.AUDIO,group:"common"}}getBlockProperties(){return{abstract:`${_.t(`media.${Ui.AUDIO}.abstract`)}`}}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .audio-container > audio");return p(LZ,s,"The media element not exist"),s.src!==o&&(s.src=o),s}createProgressElement(e,r){const i=B("audio",[],e);i.innerHTML="Your browser does not support the <code>audio</code> element.",i.controls=!0,i.src="about:blank",GS(e,r)}}const DZ=new IZ;D("video-resizer");function qS(n){return n&&Le(n)&&ln(n)==="video"}const _Z=50;class Ix{constructor(t){m(this,"currentResizableElement",null);m(this,"resizing",!1);m(this,"handleHoveringBlockChange",(t,e)=>{if(!this.resizing&&!window.isDragging&&(e&&qS(e)&&this.disableBlockResize(e),t&&qS(t)&&this.editor.isBlockWritable(t))){const r=this.getVideoElement(t);if(!r)return;this.enableBlockResize(t,r)}});m(this,"handleResizing",(t,e)=>{if(this.resizing=!0,!this.currentResizableElement)return;const r=t.getBlock();if(!r)return;const i=r.getBoundingClientRect().width,o=Math.min(Math.max(e.width,_Z),i);this.currentResizableElement.style.width=`${o}px`,this.currentResizableElement.style.pointerEvents="none"});m(this,"handleResized",t=>{this.resizing=!1;const e=t.getBlock();if(!this.currentResizableElement||!e)return;const r=this.editor.getBlockData(e),{width:i}=this.currentResizableElement.getBoundingClientRect();this.currentResizableElement.style.pointerEvents="auto",this.editor.updateBlockData(e,{...r,width:i})});this.editor=t,ze.get(t).addListener("change",this.handleHoveringBlockChange)}destroy(){this.currentResizableElement=null,ze.get(this.editor).removeListener("change",this.handleHoveringBlockChange)}getVideoElement(t){return zt(t).querySelector(":scope .video-container > video")}updateResizer(t){const e=this.editor.findCustom(`${dt(t)}-resizer`);e&&e.updateResizer()}disableBlockResize(t){const e=this.editor.findCustom(`${dt(t)}-resizer`);e&&e.disableResize()}enableBlockResize(t,e){const r=this.editor.addCustom(`${dt(t)}-resizer`,()=>new Pd(this.editor,{resize:["top-left","top-right","bottom-left","bottom-right"]}));r.enableResize(t,e),r.removeListener("resizing",this.handleResizing),r.removeListener("resized",this.handleResized),r.addListener("resizing",this.handleResizing),r.addListener("resized",this.handleResized),this.currentResizableElement=e}}const MZ=D("video");class UZ extends zS{constructor(){super(...arguments);m(this,"embedType",Ui.VIDEO);m(this,"updateProgressElement",WS);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["video-container","embed-selected-content","drag-preview-element"],r),l=B("video",[],s);return l.innerHTML="Your browser does not support the <code>video</code> element.",l.controls=!0,l.src=o,l.addEventListener("canplay",()=>{e.addCustom("video-resizer",()=>new Ix(e)),this.getMedia(e,i.id).removeListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).addListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).removeFullScreen()}),i.width&&(l.style.width=`${i.width}px`),l});m(this,"createProgressElement",(e,r,i)=>{const o=B("video",["progress-video"],e);o.innerHTML="Your browser does not support the <code>audio</code> element.",o.controls=!0,GS(e,r),Mc(i).then(s=>{const l=e.querySelector(".progress-video");l&&h1(e)&&(l.src=s)})})}getAbstract(){return{mediaName:_.t(`media.${Ui.VIDEO}.menuItem`),mediaIcon:GT,menuItem:_.t(`media.${Ui.VIDEO}.menuItem`),order:700,mediaType:Ui.VIDEO,group:"common"}}getBlockProperties(){return{abstract:`${_.t(`media.${Ui.VIDEO}.abstract`)}`}}handleMediaError(e,r,i){const o=e.addCustom("video-resizer",()=>new Ix(e)),s=e.getBlockById(i);o.disableBlockResize(s)}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .video-container > video");p(MZ,s,"The media element not exist"),s.src!==o&&(s.src=o),i.width?s.style.width=`${i.width}px`:s.style.width="";const l=e.getBlockById(i.id);return setTimeout(()=>{e.addCustom("video-resizer",()=>new Ix(e)).updateResizer(l)}),s}}const OZ=new UZ,XS=[mA,vA,BA,Nk],Dx=[PS,OQ,zJ,tZ,aZ,WK,EZ,OZ,DZ,jz,mS,RX],YS=[Yk,CS,K4];function NZ(n,t,e){var i,o,s,l;Br.level=(i=e.logLevel)!=null?i:Gi.DEBUG;const r=td(n,t,{components:{blocks:[...XS,...((o=e==null?void 0:e.components)==null?void 0:o.blocks)||[]],embeds:[...Dx,...((s=e.components)==null?void 0:s.embeds)||[]],boxes:[...YS,...((l=e.components)==null?void 0:l.boxes)||[]],textRenders:[new JE],options:{...e.componentsOptions}}});return r.readonly=!0,r.addCustom("heading-collapse",()=>new px(r)),r.addCustom("editor-tooltip",()=>new Ld(r)),r.addListener("clickLink",(c,d,h)=>{var E;if((E=e==null?void 0:e.events)!=null&&E.onClickLink){e.events.onClickLink(c,d,h);return}const C=h.getAttribute("link");C&&(c.readonly||d.ctrlKey||d.metaKey)&&window.open(C,"_blank")}),r}class QS{constructor(t){this.createOptions=t,t.lang&&_.setLang(t.lang)}createHistoryEditor(t,e){return NZ(t,e,this.createOptions)}}function JS(n,{root:t,childDoc:e,doc:r}){var h,C;e.uploadResource=r.uploadResource.bind(r),e.buildResourceUrl=r.buildResourceUrl.bind(r);const i=n.getComponentOptions("comment"),o={image:{defaultAlign:"left"},table:{locatingContainer:t,hideCellMenu:!0,hideToolbar:!0},...i==null?void 0:i.componentsOptions},s=[];n.editorBlocks.forEach(E=>{E.blockType==="text"||E.blockType==="embed"||s.push(E)});const l=[];n.editorEmbeds.forEach(E=>{l.push(E)});const c=[];n.editorBoxes.forEach(E=>{E.boxType==="text"||E.boxType==="br"||E.boxType==="image"||E.boxType==="anchor"||c.push(E)});const d=td(t,e,{shortcuts:[l0],components:{blocks:s,commandProviders:[new K0],decorators:[new gg],embeds:l,boxes:c,options:o}});if(d.input.addHandler(new Cg),d.input.addHandler(new $A(d)),d.input.addHandler(new XA(d)),d.input.addHandler(new Nq(d)),d.input.addHandler(new bg),d.addCustom("image-paste-handler",()=>new VA(d)),de.isMobile||d.addCustom("editor-tooltip",()=>new Ld(d)),n.options.enableContextMenu!==!1&&d.addCustom("editor-context-menu",E=>new JA(E)),(h=n.options.componentsOptions)!=null&&h.mention){const E=n.options.componentsOptions.mention;d.addCustom("mention",()=>new pS(d,{...E}))}if((C=n.options.componentsOptions)!=null&&C.comment){const E=n.options.componentsOptions.comment;E.onCommentEditorClick&&d.addListener("click",E.onCommentEditorClick)}return d}function PZ(n,t){const e=Array.from(n.rootContainer.querySelectorAll(`[comment-${t.toLocaleLowerCase()}="${t}"]`)),r=new Set;e.forEach(i=>{const o=et(i);o&&r.add(o)}),r.forEach(i=>{Pq(n,i,t)})}class FZ{constructor(t){m(this,"listeners",new Set);m(this,"doc");this.editor=t,this.doc=this.editor.doc.externalDoc,this.doc.registerCallback(this)}getComments(){return this.doc.getComments()}getComment(t){return this.doc.getComment(t)}getCommentDoc(t){return this.doc.getCommentDoc(t)}localCreateComment(t,e){this.doc.localCreateComment(t,e)}localDeleteComment(t){const e=this.getComment(t);this.doc.localDeleteComment(t);const r=e.groupId;this.getComments().filter(o=>o.groupId===r).length===0&&PZ(this.editor,r)}localUpdateComment(t,e){this.doc.localUpdateComment(t,e)}onCreateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onCreateComment(t,e))}onDeleteComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onDeleteComment(t,e))}onUpdateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onUpdateComment(t,e))}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}createCommentEditor(t,e){return JS(this.editor,{root:t,childDoc:e,doc:this.doc})}allowEdit(t){return t.userId===this.doc.getUser().userId}}class KZ{constructor(t,e){m(this,"listeners",new Set);this.editor=t,this.localDoc=e}get doc(){return this.localDoc.toJSON()}getComments(){return Object.values(this.doc.comments)}getComment(t){return this.doc.comments[t]}getCommentDoc(t){const e=this.doc.comments[t];return YC(e)}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}localCreateComment(t,e){}localDeleteComment(t){}localUpdateComment(t,e){}createCommentEditor(t,e){return JS(this.editor,{root:t,childDoc:e,doc:this.localDoc})}allowEdit(t){return t.userId===this.localDoc.getUser().userId}}const VZ={placeholder:{common:{title:"\u8BF7\u8F93\u5165\u6807\u9898",readonlyTitle:"\u8BF7\u8F93\u5165\u6807\u9898",content:"\u70B9\u51FB + \uFF0C\u6216\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6",contentInTable:"\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6"},local:{readonlyTitle:"\u672A\u547D\u540D"}},copyCutProperty:{copy:"\u590D\u5236",cut:"\u526A\u5207",unsafeEnvTips:"\u7531\u4E8E\u5F53\u524D http \u8BBF\u95EE\u73AF\u5883\u4E0B\u7684\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528\u5FEB\u6377\u952E({shortCut}) {operation}",limitedEnvTips:"\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528 {shortCut} \u7C98\u8D34"}},$Z={placeholder:{common:{title:"Enter a title",readonlyTitle:"Enter a title",content:'Click "+", or enter "/" to insert components quickly',contentInTable:'Enter "/" to insert components quickly'},local:{readonlyTitle:"Untitled"}},copyCutProperty:{copy:"Copy",cut:"Cut",unsafeEnvTips:"Due to the limitations of the current http access environment, please use the shortcut ({shortCut}) {operation}",limitedEnvTips:"Press {shortCut} to paste due to browser restrictions"}},HZ={placeholder:{common:{title:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",readonlyTitle:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",content:"\u300C+\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u304B\u3001\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059",contentInTable:"\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059"},local:{readonlyTitle:"\u7121\u984C"}},copyCutProperty:{copy:"\u8907\u88FD",cut:"\u5207\u308B",unsafeEnvTips:"HTTP\u74B0\u5883\u306E\u5236\u7D04\u306B\u3088\u308A\u3001{operation}\u3059\u308B\u306B\u306F\u3001\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8({shortCut}) \u3092\u3054\u4F7F\u7528\u304F\u3060\u3055\u3044",limitedEnvTips:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u5236\u9650\u306B\u3088\u308A\u3001\u300C{shortCut}\u300D\u3092\u4F7F\u7528\u3057\u3066\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044"}};_.mergeLang({"zh-CN":VZ,"en-US":$Z,"ja-JP":HZ});const jZ="UEsDBBQABgAIAAAAIQBk9WPugQEAACkGAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ASDEAAGRvY1Byb3BzL2NvcmUueG1sUEsBAi0AFAAGAAgAAAAhACJREfHVAQAA3gMAABAAAAAAAAAAAAAAAAAA/DMAAGRvY1Byb3BzL2FwcC54bWxQSwECLQAUAAYACAAAACEAiD+lv+EAAABVAQAAGAAAAAAAAAAAAAAAAAAHNwAAY3VzdG9tWG1sL2l0ZW1Qcm9wczEueG1sUEsBAi0AFAAGAAgAAAAhAMEnywi2AAAAIQEAABMAAAAAAAAAAAAAAAAARjgAAGN1c3RvbVhtbC9pdGVtMS54bWxQSwECLQAUAAYACAAAACEAdD85esIAAAAoAQAAHgAAAAAAAAAAAAAAAABVOQAAY3VzdG9tWG1sL19yZWxzL2l0ZW0xLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAOuAYExTAwAAjw4AABIAAAAAAAAAAAAAAAAAWzsAAHdvcmQvZm9udFRhYmxlLnhtbFBLBQYAAAAADwAPANQDAADePgAAAAA=",zZ=()=>Wp(jZ),GZ=D("image-to-docx");async function WZ(n){return new Promise((t,e)=>{const r=new Image;r.onload=()=>{t({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=e,r.src=n})}async function ZS(n,t){if(n.width&&n.height)return{width:n.width,height:n.height,buffer:t};try{const e=await Mc(new File([t],"",{})),r=await WZ(e);return r.width===void 0||r.height===void 0?{width:345,height:230,buffer:t}:n.width||n.height?{width:n.width||r.width*n.height/r.height,height:n.height||r.height*n.width/r.width,buffer:t}:{width:r.width,height:r.height,buffer:t}}catch(e){GZ.error(e);return}}function qZ(n,t){let e=n.filter(s=>s!=null);const r=t-(e.length-1)*20,i=.87,o=e.reduce((s,l)=>s+l.width,0);return o>r&&(e=e.map(s=>({width:s.width*r/o,height:s.height*r/o,buffer:s.buffer}))),e.map(s=>({width:s.width*i,height:s.height*i,buffer:s.buffer}))}function XZ(n,t,e){if(!e||typeof e!="object")return;const r=e,i=n.filter(s=>s!=null),o=t-(i.length-1)*20;i.forEach((s,l)=>{if(i.length===1&&r.widthPercent){const d=r.widthPercent,h=s.width;s.width=o*(d/100),s.height*=s.width/h;return}const c=`${l}_flex`;if(r[c]){const d=r[c],h=s.width;s.width=o*d,s.height*=s.width/h}})}function tL(n=[0,1,2,3,4,5,6,7],t=1){return n.map(e=>{let r;switch(e%3){case 0:r=yt.LevelFormat.DECIMAL;break;case 1:r=yt.LevelFormat.LOWER_LETTER;break;default:r=yt.LevelFormat.LOWER_ROMAN;break}return{level:e,format:r,text:`%${e+1}. `,alignment:yt.AlignmentType.START,start:t,style:{paragraph:{indent:{left:yt.convertInchesToTwip(.3*(e+1)),hanging:yt.convertInchesToTwip(.2)}}}}})}function YZ(){return[0,1,2,3,4,5,6,7].map(n=>{let t;switch(n%3){case 0:t="\u2022";break;case 1:t="\u25E6";break;default:t="\u25AA";break}return{level:n,format:yt.LevelFormat.BULLET,text:t,alignment:yt.AlignmentType.START,style:{paragraph:{indent:{left:yt.convertInchesToTwip(.3*(n+1)),hanging:yt.convertInchesToTwip(.2)}}}}})}function QZ(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:yt.LevelFormat.BULLET,text:"\u2611",alignment:yt.AlignmentType.START,style:{paragraph:{indent:{left:yt.convertInchesToTwip(.3*(n+1)),hanging:yt.convertInchesToTwip(.2)}}}}))}function JZ(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:yt.LevelFormat.BULLET,text:"\u2610",alignment:yt.AlignmentType.START,style:{paragraph:{indent:{left:yt.convertInchesToTwip(.3*(n+1)),hanging:yt.convertInchesToTwip(.2)}}}}))}var ch=(n=>(n.NUMBERING="number-numbering-reference",n.BULLET="number-bullet-reference",n.CHECKED="checked-bullet-reference",n.UNCHECKED="unchecked-bullet-reference",n))(ch||{});const ZZ=[{levels:tL(),reference:"number-numbering-reference"},{levels:YZ(),reference:"number-bullet-reference"},{levels:QZ(),reference:"checked-bullet-reference"},{levels:JZ(),reference:"unchecked-bullet-reference"}];function ttt(n){switch(n){case"style-color-0":return"d83931";case"style-color-1":return"de7802";case"style-color-2":return"dc9b04";case"style-color-3":return"2ea121";case"style-color-4":return"245bdb";case"style-color-5":return"6425d0";case"style-color-6":return"8f959e";default:return}}function ett(n){switch(n){case"style-bg-color-1":case"style-bg-color-2":case"style-bg-color-8":case"style-bg-color-9":return"yellow";case"style-bg-color-0":case"style-bg-color-5":return"magenta";case"style-bg-color-3":return"green";case"style-bg-color-4":case"style-bg-color-11":return"blue";case"style-bg-color-6":return"lightGray";case"style-bg-color-7":return"red";case"style-bg-color-10":return"darkGreen";case"style-bg-color-12":return"darkMagenta";case"style-bg-color-13":return"darkGray";default:return}}function ntt(n){switch(n){case"style-bg-color-0":return"fbbab6";case"style-bg-color-1":return"ffdcb0";case"style-bg-color-2":return"fff7a0";case"style-bg-color-3":return"ceefc5";case"style-bg-color-4":return"d1ddfb";case"style-bg-color-5":return"d9cbf8";case"style-bg-color-6":return"eaeaea";case"style-bg-color-7":return"fe837c";case"style-bg-color-8":return"ffbd6a";case"style-bg-color-9":return"ffe662";case"style-bg-color-10":return"a8f393";case"style-bg-color-11":return"98b5ff";case"style-bg-color-12":return"b394f8";case"style-bg-color-13":return"b1b1b1";default:return}}const rtt=/rgb\((\d+),\s*(\d+),\s*(\d+)\)/;function eL(n){if(typeof n=="string"&&n.length>0){if(n[0]==="#")return n.substring(1);const t=n.match(rtt);if(t){const e=s=>{let l=Number(s).toString(16);return l.length<2&&(l=`0${l}`),l},r=e(t[1]),i=e(t[2]),o=e(t[3]);return`${r}${i}${o}`}if(n==="red")return"FF0000";if(n==="green")return"00FF00";if(n==="blue")return"0000FF"}}function On(n,t){if(n&&n.attributes&&n.attributes[t])return n.attributes[t];if(n&&n.attributes&&n.attributes.box&&n.attributes.inputType&&t==="style-underline")return!0}function nL(n,t,e){for(let r=0;r<=e;++r){const i=`${t}${r}`;if(On(n,i))return i}}function Hg(n,t,e){n.attributes=n.attributes||{},n.attributes[t]=e}function _x(n){return n==="image"||n==="drawio"||n==="plantuml"||n==="mermaid"||n==="flowchart"}function rL(n){return n&&n.startsWith("//")?`https:${n}`:n&&!n.startsWith("http://")&&!n.startsWith("https://")?`https://${n}`:n}function itt(n){const t=On(n,"inlineStyle");if(t==null)return;const e=t.split(";");for(const r of e){const i=r.split(":");if(i.length!==2)continue;const o=i[0].trim().toLowerCase(),s=i[1].trim().toLowerCase();o==="font-size"&&Hg(n,"inline-style-font-size",s),o==="color"&&Hg(n,"inline-style-color",s),o==="background-color"&&Hg(n,"inline-style-background-color",s),o==="font-family"&&Hg(n,"inline-style-font-family",s)}}function ott(n,t){if(t==null)return n==null?void 0:n.normal;if(n)return n[`heading${t}`]}function stt(n){const t=`${On(n,"inline-style-font-size")}`;if(t&&t.indexOf("px")>0)return+t.replace(/px/g,"")}function ltt(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` ${n.attributes.text} `;if(n.attributes&&n.attributes.box&&n.attributes.inputType)return n.attributes.value?`${n.attributes.value}`:" "}function att(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` @${n.attributes.text} `}function ctt(n){return On(n,"inline-style-font-family")}function utt(n){const t=On(n,"inline-style-background-color");return eL(t)}function ftt(n){const t=On(n,"inline-style-color");return eL(t)}function dtt(n){itt(n);const t=On(n,"type")==="mention";return{box:n.attributes&&n.attributes.box?n.attributes:void 0,inlineCode:!!On(n,"style-code"),link:rL(On(n,"link")),size:stt(n),text:t?att(n):ltt(n)||n.insert,bold:!!On(n,"style-bold"),underline:!!On(n,"style-underline"),italics:!!On(n,"style-italic"),strike:!!On(n,"style-strikethrough"),superScript:!!On(n,"style-super"),subScript:!!On(n,"style-sub"),math:On(n,"type")==="math"?On(n,"src"):void 0,mention:t,fontFamily:ctt(n),background:utt(n),color:t?"338fe5":ttt(nL(n,"style-color-",6))||ftt(n),highlight:nL(n,"style-bg-color-",13)}}function htt(){return[new yt.Paragraph({border:{top:{color:"auto",style:yt.BorderStyle.DASHED,size:4,space:1}},spacing:{before:300}}),new yt.Paragraph({spacing:{line:0}})]}function mtt(){return new yt.Paragraph({children:[new yt.TextRun({text:"[\u89C6\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:yt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function gtt(){return new yt.Paragraph({children:[new yt.TextRun({text:"[\u97F3\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:yt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function ptt(n,t){return new yt.Paragraph({children:[new yt.ExternalHyperlink({children:[new yt.TextRun({style:"Hyperlink",text:t||n})],link:n})]})}function iL(n){if(n.heading!=null)return`Heading${n.heading}`}function oL(n){if(n.alignment!=null){if(n.alignment==="center")return yt.AlignmentType.CENTER;if(n.alignment==="right")return yt.AlignmentType.RIGHT;if(n.alignment==="left")return yt.AlignmentType.LEFT}}function Ctt(n){if(n.indent)return{left:yt.convertInchesToTwip(.3*n.indent-.2)};if(n.padding)return{left:yt.convertInchesToTwip(.3*n.padding)}}function Ett(n){return{type:yt.ShadingType.CLEAR,color:"FFFFFF",fill:n}}function Att(n){const t=n.split(",");if(t.length!==0)return t[0].trim()}function sL(n,t){var o;let e;e=n.inlineCode?"InlineCode":void 0,e=n.link?"Hyperlink":e;const r=n.size||t,i=r!=null?Math.floor(r*1.5+.5):void 0;return n.text=(o=n.text)==null?void 0:o.replace(/\x00/g," "),new yt.TextRun({text:n.text,bold:n.bold||void 0,underline:n.underline?{type:yt.UnderlineType.SINGLE}:void 0,italics:n.italics||void 0,strike:n.strike||void 0,superScript:n.superScript||void 0,subScript:n.subScript||void 0,size:i,style:e,font:n.fontFamily?Att(n.fontFamily):void 0,shading:n.background?Ett(n.background):void 0,color:n.color,highlight:ett(n.highlight)})}function xtt(n,t){if(n.link)return n.link=n.link.replace(/\x00/g," "),new yt.ExternalHyperlink({children:[sL(n,t)],link:n.link})}async function lL(n,t,e,r,i){const[o]=await i(n,t,e);if(o==null)return;const s=await ZS({width:r||0,height:0,src:e},o);return new yt.ImageRun({data:o,transformation:{width:(s==null?void 0:s.width)||100,height:(s==null?void 0:s.height)||20}})}function btt(n){if(n.heading||n.heading)return n.heading}function vtt(n){if(n.align&&(n.align==="center"||n.align==="right"||n.align==="left"))return n.align}function Btt(n){if(n.textOnly===!0&&n.level!=null)return n.level}async function ytt(n,t){var r;const e=[];if(n.text&&Array.isArray(n.text)){for(let i=0;i<n.text.length;i++){const o=n.text[i];if(((r=o.attributes)==null?void 0:r.box)===!0&&t){const s=await t(o);if(s){n.text.splice(i+1,0,...s);continue}}e.push(dtt(o))}return e}}function Ttt(n){if(n.type==="list"&&n.textOnly!==!0)return{checkbox:n.checkbox,groupId:n.groupId,ordered:!!n.ordered,level:n.level||1,start:n.start||0}}function ktt(n,t){if(n.type==="embed"&&n.embedType&&_x(n.embedType)&&n.embedData&&n.embedData.src)return n.embedData.src.split("|").map(r=>{const i=t(r),o=n.embedData[`${i}_width`],s=n.embedData[`${i}_height`];return{src:r,width:o,height:s}})}function Rtt(n){if(n.padding)return n.padding}function wtt(n){return!!(n.type==="embed"&&n.embedType&&_x(n.embedType)&&n.embedData&&n.embedData.src)}async function jg(n,t,e){return{quoted:!!n.quoted,heading:btt(n),alignment:vtt(n),indent:Btt(n),padding:Rtt(n),texts:await ytt(n,e),list:Ttt(n),images:ktt(n,t),border:wtt(n)}}async function Stt(n,t,e,r){const i=[];if(!n.children)return[];for(const o of n.children){const s=[];for(const l of t.blocks[o])s.push(await jg(l,e,r));i.push(s)}return i}const Ltt=D("to-docx"),zg=200;function Itt(n,t){return Array(n).fill(0).map(()=>Array(t).fill(0).map(()=>({cellId:void 0,color:void 0,from:void 0,rowSpan:1,colSpan:1,width:0,originalWidth:void 0,align:void 0})))}function Dtt(n,t,e,r){const i=!!n.hasColTitle,o=!!n.hasRowTitle,s=!!n.isStripeStyle,l="F5F8FB";for(let c=0;c<t;c++)for(let d=0;d<e;d++)(i&&d===0||o&&c===0||s&&c%2===1)&&(r[c][d].color=l)}function _tt(n){p(Ltt,n.children,"no table children");const t=n.rows,e=n.cols,r=new Array(n.cols).fill(zg).map((s,l)=>n.colsWidth[l]||s);if(r)for(let s=0;s<r.length;s++)r[s]===0&&(r[s]=zg);const i=Itt(t,e);let o=0;for(let s=0;s<t;++s)for(let l=0;l<e;++l){if(i[s][l].originalWidth=r?r[l]:void 0,i[s][l].from!==void 0)continue;const c=n.children[o];o+=1,i[s][l].cellId=c,i[s][l].color=ntt(n[`${c}_background`]),i[s][l].width=r?r[l]:100,i[s][l].align=n[`${c}_align`];const d=n[`${c}_rowSpan`]||1,h=n[`${c}_colSpan`]||1;if(i[s][l].rowSpan=d,i[s][l].colSpan=h,d>1||h>1){let C=0;for(let E=0;E<d;E++)for(let A=0;A<h;A++)E===0&&(C+=r?r[l+A]:80),!(E===0&&A===0)&&(i[s+E][l+A].from=[s,l]);i[s][l].width=C}}return Dtt(n,t,e,i),i}async function Mtt(n,t,e,r,i,o,s,l,c,d){async function h(E){if(l&&E.type!=="_exportVirtualBlock"){const A=await l(i,o,E);if(A){await r.addDoc(n,A,d);return}}if(E.type==="text"||E.textOnly===!0){const A=await jg(E,s,c);await r.addTextBlock(A);return}if(E.type==="code"){const A=await Stt(E,e,s,c);await r.addCodeBlockObject(A);return}if(E.type==="list"&&E.textOnly!==!0){const A=await jg(E,s,c);await r.addListBlockObject(n,A);return}if(E.type==="embed"&&E.embedType){const A=E,v=A.embedData,R=A.embedType;if(_x(R)){const S=await jg(E,s,c);await r.addImagesBlockObject(E,S,d)}else E.embedType==="hr"?r.addSeparatorBlock():E.embedType==="video"?r.addVideoPlaceholder():E.embedType==="audio"?r.addAudioPlaceholder():E.embedType==="webpage"?r.addHyperlinkParagraph(rL(v.src),v.title):r.addOtherEmbedBlock(R,E.embedData);return}if(E.type==="table"){let A=[];if(E.colsWidth)A=new Array(E.cols).fill(zg).map((R,S)=>E.colsWidth[S]||R);else{const R=E.cols;A=new Array(R);for(let S=0;S<A.length;S++)A[S]=zg;E.colsWidth=A}const v=_tt(E);await r.addTableMatrix(A,v,e),r.addEmptyParagraph()}E.type==="_exportVirtualBlock"&&await r.addVirtualBlock(E.id,e,d)}function C(E){var R;const A=((R=E==null?void 0:E.embedData)==null?void 0:R.exportSpec)||(E==null?void 0:E.exportSpec);if(!A)return[E];const v=[];for(const{type:S,data:M}of A){if(S==="text"){const U={id:it(),text:[{insert:M}],type:"text"};v.push(U);continue}if(S==="image"){const U={id:it(),type:"embed",embedType:"image",align:"left",embedData:{src:M}};v.push(U);continue}if(S==="link"){const U={id:it(),type:"embed",embedType:"webpage",embedData:{src:M.url,title:M.title}};v.push(U);continue}if(S==="block")for(const U of M){if(!e.blocks[U])continue;const nt={id:U,type:"_exportVirtualBlock"};v.push(nt)}}return v}for(const E of t)for(const A of C(E))!A||await h(A)}function Utt(){return{listMaxInst:1,listInstMap:{},listRefMap:{},levelConfigs:[]}}const Ott=D("to-docx");class Ntt{constructor(t,e,r,i,o,s){m(this,"paragraphs");this.appId=t,this.docId=e,this.state=r,this.readImageFunc=i,this.convertBlocksFunc=o,this.defaultFontSize=s,this.paragraphs=[]}async addTextBlock(t){this.paragraphs.push(new yt.Paragraph({heading:iL(t),alignment:oL(t),children:await this.paragraphsFromBlockTexts(t),indent:Ctt(t)}))}async addEmptyImagePlaceHolder(){this.paragraphs.push(new yt.Paragraph({text:`[${_.t("docx.imageExportFailed")}]`,shading:{type:yt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}}))}async paragraphsFromBlockTexts(t){if(t.texts==null)return;const e=ott(this.defaultFontSize,t.heading),r=[];for(const i of t.texts){if(i.link){const o=xtt(i,e);o&&r.push(o);continue}if(i.box&&i.box.type&&i.box.type==="br"){r.push(new yt.TextRun({text:"",break:1}));continue}if(i.box&&i.box.type&&i.box.type==="image"){const o=await lL(this.appId,this.docId,i.box.src,i.box.width,this.readImageFunc);o&&r.push(o);continue}if(i.math){const o=await lL(this.appId,this.docId,i.math,0,this.readImageFunc);o&&r.push(o);continue}r.push(sL(i,e))}return r}async addCodeBlockObject(t){for(const e of t)for(const r of e){const i={style:yt.BorderStyle.SINGLE,color:"#DEDEDE"};this.paragraphs.push(new yt.Paragraph({style:"Code",border:{left:{...i},right:{...i},top:{...i},bottom:{...i}},children:await this.paragraphsFromBlockTexts(r)}))}}async addListBlockObject(t,e){if(e.list==null)return;let r;const i=e.list.checkbox?`${t}-${e.list.groupId}-${e.list.checkbox}`:`${t}-${e.list.groupId}`;if(this.state.listInstMap[i])r=this.state.listInstMap[i];else if(r=this.state.listMaxInst,this.state.listMaxInst+=1,this.state.listInstMap[i]=r,e.list.start>0&&e.list.ordered){const s=`number-numbering-reference-${r}`,l=tL([e.list.level-1],e.list.start);this.state.levelConfigs.push({levels:l,reference:s,inst:r}),this.state.listRefMap[i]=s}else e.list.ordered?this.state.listRefMap[i]=ch.NUMBERING:e.list.checkbox&&e.list.checkbox==="checked"?this.state.listRefMap[i]=ch.CHECKED:e.list.checkbox&&e.list.checkbox==="unchecked"?this.state.listRefMap[i]=ch.UNCHECKED:this.state.listRefMap[i]=ch.BULLET;const o=iL(e);e.texts&&this.paragraphs.push(new yt.Paragraph({heading:o,children:await this.paragraphsFromBlockTexts(e),numbering:{reference:this.state.listRefMap[i],level:e.list.level-1,instance:r}}))}imageDimWithBufferToImageRun(t){return new yt.ImageRun({data:t.buffer,transformation:{width:t.width,height:t.height}})}async addImagesBlockObject(t,e,r){if(e.images==null){if(t.type==="embed"&&t.embedType==="image"){const{src:c}=t.embedData;c||this.addEmptyImagePlaceHolder()}return}const i=[],o=await Promise.all(e.images.map(async c=>{const[d,h]=await this.readImageFunc(this.appId,this.docId,c.src);if(d){const C=await ZS(c,d);if(C)return C}i.push(h)}));XZ(o,r,t.embedData);const s=qZ(o,r),l={style:yt.BorderStyle.SINGLE,color:"#DEDEDE"};s.length&&this.paragraphs.push(new yt.Paragraph({border:e.border?{left:{...l},right:{...l},top:{...l},bottom:{...l}}:void 0,alignment:oL(e)||yt.AlignmentType.CENTER,children:s.map(c=>this.imageDimWithBufferToImageRun(c)).flatMap((c,d,h)=>c==null?[]:h.length-1!==d?[c,new yt.TextRun({text:" "})]:c)})),i.forEach(c=>{this.addHyperlinkParagraph(c)})}addSeparatorBlock(){htt().forEach(t=>this.paragraphs.push(t))}addEmptyParagraph(){this.paragraphs.push(new yt.Paragraph(""))}addVideoPlaceholder(){this.paragraphs.push(mtt())}addAudioPlaceholder(){this.paragraphs.push(gtt())}addHyperlinkParagraph(t,e){t!=null&&this.paragraphs.push(ptt(t,e))}async addTableMatrix(t,e,r){const i=t.map(o=>o!==0?o*15:1500);this.paragraphs.push(new yt.Table({rows:await this.generateTableRows(e,r),columnWidths:i}))}async generateRowCells(t,e){const r=[];for(const i of t){const o=i.cellId;if(o===void 0)continue;const s=i.width*.9;r.push(new yt.TableCell({children:await this.convertBlocksFunc(o,e.blocks[o],e,this.appId,this.docId,this.state,s),columnSpan:i.colSpan,rowSpan:i.rowSpan,width:{type:yt.WidthType.DXA,size:i.width*15},shading:i.color?{fill:i.color,type:yt.ShadingType.CLEAR,color:"auto"}:void 0}))}return r}async generateTableRows(t,e){const r=[];for(const i of t)r.push(new yt.TableRow({children:await this.generateRowCells(i,e)}));return r}async addDoc(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks.root,e,this.appId,this.docId,this.state,r);i&&(this.paragraphs=this.paragraphs.concat(i))}async addVirtualBlock(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks[t],e,this.appId,this.docId,this.state,r);this.paragraphs.push(...i)}async addOtherEmbedBlock(){}}class Ptt{constructor(t,e,r,i,o,s,l,c){m(this,"convertBlocks",async(t,e,r,i,o,s,l=720)=>{const c=new Ntt(i,o,s,this.readImage,this.convertBlocks,this.defaultFontSize);return await Mtt(t,e,r,c,i,o,this.md5HexFunc,this.getDocByBlock,this.getTextsByBox,l||720),c.paragraphs});this.templateData=t,this.docData=e,this.md5HexFunc=r,this.readImage=i,this.defaultFontSize=o,this.getDocByBlock=s,this.getTextsByBox=l,this.backgroundImageOptions=c}async convert(t,e){return this.snapshot2docx(this.docData,t,e)}async snapshot2docx(t,e,r){const i=new yt.ImportDotx,o=this.templateData?await i.extract(this.templateData):void 0,s=t.blocks.root;p(Ott,s,"data must have blocks");const l=Utt(),c=await this.convertBlocks("blocks",s,t,e,r,l),d=this.backgroundImageOptions?{default:new yt.Header({children:[new yt.Paragraph({children:[new yt.ImageRun(this.backgroundImageOptions)]})]})}:{},h=new yt.Document({numbering:{config:[...ZZ,...l.levelConfigs]},sections:[{headers:d,children:c,properties:{page:{size:{width:12240,height:15840},margin:{top:1440,bottom:1440,left:1440,right:1440}}}}]},{template:o});return yt.Packer.toBlob(h)}}class aL extends Error{constructor(t){super(t),this.name=this.constructor.name}}const Ftt=D("editor-to-docx"),cL="editor-to-docx: read image error";async function Ktt(n,t,e,r){try{const i=n.doc.buildResourceUrl(r,{withToken:!0});let o=await yS(i);if(!o)throw new Error(cL);if(o.type.indexOf("/svg")!==-1){const l=await bS(o);l&&(o=new File([l],o.name))}return[await o.arrayBuffer(),i]}catch(i){throw new aL(i.message||cL)}}async function Vtt(n,t,e){const r=n.editorBlocks.getBlockClass(e.type);if(r.toStandardDoc)try{return await r.toStandardDoc(n,e,t)}catch(i){Ftt.error(`toStandardDoc error: ${JSON.stringify(i)}`);return}}async function $tt(n,t){const e=t.attributes,r=n.editorBoxes.getBoxClass(e.type);if(r.toStandardText)return r.toStandardText(n,e)}async function Htt(n,t){let{template:e,download:r,backgroundImageOptions:i}=t!=null?t:{};e||(e=zZ());const o=n.doc.toJSON(),s=(C,E,A)=>Ktt(n,C,E,A),l=async(C,E,A)=>Vtt(n,o,A),c=async C=>$tt(n,C),h=await new Ptt(e,o,nm.default,s,void 0,l,c,i).convert("_appId","_docId");if(r){const C=URL.createObjectURL(h),E=document.createElement("a");E.setAttribute("download",`${BS(n)}.docx`),E.setAttribute("href",`${C}`),E.click(),E.remove()}return h}const Mx=D("create-editor");async function jtt(n,t){var s,l,c,d,h,C,E,A,v,R,S,M,U,V,nt,Y;p(Mx,n,"app does not exists"),t.lang&&_.setLang(t.lang),Br.level=(s=t.logLevel)!=null?s:Gi.DEBUG;const e=t.onReauth?async()=>{var ct;const X=t.user.userId,ft=t.docId,pt=await((ct=t.onReauth)==null?void 0:ct.call(t,X,ft,t.permission));return{userId:X,docId:ft,permission:t.permission,appId:t.appId,token:pt,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl}}:void 0,r={auth:{appId:t.appId,docId:t.docId,userId:t.user.userId,permission:t.permission,token:t.token,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl},serverUrl:t.serverUrl,reauthFunc:e,disableLogout:t.disableLogout,onMaxUsersError:t.onMaxUsersError},i=await md.load(r),o=td(n,i,{id:t.id,scrollContainer:t==null?void 0:t.scrollContainer,enableComments:t==null?void 0:t.enableComments,enableContextMenu:t==null?void 0:t.enableContextMenu,components:{blocks:[...XS,...((l=t==null?void 0:t.components)==null?void 0:l.blocks)||[]],embeds:[...Dx,...((c=t.components)==null?void 0:c.embeds)||[]],boxes:[...YS,...((d=t.components)==null?void 0:d.boxes)||[]],commandProviders:[new K0,...((h=t.components)==null?void 0:h.commandProviders)||[]],decorators:[new gg,new JC],insertions:[J1],blockHooks:[new OA,new hw,...((C=t.components)==null?void 0:C.blockHooks)||[]],textRenders:[new D4,new JE,...((E=t.components)==null?void 0:E.textRenders)||[]],options:{...t.componentsOptions}},shortcuts:[Xq,vH,Mz,gA,i4,LF,cA,_X,l0,BF,...t.shortcuts||[]],colors:["#0064FF","#EB3723","#F59300","#00A865","#F25A0A","#70A310","#009CAD","#0990D9","#8851ED","#D62069"]});if(o.editorCommandProviders.registerCommandProvider(new po(o)),o.input.addHandler(new vY),o.input.addHandler(new Cg),o.input.addHandler(new JK),o.input.addHandler(new kz),o.input.addHandler(new yA(o,{hideTitle:t.hideTitle,headingLevel:1,titlePlaceholder:_.t("placeholder.common.title"),contentPlaceholder:_.t("placeholder.common.content"),readonlyTitlePlaceholder:_.t("placeholder.common.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0,applyContentPlaceholder:(A=t.placeholder)==null?void 0:A.applyContentPlaceholder})),o.input.addHandler(new ag(o,(v=t.componentsOptions)==null?void 0:v.quickMenu)),o.input.addHandler(new $A(o)),o.input.addHandler(new XA(o)),o.input.addHandler(new bg),o.input.addHandler(new Ok),o.doc.registerCallback(new BY(o)),o.addCustom("remote-cursor",()=>new mT(o)),o.addCustom("block-menu",X=>new pw(X)),de.isMobile||o.addCustom("editor-tooltip",()=>new Ld(o)),t!=null&&t.enableComments&&o.addCustom("editor-comments",X=>new I4(X,new FZ(X))),t.enableContextMenu!==!1&&o.addCustom("editor-context-menu",X=>new JA(X)),o.addCustom("create-options",()=>new Nb(o,t)),o.addCustom("drop-target",()=>new qd(o)),o.addCustom("list-to-mindmap",()=>new eg(o)),o.addCustom("list-to-mention",()=>new zY(o)),o.addCustom("mobile-helper",()=>new mQ(o)),o.addCustom("code-caret",()=>new EH(o)),o.addCustom("image-paste-handler",()=>new VA(o)),(R=t.componentsOptions)!=null&&R.mention){const X=t.componentsOptions.mention;o.addCustom("mention",()=>new pS(o,X))}if(o.addCustom("heading-collapse",()=>new px(o)),o.addCustom(lh,X=>new Bx(X)),bu.register(o),qd.register(o),Il.register(o),Tl.register(o),o.addListener("clickLink",(X,ft,pt)=>{var wt;if((wt=t==null?void 0:t.events)!=null&&wt.onClickLink){t.events.onClickLink(X,ft,pt);return}const ct=pt.getAttribute("link");ct&&(X.readonly||ft.ctrlKey||ft.metaKey)&&window.open(ct,"_blank")}),(M=(S=t.componentsOptions)==null?void 0:S.remoteCarets)!=null&&M.onUserChanged){const X=(V=(U=t.componentsOptions)==null?void 0:U.remoteCarets)==null?void 0:V.onUserChanged;o.doc.getRemoteUsers().on("change",ft=>{X(o,ft)})}return(Y=(nt=t.componentsOptions)==null?void 0:nt.templates)!=null&&Y.templates.length&&(o.addListener("docChanged",()=>{Vg(o)}),o.addListener("resize",()=>{Vg(o,{reset:!0})}),setTimeout(()=>{Vg(o)},100)),o.doc.registerCallback({onError:async X=>{if(X.code==="ResetDoc"){Mx.error(`reset doc: ${X.message}`);const ft=await md.load(r);o.doc.reset(ft)}}}),o.version="1.1.44",Br.level===Gi.DEBUG&&(window.setReauthFail=X=>{window.isReauthError=X},window.reConnect=X=>o.doc.externalDoc.client.connection.reConnect(X)),o}function ztt(n){return n.toJSON!==void 0}async function Gtt(n,t,e){var o,s,l,c,d,h,C,E;p(Mx,n,"app does not exists");const r=ztt(t)?t:new LC(t,{serverUrl:e.serverUrl||""});e.lang&&_.setLang(e.lang),Br.level=(o=e.logLevel)!=null?o:Gi.DEBUG;const i=td(n,r,{id:e.id,scrollContainer:e==null?void 0:e.scrollContainer,components:{blocks:[mA,vA,BA,Nk,...(l=(s=e.components)==null?void 0:s.blocks)!=null?l:[]],commandProviders:[new K0],decorators:[new gg,new JC],embeds:[...Dx,...((c=e.components)==null?void 0:c.embeds)||[]],boxes:[Yk,CS,K4,...((d=e.components)==null?void 0:d.boxes)||[]],insertions:[J1],blockHooks:[new OA,...((h=e.components)==null?void 0:h.blockHooks)||[]],textRenders:[new D4,new JE,...((C=e.components)==null?void 0:C.textRenders)||[]],options:{...e.componentsOptions}},shortcuts:[gA,i4,cA,l0]});return i.editorCommandProviders.registerCommandProvider(new po(i)),i.input.addHandler(new Cg),i.input.addHandler(new yA(i,{hideTitle:e.hideTitle,headingLevel:1,titlePlaceholder:_.t("placeholder.common.title"),contentPlaceholder:_.t("placeholder.common.content"),readonlyTitlePlaceholder:_.t("placeholder.local.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0})),i.input.addHandler(new ag(i,(E=e.componentsOptions)==null?void 0:E.quickMenu)),i.input.addHandler(new $A(i)),i.input.addHandler(new XA(i)),i.input.addHandler(new bg),i.input.addHandler(new Ok),i.addCustom("block-menu",A=>new pw(A)),de.isMobile||i.addCustom("editor-tooltip",()=>new Ld(i)),i.addCustom("image-paste-handler",()=>new VA(i)),e!=null&&e.enableComments&&i.addCustom("editor-comments",A=>new I4(A,new KZ(A,r))),e.enableContextMenu!==!1&&i.addCustom("editor-context-menu",A=>new JA(A)),i.addCustom("heading-collapse",()=>new px(i)),i.addListener("clickLink",(A,v,R)=>{var M;if((M=e==null?void 0:e.events)!=null&&M.onClickLink){e.events.onClickLink(A,v,R);return}const S=R.getAttribute("link");S&&(A.readonly||v.ctrlKey||v.metaKey)&&window.open(S,"_blank")}),i.addCustom(lh,A=>new Bx(A)),bu.register(i),i.version="1.1.44",i}async function Wtt(n,t,e){var h;const r=n.doc.externalDoc.client.auth,i=await A0.load({auth:r,serverUrl:e});if(!((h=i.getVersionHelper)==null?void 0:h.call(i)))throw new Error("the editor does not support to show versions");const s=n.getCustom("create-options");if(!s)throw new Error("the editor does not support to show versions");const l=s.getData(),c=new QS(l),d=n.addCustom("version-dialog",()=>new nS(i,c));return d.show(t),d}b.tippy=A9,b.AnchorBox=DB,b.AuthError=dd,b.AuthHeader=va,b.AutoScroll=bm,b.BaseURLHeader=nu,b.BasicCommands=bK,b.BlockExclusiveHook=hw,b.BlockLockerHook=OA,b.BlockLockerPasteHandler=bg,b.BlockResizer=Pd,b.BrBox=wB,b.CodeBlock=vA,b.CodeLineBlock=BA,b.CodeTextDecorator=gg,b.DOC_RE_AUTH_KEYS=lh,b.DefaultShortcuts=l0,b.DocIdError=uO,b.DocReAuthCallbacks=Bx,b.DragDrop=ev,b.DrawioEmbed=PS,b.EditorBlocks=d3,b.EditorBoxes=LB,b.EditorCommandProviders=wy,b.EditorComplexBlockPosition=xi,b.EditorComplexSelectionRange=Ji,b.EditorDecorators=OB,b.EditorEmbeds=m3,b.EditorInsertions=UB,b.EditorSimpleBlockPosition=Cn,b.EditorSimpleSelectionRange=Dn,b.EmbedBlock=p3,b.EmbedBlockResizer=nh,b.EnforceWithDocumentTitleHandler=yA,b.EventCallbacks=Lc,b.ExportImageError=aL,b.FILL_CHAR=U8,b.FileExtError=fO,b.GroupOrder=Vk,b.HeadingBlockScrollListener=NY,b.ImageBox=IB,b.InlineBoxCommandProvider=nR,b.InputtingInsertion=_B,b.LocalDoc=LC,b.LogLevel=Gi,b.Logger=Br,b.MIN_DISTANCE_THRESHOLD=Zb,b.ManualCloseDialog=pd,b.ManualMenu=dl,b.ManualToolbar=gd,b.MarkdownInputHandler=Cg,b.MaxUserError=HC,b.Mindmap=tg,b.OnesEditorAutoSuggest=AE,b.OnesEditorCustomDataWrapper=Nb,b.OnesEditorExclusiveBlock=Tl,b.OnesEditorHoveringBlock=ze,b.OnesEditorIcons=YO,b.OnesEditorQuickMenu=ag,b.OnesEditorToc=sh,b.OnesEditorTocProvider=Il,b.OnesEditorToolbar=bu,b.OnesEditorTooltip=Ld,b.OnesEditorVersionsDialog=nS,b.OverflowTooltipHelper=cg,b.PermissionError=E0,b.Popup=su,b.ReAuthToolbar=TS,b.RemoteCarets=mT,b.RemoteCaretsDecorator=JC,b.RemoteCaretsInsertion=J1,b.RemoteUsers=ed,b.RequestReloadError=hd,b.RichText=zn,b.ShareDBDoc=md,b.ShareDBDocVersionsProvider=QS,b.ShareDBServer=A0,b.SimpleCache=zb,b.StandardEmbedBlockCommands=ax,b.TEXT_STYLE_BACKGROUND_COLOR_PREFIX=I1,b.TEXT_STYLE_COLOR_PREFIX=L1,b.TableBlock=mA,b.TableBlockCommandProvider=K0,b.TableShortcuts=gA,b.TextBlock=ur,b.TextBox=RB,b.TextColorItem=D2,b.TextStyleShortcuts=cA,b.TocEmbed=mS,b.ZERO_WIDTH_SPACE_CHAR=_c,b.abbreviation=vm,b.addAttribute=Im,b.addClass=q,b.addCommentToBlock=eh,b.addDays=SI,b.addMetaToDoc=Jf,b.addMonths=wI,b.animateScrollTo=ia,b.applyPlaceholderToBlock=Od,b.assert=p,b.autoShowHideTemplates=Vg,b.bindKeyDownEvent=hm,b.blockToDoc=yC,b.blockToHtml=eC,b.blockToMarkdown=Wm,b.blockToText=Gm,b.blocksToDoc=Q5,b.clearAllSelection=Gv,b.clientType=de,b.cloneBlock=ol,b.cloneChildContainer=fC,b.cloneDoc=dC,b.cloneText=EB,b.commentToShareDbComment=QC,b.compareElement=um,b.comparePosition=v1,b.complexBlockAdjustSelectionPos=wm,b.complexBlockFindNearestChildBlock=R7,b.complexBlockGetAllChildContainers=_n,b.complexBlockGetBottomChildContainers=x3,b.complexBlockGetDeepFirstChild=C3,b.complexBlockGetFirstSimpleChild=y1,b.complexBlockGetLastSimpleChild=Fc,b.complexBlockGetSelectedContainers=Pc,b.complexBlockGetTopChildContainers=A3,b.containerToDoc=J5,b.continuousScroll=Cv,b.convertBlockFrom=km,b.convertImageFileToPng=bS,b.convertImageSrcToPng=lQ,b.converterIntercept=pg,b.copyBlockAttributes=XB,b.copyResourcesFromDoc=SC,b.createBlockAnchor=jo,b.createBlockCaretAnchor=v3,b.createBlockContentElement=fa,b.createBlockElement=Fv,b.createBlockSimpleDocRange=Vm,b.createBlockSimpleRange=Ie,b.createBoxContentElement=$v,b.createBoxElement=Kv,b.createBoxOp=CB,b.createChildContainer=u3,b.createComplexBlockPosition=Ue,b.createComplexDocPos=BB,b.createComplexDocRange=P8,b.createContainer=xB,b.createContainerElement=s1,b.createDeleteOps=hB,b.createEditor=td,b.createEditorSelectionRange=En,b.createElement=B,b.createEmptyContainer=Yo,b.createEmptyDoc=Xo,b.createEmptyTextBlockData=Fm,b.createExpandedRange=am,b.createIconButton=ea,b.createImage=Np,b.createInsertOps=Nm,b.createInsertionContentElement=zv,b.createInsertionElement=Hv,b.createLocalEditor=Gtt,b.createOnesEditor=jtt,b.createRange=Gb,b.createRichText=Ea,b.createRootContainer=c3,b.createSimpleBlockPosition=mt,b.createSimpleDocPos=vB,b.createTextBlockData=no,b.createTextButton=Sa,b.createTextOp=Xr,b.createTextWithReplaceSoftReturn=H1,b.daysAfter=Zp,b.deleteText=z1,b.diffDays=LI,b.disablePageScroll=Xp,b.docToHtml=jB,b.docToHtmlFragment=zf,b.docToMarkdown=zB,b.docToText=il,b.downloadImageToFile=yS,b.downloadObjectToFile=kx,b.downloadSvgToString=SS,b.editLink=kd,b.editorAddComment=Kq,b.editorAddTextAttribute=s5,b.editorAutoInsertBlock=YB,b.editorBreakTextBlock=Xc,b.editorClearCompositionText=oC,b.editorClearSelectedContents=Jm,b.editorCopyBlock=RC,b.editorCopyDoc=s0,b.editorDeleteBlock=aC,b.editorDeleteBlockText=sC,b.editorDeleteBlockWithoutChildren=Ym,b.editorDeleteChildContainer=U_,b.editorDeleteChildContainers=QB,b.editorFocusToBlock=uC,b.editorFocusToEnd=tM,b.editorGetBlockData=Qo,b.editorGetBlockText=Jn,b.editorGetBlockTextEx=Hm,b.editorGetBoxData=TB,b.editorHandleKeyboardEvent=uy,b.editorInsertBlock=qc,b.editorInsertBoxToBlock=WB,b.editorInsertDoc=i5,b.editorInsertDocAt=hC,b.editorInsertText=iC,b.editorInsertTextToBlock=GB,b.editorInsertTextToBlockEx=rC,b.editorMergeTextBlock=JB,b.editorMoveDown=A5,b.editorMoveEnd=AC,b.editorMoveHome=S5,b.editorMoveLeft=p5,b.editorMoveLineEnd=N5,b.editorMoveLineHome=O5,b.editorMovePageDown=H5,b.editorMovePageUp=$5,b.editorMoveRight=C5,b.editorMoveUp=E5,b.editorMoveWordEnd=k5,b.editorMoveWordLeft=T5,b.editorRangeClearColor=a5,b.editorRangeGetColor=c5,b.editorRangeSetColor=l5,b.editorRemoveTextAttribute=F_,b.editorReplaceBlockText=Zm,b.editorReplaceContainer=o5,b.editorRunOnce=IC,b.editorSelectAll=bC,b.editorSelectContainer=r0,b.editorSelectDown=x5,b.editorSelectEnd=xC,b.editorSelectHome=L5,b.editorSelectLeft=b5,b.editorSelectLineEnd=U5,b.editorSelectLineHome=M5,b.editorSelectPageDown=G5,b.editorSelectPageUp=z5,b.editorSelectRight=v5,b.editorSelectUp=B5,b.editorSelectWordEnd=w5,b.editorSelectWordLeft=R5,b.editorSetTextColor=Yc,b.editorShowFindDialog=IW,b.editorToDocx=Htt,b.editorUpdateBlockData=t0,b.editorUpdateCompositionText=qB,b.editorUpdateEmbedData=n5,b.enablePageScroll=Yp,b.escapeHtmlText=mm,b.escapeRegExp=r1,b.escapeSpace=uI,b.exclusiveBlock=_A,b.executeBlockCommand=e3,b.executeEmbedBlockCommand=t3,b.executeRangeCommand=Ry,b.fileToDataUrl=Mc,b.findAfterOffsetNotType=X1,b.findAllText=vC,b.findBlockByIndex=Iv,b.findEventTargetBlock=Xb,b.findInsertionById=jv,b.findNextOffset=i_,b.findNextVisibleSimpleBlock=Dy,b.findPrevOffset=r_,b.findPrevOffsetNotType=q1,b.findPrevSimpleBlockBeforeChildContainer=E3,b.findPrevVisibleSimpleBlock=Iy,b.findTarget=Dc,b.findWordEnd=Q1,b.findWordLeft=Y1,b.format=Rf,b.formatBytes=Ev,b.formatDate=e1,b.fragmentToHtml=fv,b.fromBase64=Bf,b.fromBase64ToBlob=Wp,b.fromBase64ToUint8Array=bI,b.fromDocRange=nl,b.fromNowString=n1,b.genId=it,b.generateEditorContainerId=o1,b.getAllChildBlocks=w1,b.getAllQuickMenuItems=aA,b.getAllSelectedBlocks=Zi,b.getAttributesAt=Hc,b.getBlockBackground=c1,b.getBlockByIndex=Js,b.getBlockCaretRect=tl,b.getBlockClass=ae,b.getBlockClassByType=aa,b.getBlockClientRects=Vo,b.getBlockCommandsWithHook=p1,b.getBlockContent=zt,b.getBlockHeading=Df,b.getBlockId=dt,b.getBlockIndex=Rt,b.getBlockInfo=Hd,b.getBlockKind=Ei,b.getBlockMinWidth=qv,b.getBlockNearestRangeFromPoint=k1,b.getBlockOptions=HI,b.getBlockPath=el,b.getBlockProperties=Qv,b.getBlockRangeFromPoint=Sm,b.getBlockStyles=$I,b.getBlockTextLength=At,b.getBlockTools=ve,b.getBlockType=Ot,b.getBoxContent=f1,b.getBoxId=Vv,b.getBoxTypeFromElement=If,b.getChildBlockCount=Xi,b.getChildBlocks=ke,b.getChildOffset=ga,b.getColorFromAttributes=_1,b.getColorFromContent=Bm,b.getComplexBlockClass=jr,b.getContainerBlockPath=s3,b.getContainerBlocks=Sv,b.getContainerBlocksElement=Sf,b.getContainerById=Ci,b.getContainerId=Et,b.getContainerMinWidth=x1,b.getContainerToolsElement=FI,b.getContainerWidth=f3,b.getDistanceSquare=Ys,b.getElementFromPoint=Fe,b.getElementOffset=bf,b.getElementScale=Hr,b.getEmbedType=ln,b.getExistsBlockTools=ym,b.getExistsContainerById=wf,b.getFileExt=kf,b.getFirstChildBlock=Me,b.getFirstClientRect=cm,b.getHeadingBlockChildren=Nc,b.getHeadingMenuOptions=oA,b.getHorizontalPadding=Fp,b.getInsertionContent=d1,b.getLastChildBlock=We,b.getLastClientRect=na,b.getListAllNextBrothers=pu,b.getLogger=D,b.getNextBlock=oe,b.getNextHiddenBlocks=i3,b.getNextValidOffset=pa,b.getNextVisibleBlock=Gr,b.getOffsetFromPoint=Pp,b.getOffsetInfoAfter=$f,b.getOffsetInfoBefore=jm,b.getOpAt=q3,b.getOpLength=Lm,b.getParentBlock=et,b.getParentBlockExcludeSelf=ua,b.getParentBox=u1,b.getParentContainer=at,b.getPrevBlock=Ke,b.getPrevValidOffset=rl,b.getPrevVisibleBlock=zr,b.getRangeCommands=Ty,b.getReferenceClientRect=fk,b.getRootBlock=g1,b.getScrollContainer=pn,b.getSpecialBlockCommands=Jv,b.getStandardEmbedBlockProperties=cx,b.getTextAfterOffset=e_,b.getTextAttributes=nC,b.getTextBeforeOffset=n_,b.getTextBlockChild=Uf,b.getTextBlockClass=_v,b.getTextBlockContentChildTextLength=qr,b.getTextBlockContentChildType=o3,b.getTextBlockContentChildren=Qi,b.getTextLength=jn,b.getTextOpLength=S1,b.getTextWidth=Em,b.getToolbar=W0,b.handleBlockElementUpdated=Xv,b.hasAltOnly=pI,b.hasClass=Mt,b.hasCtrlOrCmd=lv,b.hasCtrlOrCmdOnly=gI,b.hashCode=Tv,b.hideBlock=Pv,b.hideTemplates=xS,b.htmlToFragment=Cm,b.i18n=_,b.includeBigTable=kN,b.injectDocToHtmlFragment=Qf,b.injectStyle=Jb,b.inputActions=xM,b.insertEmptyBlock=GI,b.insertEmptyEmbedBlock=C1,b.insertText=qo,b.intersectionCommands=ZM,b.isBackspace=av,b.isBlock=ca,b.isBlockLocked=xg,b.isBlockLockedByOthers=UA,b.isBlockLockedBySelf=jd,b.isBlockTools=Nv,b.isBox=Tm,b.isBoxOp=zo,b.isCJK=ov,b.isChildContainer=pi,b.isChildNode=Ae,b.isCodeBlock=Di,b.isCollapsedHeadingBlock=Yi,b.isCollapsedRange=N8,b.isComplexBlockPosition=ha,b.isComplexKindBlock=Pt,b.isContainer=Qs,b.isContainerSelectedAllChildBlocks=W5,b.isControlEvent=sa,b.isDelete=EI,b.isDraggingFiles=Am,b.isElementVisible=dm,b.isEmbedBlock=Le,b.isEmptyContainer=Of,b.isEmptyDoc=G1,b.isEmptyTextBlock=Be,b.isEmptyTextBlockWithoutCompositionText=Ud,b.isEnterOnly=zp,b.isEscape=pm,b.isExclusiveBlock=$d,b.isExpandedHeadingBlock=r3,b.isFirefox=Af,b.isFirstChildBlockInComplexBlock=k7,b.isHeadingBlock=In,b.isHighSurrogate=sI,b.isInBlock=h1,b.isInBlockTools=Oc,b.isLetter=iv,b.isLowSurrogate=lI,b.isMatchShortcut=Wi,b.isMoveForward=hI,b.isNavigationEvent=dI,b.isNavigationKey=sv,b.isNodeRemoved=xf,b.isNumber=rv,b.isPrintableKey=jp,b.isRootBlock=Wr,b.isRootContainer=ie,b.isSafari=ta,b.isSameDay=t1,b.isSelectBoxOnly=ei,b.isShiftEnter=CI,b.isShiftTab=xI,b.isShortcutEvent=mI,b.isSimpleBlock=VI,b.isSimpleBlockPosition=bi,b.isSimplePos=bB,b.isSimpleRange=Km,b.isSpace=gm,b.isTab=AI,b.isTextBlockContentBoxChild=yr,b.isTextBlockContentChild=_f,b.isTextBlockContentInsertionChild=Ho,b.isTextBlockContentTextChild=Mf,b.isTextKindBlock=st,b.isTextKindBlockType=Lf,b.isTitleBlock=Ko,b.isToday=Av,b.isValidOffset=cr,b.isVisibleBlock=Zs,b.isYesterday=xv,b.loadJs=qb,b.loadJsPromise=ra,b.lockers=gi,b.md5=Rv,b.mergeCommands=G0,b.mergeDocs=Aa,b.mergeOps=j1,b.mergeText=_8,b.multiSplitText=Y3,b.overflowText=bv,b.parseShortcut=cv,b.patchNode=yf,b.pointInRect=oa,b.rangeAddAttribute=Ff,b.rangeGetTextColor=rB,b.rangeRemoveAttribute=$c,b.rangeSetTextColor=tB,b.rangeTransformText=J3,b.registerDragDrop=$p,b.removeAttribute=D1,b.removeClass=ut,b.removeLastBr=S8,b.removePlaceholderFromBlock=PR,b.removeStyle=Qb,b.replaceAll=II,b.replaceAllCaseInsensitive=DI,b.replaceAllText=X5,b.replaceText=Pm,b.requestDownload=xm,b.resetListStart=Eu,b.scrollIntoView=jf,b.scrollable=pv,b.selectFile=Uc,b.selectedBlockToDoc=i0,b.selectionToDoc=Qc,b.setAttributes=fm,b.setClipboardData=Tf,b.setClipboardDataByEvent=yI,b.setColorToAttributes=eB,b.setDataset=Kp,b.setDefaultCursor=vf,b.setStyles=Vp,b.shareDBCommentToDocObject=YC,b.shareDBDocCommentToComment=dT,b.shortcutToDisplayText=gn,b.showBlock=a1,b.showDocVersions=Wtt,b.showTemplates=bx,b.splitText=ar,b.splitToThree=an,b.stringToDataUrl=qp,b.stringToObjectUrl=Qp,b.subText=Q3,b.textNodeOffsetFromPoint=Wb,b.titleFromEditor=BS,b.toBase64URL=qi,b.toMindmap=Z0,b.toPlainText=Re,b.toPlainTextKeepLength=W1,b.trimChar=Hp,b.unexclusiveBlock=MA,b.unicodeLength=aI,b.unicodeSubstr=cI,b.updateBlockSelection=Wv,b.updateOpAttributes=AB,b.updateTextBlockContent=t_,b.updateUrl=Gp;for(const n in je)n!=="default"&&!b.hasOwnProperty(n)&&Object.defineProperty(b,n,{enumerable:!0,get:()=>je[n]});Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
963
|
+
\`\`\`\`\`\``}return""}const aZ={embedType:"plantuml",convertFrom:oZ,handleUpdateBlock:iZ,createEmbedContent:rZ,getBlockProperties:sZ,convertTo:lZ},mct="",cZ="hr",uZ={dividingLine:{type:"\u5206\u5272\u7EBF",abstract:"\u5206\u5272\u7EBF"}},fZ={dividingLine:{type:"Dividing-Line",abstract:"Dividing-Line"}},dZ={dividingLine:{type:"\u533A\u5207\u308A\u7DDA",abstract:"\u533A\u5207\u308A\u7DDA"}};_.mergeLang({"zh-CN":uZ,"en-US":fZ,"ja-JP":dZ});function hZ(n,t){const e=B("div",["editor-embed-container"],t);B("hr",["editor-embed-hr"],e)}function mZ(n,t,e,r){return r==="html"?"<hr />":r==="markdown"?"---":"------------"}function gZ(){return{name:"hr",insertEmbedCommandItems:[{id:"insert-hr",name:_.t("dividingLine.type"),icon:qT,order:500,group:"common",subText:tr("insert-hr")}],handleInsertEmptyEmbed:async(n,t)=>{const{containerId:e,blockIndex:r}=t;return n.insertEmbed(e,r,cZ,{})}}}function pZ(n,t,e){const{data:r}=e;if(!r||r.embedType!=="dividing-line"||!st(n,t))return null;const i={};return{blockData:{id:it(),type:"embed",embedType:"hr",embedData:i}}}function CZ(){return{abstract:_.t("dividingLine.abstract")}}const EZ={embedType:"hr",createEmbedContent:hZ,convertTo:mZ,getOptions:gZ,convertFrom:pZ,getBlockProperties:CZ},gct="",pct="",AZ={media:{upload:{failed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>',maxSizeFailed:'<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7\u9650\u5236\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6587\u4EF6</div>'},load:{failed:'<div class="line-1">{name}\u52A0\u8F7D\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>'},audio:{menuItem:"\u97F3\u9891",abstract:"\u97F3\u9891"},video:{menuItem:"\u89C6\u9891",abstract:"\u89C6\u9891"}}},xZ={media:{upload:{failed:'<div class="line-1">{name} upload failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>',maxSizeFailed:'<div class="line-1">{name} upload failed</div><div class="line-2">The file size exceeds limit. Please choose another file.</div>'},load:{failed:'<div class="line-1">{name} loading failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>'},audio:{menuItem:"Audio",abstract:"Audio"},video:{menuItem:"Video",abstract:"Video"}}},bZ={media:{upload:{failed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>',maxSizeFailed:'<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u30D5\u30A1\u30A4\u30EB\u306E\u30B5\u30A4\u30BA\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u308B\u305F\u3081\u3001\u4ED6\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044</div>'},load:{failed:'<div class="line-1">{name}\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>'},audio:{menuItem:"\u97F3\u58F0",abstract:"\u97F3\u58F0"},video:{menuItem:"\u52D5\u753B",abstract:"\u52D5\u753B"}}};_.mergeLang({"zh-CN":AZ,"en-US":xZ,"ja-JP":bZ});var Ui=(n=>(n.AUDIO="audio",n.VIDEO="video",n))(Ui||{}),ah=(n=>(n.Empty="empty",n.Progress="progress",n.Error="error",n))(ah||{});const HS=10*1024*1024,vZ=["wav","mp3","aac","ogg","webm","flac"],BZ=["ogg","mp4","webm"],yZ=()=>{};function jS(n){var h,C,E,A,v,R;const t=(h=n.getComponentOptions("media"))!=null?h:{},{allowedMedias:e,maxSize:r,callbacks:i}=t,o=(C=e==null?void 0:e.audio)!=null?C:vZ,s=(E=e==null?void 0:e.video)!=null?E:BZ,l=(A=r==null?void 0:r.audio)!=null?A:HS,c=(v=r==null?void 0:r.video)!=null?v:HS,d=(R=i==null?void 0:i.onError)!=null?R:yZ;return{allowedMedias:{audio:o,video:s},maxSize:{audio:l,video:c},callbacks:{onError:d}}}function TZ(n,t){const e=o=>o.map(s=>`.${s}`).join(","),{allowedMedias:r}=jS(n),i=r[t];return i?e(i):"*"}function kZ(n,t,e){const{maxSize:r,callbacks:i,allowedMedias:o}=jS(t),{[e]:s}=r,{[e]:l}=o;if(s&&n.size>s){const d=new Error("media is too large");throw d.code=`MaxMediaSize-${e}`,i!=null&&i.onError&&(i==null||i.onError(t,d)),d}const c=kf(n.name);if(l&&!l.includes(c.toLowerCase())){const d=new Error(`media file is not allowed: ${c}`);throw d.code="NotAllowedFile",i!=null&&i.onError&&(i==null||i.onError(t,d)),d}}function RZ(n){return n===ah.Empty||n===ah.Error}const xn=D("media");class wZ extends je.TypedEmitter{constructor(e){super();m(this,"mediaContainer",null);m(this,"media",null);m(this,"abstract",null);m(this,"handleMediaLoadError",(e,r)=>{if(!r.target||!(r.target instanceof Node)||!(r.target instanceof Element?r.target:r.target.parentElement))return;const o=et(r.target);if(!o||!o.contains(this.mediaContainer))return;const s=this.renderError();this.updateMediaContent(s),this.emit("mediaError",e,"load_error",dt(o))});m(this,"handleUploadFile",async e=>{p(xn,this.abstract,"no abstract"),p(xn,this.mediaContainer,"The media element not exist");const{editor:r}=this.options,i=et(this.mediaContainer);p(xn,i,"The block element not exist");const o=r.getBlockData(i);try{const{resourceId:s}=await r.doc.uploadResource(e,{onProgress:C=>{this.renderProgress(C,e)}}),{name:l,type:c,size:d}=e,h={...o,embedData:{...o.embedData,src:s,fileName:l,fileSize:d,fileType:c}};r.updateBlockData(i,h)}catch(s){xn.error(s),this.emit("mediaError",r,"upload_error",o.id),this.renderRetry(e,s)}ut(i,"media-block-uploading")});m(this,"destroy",()=>{this.mediaContainer=null});this.options=e}bindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.addEventListener(this.media,"error",this.handleMediaLoadError)}unbindMediaEvent(){const{editor:e}=this.options;this.media&&e.domEvents.removeEventListener(this.media,"error",this.handleMediaLoadError)}updateMediaContent(e){p(xn,this.mediaContainer,"The media element not exist"),this.mediaContainer.innerHTML="",this.mediaContainer.append(e)}renderError(){p(xn,this.abstract,"no abstract");const{editor:e,createMediaElement:r}=this.options,{mediaIcon:i,mediaName:o}=this.abstract;p(xn,this.mediaContainer,"The media element not exist");const s=et(this.mediaContainer);p(xn,s,"The block element not exist");const l=e.getBlockData(s),c=B("div",["media-error","embed-selected-content","embed-hover-content"],null),d=B("span",["media-error-icon"],c);d.innerHTML=i;const h=B("div",[],c);h.innerHTML=_.t("media.load.failed",{name:o}),c.appendChild(h);const C=h.querySelector(".retry-upload");return p(xn,C,"The element not exist"),e.domEvents.addEventListener(C,"click",(E,A)=>{const v=B("div",["media-element"],null),R=this.getResourceUrl(l),S=r(E,v,l,R);this.unbindMediaEvent(),this.media=S,this.bindMediaEvent(),this.updateMediaContent(v)}),this.setFullScreen(),c}renderRetry(e,r){var E,A;p(xn,this.abstract,"no abstract");const{editor:i}=this.options,{mediaIcon:o,mediaName:s}=this.abstract,l=B("div",["media-error","embed-selected-content","embed-hover-content"],null),c=B("span",["media-error-icon"],l);c.innerHTML=o;const d=B("div",[],l);let h=_.t("media.upload.failed",{name:s});(((E=r.response)==null?void 0:E.status)===420||((A=r.response)==null?void 0:A.status)===413)&&(h=_.t("media.upload.maxSizeFailed",{name:s})),d.innerHTML=h,l.appendChild(d);const C=d.querySelector(".retry-upload");C&&i.domEvents.addEventListener(C,"click",()=>{i.readonly||(p(xn,this.abstract,"no abstract"),this.handleUploadFile(e))}),this.updateMediaContent(l),this.setFullScreen()}renderProgress(e,r){p(xn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope .media-progress"),o=e===-1||e===100?100:e;if(i){const{updateProgressElement:s}=this.options;s(i,o)}else{const{createProgressElement:s}=this.options,l=et(this.mediaContainer);p(xn,l,"The element not exist"),q(l,"media-block-uploading");const c=B("div",["media-progress"],null);s(c,o,r),this.updateMediaContent(c)}this.setFullScreen()}renderMediaElement(e,r){p(xn,this.mediaContainer,"The media element not exist");const i=this.mediaContainer.querySelector(":scope > .media-element"),{createMediaElement:o,updateMediaElement:s,editor:l}=this.options,c=this.getResourceUrl(e,r);if(i){const d=s(l,i,e,c);this.unbindMediaEvent(),this.media=d,this.bindMediaEvent()}else{const d=B("div",["media-element"],null),h=o(l,d,e,c);this.unbindMediaEvent(),this.media=h,this.bindMediaEvent(),this.updateMediaContent(d)}}renderEmpty(e){p(xn,this.abstract,"no abstract"),p(xn,this.mediaContainer,"The media element not exist");const r=B("div",["media-empty","embed-selected-content","embed-hover-content"],this.mediaContainer);r.innerHTML=this.abstract.mediaIcon,this.updateMediaContent(r);const{editor:i}=this.options;i.findBlockById(e.id)&&this.emit("mediaError",i,"empty",e.id),this.setFullScreen()}getResourceUrl(e,r){const{src:i}=e.embedData,{editor:o}=this.options;return o.doc.buildResourceUrl(i,{syncNewResources:async(s,l)=>{var d,h;if(!r)return;await o.doc.addResources([s]);const c=(h=(d=o.doc).getServerMeta)==null?void 0:h.call(d).appId;if(l!==e.embedData.src&&c&&e.embedData.src.includes(c)){const C=et(r);if(C&&!o.readonly&&o.isBlockWritable(C)){const E=xt.default(e);E.embedData.src=s,o.updateBlockData(C,E)}}}})}setFullScreen(){p(xn,this.mediaContainer,"The media element not exist"),q(this.mediaContainer,"full-screen")}removeFullScreen(){p(xn,this.mediaContainer,"The media element not exist"),ut(this.mediaContainer,"full-screen")}updateBlockAlign(e,r){const i=et(r);p(xn,i,"The block element not exist");const{align:o}=e;e.embedType==="video"&&(i.hasAttribute("data-style-align")&&i.removeAttribute("data-style-align"),i.setAttribute("data-style-align",o))}render(e,r){const{src:i}=e.embedData;(!this.mediaContainer||!r.contains(this.mediaContainer))&&(this.mediaContainer=B("div",["media"],r)),this.updateBlockAlign(e,r),RZ(i)?i===ah.Empty&&this.renderEmpty(e):this.renderMediaElement(e,r)}setAbstract(e){this.abstract=e}}D("media-embed");const SZ="left";class zS{constructor(){m(this,"handleInsertEmptyEmbed",async(t,e)=>{var C;const{containerId:r,blockIndex:i}=e;let o;(C=e.data)!=null&&C.file&&(o=e.data.file);const s=TZ(t,this.embedType);if(o=o!=null?o:await Uc(s,{}),!o)return null;const{mediaType:l}=this.getAbstract();try{kZ(o,t,l)}catch{return null}const c={id:it(),type:"embed",embedType:this.embedType,embedData:{src:ah.Empty}};l==="video"&&(c.align=SZ);const d=t.insertBlock(r,i,c);return await this.getMedia(t,c.id).handleUploadFile(o),d})}getMedia(t,e){const r=t.addCustom(`media-${e}`,()=>new wZ({editor:t,createMediaElement:this.createMediaElement,updateMediaElement:this.updateMediaElement,createProgressElement:this.createProgressElement,updateProgressElement:this.updateProgressElement}));return r.setAbstract({...this.getAbstract()}),r}getOptions(){const{menuItem:t,mediaIcon:e,mediaName:r,order:i,group:o}=this.getAbstract();return{name:r,insertEmbedCommandItems:[{id:`insert-${this.embedType}`,name:t,icon:e,order:i,group:o,subText:tr(`insert-${this.embedType}`)}],handleInsertEmptyEmbed:this.handleInsertEmptyEmbed}}createEmbedContent(t,e,r){const{id:i}=r;this.getMedia(t,i).render(r,e)}handleUpdateBlock(t,e,r){const{id:i}=r,o=this.getMedia(t,i),s=zt(e);return o.render(r,s),!0}handleDeleteBlock(t,e){const r=e.id,i=this.getMedia(t,r);i.removeAllListeners(),i.destroy()}convertTo(t,e,r,i){const o=e.embedData,s=t.doc.buildResourceUrl(o.src,{withToken:!0});return i==="html"?`<${o.type} src="${s}" />`:i==="markdown"?``:s}}function GS(n,t){const e=B("div",["uploading-progress-mask"],n),r=B("div",["uploading-progress-bar"],e),i=B("div",["uploading-progress-bar-value"],r);i.style.width=`${t}%`}function WS(n,t){const e=n.querySelector(".uploading-progress-bar-value");e&&(e.style.width=`${t}%`)}const LZ=D("media-audio");class IZ extends zS{constructor(){super(...arguments);m(this,"embedType",Ui.AUDIO);m(this,"updateProgressElement",WS);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["audio-container","embed-hover-content","embed-selected-content"],r),l=B("audio",[],s);return l.innerHTML="Your browser does not support the <code>audio</code> element.",l.controls=!0,l.src=o,setTimeout(()=>{this.getMedia(e,i.id).setFullScreen()}),l})}getAbstract(){return{mediaIcon:zT,mediaName:_.t(`media.${Ui.AUDIO}.menuItem`),menuItem:_.t(`media.${Ui.AUDIO}.menuItem`),order:800,mediaType:Ui.AUDIO,group:"common"}}getBlockProperties(){return{abstract:`${_.t(`media.${Ui.AUDIO}.abstract`)}`}}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .audio-container > audio");return p(LZ,s,"The media element not exist"),s.src!==o&&(s.src=o),s}createProgressElement(e,r){const i=B("audio",[],e);i.innerHTML="Your browser does not support the <code>audio</code> element.",i.controls=!0,i.src="about:blank",GS(e,r)}}const DZ=new IZ;D("video-resizer");function qS(n){return n&&Le(n)&&ln(n)==="video"}const _Z=50;class Ix{constructor(t){m(this,"currentResizableElement",null);m(this,"resizing",!1);m(this,"handleHoveringBlockChange",(t,e)=>{if(!this.resizing&&!window.isDragging&&(e&&qS(e)&&this.disableBlockResize(e),t&&qS(t)&&this.editor.isBlockWritable(t))){const r=this.getVideoElement(t);if(!r)return;this.enableBlockResize(t,r)}});m(this,"handleResizing",(t,e)=>{if(this.resizing=!0,!this.currentResizableElement)return;const r=t.getBlock();if(!r)return;const i=r.getBoundingClientRect().width,o=Math.min(Math.max(e.width,_Z),i);this.currentResizableElement.style.width=`${o}px`,this.currentResizableElement.style.pointerEvents="none"});m(this,"handleResized",t=>{this.resizing=!1;const e=t.getBlock();if(!this.currentResizableElement||!e)return;const r=this.editor.getBlockData(e),{width:i}=this.currentResizableElement.getBoundingClientRect();this.currentResizableElement.style.pointerEvents="auto",this.editor.updateBlockData(e,{...r,width:i})});this.editor=t,ze.get(t).addListener("change",this.handleHoveringBlockChange)}destroy(){this.currentResizableElement=null,ze.get(this.editor).removeListener("change",this.handleHoveringBlockChange)}getVideoElement(t){return zt(t).querySelector(":scope .video-container > video")}updateResizer(t){const e=this.editor.findCustom(`${dt(t)}-resizer`);e&&e.updateResizer()}disableBlockResize(t){const e=this.editor.findCustom(`${dt(t)}-resizer`);e&&e.disableResize()}enableBlockResize(t,e){const r=this.editor.addCustom(`${dt(t)}-resizer`,()=>new Pd(this.editor,{resize:["top-left","top-right","bottom-left","bottom-right"]}));r.enableResize(t,e),r.removeListener("resizing",this.handleResizing),r.removeListener("resized",this.handleResized),r.addListener("resizing",this.handleResizing),r.addListener("resized",this.handleResized),this.currentResizableElement=e}}const MZ=D("video");class UZ extends zS{constructor(){super(...arguments);m(this,"embedType",Ui.VIDEO);m(this,"updateProgressElement",WS);m(this,"createMediaElement",(e,r,i,o)=>{const s=B("div",["video-container","embed-selected-content","drag-preview-element"],r),l=B("video",[],s);return l.innerHTML="Your browser does not support the <code>video</code> element.",l.controls=!0,l.src=o,l.addEventListener("canplay",()=>{e.addCustom("video-resizer",()=>new Ix(e)),this.getMedia(e,i.id).removeListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).addListener("mediaError",this.handleMediaError),this.getMedia(e,i.id).removeFullScreen()}),i.width&&(l.style.width=`${i.width}px`),l});m(this,"createProgressElement",(e,r,i)=>{const o=B("video",["progress-video"],e);o.innerHTML="Your browser does not support the <code>audio</code> element.",o.controls=!0,GS(e,r),Mc(i).then(s=>{const l=e.querySelector(".progress-video");l&&h1(e)&&(l.src=s)})})}getAbstract(){return{mediaName:_.t(`media.${Ui.VIDEO}.menuItem`),mediaIcon:GT,menuItem:_.t(`media.${Ui.VIDEO}.menuItem`),order:700,mediaType:Ui.VIDEO,group:"common"}}getBlockProperties(){return{abstract:`${_.t(`media.${Ui.VIDEO}.abstract`)}`}}handleMediaError(e,r,i){const o=e.addCustom("video-resizer",()=>new Ix(e)),s=e.getBlockById(i);o.disableBlockResize(s)}updateMediaElement(e,r,i,o){const s=r.querySelector(":scope .video-container > video");p(MZ,s,"The media element not exist"),s.src!==o&&(s.src=o),i.width?s.style.width=`${i.width}px`:s.style.width="";const l=e.getBlockById(i.id);return setTimeout(()=>{e.addCustom("video-resizer",()=>new Ix(e)).updateResizer(l)}),s}}const OZ=new UZ,XS=[mA,vA,BA,Nk],Dx=[PS,OQ,zJ,tZ,aZ,WK,EZ,OZ,DZ,jz,mS,RX],YS=[Yk,CS,K4];function NZ(n,t,e){var i,o,s,l;Br.level=(i=e.logLevel)!=null?i:Gi.DEBUG;const r=td(n,t,{components:{blocks:[...XS,...((o=e==null?void 0:e.components)==null?void 0:o.blocks)||[]],embeds:[...Dx,...((s=e.components)==null?void 0:s.embeds)||[]],boxes:[...YS,...((l=e.components)==null?void 0:l.boxes)||[]],textRenders:[new JE],options:{...e.componentsOptions}}});return r.readonly=!0,r.addCustom("heading-collapse",()=>new px(r)),r.addCustom("editor-tooltip",()=>new Ld(r)),r.addListener("clickLink",(c,d,h)=>{var E;if((E=e==null?void 0:e.events)!=null&&E.onClickLink){e.events.onClickLink(c,d,h);return}const C=h.getAttribute("link");C&&(c.readonly||d.ctrlKey||d.metaKey)&&window.open(C,"_blank")}),r}class QS{constructor(t){this.createOptions=t,t.lang&&_.setLang(t.lang)}createHistoryEditor(t,e){return NZ(t,e,this.createOptions)}}function JS(n,{root:t,childDoc:e,doc:r}){var h,C;e.uploadResource=r.uploadResource.bind(r),e.buildResourceUrl=r.buildResourceUrl.bind(r);const i=n.getComponentOptions("comment"),o={image:{defaultAlign:"left"},table:{locatingContainer:t,hideCellMenu:!0,hideToolbar:!0},...i==null?void 0:i.componentsOptions},s=[];n.editorBlocks.forEach(E=>{E.blockType==="text"||E.blockType==="embed"||s.push(E)});const l=[];n.editorEmbeds.forEach(E=>{l.push(E)});const c=[];n.editorBoxes.forEach(E=>{E.boxType==="text"||E.boxType==="br"||E.boxType==="image"||E.boxType==="anchor"||c.push(E)});const d=td(t,e,{shortcuts:[l0],components:{blocks:s,commandProviders:[new K0],decorators:[new gg],embeds:l,boxes:c,options:o}});if(d.input.addHandler(new Cg),d.input.addHandler(new $A(d)),d.input.addHandler(new XA(d)),d.input.addHandler(new Nq(d)),d.input.addHandler(new bg),d.addCustom("image-paste-handler",()=>new VA(d)),de.isMobile||d.addCustom("editor-tooltip",()=>new Ld(d)),n.options.enableContextMenu!==!1&&d.addCustom("editor-context-menu",E=>new JA(E)),(h=n.options.componentsOptions)!=null&&h.mention){const E=n.options.componentsOptions.mention;d.addCustom("mention",()=>new pS(d,{...E}))}if((C=n.options.componentsOptions)!=null&&C.comment){const E=n.options.componentsOptions.comment;E.onCommentEditorClick&&d.addListener("click",E.onCommentEditorClick)}return d}function PZ(n,t){const e=Array.from(n.rootContainer.querySelectorAll(`[comment-${t.toLocaleLowerCase()}="${t}"]`)),r=new Set;e.forEach(i=>{const o=et(i);o&&r.add(o)}),r.forEach(i=>{Pq(n,i,t)})}class FZ{constructor(t){m(this,"listeners",new Set);m(this,"doc");this.editor=t,this.doc=this.editor.doc.externalDoc,this.doc.registerCallback(this)}getComments(){return this.doc.getComments()}getComment(t){return this.doc.getComment(t)}getCommentDoc(t){return this.doc.getCommentDoc(t)}localCreateComment(t,e){this.doc.localCreateComment(t,e)}localDeleteComment(t){const e=this.getComment(t);this.doc.localDeleteComment(t);const r=e.groupId;this.getComments().filter(o=>o.groupId===r).length===0&&PZ(this.editor,r)}localUpdateComment(t,e){this.doc.localUpdateComment(t,e)}onCreateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onCreateComment(t,e))}onDeleteComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onDeleteComment(t,e))}onUpdateComment(t,e){Array.from(this.listeners.values()).forEach(r=>r.onUpdateComment(t,e))}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}createCommentEditor(t,e){return JS(this.editor,{root:t,childDoc:e,doc:this.doc})}allowEdit(t){return t.userId===this.doc.getUser().userId}}class KZ{constructor(t,e){m(this,"listeners",new Set);this.editor=t,this.localDoc=e}get doc(){return this.localDoc.toJSON()}getComments(){return Object.values(this.doc.comments)}getComment(t){return this.doc.comments[t]}getCommentDoc(t){const e=this.doc.comments[t];return YC(e)}addListener(t){this.listeners.add(t)}removeListener(t){this.listeners.delete(t)}localCreateComment(t,e){}localDeleteComment(t){}localUpdateComment(t,e){}createCommentEditor(t,e){return JS(this.editor,{root:t,childDoc:e,doc:this.localDoc})}allowEdit(t){return t.userId===this.localDoc.getUser().userId}}const VZ={placeholder:{common:{title:"\u8BF7\u8F93\u5165\u6807\u9898",readonlyTitle:"\u8BF7\u8F93\u5165\u6807\u9898",content:"\u70B9\u51FB + \uFF0C\u6216\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6",contentInTable:"\u8F93\u5165 / \u5FEB\u6377\u63D2\u5165\u7EC4\u4EF6"},local:{readonlyTitle:"\u672A\u547D\u540D"}},copyCutProperty:{copy:"\u590D\u5236",cut:"\u526A\u5207",unsafeEnvTips:"\u7531\u4E8E\u5F53\u524D http \u8BBF\u95EE\u73AF\u5883\u4E0B\u7684\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528\u5FEB\u6377\u952E({shortCut}) {operation}",limitedEnvTips:"\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528 {shortCut} \u7C98\u8D34"}},$Z={placeholder:{common:{title:"Enter a title",readonlyTitle:"Enter a title",content:'Click "+", or enter "/" to insert components quickly',contentInTable:'Enter "/" to insert components quickly'},local:{readonlyTitle:"Untitled"}},copyCutProperty:{copy:"Copy",cut:"Cut",unsafeEnvTips:"Due to the limitations of the current http access environment, please use the shortcut ({shortCut}) {operation}",limitedEnvTips:"Press {shortCut} to paste due to browser restrictions"}},HZ={placeholder:{common:{title:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",readonlyTitle:"\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",content:"\u300C+\u300D\u3092\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u304B\u3001\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059",contentInTable:"\u300C/\u300D\u3092\u5165\u529B\u3059\u308B\u3068\u3001\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u7D20\u65E9\u304F\u633F\u5165\u3067\u304D\u307E\u3059"},local:{readonlyTitle:"\u7121\u984C"}},copyCutProperty:{copy:"\u8907\u88FD",cut:"\u5207\u308B",unsafeEnvTips:"HTTP\u74B0\u5883\u306E\u5236\u7D04\u306B\u3088\u308A\u3001{operation}\u3059\u308B\u306B\u306F\u3001\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8({shortCut}) \u3092\u3054\u4F7F\u7528\u304F\u3060\u3055\u3044",limitedEnvTips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AAAAAAAAAAAAAAAAHNwAAY3VzdG9tWG1sL2l0ZW1Qcm9wczEueG1sUEsBAi0AFAAGAAgAAAAhAMEnywi2AAAAIQEAABMAAAAAAAAAAAAAAAAARjgAAGN1c3RvbVhtbC9pdGVtMS54bWxQSwECLQAUAAYACAAAACEAdD85esIAAAAoAQAAHgAAAAAAAAAAAAAAAABVOQAAY3VzdG9tWG1sL19yZWxzL2l0ZW0xLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAOuAYExTAwAAjw4AABIAAAAAAAAAAAAAAAAAWzsAAHdvcmQvZm9udFRhYmxlLnhtbFBLBQYAAAAADwAPANQDAADePgAAAAA=",zZ=()=>Wp(jZ),GZ=D("image-to-docx");async function WZ(n){return new Promise((t,e)=>{const r=new Image;r.onload=()=>{t({width:r.naturalWidth,height:r.naturalHeight})},r.onerror=e,r.src=n})}async function ZS(n,t){if(n.width&&n.height)return{width:n.width,height:n.height,buffer:t};try{const e=await Mc(new File([t],"",{})),r=await WZ(e);return r.width===void 0||r.height===void 0?{width:345,height:230,buffer:t}:n.width||n.height?{width:n.width||r.width*n.height/r.height,height:n.height||r.height*n.width/r.width,buffer:t}:{width:r.width,height:r.height,buffer:t}}catch(e){GZ.error(e);return}}function qZ(n,t){let e=n.filter(s=>s!=null);const r=t-(e.length-1)*20,i=.87,o=e.reduce((s,l)=>s+l.width,0);return o>r&&(e=e.map(s=>({width:s.width*r/o,height:s.height*r/o,buffer:s.buffer}))),e.map(s=>({width:s.width*i,height:s.height*i,buffer:s.buffer}))}function XZ(n,t,e){if(!e||typeof e!="object")return;const r=e,i=n.filter(s=>s!=null),o=t-(i.length-1)*20;i.forEach((s,l)=>{if(i.length===1&&r.widthPercent){const d=r.widthPercent,h=s.width;s.width=o*(d/100),s.height*=s.width/h;return}const c=`${l}_flex`;if(r[c]){const d=r[c],h=s.width;s.width=o*d,s.height*=s.width/h}})}function tL(n=[0,1,2,3,4,5,6,7],t=1){return n.map(e=>{let r;switch(e%3){case 0:r=yt.LevelFormat.DECIMAL;break;case 1:r=yt.LevelFormat.LOWER_LETTER;break;default:r=yt.LevelFormat.LOWER_ROMAN;break}return{level:e,format:r,text:`%${e+1}. `,alignment:yt.AlignmentType.START,start:t,style:{paragraph:{indent:{left:yt.convertInchesToTwip(.3*(e+1)),hanging:yt.convertInchesToTwip(.2)}}}}})}function YZ(){return[0,1,2,3,4,5,6,7].map(n=>{let t;switch(n%3){case 0:t="\u2022";break;case 1:t="\u25E6";break;default:t="\u25AA";break}return{level:n,format:yt.LevelFormat.BULLET,text:t,alignment:yt.AlignmentType.START,style:{paragraph:{indent:{left:yt.convertInchesToTwip(.3*(n+1)),hanging:yt.convertInchesToTwip(.2)}}}}})}function QZ(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:yt.LevelFormat.BULLET,text:"\u2611",alignment:yt.AlignmentType.START,style:{paragraph:{indent:{left:yt.convertInchesToTwip(.3*(n+1)),hanging:yt.convertInchesToTwip(.2)}}}}))}function JZ(){return[0,1,2,3,4,5,6,7].map(n=>({level:n,format:yt.LevelFormat.BULLET,text:"\u2610",alignment:yt.AlignmentType.START,style:{paragraph:{indent:{left:yt.convertInchesToTwip(.3*(n+1)),hanging:yt.convertInchesToTwip(.2)}}}}))}var ch=(n=>(n.NUMBERING="number-numbering-reference",n.BULLET="number-bullet-reference",n.CHECKED="checked-bullet-reference",n.UNCHECKED="unchecked-bullet-reference",n))(ch||{});const ZZ=[{levels:tL(),reference:"number-numbering-reference"},{levels:YZ(),reference:"number-bullet-reference"},{levels:QZ(),reference:"checked-bullet-reference"},{levels:JZ(),reference:"unchecked-bullet-reference"}];function ttt(n){switch(n){case"style-color-0":return"d83931";case"style-color-1":return"de7802";case"style-color-2":return"dc9b04";case"style-color-3":return"2ea121";case"style-color-4":return"245bdb";case"style-color-5":return"6425d0";case"style-color-6":return"8f959e";default:return}}function ett(n){switch(n){case"style-bg-color-1":case"style-bg-color-2":case"style-bg-color-8":case"style-bg-color-9":return"yellow";case"style-bg-color-0":case"style-bg-color-5":return"magenta";case"style-bg-color-3":return"green";case"style-bg-color-4":case"style-bg-color-11":return"blue";case"style-bg-color-6":return"lightGray";case"style-bg-color-7":return"red";case"style-bg-color-10":return"darkGreen";case"style-bg-color-12":return"darkMagenta";case"style-bg-color-13":return"darkGray";default:return}}function ntt(n){switch(n){case"style-bg-color-0":return"fbbab6";case"style-bg-color-1":return"ffdcb0";case"style-bg-color-2":return"fff7a0";case"style-bg-color-3":return"ceefc5";case"style-bg-color-4":return"d1ddfb";case"style-bg-color-5":return"d9cbf8";case"style-bg-color-6":return"eaeaea";case"style-bg-color-7":return"fe837c";case"style-bg-color-8":return"ffbd6a";case"style-bg-color-9":return"ffe662";case"style-bg-color-10":return"a8f393";case"style-bg-color-11":return"98b5ff";case"style-bg-color-12":return"b394f8";case"style-bg-color-13":return"b1b1b1";default:return}}const rtt=/rgb\((\d+),\s*(\d+),\s*(\d+)\)/;function eL(n){if(typeof n=="string"&&n.length>0){if(n[0]==="#")return n.substring(1);const t=n.match(rtt);if(t){const e=s=>{let l=Number(s).toString(16);return l.length<2&&(l=`0${l}`),l},r=e(t[1]),i=e(t[2]),o=e(t[3]);return`${r}${i}${o}`}if(n==="red")return"FF0000";if(n==="green")return"00FF00";if(n==="blue")return"0000FF"}}function On(n,t){if(n&&n.attributes&&n.attributes[t])return n.attributes[t];if(n&&n.attributes&&n.attributes.box&&n.attributes.inputType&&t==="style-underline")return!0}function nL(n,t,e){for(let r=0;r<=e;++r){const i=`${t}${r}`;if(On(n,i))return i}}function Hg(n,t,e){n.attributes=n.attributes||{},n.attributes[t]=e}function _x(n){return n==="image"||n==="drawio"||n==="plantuml"||n==="mermaid"||n==="flowchart"}function rL(n){return n&&n.startsWith("//")?`https:${n}`:n&&!n.startsWith("http://")&&!n.startsWith("https://")?`https://${n}`:n}function itt(n){const t=On(n,"inlineStyle");if(t==null)return;const e=t.split(";");for(const r of e){const i=r.split(":");if(i.length!==2)continue;const o=i[0].trim().toLowerCase(),s=i[1].trim().toLowerCase();o==="font-size"&&Hg(n,"inline-style-font-size",s),o==="color"&&Hg(n,"inline-style-color",s),o==="background-color"&&Hg(n,"inline-style-background-color",s),o==="font-family"&&Hg(n,"inline-style-font-family",s)}}function ott(n,t){if(t==null)return n==null?void 0:n.normal;if(n)return n[`heading${t}`]}function stt(n){const t=`${On(n,"inline-style-font-size")}`;if(t&&t.indexOf("px")>0)return+t.replace(/px/g,"")}function ltt(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` ${n.attributes.text} `;if(n.attributes&&n.attributes.box&&n.attributes.inputType)return n.attributes.value?`${n.attributes.value}`:" "}function att(n){if(n.attributes&&n.attributes.box&&n.attributes.text)return` @${n.attributes.text} `}function ctt(n){return On(n,"inline-style-font-family")}function utt(n){const t=On(n,"inline-style-background-color");return eL(t)}function ftt(n){const t=On(n,"inline-style-color");return eL(t)}function dtt(n){itt(n);const t=On(n,"type")==="mention";return{box:n.attributes&&n.attributes.box?n.attributes:void 0,inlineCode:!!On(n,"style-code"),link:rL(On(n,"link")),size:stt(n),text:t?att(n):ltt(n)||n.insert,bold:!!On(n,"style-bold"),underline:!!On(n,"style-underline"),italics:!!On(n,"style-italic"),strike:!!On(n,"style-strikethrough"),superScript:!!On(n,"style-super"),subScript:!!On(n,"style-sub"),math:On(n,"type")==="math"?On(n,"src"):void 0,mention:t,fontFamily:ctt(n),background:utt(n),color:t?"338fe5":ttt(nL(n,"style-color-",6))||ftt(n),highlight:nL(n,"style-bg-color-",13)}}function htt(){return[new yt.Paragraph({border:{top:{color:"auto",style:yt.BorderStyle.DASHED,size:4,space:1}},spacing:{before:300}}),new yt.Paragraph({spacing:{line:0}})]}function mtt(){return new yt.Paragraph({children:[new yt.TextRun({text:"[\u89C6\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:yt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function gtt(){return new yt.Paragraph({children:[new yt.TextRun({text:"[\u97F3\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",shading:{type:yt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}})]})}function ptt(n,t){return new yt.Paragraph({children:[new yt.ExternalHyperlink({children:[new yt.TextRun({style:"Hyperlink",text:t||n})],link:n})]})}function iL(n){if(n.heading!=null)return`Heading${n.heading}`}function oL(n){if(n.alignment!=null){if(n.alignment==="center")return yt.AlignmentType.CENTER;if(n.alignment==="right")return yt.AlignmentType.RIGHT;if(n.alignment==="left")return yt.AlignmentType.LEFT}}function Ctt(n){if(n.indent)return{left:yt.convertInchesToTwip(.3*n.indent-.2)};if(n.padding)return{left:yt.convertInchesToTwip(.3*n.padding)}}function Ett(n){return{type:yt.ShadingType.CLEAR,color:"FFFFFF",fill:n}}function Att(n){const t=n.split(",");if(t.length!==0)return t[0].trim()}function sL(n,t){var o;let e;e=n.inlineCode?"InlineCode":void 0,e=n.link?"Hyperlink":e;const r=n.size||t,i=r!=null?Math.floor(r*1.5+.5):void 0;return n.text=(o=n.text)==null?void 0:o.replace(/\x00/g," "),new yt.TextRun({text:n.text,bold:n.bold||void 0,underline:n.underline?{type:yt.UnderlineType.SINGLE}:void 0,italics:n.italics||void 0,strike:n.strike||void 0,superScript:n.superScript||void 0,subScript:n.subScript||void 0,size:i,style:e,font:n.fontFamily?Att(n.fontFamily):void 0,shading:n.background?Ett(n.background):void 0,color:n.color,highlight:ett(n.highlight)})}function xtt(n,t){if(n.link)return n.link=n.link.replace(/\x00/g," "),new yt.ExternalHyperlink({children:[sL(n,t)],link:n.link})}async function lL(n,t,e,r,i){const[o]=await i(n,t,e);if(o==null)return;const s=await ZS({width:r||0,height:0,src:e},o);return new yt.ImageRun({data:o,transformation:{width:(s==null?void 0:s.width)||100,height:(s==null?void 0:s.height)||20}})}function btt(n){if(n.heading||n.heading)return n.heading}function vtt(n){if(n.align&&(n.align==="center"||n.align==="right"||n.align==="left"))return n.align}function Btt(n){if(n.textOnly===!0&&n.level!=null)return n.level}async function ytt(n,t){var r;const e=[];if(n.text&&Array.isArray(n.text)){for(let i=0;i<n.text.length;i++){const o=n.text[i];if(((r=o.attributes)==null?void 0:r.box)===!0&&t){const s=await t(o);if(s){n.text.splice(i+1,0,...s);continue}}e.push(dtt(o))}return e}}function Ttt(n){if(n.type==="list"&&n.textOnly!==!0)return{checkbox:n.checkbox,groupId:n.groupId,ordered:!!n.ordered,level:n.level||1,start:n.start||0}}function ktt(n,t){if(n.type==="embed"&&n.embedType&&_x(n.embedType)&&n.embedData&&n.embedData.src)return n.embedData.src.split("|").map(r=>{const i=t(r),o=n.embedData[`${i}_width`],s=n.embedData[`${i}_height`];return{src:r,width:o,height:s}})}function Rtt(n){if(n.padding)return n.padding}function wtt(n){return!!(n.type==="embed"&&n.embedType&&_x(n.embedType)&&n.embedData&&n.embedData.src)}async function jg(n,t,e){return{quoted:!!n.quoted,heading:btt(n),alignment:vtt(n),indent:Btt(n),padding:Rtt(n),texts:await ytt(n,e),list:Ttt(n),images:ktt(n,t),border:wtt(n)}}async function Stt(n,t,e,r){const i=[];if(!n.children)return[];for(const o of n.children){const s=[];for(const l of t.blocks[o])s.push(await jg(l,e,r));i.push(s)}return i}const Ltt=D("to-docx"),zg=200;function Itt(n,t){return Array(n).fill(0).map(()=>Array(t).fill(0).map(()=>({cellId:void 0,color:void 0,from:void 0,rowSpan:1,colSpan:1,width:0,originalWidth:void 0,align:void 0})))}function Dtt(n,t,e,r){const i=!!n.hasColTitle,o=!!n.hasRowTitle,s=!!n.isStripeStyle,l="F5F8FB";for(let c=0;c<t;c++)for(let d=0;d<e;d++)(i&&d===0||o&&c===0||s&&c%2===1)&&(r[c][d].color=l)}function _tt(n){p(Ltt,n.children,"no table children");const t=n.rows,e=n.cols,r=new Array(n.cols).fill(zg).map((s,l)=>n.colsWidth[l]||s);if(r)for(let s=0;s<r.length;s++)r[s]===0&&(r[s]=zg);const i=Itt(t,e);let o=0;for(let s=0;s<t;++s)for(let l=0;l<e;++l){if(i[s][l].originalWidth=r?r[l]:void 0,i[s][l].from!==void 0)continue;const c=n.children[o];o+=1,i[s][l].cellId=c,i[s][l].color=ntt(n[`${c}_background`]),i[s][l].width=r?r[l]:100,i[s][l].align=n[`${c}_align`];const d=n[`${c}_rowSpan`]||1,h=n[`${c}_colSpan`]||1;if(i[s][l].rowSpan=d,i[s][l].colSpan=h,d>1||h>1){let C=0;for(let E=0;E<d;E++)for(let A=0;A<h;A++)E===0&&(C+=r?r[l+A]:80),!(E===0&&A===0)&&(i[s+E][l+A].from=[s,l]);i[s][l].width=C}}return Dtt(n,t,e,i),i}async function Mtt(n,t,e,r,i,o,s,l,c,d){async function h(E){if(l&&E.type!=="_exportVirtualBlock"){const A=await l(i,o,E);if(A){await r.addDoc(n,A,d);return}}if(E.type==="text"||E.textOnly===!0){const A=await jg(E,s,c);await r.addTextBlock(A);return}if(E.type==="code"){const A=await Stt(E,e,s,c);await r.addCodeBlockObject(A);return}if(E.type==="list"&&E.textOnly!==!0){const A=await jg(E,s,c);await r.addListBlockObject(n,A);return}if(E.type==="embed"&&E.embedType){const A=E,v=A.embedData,R=A.embedType;if(_x(R)){const S=await jg(E,s,c);await r.addImagesBlockObject(E,S,d)}else E.embedType==="hr"?r.addSeparatorBlock():E.embedType==="video"?r.addVideoPlaceholder():E.embedType==="audio"?r.addAudioPlaceholder():E.embedType==="webpage"?r.addHyperlinkParagraph(rL(v.src),v.title):r.addOtherEmbedBlock(R,E.embedData);return}if(E.type==="table"){let A=[];if(E.colsWidth)A=new Array(E.cols).fill(zg).map((R,S)=>E.colsWidth[S]||R);else{const R=E.cols;A=new Array(R);for(let S=0;S<A.length;S++)A[S]=zg;E.colsWidth=A}const v=_tt(E);await r.addTableMatrix(A,v,e),r.addEmptyParagraph()}E.type==="_exportVirtualBlock"&&await r.addVirtualBlock(E.id,e,d)}function C(E){var R;const A=((R=E==null?void 0:E.embedData)==null?void 0:R.exportSpec)||(E==null?void 0:E.exportSpec);if(!A)return[E];const v=[];for(const{type:S,data:M}of A){if(S==="text"){const U={id:it(),text:[{insert:M}],type:"text"};v.push(U);continue}if(S==="image"){const U={id:it(),type:"embed",embedType:"image",align:"left",embedData:{src:M}};v.push(U);continue}if(S==="link"){const U={id:it(),type:"embed",embedType:"webpage",embedData:{src:M.url,title:M.title}};v.push(U);continue}if(S==="block")for(const U of M){if(!e.blocks[U])continue;const nt={id:U,type:"_exportVirtualBlock"};v.push(nt)}}return v}for(const E of t)for(const A of C(E))!A||await h(A)}function Utt(){return{listMaxInst:1,listInstMap:{},listRefMap:{},levelConfigs:[]}}const Ott=D("to-docx");class Ntt{constructor(t,e,r,i,o,s){m(this,"paragraphs");this.appId=t,this.docId=e,this.state=r,this.readImageFunc=i,this.convertBlocksFunc=o,this.defaultFontSize=s,this.paragraphs=[]}async addTextBlock(t){this.paragraphs.push(new yt.Paragraph({heading:iL(t),alignment:oL(t),children:await this.paragraphsFromBlockTexts(t),indent:Ctt(t)}))}async addEmptyImagePlaceHolder(){this.paragraphs.push(new yt.Paragraph({text:`[${_.t("docx.imageExportFailed")}]`,shading:{type:yt.ShadingType.CLEAR,color:"FFFFFF",fill:"CCCCCC"}}))}async paragraphsFromBlockTexts(t){if(t.texts==null)return;const e=ott(this.defaultFontSize,t.heading),r=[];for(const i of t.texts){if(i.link){const o=xtt(i,e);o&&r.push(o);continue}if(i.box&&i.box.type&&i.box.type==="br"){r.push(new yt.TextRun({text:"",break:1}));continue}if(i.box&&i.box.type&&i.box.type==="image"){const o=await lL(this.appId,this.docId,i.box.src,i.box.width,this.readImageFunc);o&&r.push(o);continue}if(i.math){const o=await lL(this.appId,this.docId,i.math,0,this.readImageFunc);o&&r.push(o);continue}r.push(sL(i,e))}return r}async addCodeBlockObject(t){for(const e of t)for(const r of e){const i={style:yt.BorderStyle.SINGLE,color:"#DEDEDE"};this.paragraphs.push(new yt.Paragraph({style:"Code",border:{left:{...i},right:{...i},top:{...i},bottom:{...i}},children:await this.paragraphsFromBlockTexts(r)}))}}async addListBlockObject(t,e){if(e.list==null)return;let r;const i=e.list.checkbox?`${t}-${e.list.groupId}-${e.list.checkbox}`:`${t}-${e.list.groupId}`;if(this.state.listInstMap[i])r=this.state.listInstMap[i];else if(r=this.state.listMaxInst,this.state.listMaxInst+=1,this.state.listInstMap[i]=r,e.list.start>0&&e.list.ordered){const s=`number-numbering-reference-${r}`,l=tL([e.list.level-1],e.list.start);this.state.levelConfigs.push({levels:l,reference:s,inst:r}),this.state.listRefMap[i]=s}else e.list.ordered?this.state.listRefMap[i]=ch.NUMBERING:e.list.checkbox&&e.list.checkbox==="checked"?this.state.listRefMap[i]=ch.CHECKED:e.list.checkbox&&e.list.checkbox==="unchecked"?this.state.listRefMap[i]=ch.UNCHECKED:this.state.listRefMap[i]=ch.BULLET;const o=iL(e);e.texts&&this.paragraphs.push(new yt.Paragraph({heading:o,children:await this.paragraphsFromBlockTexts(e),numbering:{reference:this.state.listRefMap[i],level:e.list.level-1,instance:r}}))}imageDimWithBufferToImageRun(t){return new yt.ImageRun({data:t.buffer,transformation:{width:t.width,height:t.height}})}async addImagesBlockObject(t,e,r){if(e.images==null){if(t.type==="embed"&&t.embedType==="image"){const{src:c}=t.embedData;c||this.addEmptyImagePlaceHolder()}return}const i=[],o=await Promise.all(e.images.map(async c=>{const[d,h]=await this.readImageFunc(this.appId,this.docId,c.src);if(d){const C=await ZS(c,d);if(C)return C}i.push(h)}));XZ(o,r,t.embedData);const s=qZ(o,r),l={style:yt.BorderStyle.SINGLE,color:"#DEDEDE"};s.length&&this.paragraphs.push(new yt.Paragraph({border:e.border?{left:{...l},right:{...l},top:{...l},bottom:{...l}}:void 0,alignment:oL(e)||yt.AlignmentType.CENTER,children:s.map(c=>this.imageDimWithBufferToImageRun(c)).flatMap((c,d,h)=>c==null?[]:h.length-1!==d?[c,new yt.TextRun({text:" "})]:c)})),i.forEach(c=>{this.addHyperlinkParagraph(c)})}addSeparatorBlock(){htt().forEach(t=>this.paragraphs.push(t))}addEmptyParagraph(){this.paragraphs.push(new yt.Paragraph(""))}addVideoPlaceholder(){this.paragraphs.push(mtt())}addAudioPlaceholder(){this.paragraphs.push(gtt())}addHyperlinkParagraph(t,e){t!=null&&this.paragraphs.push(ptt(t,e))}async addTableMatrix(t,e,r){const i=t.map(o=>o!==0?o*15:1500);this.paragraphs.push(new yt.Table({rows:await this.generateTableRows(e,r),columnWidths:i}))}async generateRowCells(t,e){const r=[];for(const i of t){const o=i.cellId;if(o===void 0)continue;const s=i.width*.9;r.push(new yt.TableCell({children:await this.convertBlocksFunc(o,e.blocks[o],e,this.appId,this.docId,this.state,s),columnSpan:i.colSpan,rowSpan:i.rowSpan,width:{type:yt.WidthType.DXA,size:i.width*15},shading:i.color?{fill:i.color,type:yt.ShadingType.CLEAR,color:"auto"}:void 0}))}return r}async generateTableRows(t,e){const r=[];for(const i of t)r.push(new yt.TableRow({children:await this.generateRowCells(i,e)}));return r}async addDoc(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks.root,e,this.appId,this.docId,this.state,r);i&&(this.paragraphs=this.paragraphs.concat(i))}async addVirtualBlock(t,e,r){const i=await this.convertBlocksFunc(t,e.blocks[t],e,this.appId,this.docId,this.state,r);this.paragraphs.push(...i)}async addOtherEmbedBlock(){}}class Ptt{constructor(t,e,r,i,o,s,l,c){m(this,"convertBlocks",async(t,e,r,i,o,s,l=720)=>{const c=new Ntt(i,o,s,this.readImage,this.convertBlocks,this.defaultFontSize);return await Mtt(t,e,r,c,i,o,this.md5HexFunc,this.getDocByBlock,this.getTextsByBox,l||720),c.paragraphs});this.templateData=t,this.docData=e,this.md5HexFunc=r,this.readImage=i,this.defaultFontSize=o,this.getDocByBlock=s,this.getTextsByBox=l,this.backgroundImageOptions=c}async convert(t,e){return this.snapshot2docx(this.docData,t,e)}async snapshot2docx(t,e,r){const i=new yt.ImportDotx,o=this.templateData?await i.extract(this.templateData):void 0,s=t.blocks.root;p(Ott,s,"data must have blocks");const l=Utt(),c=await this.convertBlocks("blocks",s,t,e,r,l),d=this.backgroundImageOptions?{default:new yt.Header({children:[new yt.Paragraph({children:[new yt.ImageRun(this.backgroundImageOptions)]})]})}:{},h=new yt.Document({numbering:{config:[...ZZ,...l.levelConfigs]},sections:[{headers:d,children:c,properties:{page:{size:{width:12240,height:15840},margin:{top:1440,bottom:1440,left:1440,right:1440}}}}]},{template:o});return yt.Packer.toBlob(h)}}class aL extends Error{constructor(t){super(t),this.name=this.constructor.name}}const Ftt=D("editor-to-docx"),cL="editor-to-docx: read image error";async function Ktt(n,t,e,r){try{const i=n.doc.buildResourceUrl(r,{withToken:!0});let o=await yS(i);if(!o)throw new Error(cL);if(o.type.indexOf("/svg")!==-1){const l=await bS(o);l&&(o=new File([l],o.name))}return[await o.arrayBuffer(),i]}catch(i){throw new aL(i.message||cL)}}async function Vtt(n,t,e){const r=n.editorBlocks.getBlockClass(e.type);if(r.toStandardDoc)try{return await r.toStandardDoc(n,e,t)}catch(i){Ftt.error(`toStandardDoc error: ${JSON.stringify(i)}`);return}}async function $tt(n,t){const e=t.attributes,r=n.editorBoxes.getBoxClass(e.type);if(r.toStandardText)return r.toStandardText(n,e)}async function Htt(n,t){let{template:e,download:r,backgroundImageOptions:i}=t!=null?t:{};e||(e=zZ());const o=n.doc.toJSON(),s=(C,E,A)=>Ktt(n,C,E,A),l=async(C,E,A)=>Vtt(n,o,A),c=async C=>$tt(n,C),h=await new Ptt(e,o,nm.default,s,void 0,l,c,i).convert("_appId","_docId");if(r){const C=URL.createObjectURL(h),E=document.createElement("a");E.setAttribute("download",`${BS(n)}.docx`),E.setAttribute("href",`${C}`),E.click(),E.remove()}return h}const Mx=D("create-editor");async function jtt(n,t){var s,l,c,d,h,C,E,A,v,R,S,M,U,V,nt,Y;p(Mx,n,"app does not exists"),t.lang&&_.setLang(t.lang),Br.level=(s=t.logLevel)!=null?s:Gi.DEBUG;const e=t.onReauth?async()=>{var ct;const X=t.user.userId,ft=t.docId,pt=await((ct=t.onReauth)==null?void 0:ct.call(t,X,ft,t.permission));return{userId:X,docId:ft,permission:t.permission,appId:t.appId,token:pt,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl}}:void 0,r={auth:{appId:t.appId,docId:t.docId,userId:t.user.userId,permission:t.permission,token:t.token,displayName:t.user.displayName,avatarUrl:t.user.avatarUrl},serverUrl:t.serverUrl,reauthFunc:e,disableLogout:t.disableLogout,onMaxUsersError:t.onMaxUsersError},i=await md.load(r),o=td(n,i,{id:t.id,scrollContainer:t==null?void 0:t.scrollContainer,enableComments:t==null?void 0:t.enableComments,enableContextMenu:t==null?void 0:t.enableContextMenu,components:{blocks:[...XS,...((l=t==null?void 0:t.components)==null?void 0:l.blocks)||[]],embeds:[...Dx,...((c=t.components)==null?void 0:c.embeds)||[]],boxes:[...YS,...((d=t.components)==null?void 0:d.boxes)||[]],commandProviders:[new K0,...((h=t.components)==null?void 0:h.commandProviders)||[]],decorators:[new gg,new JC],insertions:[J1],blockHooks:[new OA,new hw,...((C=t.components)==null?void 0:C.blockHooks)||[]],textRenders:[new D4,new JE,...((E=t.components)==null?void 0:E.textRenders)||[]],options:{...t.componentsOptions}},shortcuts:[Xq,vH,Mz,gA,i4,LF,cA,_X,l0,BF,...t.shortcuts||[]],colors:["#0064FF","#EB3723","#F59300","#00A865","#F25A0A","#70A310","#009CAD","#0990D9","#8851ED","#D62069"]});if(o.editorCommandProviders.registerCommandProvider(new po(o)),o.input.addHandler(new vY),o.input.addHandler(new Cg),o.input.addHandler(new JK),o.input.addHandler(new kz),o.input.addHandler(new yA(o,{hideTitle:t.hideTitle,headingLevel:1,titlePlaceholder:_.t("placeholder.common.title"),contentPlaceholder:_.t("placeholder.common.content"),readonlyTitlePlaceholder:_.t("placeholder.common.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0,applyContentPlaceholder:(A=t.placeholder)==null?void 0:A.applyContentPlaceholder})),o.input.addHandler(new ag(o,(v=t.componentsOptions)==null?void 0:v.quickMenu)),o.input.addHandler(new $A(o)),o.input.addHandler(new XA(o)),o.input.addHandler(new bg),o.input.addHandler(new Ok),o.doc.registerCallback(new BY(o)),o.addCustom("remote-cursor",()=>new mT(o)),o.addCustom("block-menu",X=>new pw(X)),de.isMobile||o.addCustom("editor-tooltip",()=>new Ld(o)),t!=null&&t.enableComments&&o.addCustom("editor-comments",X=>new I4(X,new FZ(X))),t.enableContextMenu!==!1&&o.addCustom("editor-context-menu",X=>new JA(X)),o.addCustom("create-options",()=>new Nb(o,t)),o.addCustom("drop-target",()=>new qd(o)),o.addCustom("list-to-mindmap",()=>new eg(o)),o.addCustom("list-to-mention",()=>new zY(o)),o.addCustom("mobile-helper",()=>new mQ(o)),o.addCustom("code-caret",()=>new EH(o)),o.addCustom("image-paste-handler",()=>new VA(o)),(R=t.componentsOptions)!=null&&R.mention){const X=t.componentsOptions.mention;o.addCustom("mention",()=>new pS(o,X))}if(o.addCustom("heading-collapse",()=>new px(o)),o.addCustom(lh,X=>new Bx(X)),bu.register(o),qd.register(o),Il.register(o),Tl.register(o),o.addListener("clickLink",(X,ft,pt)=>{var wt;if((wt=t==null?void 0:t.events)!=null&&wt.onClickLink){t.events.onClickLink(X,ft,pt);return}const ct=pt.getAttribute("link");ct&&(X.readonly||ft.ctrlKey||ft.metaKey)&&window.open(ct,"_blank")}),(M=(S=t.componentsOptions)==null?void 0:S.remoteCarets)!=null&&M.onUserChanged){const X=(V=(U=t.componentsOptions)==null?void 0:U.remoteCarets)==null?void 0:V.onUserChanged;o.doc.getRemoteUsers().on("change",ft=>{X(o,ft)})}return(Y=(nt=t.componentsOptions)==null?void 0:nt.templates)!=null&&Y.templates.length&&(o.addListener("docChanged",()=>{Vg(o)}),o.addListener("resize",()=>{Vg(o,{reset:!0})}),setTimeout(()=>{Vg(o)},100)),o.doc.registerCallback({onError:async X=>{if(X.code==="ResetDoc"){Mx.error(`reset doc: ${X.message}`);const ft=await md.load(r);o.doc.reset(ft)}}}),o.version="1.1.45",Br.level===Gi.DEBUG&&(window.setReauthFail=X=>{window.isReauthError=X},window.reConnect=X=>o.doc.externalDoc.client.connection.reConnect(X)),o}function ztt(n){return n.toJSON!==void 0}async function Gtt(n,t,e){var o,s,l,c,d,h,C,E;p(Mx,n,"app does not exists");const r=ztt(t)?t:new LC(t,{serverUrl:e.serverUrl||""});e.lang&&_.setLang(e.lang),Br.level=(o=e.logLevel)!=null?o:Gi.DEBUG;const i=td(n,r,{id:e.id,scrollContainer:e==null?void 0:e.scrollContainer,components:{blocks:[mA,vA,BA,Nk,...(l=(s=e.components)==null?void 0:s.blocks)!=null?l:[]],commandProviders:[new K0],decorators:[new gg,new JC],embeds:[...Dx,...((c=e.components)==null?void 0:c.embeds)||[]],boxes:[Yk,CS,K4,...((d=e.components)==null?void 0:d.boxes)||[]],insertions:[J1],blockHooks:[new OA,...((h=e.components)==null?void 0:h.blockHooks)||[]],textRenders:[new D4,new JE,...((C=e.components)==null?void 0:C.textRenders)||[]],options:{...e.componentsOptions}},shortcuts:[gA,i4,cA,l0]});return i.editorCommandProviders.registerCommandProvider(new po(i)),i.input.addHandler(new Cg),i.input.addHandler(new yA(i,{hideTitle:e.hideTitle,headingLevel:1,titlePlaceholder:_.t("placeholder.common.title"),contentPlaceholder:_.t("placeholder.common.content"),readonlyTitlePlaceholder:_.t("placeholder.local.readonlyTitle"),addPlaceholderToAllCurrentEmptyBlock:!0})),i.input.addHandler(new ag(i,(E=e.componentsOptions)==null?void 0:E.quickMenu)),i.input.addHandler(new $A(i)),i.input.addHandler(new XA(i)),i.input.addHandler(new bg),i.input.addHandler(new Ok),i.addCustom("block-menu",A=>new pw(A)),de.isMobile||i.addCustom("editor-tooltip",()=>new Ld(i)),i.addCustom("image-paste-handler",()=>new VA(i)),e!=null&&e.enableComments&&i.addCustom("editor-comments",A=>new I4(A,new KZ(A,r))),e.enableContextMenu!==!1&&i.addCustom("editor-context-menu",A=>new JA(A)),i.addCustom("heading-collapse",()=>new px(i)),i.addListener("clickLink",(A,v,R)=>{var M;if((M=e==null?void 0:e.events)!=null&&M.onClickLink){e.events.onClickLink(A,v,R);return}const S=R.getAttribute("link");S&&(A.readonly||v.ctrlKey||v.metaKey)&&window.open(S,"_blank")}),i.addCustom(lh,A=>new Bx(A)),bu.register(i),i.version="1.1.45",i}async function Wtt(n,t,e){var h;const r=n.doc.externalDoc.client.auth,i=await A0.load({auth:r,serverUrl:e});if(!((h=i.getVersionHelper)==null?void 0:h.call(i)))throw new Error("the editor does not support to show versions");const s=n.getCustom("create-options");if(!s)throw new Error("the editor does not support to show versions");const l=s.getData(),c=new QS(l),d=n.addCustom("version-dialog",()=>new nS(i,c));return d.show(t),d}b.tippy=A9,b.AnchorBox=DB,b.AuthError=dd,b.AuthHeader=va,b.AutoScroll=bm,b.BaseURLHeader=nu,b.BasicCommands=bK,b.BlockExclusiveHook=hw,b.BlockLockerHook=OA,b.BlockLockerPasteHandler=bg,b.BlockResizer=Pd,b.BrBox=wB,b.CodeBlock=vA,b.CodeLineBlock=BA,b.CodeTextDecorator=gg,b.DOC_RE_AUTH_KEYS=lh,b.DefaultShortcuts=l0,b.DocIdError=uO,b.DocReAuthCallbacks=Bx,b.DragDrop=ev,b.DrawioEmbed=PS,b.EditorBlocks=d3,b.EditorBoxes=LB,b.EditorCommandProviders=wy,b.EditorComplexBlockPosition=xi,b.EditorComplexSelectionRange=Ji,b.EditorDecorators=OB,b.EditorEmbeds=m3,b.EditorInsertions=UB,b.EditorSimpleBlockPosition=Cn,b.EditorSimpleSelectionRange=Dn,b.EmbedBlock=p3,b.EmbedBlockResizer=nh,b.EnforceWithDocumentTitleHandler=yA,b.EventCallbacks=Lc,b.ExportImageError=aL,b.FILL_CHAR=U8,b.FileExtError=fO,b.GroupOrder=Vk,b.HeadingBlockScrollListener=NY,b.ImageBox=IB,b.InlineBoxCommandProvider=nR,b.InputtingInsertion=_B,b.LocalDoc=LC,b.LogLevel=Gi,b.Logger=Br,b.MIN_DISTANCE_THRESHOLD=Zb,b.ManualCloseDialog=pd,b.ManualMenu=dl,b.ManualToolbar=gd,b.MarkdownInputHandler=Cg,b.MaxUserError=HC,b.Mindmap=tg,b.OnesEditorAutoSuggest=AE,b.OnesEditorCustomDataWrapper=Nb,b.OnesEditorExclusiveBlock=Tl,b.OnesEditorHoveringBlock=ze,b.OnesEditorIcons=YO,b.OnesEditorQuickMenu=ag,b.OnesEditorToc=sh,b.OnesEditorTocProvider=Il,b.OnesEditorToolbar=bu,b.OnesEditorTooltip=Ld,b.OnesEditorVersionsDialog=nS,b.OverflowTooltipHelper=cg,b.PermissionError=E0,b.Popup=su,b.ReAuthToolbar=TS,b.RemoteCarets=mT,b.RemoteCaretsDecorator=JC,b.RemoteCaretsInsertion=J1,b.RemoteUsers=ed,b.RequestReloadError=hd,b.RichText=zn,b.ShareDBDoc=md,b.ShareDBDocVersionsProvider=QS,b.ShareDBServer=A0,b.SimpleCache=zb,b.StandardEmbedBlockCommands=ax,b.TEXT_STYLE_BACKGROUND_COLOR_PREFIX=I1,b.TEXT_STYLE_COLOR_PREFIX=L1,b.TableBlock=mA,b.TableBlockCommandProvider=K0,b.TableShortcuts=gA,b.TextBlock=ur,b.TextBox=RB,b.TextColorItem=D2,b.TextStyleShortcuts=cA,b.TocEmbed=mS,b.ZERO_WIDTH_SPACE_CHAR=_c,b.abbreviation=vm,b.addAttribute=Im,b.addClass=q,b.addCommentToBlock=eh,b.addDays=SI,b.addMetaToDoc=Jf,b.addMonths=wI,b.animateScrollTo=ia,b.applyPlaceholderToBlock=Od,b.assert=p,b.autoShowHideTemplates=Vg,b.bindKeyDownEvent=hm,b.blockToDoc=yC,b.blockToHtml=eC,b.blockToMarkdown=Wm,b.blockToText=Gm,b.blocksToDoc=Q5,b.clearAllSelection=Gv,b.clientType=de,b.cloneBlock=ol,b.cloneChildContainer=fC,b.cloneDoc=dC,b.cloneText=EB,b.commentToShareDbComment=QC,b.compareElement=um,b.comparePosition=v1,b.complexBlockAdjustSelectionPos=wm,b.complexBlockFindNearestChildBlock=R7,b.complexBlockGetAllChildContainers=_n,b.complexBlockGetBottomChildContainers=x3,b.complexBlockGetDeepFirstChild=C3,b.complexBlockGetFirstSimpleChild=y1,b.complexBlockGetLastSimpleChild=Fc,b.complexBlockGetSelectedContainers=Pc,b.complexBlockGetTopChildContainers=A3,b.containerToDoc=J5,b.continuousScroll=Cv,b.convertBlockFrom=km,b.convertImageFileToPng=bS,b.convertImageSrcToPng=lQ,b.converterIntercept=pg,b.copyBlockAttributes=XB,b.copyResourcesFromDoc=SC,b.createBlockAnchor=jo,b.createBlockCaretAnchor=v3,b.createBlockContentElement=fa,b.createBlockElement=Fv,b.createBlockSimpleDocRange=Vm,b.createBlockSimpleRange=Ie,b.createBoxContentElement=$v,b.createBoxElement=Kv,b.createBoxOp=CB,b.createChildContainer=u3,b.createComplexBlockPosition=Ue,b.createComplexDocPos=BB,b.createComplexDocRange=P8,b.createContainer=xB,b.createContainerElement=s1,b.createDeleteOps=hB,b.createEditor=td,b.createEditorSelectionRange=En,b.createElement=B,b.createEmptyContainer=Yo,b.createEmptyDoc=Xo,b.createEmptyTextBlockData=Fm,b.createExpandedRange=am,b.createIconButton=ea,b.createImage=Np,b.createInsertOps=Nm,b.createInsertionContentElement=zv,b.createInsertionElement=Hv,b.createLocalEditor=Gtt,b.createOnesEditor=jtt,b.createRange=Gb,b.createRichText=Ea,b.createRootContainer=c3,b.createSimpleBlockPosition=mt,b.createSimpleDocPos=vB,b.createTextBlockData=no,b.createTextButton=Sa,b.createTextOp=Xr,b.createTextWithReplaceSoftReturn=H1,b.daysAfter=Zp,b.deleteText=z1,b.diffDays=LI,b.disablePageScroll=Xp,b.docToHtml=jB,b.docToHtmlFragment=zf,b.docToMarkdown=zB,b.docToText=il,b.downloadImageToFile=yS,b.downloadObjectToFile=kx,b.downloadSvgToString=SS,b.editLink=kd,b.editorAddComment=Kq,b.editorAddTextAttribute=s5,b.editorAutoInsertBlock=YB,b.editorBreakTextBlock=Xc,b.editorClearCompositionText=oC,b.editorClearSelectedContents=Jm,b.editorCopyBlock=RC,b.editorCopyDoc=s0,b.editorDeleteBlock=aC,b.editorDeleteBlockText=sC,b.editorDeleteBlockWithoutChildren=Ym,b.editorDeleteChildContainer=U_,b.editorDeleteChildContainers=QB,b.editorFocusToBlock=uC,b.editorFocusToEnd=tM,b.editorGetBlockData=Qo,b.editorGetBlockText=Jn,b.editorGetBlockTextEx=Hm,b.editorGetBoxData=TB,b.editorHandleKeyboardEvent=uy,b.editorInsertBlock=qc,b.editorInsertBoxToBlock=WB,b.editorInsertDoc=i5,b.editorInsertDocAt=hC,b.editorInsertText=iC,b.editorInsertTextToBlock=GB,b.editorInsertTextToBlockEx=rC,b.editorMergeTextBlock=JB,b.editorMoveDown=A5,b.editorMoveEnd=AC,b.editorMoveHome=S5,b.editorMoveLeft=p5,b.editorMoveLineEnd=N5,b.editorMoveLineHome=O5,b.editorMovePageDown=H5,b.editorMovePageUp=$5,b.editorMoveRight=C5,b.editorMoveUp=E5,b.editorMoveWordEnd=k5,b.editorMoveWordLeft=T5,b.editorRangeClearColor=a5,b.editorRangeGetColor=c5,b.editorRangeSetColor=l5,b.editorRemoveTextAttribute=F_,b.editorReplaceBlockText=Zm,b.editorReplaceContainer=o5,b.editorRunOnce=IC,b.editorSelectAll=bC,b.editorSelectContainer=r0,b.editorSelectDown=x5,b.editorSelectEnd=xC,b.editorSelectHome=L5,b.editorSelectLeft=b5,b.editorSelectLineEnd=U5,b.editorSelectLineHome=M5,b.editorSelectPageDown=G5,b.editorSelectPageUp=z5,b.editorSelectRight=v5,b.editorSelectUp=B5,b.editorSelectWordEnd=w5,b.editorSelectWordLeft=R5,b.editorSetTextColor=Yc,b.editorShowFindDialog=IW,b.editorToDocx=Htt,b.editorUpdateBlockData=t0,b.editorUpdateCompositionText=qB,b.editorUpdateEmbedData=n5,b.enablePageScroll=Yp,b.escapeHtmlText=mm,b.escapeRegExp=r1,b.escapeSpace=uI,b.exclusiveBlock=_A,b.executeBlockCommand=e3,b.executeEmbedBlockCommand=t3,b.executeRangeCommand=Ry,b.fileToDataUrl=Mc,b.findAfterOffsetNotType=X1,b.findAllText=vC,b.findBlockByIndex=Iv,b.findEventTargetBlock=Xb,b.findInsertionById=jv,b.findNextOffset=i_,b.findNextVisibleSimpleBlock=Dy,b.findPrevOffset=r_,b.findPrevOffsetNotType=q1,b.findPrevSimpleBlockBeforeChildContainer=E3,b.findPrevVisibleSimpleBlock=Iy,b.findTarget=Dc,b.findWordEnd=Q1,b.findWordLeft=Y1,b.format=Rf,b.formatBytes=Ev,b.formatDate=e1,b.fragmentToHtml=fv,b.fromBase64=Bf,b.fromBase64ToBlob=Wp,b.fromBase64ToUint8Array=bI,b.fromDocRange=nl,b.fromNowString=n1,b.genId=it,b.generateEditorContainerId=o1,b.getAllChildBlocks=w1,b.getAllQuickMenuItems=aA,b.getAllSelectedBlocks=Zi,b.getAttributesAt=Hc,b.getBlockBackground=c1,b.getBlockByIndex=Js,b.getBlockCaretRect=tl,b.getBlockClass=ae,b.getBlockClassByType=aa,b.getBlockClientRects=Vo,b.getBlockCommandsWithHook=p1,b.getBlockContent=zt,b.getBlockHeading=Df,b.getBlockId=dt,b.getBlockIndex=Rt,b.getBlockInfo=Hd,b.getBlockKind=Ei,b.getBlockMinWidth=qv,b.getBlockNearestRangeFromPoint=k1,b.getBlockOptions=HI,b.getBlockPath=el,b.getBlockProperties=Qv,b.getBlockRangeFromPoint=Sm,b.getBlockStyles=$I,b.getBlockTextLength=At,b.getBlockTools=ve,b.getBlockType=Ot,b.getBoxContent=f1,b.getBoxId=Vv,b.getBoxTypeFromElement=If,b.getChildBlockCount=Xi,b.getChildBlocks=ke,b.getChildOffset=ga,b.getColorFromAttributes=_1,b.getColorFromContent=Bm,b.getComplexBlockClass=jr,b.getContainerBlockPath=s3,b.getContainerBlocks=Sv,b.getContainerBlocksElement=Sf,b.getContainerById=Ci,b.getContainerId=Et,b.getContainerMinWidth=x1,b.getContainerToolsElement=FI,b.getContainerWidth=f3,b.getDistanceSquare=Ys,b.getElementFromPoint=Fe,b.getElementOffset=bf,b.getElementScale=Hr,b.getEmbedType=ln,b.getExistsBlockTools=ym,b.getExistsContainerById=wf,b.getFileExt=kf,b.getFirstChildBlock=Me,b.getFirstClientRect=cm,b.getHeadingBlockChildren=Nc,b.getHeadingMenuOptions=oA,b.getHorizontalPadding=Fp,b.getInsertionContent=d1,b.getLastChildBlock=We,b.getLastClientRect=na,b.getListAllNextBrothers=pu,b.getLogger=D,b.getNextBlock=oe,b.getNextHiddenBlocks=i3,b.getNextValidOffset=pa,b.getNextVisibleBlock=Gr,b.getOffsetFromPoint=Pp,b.getOffsetInfoAfter=$f,b.getOffsetInfoBefore=jm,b.getOpAt=q3,b.getOpLength=Lm,b.getParentBlock=et,b.getParentBlockExcludeSelf=ua,b.getParentBox=u1,b.getParentContainer=at,b.getPrevBlock=Ke,b.getPrevValidOffset=rl,b.getPrevVisibleBlock=zr,b.getRangeCommands=Ty,b.getReferenceClientRect=fk,b.getRootBlock=g1,b.getScrollContainer=pn,b.getSpecialBlockCommands=Jv,b.getStandardEmbedBlockProperties=cx,b.getTextAfterOffset=e_,b.getTextAttributes=nC,b.getTextBeforeOffset=n_,b.getTextBlockChild=Uf,b.getTextBlockClass=_v,b.getTextBlockContentChildTextLength=qr,b.getTextBlockContentChildType=o3,b.getTextBlockContentChildren=Qi,b.getTextLength=jn,b.getTextOpLength=S1,b.getTextWidth=Em,b.getToolbar=W0,b.handleBlockElementUpdated=Xv,b.hasAltOnly=pI,b.hasClass=Mt,b.hasCtrlOrCmd=lv,b.hasCtrlOrCmdOnly=gI,b.hashCode=Tv,b.hideBlock=Pv,b.hideTemplates=xS,b.htmlToFragment=Cm,b.i18n=_,b.includeBigTable=kN,b.injectDocToHtmlFragment=Qf,b.injectStyle=Jb,b.inputActions=xM,b.insertEmptyBlock=GI,b.insertEmptyEmbedBlock=C1,b.insertText=qo,b.intersectionCommands=ZM,b.isBackspace=av,b.isBlock=ca,b.isBlockLocked=xg,b.isBlockLockedByOthers=UA,b.isBlockLockedBySelf=jd,b.isBlockTools=Nv,b.isBox=Tm,b.isBoxOp=zo,b.isCJK=ov,b.isChildContainer=pi,b.isChildNode=Ae,b.isCodeBlock=Di,b.isCollapsedHeadingBlock=Yi,b.isCollapsedRange=N8,b.isComplexBlockPosition=ha,b.isComplexKindBlock=Pt,b.isContainer=Qs,b.isContainerSelectedAllChildBlocks=W5,b.isControlEvent=sa,b.isDelete=EI,b.isDraggingFiles=Am,b.isElementVisible=dm,b.isEmbedBlock=Le,b.isEmptyContainer=Of,b.isEmptyDoc=G1,b.isEmptyTextBlock=Be,b.isEmptyTextBlockWithoutCompositionText=Ud,b.isEnterOnly=zp,b.isEscape=pm,b.isExclusiveBlock=$d,b.isExpandedHeadingBlock=r3,b.isFirefox=Af,b.isFirstChildBlockInComplexBlock=k7,b.isHeadingBlock=In,b.isHighSurrogate=sI,b.isInBlock=h1,b.isInBlockTools=Oc,b.isLetter=iv,b.isLowSurrogate=lI,b.isMatchShortcut=Wi,b.isMoveForward=hI,b.isNavigationEvent=dI,b.isNavigationKey=sv,b.isNodeRemoved=xf,b.isNumber=rv,b.isPrintableKey=jp,b.isRootBlock=Wr,b.isRootContainer=ie,b.isSafari=ta,b.isSameDay=t1,b.isSelectBoxOnly=ei,b.isShiftEnter=CI,b.isShiftTab=xI,b.isShortcutEvent=mI,b.isSimpleBlock=VI,b.isSimpleBlockPosition=bi,b.isSimplePos=bB,b.isSimpleRange=Km,b.isSpace=gm,b.isTab=AI,b.isTextBlockContentBoxChild=yr,b.isTextBlockContentChild=_f,b.isTextBlockContentInsertionChild=Ho,b.isTextBlockContentTextChild=Mf,b.isTextKindBlock=st,b.isTextKindBlockType=Lf,b.isTitleBlock=Ko,b.isToday=Av,b.isValidOffset=cr,b.isVisibleBlock=Zs,b.isYesterday=xv,b.loadJs=qb,b.loadJsPromise=ra,b.lockers=gi,b.md5=Rv,b.mergeCommands=G0,b.mergeDocs=Aa,b.mergeOps=j1,b.mergeText=_8,b.multiSplitText=Y3,b.overflowText=bv,b.parseShortcut=cv,b.patchNode=yf,b.pointInRect=oa,b.rangeAddAttribute=Ff,b.rangeGetTextColor=rB,b.rangeRemoveAttribute=$c,b.rangeSetTextColor=tB,b.rangeTransformText=J3,b.registerDragDrop=$p,b.removeAttribute=D1,b.removeClass=ut,b.removeLastBr=S8,b.removePlaceholderFromBlock=PR,b.removeStyle=Qb,b.replaceAll=II,b.replaceAllCaseInsensitive=DI,b.replaceAllText=X5,b.replaceText=Pm,b.requestDownload=xm,b.resetListStart=Eu,b.scrollIntoView=jf,b.scrollable=pv,b.selectFile=Uc,b.selectedBlockToDoc=i0,b.selectionToDoc=Qc,b.setAttributes=fm,b.setClipboardData=Tf,b.setClipboardDataByEvent=yI,b.setColorToAttributes=eB,b.setDataset=Kp,b.setDefaultCursor=vf,b.setStyles=Vp,b.shareDBCommentToDocObject=YC,b.shareDBDocCommentToComment=dT,b.shortcutToDisplayText=gn,b.showBlock=a1,b.showDocVersions=Wtt,b.showTemplates=bx,b.splitText=ar,b.splitToThree=an,b.stringToDataUrl=qp,b.stringToObjectUrl=Qp,b.subText=Q3,b.textNodeOffsetFromPoint=Wb,b.titleFromEditor=BS,b.toBase64URL=qi,b.toMindmap=Z0,b.toPlainText=Re,b.toPlainTextKeepLength=W1,b.trimChar=Hp,b.unexclusiveBlock=MA,b.unicodeLength=aI,b.unicodeSubstr=cI,b.updateBlockSelection=Wv,b.updateOpAttributes=AB,b.updateTextBlockContent=t_,b.updateUrl=Gp;for(const n in je)n!=="default"&&!b.hasOwnProperty(n)&&Object.defineProperty(b,n,{enumerable:!0,get:()=>je[n]});Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|